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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93f8b7ce835bbc286e47fa8a373f94c2f4d246d2 | 8ac34429661e3ad37b7285dfc54b5c665f4ebc0d | /ros_robot_control.py | 478e164a4fef54b730ad8ca738661f61e6ef839b | [] | no_license | manuelctz/ROS-OpenCV | 768d876b4eb86dec05633a19b9421e362e94046f | c772eb0894d78f0587bb401be88b8f7c162c4707 | refs/heads/main | 2023-03-03T00:06:43.306372 | 2021-02-13T01:17:18 | 2021-02-13T01:17:18 | 338,470,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | #!/urs/bin/env python
import rospy
from sensor_msgs.msg import Image
from geometry_msgs.msg import Twist
from cv_bridge import CvBridge, CvBridgeError
import cv2
class RobotControl:
def __init__(self):
#create a new node
rospy.init_node("Robot_Control")
#Subscribe to the image_raw topic
... | [
"huixin.zhan@utsa.edu"
] | huixin.zhan@utsa.edu |
c0a14ad2621b75dafc27b482a8417a1771e02e77 | d098adb17133106f11e030fdf305c7132b0648ed | /Lesson_6/non_eratosfen.py | 50ffa1e8eba03a475d559c024c1ab3dd0f1abb02 | [] | no_license | SiliconCamp/algo_and_structures_python | 9175a5167b83f3cf66534f5e65115156752c34f6 | bf050eff56edcf247664279bfe5cd780e1a01d43 | refs/heads/master | 2020-04-16T15:03:36.125123 | 2019-02-06T15:51:52 | 2019-02-06T15:51:52 | 165,689,354 | 0 | 0 | null | 2019-02-04T09:40:18 | 2019-01-14T15:56:10 | Python | UTF-8 | Python | false | false | 1,613 | py | '''
Достаем из резерва скрипт, не-Эратосфена. Смотрим использование памяти.
Как и следовало ожидать - стабильные 13.1 MiB
Жертвуем скоростью в пользу экономии памяти. Отчет внизу.
'''
import memory_profiler
@memory_profiler.profile()
def is_prime(a):
return all(a % i for i in range(2, a)) # Проверяем - все ли н... | [
"camp@silicon-camp.ru"
] | camp@silicon-camp.ru |
cd0cb0f626d7aa57acf91debe06cbea674f48f2b | 95f1e725513aceb2c211ab14e515241dc9e9d770 | /tutorial/tutorial/spiders/quotes_spider.py | 078f6341130a294d2b0bc90be9e2cacf6cd60c8e | [] | no_license | SatyaAchanta/scrapy_learning | 81e41187c39a0618408127597a7f2070840e727c | bff8348609760f41a9b91334846784895eaed203 | refs/heads/master | 2022-12-19T16:22:24.908635 | 2020-09-27T17:07:09 | 2020-09-27T17:07:09 | 299,080,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | import scrapy
import json
class QuotesSpider(scrapy.Spider):
name = "quotes"
start_urls = [
'http://quotes.toscrape.com/page/1/',
'http://quotes.toscrape.com/page/2/',
]
def parse(self, response):
page = response.url.split("/")[-2]
filename = 'quotes-%s.html' % pag... | [
"vishalakarthikachanta@Vishalas-MacBook-Air.local"
] | vishalakarthikachanta@Vishalas-MacBook-Air.local |
75d7f2c5947589bd4c26dd0f588d43cfceee9517 | a4d5106c412abb148fe3f293d538ec43da3eece7 | /users/views.py | e1f58afc67990b163c9a1adbe88e2b813e87d91a | [] | no_license | mjdough/learning_log | 218bfbe3ef24b79fdcca80a4f1486e98f7e1864b | 99702259d076812153cf2d39e3639631bff83d2d | refs/heads/master | 2023-01-10T23:46:46.543350 | 2016-07-09T18:13:35 | 2016-07-09T18:13:35 | 62,895,489 | 0 | 0 | null | 2022-12-26T20:15:49 | 2016-07-08T14:41:09 | Python | UTF-8 | Python | false | false | 1,143 | py |
from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.forms import UserCreationForm
def logout_view(request):
"""Log the user out"""
logout(request)
... | [
"doughmj@outlook.com"
] | doughmj@outlook.com |
d39a882c7e83acba29550e78c19984e2c736cd64 | 60499b61d34e5e65d4b2dd54acb6434c97dcb710 | /lesson-1/task_8.py | e8661b9f04c10f232c317472343f96305f923715 | [] | no_license | DedkovEA/mipt-python-1 | 6250109fb1be542158cf72393117389bb6dc1cac | d182eb9bc35b001ce99d5796c7fff5676090a566 | refs/heads/master | 2020-08-04T01:46:01.950134 | 2019-10-01T10:29:13 | 2019-10-01T10:29:13 | 211,958,923 | 0 | 0 | null | 2019-09-30T21:16:16 | 2019-09-30T21:16:16 | null | UTF-8 | Python | false | false | 179 | py | #!/usr/bin/python3
from pyrob.api import *
@task
def task_5_7():
while wall_is_above() or wall_is_beneath():
move_right()
if __name__ == '__main__':
run_tasks()
| [
"asya550@gmail.com"
] | asya550@gmail.com |
60437a68481106b6c6b7496b3f4e19044fbeb234 | 87d4c662ce5b441576bbb8836344401a2e2ce9c9 | /src/environment/environment.py | 9d2ae65e9564e0ba0c83b446afc86d55e3321d66 | [] | no_license | stridera/robotron | 506b7510cf5c20a502bfb946dc52fdfb6101396c | 152af844f573d44c116a23e31796b2dfcbed5caf | refs/heads/master | 2023-07-23T00:29:16.673387 | 2022-03-30T22:12:48 | 2022-03-30T22:12:48 | 96,166,647 | 0 | 1 | null | 2023-07-16T01:11:40 | 2017-07-04T02:19:33 | Python | UTF-8 | Python | false | false | 3,519 | py | """
Process and manage the environment
"""
import cv2
from .score_processor import ScoreProcessor
from .lives_processor import LivesProcessor
from .noise_filter import NoiseFilter
from .utils import crop
class Environment():
""" Setup and manage the game environment """
IMAGE_SIZE = (720, 1280) # Expecte... | [
"stridera@gmail.com"
] | stridera@gmail.com |
34a1c01f9276612864b317d7f6156216a0bbf4c8 | 723e52a46ef0b3b3927a842799fa8b99d7a678a6 | /generic_crud/serializers.py | dee90946baae87a30031eae803273dbc2f1bc630 | [] | no_license | MilanTagline2021/rest-api-views | aa2f17279405f839ad86f03e0eea034d82c6bbb5 | 5f1b7743d84ce754d4e69192fdb9f0526945e801 | refs/heads/master | 2023-08-21T02:27:37.917621 | 2021-10-21T10:59:38 | 2021-10-21T10:59:38 | 419,275,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from rest_framework import serializers
from generic_crud.models import Student
class StudentSerializers(serializers.ModelSerializer):
class Meta:
model = Student
fields = ['id','name','roll','city'] | [
"milans.tagline@gmail.com"
] | milans.tagline@gmail.com |
fb2ba7b1c482895b10125ce25e783e321ac8582f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03543/s094616983.py | 009e1a2eac6a99783659ecb7fdeb03953450dca3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | N = str(input())
if N[0] == N[1] == N[2] or N[1] == N[2] == N[3]:
result = "Yes"
else:
result = "No"
print(result)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fcbbb1fb031164d7cdf6e3085de6053b7451991a | 5b6b3bca9d91f1b1d34a19103fc22e705418022a | /banco_dados/selecionar_com_filtro.py | 05dca17476806ea32c99b227d39bdf37e59e0758 | [] | no_license | Emanueltyc/python_udemy | 6bad1e957fcdf0717d9c10ae6a75a4588b6030ef | c1b8c1c3414b0eea029683f45db9bb338436aa37 | refs/heads/main | 2023-06-16T20:34:45.850982 | 2021-07-15T18:10:05 | 2021-07-15T18:10:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from bd import nova_conexao
sql = "SELECT * FROM contatos WHERE tel = '97765-4321'"
with nova_conexao() as conexao:
cursor = conexao.cursor()
cursor.execute(sql)
for x in cursor:
print(x) | [
"jose.eosousa@gmail.com"
] | jose.eosousa@gmail.com |
88ff6f3bd3a4a753e80b942805f4ae54711b2398 | a213532aefa3dd68119b878db61508831cbb9a63 | /personalization/find_max_shown_user.py | b917e26af64e7ba987c80958f2b5e5a079f02ba7 | [] | no_license | salonipotdar/NewsPersonalization | 93a1847f1fef216b1cdf012307e277c4ebd9d590 | 885fcb99c3e7fd9a1ce96095c1b49f46fefc6cb4 | refs/heads/master | 2020-05-07T17:50:07.163478 | 2014-12-18T06:13:33 | 2014-12-18T06:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import sys
import os
from operator import itemgetter
user_count = {}
for line in sys.stdin:
line_arr = line.split("|")
uid = int(line_arr[1])
if uid in user_count:
user_count[uid] = user_count[uid] + 1
else:
user_count[uid] = 1
sorted_user_id = sorted(user_count.items(), key=itemgett... | [
"saloni.potdar@gmail.com"
] | saloni.potdar@gmail.com |
3c9255c8322cd490ba9c22476e6343bc1b6cc27b | 95fe42bbae799ef76d21af95d51807d0f6e29638 | /conf/settings.py | 5e6a56205a322686ea3cb3edd7e8ad75798da3ab | [] | no_license | PhyCosmos/Back-end | 8a8eda71a30eee3de7a58acb9829004db5664845 | 1826db6efaef5114267e8e684fc66f2316280259 | refs/heads/main | 2023-06-21T16:08:53.287483 | 2021-06-07T17:14:08 | 2021-06-07T17:14:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,394 | py | """
Django settings for conf project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from p... | [
"ehsgnl123@naver.com"
] | ehsgnl123@naver.com |
e393c9abec829a4fc4ace162338cf24deec2d7b3 | 5013d2a724ab4485a2f6a85753e15d8795e0db43 | /routes.py | b953efefe2bcca2b7bcedaebfa0357351a6c92ab | [] | no_license | ovmo/dbproj | cecddcd95786e03663bc07c5cd11fc2fd54811ad | 4ffcffe6e31ee8fc46ae401f010ef6ca90ff4516 | refs/heads/master | 2023-08-19T05:13:05.860277 | 2021-10-11T18:15:15 | 2021-10-11T18:15:15 | 412,039,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | import app
from flask import Flask, render_template, request, redirect, session
| [
"noreply@github.com"
] | ovmo.noreply@github.com |
8906f0939ad786934fc74185bb7ab99148105236 | 8cb3921cf4b2fa0efbd1c34ad25430027d6dbebb | /config.py | 1039755e03562358e80bf9b8e4c2b0e9dccacfa9 | [] | no_license | csheldrick/halite-3-finals-viewer | 5f3160f60eb19fcd5ec93d2330f71d376e2f1108 | dd3a7597e9e648a6230368a1f4d8f9be4f2fcc09 | refs/heads/master | 2020-04-18T09:40:43.374477 | 2019-01-28T16:08:43 | 2019-01-28T16:08:43 | 167,442,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | users = {"264": "csheldrick", "2807": "teccles"}
leaderboard_interval = 10000
finals_interval = 15000
game_feed_interval = 15000 | [
"csheldrick@gmail.com"
] | csheldrick@gmail.com |
2727a401d75480606d9d37c8dadb5b63f734f6e1 | 6b114b2074c7b239c657093fb85dac05487464a2 | /bin/consumer.py | 95220ede6f68b99258ef1ccbd7b59a3ea1bd8dda | [] | no_license | loum/klapka | 34933f8a61e7b1fdfd8f77e025a596b96780ab26 | f033f561430fa51fee5d89824b9315e27f75dbc3 | refs/heads/master | 2020-03-27T16:59:11.462557 | 2018-11-05T05:17:46 | 2018-11-05T05:17:46 | 146,821,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | """Kafka consumer.
"""
import ssl
import sys
from kafka import KafkaConsumer
from logga import log, set_log_level
set_log_level(level='DEBUG')
BOOTSTRAP_SERVERS = 'CHANGE_ME'
SASL_PLAIN_USERNAME = 'CHANGE_ME'
SASL_PLAIN_PASSWORD = 'CHANGE_ME'
SASL_MECHANISM = 'PLAIN'
SECURITY_PROTOCOL = 'SASL_SSL'
# Create a new c... | [
"lmarkovski@seek.com.au"
] | lmarkovski@seek.com.au |
72421de142cc3624f6e28081a6c53ac4c925370f | 1c1a2212f521b54c9c5d1e28d2785736fd76f9b4 | /Login_reg_proj/Login_reg_proj/settings.py | 2d0670fa3ef6b470a404f9e7afbb3c0c55ee0c02 | [] | no_license | Melijah5/Login_and_Registration | 1575b58bdb9b26d13116825b7e1ff02135791708 | 8f1263e4b03b0c62521c6a0591dcefd13c683796 | refs/heads/main | 2023-04-29T01:23:13.043854 | 2021-05-24T05:14:47 | 2021-05-24T05:14:47 | 370,234,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | """
Django settings for Login_reg_proj project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | [
"Melijah5@gmail.com"
] | Melijah5@gmail.com |
d7441ac6e326cf7b21bb610ca6c374ee4359640f | f7b48da08c71f99ce257be2adfa68562552aea17 | /plugins/dcmp/auth/__init__.py | d464de6c8ebcff7a4e9ed442e2300aedeb4d54e8 | [
"Apache-2.0"
] | permissive | qmgeng/docker-airflow | 537e35c3eb74737ebca0c167e0d85f3d533078bb | 44db958f81731759d143c19498499f46458aa91b | refs/heads/master | 2020-08-14T15:21:21.446943 | 2019-10-15T08:07:27 | 2019-10-15T08:07:27 | 215,189,805 | 0 | 0 | Apache-2.0 | 2019-10-15T02:39:25 | 2019-10-15T02:39:24 | null | UTF-8 | Python | false | false | 23 | py | import dcmp.auth.models | [
"181315gg"
] | 181315gg |
09ff68c88f524571cfc6563d186b1d003b3cd3a2 | e09d60c5a5f70c76a0abe88399d10332141b4c16 | /app_tourist/views.py | 6ec089081cb666b256cadd5de3f8a06395b5e1e9 | [] | no_license | zulevicius/tourist-system | 9f84e7ee3abb7149b31acd6874b5cd94ec314b51 | 98e49fd6c7a16a39f1061477dc72b5e019a9c6af | refs/heads/master | 2020-07-15T22:52:36.617629 | 2017-02-07T15:08:16 | 2017-02-07T15:08:16 | 73,956,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,553 | py | # -*- coding: utf-8 -*-
import datetime
import json
from django.contrib import messages
from django.contrib.auth.decorators import user_passes_test
from django.core.urlresolvers import resolve, reverse
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render, redirect
from django.... | [
"z.ulevicius@gmail.com"
] | z.ulevicius@gmail.com |
55f888fe74738900a474126796c6ce311ab676a7 | 5d32d0e65aa3bfa677fd1b8c92569e07e9b82af1 | /Section 7 - Dictionaries/buildDictResults v2a.py | 2d965ef573e752a8df80252691d83a5278a6d5d0 | [
"CC0-1.0"
] | permissive | pdst-lccs/lccs-python | b74ef2a02ac8ad2637f713fff5559f4e56c9827d | 95cb7ece05716521e9951d7a40de8fb20a88021f | refs/heads/master | 2023-05-28T00:46:57.313972 | 2023-05-22T10:16:43 | 2023-05-22T10:16:43 | 240,501,524 | 21 | 18 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # Event: LCCS Python Fundamental Skills Workshop
# Date: Dec 2018
# Author: Joe English, PDST
# eMail: computerscience@pdst.ie
# Purpose: A program to demonstrate how to build a dictionary
# Version 2a. A dictionary to store multiple results for a student
results = {}
name = input("Enter student name: ")
... | [
"noreply@github.com"
] | pdst-lccs.noreply@github.com |
9adb7960336f96b21539e4aeeab370cff77fdca3 | f6597d3ec47622d1f363b6b38d1da570276852e8 | /tests/test.py | 63e01113072e119179297dd78228fac733f503d7 | [
"Apache-2.0"
] | permissive | Bhaskers-Blu-Org1/MAX-OCR | fe88cd987127528a73c3c3a83950df2c243676c0 | efc037e12051ff42be5a6b942b426f20868e6e73 | refs/heads/master | 2022-09-20T03:50:31.360193 | 2020-06-02T19:04:12 | 2020-06-02T19:04:12 | 275,847,050 | 0 | 1 | Apache-2.0 | 2020-06-29T14:58:02 | 2020-06-29T14:58:01 | null | UTF-8 | Python | false | false | 3,707 | py | # Copyright 2018-2019 IBM Corp. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | Bhaskers-Blu-Org1.noreply@github.com |
8944355baaa99149f532aef7739f709d40d0cf97 | eca085a550ac2dcb2b2c7a44a30a9aa68dba7975 | /obj/classjc.py | a6e12d59dbb5000a2bf0d447d028fe08ec5b2128 | [] | no_license | wangfan1996/python | fc4bb357447ce714d8c82b40b4b943c72395041d | c43b567da2c281cd4ec41924d8578cc1f600b58c | refs/heads/master | 2020-05-23T01:08:46.246584 | 2019-12-18T02:41:00 | 2019-12-18T02:41:00 | 186,581,862 | 4 | 1 | null | 2019-05-16T10:18:34 | 2019-05-14T08:44:26 | Python | UTF-8 | Python | false | false | 991 | py | class people:
name = ''
age = 0
__weight = 0
def __init__(self,n,a,w):
self.name = n
self.age = a
self.__weight = w
def speak(self):
print("%s说:我%d岁。" %(self.name,self.age))
class student(people):
grade = ''
def __init__(self,n,a,w,g):
peo... | [
"1356316925@qq.com"
] | 1356316925@qq.com |
c21bcd7f0ef6708777d48e1b97d4f4480899b6a2 | c27af5ff38c055cd2c07e3315960e3233f2f37bb | /Alumni_system/Alumni_system/urls.py | 1846e0631757c7e0b24cf99259f6453096e55285 | [] | no_license | Shiv1202/SIH_2020 | a0216038c8f0a2c6023fc3a02c9c3c784cf1ab6f | 7f4ef3507bec077860af64a735f874d791e4dd17 | refs/heads/master | 2020-12-09T03:44:44.879720 | 2020-01-25T05:20:03 | 2020-01-25T05:20:03 | 233,180,982 | 1 | 3 | null | 2020-01-20T21:02:05 | 2020-01-11T05:23:36 | Python | UTF-8 | Python | false | false | 1,294 | py | """Alumni_system URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"shivansht9211@gmail.com"
] | shivansht9211@gmail.com |
8898583d24658166e66542695ef07c969241360a | 767c17992b3be653119fb5bbca625f970e88285b | /GestureControl.py | 1f6aebf148ea48e7c04e61c4a72e8476a6f35d52 | [] | no_license | EJL3/Gesture_gaming | 65dc22ee051181e851ce6d1220c22051f82d5e7e | e13373e33b405b87fdc591de0842fc45e6665502 | refs/heads/master | 2023-03-09T13:43:55.631220 | 2021-02-25T18:13:31 | 2021-02-25T18:13:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,745 | py | import numpy as np
import cv2
import math
from key import *
def forward():
PressKey(W)
ReleaseKey(A)
ReleaseKey(S)
ReleaseKey(D)
def backward():
PressKey(S)
ReleaseKey(A)
ReleaseKey(W)
ReleaseKey(D)
def left():
PressKey(A)
ReleaseKey(W)
ReleaseKey(S... | [
"noreply@github.com"
] | EJL3.noreply@github.com |
b7ba95826938acb9759abeb433041c909b35c7ed | 55c10a705e5f953c2334868cb014c156e06fb698 | /backend/app/core/auth.py | 87eee8265ffc8dce41de76f7c36313cf1f582276 | [
"MIT"
] | permissive | wiserdor/coupon-service | 8d6a69c5e5a26747ad524c48d3fed399b508b6a1 | abf152cd057548746769ab77cd5a1a6f6f7175f6 | refs/heads/master | 2023-03-29T19:36:34.010344 | 2021-04-06T11:57:54 | 2021-04-06T11:57:54 | 300,602,406 | 5 | 0 | null | 2021-04-06T11:57:54 | 2020-10-02T12:07:07 | Python | UTF-8 | Python | false | false | 2,278 | py | import jwt
from fastapi import Depends, HTTPException, status
from jwt import PyJWTError
from app.db import models, session
from app.db.schemas.auth import TokenData, Token
from app.db.schemas.users import UserCreate
from app.db.crud.users import get_user_by_email, create_user
from app.core import security
async def... | [
"dor@dcoya.com"
] | dor@dcoya.com |
2275c475f2fc91d3a4a2f036efed9a049b4c1a25 | 580e617be85f6340c66222d7d842016e0c1c1cbc | /shares/urls.py | a49a82ad5c9e98d0d019220dfccfc5204c7d0094 | [] | no_license | sammynjihia/OpenCircles | 2e11b59af078f6c08a3e375aeecfe246d835d3ee | d344607b763ab9f7c9ec1a7fb734a5ae84dacb0a | refs/heads/master | 2022-09-22T07:04:19.557228 | 2018-08-23T10:21:59 | 2018-08-23T10:21:59 | 269,920,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | from django.conf.urls import url
from shares import views
urlpatterns = [
url(r'^$', views.api_root, name='api-root'),
url(r'^purchase_shares/$', views.PurchaseShares.as_view(), name='purchase-shares'),
url(r'^view_shares/$', views.MemberShares.as_view(), name='view-shares'),
url(r'^shares_transaction/... | [
"jeytembu@gmail.com"
] | jeytembu@gmail.com |
73f7a9ecc236f542ada437f4643ea62163cf9f9a | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/clans/restrictions.py | 66ef025b31ed78f0d1115478c56bf6c0174e879a | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 6,260 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/clans/restrictions.py
import weakref
from constants import CLAN_MEMBER_FLAGS
from debug_utils import LOG_DEBUG, LOG_WARNING
from account_helpers import isOutOfWallet, isClanEnabled
from gui.clans.settings import error, success, ... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
e4416811d09b786bf8063dfc8821ece3b13b4182 | ba7ec189906764bb4f4cc9acfadc4f1bc735a629 | /manage.py | 45698b24ba075443e9accf9e12206d32e861f130 | [] | no_license | zeeshantariq08/Travello-zee | 3eb69646354715cce8d7bcdb5ebe5e571138b1a3 | 452b30234a1d019ddba985cc80eba501e49afd94 | refs/heads/master | 2021-01-02T18:44:33.678761 | 2020-04-03T21:02:57 | 2020-04-03T21:02:57 | 239,748,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "travellozee.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that ... | [
"zeeshiq58@gmail.com"
] | zeeshiq58@gmail.com |
91e17ac9894d435ba0582d12391409908333b102 | 6362e8bb45bff5229dd96418ec390dc4262bdf94 | /utility/FileModule.py | 6db3e71317ba499193a49e5bbad98f889b7f8e67 | [] | no_license | vishaldixit/utility | 44eb071b8c3cc54c99bf15aa25e71feec577392c | 70881a41ae23c2a22203ff77a55bc6307e39de2b | refs/heads/master | 2023-04-17T00:41:37.452018 | 2021-04-21T12:48:33 | 2021-04-21T12:48:33 | 359,365,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | import os
class FileHelper:
def __init__(self, logger):
self.logger = logger
def read_file_lines(self, local_file_path):
file_obj = open(local_file_path, 'r')
lines = file_obj.readlines()
file_obj.close()
if len(lines) == 0:
self.logger.error("Local file is... | [
"vishal.dixit@clear-trail.com"
] | vishal.dixit@clear-trail.com |
1f8016a2b5b352426d30abced29c4c643adf0c85 | 6ade359db454867ea288f61922726ea002e3bad5 | /WechatSpider.py | c4e4daeaf67aa9606f447f6256814cc61a693454 | [] | no_license | aoxinagzhefixedweights/WechatSpider | fa023a8734df0eae21fa78eaa143b2267006663b | 267fbf5c1bc5e0b931dbbb7c29bfecd98ab4da85 | refs/heads/master | 2021-10-10T11:06:54.258636 | 2019-01-10T02:57:03 | 2019-01-10T02:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,310 | py | from appium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import time
import re
platform = 'Android'
devicename = 'MI_5'
app_package = 'com.tencent.mm'
app_activity = '.ui.LauncherUI'... | [
"noreply@github.com"
] | aoxinagzhefixedweights.noreply@github.com |
b2d1f09c2772fe000200477aa60752bf3ceb4d62 | 1c7c2117c29790ca644d39648e242ed078634408 | /geocachebot.py | 7d5cf4c0f715a267258311383ac5b322be5baa95 | [
"MIT"
] | permissive | mrvdb/geocachebot | ace4de1408fdad056d5db95426768eddf93e4d72 | b6fc9e27d2902acec6095c558fd71e74849f1510 | refs/heads/master | 2021-01-19T03:57:17.718908 | 2017-08-10T12:59:17 | 2017-08-10T12:59:17 | 49,060,739 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,822 | py | #!/usr/bin/env python
'''A little geocache bot helper for Telegram'''
# System imports
import configparser
import logging
from string import Template
# Other packages
import pycaching
import telegram
from telegram.ext import (
Updater,
CommandHandler,
RegexHandler)
# Pattern adapted from:
# http://eeec... | [
"marcel@hsdev.com"
] | marcel@hsdev.com |
70ea5be96c7b372df95bd7da834a778eef691b8f | f5c01f54bf23a2c1c83795437ce86b7ffa03b467 | /myblog/migrations/0001_initial.py | fbc5c9f52b7457f670edb589b2da41774898317d | [] | no_license | yunls702/mysite | c674e45e04ce9034fda45815fbbb6ff203cd4b50 | fbd9d93bb0a1dac50478876597eb79cd07b1ba81 | refs/heads/master | 2022-11-11T09:50:44.199576 | 2020-06-30T07:01:54 | 2020-06-30T07:01:54 | 273,882,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 3.0.7 on 2020-06-08 04:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"yunls7023@naver.com"
] | yunls7023@naver.com |
f9786d0da0fee2f7832ece8ee873f928fd337df6 | 009edaebd766d78cf2a8eee2e230ecb9a2e9e4fa | /task1.py | d1d5b6d5a4bbfa7639684b020c750823e62c2f87 | [] | no_license | SuryaTeja-koka/Big-O-Time-Complexity-in-Python-Code | 64b6ccae8febaba05a966750c8efd7faf4faf67c | a661bd253edfb34b12b6812b07f01bcbc8f2da88 | refs/heads/main | 2022-12-31T13:52:22.063720 | 2020-10-21T10:45:56 | 2020-10-21T10:45:56 | 305,991,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from plot import plot
import random
# Test array
arr = [2, 3, 4, 10, 40, 60, 80, 100]
x = 100
# The approach: create arrays to show the performance curve.
# task1: create the plot function.
# for each size N, save the number of iterations in an array.
size = [1, 2, 3, 4]
iters = [1, 4, 9, 16]
# and grap... | [
"noreply@github.com"
] | SuryaTeja-koka.noreply@github.com |
3fdd0785bd5ebb9309a5ef62c389b7f7d145fada | 128dac2cee9a1022fafcc15a8d4903af678d88ee | /669. Trim a Binary Search Tree.py | 522cc40d1e528387b1417db51c99f82f3ecafa2c | [] | no_license | wangtaodd/LeetCodeSolutions | b998d9de408bc2e01b6bff11fcb315b453389bc8 | 364107c1a74b2fbe72cbf7076f38b9089f7017fb | refs/heads/master | 2021-09-11T19:21:10.223002 | 2018-04-11T11:18:32 | 2018-04-11T11:18:32 | 125,821,429 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | """
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might need to change the root of the tree, so the result should return the new root of the trimmed binary search tree.
Example 1:
Input:
1
/ \
0 2
L = 1
R... | [
"wangtaodd@gmail.com"
] | wangtaodd@gmail.com |
a4bac40b2739602a69ef9a4dfbe62b46546e27eb | 8b952ea3a636f68adb33985b4e1989aa613f1a38 | /newsearch.py | 29ca3963b8ced3d2408b74144e3b238c222f868c | [] | no_license | SheilKumar/HackQ-Trivia | 1c4f5c5602e60e5f06860885b0fafe5d62e36030 | 0a594b6c25e379146df2b1e49f5aa29734699e6c | refs/heads/master | 2020-06-10T04:04:48.102135 | 2019-06-27T21:55:57 | 2019-06-27T21:55:57 | 193,576,696 | 0 | 0 | null | 2019-06-24T20:38:34 | 2019-06-24T20:38:33 | null | UTF-8 | Python | false | false | 1,336 | py | # Creating a new search method
from bs4 import BeautifulSoup as soup
from urllib.request import urlopen
import requests
import urllib
class AppURLopener(urllib.request.FancyURLopener):
version = "Mozilla/5.0"
question1 = "Who is the NBA all time top scorer?"
answers1 = ["Lebron James", "Kareem Abdul Jabbar", "Ko... | [
"sk17@illinois.edu"
] | sk17@illinois.edu |
95608258cb17cdaf8e16d836160a7fa9876a5414 | 80a36e464a5c6f1d1167f3f1ec8f8388301d4446 | /test.py | 7ff2ee02e14566ed47f130206ffc35250c02c675 | [] | no_license | dharmik-midha/covid-19 | 6e642b2acc4f8780018e0c2d4bfca482271e5b7b | 511aa3087cc3db1d39d141d7ad157d06e25b0b7c | refs/heads/master | 2023-07-28T05:49:54.115081 | 2021-08-02T08:14:34 | 2021-08-02T08:14:34 | 407,810,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import streamlit as st
import pandas as pd
import numpy as np
import requests
import plotly
import folium
import math
import os
import plotly.express as px
import plotly.figure_factory as ff
import plotly.graph_objs as go
import matplotlib.pyplot as plt
import tensorflow as tf
from pandas.io.json import json_normalize
... | [
"dharmik.midha1999@gmil.com"
] | dharmik.midha1999@gmil.com |
db092d2a6281f6cc0fbffe4aace4146bfc3ea86f | 5bb597a6b5910517f8d612958e0bd39ad3190a6d | /UserProfile.py | edb6b3e5fecbaca433158c087ede6961a9190ffb | [] | no_license | shaily-khare/Finnalyst | 5edbac0073cfa198e647d20ff6322b14e5ff0314 | 74dd7bac64e85ea3e05a7d56e53a7e87adfba38e | refs/heads/master | 2021-01-20T05:46:34.079274 | 2017-06-06T05:04:41 | 2017-06-06T05:04:41 | 93,477,886 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from DBManager import DBManager
from datetime import datetime
db = DBManager()
cn = db.GetDatabaseConnection()
def createUser(username,password,emailid):
cur = cn.cursor()
dt = datetime.now()
cur.execute("""insert into user(username, password, emailid, dateCreated) VALUES (%s,%s,%s,%s)""",
... | [
"shailykhare15@gmail.com"
] | shailykhare15@gmail.com |
ee99435ade85581f69097e41433a3aafe24ea21e | b9b46b2bd1c5f6950956a2d76ac759fef69f6ae6 | /test/Http_connect_test.py | b3af5538d5839fc7f33923782705ab52f7b8b025 | [] | no_license | lixingke3650/OrHttpConnect | a87f71695b8efc404c8722a59e42fee934afa782 | 7c352eda883dac396a6db408303676aeb773c84d | refs/heads/master | 2021-01-21T04:44:50.239834 | 2016-06-12T03:38:31 | 2016-06-12T03:38:31 | 54,933,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | #! C:\Python\Python2\python
# _*_ coding=utf-8 _*_
# Filename : Http_connect_socket2.py
import socket
# IP
CONNECT_IP = '127.0.0.1'
# port
CONNECT_PORT = 5001
# addr
Address = ( CONNECT_IP, CONNECT_PORT )
# socket
Socket_Client = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
# connect
Socket_Client.connect( Ad... | [
"hanbin@RITS044802.rst.ricoh.com"
] | hanbin@RITS044802.rst.ricoh.com |
2408a8658499037f10e5a872c2b492123d2395af | df77b5213aebb4acc7ce7da1ef6be313ee49c308 | /hrsmnt/leads/migrations/0007_auto_20200701_1735.py | b1a5d1138e38e249ceaaf07949f246dab17f09cd | [] | no_license | mark-by/hrsmnt | 23fbbf573e5829519d35bc853e6bb7328d68217d | 269bceb4b44f0d71cdad23ddf3c713f896cfc15e | refs/heads/master | 2022-12-27T09:30:24.278839 | 2020-09-29T22:54:54 | 2020-09-29T22:54:54 | 274,986,509 | 0 | 0 | null | 2020-08-18T08:44:05 | 2020-06-25T18:22:05 | JavaScript | UTF-8 | Python | false | false | 1,583 | py | # Generated by Django 3.0.5 on 2020-07-01 14:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leads', '0006_order_total_price'),
]
operations = [
migrations.AddField(
model_name='order',
name='paid',
... | [
"mb@hrsmnt.ru"
] | mb@hrsmnt.ru |
5f9ed1ee0b57611fa46cb7888433a07f15bd8fb8 | bef9ee7f862ce353b7bdb6a75da66429dcdb2cc1 | /msToDhConc.py | 25ebe8eb6c2871a2fb952a3a5b29db5c02343c22 | [] | no_license | xingzhaoo/Amro-Zayed-s-Laboratory-YorkU | 7acfe73c8113b930c3459bca79399d25021ec1f9 | 47eb171a3ace6ccb6e8d5b531e4602c139d5c2aa | refs/heads/master | 2021-01-10T01:21:49.885309 | 2016-02-18T23:28:05 | 2016-02-18T23:28:05 | 46,874,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,621 | py | #!/usr/bin/python
__author__ = "Xing Zhao@Amro Zayed's Lab, York University"
__copyright__ = "Copyright (C) 2015 Xing Zhao@Amro Zayed's Lab, York University"
__license__ = "Public Domain"
__version__ = "1.0"
import sys
import os
import subprocess
import multiprocessing
from multiprocessing import Pool
import tempfile
... | [
"xingzhaoo@gmail.com"
] | xingzhaoo@gmail.com |
22f4a3cde7dd3570553c647df36bd391a1b6ce23 | 65ab083e1d2ae6e83681d3c46222332b7c2f408b | /Vanilla_game/Visual_game/Visual_game_1.0.0.py | 6ce79c86e8c92e52db1004d64a38e57c3f8f6e97 | [] | no_license | jean-dd/project_2048 | 492055e802820c5fbc8c71bfba1f9058613fb717 | ea4d1512df1f118c3200195c38122067c8960dd7 | refs/heads/master | 2023-03-28T00:23:12.501352 | 2021-03-26T11:36:33 | 2021-03-26T11:36:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,826 | py | from tkinter import *
import tkinter
import Fonction_2048 as fonc
color_cell2 = ['#FFFFFF', '#0000000', '#FF0000', '#00FFFF', '#d7b672',
'#cda869', '#c49a60', '#ba8c56', '#b07e4d', '#a77044',
'#9d623b', '#935532', '#8a4729', '#803920',
'#772a17', '#6e190c', '#650000']
test_c... | [
"estevenathan.a@gmail.com"
] | estevenathan.a@gmail.com |
4701aa2fd31a92cf43108595aabd49c120f8b640 | 80c55e9d3dd76f4902160e795c9eb1eb6b2bdf98 | /hep_scripts/createPSet.py | 012ed4935cbcf8d43fc712d04b75600e6e9a16f7 | [] | no_license | martynjarvis/stuff | f665389ea9ccb872e161376b6fbec5c80187f2dc | df8c7fc3706204020e5b1fe76383f9ed3367ec38 | refs/heads/master | 2021-01-25T12:09:21.128315 | 2015-04-11T11:48:26 | 2015-04-11T11:48:26 | 2,663,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,663 | py | #!/usr/bin/env python
import commands
import configuration_SCBooks as conf,sys,os,readline,getpass,string,fileinput,socket,datetime,re
user = getpass.getuser()
db = conf.lockedDB()
db.connect()
paths=[]
shortNames=[]
xsecs=[]
rows = db.execute('''select job.rowid,state,path,dataset,rpath,node
... | [
"martynjarvis@gmail.com"
] | martynjarvis@gmail.com |
c8505627362494931737ca5085fe06aca508dd70 | 731c6170829acf912143f9e65d86f45bce9102ea | /test/test_device.py | caf9bb0a60e0bc05ed0e29dd1b6a4314f93db19f | [] | no_license | Oculus-Dei/Oculus-Dei | 9774eae334a86d8e2b4a91d6da889f546a695ee2 | cde8cec5898e11aa274c609e1d4106b6e51f7896 | refs/heads/master | 2021-01-19T06:36:32.709805 | 2016-07-31T17:30:10 | 2016-07-31T17:30:10 | 60,718,426 | 3 | 0 | null | 2016-07-12T17:01:53 | 2016-06-08T17:53:48 | Python | UTF-8 | Python | false | false | 175 | py | # encoding: utf-8
"""
Created by misaka-10032 (longqic@andrew.cmu.edu).
TODO: purpose
"""
import ocd.device
def test_device():
d = ocd.device.Device()
assert True
| [
"longqicai@gmail.com"
] | longqicai@gmail.com |
9bf3af9ed8dc4993b4a9200c88c86d09cb70f3ac | 1c23582d09fb0ea2c023a07b6ee5268511d2016f | /mysite/mysite/settings.py | df8bbb9a12c6773e355103d8821f775a2b73ad14 | [] | no_license | lionelmav/my-first-blog | e42dd9346d46cb44200777f9e842f135cb24ac41 | 8bd516202f7ae79927a3ac82a032bc42494953c0 | refs/heads/master | 2021-10-27T13:35:30.767260 | 2019-04-17T10:25:37 | 2019-04-17T10:25:37 | 114,895,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,196 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
#... | [
"lionelmav67@gmail.com"
] | lionelmav67@gmail.com |
970da9acab0767a60462f40781e31e1f7fb1a296 | 2150c1ec1eb05a45be1a83becbc8b77baf416041 | /Sequencer V1/RunMecustom.py | 011d24231d0d4d178977ee0795441299243205d9 | [] | no_license | codinlikewilly/AntiMalwareResearch | 0c6c344aa06ac4c45291986fef518f58e7d8c3e7 | 83f815452203f5d2201e44868b7b60d67d55670d | refs/heads/master | 2020-07-17T08:24:54.669102 | 2019-10-19T19:11:08 | 2019-10-19T19:11:08 | 205,983,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,874 | py | from tkinter import filedialog
from tkinter import *
from tkinter import scrolledtext
from tkinter import messagebox
from Bio import SeqIO
from Bio.SubsMat.MatrixInfo import blosum62
from Bio import Align
from Bio import pairwise2
from generatesequence import *
from Bio.pairwise2 import format_alignment
a... | [
"noreply@github.com"
] | codinlikewilly.noreply@github.com |
f1251bf5e5a8f8baa2523cca915efe84346453b3 | bb4c1df98c072ab14b430c99e22425f8976039a7 | /Image Processing in OpenCV/geometric_transformations_images_translation.py | 708391afd174e717d1fb008307ba1f39be10011b | [] | no_license | Jorge-Marin/OpenCvLearn | c58e2f2127423776c33fade63ae3b08a48499055 | 3985a86117386ce3f3f03113a327734b04f2ba97 | refs/heads/master | 2023-02-06T16:40:39.262197 | 2021-01-02T00:48:23 | 2021-01-02T00:48:23 | 326,036,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | import cv2 as cv
import numpy as np
img = cv.imread('../Pictures/messi5.jpg', 0)
rows, cols = img.shape
M = np.float32([[1,0,100], [0,1,50]])
dst = cv.warpAffine(img, M, (cols, rows))
cv.imshow('img', dst)
cv.waitKey(0)
cv.destroyAllWindows()
| [
"jorge_reyes@lumminatech.com"
] | jorge_reyes@lumminatech.com |
7d49ef82b256217d382c9fe60d864b5193c71af1 | 2c6ffd9baff822e2d989e2f811462d58a9ecb3f9 | /habrachat.py | 717149f623c7f3996f00b9cfe1e786c3045d0354 | [
"Apache-2.0"
] | permissive | olax/habrachat | 372e8068075b36047883ef0811125954b4c0cfa8 | 66f8cb3d81b16be067bfa46079a6bae87ef2e433 | refs/heads/master | 2020-12-06T20:37:31.269542 | 2014-04-01T14:31:50 | 2014-04-01T14:31:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,187 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
from itertools import ifilter
import tornado.web
import tornado.websocket
import tornado.ioloop
import tornado.httpserver
import tornado.options
from tornado import template
from tornado.options import define, options
from tornado import gen, httpclient
... | [
"stalkerg@gmail.com"
] | stalkerg@gmail.com |
14261fcd2d7e5c95a9d7d59183927fc5340c9e97 | 74be4a1b316d931fd5592a8a531df3a7a4ccce75 | /generative_models/base_network.py | ef53ef53c972ab848078a99bec77dbd631c989c8 | [] | no_license | MWPainter/cvpr2019 | 28bb2e913b5526d981b4305c0abf3cb70c7f9022 | 6bab7a114df6daf6e6fe1de86954e0e2eae878ee | refs/heads/master | 2020-03-25T13:05:37.801030 | 2018-09-28T23:14:04 | 2018-09-28T23:14:04 | 143,808,549 | 39 | 12 | null | null | null | null | UTF-8 | Python | false | false | 2,267 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class TinyMultiTaskResNet(nn.Module):
"""
A helper class. Implements a small resnet, with multiple outputs at the end.
A fully connected encoder and decoder are specific instantiations of this class.
Assumes a ReLU activation on all... | [
"michaelpainter.1994@gmail.com"
] | michaelpainter.1994@gmail.com |
e0cf4895152902881fb261d6946c8fafce481379 | d5352f748b8cbf9f5670eb8265b859cc118fd7c7 | /LEETCODE/Q160.py | 33f5a70ff654d1334a93113e6f2bec1d34c1a61e | [] | no_license | yaleshen0/Algorithms | 8f648a70833dc7d533761040cd84ed1b4c59d597 | 4dc7f18284769cfb581092d0345fe58bd8d656df | refs/heads/master | 2020-06-16T04:46:45.501877 | 2019-07-06T01:27:53 | 2019-07-06T01:27:53 | 195,483,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def getIntersectionNode(self, headA, headB):
"""
:type head1, head1: ListNode
:rtype: ListNode
"""
if not... | [
"noreply@github.com"
] | yaleshen0.noreply@github.com |
e2867e9441ec9d08c32f06b306e0e5445e21ba90 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/device_management/windows_autopilot_device_identities/item/assign_user_to_device/assign_user_to_device_request_builder.py | ff8875e1753ae38b584215c01606fce1b123cec7 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 4,031 | py | from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAda... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
d7df95e2d8f3fffa861e53c77700ccfa7ae172bb | 50f893250eb45cd37965bca59b98d657e65be273 | /tests/test_exceptions.py | 62c1f327909296090699c0a39309260eeb1faa51 | [
"BSD-2-Clause"
] | permissive | meshy/framewirc | 7535d1661fcb808bb83d4d7d23551dcc3acfa410 | 3a75e95c3cdad8705d09e1e80d05feb766e97893 | refs/heads/master | 2020-04-10T22:50:52.480988 | 2018-03-05T21:35:13 | 2018-03-05T21:35:13 | 30,154,179 | 41 | 2 | BSD-2-Clause | 2018-03-05T21:35:14 | 2015-02-01T17:53:14 | Python | UTF-8 | Python | false | false | 242 | py | from framewirc import exceptions
def test_message():
attrs = ['some', 'attrs']
expected = 'Required attribute(s) missing: {}'.format(attrs)
exception = exceptions.MissingAttributes(attrs)
assert str(exception) == expected
| [
"charlie@meshy.co.uk"
] | charlie@meshy.co.uk |
603403af65a5cd7fc082a2abeb4b2ecfc0de19bb | c19756e9ee7c80807c024185325bd3f65ec67673 | /02_Quellcode/mqtt_Telemetrie_ThingSpeak_V2.py | 34689b5ef0a70cfd1ca97f6aaa0956351c43e3ad | [] | no_license | gchrizZz/Mohne | 086aab1b8e4df96d561ce090af7e569d0543da44 | 56d2f4d752ef82fe08d656c2bf6d24a1395b3294 | refs/heads/master | 2020-03-10T18:03:24.629118 | 2018-07-19T15:19:43 | 2018-07-19T15:19:43 | 129,515,857 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,357 | py | # ThingSpeak Update Using MQTT
# Copyright 2016, MathWorks, Inc
# This is an example of publishing to multiple fields simultaneously.
# Connections over standard TCP, websocket or SSL are possible by setting
# the parameters below.
#
# CPU and RAM usage is collected every 10 seconds and published to a
# ThingSpeak cha... | [
"noreply@github.com"
] | gchrizZz.noreply@github.com |
fa10586d94352de0499168fe9fe978716a677f73 | 1a1a106b7086a14e2e41832a7088c019bd9aa171 | /2017/three_b.py | bf494b5e7f47c305bb317040f6abff68961351fd | [] | no_license | jollyra/advent-of-code | ed370eeca784c6b2c475509da46579a38c4d225f | d54845865c753667482c52abed8116dad5d3a1c8 | refs/heads/master | 2021-06-09T21:31:49.032077 | 2020-12-02T05:44:35 | 2020-12-02T05:44:35 | 112,815,820 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,194 | py | #!/usr/bin/env python3
def main():
target = int(input().strip())
val = traverse(target)
print('ans: {}'.format(val))
def traverse(target):
# COO (x, y, val)
coordinate_list = [(0, 0, 1)] # seed
layer = 1
while True:
x, y = get_start_xy(layer)
cells = cells_in_layer(layer... | [
"nigel.rahkola@pulseenergy.com"
] | nigel.rahkola@pulseenergy.com |
b72176454b32fb3b30237453eeedda1a76257d7d | 91017f6263eaf7bda6cb543ed0ad53317e4d17ff | /Prediction/migrations/0003_stock_price.py | 8629606044cf230a44855a0a32d9fcabefa00935 | [] | no_license | rajeshgouda9/Stocky | f52fae6a76386b2495b8938e46d1efc08a2d8af8 | 48a57e78509bb1da089c7f1bb232612d3dabcf0f | refs/heads/master | 2021-05-26T23:00:12.438697 | 2020-04-08T19:48:01 | 2020-04-08T19:48:01 | 254,183,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # Generated by Django 3.0.2 on 2020-02-20 13:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Prediction', '0002_auto_20200220_1918'),
]
operations = [
migrations.AddField(
model_name='stock',
nam... | [
"noreply@github.com"
] | rajeshgouda9.noreply@github.com |
cf92c005a1721d643d21f4d381b395548a163f75 | d06c1ae2ae2980f97b40eb9ce11924c9f89461c6 | /ants.py | a95b0586cabc34c93422b7723ba04bfbe677bc2b | [] | no_license | rjchen7/ants | e83d58e66c022366d04b6adf8b7ba29037be70ab | f99220bd91e366e498948ef0f27bc44c9ced151d | refs/heads/master | 2021-04-03T12:56:51.397597 | 2020-03-18T22:25:34 | 2020-03-18T22:25:34 | 248,355,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,522 | py | """CS 61A presents Ants Vs. SomeBees."""
import random
from ucb import main, interact, trace
from collections import OrderedDict
################
# Core Classes #
################
class Place:
"""A Place holds insects and has an exit to another Place."""
def __init__(self, name, exit=None):
"""Crea... | [
"ryanchen.fl@gmail.com"
] | ryanchen.fl@gmail.com |
7a5dd415b1acbf634829abde2da9a0ec1acf2082 | 1f0c6364518d2459601a1a264d8eafdd3b73bfe5 | /src/OC/TemplateOC.py | b3e4fd14574580279189bd5e1c64294ec1f7bc95 | [] | no_license | BenShoeman/SonicOCBot | 33bde22a93aa1a763ab426af964b282d298a0422 | 555c86d1b5d798888803032ba65ab9835de58478 | refs/heads/master | 2023-08-31T18:15:08.302786 | 2023-08-13T02:51:57 | 2023-08-13T02:51:57 | 91,404,450 | 0 | 6 | null | 2023-08-13T02:51:58 | 2017-05-16T02:19:50 | Python | UTF-8 | Python | false | false | 4,132 | py | import numpy as np
import random
from PIL import Image
from typing import ClassVar, Optional
from .OC import OC
import src.Directories as Directories
from src.FillStrategy import create_fill_strategy_for_species
import src.Util.FileUtil as FileUtil
class TemplateOC(OC):
TEMPLATES: ClassVar[dict]
"""Data that... | [
"ben.shoeman@outlook.com"
] | ben.shoeman@outlook.com |
1284b29c7687c448925744f3184bd31b318594fd | e845f7f61ff76b3c0b8f4d8fd98f6192e48d542a | /djangocg/contrib/gis/db/models/fields.py | 55a33405216b7e3c6703d327ecdd148dc43ba484 | [
"BSD-3-Clause"
] | permissive | timothyclemans/djangocg | fd150c028013cb5f53f5a3b4fdc960a07fdaaa78 | 52cf28e046523bceb5d436f8e6bf61e7d4ba6312 | refs/heads/master | 2021-01-18T13:20:13.636812 | 2012-08-31T23:38:14 | 2012-08-31T23:38:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,206 | py | from djangocg.db.models.fields import Field
from djangocg.db.models.sql.expressions import SQLEvaluator
from djangocg.utils.translation import ugettext_lazy as _
from djangocg.contrib.gis import forms
from djangocg.contrib.gis.db.models.proxy import GeometryProxy
from djangocg.contrib.gis.geometry.backend import Geomet... | [
"timothy.clemans@gmail.com"
] | timothy.clemans@gmail.com |
5d780acba6ff7e74b8429b9ff4b39034902c2470 | 44ca5da5af6bde06fa28f024b44ef9519d507aa2 | /proj3/ea.py | b97ae3e707a5bfe005accff42d81f414c36864da | [] | no_license | nritsche/sub-symbolic-AI-methods | bff995677738a85257ec833aea05d8314c6476fd | ac75dbf14d3bb67895bfb70dccea80155abb5300 | refs/heads/master | 2021-04-03T06:33:07.314357 | 2018-03-09T19:53:50 | 2018-03-09T19:53:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,442 | py | import Tkinter as tk
from ttk import *
import array
from random import *
from operator import attrgetter, add
import copy
import math
from statistics import *
from bitstring import BitArray
import graphics
import time
import matplotlib.pyplot as plt
class GUI:
def problemChanged(self, event):
self.problemv... | [
"rick.nitsche@studenti.unitn.it"
] | rick.nitsche@studenti.unitn.it |
efa8dda5fb77fef60ac78db4946e0c01885f30c9 | 9e7f6d9eb33b76776498f84ae2f4c51b93d18960 | /ANN/ann regression/ANN_regression 2.py | 14fac9ffa20319b6427544d988e2fce8771ce6a1 | [] | no_license | Jutraman/Machine-Learning-from-Scratch | 404ff74a9aa847e77793ed715c38e22827cbda09 | 0790b3056e1317acff55ca6cf4b35d4c047f81a5 | refs/heads/main | 2023-06-24T15:34:46.035837 | 2021-07-21T09:30:51 | 2021-07-21T09:30:51 | 388,055,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,454 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 7 15:02:48 2020
@author: Administrator
"""
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 7 10:02:19 2020
@author: Administrator
"""
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
log_dir="D:/S1-2020.9/machine learning/d... | [
"noreply@github.com"
] | Jutraman.noreply@github.com |
09177b0fd6319c31fa7e32f81c9473d115073427 | 1fbc621de50f438b2d12623fb661edcdfcf91f48 | /delay_server/delay_server/gui/logging_frame.py | d01bb7ce22d18ef4eb1496bf0ecd1e37beabf391 | [] | no_license | dschor5/AnalogCommDelay | b89df61a5b92ae03cd4866181808aaa81c006317 | ce17bf787add23e9b28bc91e8b79eaaf1d5f1a08 | refs/heads/main | 2023-06-09T22:15:22.947617 | 2021-06-29T10:34:18 | 2021-06-29T10:34:18 | 326,800,688 | 0 | 0 | null | 2021-06-22T03:33:06 | 2021-01-04T20:31:23 | Python | UTF-8 | Python | false | false | 2,041 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import queue
import tkinter as tk
from tkinter.scrolledtext import ScrolledText
from delay_server.util.log_handler import QueueLogHandler
class LoggingFrame:
"""Class sends logging records to a queue that can be retrieved from a GUI.
"""
def... | [
"1176025+dschor5@users.noreply.github.com"
] | 1176025+dschor5@users.noreply.github.com |
d84e08b703ca0f6284f73d86ae09f6badf7143ce | 945f4069cb3043eb0cbf1d4b85e61b1afa64198c | /resume/asgi.py | 220e860cac5f40609c444f1b344ecae8048a4c49 | [] | no_license | Anyijukire/resumee | 022e8284ee1e9ef86203ad5ee78d74b959f8cf84 | b19e4d7f8713548cc1506747329ddb9719758256 | refs/heads/master | 2023-07-15T05:49:22.277378 | 2021-08-20T15:49:18 | 2021-08-20T15:49:18 | 398,041,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for resumee 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_SETTI... | [
"anyijukirjanett@gmail.com"
] | anyijukirjanett@gmail.com |
dc6ff6092a958e89a3f0d5524363e5dd2a151675 | 6477bd1a2da7ce9426c41a04674e19d801d358ef | /AOJ_introductionToProgramming/Topic06/officialHouse.py | b939e906993bdc082aedd251a5948b0e57129ceb | [] | no_license | takuma375/AtCoder | 6b917153d1597cdd6178db16417bf3b0a0d41850 | 9c24ac600ec80c3ebbc718c66437997462196ee3 | refs/heads/main | 2023-06-28T10:09:26.018064 | 2021-07-25T09:54:53 | 2021-07-25T09:54:53 | 382,631,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | n = int(input())
tbl = [[[0 for i in range(10)] for j in range(3)] for k in range(4)]
for i in range(n):
b, f, r, v = list(map(int, input().split()))
tbl[b-1][f-1][r-1] += v
for i, building in enumerate(tbl):
for j, floor in enumerate(building):
for k, room in enumerate(floor):
print... | [
"takuma-shimizu-10174@keio.jp"
] | takuma-shimizu-10174@keio.jp |
a0c388980789e8279aead795a5456b5d20c71d8c | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /apps/cloud_api_generator/generatedServer/tasklets/disk/getXMLSchema/disk_getXMLSchema.py | 7fb7c7b36663e1883b9bbf6c12744ce01caf7615 | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 180 | py | __author__ = 'aserver'
__tags__ = 'disk', 'getXMLSchema'
__priority__= 3
def main(q, i, params, tags):
params['result'] = ''
def match(q, i, params, tags):
return True
| [
"devnull@localhost"
] | devnull@localhost |
61cf66905bc0a97d62d0b3be655a9527446f7069 | ad3e8de09b8a314f4a6d9a59c54a421805776dc5 | /chapter2_notebook.py | a82b3519e837bab532e53b551c2ce2e4337e76e6 | [] | no_license | georstef/Python_ObjectOrientedProgramming | 6401a96195238fcc1624c519984e37e0894f92a7 | 6c00f30b31e8754dd18aa45bb42033c4d15b46ae | refs/heads/master | 2020-12-24T17:25:58.577160 | 2015-11-08T19:01:50 | 2015-11-08T19:01:50 | 15,637,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | import datetime
# global (singleton)
last_id = 0
class Note:
def __init__(self, memo, tags=''):
self.memo = memo
self.tags = tags
self.creation_date = datetime.date.today()
global last_id
last_id += 1
self.id = last_id
def match(self, filter):
'''
... | [
"georstef@gmail.com"
] | georstef@gmail.com |
2d5465cffaec39f1e38615d0dc066898635e8dfc | 7775a073201f568022bbb4ed3d04cb1639ae5e65 | /AtguiguShop/apps/trade/migrations/0001_initial.py | e2f1b9b40d2d911ffa6afe615e9928b8c1f80b8c | [] | no_license | a289237642/rest-api | 25db777fa1ca85fee77f86b8ae92d3656ce2ef40 | fd2c70245cb12212dcd2fd8899f789c3e41d1af2 | refs/heads/master | 2020-04-24T14:12:13.312539 | 2019-03-14T08:41:27 | 2019-03-14T08:41:27 | 172,012,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-18 11:28
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('goods', '0001_initial'),
... | [
"a289237642@163.com"
] | a289237642@163.com |
43ab0f48ed117b04799e9aedb8f76854683c5ae4 | 8b6b2eacbfeb97c5ea8b487ea784f296beae1b18 | /td-auth-master/tutordudes/public_chat/models.py | b8e5beb8463d82598aad30bcb1dce8a46d39eb11 | [] | no_license | FaizanM2000/Project-Demo-1 | c1ff244d457a2d8243e607dafec74931da0702b7 | e4aa4a0beed58ea7e3bf802beafeae6f6f9e8a6f | refs/heads/main | 2023-08-05T07:12:14.477072 | 2021-09-18T08:06:43 | 2021-09-18T08:06:43 | 403,812,761 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | from django.db import models
from django.conf import settings
class PublicChatRoom(models.Model):
title = models.CharField(max_length=255, unique=True, blank=False)
users = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=True)
def __str__(self):
return self.title
def connec... | [
"53056387+Sebastiangao0219@users.noreply.github.com"
] | 53056387+Sebastiangao0219@users.noreply.github.com |
d2438001e91dfcd299d78bf2947f8b3fb2d7bbb2 | 340886f11b67cebed3b4ad62d1376790243c7ee9 | /manage.py | cb6636a15c3ca1678733c9d5b09c91769697c5eb | [
"CC-BY-3.0",
"MIT"
] | permissive | heitorchang/students | f9f728bcc7af8d3582814f38000f269bb92a960d | ba5d6ca721d85aacb5f1563fff6c7d1c4b021d54 | refs/heads/master | 2020-08-08T01:52:01.031227 | 2020-02-03T17:44:25 | 2020-02-03T17:44:25 | 213,666,043 | 0 | 0 | NOASSERTION | 2020-06-05T23:35:40 | 2019-10-08T14:30:04 | JavaScript | UTF-8 | Python | false | false | 649 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'students.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"heitorchang@gmail.com"
] | heitorchang@gmail.com |
91cd1cbfd33b29dd461025593ae69b816281cf03 | a54a098bc6057789c1560f01ff7f756097a2c272 | /finch/project_settings.py | efd3308ab554373738d84ddbbcaae9c5e1c479ab | [
"BSD-2-Clause"
] | permissive | pterk/finch-cms | e1a947b68248c5a148fb6ca74ee0c40ca2638c7a | 75d8accbc75b0b6348d71e0eb94df997b1ed2ef1 | refs/heads/master | 2021-07-01T12:48:28.176284 | 2013-11-08T15:53:23 | 2013-11-08T15:53:23 | 2,636,167 | 2 | 0 | NOASSERTION | 2021-06-10T17:22:58 | 2011-10-24T13:08:36 | Python | UTF-8 | Python | false | false | 1,124 | py | tinymce = {
'TINYMCE_COMPRESSOR': True,
'TINYMCE_DEFAULT_CONFIG': {
"theme" : "advanced",
"invalid_elements" : "font",
"remove_script_host" : True,
"relative_urls" : False,
"remove_linebreaks" : False,
"button_tile_map" : True,
"auto_cleanup_word" : True,
... | [
"pterk@datatailors.com"
] | pterk@datatailors.com |
b6c77c5cbe4ed90bb1442aa78a62690d04bb0f7a | ed1a33ab1339e1be477d52598d51c5c85eb2f727 | /src/search/migrations/0001_initial.py | 564f3c2ccdf1a6a80a65e859fa046425a2f65578 | [] | no_license | cnnaeto21/udemy-django-ecommerce-course | 2f84c28c49e9db75c818f6e86efb5304faf59a3b | 96a9f8b1aaf8fba894c0ee1ce29f9ab1c423ce4b | refs/heads/master | 2022-11-27T04:30:11.680806 | 2020-08-10T18:16:22 | 2020-08-10T18:16:22 | 286,555,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2020-06-03 20:28
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 = [
migrati... | [
"cnnaeto@andrew.cmu.edu"
] | cnnaeto@andrew.cmu.edu |
654ac8526a6421f492a99837d995cfc01135878e | e069f8d0013ab289048e20dfd5a2bcc8019841c9 | /04-listas-y-listas/02-iteradores-lista/invertir-lista.py | 92e0f5c084f2c3b0e63fc8032390c0dcba008c16 | [] | no_license | francosbenitez/unsam | 9981e8196e3a9abb1fb29c170d43c55beec5520a | 1390e3245ee3f9a3f4aa97146a80ed56fa72cd45 | refs/heads/main | 2023-08-14T03:16:15.183354 | 2021-09-21T13:58:21 | 2021-09-21T13:58:21 | 373,769,485 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | """
Ejercicio 4.8: Invertir una lista
Escribí una función invertir_lista(lista) que dada una lista devuelva otra que tenga los mismos elementos pero en el orden inverso. Es decir, el que era el primer elemento de la lista de entrada deberá ser el último de la lista de salida y análogamente con los demás elementos.
def... | [
"francosbenitez@gmail.com"
] | francosbenitez@gmail.com |
686b59f860dbf252082c22864ef10cc2b22fb4ea | efba103793bfcb1abb80b496329ce9e82e52e1f5 | /21_Use_enumerate.py | edf8d80fefe586975861a1158b42b56bdc909c9b | [] | no_license | sultanularefin/python_snippets | ff2e1b07299f128e96c3985230a6dc77a94b91e7 | f667985922d09ea3a2f6420face1b78a4ed434a8 | refs/heads/master | 2021-07-12T10:44:06.925980 | 2020-11-13T09:57:15 | 2020-11-13T09:57:15 | 213,820,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | # 21. Use enumerate
# This snippet shows that you can use enumerate to get both the values and the indexes of lists.
list = ["a", "b", "c", "d"]
for index, element in enumerate(list):
print("Value", element, "Index ", index, )
# ('Value', 'a', 'Index ', 0)
# ('Value', 'b', 'Index ', 1)
#('Value', 'c', 'Index ', 2)... | [
"testafinsultan@gmail.com"
] | testafinsultan@gmail.com |
de45dc11566ff2713d4b1e4c83bd491a919bfed1 | 2df04546995b7c2f446a1b1907758688f226b108 | /lycee/models.py | aeea11424625d7658e2dfa516b9c76114aac8a0d | [] | no_license | quentiniglesias/projet_django | a9f6d74e369f0c2c2855a931548e154485e53707 | 61c861fa76a4d8a4f5e4219b50b35242da55422a | refs/heads/master | 2023-03-31T18:11:33.499515 | 2021-04-11T14:16:07 | 2021-04-11T14:16:07 | 356,386,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | from django.db import models
# Create your models here.
class Cursus(models.Model):
name = models.CharField(
max_length=50,
blank=False,
null=True,
default='aucun'
)
year_from_bac = models.SmallIntegerField(
help_text ="year since le bac",
verbose_name="year",
blank=False,
null=Tr... | [
""
] | |
adbdceca5ed229f3715c5b02449a90573cf11f36 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.MCD/Serif_12/pdf_to_json_test_Latn.MCD_Serif_12.py | e2a6c3fafba9bcc5590f3fd798d4299201704f19 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.MCD/Serif_12/udhr_Latn.MCD_Serif_12.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
6c657fce9ce8a1aa1cdaccb1a2576dd467877ce9 | e10ec4eef4737c982d8b9e0d702c7e9e6685e4b7 | /doc/tutorial/loop_solution_1.py | fee46317eba4e2ba02c4b802521d33a6417195f8 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yaoli/Theano | e01fe36da7d13521042d0237183bf6fe48d2ef60 | 2c9b4e1cf6669f81a1f3549c1bcbb2eacf5ceb7f | refs/heads/master | 2021-01-16T18:59:58.579536 | 2014-04-07T18:29:46 | 2014-04-07T18:29:46 | 2,617,809 | 3 | 0 | null | 2015-03-03T00:15:27 | 2011-10-21T03:02:45 | Python | UTF-8 | Python | false | false | 2,611 | py | #!/usr/bin/env python
# Theano tutorial
# Solution to Exercise in section 'Loop'
import numpy
import theano
import theano.tensor as tt
# 1. First example
theano.config.warn.subtensor_merge_bug = False
k = tt.iscalar("k")
A = tt.vector("A")
def inner_fct(prior_result, A):
return prior_result * A
# Symbolic de... | [
"nouiz@nouiz.org"
] | nouiz@nouiz.org |
f614502f48eccbb92ccebba0a6d2581d890aa357 | 76ce3d2280ff1e66b5fbb7c2770dfcdfba2dd2e1 | /test_lightform_demo_package/main.py | 8b6664a8bf7bfd949c09068ec429c303f70f058f | [] | no_license | aplowman/test-lightform-demo-package | f27d496007a21c9533fee0a391513946cfa65637 | 7290e22161abe7d73eda67534feb78a3d46ac2e4 | refs/heads/master | 2020-08-30T06:28:29.654367 | 2019-10-29T13:21:08 | 2019-10-29T13:21:08 | 218,290,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | """This file contains the actual code of the package. It can be called anything (not
just "main.py"). We can also spread our package code out over multiple files (and even
sub-packages).
"""
def do_something_useful():
print('I did something REALLY useful!')
print('Yes.')
| [
"adam.jp@live.co.uk"
] | adam.jp@live.co.uk |
7c8928d1d51b67042337a697959f5520ede2bdc0 | e3d413decef119cee09532aa84b3d310cefbbf1a | /ejercicios/oscar/python/flask_app/mongo_find.py | 680423ec836995ef6fa86bdd7b1c62d5b856bc56 | [] | no_license | Jsee-97/Mi-Github1 | e5426e0dbf09bab1614ef68ec4022c115127f0c8 | 80ff2805de15da7f05b8297df11d0fdc77374f33 | refs/heads/master | 2022-12-29T08:58:11.186029 | 2020-10-23T18:46:30 | 2020-10-23T18:46:30 | 292,120,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from pymongo import MongoClient
client = MongoClient()
collection = client.pessoa
count = 0
for x in collection.pessoa.find({'TS': '1603141937'}):
count += 1
print(x, "\n")
print('Tem', count, 'Dispositivos')
| [
"moraolup@gmail.com"
] | moraolup@gmail.com |
b8de4000ac09a9252f0629d29a4904fd196ea84e | f6c0c41c6a10df05f124604dbb085b16f8d786c7 | /users/models.py | 45d25f6fe6a1b1bd2060ddcc439726ada15e7a44 | [] | no_license | TinStay/Django-Diary-App | a918e2d9561475cdea3336e0e29e6838c0cc02fd | 6122c93ff8a6f7be075d48f8062a85a511366ad2 | refs/heads/master | 2020-07-08T21:59:56.885531 | 2020-03-09T20:05:02 | 2020-03-09T20:05:02 | 203,790,729 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
image = models.ImageField(default='default.jpg', upload_to="profile_pics")
def __str__(self):
return f'{self.user.... | [
"marti.staykov@gmail.com"
] | marti.staykov@gmail.com |
8ca4bac9260809a1bcd2cd10721ce95d6ba4d826 | 60674a1c4ea2071bd905e7c6e2673da3eca78176 | /app/views.py | 589553ad4c270a9475d93998ea8329c29fa15be6 | [] | no_license | vishalsuthar1003/vishal | c3fa6f7f262e5f7c85e70d7a1127af28bea84d98 | 2ec719f6711b8e943c0e139a630625523aadb7b5 | refs/heads/master | 2020-06-17T02:10:55.252116 | 2019-07-08T08:08:09 | 2019-07-08T08:08:09 | 195,764,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | from django.shortcuts import render
def registration(request):
return render(request,"app/registration.html")
def form(request):
return render(request,"app/form.html")
def form(request):
return render(request,"app/registration1.html")
def registerUser(request):
fname= request.POST['fname']
lname= re... | [
"52650457+vishalsuthar1003@users.noreply.github.com"
] | 52650457+vishalsuthar1003@users.noreply.github.com |
4c9ab3dc477a8746e0cb8fbe150a54692002b6d8 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5686275109552128_1/Python/SiaKateb/B.py | 6a3e7e9c2dee218a9b3e27a1dcc9f988f0fd6609 | [] | 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 | 286 | py | __author__ = 'siavash'
T = input()
for t in range(T):
D = input()
P = list(map(int, raw_input().split(" ")))
ans = max(P)
Z = 2
while Z < ans:
ans = min(ans, sum([(x - 1) // Z for x in P]) + Z)
Z += 1
print 'Case #{0}: {1}'.format(t + 1, ans) | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
246918b901609e597247c078dc7593501495b9f4 | d5a9b3c36b757b0bee647d5613ba757ba705177a | /read_counts_from_genomic_region_bam_byss.py | 51ac5c33942908a15c8724cc01e476a509df3817 | [] | no_license | bioCKO/Bioinf_utils | c0f84c399f3390c343f81c1aca9952dfb449f178 | 1ba6d4791d8fac61418a61aa15d35363f786b47d | refs/heads/master | 2020-12-04T04:04:30.437803 | 2017-05-25T07:17:13 | 2017-05-25T07:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,972 | py | __author__ = 'mjohnpayne'
import sys
import subprocess
import glob
import time
inmedian = open('/Volumes/MP_HD/CI_GENOME_SEQ/Clinical_isolates_sort_bam_(lofreq_in_progress)/GATK_processing/depthofcoverage_stats/CI_median_readdepths.txt','r')
outfile = open('/Volumes/MP_HD/CI_GENOME_SEQ/CI_gene_coverage (generate s... | [
"mjohnpayne@gmail.com"
] | mjohnpayne@gmail.com |
c710ec97e539292ec36480326e50183f4d153442 | 477933f7898e838da1b4429db056f517b5b0b10e | /ai_player.py | 87566a1f57f29e0b73f0e8b15351a217c35496fd | [] | no_license | imcauley/Dominoes | 41f7f1353c52e98fb4d44b9011eaf91f5abc3ce3 | 1353425c6dd10a35fc10a69adbd812f433741218 | refs/heads/master | 2021-04-26T23:32:30.359853 | 2018-05-23T03:58:08 | 2018-05-23T03:58:08 | 124,012,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | from player import Player
import random
class AI_Player(Player):
def get_piece(self, board):
flip = 'n'
for index, piece in enumerate(self.pieces):
if(piece.left == board.right):
pos = 1
break
elif(piece.right == board.left):
... | [
"isaac@imcauley.com"
] | isaac@imcauley.com |
c32aa8be42308d26a82805e82ac5314f76cd0b8d | fee5529f2ce44124d92eee5e238c17dc4dd2a52b | /tf_baseline_eval.py | 5b802c818bbf80fc483ac864900deebd1965f800 | [] | no_license | judithliatsf/to_distill_or_not | 819bf1189ed64f619165ce42bcfccdf2b39e40fe | 782f6a65c3d41784182fcb46bf182988baa711d7 | refs/heads/master | 2020-09-06T23:54:16.380168 | 2019-11-28T07:49:32 | 2019-11-28T07:49:32 | 220,594,834 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | import tensorflow as tf
import time
from transformers import BertTokenizer, TFBertForSequenceClassification,DistilBertTokenizer, TFDistilBertForSequenceClassification, glue_convert_examples_to_features
import tensorflow_datasets
# Load MRPC data
data = tensorflow_datasets.load('glue/mrpc')
# Pick GPU device (only pic... | [
"yue.li@salesforce.com"
] | yue.li@salesforce.com |
ba73fb25f33a0607d8ac347699a98e43c2049557 | d157552a86867ff0397a9eceab72266655718ea9 | /swlab4_books/swlab4/swlab4/migrations/0002_auto_20210414_1214.py | f34333cbc5f1b8417288d75ec5e6c81a82495beb | [] | no_license | AradM/SW_Lab_Session4 | b07d22bcdfa3d186e9cf794c5776ddb7de50f665 | 9dfac3acb2f6d1b90c3275c8687738c2d892ae46 | refs/heads/main | 2023-04-25T01:02:01.613621 | 2021-04-29T12:19:28 | 2021-04-29T12:19:28 | 357,873,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | # Generated by Django 3.1.2 on 2021-04-14 12:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('swlab4', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='client',
name='token',
fie... | [
"ashkan.m10@gmail.com"
] | ashkan.m10@gmail.com |
b5336c87e8cc072bb6bdcd295dbc4bae0d905de7 | e7974db0bfc652458c4169dd39fe1c76d41e3043 | /codebase/backend/hello.py | dbe011cc5fc3fa9a18127580e4fd687f5d2f44b7 | [
"Apache-2.0"
] | permissive | WAY-tomorrows-mobility/mesh-hackathon-way | 860c9c3c9557e505f1fd02d45c7ac13e15d6b3fb | 69815c3e7677148ad327b76bce7209c9cd065747 | refs/heads/main | 2023-03-12T04:50:59.473253 | 2021-02-28T10:59:06 | 2021-02-28T10:59:06 | 342,933,490 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | # from cloudant.client import Cloudant
from flask import Flask, render_template, request, jsonify
import atexit
import os
import json
from controllers import userController, orderController, adminController
from flask_cors import CORS
import db_Setup
app = Flask(__name__, static_url_path='')
CORS(app)
db = db_Setup.... | [
"lkrauter@stone-e.de"
] | lkrauter@stone-e.de |
e53add17d9d61f87f7dfa4947dd122f82574da9b | e9b94d902b9c2db6317137627ddb673391c24a45 | /reviews/api/urls.py | 067ac586e573b3780551c72c07386bbc665f066e | [
"MIT"
] | permissive | mindruion/ethics | da5371ba899f8dceca81af310c120960cd82f1e4 | 1456a6f19f91c69013e1e63935215da316b187e6 | refs/heads/master | 2023-06-29T21:41:32.645681 | 2021-07-30T07:56:31 | 2021-07-30T07:56:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | from django.urls import path
from .views import MyDecisionsApiView, MyOpenDecisionsApiView, \
OpenDecisionsApiView, OpenSupervisorDecisionApiView, \
ToConcludeReviewApiView, AllReviewsApiView
app_name = 'api'
urlpatterns = [
path('<str:committee>/decisions/',
MyDecisionsApiView.as_view(),
... | [
"t.d.mees@uu.nl"
] | t.d.mees@uu.nl |
2478354a4bb5beb8dea278ead1ed5e8c9399627a | 35d94a804d3ce1f6fced851cab9d9a82682cd115 | /app/core/settings.py | 85c39da4de96e66e3a7ab5dd1c05f0634c1a594e | [
"MIT"
] | permissive | aquaf/recipe-app-api | 01fd6b365f1e5c0a669cf4f6a6b8405c945a67e0 | 8d2636eac27bd18264a15a65bcb84f1a4edbb2b6 | refs/heads/main | 2023-09-05T23:07:55.859272 | 2021-10-22T12:55:36 | 2021-10-22T12:55:36 | 419,667,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | """
Django settings for core project.
Generated by 'django-admin startproject' using Django 3.2.8.
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 im... | [
"nsv89work@gmail.com"
] | nsv89work@gmail.com |
e2d02ff923b529ec6e62b074060f15cb95b98d33 | 9fb11049f9afa192a80ad34fd36dc966d1c49f23 | /C2Ex5.py | 8783121446d782bd210e85264c6e2dca847d810e | [] | no_license | Seekcha/PythonCode | b36a2bc8d0e4b1f3f4c35868d6ef6dfa46284701 | 477254c14aa10f691ee47860a7a6fb22ae2edef9 | refs/heads/master | 2020-09-11T00:14:05.311625 | 2019-11-15T08:18:51 | 2019-11-15T08:18:51 | 221,876,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | """
Week 2 Cour 2 Ex 5
Seekcha Sungkur
Q: Afficher 1 a n par etape (saut) de m.
"""
m = int(input("inserer votre chiffre a compter par etape: "))
n = int(input("inserer votre limite: "))
count = 1
while count <= n:
print(count)
count += m
| [
"noreply@github.com"
] | Seekcha.noreply@github.com |
7a0b281c0707828a0e8c7afce58a3cbce2546ca8 | faf793376991092615975a559c6bed4e093acc44 | /SECTION 25 first step with Django/180 to install Django.py | 0ce11cffde7701e2493656f21e382c11f53f4e95 | [] | no_license | jdiaz-dev/practicing-python | 2385f2541759cfc9ed221b62030c28e8cf6ddde4 | 139b7dd4332e9ab3dd73abee0308cff41f4657fe | refs/heads/master | 2023-04-05T06:13:53.590830 | 2023-03-19T16:06:00 | 2023-03-19T16:06:00 | 320,443,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | """
--there are many ways to install Django
--first: podemos montar un entorno virual de Python, que permite saltar de una version a otra de python y saltar de otra version a otra de Django, esto esta bien; pero la instalación se complicaría, y no es necesario para una entorno local de desarrollo
--la in... | [
"lordgelsin26@gmail.com"
] | lordgelsin26@gmail.com |
0d5726f152f9f29dc6f7a99fdac51cb48fd8542c | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.5/django/core/files/locks.py | cbaa7b25d79ec5bfb418ecc45a01915b02922066 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.5/django/core/files/locks.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
8720bb643156f328e461e5823bfe66251fcb0db4 | 8f9793f3f16ffb5040e43484a9eb3873813ef77a | /print_sequence_lengths.py | bb23cb9c3d8e92b5056fd925bdfeac11c5cb0a2d | [] | no_license | boulund/bioinformatics-scripts | 2646f2701bea26883e9ad4864ca5e9c10a92cb4b | 54a14b3d809e15ba3a891706bf3b30664f9a5cd2 | refs/heads/master | 2020-07-08T00:34:27.655926 | 2017-12-28T08:57:35 | 2017-12-28T08:57:35 | 203,518,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | #!/usr/bin/env python2.7
# Fredrik Boulund 2015
# Print sequence lengths and headers
from sys import argv, exit
import os
import fnmatch
from read_fasta import read_fasta, read_fastq
if len(argv) < 2:
print "usage: script.py FILE [...]"
exit()
if __name__ == "__main__":
for filename in argv[1:]:
... | [
"fredrik.boulund@chalmers.se"
] | fredrik.boulund@chalmers.se |
9e27d0c0c26c12d02121c094b5d302afa9d966f9 | 66cc45f47d0c4fed1bd9e3022041c5d348bed73c | /Ansys_Repo/Pyansys_Utils/Ansys_MAPDL_Core/11. translating_scripts.py | ad501e09242f52a0af9271c1299e3fb8cd72d2c7 | [] | no_license | juzhong180236/NewPython | 922a9f7fb1f64e7a983e667dc151b66a891e760f | a593c86bee70199946c1b4d3c969cffec19a0149 | refs/heads/master | 2021-11-23T09:23:42.953009 | 2021-11-17T08:49:06 | 2021-11-17T08:49:06 | 199,616,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | '''
2021.07.18
'''
from ansys.mapdl.core import launch_mapdl
import numpy as np
mapdl = launch_mapdl()
# 这个也可以用mapdl.core,比如下面
import pyansys
inputfile = 'ansys_inputfile.inp'
pyscript = 'pyscript.py'
pyansys.convert_script(inputfile, pyscript)
# 用mapdl.core
import ansys.mapdl.core as pymapdl
pymapdl.convert_scri... | [
"529276748@qq.com"
] | 529276748@qq.com |
488c2491962e739d247fafefb059cf7944ec8190 | fcc8615bb48771cc9fcd7636ce41f753217d6c34 | /section2/make_class.py | 049a78022e4a6160fbdadb44d3f8bb0bf90bf870 | [] | no_license | weon-seongjae/crawling | b2dea9b2a03ab074869f5dc9f287ccbc7f0cd68f | 6bcca461258bba0b56858b611d83e494c2d5a051 | refs/heads/master | 2022-11-08T15:19:23.718483 | 2020-06-25T13:23:18 | 2020-06-25T13:23:18 | 273,899,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | # Classes Documentation : https://docs.python.org/3/tutorial/classes.html
import sys
import io
class User_info():
def __init__(self, name, phone):
self.name = name
self.phone = phone
def print_info(self):
print('-' * 30)
print('Name: ' + self.name)
print('Phone: ' + s... | [
"weonsj@gmail.com"
] | weonsj@gmail.com |
61770f14dc37f1290bbe346abd57f4aca5b5f260 | 31961b836297cd14768f7ecd074dfd7533ae6819 | /app/admin.py | 92c2f6e0304cf8c8033f023ada31a94596a8b3ed | [
"MIT"
] | permissive | thatguy1104/MieMieDjango-Web-App | f1bfdd38c82f4fa7a3218b31a7abab5a6996223d | 8124d6f157a74b9e9d5bc61415c70d0106652490 | refs/heads/master | 2023-07-17T14:16:31.493535 | 2021-08-31T08:14:44 | 2021-08-31T08:14:44 | 341,388,574 | 0 | 3 | MIT | 2021-06-22T14:10:15 | 2021-02-23T01:22:30 | HTML | UTF-8 | Python | false | false | 311 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Module)
admin.site.register(Publication)
admin.site.register(BubbleAct)
admin.site.register(ApproachAct)
admin.site.register(SpecialtyAct)
admin.site.register(ColorAct)
admin.site.register(UserProfileAct)
| [
"30369753+thatguy1104@users.noreply.github.com"
] | 30369753+thatguy1104@users.noreply.github.com |
9bd9447b16887d8c853d33373cfe76d2145cc3ee | 1ba2f5282084f967aed5df2f614b79366ea8070c | /sort/bubble_sort/bubble_sort.py | bb27adb5aa11000f9146b1eae2954c22a32fddb3 | [] | no_license | rohitmi0023/cs_programs | fcdb45a7ff3291c6fa0b44cfdbfd76d826bd805f | 7396daf0c2a65574da674c6dfef91a09138034ac | refs/heads/master | 2023-07-17T08:47:54.806128 | 2021-09-01T16:36:52 | 2021-09-01T16:36:52 | 205,328,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | def bubble_sort_func(lists):
# In total we have to make length - 1 iterations
for i in range(1, len(lists)):
# In an iteration we have to further make length - i iterations
for j in range(0, len(lists) - i):
# Comparing the current and the next element
if lists[j] > lists... | [
"you@example.com"
] | you@example.com |
c570d5aa7a12a86dd5b9087753fdf073ddd601ff | cf3808dbe9c57f9c47dbd9724f01e51592cf5546 | /Exercise2/Python MapReduce Code/mapper.py | ff4cb50a881d93b4ff5cfd0372ee8b7579b70379 | [] | no_license | Dylansppy/Scalable-Data-Science | 4c5e1903467e984baa3fc5ef5e92acd5f3ae5e82 | 54264a7ddd8d39244bf6baf8890130c7ba550cae | refs/heads/master | 2020-06-30T08:11:57.502403 | 2020-01-21T22:25:54 | 2020-01-21T22:25:54 | 200,774,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/usr/bin/env python
"""mapper.py"""
import sys
# input comes from STDIN (standard input)
for line in sys.stdin:
# remove leading and trailing whitespace
line = line.strip()
# split the line into words
words = line.split()
# increase counters
for word in words:
# write the results to ... | [
"noreply@github.com"
] | Dylansppy.noreply@github.com |
bd7250d64dfed34e37f9350dc64f656ada473d57 | f49a63af1f2154997fe7978b7439d8500cf85a57 | /pe036.py | e2fd1844437c708aea6d889f8f0c4ba3ee28050c | [] | no_license | namannimmo10/project-euler-solutions | fb3df8a16fccaccfa2fec8093081596fbbb600a5 | 84e3f04c41a8392264e195d1fd39f3ea598ae8ef | refs/heads/master | 2021-06-24T23:07:15.125883 | 2021-01-26T14:54:54 | 2021-01-26T14:54:54 | 180,155,243 | 8 | 19 | null | 2022-10-29T23:03:12 | 2019-04-08T13:29:28 | Python | UTF-8 | Python | false | false | 440 | py | #code created by NamanNimmo Gera
#11:39am, April 13, 2019.
import math
def reverse(s): #function to reverse the string
return s[::-1]
def isPalindrome(s):
rev = reverse(s)
if (s == rev):
return True
return False
i = 1
tot=0
while(i<1000000):
if isPalindrome(str(i)) and isPalindro... | [
"noreply@github.com"
] | namannimmo10.noreply@github.com |
1c3540ae3123a128e233d3f30f6758081adf1b3d | 1e300f44bfc362138d915df4a4a199e984c3466a | /ebay/ebay_france/spiders/getProduct.py | cbb2bd6b32f11bcbb1081be036fec17fee741e05 | [] | no_license | xiaoweiab/learn1 | 1e334b2e46dc8cc271c5c12bfdaa7bdd28690586 | 64cee8eefe405a72a26eeb9c457812c5d9082e3d | refs/heads/master | 2020-04-25T17:18:54.912776 | 2019-02-27T15:24:40 | 2019-02-27T15:24:40 | 172,943,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | from scrapy.http import Request
from bs4 import BeautifulSoup
import scrapy
import requests
# from ..items import EbayFranceItem
import csv
class GetProduct(scrapy.Spider):
name = 'getProduct'
# allowed_domains = ['www.ebay.fr']
start_url = "http://www.ebay.fr/sch/allcategories/all-categories"
writer ... | [
"38721331+samma1570@users.noreply.github.com"
] | 38721331+samma1570@users.noreply.github.com |
48896bc00b746945a616d8235e25c54310b9ad24 | 31464655e42d4f1f1a9262ea6b17acdc306b6743 | /leap/__init__.py | 3cfbac66652e132752dfee7ae340eaeb3f782e4d | [] | no_license | YemiNeutron/leap | 6750d5d3bce46b5d5b0f982bf251b83e83f7d9a7 | 9543fc77e4ac10005fd1e76cd2a58851a3031e9a | refs/heads/master | 2021-01-23T04:44:27.538168 | 2016-11-14T02:00:16 | 2016-11-14T02:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | from .leap import app
| [
"FemiAw@users.noreply.github.com"
] | FemiAw@users.noreply.github.com |
286d5ff24ea24d6535c94fdf4d312bff1c8e2b36 | b15f2b428fc7e35ed0f220e63b0c0ae21df2d481 | /python/speed.py | be810577b697c1333e37c3afd5368397d760fe75 | [] | no_license | ktsiam/AntColony | 9f7188f89c4275eb469239caacfc0c1eb2f98898 | bed6076968abd2221b918f56989a6645926ee3bb | refs/heads/master | 2021-04-29T18:24:38.128718 | 2018-03-02T23:49:16 | 2018-03-02T23:49:16 | 121,691,969 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | from board import *
import numpy as np
import time
start = time.time()
b = Board()
loops = 1000
for i in range(loops):
act = np.zeros((NUM_ANTS, ACT_LEN), dtype=int)
act[:,1] = np.random.randint(-1,2,(NUM_ANTS))
b.update(act)
end = time.time()
total = end - start
print(total, "per update: ", tot... | [
"josephehowarth@gmail.com"
] | josephehowarth@gmail.com |
12f6c6b8d204540466ed1013d74a41e66d124977 | 8148d97ac71faa58fa37176359f7a153661d5499 | /challenges/016-rightmostchar.py | 422b9b9cf7631ac32f217f4819a994a789b974ae | [
"MIT"
] | permissive | Widdershin/CodeEval | f19c8084060c34455a7fa5cd13eeaeb4b00fa48a | c1c769363763d6f7e1ac5bf3707de2731c3bd926 | refs/heads/master | 2020-06-01T18:01:06.738302 | 2015-04-02T11:38:02 | 2015-04-02T11:38:02 | 14,095,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | """
https://www.codeeval.com/browse/31/
Rightmost Char
Challenge Description:
You are given a string 'S' and a character 't'. Print out the position of
the rightmost occurrence of 't' (case matters) in 'S' or -1 if there is
none. The position to be printed out is zero based.
Input Sample:
The firs... | [
"ncwjohnstone@gmail.com"
] | ncwjohnstone@gmail.com |
55d7b2fdfe48c183ffac3f0d5e7e545261b6496c | e8cfc888d3756635d49c9cb92fd0af02af58a18d | /customer/migrations/0007_customer_customer_picture.py | b1261aaa804b4f413366b55ee2d6f8e6ddb47da9 | [] | no_license | maryvillondo/MHA | 666b7b78c5f5671e4c2ecbbc0fdefd01f8946836 | 271b39c0866d006d3719d4de6ddb5544485d852d | refs/heads/master | 2022-12-27T21:02:44.116961 | 2020-10-16T11:54:02 | 2020-10-16T11:54:02 | 296,863,527 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # Generated by Django 3.1.1 on 2020-09-23 06:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('customer', '0006_remove_customer_customer_picture'),
]
operations = [
migrations.AddField(
model_name='customer',
na... | [
"maryvillondo@gmail.com"
] | maryvillondo@gmail.com |
ed2e5a15b0308028be8c4dcf2f25b68e7a37e18a | 771b8d8b60783ed8181de344e418691bd2cf882d | /nb_hook/migrations/0001_initial.py | 18adea7e3bab930b9cade0de8bcf78deae8ae901 | [] | no_license | mozilla/mozilla_webhook_sync | 3c99eaa43e36e21b5a55e95c9e75c613fbef6aaa | 8e955e1f6416bbb4e04246f0bbc67acab6e73af3 | refs/heads/master | 2023-09-03T22:53:22.737607 | 2017-11-06T11:22:40 | 2017-11-06T11:22:40 | 66,299,225 | 0 | 0 | null | 2016-10-18T21:54:49 | 2016-08-22T18:48:53 | Python | UTF-8 | Python | false | false | 679 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-19 22:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateMode... | [
"walter@fissionstrategy.com"
] | walter@fissionstrategy.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.