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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60e93b6931bbe1a569545feb88123f30f7f44f44 | a26472ee6694b9aad73d009667728b5482b1e8b4 | /inventory/forms.py | cc8f9fb0ff46a73a398a76c858136f3277190f36 | [] | no_license | peterson1999/managementsystem | a1dd49916284c960aa2053765dbba49ff84be4d1 | 9c2392cfffe202820aa71b40c137bb03880b717e | refs/heads/master | 2022-12-28T03:35:13.276873 | 2020-10-16T15:26:41 | 2020-10-16T15:26:41 | 290,228,900 | 0 | 0 | null | 2020-10-16T12:50:09 | 2020-08-25T13:53:47 | Python | UTF-8 | Python | false | false | 531 | py | from django import forms
from .models import *
class ProductForm(forms.ModelForm):
class Meta:
model=Product
fields = ('category', 'brand','name','price','stock',)
class MultiImages(forms.ModelForm):
class Meta:
model=MultiImage
fields = ('image',)
class OrderForm(forms.Model... | [
"anjunieco@gmail.com"
] | anjunieco@gmail.com |
decaae0b54d14f6096ea42bf73d736efa07a8495 | ce5dec2a0601afbe7666df6d3be8d186245cc6ab | /10-dinamicno-programiranje/minsko_polje.py | 6a0215c5c5b9921630c98b8d2b798a0a456fc6fa | [] | no_license | jakobvalic/RAC-1 | aa9a15abdd657bbc8df31e219835ae762ec9f8b3 | 5b14f61e46761a272738fb93c007a00f147e36d0 | refs/heads/master | 2018-12-20T07:09:18.034633 | 2018-09-18T07:34:42 | 2018-09-18T07:34:42 | 118,833,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,524 | py | # =============================================================================
# Minsko polje
# =====================================================================@010509=
# 1. podnaloga
# Robotka moramo prepeljati čez minirano območje, ki je pravokotne oblike
# in je razdeljeno na $m \times n$ kvadratnih polj. Na z... | [
"jakob.valic@gmail.com"
] | jakob.valic@gmail.com |
524ccd8f6e0f5739ac7fcba048a7a10e5d75824d | db79787a8726e136e48b25133fbe6724d25ec5f2 | /src/uiopstestcase/ops_testcase09_citymanage_areaadd.py | 4fca3f5db348942618545b8c2aa343eb3a4fbf0e | [] | no_license | cash2one/edaixi_python_selenium | a1d51ada40788c550f3014bf62a44360781b27b9 | ae63b323a46032dc3116c4515ee375ace67dddda | refs/heads/master | 2020-05-22T16:55:53.137551 | 2016-11-26T15:31:52 | 2016-11-26T15:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | [
"ibmcuijun2015@126.com"
] | ibmcuijun2015@126.com |
e6dfe1b20f406269746fe4d77c02d931f95e03f5 | 623ebf2af50e4473994c6a4911c8a74ecbb19b34 | /budgetproject/urls.py | 48a22cea86e670b0166db168462614af094727d3 | [
"MIT"
] | permissive | Meakelvis/Project_Budget_app | 57dac521d698fe0b658872eeb1340a64dff4804c | 378cc8a364a2623e42bcc5193c0344cd016579f5 | refs/heads/master | 2020-06-23T22:08:51.623524 | 2019-07-26T14:12:52 | 2019-07-26T14:12:52 | 198,767,932 | 0 | 0 | MIT | 2019-08-06T06:24:57 | 2019-07-25T06:05:51 | Python | UTF-8 | Python | false | false | 802 | py | """budgetproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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... | [
"markelvis37@gmail.com"
] | markelvis37@gmail.com |
fc2a5b8c56d6d6995033f1add6c0aa59388b4c7e | a68502d5a9f259ee82bff46440f580413fba2640 | /nutritionix_mcd_public.py | 08664de180e9bcbebe3e427a0b12e2b79877d5e1 | [] | no_license | jenzhenky/fast_food | 3e82e541f261b601a814c40ae27c343299ae23ca | 26cfcaf7f6f4999cbf955462ebd71e44563dd45f | refs/heads/master | 2020-03-27T18:56:07.441813 | 2018-09-22T23:59:20 | 2018-09-22T23:59:20 | 146,954,389 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | from nutritionix import Nutritionix
import json
nix = Nutritionix(app_id="XXXXXXXX", api_key="XXXXXXXXXXXXXXXXXXXXXXXXXXX")
mcd_search = nix.search().nxql(queries={"brand_name": "mcdonald"}).json()
mcd_hits = mcd_search['total']
dict_mcd = []
for i in range(round(mcd_hits/50)+1):
data = nix.search().nx... | [
"noreply@github.com"
] | jenzhenky.noreply@github.com |
574e6651485bda54703ff6affe5bca8b0db11e1f | 1f54501e3ed025464fbe2f42e9d9046b8c088cbe | /Config.py | 1c0142fe939a11f6ebbe4b6d91cc6ec7b035b5ee | [] | no_license | Anemun/AnemEvolutionSimulatorPy | 1b5decaba42d828bb4b446b5589dd88dfe1fefb4 | e2efdb1f682e7cc6107ef83f47be5be8582cf8e8 | refs/heads/master | 2020-03-31T21:00:46.285149 | 2019-08-27T14:40:10 | 2019-08-27T14:40:10 | 152,563,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | MAX_TICKS_PER_SECOND = 200
WINDOW_SIZE = (1200, 700) #default 1200 700
WORLD_SIZE = (165, 80) #default 165 80
DRAW_CELL_SIZE = (6, 6)
MAX_GENOME_DIFFERENCE = 1
PHOTOSYNTESIS_VALUE = 5
FOOD_TO_HEALTH = 1
FOOD_TO_ENERGY = 0
ORGANIC_TO_HEALTH = 0.75
ORGANIC_TO_ENERGY = 0.25
GOD_MODE = False ... | [
"anemun@gmail.com"
] | anemun@gmail.com |
02012e0e8d0fdad41864f5aae4f295faf8bbf69c | 932b8ef09482ba1c041b52d9b261b7e87fe428dc | /0529/qugongzhang.py | 0f8e12b0e3885b2dd3bf7d72fd12bd0fd558c584 | [] | no_license | yuehongxia/lala | 61a29787fa491c79672aa1160c569a2f911f33d3 | b9ea75caf5d8e20539d85028aba98c7a774a0166 | refs/heads/master | 2020-03-19T03:05:49.873175 | 2018-06-01T08:51:58 | 2018-06-01T08:51:58 | 135,694,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,165 | py | # -*- coding: utf-8 -*-
__author__ = 'River'
import cv2,os,shutil,datetime,re,time
from threading import Thread
from hashlib import md5
# im = cv2.imread("1.jpg") #读取图片
# im_gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)
# cv2.imwrite("test/1/1.jpg", im_gray)
PICHASH= {}
def md5_file(name):
try:
... | [
"810996753@qq.com"
] | 810996753@qq.com |
eed30255ebda6a4fad2b3084385f63ee121dbaca | 950be9cb9c532f297481306981e8b1c8febbed9a | /Volume 7/src/Chocolate 2.py | 1642c7623acbf3d76c5d7afa2c792761cace72bf | [] | no_license | MyCatWantsToKillYou/TimusTasks | 9b075b19d54cf048517c0f6e08b509fd51e8a8a5 | 8064e0ca6671ec4cfa5c1d588d6d714562afa69a | refs/heads/master | 2023-07-07T19:20:46.508301 | 2023-06-29T10:54:30 | 2023-06-29T10:54:30 | 132,224,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | # task #1639
# Difficulty 34
m, n = map(int, input().split())
if m*n % 2 == 0:
print('[:=[first]')
else:
print('[second]=:]') | [
"pinigin_iv@taximaxim.ru"
] | pinigin_iv@taximaxim.ru |
e659b2e49a6a7398480fd8a60df4fb67546b840f | 99c09d59577bdbccc2526d1a91f309d43cbf2381 | /Implementacao/main/mytree.py | a80edf03357714f0eedc886b2de02a1153960716 | [] | no_license | JulianoCP/compiler | 98cf4094eaede7341241473c7fcfa3b87608b73c | ac355eda914638b4e26c80831944a3172d1c93df | refs/heads/master | 2023-05-04T10:36:33.793532 | 2021-05-16T19:52:20 | 2021-05-16T19:52:20 | 246,413,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | from anytree import Node, RenderTree, AsciiStyle, PreOrderIter
from anytree.exporter import DotExporter
from anytree import NodeMixin, RenderTree
node_sequence = 0
class MyNode(NodeMixin):
def __init__(self, name, parent=None, id=None, type=None, label=None, children=None):
super(MyNode, self).__init__()
g... | [
"julianopetini@alunos.utfpr.edu.br"
] | julianopetini@alunos.utfpr.edu.br |
2770b1389482e8828867d97a6aa1bf0489db3e64 | 4fc86f5c444f52619f9f748c9bad5bf3e0e2c0b2 | /megatron/checkpointing.py | ddada534b7786ee8a8fd8062495fd8c81ab1ff93 | [
"MIT",
"Apache-2.0"
] | permissive | Xianchao-Wu/megatron2 | 95ea620b74c66e51f9e31075b1df6bb1b761678b | f793c37223b32051cb61d3b1d5661dddd57634bf | refs/heads/main | 2023-08-17T03:42:31.602515 | 2021-09-24T05:12:00 | 2021-09-24T05:12:00 | 330,527,561 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,103 | py | # coding=utf-8
# Copyright (c) 2020, NVIDIA CORPORATION. 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 re... | [
"wuxianchao@gmail.com"
] | wuxianchao@gmail.com |
f3cd6bac07015855fda51cdb78a4a13de9ede91a | 9e867267783b300123fb2a22767ebda88cbd2e90 | /Week0/is_int_palindrom/tests.py | d678e4e7618ba773c97aab3f104bd828fd5e5439 | [] | no_license | tblazhev/HackBulgaria-Programming101 | 7bb2d40e9426d1d400237e91d7e42adb2f567bc8 | 96d61e446a7b0ced00b0b3491643ad105d9eb4ac | refs/heads/master | 2020-05-18T14:08:31.383772 | 2014-04-24T09:23:21 | 2014-04-24T09:23:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | import unittest
from solution import is_int_palindrom
class IsIntPalindrom(unittest.TestCase):
"""docstring for IsIntPalindrom"""
def test_is_int_palindrom(self):
self.assertTrue(is_int_palindrom(1))
self.assertTrue(not is_int_palindrom(42))
self.assertTrue(is_int_palindrom(100001))
... | [
"tblazhev@users.noreply.github.com"
] | tblazhev@users.noreply.github.com |
b93217b9416afc18854af759391aa20842520bf3 | 0e303e893bf7250e202a67b28dc036b557c6617e | /viber/__init__.py | fc1d2299a9908df4a4ae18a824193c46e8d00900 | [] | no_license | iCodeIN/aiohttp_viber | f8949e72f3ec4005dd8ecf498751429b4d39d2e8 | b2beb157d8e161b1e86c77405dda3a749c348b7e | refs/heads/master | 2023-03-10T17:25:45.021553 | 2020-03-27T22:00:12 | 2020-03-27T22:00:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | import logging
"""
Loggers Definitions
"""
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
)
| [
"eyaadh@gmail.com"
] | eyaadh@gmail.com |
f8c2a51c18bbeba2f1a6eba413516ca9d60b67ad | afa6048527e6e43000057ea8a2a92305644842e3 | /posts/urls.py | 539ab577db7eedea87cbe69b0f9875cd3ce12e39 | [] | no_license | davidnamango/simplesocial | 4fc1a04a1da7ba638c07cc3a652965a5d7de955d | aa27d709ff0ff319cefc7719d8158621b5522373 | refs/heads/main | 2023-01-11T23:05:34.761203 | 2020-11-16T22:03:44 | 2020-11-16T22:03:44 | 313,180,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Posts urls.py
from django.urls import path
from . import views
app_name = 'posts'
urlpatterns = [
path('', views.PostList.as_view(), name='all'),
path('new/', views.CreatePost.as_view(), name='create'),
path('by/<username>', views.UserPosts.as_view(), name='for_user'),
path('by/<username>/<pk>/', v... | [
"davidnaanderson@gmail.com"
] | davidnaanderson@gmail.com |
9184b2f03e45cbabffdc1bdf821e9c9ffea10b6e | a6aa5c5380267a1d233ca0dcd0963416fc5807c6 | /upload/migrations/0002_second_data.py | c1c74d4a3242576c293397d3ce0289dd75e28cd3 | [] | no_license | xxxxsars/report_generated | 90bb2b4bd94c5c9bd64a2a818af975fd145be131 | 77dcbda25e5993906f5d22575f9fa3f258e5b0e7 | refs/heads/master | 2017-11-11T12:47:28.603556 | 2017-03-07T01:06:01 | 2017-03-07T01:06:01 | 83,805,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-03 01:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('upload', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"xxxxsars@gmail.com"
] | xxxxsars@gmail.com |
2ab9c6aae658796991d04ae8393361738813a7fb | b6233af6a39e7ab500743d6b2ac7d52f68ae3be2 | /15/00/2.py | b738c43f76091d7e37910b5e9ab030f6c459d903 | [
"CC0-1.0"
] | permissive | pylangstudy/201712 | 9754526e1d8f1c0519fcce98bc7df803f456cc4e | f18f1251074729c4a3865b113edc89ec06b54130 | refs/heads/master | 2021-09-02T06:08:08.278115 | 2017-12-30T23:04:55 | 2017-12-30T23:04:55 | 112,670,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import socket, array
def send_fds(sock, msg, fds):
return sock.sendmsg([msg], [(socket.SOL_SOCKET, socket.SCM_RIGHTS, array.array("i", fds))])
| [
"pylangstudy@yahoo.co.jp"
] | pylangstudy@yahoo.co.jp |
b7ccc85c33abe9dfe714212db07ee1eb7790bc1e | d712f4cad7a1207f45118b10fdf0e648012b56d5 | /mailbrute.py | dda4a065070dcfda1c31638ad114b04b9ac24280 | [] | no_license | code-scan/MailBrute | 04cff542cff8eb69cc81b04d3cd42e6829d6ac74 | ca21ca4a5dfebb8073986c008f571d650430e9b4 | refs/heads/master | 2016-08-11T16:04:12.502053 | 2015-11-18T07:20:26 | 2015-11-18T07:20:26 | 46,402,203 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | #coding=utf-8
import smtplib
import threadpool
from sys import argv
import sys
import time
def print_result(request, result):
scanow="[*]Scan %s "%result
sys.stdout.write(str(scanow)+" "*25+"\b\b\r")
sys.stdout.flush()
time.sleep(0.05)
def login(logininfo):
try:
logins=logininfo
log... | [
"cond0r@126.com"
] | cond0r@126.com |
17fd8908609e0c7f713468722f867f4c70981b9b | 6e65a4459623cd1190f02f7a16815753e1049aa1 | /python/tools/plot_rtd.py | a7147f6242d3a385899c6ad152ac08f8a61845a8 | [
"BSD-3-Clause"
] | permissive | alexchartier/digital_rf | 2d79d7d4b5f19d1f60a73632e8a0d0a25b0d512c | cb548266bac910eeee12c210cf31e36809a38565 | refs/heads/master | 2021-05-16T23:47:16.333751 | 2020-03-27T12:18:04 | 2020-03-27T12:18:04 | 250,521,784 | 0 | 0 | NOASSERTION | 2020-03-27T11:53:52 | 2020-03-27T11:53:52 | null | UTF-8 | Python | false | false | 13,959 | py | import numpy as np
import numpy.matlib
import pdb
import pickle
import os
import datetime as dt
import glob
import matplotlib.dates as mdates
import matplotlib.colors
import matplotlib.pyplot as plt
from argparse import ArgumentParser
"""
Plot multi-frequency returns as a function of altitude and time
"""
def save_d... | [
"alex.chartier@outlook.com"
] | alex.chartier@outlook.com |
2253fe35a619690566ee7697671f988cf67880f3 | e635826be96bef666bc9119e4df8f82b7f076fb8 | /pages/chat.py | dca5627c853c0ef99a11486ce1b76087b08acc4c | [] | no_license | qalight-python-automation/main-qalight-qacomplexapp-tests | 0d40ebe2eb5c788324bc4bf63248cd6c788ecfa5 | 7b0b928cc37eac181cd08d3b5990eaf0a29e4bbf | refs/heads/master | 2023-07-13T13:19:28.595888 | 2021-08-17T16:02:01 | 2021-08-17T16:02:01 | 360,634,509 | 0 | 2 | null | 2021-08-17T16:02:01 | 2021-04-22T17:49:05 | Python | UTF-8 | Python | false | false | 1,204 | py | """Store chat actions and helpers"""
import logging
from time import sleep
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.remote.webelement import WebElement
from pages.base import BasePage
from constants import chat as chat_constants
class Chat(B... | [
"denkondrat13+1@gmail.com"
] | denkondrat13+1@gmail.com |
2245d137d3c96c0d0184ca4ce3a2b2930945227a | e0980f704a573894350e285f66f4cf390837238e | /.history/news/models_20201124125236.py | 70a66f359a9f8e8b4fff11e3efb6146fd18c69f7 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.db import models
from wagtail.contrib.forms.models import AbstractEmailForm
# Create your models here.
class NewsPage(AbstractEmailForm):
te | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
22fd473d406211a4a51bde562452f1d42030f35f | d76be1b2fdc11e7b699773dece9ea7fa0c7756e3 | /rejected377/Singleton.py | c99c499fe339ce5466d939b49af511da5cc016a8 | [] | no_license | B-Rich/rejected377 | 64041d976edf6cff43cc273f0dbfef6defca0b7f | 0bf283cdfb464236570df1f05e005b5a3b171ede | refs/heads/master | 2021-01-24T20:58:36.964879 | 2012-10-04T19:28:36 | 2012-10-04T19:31:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Singleton metaclass implementation from
http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python"""
class Singleton(type):
"""Singleton metaclass; classes of this type have only one instance"""
_instances = {}
def __call__(cls, *args, **kwar... | [
"davidf@sjsoft.com"
] | davidf@sjsoft.com |
fdf3d2f3fa34b5f31a1a475f8b88058eb6fae21b | bff20a295661ddf2900a2777165f9b4bdfb5656b | /caffe2/python/operator_test/sequence_ops_test.py | 7afca6bdc0524fae9ad0460ff8998981fda678f4 | [
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | wangxu823/caffe2 | cc8ba41abacb36dd5ebb1c4ed68aaae6d43dd91f | 0a68778916f3280b5292fce0d74b73b70fb0f7e8 | refs/heads/master | 2021-04-04T11:29:54.224522 | 2016-08-09T23:22:45 | 2016-08-09T23:22:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,548 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core
from hypothesis import given
import caffe2.python.hypothesis_test_util as hu
import hypothesis.strategies as st
import numpy as np
from func... | [
"jiayq84@gmail.com"
] | jiayq84@gmail.com |
6a586b99db2e3d6ef9c60f0b254d20f5b31c9bc7 | 06461b51ee2c309b4a72ffa8bc26173a08d77c33 | /Code/ReverseInteger.py | 1a0cb17dfb3696e2e29001db2335a17e71b94b6b | [] | no_license | aparnavt/LeetCode-Top-100-Liked-questions | 42d3079f596672f88a48039e5535ed0f09562743 | a462f1a75db6dbb7557a1836d8a62e4c8bbbc717 | refs/heads/master | 2023-01-05T00:25:15.673665 | 2020-11-03T15:53:50 | 2020-11-03T15:53:50 | 297,335,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | class Solution:
def reverse(self, x: int) -> int:
if x>0:
ans = int(str(x)[::-1])
return ans if ans<(2**31 -1) else 0
else:
ans = -int(str(-x)[::-1])
return ans if abs(ans)<2**31 else 0
"""
Naive Approach
... | [
"noreply@github.com"
] | aparnavt.noreply@github.com |
4db19ef43f850ee252401b2e092706de359951b9 | 9c76c9dd92581fa1eea989cd314b9567a88c5c7f | /account/views.py | 50783cb4d6d9ad5c6072ce68661772a182dd8c3f | [] | no_license | wangqiang-python/EMSa | 8067797302215426f56487eeae3884a6efcddc8e | 9fe5370f3d3884e1c903d007c620dc614eb8afaa | refs/heads/master | 2020-07-11T07:19:31.886967 | 2019-08-26T12:41:47 | 2019-08-26T12:41:47 | 204,476,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | from django.db import transaction
from django.shortcuts import render,HttpResponse,redirect
from account.models import User
from employee.models import Employee
# Create your views here.
def login(request):
name = request.COOKIES.get("name")
pwd = request.COOKIES.get("password")
result = User.objects.filt... | [
"1297474538@qq.com"
] | 1297474538@qq.com |
18d6600c76c4f826ff670266cd750b7813cbf302 | d6cc907335f0fc1469855018a6adf282ebdd78f0 | /logic/libs/logger/logger.py | 95e768fd1199567c86e3f5ad4c78e9402c7ce063 | [] | no_license | brianwolf/utn-2020-2c-desa-mobile | b4a432fb31d0b575aed92eb433442e056eead915 | f57aac4ec8cdb03d09c7e6fc374ff7918f4c28ce | refs/heads/master | 2023-01-21T21:22:35.470062 | 2020-11-30T23:03:57 | 2020-11-30T23:03:57 | 295,231,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | """
Logger
-------
Crea logs de la aplicacion
"""
import logging
from logic.libs.logger.src import config
from logic.libs.logger.src.archivo import crear_log
def iniciar(directorio: str, nivel: str):
"""
Configura el logger para el proyecto
"""
config.DIRECTORIO_LOGS = directorio
config.NIVEL_LO... | [
"brian.lobo@moorea.io"
] | brian.lobo@moorea.io |
c43c62823b494adf5bd81624350f95d4d0f6d884 | 8581c776a00bb15e4734c3d245bd86e375a2b219 | /quiz/configurations/database.py | 7a73d4de1f7943dc136d264337dbfa2b7a77aba4 | [] | no_license | andre-rosas/qzen | 3f96dbbbb95032efe4c2f8f86c8f029af966d557 | 776a0f58e4102ecd73efa74fa3d4c36ac328e7ab | refs/heads/master | 2023-05-01T06:10:10.647931 | 2021-04-23T16:51:14 | 2021-04-23T16:51:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from flask.app import Flask
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
def init_app(app: Flask):
db.init_app(app)
app.db = db
from quiz.models.pergunta_model import PerguntaModel
from quiz.models.alternativa_model import AlternativaModel
from quiz.models.pergunta_tema_model impor... | [
"luizmatheusga@gmail.com"
] | luizmatheusga@gmail.com |
c3e593a11fa780431165c332212fd8a39a54f02a | 0f968baea4554519043c3ed4d1464fe4c64d592f | /src/mesh/deep/__init__.py | 2d81c12b5a07d5cf15b92582b6caa017185c5111 | [] | no_license | seantyh/OntoDeepLex | a50911edea9b3ce9f5997ecab327b4bb54783a00 | 89148884ff09710877d18d0a63da00a304060079 | refs/heads/master | 2023-01-22T23:23:35.653260 | 2020-11-23T13:14:22 | 2020-11-23T13:14:22 | 257,922,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | from .tensor_utils import BertService
from .vocab import VocabZhTw | [
"seantyh@gmail.com"
] | seantyh@gmail.com |
37a83c9b14f7582f5e2c4b4b2b05811c76da5278 | 24883c4af746d0a5e72e201239faa44ed670493d | /venv/Scripts/pip-script.py | 1284262dd05b336492cf52db83f099247cca721b | [] | no_license | LeeSangShin/kafka-python | cd9b14b96dace407898ff12093a5503eaf1cbcb9 | 671e155bf68017bda0f9f1b9b55ab2353a63b521 | refs/heads/master | 2020-05-04T15:23:20.252189 | 2019-04-04T05:02:11 | 2019-04-04T05:02:11 | 179,220,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | #!C:\Users\User\PycharmProjects\ras\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
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])
... | [
"49224081+LeeSangShin@users.noreply.github.com"
] | 49224081+LeeSangShin@users.noreply.github.com |
8ac32f1448c14dd435ff22cb2ca8577a5f738d3c | aef889a2e1053e2485bd3530625a0e9b72edeb97 | /frontend/testing/formsCoordinatorTest.py | ad463ab485899374236b2b6d17cd01e52b472291 | [] | no_license | angelialau/se7en-scheduler | 13e11d2ede3656f19e99960e3bc68b079648aeb6 | 777ecbf6bed03f9289a10c7e066054f5319ae55b | refs/heads/master | 2020-03-17T13:22:05.246178 | 2018-04-22T15:42:52 | 2018-04-22T15:42:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,778 | py | from selenium import webdriver
from selenium.common.exceptions import TimeoutException, NoSuchElementException
from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0
from selenium.webdriver.support import expected_conditions as EC # available since 2.26.0
from selenium.webdriver.support.select ... | [
"angelialkm@gmail.com"
] | angelialkm@gmail.com |
925d4bcc4f9c12b106e27f99a905d73e6892a51e | 6c13f20675cc098c8e0ae0fe716e43b228a9c550 | /exercices/question_03.py | 3b1b788f3ee2c152e1f8ebf1b7e668231c6e0480 | [] | no_license | lfarci/getting-to-know-pandas | 6304ad4c358c6ef48d0b2bf448c12aeb5e8e6690 | 15f96e59e23c3b2e62c4c64ba26e3d2b8afba69d | refs/heads/main | 2023-01-04T00:00:28.641477 | 2020-10-23T13:24:24 | 2020-10-23T13:24:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | import numpy as np
import pandas as pd
import question_02
def count_movies_with_genre(movies, genre):
return len(movies[movies["genres"].str.contains(genre)])
def count_movies_with_release_year(movies, release_year):
return len(movies[movies["release_year"] == release_year])
def count_thriller_with_release_... | [
"farci.logan@gmail.com"
] | farci.logan@gmail.com |
a7714a35d0c2be083cc2ecf9c3324c5f6f6b8aa4 | 411071823a909d86845b7750085dfdf7f1206f2e | /python/src/db.py | fa78bf438fc35c62924e9c0e7527942daf3918de | [] | no_license | Kerman-Sanjuan/REST-API | 695851447a25ce8e08505376111a2e2524c9ae80 | 927d21fbad20d285f5b81326ea9ed45ddd48052d | refs/heads/main | 2023-08-30T10:55:45.432406 | 2021-11-07T17:17:15 | 2021-11-07T17:17:15 | 421,827,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
engine = create_engine('sqlite:///database/users.sqlite')
Session = sessionmaker(bind=engine)
session = Session()
Base = declarative_base()
| [
"kermansanjuanmalax@gmail.com"
] | kermansanjuanmalax@gmail.com |
8b73fef38c8d4e2206ee1125f5a6dfbe6e4e74ed | 83943dc3b89e6eede501292dbc70f6b5f8dc9412 | /question(7).py | 58234fc907843d5734822014f47d5349499137bd | [] | no_license | preeti28dec/Hangman-game- | e58985c95a0e4cfba0d43c5641f61c1aa85cf5ed | 4d237171d5ec5d45ec3489fef7a29bd52079f6a5 | refs/heads/main | 2023-04-12T21:05:06.274986 | 2021-04-22T13:57:05 | 2021-04-22T13:57:05 | 360,537,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | # Q7.Text file data ko json file data mai convert karo,jaise ki neeche diya hai?
import json
filename = 'Text_file.txt'
dict1 = {}
# hum file ko open kar kar read and write karne ke liye with open file ka use karte hai .
with open(filename) as fh:
for line in fh:
command,description = line.strip().split(No... | [
"noreply@github.com"
] | preeti28dec.noreply@github.com |
4a71137f92e3e2b73533f1a065e7017d0d2de440 | 413a2ead82ac085de117e7fc7fc926268a70c6ad | /useraddress/asgi.py | 262ffb6c450957ec4f01af9b6b099aff1441aa7f | [] | no_license | ShirsatAditi/AddressListAPI | 49f38dfeb4559fd0789ca1480649616b4b87f44f | 546ed2e07210053e6177b667c73bf40b22fca5ed | refs/heads/main | 2023-01-02T10:07:12.196129 | 2020-10-28T07:24:49 | 2020-10-28T07:24:49 | 307,936,773 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for useraddress 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"aditishirsat.magneto@gmail.com"
] | aditishirsat.magneto@gmail.com |
6c03d73cc41059479d264e5a0bb972901861ffd6 | ce0e55c0912232abde612c06f2768e14cefff8d9 | /calculator/__init__.py | cdb36146569d3803fdce4e971dd8af805c13d1bd | [] | no_license | hwanyhee/ezen | 4eb777a3cb87f0b3278d5f24e20472476ab55fe3 | 4f971258805bb499d919a31ed8ed3e74970c8e04 | refs/heads/master | 2020-07-02T14:36:51.723863 | 2019-08-10T09:16:44 | 2019-08-10T09:16:44 | 201,559,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from calculator.controller import CalculatorController
#컨트롤러를 인스턴스화 한다
if __name__ == '__main__':
num1 = int(input('1st number?'))
op = input('연산자?')
num2 = int(input('2nd number?'))
calc = CalculatorController(num1,num2)
print(calc.exec(op)) | [
"hwanyhee@naver.com"
] | hwanyhee@naver.com |
d85e0b393ae8d8ee90e85e1f7704da446a52d993 | 5e9eba022385185a2c84d60fffe6cdf04421ed1b | /academicos/views.py | e44f4be6e8ae947cd6a615b5209a4e6d14064e29 | [] | no_license | lizceth/proyecto-eventos | 4a6de50ee7ae7705fb7a81cb4fdbdbe2c9ed9516 | b408149a463d130da72bb555237814cc5bb2dbfa | refs/heads/master | 2020-06-02T18:21:08.415503 | 2014-10-14T22:35:26 | 2014-10-14T22:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,361 | py | from django.contrib.auth.models import User
from django.shortcuts import render, render_to_response, get_object_or_404
from academicos.models import Coordinador, Escuela, Facultad
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from asistentes.models import Persona
... | [
"shanny.liz13@gmail.com"
] | shanny.liz13@gmail.com |
44325715254c5869560d81e2367ac008235b3da6 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /r9y4yrSAGRaqTT7nM_21.py | 1ca7a31c9dbf3fb55b5622f3aa279dfb1fc15050 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py |
find_missing=lambda l:sum(range(len(min(l,key=len)),len(max(l,key=len))+1))-sum(len(x)for x in l)if l and all(l)else 0
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6a8cdc19597cae18c5c46132885f1df73c95b2ea | b73813d6cbfd1de690162234ba6c410d4bc037d5 | /leetcode/1.py | 855a2fa3458dca9879722787207f8c61df39b168 | [] | no_license | kavandalal/timepass | 27f4fe3944e16012e15d3094e320df1f48b43938 | 21f6af30b138633ed7edb8b95ec723e218fba6c4 | refs/heads/master | 2023-01-03T04:27:30.711172 | 2020-10-30T08:53:29 | 2020-10-30T08:53:29 | 288,215,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | #1
nums = [2,8,7,3]
target = 9
d=dict()
for i,n in enumerate(nums):
v = target - n
if v not in d:
d[n] =i
else:
print([d[v]],i) | [
"noreply@github.com"
] | kavandalal.noreply@github.com |
8a146dbbf4a140a3c67971610a308d0ae7c10afc | ef4b01eb3cc09193ca0410d24ae40a8ccfc7fa27 | /kaldi/egs/aspire/s5/check.py | f09725a65a1dea0da2f78910b9719631e6ecf289 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | NitinShuklaML/ASR-WebAPPLinux | 67f25c7714dff451fc26a64099760edd2e5d18da | 1e70ec76cde118e48aa3141e347874716ff1ceeb | refs/heads/master | 2020-12-05T10:28:38.111633 | 2020-01-06T13:54:32 | 2020-01-06T13:54:32 | 232,080,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | #!/usr/bin/env python
import os
import sys
args = str(sys.argv[1])
command = os.getcwd()+"/encoding.py "+ args
print("command is :"+command)
os.system(command)
| [
"nitin.shukla2014@gmail.com"
] | nitin.shukla2014@gmail.com |
d1ee3b808c8d175829f69a8e3110517b8be39f51 | 613bca33c036b069f3bdcddcc860c69e9eed6556 | /util.py | f8e54349655f74656336da58309747d8e3b643ad | [] | no_license | qsantos/majority-judgment | 821f4224eb55dc12e24f0999b68be1d92dff3566 | ef11e327bd0af4d74a4c6a6d394f11c5a084c2fe | refs/heads/master | 2020-04-14T23:29:32.607465 | 2019-01-05T10:14:51 | 2019-01-05T10:21:08 | 164,204,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,500 | py | #!/usr/bin/env python3
"""Some utilities (mostly arithmetic)"""
import random
import json
import hashlib
import gmpy2
def powmod(x, y, m):
"""Computes `x^y mod m`
The method `powmod()` from `gmpy2` is faster than Python's builtin
`powmod()`. However, it does add some overhead which should be skipped for... | [
"quentin.santos@worldonline.fr"
] | quentin.santos@worldonline.fr |
25fba7312e0c89bdf77f6d597d2878f52fb8b372 | b7f1557e5a2ac164e59918efe3ac07f781699012 | /code/baseline/gen_result.py | 51d7c2fe3e27ce9a5fc0fe602528bc020e967593 | [] | no_license | aspnetcs/AT-CNN | 2dfeb1928df9521ac5a5c8f9bb8d082ad9237b2a | 46d1dfa599c186def93d48e1589b02f111a67599 | refs/heads/master | 2022-12-25T19:40:41.036715 | 2020-10-06T00:50:05 | 2020-10-06T00:50:05 | 299,809,649 | 0 | 0 | null | 2020-09-30T04:35:24 | 2020-09-30T04:35:24 | null | UTF-8 | Python | false | false | 11,444 | py | from utils import GetSmoothGrad, clip_and_save_single_img, clip_gradmap
import os
from cv2 import imwrite, imread
import argparse
import torch
import numpy as np
import torch
from utils import get_a_set
import torch.nn.functional as F
import torch.nn as nn
from dataset import create_test_dataset, create_train_dataset, ... | [
"1600012888@pku.edu.cn"
] | 1600012888@pku.edu.cn |
9af96fdcefff455cf4f7e1056a1b7e30e11e74a7 | 9bf6d807f9ba9c5122e3bb6872203e37875efbd3 | /BDA/Projet/vocabulary.py | f5be7fb50365e16e16dc55d9daf675e176c11ed3 | [] | no_license | EmmanuelDoumard/BDA | 99ca3cf879c16a90b0fe3a3f970098ebdc85410d | 4f7289138fb732d1c675c42f87adcac58f240082 | refs/heads/master | 2021-09-07T13:24:24.577830 | 2018-02-23T14:09:09 | 2018-02-23T14:09:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,899 | py | #!/usr/bin/python
""" This file contains the defintion of the classes needed to store a vocabulary
- only numerical attributes are considered in this version (values in the csv file casted to floats)
"""
import sys
import os
class PartitionElement:
def __init__(self,lab,a,i,ia=1):
self._label=lab
self._attribu... | [
"edoumard@lochan1.enssat.fr"
] | edoumard@lochan1.enssat.fr |
c5d9cf121b69761030d0050d73f56d251f3b3b8d | a57eb85856cc93a389b815276765a06019d6f8d4 | /manage.py | a187e1a5e09bc71ad51ec80483e4c11d9cced0d9 | [
"MIT"
] | permissive | astrofrog/multistatus | 205f6ad9a06995bc4b418f6d0de222c4dacfcb79 | f63042c9e85cb4e58e3768a65f4684be07e432d1 | refs/heads/master | 2021-01-10T21:05:40.370555 | 2014-12-09T10:24:48 | 2014-12-09T10:24:48 | 22,805,918 | 0 | 1 | null | 2014-12-09T10:23:13 | 2014-08-10T09:39:38 | Python | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python3.4
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "multistatus.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
6a75db16fa3b23eccf97f4b2c9be2498879fde5e | 08166c6f67763ce121c3d0b5ddc341972547a0c0 | /factorial_number.py | 0b402f7f31aa22b2916a407113b569dfcd5e2a66 | [] | no_license | absognety/ML-Algorithms | e082b2fd92cfe90f9f0559297884647b86608d94 | 2f11d5297b81f92b8398d501420aec6648eea5ab | refs/heads/master | 2020-03-26T20:13:24.838718 | 2019-07-21T10:09:23 | 2019-07-21T10:09:23 | 145,311,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | def factorial(n):
if (n==0):
return (1)
else:
return (n*factorial(n-1))
| [
"cvikas10@ms.ds.uhc.com"
] | cvikas10@ms.ds.uhc.com |
86e9a4365750c680f76d042e03c4009c7370d109 | d6c0153d6bba38fae09ae5899562a3a900caee5d | /newton_raphson.py | 377a6beb841ab979cc26b33635e227ad8001d5d8 | [
"MIT"
] | permissive | Zaier9/Skills | b048df52de5d03a437c45d9fdba2b519a516f85a | 98962232e47c7d635ace91fe92f83346d719a73c | refs/heads/master | 2023-08-12T18:18:43.941128 | 2021-09-22T18:59:36 | 2021-09-22T18:59:36 | 406,978,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | #Implementando el método Newton en Python
#El método de Newton-Raphson (tambien conocido como metodo de Newton), es una forma de encontrar rápidamente una aproximación para la raíz de una funcion real
from __future__ import annotations
from decimal import Decimal
from math import *
from sympy import diff
def newton... | [
"veraalber989@gmail.com"
] | veraalber989@gmail.com |
c5430a40f88a6e8928031c354a738696a86a4256 | 35c73d504e63702a5c198c8bf5ec931157c32933 | /linux/general/backups/check-tar.py | e912c3ee5a87a8798329246a803a8e290023a0e9 | [] | no_license | GunioRobot/bangadmin | ad3a04bbd5e4d7b9c3aa86a1c6200c061342a595 | d3c293e92dfd4ee85cc8f08460999b9660de7095 | refs/heads/master | 2020-04-13T23:01:51.025843 | 2011-11-15T15:17:29 | 2011-11-15T15:17:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | #!/usr/bin/python
# * Copyright (c) 2010, Sudheera Satyanarayana - http://techchorus.net
# * All rights reserved.
# *
# * Redistribution and use in source and binary forms, with or without modification,
# * are permitted provided that the following conditions are met:
# *
# * * Redistributions of source code must r... | [
"sudheer.s@sudheer.net"
] | sudheer.s@sudheer.net |
b62337d44f8079e8c87e79cf69dfd5d97f54906d | a089d34db7950b86880317fa3a3c4cabb552df03 | /blog/urls.py | 45d930a9adb85f2dff7a8243b8b06364e3b9f549 | [] | no_license | amitbuyo2020/Blogapp | 27721784ff87a390ab76475b771c48176a620407 | b64aa01d54f53d76b694e4ecc138fbcc48a3934f | refs/heads/master | 2022-04-21T02:18:33.077115 | 2020-04-22T04:49:14 | 2020-04-22T04:49:14 | 257,794,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from django.urls import path
from . import views
from .views import PostListView, PostDetailView, PostCreateView, PostUpdateView, PostDeleteView, UserPostListView
urlpatterns = [
path('', PostListView.as_view(), name='blog_home'),
path('user/<str:username>', UserPostListView.as_view(), name='user-posts'),
... | [
"58477464+amitbuyo2020@users.noreply.github.com"
] | 58477464+amitbuyo2020@users.noreply.github.com |
90449a0bc33f230b570751c77a0623290d25e6c9 | cf801d45f5330e3b87e2efa3b2d50253832962af | /baza/migrations/0006_auto_20180727_2115.py | bd8767979923ace63259183b46a0385fd49d23fd | [] | no_license | bbbrtk/biegnocny | 7daba92d5a5c765731eabf1256c7971ce37ba198 | 9f035902680f3aa30a23aad0d5bf0e086171b5a6 | refs/heads/master | 2020-03-26T12:46:47.948273 | 2019-04-25T20:01:40 | 2019-04-25T20:01:40 | 144,907,747 | 0 | 0 | null | 2019-04-25T19:42:20 | 2018-08-15T22:02:12 | Python | UTF-8 | Python | false | false | 398 | py | # Generated by Django 2.0.7 on 2018-07-27 19:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('baza', '0005_auto_20180727_1336'),
]
operations = [
migrations.AlterField(
model_name='punkt',
name='id',
... | [
"sobkowiak.bart@gmail.com"
] | sobkowiak.bart@gmail.com |
10d541866288a328b07bc1a9602e1afcbb87583f | 994461efa08e71403b2a1c0598391fddf3b44b87 | /june-leetcoding-challenge/d5-random-pick-with-weight.py | 65d47a61d6766e106ff6b66178910de5a81e3489 | [] | no_license | pkdism/leetcode | 26f16f9211ddfdef8e0fe74c9268e6a48da64717 | 589652ae727331d1f962d22a020fc6ae09bfcea4 | refs/heads/master | 2020-12-11T15:48:01.116731 | 2020-08-16T18:31:03 | 2020-08-16T18:31:03 | 233,889,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | """
Given an array w of positive integers,
where w[i] describes the weight of index i,
write a function pickIndex which randomly picks an index in proportion to its weight.
"""
import random
class Solution:
def __init__(self, w: List[int]):
self.w = w
self.n = len(self.w)
self.arr = []
... | [
"pawan.dwivedi94@gmail.com"
] | pawan.dwivedi94@gmail.com |
488eedf2868298347e8fd761a86a7501687b5a22 | cc6e8b20a64940f2ad83be6a03134e8b105514e7 | /webviz/viz/migrations/0001_initial.py | 71fcb033e7e32232e310b0dfc022cfe73f08c521 | [
"MIT"
] | permissive | JagritiG/django-webviz | 50654c4fe76b1653f64e404c45d674d5d179e236 | 213489bb3a70019ca9cff5d127fd6d0c06bc61d6 | refs/heads/main | 2023-04-27T01:21:04.195996 | 2021-05-16T22:30:04 | 2021-05-16T22:30:04 | 353,126,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # Generated by Django 3.1.7 on 2021-03-30 18:58
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Csv',
fields=[
('id', models.AutoField(auto... | [
"jagritigoswami84@gmail.com"
] | jagritigoswami84@gmail.com |
d21b4633b406702e7ddc07b8954d02ab2b62f526 | 6828a9203c38d5079dfcefc8c3496849bd59f701 | /Lesson_01/2.py | 63c6eca1cf20476153250b2c9edb138ae0b781a1 | [] | no_license | vbelousPy/py_base | 340a1c3373bb764956c72d2cc9f2731086add732 | b8519af1815e79c775b36127f47bef5ef776037c | refs/heads/master | 2020-03-27T15:56:29.446374 | 2018-10-03T17:31:26 | 2018-10-03T17:31:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | x = input("input x: ")
y = input("input y: ")
print("x = ", x, "y = ", y)
z = x
x = y
y = z
print("x = ", x, "y = ", y)
| [
"vbbelous@gmail.com"
] | vbbelous@gmail.com |
9b2329c04f7996f67222cf50b79572e1b63ec22f | a91077de96c7d552f8c8a06732e5f028d4082e6d | /home/urls.py | 8139834fc119745c12a71af76464e8e9be09735b | [] | no_license | skbelalsaheb/DjangoWeb | 957d843a124d35fd145cccbc4bf44a5e968fad49 | f95a96a8d0f0a42796db59f93f795f7ae07ed0ea | refs/heads/master | 2023-01-22T19:15:47.486827 | 2020-12-05T06:21:33 | 2020-12-05T06:21:33 | 318,578,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from django.contrib import admin
from django.urls import path,include
from django.conf.urls.static import static
from django.conf import settings
from home import views
urlpatterns = [
path('', views.Index.as_view()),
]
urlpatterns+=static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) | [
"skbelalsaheb@gmail.com"
] | skbelalsaheb@gmail.com |
42f1185f0886804da485d15b1b19448422bc7df2 | 106953e82953c6c855f1b81ed4144cb6b23bd43d | /Node.py | cc713c9b51bba308a8b23093bc51905ac146d8fe | [] | no_license | Maciek-R/ALHE-Pizza | fe37b6a03648a981065e1aa8808c98851afe19a5 | 5e160ef6965d03c2391f5d65d7e3cb80b73617d6 | refs/heads/master | 2021-03-22T04:17:16.652407 | 2017-11-04T19:32:31 | 2017-11-04T19:32:31 | 108,561,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | from math import sqrt
class Node:
def __init__(self, x, y, ):
self.x = x
self.y = y
def getPosition(self):
return self.x, self.y
def getDistanceTo(self, node):
x,y = node.getPosition()
return sqrt((x - self.x)**2 + (y-self.y)**2)
def getLabel(self):
#r... | [
"m.ruszczyk.1@stud.elka.pw.edu.pl"
] | m.ruszczyk.1@stud.elka.pw.edu.pl |
f197241de30622889b167ecb7dc068406820dbc8 | 6061ebee9fbce8eb5b48ed7ccd2aecb196156598 | /modulo07-funcoes/exercicios/exercicio04.py | 5ebbfcd3edf545e7ffdc636929ca0276708ef06c | [] | no_license | DarioCampagnaCoutinho/logica-programacao-python | fdc64871849bea5f5bbf2c342db5fda15778110b | b494bb6ef226c89f4bcfc66f964987046aba692d | refs/heads/master | 2023-02-24T11:45:29.551278 | 2021-01-26T22:02:49 | 2021-01-26T22:02:49 | 271,899,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | def aumento(numero, valor):
resultado = numero * valor / 100
return resultado + numero
resultado = aumento(100, 50)
print(resultado) | [
"campagnacoutinho67@gmail.com"
] | campagnacoutinho67@gmail.com |
b936c098695eb03ec4c9abb82e78537b33edc5f3 | b7a2a80843fa5141ffb9c7b4439f1d2ac713af30 | /UT2_Morsen.py | f0f71ad6765a17297467d402ad1566da64d52c4e | [] | no_license | wunnox/python_grundlagen | df1bc2b9b1b561bd6733ccc25305e799a48e714e | fa84d7aae7332a7acbb3ba7ff0fe2216cc345fc0 | refs/heads/master | 2023-05-01T12:19:23.208445 | 2023-04-16T11:29:01 | 2023-04-16T11:29:01 | 222,099,539 | 2 | 3 | null | 2019-12-19T10:56:43 | 2019-11-16T12:57:54 | Python | UTF-8 | Python | false | false | 450 | py | #!/usr/local/bin/python3
####################################################
#
# Uebung UT2_Morsen.py:
# Erstellen Sie ein Programm, welches anhand einer
# Morsetabelle einen Text in Morsecode ausgibt.
# Verwenden Sie hierzu das Modul UT2_Morsecodes.py
#
####################################################
import UT2... | [
"peter.christen@cssgmbh.ch"
] | peter.christen@cssgmbh.ch |
1555889b5560a7cb70066a87391d487773ca298f | 7c16a522a7006c06ee0dc29ec0c62049b9281be3 | /tests/context.py | 6906139686a9e53323d3892d380d773464ba715e | [
"MIT"
] | permissive | maryco/petoi-agent | d252f99c63d7d96c1fb243d8617ab5197066f22d | 3163ee3aacba4cd0a799aec22c972a178b3cc29e | refs/heads/main | 2023-06-04T11:42:16.474033 | 2021-06-25T12:30:10 | 2021-06-25T12:30:10 | 380,077,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | """The context module for run the test
Notes:
- Run the test in the parent directory of "src".
Example: Run all tests in the specified file.
% pipenv run python -m unittest -v tests.test_serial_agent
% pipenv run python -m unittest -v tests.test_serial_agent.TestSerialAgent
Example: Run specified test ca... | [
""
] | |
093a11ff4eaea5d47dc8731c3face1e6656df75c | 2889ce81f2e0e2d6d22cbd8128a05c9c17addaef | /cspython/ServerLib.py | 614ff7b700e0c7344395a3a15e11e44dfcd15495 | [] | no_license | Roso29/CSPython | fd68465f1fadfb5a0f49f992c92e5be2a3dc6a5b | 635ca723a6665c4557b84e1819a8cfe0f57c0e47 | refs/heads/main | 2023-08-18T06:56:53.448693 | 2021-10-04T14:14:46 | 2021-10-04T14:14:46 | 410,812,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | import socket
'''
ServerLib
- Contains class Server
Sets up sockets
Sends and receives plain text over sockets
Only used to interact with the sockets - performs no verification/validation/logic
'''
class Server:
def __init__(self, port):
self.port = port
self.bytesToRec... | [
"thrwawy81@gmail.com"
] | thrwawy81@gmail.com |
1c3ea9c37220f04f5ec059b8d964947f7d2508f6 | c31e69b763e1b52d3cefa4f5a49432ae966f22d0 | /day29/mySpider/mySpider/settings.py | 4e3e3faf4c4eeff43f7ccf6f99bfd3381a22506f | [] | no_license | lvah/201901python | cbda174a3c97bc5a2f732c8e16fc7cf8451522d2 | 7bffe04a846f2df6344141f576820730a7bbfa6a | refs/heads/master | 2022-12-13T09:49:29.631719 | 2019-04-06T09:48:33 | 2019-04-06T09:48:33 | 165,477,671 | 3 | 0 | null | 2022-12-08T04:57:01 | 2019-01-13T07:23:44 | HTML | UTF-8 | Python | false | false | 3,413 | py | # -*- coding: utf-8 -*-
# Scrapy settings for mySpider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | [
"976131979@qq.com"
] | 976131979@qq.com |
7f0ebd1d128ac4924596d557e8d67a4d45622c13 | f11462f71080406e19616dc8f8a38cba3293ee40 | /notebooks/Veins/make_readme.py | 802117a7fb3662057ac89cb76eb57697a698a263 | [
"Apache-2.0"
] | permissive | SalishSeaCast/analysis-vicky | 95beaaf48d5be89eba0dc4bff6027c2639f43b80 | 42ae975652c17c2f990b0997c3c21c382c2d989e | refs/heads/master | 2020-12-23T09:25:22.433176 | 2020-05-19T23:56:09 | 2020-05-19T23:56:09 | 237,109,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | #Copyright 2013-2016 The Salish Sea MEOPAR contributors
# and The University of British Columbia
# 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
# https://www.apache.org/licenses/LICENSE-2... | [
"vdo@eoas.ubc.ca"
] | vdo@eoas.ubc.ca |
530a8349c1d993059e04c0c67889935071e2ef34 | 6a2a4f97009e31e53340f1b4408e775f3051e498 | /Iniciante/p2581.py | 8788b781d8d7a15867ecc1b352f711f048beab64 | [] | no_license | rafacasa/OnlineJudgePythonCodes | 34c31f325cccb325f074492b40591ad880175816 | 030c18f9020898fdc4f672f9cc17723236e1271d | refs/heads/master | 2023-07-15T12:09:45.534873 | 2023-06-27T00:24:03 | 2023-06-27T00:24:03 | 250,595,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | while True:
try:
n = int(input())
for i in range(n):
q = input()
print("I am Toorg!")
except EOFError:
break
| [
"rafael.casa@pm.me"
] | rafael.casa@pm.me |
4b7fc79d1a1c8900a63129b210fd5bf8568c4bef | dccee2da3c571cf69dea60cf5150f57f1f9b2edb | /tc-kep100/v1.2.x/ja/autogen-openapi-generator/python/tc_kep100_client/api/init_api.py | 2899fc1938b00ec934874b669c77fa59eab789fc | [
"MIT"
] | permissive | y2kblog/poe-webapi-sensor-api | 173d3d6fd9c441968c8b900a0ae03c21bc2f266b | 7c21c88e4a7f74f7bc09c5d4dfc9ff352a98d458 | refs/heads/master | 2023-05-30T14:23:49.523025 | 2021-06-16T02:57:29 | 2021-06-16T02:57:29 | 369,937,604 | 0 | 0 | MIT | 2021-06-16T02:57:29 | 2021-05-23T01:27:34 | Python | UTF-8 | Python | false | false | 4,958 | py | """
PoE対応 WebAPI K型熱電対アンプ API仕様
\"Try it out\"機能は、API仕様を製品と同一ネットワーク上のローカルPCにダウンロードしブラウザで開くことで利用できます。 # noqa: E501
The version of the OpenAPI document: 1.2.x
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from tc_kep100_client.api_client import Ap... | [
"info.y2kb@gmail.com"
] | info.y2kb@gmail.com |
f8bf11e12bc1581ed30ac99f941e2bf0f33f766b | 80ae9b5cfb45b6e9cf7873ef7c46e17e117e4019 | /data/HackerRank-ProblemSolving/Counting Valleys.py | 8dd7bd82fe261f99bf7584a8856d457b1d55009b | [] | no_license | Ritvik19/CodeBook | ef7764d89b790e902ede5802f36d5ca910d8a50e | 2b4ed7938bbf156553d6ba5cba6216449528f0fc | refs/heads/master | 2021-07-04T08:25:52.478719 | 2020-08-08T06:54:14 | 2020-08-08T06:54:14 | 138,744,302 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | #!/bin/python3
import math
import os
import random
import re
import sys
def countingValleys(n, s):
count = 0
topography = 0
for _ in s:
if _ == 'D':
topography -= 1
else:
topography += 1
if topography == 0:
count += 1
return count
i... | [
"rastogiritvik99@gmail.com"
] | rastogiritvik99@gmail.com |
a996ae3320923c71c7f1632940b84bcd5d3c9a9d | d04e2adc8a808a606fa12d01384b5ad8e0319765 | /chapter3/fewpractice.py | 4600d0ae7c2cfdc6b969f1a3269afe11f9d8003f | [] | no_license | Bishwajit-Shil/Python | 9c338939005b74d31232f0d2cd051319c3d30281 | 8e57829c044938158bc0ff3a3764e06030602f06 | refs/heads/master | 2023-01-13T06:18:37.297386 | 2020-11-19T09:51:56 | 2020-11-19T09:51:56 | 314,192,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,698 | py | #-----------1-----------sum and average-------------------
n = int(input('Enter how many number u input : '))
total = 0
for i in range(1,n+1):
num = input(f"input number : ")
total += int(num)
print(f'the total sum :{total}')
print(f'the total avarege : {total/n}')
# ------------------using fun... | [
"jitshil@pop-os.localdomain"
] | jitshil@pop-os.localdomain |
b225078d0a91211eb3468b927ba33ab82c48402a | 9bcf0c5df0c8d7f387469975e1f5ed64ae61a701 | /coop_gateway/__init__.py | 3a4c388cb09435e6d5038c574d255491d6fe0585 | [
"BSD-2-Clause"
] | permissive | credis/coop-gateway | 4d3d8513ce693db7efb8d34c6823ae3b41cfcd1e | 57bfdac90118db6abab078d45fca2bbc65d8bb54 | refs/heads/master | 2021-01-22T07:03:19.261389 | 2013-11-25T14:06:28 | 2013-11-25T14:06:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from django.db.models.signals import (
post_save,
post_delete,
)
from coop_local.models import (
Organization,
Person,
)
from .signals import (
organization_saved,
organization_deleted,
person_saved,
person_deleted,
)
post_save.connect(organization_saved, Organization)
post_delete.conn... | [
"antoine.cezar@makina-corpus.com"
] | antoine.cezar@makina-corpus.com |
ffd754dfcd3f8ce81ed63d9d1957b3c012840687 | f63d8037abd95550bbf19820bbbf63fe004ea027 | /apps/auth/models.py | e887c3348f0f68c9ec65dc5781584c4c4638ab2f | [] | no_license | lsdlab/flask_socketio_celery | 6595e0fdc6534e4c3988b2e895194ba6f2302c53 | 84870110641feb8e49d9f45271894a66e202b7ec | refs/heads/master | 2020-03-24T20:54:47.793077 | 2018-08-01T04:33:54 | 2018-08-01T04:33:54 | 143,003,268 | 0 | 1 | null | 2018-08-24T01:54:32 | 2018-07-31T11:08:36 | Python | UTF-8 | Python | false | false | 2,521 | py | import datetime as dt
from flask_login import UserMixin
from apps.database import (Column, Model, SurrogatePK, db,
reference_col, relationship)
from apps.extensions import bcrypt
class Role(SurrogatePK, Model):
"""A role for a user."""
__tablename__ = 'auth_roles'
name = Colum... | [
"lsdlab@icloud.com"
] | lsdlab@icloud.com |
d82f4bb8ea67a5a20c2e438014b1ba0342be5e7f | cb9281a34c3c5a36d4b3a846fb6ff22ede12f2f6 | /Haroldo_weigh_history_sel.py | 96ace295518488fa84f0fc246b70004904f29539 | [] | no_license | juliettapc/CalorieKing | 9cb9f35ae9b239d2284175b0802cf2c60dc79d1d | 5f80bffb65fe4644a81ae2ab0b1738861e028331 | refs/heads/master | 2022-02-10T07:52:24.133379 | 2022-02-08T01:25:18 | 2022-02-08T01:25:18 | 153,174,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | #! /usr/bin/env python
import sys
import os
from database import *
from datetime import *
def main ():
database="calorie_king_social_networking_2010"
server="tarraco.chem-eng.northwestern.edu"
user="calorieking"
passwd="n1ckuDB!"
db=Connection(server, database, user, passwd)
query="""Select `weigh_in_cut... | [
"noreply@github.com"
] | juliettapc.noreply@github.com |
ac14e0da172317774b395bde7f035d2668d68ea8 | 6f66a02e3bbf042da0c50958f9ccacbbf6427d11 | /scripts/audio_builder.py | abc7d2497f56d7fc290efbaaf242b63a79422978 | [] | no_license | lmirandam07/reverso_favs2anki | 86672641f68729bce13c0bae1f731c43572e3103 | 3f08b88ce88d9a9d8bbf8cb25aaf10da5ace2388 | refs/heads/master | 2023-06-28T16:48:50.255632 | 2021-08-01T22:02:44 | 2021-08-01T22:02:44 | 357,282,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,760 | py | import time
import logging
import requests
from uuid import uuid4
from random import choice
from pathlib import Path
from decouple import AutoConfig
from xml.etree import ElementTree
logging.basicConfig(filename='../files/main.log', level=logging.INFO,
format='%(asctime)s - %(name)s - %(leveln... | [
"luyimiranda07@gmail.com"
] | luyimiranda07@gmail.com |
90f0943c30d39f4eee6a5154e35632bd7d6b8d61 | 5f60b6c599de062d4d80987ea6b515a55c554a43 | /fridaySmallFunctions.py | 262e7f97b0254c37c122cc36c1ce00794262f72a | [] | no_license | ClauMaj/pyHomework | c6871d42a3c2b9eaa2616daeaec3c53b4f304413 | ca198451e9921d6fc604d28c50366480e800abf8 | refs/heads/main | 2023-01-30T12:00:06.109456 | 2020-12-04T03:26:34 | 2020-12-04T03:26:34 | 311,827,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | # 1. Madlib function
# madlibName = input("name: ")
# madlibSubject = input("subject: ")
# def interpolate(a, b):
# print(f"{a}'s favorite subject is {b}.'")
# interpolate(madlibName,madlibSubject)
# 2. Celsius to Fahrenheit conversion
# cel = int(input('cel temp: '))
# def celToFar(temp):
# return (temp * 9... | [
"claudiumajor@gmail.com"
] | claudiumajor@gmail.com |
146c06c0679a7f052c159f39be6f261d6fe45303 | 4a3071cfe19f3430dc4c6f3072f41bc0d7ea5875 | /drinks/spiders/coolers.py | c03b31211896a91a069abdb7255fc0b020a56772 | [] | no_license | RachelLi13/Drinks | e4daf8e7d61bfe4c57b907f01acda8aba811ce0d | 838c54892daf3cb713e80b0bfdce5505bc3ab24f | refs/heads/master | 2023-05-05T02:23:29.168225 | 2021-05-31T23:04:19 | 2021-05-31T23:04:19 | 368,023,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | import scrapy
from scrapy.loader import ItemLoader
from drinks.items import DrinksItem
class CoolerSpider(scrapy.Spider):
name='coolers'
start_urls = ['https://www.lcbo.com/webapp/wcs/stores/servlet/en/lcbo/coolers-18-1/coolers-18029',
'https://www.lcbo.com/webapp/wcs/stores/servlet/en/lcbo/coolers-18-1/p... | [
"li.rachel.cheng@gmail.com"
] | li.rachel.cheng@gmail.com |
16d09bd1bac2eeb428afddc0c41bfb53b8ecd69e | b2a936c4d489f98316300982d3309e619bceef26 | /100Day_section1/Day29/Sol2.py | 3e3e7dd3d92d76289c287b7418f315330a2ef34f | [] | no_license | HarryZhang0415/Coding100Days | 01e4ba196c06008d84d866a4a92b87e0da48b75f | 77ba81abb59f95f09c030550dcf24bb90f27a4b1 | refs/heads/master | 2023-06-27T17:13:49.765008 | 2020-10-17T01:01:27 | 2020-10-17T01:01:27 | 266,252,644 | 0 | 1 | null | 2021-08-02T21:32:58 | 2020-05-23T03:05:07 | Python | UTF-8 | Python | false | false | 417 | py | from collections import Counter
class Solution:
def sortColors(self, nums: List[int]) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
ans = Counter(nums)
tmp = []
for key in range(3):
for n in range(ans[key]):
... | [
"harryzhang0415@gmail.com"
] | harryzhang0415@gmail.com |
e4deaab552e15fd0a049d7785d37531f82b3d01f | acf6e8985035edd570568113f00041a438a260fd | /plugin/geo2france/utils/plugin_globals.py | 36a1f9d38034897f673e89e4c2fbb1c76f128150 | [
"BSD-3-Clause"
] | permissive | vfabry/geo2france-qgis3-plugin | 7b066361891d191dedcb5e42de830f02c5c6f8ee | f1be1bf19b0fa3b701c10c38fd8fb7690f0e5abf | refs/heads/master | 2020-12-23T01:20:55.905712 | 2020-01-07T11:10:47 | 2020-01-07T11:10:47 | 236,988,583 | 0 | 0 | null | 2020-01-29T13:29:32 | 2020-01-29T13:29:31 | null | UTF-8 | Python | false | false | 5,193 | py | # -*- coding: utf-8 -*-
import sys
import os
from geo2france.utils.singleton import Singleton
from qgis.PyQt.QtCore import QSettings
@Singleton
class PluginGlobals:
"""
"""
iface = None
plugin_path = None
# Plugin infos
PLUGIN_TAG = u"Géo2France"
PLUGIN_VERSION = u"0.9.0"
PLUGIN_SOU... | [
"bchartier@neogeo.fr"
] | bchartier@neogeo.fr |
5c11684904226a34ff4139ac8f55a9665304d5fb | 7790fdf1d9f62b27440522a400b4ac08cc7714cd | /test.py | 39697bcad02bf9fc176dc14068e067978bab046c | [] | no_license | kajaje/liu | 79017f6106f4a1b498efced09e83a79de8f1eb56 | a1f24c62978296de754945a0c6e1c4f1f92418ac | refs/heads/master | 2020-11-28T02:06:39.002884 | 2020-01-09T07:02:19 | 2020-01-09T07:02:19 | 229,676,299 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | # -*- coding:utf-8 -*-
import os
import datetime
print datetime.datetime.now()
| [
"ywliuzhigang@ZBMAC-C02W3201W.local"
] | ywliuzhigang@ZBMAC-C02W3201W.local |
eae4908d71ee6fe97c0afdd406546590b7a29277 | 283771022ed7cb7ef9c621dd617e367f09278da5 | /import/import_from_xml.py | 70b83e6cf016985d24f872a72241e77a4924b78f | [] | no_license | victorpedrocs/dados-abertos-cd | b205180a7c3d9dc643b952d9ac8242d2ea905400 | 56cff6460c7555ca3119719318df8f7191f34210 | refs/heads/master | 2023-04-14T15:37:59.800050 | 2016-05-17T03:47:08 | 2016-05-17T03:47:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,398 | py | import urllib
import xml.etree.ElementTree as ET
import zipfile
import sqlalchemy
from sqlalchemy.orm import sessionmaker
from models import *
from datetime import datetime
import re
def import_from_file( root, session ):
for despesa in root[0].findall('DESPESA'):
nome_parlamentar = despesa.find('txNomePa... | [
"vpcx5@yahoo.com.br"
] | vpcx5@yahoo.com.br |
89588f1507285e3312add597434439152e7280fa | 7a3696072a511acc4974bb76004b315a35a106b7 | /SS-GCNs/SS-GMNN-GraphMix/GraphMix-clu/trainer.py | 0a339f94160ac998022247c886c38f0cec71a1bd | [
"MIT"
] | permissive | xyh97/graph_representation | 859e9f2ff911058db251fd6547098968960c6739 | e6967073a951cd029651389d4b76606f9cef7f6c | refs/heads/main | 2023-03-23T00:55:52.763740 | 2021-03-19T17:15:40 | 2021-03-19T17:15:40 | 343,223,074 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,909 | py | import math
import random
import numpy as np
import torch
from torch import nn
from torch.nn import init
from torch.autograd import Variable
import torch.nn.functional as F
from torch.optim import Optimizer
bce_loss = nn.BCELoss().cuda()
softmax = nn.Softmax(dim=1).cuda()
class_criterion = nn.CrossEntropyLoss().cuda()... | [
"xiangning@cs.ucla.edu"
] | xiangning@cs.ucla.edu |
b3e16c11c3347c4bec9ffbfdc601c331183f2130 | 2eb7481aac8816259e99bfcefd8e5137f9473d49 | /analyze/db_operation.py | c6f3ee8e881feae0db540c9e9888154d6eef4498 | [] | no_license | chenxy1996/CXK | a7cfd32f0d4951fa8e6228571a9d1b729cc5a9e5 | 46d01e8446ba748bf6d8abe8efe69cc070854a21 | refs/heads/master | 2020-06-25T02:39:57.814117 | 2019-07-27T14:22:06 | 2019-07-27T14:22:06 | 199,173,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,852 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
import pymongo
from pymongo import MongoClient
from bson import ObjectId
from snownlp import normal
from snownlp import seg
from snownlp.summary import textrank
from snownlp import SnowNLP
from snownlp import sentim... | [
"www.459971074@qq.com"
] | www.459971074@qq.com |
f34d0f0a19af43018c6cff0a037f889953253534 | 949b3bedf6dd1e145a9ab65ec4e581a9125312d4 | /data/downloader.py | 9074f7ee789c90ce0af5a325a924a75ba737ba26 | [] | no_license | wroldwiedbwe/SanBeniculturali-Downloader | d1837aef34c2f4041d9a57dd6baaa150cd46e751 | 90c8a9b9ea5f5af57c3d7bd2dfa340c9c71c5772 | refs/heads/main | 2023-06-22T11:12:26.538795 | 2021-03-08T10:20:52 | 2021-03-08T10:20:52 | 338,150,135 | 0 | 0 | null | 2021-02-11T20:54:01 | 2021-02-11T20:54:00 | null | UTF-8 | Python | false | false | 5,393 | py | import os
import time
from threading import Thread
from queue import Queue
import platform
import requests
from PyQt5 import QtCore
from lxml import html
import urllib
from datetime import datetime
from multiprocessing import Process
BASE_URL = 'http://dl.antenati.san.beniculturali.it'
def get_url_list(url, urls):
... | [
"marcello.cuoghi@gmail.com"
] | marcello.cuoghi@gmail.com |
a6bfa4bc21326b751b80728564ef1a6de6811fd9 | 878f3d634c6698043bf98d31cb77129dfcb051b4 | /ssht00ls/classes/ssync/utils.py | 8aa105f186ce770d5b184b537e56343ca0cfe077 | [] | no_license | 00mjk/ssht00ls | 592ca76467f69b41cb946499994bc0d81ccfc7b3 | 74605bebc30c6a8de408c882bf44e40385d88b02 | refs/heads/master | 2023-03-16T17:01:21.986459 | 2021-03-18T12:24:16 | 2021-03-18T12:24:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,222 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# imports.
import os
from dev0s.shortcuts import *
from ssht00ls.classes.config import *
from ssht00ls.classes.ssh import ssh
from ssht00ls.classes.ssync.index import index
from ssht00ls.classes.ssh.utils import execute
# settings.
INCLUDE = []# '.git', 'dist', "'*.egg-... | [
"vandenberghinc.contact@gmail.com"
] | vandenberghinc.contact@gmail.com |
a61c5986bdf09f0f3c5f9728359fa2757eb86c65 | a4ea4f97b25e8045ede8482bc81288c26ef0a279 | /scripts/checklexicon.py | f0fe2372401b8b1a8e7f8bc1fe7ecbf71179cecf | [] | no_license | MalinAhlberg/Fornis | 0b5409afd2f5a3631adc0cafdd9ae9040b505ac8 | 2b078e3a26003587fa4c51c0dc8cfc040500f22e | refs/heads/master | 2020-08-27T04:53:04.150176 | 2012-11-14T14:43:17 | 2012-11-14T14:43:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | ## check which lemgrams and sense-id that are duplicated
from lexiconer import *
def check(fil):
entries,lexicon = readIt(fil)
lex = lexicon.find('Lexicon')
lems,senseids = [],[]
for i,entry in enumerate(entries):
lemma = entry.find('Lemma')
lemgram,_ = getAtt(lemma,'lemgram')[0]
sens... | [
"ahlberg.malin@gmail.com"
] | ahlberg.malin@gmail.com |
3ce28df50431abb173399944f8b4ea38fb7a0ec0 | 1975118281f5a214bea5ab05ef955694fd0e82b6 | /env/Practica3/Practica3/urls.py | 78323e4bb2b75de8b16447cc0b980a5240484a87 | [] | no_license | gl3ncal3l/practica3 | ef015e1ffaa0f66bd7d17e288d817509aac2e0bd | d89c07b7bb12fe86c98b4782837a2196db475e4a | refs/heads/master | 2020-05-03T12:36:23.938522 | 2019-04-26T00:22:40 | 2019-04-26T00:22:40 | 178,630,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | """Practica3 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-bas... | [
"gl3ncal3l@gmail.com"
] | gl3ncal3l@gmail.com |
2c993aff9729e90d6f7afc4a8f63410904ee47cf | c054bbb1faafd561711cc31c225195e324a632c0 | /106. Construct Binary Tree from Inorder and Postorder Traversal.py | 62d1447d6aaf747771f87874ab29d1d9f2df8c4a | [] | no_license | sakusss/leetcode | d2be75ee611015b86bdd627f7bfef906a10701d0 | 070636a44d1b03de340ecade11f9af4ad797f9e7 | refs/heads/master | 2021-04-15T09:37:46.770322 | 2018-07-18T12:29:41 | 2018-07-18T12:29:41 | 126,825,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | class Solution:
def buildTree(self, inorder, postorder):
"""
:type inorder: List[int]
:type postorder: List[int]
:rtype: TreeNode
"""
if len(inorder) == 0:return None
if len(inorder) == 1: return TreeNode(inorder[0])
root = TreeNode(postorder[len(posto... | [
"noreply@github.com"
] | sakusss.noreply@github.com |
3698b557bc7bea69e48a8d73d419c8616f8baa73 | c5f1b93ea560b38388f462965a026a2d1ba0ab0e | /120codes/sequential_search.py | 9fc20972d01220105053ced9c7454e98b82cee69 | [] | no_license | mdiksha/PYTHON | 76ab330bd953d3c78978f0600c53a729fb902246 | bd8317e3bf715695ec47273c22513475f17b4b0e | refs/heads/main | 2023-07-02T04:25:15.263673 | 2021-08-02T13:48:59 | 2021-08-02T13:48:59 | 390,958,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | def sequential_search(list_, n):
found = False
print("Number not present")
for i in list_:
if i == n:
print("Number is present")
found=True
break
return found
numbers = list(range(0, 50))
print(sequential_search(numbers, 100))
| [
"mdiksha0495@gmail.com"
] | mdiksha0495@gmail.com |
5424576c5087ceb1ed0020f93159ed8237a68b19 | 8f0449cf971a64b511bec6db9e8b6de286431454 | /back_dev/wsgi.py | 7781c1c8517c3e99be9a24382aa53ace8bfef399 | [] | no_license | SidhuAB/back_end_driven | d4b7a658f835c9a0b9795356eb9dd74dd392e44e | 5353e3b06af5dd8479b8860afef0de4cc158a5b2 | refs/heads/master | 2022-11-29T11:24:55.589660 | 2020-08-14T09:03:15 | 2020-08-14T09:03:15 | 287,211,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for back_dev project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"abhishekbakolia1998@gmail.com"
] | abhishekbakolia1998@gmail.com |
579313e35659c369b388067a4ddda3075f422537 | 03328462771b82021537396e233fe1155901b48e | /plugin.video.movies.thietkeweb30s.org/resources/lib/utils/link_parser.py | 438dddbeee26f0c73fd22b0acc293514072d648f | [] | no_license | quangthylove/thietkeweb30s.org | 154007f59af92d7571dacca9b9abbd08f518251d | f31c8bc61761ed43a846ca4a32ea10d9407ca51e | refs/heads/master | 2023-05-26T07:54:09.007067 | 2023-05-24T15:30:43 | 2023-05-24T15:30:43 | 58,783,132 | 0 | 0 | null | 2017-02-23T09:02:14 | 2016-05-14T01:21:10 | null | UTF-8 | Python | false | false | 3,615 | py | # -*- coding: utf-8 -*-
import re
import HTMLParser
import json
import utils.xbmc_helper as helper
from utils.mozie_request import Request
from utils.fshare import FShare
from utils.pastebin import PasteBin
def rsl(s):
s = str(s).replace('HDG', '') \
.replace('HD', '1080') \
.replace('SD', '640') ... | [
"noreply@github.com"
] | quangthylove.noreply@github.com |
fa3e535aaacaa3dafcb031f0333a8778da9d2e30 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/1531.py | 9246536e333923658ae3a6c8448940cb36f0d831 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | def check(x, mn, mx):
global pairs
pcheck = []
x = str(x)
if len(x) == 1:
pass
if len(x) == 2:
if x[0] != x[1]:
first = x[::-1]
if int(first) > int(x):
pcheck.append(int(first))
if len(x) == 3:
second = x[1:]+x[0]
third = x[-1]+x[0:-1]
if second != x and second[0] != '0' and in... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e71ad5b0a6c1ae9d05f8cb8f5607e2b6ff54691a | 8a9e7744d7a3de3514cc45ee493572c4198c1a80 | /MatrixMaps.py | 0c51bd2ca6108b84d58c8a088c6c5d54d57a1239 | [] | no_license | cylab/APCequencer | 5f8df81ff5e27ddb1036601c53cbdc4775848fe1 | c57bb20558f452cca5dcdbc46ccc83ea670dc5f9 | refs/heads/master | 2021-01-12T07:55:25.410735 | 2016-12-31T10:44:05 | 2016-12-31T10:44:05 | 77,049,304 | 3 | 2 | null | 2016-12-21T12:22:59 | 2016-12-21T12:22:59 | null | UTF-8 | Python | false | false | 679 | py | FEEDBACK_CHANNELS = range(5, 15)
PAD_FEEDBACK_CHANNEL = FEEDBACK_CHANNELS[-1]
NON_FEEDBACK_CHANNEL = 15
PAD_TRANSLATIONS = (
(0, 0, 24, PAD_FEEDBACK_CHANNEL),
(1, 0, 25, PAD_FEEDBACK_CHANNEL),
(2, 0, 26, PAD_FEEDBACK_CHANNEL),
(3, 0, 27, PAD_FEEDBACK_CHANNEL),
(0, 1, 16, PAD_FEEDBACK_CHANNEL),
(1, 1, 17, PAD_FEED... | [
"will@willmarshall.me"
] | will@willmarshall.me |
30488140bbafd8c992e8f0a3ebaaf7280fad3cd7 | 6f5ffb519ea0e346b5b92b916a88e414b4566dfd | /Python/Q12.py | f15dcd8790497ad11c6e2e3d1c28dce78ec53a50 | [
"MIT"
] | permissive | ThoAppelsin/project-euler | 453b880cc8a6b1affcab5e7a43920fe70a323176 | ee7fcac9ec725c9eddfbccd60b47de65987d22b4 | refs/heads/master | 2021-05-11T16:08:35.852063 | 2018-01-17T13:05:24 | 2018-01-17T13:05:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | from functools import reduce
factordicts = {1 : {}}
def factordict(num):
if num not in factordicts:
def factordict2(factor):
if factor ** 2 > num:
return {num : 1}
if num % factor == 0:
subdict = factordict(num // factor).copy()
if f... | [
"utkangezer@gmail.com"
] | utkangezer@gmail.com |
58f06f1dde50772714fdb17fd1ad7f34f000a3d2 | f21d54d57f931da26ea21fe0dc8060d213fd94ad | /example/custom_image/my_library.py | 9e4b2268435e036f3ff157ac51eec6c135cb7d3f | [
"MIT"
] | permissive | wwoods/dask-ssh-docker | 0fb59c330aee66fbee915d588ca177ae20a1de96 | 05237931bab59dd7d16d73fc13dcccb92b1e25ed | refs/heads/master | 2020-09-09T19:46:34.508396 | 2019-11-27T18:45:15 | 2019-11-27T18:45:15 | 221,548,533 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | def func(x):
return [i+1 for i in x]
| [
"waltw@galois.com"
] | waltw@galois.com |
9bd894fbe23ed6809095558802393c5e1ce40235 | be497e9cbfc18059af0b852709d4f026bf65b253 | /cover_page/forms.py | 9c351080d6d42a241a75563cb2fb92ab4379c580 | [
"MIT"
] | permissive | kenton1818/my_web | d776a0ceea2ded91fa235f84bceb8e32053734dd | 96f3cce2fd8d89b9e39e54af1cc789cd17224577 | refs/heads/master | 2020-04-28T01:04:05.297102 | 2019-03-13T12:33:40 | 2019-03-13T12:33:40 | 174,840,500 | 0 | 0 | null | 2019-03-10T15:29:27 | 2019-03-10T15:12:13 | null | UTF-8 | Python | false | false | 614 | py | from django import forms
class LoginForm(forms.Form):
usname = forms.CharField(label = 'username', required = True)
# email = forms.EmailField(label = 'email',required=True)
psw = forms.CharField(label = 'password', widget = forms.PasswordInput)
''' def clean(self):
username = self.cleaned_data['... | [
"31765235+kenton18@users.noreply.github.com"
] | 31765235+kenton18@users.noreply.github.com |
87732f2f62d632004a2020e6b6bc2aeeab6d4e49 | 21559592f6393593f1df9bb40075137fa94cdb75 | /train.py | ae62a799d007cd0ab4a8dd147245f4103d39add4 | [
"MIT"
] | permissive | rskmoi/landmark-retrieval-2020-with-pytorch | bf8907ffaa55ff418c6d2b42cbd98a1782b9dadb | 41917b1f588b5ad396cb1095867a0f042c611675 | refs/heads/master | 2022-12-08T12:45:08.680934 | 2020-09-08T05:17:09 | 2020-09-08T05:17:09 | 293,096,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py | from pathlib import Path
import hydra
import torch
from omegaconf import DictConfig
from torch.optim.optimizer import Optimizer
from torch.utils.data import DataLoader
from tqdm import tqdm
from dataset.landmark_dataset import LandmarkDataset
from metric.loss import ArcFaceLoss
from model.model import arcface_model
... | [
"zn5ps5@gmail.com"
] | zn5ps5@gmail.com |
b4faa39e94757cc304633ff3ee828649bbc42322 | 8289fb4b9f2242a2f0a1b92b391058f421788682 | /Ros/Kumara_ws/kumara_xprize/kumara_xprize/script/serial/kumara_head_serial.py | 9750666c54eef676daced8fce1d47a92b2529b64 | [] | no_license | BawornsakS/XPrize | 5fedf7c7f0838b1da5c0749ef846ed7b2135356d | e6e900c6c63f0cef5cb3717a5b6724ec9ae00b69 | refs/heads/master | 2021-07-20T06:28:09.666385 | 2020-09-04T06:39:13 | 2020-09-04T06:39:13 | 211,299,370 | 3 | 3 | null | 2019-11-13T08:07:18 | 2019-09-27T10:56:38 | Makefile | UTF-8 | Python | false | false | 2,485 | py | #!/usr/bin/env python
__author__ = "mferguson@willowgarage.com (Michael Ferguson)"
import rospy
from rosserial_python import SerialClient, RosSerialServer
from serial import SerialException
from time import sleep
import multiprocessing
import sys
if __name__=="__main__":
rospy.init_node("kumara_head_serial")
... | [
"44831071+aminballoon@users.noreply.github.com"
] | 44831071+aminballoon@users.noreply.github.com |
f14a7289069f811ad09e62b6e0e0941c562b28dd | b69a800af16afef6514698bff280866e0ef69065 | /Stats.py | be99111092fc0a869abdc7f87e218a823854f7f4 | [] | no_license | MatteoLusso/Python-Analizzatore-Campioni | ad70bddf720e2418f8cd866905b22d9f92bd4269 | 8e084c23309b0f13075ea9477f085039e1fc3678 | refs/heads/master | 2023-07-24T10:02:18.201762 | 2021-09-04T12:40:02 | 2021-09-04T12:40:02 | 390,394,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,815 | py | import statistics
import Graphs as grp
import KDE as kde
import Reader as rdr
import pickle as pk
import numpy as np
import Serializer as sr
#import MultiKDE as mkde
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
class Set():
def __init__( self, setName = "None", filesNa... | [
"matteo.lusso.unica@gmail.com"
] | matteo.lusso.unica@gmail.com |
14d31c408580cc856757c09018f09571518ff2db | e231faae5d375db058cc563fb385d9cd486148dd | /core/tests/queue_test.py | ddbcf85fc734eeb2a25194dfaca1c99dd6342b83 | [] | no_license | Smarsh/norc | 0cea9cf2ed9860d4ef2d587a6fb173ca4f02c591 | c3608c97f6d6c292689e3d693c2a3e211df24138 | refs/heads/master | 2020-12-24T22:06:09.765846 | 2013-04-05T18:12:00 | 2013-04-05T18:12:00 | 9,247,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,620 | py |
from django.test import TestCase
from norc.core.models import DBQueue, QueueGroup, QueueGroupItem, Instance
from norc.norc_utils import wait_until
from norc.norc_utils.testing import *
class DBQueueTest(TestCase):
"""Super simple test that pushes and pops something from the queue."""
def setUp(self):
... | [
"elnaril@gmail.com"
] | elnaril@gmail.com |
18a5f4f2b9cb10d1124b430d45dd8a188bb934f8 | d08258132b59630b6e1973ddc86d3907ceeccffc | /chat/views.py | 49cf828c4486f6158397b13dc31084e80c2d17b2 | [
"MIT"
] | permissive | sushil11-art/E-Health-Care | a9ea6cdaa5f7ec5fd0cb6900aa73744e3aa5bd8f | 5b546f2e5606d049a86058907fb8e90435df8839 | refs/heads/master | 2023-06-18T17:28:41.006774 | 2021-07-18T11:43:28 | 2021-07-18T11:43:28 | 307,590,539 | 0 | 0 | MIT | 2021-03-08T09:15:01 | 2020-10-27T05:03:11 | JavaScript | UTF-8 | Python | false | false | 3,946 | py | from django.contrib.auth import authenticate, login
from django.contrib.auth.models import User
from django.http.response import JsonResponse, HttpResponse
from django.shortcuts import render, redirect
from django.views.decorators.csrf import csrf_exempt
from rest_framework.parsers import JSONParser
from chat.models im... | [
"thapapradip542@gmail.com"
] | thapapradip542@gmail.com |
1d23a160753c363ac20d98f4b01c0504fea76660 | c36177d78e12177758925385f61979eb4866e690 | /summer2018-a01-XinSu902/mapper.py | 6128a8f58e30bee75e46fe26b09282e2a70112fb | [] | no_license | XinSu902/Big-Data | afb182b264515284b42f1f5e8df9f942e53b56b7 | c1f6f5780fa532503696c53f7420dd4b8b287d7c | refs/heads/master | 2020-04-02T01:50:00.558165 | 2018-10-20T06:46:40 | 2018-10-20T06:46:40 | 153,877,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | #!/usr/bin/env python
#
# This file has been provided as a starting point. You need to modify this file.
# Reads whole lines stdin; writes key/value pairs to stdout
# --- DO NOT MODIFY ANYTHING ABOVE THIS LINE ---
import sys
if __name__ == "__main__":
for line in sys.stdin:
for word in line.split():
sys.stdout.... | [
"noreply@github.com"
] | XinSu902.noreply@github.com |
954f4db93cab052b5db457d58fe907df47966546 | 048a38ac3692a8970a11d792702db9be6752cb84 | /2+2+2.py | 242cd7e91f998ce3f38331e1a8d538465a0c2781 | [] | no_license | erkitammeaid/school-exercises | bb9960473bc6eae8ccd40c82607d6093315cbda4 | 553e774ec92a8c3eb6c41de424857df2281bf354 | refs/heads/master | 2022-04-14T05:44:27.606165 | 2020-04-17T12:24:47 | 2020-04-17T12:24:47 | 209,001,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | n = input("sisesta üks arv 1st - 9ni: ")
nr1 = n
nr2= n+n
nr3 = n+n+n
nr_total = int(nr1) + int(nr2) + int(nr3)
print("n + nn + nnn = " + str(nr_total)) | [
"noreply@github.com"
] | erkitammeaid.noreply@github.com |
d44c38b442f4ea146ddaa3080d9f72ed2c617fa8 | 025c1cc826722d558d43854f3e319917e199d609 | /infra_macros/macro_lib/convert/container_image/compiler/compiler.py | 6cfddefcce8817aa2d14a9321c253ab846c2820a | [
"BSD-3-Clause"
] | permissive | martarozek/buckit | 73440be29a2ce64084016fc395a5a8cc9bc1e602 | 343cc5a5964c1d43902b6a77868652adaefa0caa | refs/heads/master | 2020-03-26T06:07:35.468491 | 2018-08-12T17:34:04 | 2018-08-12T17:45:46 | 144,590,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,345 | py | #!/usr/bin/env python3
'''
This is normally invoked by the `image_layer` Buck macro converter.
This compiler builds a btrfs subvolume in
<--subvolumes-dir>/<--subvolume-name>:<subvolume-version>
To do so, it parses `--child-feature-json` and the `--child-dependencies`
that referred therein, creates `ImageItems`, so... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3de5136de3696c4e49370d8ef3420a67e721f6b3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_149/82.py | 0c7ae5570829193e068ba4471f6d4bad7fb4b56a | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | #!/usr/bin/env python
import itertools
def solve(a):
ans=0
while a:
x=min(a)
i=a.index(x)
del a[i]
ans+=min(i,len(a)-i)
return ans
for t in xrange(1,1+int(raw_input())):
n=int(raw_input())
a=map(int,raw_input().split())
ans=solve(a)
print"Case #%d:"%t,
print ans
| [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e9ae21fffa00128cbdf44f2fb9ed719514c6b395 | 0b99d29b1c9fd8256b52866e338228291f2273ff | /csvcorrector.py | 0eb854af9df49c1c0eb715ce5d457517bb59cd26 | [] | no_license | ad1lkhan/TwitchCommentScrape | b4baeb53eb3153b2602b89b59b594b4c2476e3bf | 592b23177a9736963853df42e7cda5721e6536b0 | refs/heads/master | 2020-03-22T15:42:35.414112 | 2018-07-20T14:43:54 | 2018-07-20T14:43:54 | 140,271,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | import glob, os
import sys
import csv
dirToVideos = sys.argv[1]
os.chdir(dirToVideos)
if not os.path.exists(os.path.dirname('altered/')):
os.makedirs(os.path.dirname('altered/'))
def find_nth(s, x, n):
i = -1
for _ in range(n):
i = s.find(x, i + len(x))
if i == -1:
break
ret... | [
"piratemuffin@hotmail.co.uk"
] | piratemuffin@hotmail.co.uk |
8cfbe05b9aeb068e2eea79df986d823110f9c019 | 899bac17acf97252a33d91af076ff1f16b975210 | /eduiddashboard/scripts/decode_session.py | 787b570f274e635d56156b7461f3b6945ebfead4 | [] | no_license | isabella232/eduid-dashboard | 91a209f7833f26a7949cecec60df2e501a82f840 | 99cffaa90f41b13ec34f9d057f19630c644df6ee | refs/heads/master | 2023-03-16T05:19:36.184687 | 2018-07-27T12:27:53 | 2018-07-27T12:27:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | # -*- coding: utf-8 -*-
import sys
import pprint
from pyramid.paster import bootstrap
from eduid_common.session.session import SessionManager
import logging
logger = logging.getLogger(__name__)
__author__ = 'ft'
"""
Read and decode a session from Redis. Supply the token (id starting with lower-case 'a')
from an ex... | [
"fredrik@thulin.net"
] | fredrik@thulin.net |
d65943f13d875ed1bf01ff0e0dce8c81a948776d | aecfe34460b8aad03f356a80f46aa299b09b755a | /Entrega2_DefinirAnalizadorLexico/Codigo Funete/AnalizadorLexico.py | b1ce692b4d37db99c62d99c8dab95410a86f5045 | [] | no_license | JorgeBesnier/LenguajesTraductores | 6536ed1a004946acd797c691db45a37f84a50b6f | 739d46efaf1bea1d7055d1c9ba9be7705eb84d62 | refs/heads/master | 2023-01-21T07:03:17.698599 | 2020-11-23T18:46:06 | 2020-11-23T18:46:06 | 296,751,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | import ply.lex as lex
import ply.yacc as yacc
import sys
tokens = [
'HOLA',
'COMA',
'QUE',
'TAL'
]
t_ignore = r' '
def t_HOLA(t):
r'hola'
t.type = 'HOLA'
print("HOLA")
return t
def t_COMA(t):
r','
t.type = 'COMA'
print(",")
return t
def t_QUE(t):
r'que'
t.type = 'QUE'
pri... | [
"noreply@github.com"
] | JorgeBesnier.noreply@github.com |
27246c4bd9d20b95b4470062d75988deefab139e | 32dd999a869fcbf5f996d29efd8be2ce9adff9c7 | /OnTime/forms.py | 9dd1931efda36de1fdf6254787b14bf025707ae7 | [] | no_license | aamathur02/MBTA_OnTime | 089c674f6ffb0ac7021109f5ad1b6dfec4ca7271 | 42af8b249f392780fb79366a36522d35bf85bbc7 | refs/heads/master | 2022-12-20T00:17:16.480082 | 2020-10-05T20:25:37 | 2020-10-05T20:25:37 | 290,897,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | from django import forms
from .models import TripInput,Starting_Stop, Ending_Stop
class TripInputForm(forms.ModelForm):
class Meta:
model = TripInput
fields = {'name', 'line', 'starting_stop', 'ending_stop', 'starting_time', 'ending_time'}
def __init__(self, *args, **kwargs):
super... | [
"aayushmathur@lawn-128-61-15-237.lawn.gatech.edu"
] | aayushmathur@lawn-128-61-15-237.lawn.gatech.edu |
030ded5953721581dcd9189e21169ab41d77f904 | 7fb63a526d4e21b25f67601c65b460ed081169de | /main.py | 6bdd5c2e5a2383f2c2e9e70ffd178b3210240f1b | [
"MIT"
] | permissive | ramondalmau/atcenv | 511426f0611c78aacf630383698689b8c667f489 | 9725ebf9aaf5367aa66973d5604e3eb576f44d5b | refs/heads/main | 2023-04-16T10:42:52.549127 | 2022-02-28T10:51:48 | 2022-02-28T10:51:48 | 456,930,114 | 5 | 7 | null | 2022-02-09T12:09:27 | 2022-02-08T12:49:02 | Python | UTF-8 | Python | false | false | 1,192 | py | """
Example
"""
if __name__ == "__main__":
import random
random.seed(42)
from jsonargparse import ArgumentParser, ActionConfigFile
from atcenv import Environment
import time
from tqdm import tqdm
parser = ArgumentParser(
prog='Conflict resolution environment',
description='... | [
"ramon.dalmau-codina@eurocontrol.int"
] | ramon.dalmau-codina@eurocontrol.int |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.