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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f8a99374525225c281f0b9898ed98c7f551646f | 042a57026d63476c55e1c5f3ae25e017cc9a5f5e | /modules/common/Utils.py | a918e687e2f86f36281143c01d65f7822fa46355 | [] | no_license | opentargets/genetics-input-support | 92ca81cbbc739fd5041be7957111bdf61735affa | cfb9946e9dfa048a7193a6f0e6283866a7a7b657 | refs/heads/main | 2023-09-05T10:03:53.842214 | 2021-11-19T16:22:31 | 2021-11-19T16:22:31 | 429,443,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | import logging
import shutil
import subprocess
from addict import Dict
import os
logger = logging.getLogger(__name__)
#print(os.environ["PATH"])
class Utils(object):
def __init__(self, config, outputs):
self.config = config
self.output_dir = outputs.prod_dir
@staticmethod
def check_pat... | [
"cinzia.malangone@gmail.com"
] | cinzia.malangone@gmail.com |
360ef2d9ed0c32fa420dfd9c5e8733d60b7c329e | fea94f3477b15cb97b5496963e611ed9879b72f6 | /Jabbar/__init__.py | e98ccc757116b1ecc96cc6f1ff546ecf4bc37aa8 | [] | no_license | vaporstack/Supybot-plugins | 83835fe9c74a9918360a6e9d74395de3c2643ba5 | bb1dea4f3448ff90e3ea43fecd08d95fd5d9d863 | refs/heads/master | 2020-03-11T21:44:17.254722 | 2018-04-19T21:54:14 | 2018-04-19T21:54:14 | 130,273,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,717 | py | ###
# Copyright (c) 2010, futurestack
# 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 retain the above copyright notice,
# this list of conditions, ... | [
"andrew@vaporstack.org"
] | andrew@vaporstack.org |
79c5d669fae418a9a451fad0c612337a2fb21735 | e54cdaedad52619a52f10cc8ca8bf86e1c659788 | /affeBlog/affeBlog/urls.py | da94260d45e4d76813e8f8135d36e0391b563c8f | [] | no_license | imaffe/affeBlogDir | e91a4f47cd4235f9e05756dfbe38ed1087dc8a84 | 7facab5738be73d66ca7a029e5ad453be79404dd | refs/heads/master | 2020-04-04T00:12:02.766437 | 2018-11-17T06:23:52 | 2018-11-17T06:23:52 | 155,643,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | """affeBlog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"affeisme@gmail.com"
] | affeisme@gmail.com |
035b76f9df5d4c7f34d0bd0354f512060951a653 | a95c3f8e8c511e07f13f5c84a8c2d809628bc00a | /Feb-1/warming-up/SortInside_0202_LeeYoongyo.py | e86f44752fb11b826e57e46d4884ba2b1664a152 | [] | no_license | NakyungIm/Algorithm-winter | 5c0612869c11a31c497b4e736dddf3d6b7fbb329 | 7795d7abf5d1416bbc5b748756764711e6d8f936 | refs/heads/main | 2023-03-10T20:55:37.671776 | 2021-02-26T13:15:57 | 2021-02-26T13:15:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | #BOJ 1427 소트인사이드 (이윤교)
import sys
input = sys.stdin.readline
n = list(map(str,input()))
L = []
for i in n:
L.append(i)
result = sorted(L,reverse=True)
print(''.join(result)) | [
"lykee2000@naver.com"
] | lykee2000@naver.com |
81710191d2ae3d96c953ee5a5c41de82ed7ecc38 | 0875f97d2d24031f483c16090e80c90164134d6b | /models/tests/treatment_test.py | 4b8037d0c5089a25e263cbac2586fc67073e75b2 | [] | no_license | NikTheGeek1/vet_management_app | c74830d1ea518b1483f96af85e515837c47fc443 | 27149e73c6e8895b08dbdaa5eb621ac4b33fc799 | refs/heads/main | 2023-01-21T18:03:35.586757 | 2020-12-02T10:34:45 | 2020-12-02T10:34:45 | 316,482,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | import unittest
from models.treatment import Treatment
class TreatmentTest(unittest.TestCase):
def setUp(self):
self.treatment = Treatment(
'Anthelmintics',
'These are used to eliminate parasitic worms, which infest their systems and steal important nutrients.'
)
... | [
"ntheodoropoulos@outlook.com"
] | ntheodoropoulos@outlook.com |
600da661603eb4e4e159c375aff356090c18c74c | 3b0682938d8a214c0ccd04e84920467a087c2569 | /recommender/mysql_reviews.py | 6bb1a908da1d4867055ed6b080799d1b29ba2f3a | [] | no_license | Catchi-Nichi/Catchinichi-AI | 8eff987bcd68bd708752764189bbdb2e33ab561b | 59429f0bd5d070a851ecc86be36cce0f39f36372 | refs/heads/main | 2023-05-31T12:14:09.954707 | 2021-06-08T11:09:03 | 2021-06-08T11:09:03 | 344,741,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,378 | py | import pymysql
import numpy as numpy
import pandas as pd
import requests
import time
db = pymysql.connect(
user="username",
host="host url",
port=3306,
password="password",
database="database",
charset="utf8",
)
cursor = db.cursor(pymysql.cursors.DictCursor)
def get_cursor():
db = pymysql... | [
"rswfaf@gmail.com"
] | rswfaf@gmail.com |
82ff43b741b940189fc894e87ef4e5edfb124cb2 | fa3e527114cd5799dddb0a25067da4923eae354e | /FastSim/CEPC/models/train_v2.py | d742eb6e71f86cd3c002779727f8150c0991ea9b | [] | no_license | wenxingfang/FastSim_ML | e64c6b56ce2afd703d1ddda0ada2de6f65fde049 | d2f1abbb2f6879313d5f4f137b64c4d8bf10fe83 | refs/heads/master | 2022-11-28T01:35:39.727895 | 2020-08-03T15:47:37 | 2020-08-03T15:47:37 | 284,734,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,988 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
file: train_v1.py
Add pre-trained regression net
description: main training script for [arXiv/1705.02355]
author: Luke de Oliveira (lukedeo@manifold.ai),
Michela Paganini (michela.paganini@yale.edu)
"""
from __future__ import print_function
import argparse
f... | [
"1473717798@qq.com"
] | 1473717798@qq.com |
2566d6f5b764a90a4a8e2da78cba0dd0d3ed944e | bfb3dfe40bfc33465bdc140cfa1a948342de8374 | /price_dimension/models/product_prices_table.py | 2a7f929b89df795e4a95e3ae93032241d6de87dd | [] | no_license | apesquero/manzano | 31e3d9b81925d6025b760f93f5b896e60b255cb5 | e94d450e263974c35bea446fd3f85d95e957dabb | refs/heads/9.0 | 2021-01-15T08:42:13.549941 | 2017-04-28T17:22:14 | 2017-04-28T17:22:14 | 99,569,666 | 0 | 0 | null | 2017-08-07T11:11:48 | 2017-08-07T11:11:48 | null | UTF-8 | Python | false | false | 1,652 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2017 Solucións Aloxa S.L. <info@aloxa.eu>
# Alexandre Díaz <alex@aloxa.eu>
#
# This program is free software: you can redist... | [
"dev@redneboa.es"
] | dev@redneboa.es |
b98dca501e5fa74b73d5c079eefb1e05f2d5cc33 | 178eae9ae8182858e4ccc0921f684ddf50c7d2aa | /day33/socketserver新模块/client_.py | e80f4817411199d4849e95da16b964ba046fd9e0 | [] | no_license | gaoi311/python_learning | fa11e88b83ad8870ff357dd55e8318a35c7fd12e | 44c822da0dba406772627c71d12f94bd287ea2a6 | refs/heads/master | 2021-03-01T02:29:50.284017 | 2020-03-08T05:17:41 | 2020-03-08T05:17:41 | 245,747,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import socket
sk = socket.socket()
sk.connect(('127.0.0.1',8080))
msg_s = input('>>>')
sk.send(msg_s.encode('utf-8'))
print(sk.recv(1024).decode('utf-8'))
sk.close() | [
"13956965930@163.com"
] | 13956965930@163.com |
011abc92879e004e3a386dd893625876fef766c5 | 80453e94cfcda83b5796f17f5e3a5a8616c50288 | /network_ui_react_frontend/src/tools/fsm_diff/cli.py | 856ef41ef1965258ac67d842260695d0492176fa | [
"Apache-2.0"
] | permissive | benthomasson/network-ui | eaca0ab0ed8a5ab3ba9d2e2aab81b1e38248b649 | 8c3e114d331a57848acb4004ccf090148fd36e86 | refs/heads/react | 2023-01-13T07:56:38.914187 | 2019-06-19T14:58:56 | 2019-06-19T14:58:56 | 145,854,921 | 1 | 1 | Apache-2.0 | 2023-01-06T01:08:15 | 2018-08-23T13:07:43 | HTML | UTF-8 | Python | false | false | 2,318 | py | """
Usage:
fsm_diff [options] <a> <b> [<output>]
Options:
-h, --help Show this page
--debug Show debug logging
--verbose Show verbose logging
"""
from __future__ import print_function
from docopt import docopt
import logging
import sys
import yaml
logger = logging.getLogger('c... | [
"ben.thomasson@gmail.com"
] | ben.thomasson@gmail.com |
8f9aa4a342dfbfefc5c1d1b17f393ef4350ff355 | a95075110b8d0dc3d486bb502e62f73ea50bd270 | /face_detect/sample/learning_opencv3_with_python_sample/Chapter 3_Code/contours.py | fb2df781e4a0e9de36e93b45fffea2280f8b3152 | [
"MIT"
] | permissive | minatuyang/RASP-ATTA | 5e715377e7de0dc6f49ed0a3f98b9701a9798a83 | e182248da2f9f131e4e1aca5a2198b6ae910424e | refs/heads/master | 2020-04-03T09:47:39.903356 | 2018-11-14T11:48:26 | 2018-11-14T11:48:26 | 155,176,168 | 1 | 0 | MIT | 2018-11-11T08:51:51 | 2018-10-29T08:21:18 | Python | UTF-8 | Python | false | false | 413 | py | import cv2
import numpy as np
img = np.zeros((200, 200), dtype=np.uint8)
img[50:150, 50:150] = 255
ret, thresh = cv2.threshold(img, 127, 255, 0)
image, contours, hierarchy = cv2.findContours(thresh, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
color = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)
img = cv2.drawContours(color, con... | [
"noreply@github.com"
] | minatuyang.noreply@github.com |
8c0b3e0914cf0ca877a1751732c662a29e0c9ea8 | 9a0d89613acc1a5308bc88adec0a22e0179893ca | /catalog/urls.py | fbce3c8f006f5523a6aa735acd12cb83192a9c48 | [] | no_license | henrymbuguak/Library-Website-Created-Using-Django-Web-Framework | bddc20e7df070427fa8cc1d59981ada4474d9205 | 3b5a7f27f91fed2400b2ff6579aed5672498a075 | refs/heads/master | 2021-08-16T00:37:41.404814 | 2017-11-18T17:07:47 | 2017-11-18T17:07:47 | 110,505,643 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^books/$', views.BookListView.as_view(), name='books'),
url(r'^book/(?P<pk>\d+)$', views.BookDetailView.as_view(), name='book-detail'),
url(r'^authors/$', views.AuthorListView.as_view(), n... | [
"henrymbuguak@gmail.com"
] | henrymbuguak@gmail.com |
08adccf03c06d1bda8e125df2d4f98d452bef1fc | 8171b5d2f5f4ecd240288aa51a9d40fe17b6c9e9 | /apps/billing/migrations/0013_auto_20160419_1133.py | 7c8578251f614a9ffba448362a17a1d8111e3a66 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SVArago/alexia | c34fadd24100095b37ef21b3d4cf1bca01f2dfa6 | 19b54ac1c6486de46666a41625c8c0d8fcdbc611 | refs/heads/master | 2023-01-12T06:36:17.127012 | 2022-12-21T22:16:10 | 2022-12-21T22:16:10 | 44,772,731 | 3 | 0 | NOASSERTION | 2018-10-30T20:33:29 | 2015-10-22T20:54:59 | Python | UTF-8 | Python | false | false | 688 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-19 09:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('billing', '0012_auto_20160412_1420'),
]
operations = [
migrations.RemoveFiel... | [
"cjaebbers@gmail.com"
] | cjaebbers@gmail.com |
1d4f63c579309d3daaf3459e02a65087f4d5941b | 89283ca90688d17a440258896135d978e12db268 | /1551_MinimumOperationstoMakeArrayEqual.py | 244327f865227d945820c4bb8edf2e7e6090f033 | [] | no_license | anushavoloju/LeetCode-Practice | 6433744d8bacc4d34d20536975c0bcc93b1ff3a0 | 64d36a9a556ec1a262b7685edaceee10bf4fbd61 | refs/heads/master | 2022-12-04T21:52:40.355469 | 2020-08-20T20:20:06 | 2020-08-20T20:20:06 | 286,263,422 | 0 | 0 | null | 2020-08-20T20:20:07 | 2020-08-09T15:25:49 | Python | UTF-8 | Python | false | false | 359 | py | class Solution:
def minOperations(self, n: int) -> int:
mid = n
res = 0
if mid % 2 == 1:
mid = mid - 2
else:
mid = mid - 1
while mid > 0:
res = res + n - mid
mid = mid - 2
return res
s = Solution()
print(s.minOp... | [
"anusha@Anushas-MacBook-Air.local"
] | anusha@Anushas-MacBook-Air.local |
b8df56163b91887f23a964adba1ab86e80928ced | d68bde9e2c83fd9d57aa6d626f0c68efe74c29d6 | /scripts/create_default_config.py | 1327703a4b5192a95159bdd2071f0d3d4e049223 | [] | no_license | wizzdev-pl/esp32_examples | 354b2af5483b76f7acc6c0fc381c42492ea1ba59 | edfcc1496f50ed92a9c056f702a0468f16f4079a | refs/heads/master | 2022-11-28T21:22:03.340696 | 2020-08-14T07:21:54 | 2020-08-14T07:21:54 | 268,744,637 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | import os
import json
PATH_TO_JSON = './src/config.json'
if os.path.exists(PATH_TO_JSON):
print(f"Config exists at: ", os.path.abspath(PATH_TO_JSON))
exit(1)
else:
config_dict = {
"ssid": "ssid",
"password": "password",
"local_endpoint": "",
"aws_endpoint": "",
'cli... | [
"dmian.kurek@wizzdev.pl"
] | dmian.kurek@wizzdev.pl |
6e32cc1faea70c80e3b1a5752c3892127c2528d3 | ab394ee9ac2e025d520cbe665cb0ec9d01fd3deb | /contacts/views.py | 21fe8e7bbb5edab2df4444c4e8fbe38947ff2e73 | [] | no_license | toku31/btre_project | 2f86d121f497bd9b8b131408b7bcea4e133c269d | 2c97c655fa39f104d67961ac5ac98c967500376d | refs/heads/main | 2023-02-18T10:36:38.078431 | 2021-01-09T10:25:56 | 2021-01-09T10:25:56 | 287,742,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from django.core.mail import send_mail
from .models import Contact
def contact(request):
if request.method == 'POST':
print('HELLO')
# return
listing_id = request.POST['listing_id']
listing = request.... | [
"garden627@yahoo.co.jp"
] | garden627@yahoo.co.jp |
3539eb7f599c5a37af6771ab7df88a316ddfc448 | e292ea10855a50c8098ede4da1fd4d0896323e8c | /Django/Exam_Project_Rest/my_project/bears/views.py | c847446b54e3ec628139dc8062515c0ba2c21a8b | [] | no_license | dbzahariev/Python-and-Django | f794212a21158d524bd1a7d9d5411cd58ba65f3e | ba15758db3ee0726a7e5c80c96c2b106206ae66a | refs/heads/master | 2020-05-18T18:44:35.030202 | 2019-05-25T13:24:35 | 2019-05-25T13:24:35 | 184,572,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,500 | py | from rest_framework import exceptions
from rest_framework import generics
from rest_framework.permissions import IsAuthenticated
from .models import Bear
from .serializers import BearSerializer, BearCreateSerializer
# Create your views here.
# class BearList(generic.ListView):
# model = Bear
# template_nam... | [
"d.zahariev@devrealm.bg"
] | d.zahariev@devrealm.bg |
42916cafa5ff0a0d45c22ea8101061172aa42f27 | 832fb0f946bcfe123f3ab749248f23fe566e5e60 | /sensor_http.py | 639995cca3aef49b1df202b37882d5e18d0ad1fb | [] | no_license | thewishy/clock | 1d756e4ee983a0520241383ec5a2172836ca1235 | 5ecfa268bffd8bf8eecc0893545956ab4c1b3a26 | refs/heads/master | 2022-10-06T17:09:51.036552 | 2022-09-07T21:06:04 | 2022-09-07T21:06:04 | 120,080,639 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | """
Very simple HTTP server in python.
"""
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import SocketServer
from multiprocessing import Queue
import time
class QueuingHTTPServer(HTTPServer):
def __init__(self, server_address, RequestHandlerClass, sonos_queue, light_queue, lux_queue, bind_... | [
"steve_scott11@hotmail.com"
] | steve_scott11@hotmail.com |
a6bcf3961f6f428397c402c8eccff8c101d1631a | 5757fc68b39418b1e0831143d87e6fa88a31adc9 | /pyobs_weather/celery.py | 4f88a1eb1b85cbf66855976f3f3756a9660049a2 | [] | no_license | pyobs/pyobs-weather | 764c1c9fffdefbddf7e40dc9cb18bcf2821a7ed9 | f375dc77878ab7c6ee306401c6501237d1521610 | refs/heads/master | 2023-08-17T09:12:44.930231 | 2023-01-22T15:46:50 | 2023-01-22T15:46:50 | 239,447,823 | 0 | 1 | null | 2023-06-27T06:33:22 | 2020-02-10T06:59:34 | Python | UTF-8 | Python | false | false | 312 | py | import os
from celery import Celery
from celery.schedules import crontab
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pyobs_weather.settings')
app = Celery('pyobs_weather')
app.config_from_object('django.conf:settings')
# Load task modules from all registered Django app configs.
app.autodiscover_tasks()
| [
"thusser@uni-goettingen.de"
] | thusser@uni-goettingen.de |
0b71af583b8ea2bdb4028918a5495ccd1d50167b | 16a65967d9da41aa414bd6a99bbbf72eabd5b3e2 | /memory.py | 3c325dcccd148cfef37fc27dac7e2588ec167453 | [] | no_license | deltanovember/interpy | 682c9937bec9abc697fea532ed21c33c435e86e7 | 488311855e355e78392d9b96dda55f34f57eadbc | refs/heads/master | 2021-01-10T20:17:05.728145 | 2013-05-21T21:22:46 | 2013-05-21T21:22:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,731 | py | # implementation of card game - Memory
import simplegui
import random
import time
WIDTH = 817
# create frame and add a button and labels
frame = simplegui.create_frame("Memory", WIDTH, 100)
label = frame.add_label("Moves = 0")
# helper function to initialize globals
def init():
global deck, num_mo... | [
"don@unswrc.com"
] | don@unswrc.com |
3a9780d2beb7da0235154761627c60066467499c | 10fce7584328e0354a096f21f3a7c8b0bf09e479 | /products/models.py | 5ef2bcc497e9801969e46283af42a443b4ca9857 | [] | no_license | mamazinho/olist-ts-mini-django-tests | f23632d9f5ef2846a025bee3a33cc41d96c47a9e | 062b439ecb519070d6594f1df7e817265f36b1d4 | refs/heads/main | 2023-06-08T08:57:04.995475 | 2021-06-21T15:10:11 | 2021-06-21T15:10:11 | 378,972,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from django.db import models
class Product(models.Model):
name = models.CharField(max_length=100)
description = models.CharField(max_length=200)
price = models.FloatField()
class Meta:
managed = True
| [
"matheus.tessaroli@olist.com"
] | matheus.tessaroli@olist.com |
5a4f0ad27d6061aac3a8de0fda690a203fd4a5f9 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /fuzz_pyretic_mesh_proactive_firewall_no_close_check_loop_mcs_with_max_replays_5/interreplay_24_l_2/openflow_replay_config.py | 9924a09d953b9cd6949a7fbc3362765d4b5fa087 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import OpenFlowReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
5fa7064e2345bdb14079c8c4d3481ce2fa9583c0 | a6889d0905012e61edaa105ff406d64c20a7a694 | /trees/trees.py | d7cbacfba48f2edf56a89b201b23644120493cf2 | [] | no_license | aayc/kattis | 70e1fd3e0f4dd95a23d7234efd35d0f0b06b17f1 | 7b5ab6792773a6fa4096e721db07de4200d5e52d | refs/heads/master | 2020-08-02T03:40:12.016962 | 2019-12-26T14:01:43 | 2019-12-26T14:01:43 | 211,223,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from collections import Counter
trees = {}
n = 0
while True:
try:
m = input()
if m in trees:
trees[m] += 1
else:
trees[m] = 1
n += 1
except:
break
results = []
for k, v in trees.items():
results.append((k, v / n * 100))
results = sorted(resul... | [
"aaron.y.chan64@gmail.com"
] | aaron.y.chan64@gmail.com |
e0a6d9ae8ba4515ce6283ab246553d4460d23f65 | 7f30dbec583671631926529dba973d35980c4ab2 | /randomEncounter.py | 1e4450a39ae05b871686086db5bb3d3c642fb052 | [] | no_license | abottchen/dnd-skt | 17d6861d8841f5ab2147638735a3e099bea42a9a | 3428ead7b3153fb2ae42f035392d2a3cba04a5b5 | refs/heads/master | 2020-04-23T14:19:11.154116 | 2019-06-29T22:01:28 | 2019-06-29T22:01:28 | 171,227,560 | 0 | 0 | null | 2019-04-11T18:03:03 | 2019-02-18T06:30:21 | Python | UTF-8 | Python | false | false | 1,883 | py | #!/usr/local/bin/python3
import sys
import getopt
import json
import re
import random
from colorcodes import clr
from enctable import enctabledict
def rollDice(var):
n = int(var.group(1))
d = int(var.group(2))
neg = False
if var.group(3):
if var.group(3)[0:1] == "-":
neg = True
a = int(var.gr... | [
"adam.bottchen@puppet.com"
] | adam.bottchen@puppet.com |
100032dcdabbdafdf847e8133584eed2c21c0b5d | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /AtCoder_Virtual_Contest/macle_20230407/b/main.py | 9e60f21474f8e6a8f81ec7e665156f2e7b528406 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
def main():
import sys
input = sys.stdin.readline
n, p, q, r = map(int, input().split())
a = list(map(int, input().split()))
total = 0
s = set([0])
# 累積和を取る + setを使って事実上の二分探索
for ai in a:
total += ai
if (total - r) in s and (total - r - q) in... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
24ffcda20b6d4bd7f3a45f796d8b1cff7fda2807 | 329dbaecc92242ef1ff9f28b68b42ef3c1e35c14 | /SQLaORM/migrations/0001_initial.py | 23531576508de11f967a2150fae6a29ac07530ee | [] | no_license | jrojasm1966/TareasDjango | 4be9819c280f29f51ed2519022ed104805e04ec0 | 236a7bdb247b9e973ea22399cae4d97b3f63acfc | refs/heads/master | 2023-08-21T22:34:37.279012 | 2021-10-12T03:43:33 | 2021-10-12T03:43:33 | 403,107,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | # Generated by Django 3.2.7 on 2021-10-08 22:59
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Wizard',
fields=[
('id', models.BigAutoFiel... | [
"jarm1966@gmail.com"
] | jarm1966@gmail.com |
73a9ba5c2dcbeff3f29c12bb1de301c14a259a06 | db97d32264bcd1754ba5f46cb583d462a7a2e384 | /panel.py | 4e343bab14e4c794568474eda804f9c6605454df | [] | no_license | debainhit/PythonDataAnalysis | a27dfc61a4ccb294a5cc86d195dbc2f5e040ba89 | 44285d8a30c629ca2dfd10668523431917446cf9 | refs/heads/master | 2021-09-06T14:35:57.507181 | 2018-02-07T16:13:41 | 2018-02-07T16:13:41 | 88,264,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2018-02-05 15:47:32
# @Author : debainhit (18068920049@163.com)
# @Link : https://github.com/debainhit
# @Version : $Id$
# ---------------------------------------------------------------
# pandas.Panel(data, items, major_axis, minor_axis, dtype, copy)
... | [
"chengzhenghitwh@gmail.com"
] | chengzhenghitwh@gmail.com |
59f8f30713b022bcc53db159c2e0194300e12b1e | e575373d8ef5470966938946ab6bf0efb9c154c0 | /setup.py | af1146b9eafc3eee14aba9c0e853a6429d08bb63 | [
"MIT"
] | permissive | gmacgilchrist/so_idealized | 57cc7885c8f9916e291d79eaa5281552b3ea39a9 | d8681d1405e52c51add927a06302b7c68b84cbd7 | refs/heads/master | 2022-12-27T01:48:06.208667 | 2020-09-21T21:01:34 | 2020-09-21T21:01:34 | 297,397,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Set-up and analysis of an idealized Southern Ocean channel model configuration',
author='Graeme MacGilchrist',
license='MIT',
)
| [
"graemem@princeton.edu"
] | graemem@princeton.edu |
197ba5a6aab4dcc6a7d1ac30581f1c017feccd53 | e605c792cb250269584e2cd4ba47a8e4101e2fa6 | /demoapp/migrations/0003_books.py | 97c4151b53e593e8f89e29b8321fd1b73c6fa7e9 | [] | no_license | krishkheloji/djangoproject | 671a8f98340ad98e8ed399c5b2ddd3c2654bc4e3 | ada4d942f9275360f636bd50353243dd6efb5f1c | refs/heads/master | 2023-07-03T04:04:08.682941 | 2021-08-12T08:34:08 | 2021-08-12T08:34:08 | 395,248,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # Generated by Django 3.2.5 on 2021-08-08 14:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('demoapp', '0002_student'),
]
operations = [
migrations.CreateModel(
name='Books',
fields=[
('id', mo... | [
"khelojikrish@gmail.com"
] | khelojikrish@gmail.com |
35644d7f163503d3b612a6e1d0bb4eece09b47f3 | 81e99594f65a27e01f8cb57b719330f391583bc1 | /inference_test/downloads.py | 1b947154a775044d6fad8f24651dc10ce27f2e5e | [] | no_license | kberci/Deep-Learning-based-Object-Detection | 9376a57eb03f2ee525985e4dc5a8bc24b4f931e8 | dfb3263bfe3ce42553a5a6e486061fef4b0727ff | refs/heads/master | 2023-03-22T06:55:10.747070 | 2021-03-18T11:00:18 | 2021-03-18T11:00:18 | 348,910,179 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py | from google_drive_downloader import GoogleDriveDownloader as gdd
from pathlib import Path
import pandas as pd
import requests
import os
def download_images(csv_path, save_path):
d = pd.read_csv(csv_path, squeeze=True)
dict_list = [{d.columns[i]: item[i] for i in range(len(d.columns))} for item in d.values]
... | [
"k.berci95@gmail.com"
] | k.berci95@gmail.com |
58f02912a1e6a3f85274b0a72a026837088ef5f8 | 75e9ccb4aeaa9ee5a108adb0e787415caa4a124c | /src/voice_example.py | 80086e94a23adbaf0dd5be287a0c116418b32e99 | [] | no_license | hosod/ros_server | 532a1aa086f0789455577f65233c9f57e0917f62 | 6f7ffbdc91c66c6287c09a2eab9a82ea169d62a8 | refs/heads/master | 2020-09-21T14:49:03.142771 | 2020-02-10T05:08:23 | 2020-02-10T05:08:23 | 224,821,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,369 | py | # -*- coding: utf-8 -*-
#! /usr/bin/env python
import roslib
roslib.load_manifest('ros_class5_hosoda')
import rospy
import tf
import math
from geometry_msgs.msg import PoseStamped, Quaternion
from geometry_msgs.msg import Point, PointStamped
import sys
sys.path.append('/home/robovie/catkin_ws/src')
from layer2.msg impo... | [
"hosoda.0406.1997@gmail.com"
] | hosoda.0406.1997@gmail.com |
d47abaa5e716b6c22d025f228fc71b2bbb7057d9 | 8ab61e98b8b4efa7378ad50ee12ea5ec81b8c310 | /thredo/mixin.py | a46f1c9843c402b33c51e360d5947e7fae4763ba | [
"MIT"
] | permissive | RalphWalters/thredo | 5a791d0848067e2b028c3040874476d582509543 | ea109c693036764dd192527f9b6bba18d3b18042 | refs/heads/master | 2020-04-05T05:18:56.942365 | 2018-11-08T23:25:54 | 2018-11-08T23:25:54 | 156,589,958 | 1 | 0 | MIT | 2018-11-07T18:21:27 | 2018-11-07T18:21:27 | null | UTF-8 | Python | false | false | 1,447 | py | # mixin.py
__all__ = ['ThredoMixIn']
from . import io
from . import core
class ThredoMixIn:
'''
Mixin class that can be used to make standard socketserver objects to
use thredo
'''
_threads = None
def server_activate(self):
super().server_activate()
self.socket = io.Socket(se... | [
"dave@dabeaz.com"
] | dave@dabeaz.com |
2f7b19ed574c263b4b687fdd6ae77d6d253a9c37 | da2f7050ba0f04bc1f1ff91fa5537139ddc07508 | /tests/test_c_hardened_scales.py | 70d79817ba895ed8d9b681b402681336691fece9 | [] | no_license | Draw2Cards/hardened_scales | 04855f247ed23a6bf8056274dfb1a0ae4bad5c15 | 75097e45c502f1fe7980cf466b21059d68bdb206 | refs/heads/main | 2023-06-15T18:45:36.229750 | 2021-07-11T19:46:55 | 2021-07-11T19:46:55 | 385,033,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import unittest
from cards.arcbound_worker import CArcboundWorker
from cards.hardened_scales import CHardenedScales
from game import Game
from player import Player
class TestHardenedScales(unittest.TestCase):
def test__add_counter(self):
game = Game()
player = Player(game)
p_aw = player.... | [
"drawkka@gmail.com"
] | drawkka@gmail.com |
f35e22e27c3c4b5d1b7d3f72b4c65f441b6973b0 | 8a517dfb19fcfc092228703ff264a133e9d7667d | /biblioteca/urls.py | 8dde6bf9b79ce41ba56283c63eb141fa982420f1 | [] | no_license | rafalordi/projeto_integrador | e0dac9fa97202709dce58ad866913fb43eb8848c | c672b5f73804666cbd57b62d3b6fc5223de002d0 | refs/heads/master | 2023-09-03T12:22:42.606286 | 2021-11-07T02:32:59 | 2021-11-07T02:32:59 | 400,849,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('livros/', include('livros.urls')),
path('auth/', include('usuarios.urls'))
] | [
"rafa.lordi@hotmail.com"
] | rafa.lordi@hotmail.com |
6ac21dab1c7122e1d5743376f82d3444cceb3563 | d906173f593a1d7a382a0a39beb894c510d7dd69 | /Vina_merge.py | 06e4903868ec5638ece9e7c159fde98f6aa56246 | [] | no_license | AndPdb/Vina_scripts | 222c9eaa25d58ed32bc794e9e4a981138482a332 | d5e3e1d036510d5e39b1dc0f4bc41d446682fd4c | refs/heads/master | 2021-06-18T05:18:19.247423 | 2021-03-24T13:12:55 | 2021-03-24T13:12:55 | 185,991,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,800 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 18 11:26:39 2019
@author: Andrea Pasquadibisceglie
This script merges the output PDBQT and the rigid input PDBQT derived from Flexible Docking Simulation with AutoDock Vina, producing a PDB file called "merge.pdb" in the output directory.
"""
from ... | [
"and.pdb92@gmail.com"
] | and.pdb92@gmail.com |
ec0331a25eff92fae3203dd2a3ec3aef112fe052 | de5cddc7e5df6afe35a71e37314de9ba64df29bf | /measurement/sensor_reader.py | 9baf6211a002a5122b549cb0d428053aa30c879a | [] | no_license | mandreascz/orangepi-thermometer | 2a4ce53a012387ecc8e14f5a9b22b658ee753e34 | e4c9f83d9c71a41940cf5a9c56c2334fcc8300be | refs/heads/master | 2020-04-11T09:49:23.100213 | 2018-12-13T20:44:42 | 2018-12-13T20:44:42 | 161,693,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | from pyA20.gpio import gpio
import dht
import riprova
import sqlite3
import time
import multiprocessing
from collections import namedtuple
import random
import math
# initialize GPIO
# DHT22_PIN = port.PA13
class Measurer:
def __init__(self, pin):
self.sensor = self._init_sensor(pin)
self.db_c... | [
"andrej.mudroch@threatmark.com"
] | andrej.mudroch@threatmark.com |
4cb4ef1f26cb8416278e80e05d5406194163c3b8 | f8f2536fa873afa43dafe0217faa9134e57c8a1e | /aliyun-python-sdk-sae/aliyunsdksae/request/v20190506/CreateNamespaceRequest.py | eb3f5a3f1d1c14f16ca02e9d70f2d9aebac1a158 | [
"Apache-2.0"
] | permissive | Sunnywillow/aliyun-openapi-python-sdk | 40b1b17ca39467e9f8405cb2ca08a85b9befd533 | 6855864a1d46f818d73f5870da0efec2b820baf5 | refs/heads/master | 2022-12-04T02:22:27.550198 | 2020-08-20T04:11:34 | 2020-08-20T04:11:34 | 288,944,896 | 1 | 0 | NOASSERTION | 2020-08-20T08:04:01 | 2020-08-20T08:04:01 | null | UTF-8 | Python | false | false | 1,912 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
867bc24c88ff7a451fb8c0e86c35f2cdd36b6a63 | 80e7eb64f6524c1088167f3960c83c5c87c46cf8 | /codetest/codee12034.py | 512472006b0437a5d2bf0ea4258d212bccb45fc3 | [] | no_license | kaisprites/python-lecture | fc95aaf37472036581ec188ed82d33fc0a26f6d8 | ad58d540ef12fa5444fba3473bc439a67613c36e | refs/heads/master | 2023-02-15T08:22:02.467693 | 2021-01-11T09:24:43 | 2021-01-11T09:24:43 | 327,744,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | target = input()
mult = 1
for i in range(1, int(target)+1):
mult *= i
print(mult) | [
"revoneschetzaine@gmail.com"
] | revoneschetzaine@gmail.com |
669fd9c737ef104b59785644e983740fff849ae4 | 321a8e450f8332c6023b889dd0968cf83e7daf52 | /Crash course/Classes/dog.py | 588df0dd5b741ec4c0af4a302c0461789eb43c29 | [] | no_license | ejluciano/Python | 250d4d3528b9328a4827dcb969d9a3d7f51b943d | 9c3ca698753bd17c6784fbde68a3a845c4a30664 | refs/heads/main | 2023-04-20T09:55:47.863494 | 2021-05-05T15:09:07 | 2021-05-05T15:09:07 | 363,134,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | class Dog:
def __init__(self,name,age):
self.name = name
self.age = age
def sit(self):
print(f"{self.name} is now sitting.")
def roll_over(self):
print(f"{self.name} rolled over")
my_dog = Dog('Willie', 6)
your_dog = Dog("Swarley", 8)
print(f"My dog's name is {my_dog.name... | [
"username@example.com"
] | username@example.com |
1f45c9f0c9f794040bece096caf6b9ba5dad03b3 | bdd9b28844f8e6398f0582bed649dc611eddcdc1 | /test/runner.py | b8378b37acdf66a3b4ad8f13335327ce4897a9b9 | [
"Apache-2.0"
] | permissive | LuizGsa21/p4-conference-central | e082b28fb75560ea8058b031907782a79a886d34 | e27da59675229116aa5b8c7e7288d79692294f24 | refs/heads/master | 2016-09-06T19:34:55.500179 | 2015-09-09T21:23:06 | 2015-09-10T01:00:29 | 42,084,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | import sys
import os
import logging
# --- UPDATE PATHS
sys.path.insert(1, '/usr/local/google_appengine') # App Engine libraries
sys.path.insert(1, '/usr/local/google_appengine/lib/yaml/lib') # App Engine yaml
# If you are having trouble setting up the paths, checkout this guide.
# https://cloud.google.com/appengine/... | [
"LArantesSa@icloud.com"
] | LArantesSa@icloud.com |
c628625980003bb812fffbf3adec67eb3a4b6b5b | c3179dc6c11770fe877d9b08bebd28448ee66ba8 | /mtdnn/common/optimizer.py | fd7532fca02f7bc79157d15057c3b8d920e72623 | [
"MIT"
] | permissive | microsoft/MT-DNN | 2a0f102916a1b092f25b4999834177bd38319c53 | e5c3e07f3a8e55067433714ce261a6d28ba73d22 | refs/heads/master | 2023-06-29T23:57:42.108328 | 2020-07-02T02:22:06 | 2020-07-02T02:22:06 | 215,127,881 | 151 | 28 | MIT | 2023-06-12T21:28:37 | 2019-10-14T19:25:46 | Python | UTF-8 | Python | false | false | 3,833 | py | # coding=utf-8
# Copyright (c) Microsoft. All rights reserved.
from copy import deepcopy
from functools import wraps
import torch
from torch.nn import Parameter
class EMA:
def __init__(self, gamma, model):
super(EMA, self).__init__()
self.gamma = gamma
self.shadow = {}
self.model ... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
6101e44287eed33ada178d8f0882b7bcc05b506b | b9dcba451ac9c1447a2307b1b959798020683970 | /Final Project/BiasMFspark.py | 04ed907db05981c9ab8cd2a81b1fca97940afd3d | [] | no_license | KuanChihLee/Parallel_Analysis_in_Spark | 2bd53dff33c1782563e69731e18ffd5e0a20439f | 94e549ce0084338675ad8d0a424189b6b24dfd4e | refs/heads/master | 2020-05-01T18:46:19.118240 | 2020-01-24T22:48:40 | 2020-01-24T22:48:40 | 177,631,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,492 | py | # -*- coding: utf-8 -*-
import numpy as np
from time import time
import csv
import sys,argparse
from pyspark import SparkContext
from operator import add
from pyspark.mllib.random import RandomRDDs
def readRatings(file,sparkContext):
return sparkContext.textFile(file, use_unicode=False).map(eval).map(lambda (bid,... | [
"noreply@github.com"
] | KuanChihLee.noreply@github.com |
619195669e27d0ab7477d8b2c38a6066e7b97bc6 | d1e4b7ba4b2f356cffb5d9f8f0269cd1593ab3a6 | /Multinomial_conversation.py | 6edacca56aa2f60900f89754896b023e41a89a70 | [] | no_license | mikeliu8492/TextBayes | c3c5339c8bb57b40e2f3645c578c7ea1a4b42891 | a9e0439c4f2998a6a7b42291d985c519a75a9b62 | refs/heads/master | 2020-07-27T15:31:38.726970 | 2016-11-10T22:44:35 | 2016-11-10T22:44:35 | 73,426,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,531 | py | import math
from oddsProb import *
#dictionary of all unique vocabulary words
total_vocab = dict([])
#dictionay of unique words belonging to "positive" class (labeled +1)
positive_dict = dict([])
#total count of words, including duplicates, belonging to the positive dictionary
total_pos = 0
#dictionay of unique word... | [
"mikeliu2@illinois.edu"
] | mikeliu2@illinois.edu |
154d998b5a9543245bfb166d690f58e66475779b | c7a5797548d400ce3f2044b6871ae9fcb7b18136 | /code/dataset.py | 1419dd0d03be5cacf69e325023bc9758eb6a1730 | [] | no_license | vincent861223/translator | 19877a6b9d57b913e09217497eaa9c2432bd6c68 | 6fc0692e4f678e8ccbc7fc531ab56163e7ab0b60 | refs/heads/master | 2020-08-12T21:44:14.755962 | 2019-10-15T13:12:41 | 2019-10-15T13:12:41 | 214,848,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,946 | py | from torch.utils.data import Dataset
from utils import read_datafile
from lang import Lang
import torch
import random
class SentencePairDataset(Dataset):
def __init__(self, pairs, lang1, lang2, max_len=10):
self.pairs = pairs
self.lang1 = lang1
self.lang2 = lang2
lang1_sents = [pair[0] for pair in self.pairs... | [
"B05505019@ntu.edu.tw"
] | B05505019@ntu.edu.tw |
964e6bd904ccf37690a358e3cf71979d034c192d | ee128cce3827e0536dddf338ee6df271569f18fb | /bioinfoweb/bioinfow/wsgi.py | 59b99aef0195a1899c0bf4e525bfcca1a8a199f5 | [] | no_license | dbour-hologic/bioinfoweb | 2790856afeb85cdae9c5088320dd3bef9bc4a198 | 0f2c0f8f4c518c4bfd50d1f5e5c1d29392bc8a11 | refs/heads/master | 2020-05-21T15:24:07.940342 | 2017-03-14T15:33:10 | 2017-03-14T15:33:10 | 54,579,042 | 0 | 0 | null | 2017-07-28T16:56:51 | 2016-03-23T17:17:10 | HTML | UTF-8 | Python | false | false | 486 | py | """
WSGI config for bioinfoweb 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/1.8/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bioinfow.settings")
from django.c... | [
"david.bour@hologic.com"
] | david.bour@hologic.com |
f811119ee4e4e331645aef7887d8c800f2be2054 | 39004ba32d7696266827dd9f7a09a75a776bfc4a | /applied-python/daily-practice/Day1.py | 612ec987ca779adab8d74bf914405e6ea4a1ac8f | [] | no_license | himmat8074/265093-applied-python | b4f7c5469af007a84cac71ba0226836ab773b91b | 3e492f80e872a2622c6426a0878a6f3ebb3beb83 | refs/heads/main | 2023-04-03T21:27:22.282581 | 2021-04-26T10:17:48 | 2021-04-26T10:17:48 | 358,822,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | print("------------------------\n")
# program to check the IDE compatibilty for python
print("Hello world")
print("------------------------\n")
#using print for simple operations
print(5-4+3)
print((5*2)/5)
print("------------------------\n")
#producing a float by operation on a float and a integer
print(2 * 6.1)
pr... | [
"himmat.8074@gmail.com"
] | himmat.8074@gmail.com |
4d5013f66a2660352bfcd3500081db926e71cc68 | d7309934899d865545f485cdc4627d7b47387ef0 | /multi/test/weight/tmp/03/process.py | ebbb9933ef1fd0bf5875c216f022d7842754e3de | [] | no_license | johnpzh/mobile-node-tracking | ef3b0c5b6825157fb8f343c5159aa10a6c00bb96 | de27ff4202f3bc3d3c911efe897eda64faa809a1 | refs/heads/master | 2021-05-30T15:39:06.361999 | 2016-03-09T00:15:44 | 2016-03-09T00:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | #! /usr/local/bin/python3
import datetime
import subprocess
import sys
# Do experiments many time
time = datetime.datetime.today()
time_fmt = '%Y%m%d-%H%M%S'
path = '20150316-221404'
# reuilt files are in 'path/'
result_file = path + '-result'
# Process the results
rf = open(result_file, 'r')
vt_file = open('m_num-m-... | [
"chuqixiaozhu@gmail.com"
] | chuqixiaozhu@gmail.com |
3dc785b42876b4704e691efd65dee8fea212944d | 8a42e8ef22dd15a62cd407910de96b0873fe5252 | /Faculty/daofaculty.py | d2ca416daf43f585649c79ac323b9425b5a3c0ca | [] | no_license | Vini-S/Fintek_Project | 9293300c798cb5e9f9b84d34972392b411849320 | 406b939832f4a3f03ff8645500502a98c4d7ca75 | refs/heads/master | 2020-06-19T11:31:37.413669 | 2019-07-13T08:16:41 | 2019-07-13T08:16:41 | 196,693,104 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,962 | py | from schedule.models import Users
from django.db import connection
class Student:
def studentview(self):
cursor = connection.cursor()
query = "select schedule_student_view.s_id, schedule_student_view.s_f_name, schedule_student_view.s_l_name, schedule_student_view.s_Email_id, schedule_student_view.c_co... | [
"noreply@github.com"
] | Vini-S.noreply@github.com |
94ba0bf359287436cd70c65d0163697a08c085e2 | 04576fc68868ed37794065b59be1df5c3467494c | /python/config.py | 8f42560d83e37804974f21aa0be3d75d8ff12843 | [] | no_license | SCandWZH/data_augment | f5cf1cb413ffb47c5cb1d98b4cab11797d80d5bd | cc01779618f969190f9397c70a60d22cb4e2ce76 | refs/heads/master | 2020-05-03T14:51:48.725196 | 2017-04-19T07:45:18 | 2017-04-19T07:45:18 | 178,689,876 | 1 | 0 | null | 2019-03-31T13:11:52 | 2019-03-31T13:11:52 | null | UTF-8 | Python | false | false | 720 | py | INPUT_DIR = '/path/to/data/similarity/original/'
OUTPUT_DIR = '/path/to/data/similarity/augmented'
IMAGE_LIST = '/path/to/data/similarity/augmented/image.list'
TRAIN_LIST = '/path/to/data/similarity/augmented/train.list'
VAL_LIST = '/path/to/data/similarity/augmented/val.list'
DEBUG = False
TARGET_WIDTH = 64
TARGE... | [
"handong1587@163.com"
] | handong1587@163.com |
aa91c7c66238b43831ac24ad4022e149574e68ba | 3ab494cac87a9f3c5ba17c903ffdbba7e72c305f | /algorithm/day5/bit별의 암호화.py | 8ecc738f387101f2aa40d4a65b72b236d2580ee5 | [] | no_license | sochic2/TIL | 6036cae002ce4c4ba5e7d2175e668c664de209de | eb2709f5ac1a4b9c79dda0e647f14044c7a4fb6e | refs/heads/master | 2023-01-10T03:51:14.057387 | 2022-12-21T01:27:38 | 2022-12-21T01:27:38 | 162,229,719 | 4 | 1 | null | 2023-01-09T11:56:04 | 2018-12-18T04:23:54 | Python | UTF-8 | Python | false | false | 328 | py | def Bbit_print(a):
for i in range(7, -1, -1):
if a & (1<<i):
print(1, end="")
else:
print(0, end="")
print()
a = 0x86
key = 0xAA
print("a ==>", end=" ")
Bbit_print(a)
print("a^=key ==>", end=" ")
a ^= key
Bbit_print(a)
print("a^=key ==>", end=" ")
a ^= key
Bbit_pr... | [
"netzzang12@gmail.com"
] | netzzang12@gmail.com |
81281a45d40ecf258744318e4370a85913d59ad1 | 368c66467b78adf62da04cb0b8cedd2ef37bb127 | /SW expert/python/재미있는오셀로게임.py | 068285f638a73b828278b044f56c144dd283c5a8 | [] | no_license | DJHyun/Algorithm | c8786ddcd8b5693fc9b3b4721fdf1eeda21611c5 | fd6ae800886dac4ec5ff6cf2618bc2c839a76e7a | refs/heads/master | 2020-07-30T16:32:49.344329 | 2020-02-25T07:59:34 | 2020-02-25T07:59:34 | 210,289,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,549 | py | # 기본 제공코드는 임의 수정해도 관계 없습니다. 단, 입출력 포맷 주의
# 아래 표준 입출력 예제 필요시 참고하세요.
# 표준 입력 예제
"""
a = int(input()) 정수형 변수 1개 입력 받는 예제
b, c = map(int, input().split()) 정수형 변수 2개 입력 받는 예제
d = float(input()) 실수형 변수 1개 입력 받는 예제
e, f, g = map(float, input().split()) 실수형 변수 3개 입력 받는 예제
h... | [
"djestiny4444@naver.com"
] | djestiny4444@naver.com |
3736ae89b67495f9dd446ec36bdd36df819643dd | e5a3cfa21f78259dfcf9d991f6f67f0840d9c93c | /jinYuan/课件/4_2-mygjviews/demo/views.py | d1ef943eef1673c36e885337d2d7145925ffc371 | [] | no_license | Glittering/pythonLearn | ac91ed73cb615e3604d1c4bfde3692cf4efef6e3 | 0097b8fd5fc587a69f6c1bad95b08fe42481bf7c | refs/heads/master | 2021-01-13T05:46:24.974340 | 2017-04-17T12:58:59 | 2017-04-17T12:58:59 | 77,099,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | #coding:utf-8
from django.shortcuts import render_to_response
def student(request,name,age):
return render_to_response('student.html',locals())
def stud_info(request,gender,info):
return render_to_response('stud_info.html',locals())
from django.http import HttpResponseRedirect,Http404
from django.shortcuts i... | [
"zhaoshichengzhao@sina.com"
] | zhaoshichengzhao@sina.com |
16ef309ebb8410726e9c8e3f19116655fffb59c4 | ce04f462afded3035c7d695192d28b81f390ee0b | /yyan/middlewares.py | 392d1591034d003f5edbbaf0d81f07155ca2b0b6 | [] | no_license | yangyu823/scrapy_try | 20e58931d0221e0af6fef75bd8b35d03f354fcab | 891340895e530beb67a3318a1dddbdaa2ed399cd | refs/heads/master | 2020-05-25T02:46:26.180298 | 2019-05-29T07:25:35 | 2019-05-29T07:25:35 | 187,586,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class YyanSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy act... | [
"yangyu823@gmail.com"
] | yangyu823@gmail.com |
358a6f35cc05686e94fcea1752ed9254f130e215 | 6adbb5d1cb124bb03d3e8b5455dd1f65d10fe35f | /examples/hand_pose_estimation/msra/test_msra_baseline.py | bc9af034bb6a0cfec9a063f94482c432794878be | [
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | xinghaochen/caffe-pose | 7122b2dc0a375706d253f3b89af8aa87a4fc15ee | 43e68699c0fdc5a6fdc14b8697bf7d6cd4d298f0 | refs/heads/master | 2023-04-15T10:43:41.823103 | 2023-03-18T13:15:25 | 2023-03-18T13:15:25 | 116,776,703 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | import numpy as np
import os
import sys
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(BASE_DIR, 'model_msra'))
sys.path.append(os.path.join(BASE_DIR, '../../../python'))
import caffe
print os.path.join(BASE_DIR, '../../../python')
from net_handpose_baseline_msra import make_net
def... | [
"chenxinghaothu@gmail.com"
] | chenxinghaothu@gmail.com |
584e8b0c312c39f77ca0773ac08a2e8300c41adb | 6c213c60eb82742672818cd4acb30dcdd75e03df | /pong with AI/pong with AI.py | 95e7865b027f202b77a8cc5a0e99bb070ac1a64a | [
"MIT"
] | permissive | Stosan/Pygame | ade7b969cf1d69dc452704833f80759d293501f9 | f47976f81a5964bfce90c4ef459e619dc76f712b | refs/heads/main | 2023-01-06T19:47:46.788141 | 2020-11-05T21:44:54 | 2020-11-05T21:44:54 | 310,422,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,175 | py | import pygame, sys, random
Cap_string = input('Enter Your name and press enter: ')
yournm = Cap_string
# initialize pygame setup
pygame.init()
clock = pygame.time.Clock()
ffont = pygame.font.SysFont('Arial', 18, True)
basic_font2 = pygame.font.SysFont('Arial', 120, True)
# General setup
pygame.mixer.pre_in... | [
"noreply@github.com"
] | Stosan.noreply@github.com |
b0d5b4e95798bd3ee2f5fb7c143b15a519704fd5 | 89be33b0c7030f5112df35c6e9e5546a13b213d9 | /pyccuracy/actions/select_has_selected_index_action.py | 0216765aff930f9b276f95f5a510338a612f51f7 | [] | no_license | kenjiyamamoto/pyccuracy | 6882910d468a503ce1b38f0c90276ac432de0b9c | 602255dc529bf1db8cd4d8a81b5123e8c566df50 | refs/heads/master | 2021-01-16T22:40:58.418643 | 2009-05-18T21:07:24 | 2009-05-18T21:07:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | # -*- coding: utf-8 -*-
# Licensed under the Open Software License ("OSL") v. 3.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.opensource.org/licenses/osl-3.0.php
# Unless required by applicable law or agreed to in writ... | [
"heynemann@gmail.com"
] | heynemann@gmail.com |
075dacc89ba876127a7b12af477b6c83ea9ec03d | 292d337576335b3877f553bab7e1885335e3beef | /backend/main.py | c6f3bbf111c8a90ef6ae5a69789e1acfeb514e40 | [] | no_license | enochxu/vivpro-assignment | 5ba376261b4ec13e8a2f8378bba8ec5ac92c1240 | f21c9b349110c49e02740323081dfeecb42cb440 | refs/heads/main | 2023-05-29T20:36:17.245395 | 2021-06-10T20:56:44 | 2021-06-10T20:56:44 | 375,790,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | import config
import json
from flask import Flask
from flask import request, jsonify
from flask_restful import Resource, Api
import pymongo
from pymongo import MongoClient
from flask_cors import CORS
app = Flask(__name__)
api = Api(app)
CORS(app, origin=['http://localhost:3000/'])
client = MongoClient(config.dbconnec... | [
"enoch.t.xu@gmail.com"
] | enoch.t.xu@gmail.com |
5821d7e828656fade04f98c5a720f731cf89a534 | 1dbf485a319405c9c96e83aacbb14c37dabc5823 | /Day 3/main.py | 0b92488ac00d052a434b706b11ff32baee11ba4e | [] | no_license | AbhishekSV/100daysofcode | ff883a1501f5b24986486786feb86d7e39337728 | 99f66462fefb6c30ebc8a8dc7703f5e7abca16f3 | refs/heads/main | 2023-06-07T10:14:12.050236 | 2021-07-13T18:03:15 | 2021-07-13T18:03:15 | 365,815,050 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,935 | py | # Day 3 Exercise 1
number = int(input("Which number do you want to check? "))
if number % 2 == 0:
print("This is an even number.")
else:
print("This is an odd number.")
# Day 3 Exercise 2
height = float(input("enter your height in m: "))
weight = float(input("enter your weight in kg: "))
bmi = round(weight / he... | [
"abhisabnives@gmail.com"
] | abhisabnives@gmail.com |
bbd162c69eacae485a35fd3ca6c6fc00a310fe79 | 07093294ee3b0218a687d34141052a0417d7292f | /venv/Scripts/pip-script.py | 7aeea92865b0d0b2781cdb29d1b28baa0926b4ce | [] | no_license | condoran/lab5-7 | ebc409b79b9fa23a7ccd4daca405e8f989652e62 | 9b8e089acdec5818bb1a89fc040b50c9e7802037 | refs/heads/master | 2020-04-05T11:54:30.210998 | 2018-12-12T13:19:22 | 2018-12-12T13:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | #!C:\Users\Andrei\Desktop\FP\lab5-7\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])
... | [
"anco990@gmail.com"
] | anco990@gmail.com |
e5a188e98f707bfbcbe34f7ec600b5ee808fd90c | c91775afdc25f8897c6839cf8294869f3e928083 | /PythonFiles/snowmass_cfg_ttB_14TEV_900_1600_Conf4v2_15.py | e3ee664b191b7795db375e26d848ab120fdb79e5 | [] | no_license | Saptaparna/Miscellaneous | 7e6df9cdfd10d4861e2e382b1837dbd4c26fb249 | b954189d85e56a02fe257b5f5cbd779365719c00 | refs/heads/master | 2021-01-23T13:29:30.283308 | 2017-12-20T08:26:37 | 2017-12-20T08:26:37 | 42,525,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,285 | py | import FWCore.ParameterSet.Config as cms
import FWCore.PythonUtilities.LumiList as LumiList
import FWCore.ParameterSet.Types as CfgTypes
#
# Parameters that can be set via command line
# when submitting Condor jobs
#
isMc_settable = True
isSignalMc_settable = False
def FindFile(name):
fname = 'file.tx... | [
"saptaparna@gmail.com"
] | saptaparna@gmail.com |
2587ad784ccf844c42813b9a6b23c51a76963619 | 9bce7ec9dc841744615549f67a9aadcb212ea958 | /src/projects/migrations/0005_auto_20191019_2024.py | 85cc115f2a29d5a98d3492b2ee5b05a165d5da25 | [
"MIT"
] | permissive | ERogalla/portfolio | 9b3d817ca6d7032fc7685aae21c90abf66f17001 | 6c484807feddb4abfe50c1fd9b2f09ce955f0d7b | refs/heads/master | 2022-12-03T15:02:50.458999 | 2020-07-03T19:19:18 | 2020-07-03T19:19:18 | 213,979,386 | 0 | 0 | null | 2022-11-22T06:09:06 | 2019-10-09T17:19:29 | CSS | UTF-8 | Python | false | false | 435 | py | # Generated by Django 2.2.6 on 2019-10-19 20:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0004_auto_20191019_2010'),
]
operations = [
migrations.AlterField(
model_name='project',
name='image',
... | [
"erogalla@utexas.edu"
] | erogalla@utexas.edu |
0cbdc44a3aecfdfbc3789735359e62aeeca9bdfb | 18e4588df588b431c110338754c4160c6e64157a | /src/ad/migrations/0020_auto_20200626_1525.py | f66f6797e89c61b81398bc24e195a590be28c722 | [] | no_license | mamee93/websilt-blog | 60ae8aa8df737109b13af3a36e0abfd699357949 | 5d693c4f36ebb91b1bd5867db7feafd95bebf19c | refs/heads/master | 2022-11-09T06:26:41.232243 | 2020-07-01T15:55:50 | 2020-07-01T15:55:50 | 263,414,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # Generated by Django 3.0.6 on 2020-06-26 11:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ad', '0019_auto_20200626_1520'),
]
operations = [
migrations.AlterField(
model_name='ad',
... | [
"mameeal@gmail.com"
] | mameeal@gmail.com |
98b6369757f30a3faa769111b9470dc7e0bddae8 | 4d36cccb6c17c708eb06dd8db56694dbdc452d28 | /articles/migrations/0006_auto_20190912_1457.py | 1f19b5227442ed9e0b07ea778c2bb2dcb9c94905 | [] | no_license | TheDevengers/welldone-BE | af583a4f9cfed63651324360ffe1fc46fb8b1846 | c8a2e6bcd8b222c6a1fdb0336f45c4f1e66e05f5 | refs/heads/develop | 2023-04-30T08:47:39.380417 | 2021-03-23T08:02:43 | 2021-03-23T08:02:43 | 205,995,734 | 1 | 0 | null | 2023-04-21T20:37:07 | 2019-09-03T05:27:34 | Python | UTF-8 | Python | false | false | 531 | py | # Generated by Django 2.2.5 on 2019-09-12 12:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('articles', '0005_auto_20190912_1445'),
]
operations = [
migrations.AlterField(
model_name='arti... | [
"vegekku@gmail.com"
] | vegekku@gmail.com |
19d3d6bf8cdea43d5b1639aa24aa44178d691d27 | 338defe1b32d25d4a048780836076e412de44a73 | /Conditional/3.py | 940dcdca2d55668b02ecf2ac4f05e8a084fe58d3 | [] | no_license | easyeah/githubtutorial | acaa45e20a0cadc9d817686399914c4fad260549 | de9c744014294863a553f463674675569e11ac8c | refs/heads/master | 2023-02-01T19:07:23.504698 | 2020-12-23T03:59:01 | 2020-12-23T03:59:01 | 321,349,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | input = 22
real = 11
if real == input :
print("Hello!")
else :
print("Who are you")
| [
"easyeah@ijiyeui-MacBookAir.local"
] | easyeah@ijiyeui-MacBookAir.local |
59533c0199b661b3a1d1f58fdf59f4431c6b8008 | 65568de005fad42dbeafa9f2e3236651bf32ab7d | /sdocs/wsgi.py | 8eabbfdc98b6bc3efb9705a6a1b1e7c7cbb3261e | [] | no_license | xtess16/admin-back | b760f9a541e5c26823e0c1021b625050c7687b72 | 8d3fabe45cfb4cc46f3b5fad5884c20297ffa4c5 | refs/heads/master | 2022-04-03T10:53:04.868778 | 2020-01-13T09:45:38 | 2020-01-13T09:45:38 | 236,314,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for sdocs 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"intro333@ya.ru"
] | intro333@ya.ru |
a458def1da622eaef02e4a664937317cae80b6ed | 2f15020ccc389d5a72b5cb2f55cd14ee7c0275f3 | /find_libary/find_libary.py | 28fd895328ad28e68ffd827a5107f97ad6aa21bd | [] | no_license | guokai27/Tools | bfe5c5a680af6a7fa5d8e09ce9b77d85231b1925 | bcd20c977daba7a88a95cdcaf2ff8f31fe42d3ba | refs/heads/master | 2020-08-14T22:36:50.382826 | 2019-09-17T09:06:01 | 2019-09-17T09:06:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | # coding: utf-8
import os
def filter_libary(libary):
for l in libary.split('.'):
if l and l not in import_lst:
return l.strip()
return ''
def filter_libary2(string):
return (i.split('.')[0].strip().split('#')[0] for i in string.split(' as ')[0].split(','))
def walkdir(rootDir):
... | [
"wnma3mz@163.com"
] | wnma3mz@163.com |
1b62f125c1180fb8ba8b9a43a5b6ab561ed1ced0 | beafb123b1475344ba15bb9dac4014d2c973cfa2 | /api/v1/views/__init__.py | e7806ceccfa2ac661279dafdff480044fd509b69 | [
"LicenseRef-scancode-public-domain"
] | permissive | csoriano2832/AirBnB_clone_v3 | ec1b6b0a0d9ff7370f5c43e09479b6951d6179e1 | 0aaad8fa40690960cd66f5ea1108858ad08bea88 | refs/heads/master | 2023-08-01T01:59:29.675599 | 2021-09-21T20:30:43 | 2021-09-21T20:30:43 | 407,196,301 | 0 | 1 | null | 2021-09-21T19:47:17 | 2021-09-16T14:27:57 | Python | UTF-8 | Python | false | false | 373 | py | #!/usr/bin/python3
""" Sets a new flask object based on app blueprint"""
from flask import Blueprint
app_views = Blueprint('app_views', __name__, url_prefix='/api/v1')
from api.v1.views.index import *
import api.v1.views.states
import api.v1.views.cities
import api.v1.views.amenities
import api.v1.views.users
import ap... | [
"2832@holbertonschool.com"
] | 2832@holbertonschool.com |
8bcee44498640e3e8e6b4ce9c36b104e65b57e20 | 3168148e3791b53dacb1ceb22531c71019b84f53 | /stocktojs.py | 84ce5f8e93956aa243d13a064fcc15ef94c45c67 | [] | no_license | tschwarz1/dogstocks | 85d15375cb797afef7f2b5c4eea64ee7a01f21ab | 745090cd381c1ca5bac410ff2e00db41e4b4e9ac | refs/heads/master | 2023-08-11T03:46:53.370716 | 2021-09-26T12:38:50 | 2021-09-26T12:38:50 | 410,236,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | import json
import csv
f = open("large3.js", "w")
f.write('let WORDS = [\n')
with open('egg.csv', 'r') as file:
reader = csv.reader(file)
print
for row in reader:
f.write(' [\"'+row[0]+'\",\"'+row[1]+'\"],\n')
f.write('];')
f.close() | [
"88667871+tschwarz1@users.noreply.github.com"
] | 88667871+tschwarz1@users.noreply.github.com |
33b8370cb5b7909991f8bc565713cbe209635289 | e4926b6b7f2628bf8f118d3b3367dd68eea20c71 | /actions/admin.py | df3b8184b1e5798e36c2b1f6207e03413b1bab68 | [] | no_license | jmshulett/django_web_development_assignment4 | 1ab2088481d295df6e8da0ad9a702125c90651e9 | 8eaafa9ef54bffe17e5828a0bce07243421efab1 | refs/heads/main | 2023-08-13T17:54:57.751715 | 2021-10-16T20:59:29 | 2021-10-16T20:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from django.contrib import admin
from .models import Action
@admin.register(Action)
class ActionAdmin(admin.ModelAdmin):
list_display = ('user', 'verb', 'target', 'created')
list_filter = ('created',)
search_fields = ('verb',)
| [
"noreply@github.com"
] | jmshulett.noreply@github.com |
57b9f07dfc61926523d65d0345e2667186ffd666 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/437/usersdata/311/96973/submittedfiles/funcoes1.py | bd4e4152074845b6783d9cb22737bbb554537481 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | # -*- coding: utf-8 -*-
lista=[]
def crescente(lista):
#escreva o códintgo da função crescente aqui
for i in range (0,n,1):
if lista[i]<lista[i+1]:
return 'S'
else:
return 'N'
#escreva as demais funções
def decrescente(lista):
for i in range(0,n,1):
while list... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0af9c310fc5620d9e451a9cf2726eb14e3678232 | 9a4df86b4ee8a8dbaaa3e7dc9d85fc3d8ca3dd48 | /amymeme/20210121.py | f6640fee6001bf4a28b272ecf5169fa718bec762 | [] | no_license | AMYMEME/algorithm-study | 3ff2997ef1f50a2a6d34d46bac49b5fb3c14d7a4 | f5bd767c46a6571d2d139a946bd3603c96877edb | refs/heads/main | 2023-07-10T06:38:07.444611 | 2021-08-24T14:17:07 | 2021-08-24T14:17:07 | 324,687,765 | 0 | 1 | null | 2021-08-24T14:17:08 | 2020-12-27T04:40:54 | Python | UTF-8 | Python | false | false | 1,058 | py | # acmicpc.net/problem/2667
import sys
from collections import deque
def bfs(row_idx, col_idx):
count = 0
q = deque()
q.append((row_idx, col_idx))
visit.add((row_idx, col_idx))
while q:
row_idx, col_idx = q.popleft()
count += 1
for d in range(4):
next_row_idx, n... | [
"cgc8016@ewhain.net"
] | cgc8016@ewhain.net |
fffe3e5e4ec658187ec9b1b7bdf82b2340a23bc0 | 8c8a752bd3efd126900b04e4b004d666e9f81bc9 | /playground.py | b2f7284446b74d2c95b79a8dd590505805a4b7a1 | [] | no_license | nara/webscrapper | 59ff111edb6e12c05386693bfd3a4864f2ad47a6 | b876c9edbc4e4d8018aafe225c6ad34c80f9f674 | refs/heads/master | 2022-07-18T14:53:57.892857 | 2020-05-17T21:40:18 | 2020-05-17T21:40:18 | 263,176,694 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | import gevent
from gevent.queue import Queue
import sys
from googutils import downloadPage, downloadDetailPage, getNavigationLinks, getSymbolData, getLinkSet
import re
import repository as repo
import urllib2
import HTMLParser
repo.SymbolRepo.writeToCsv()
sys.exit()
link = "http://www.google.com/finance?c... | [
"avnrao@gmail.com"
] | avnrao@gmail.com |
cdf5b2312c0a5cf620f94dccb54931b8d92aba5c | 9be0071a0132d42c4253632d57927379b866d2bf | /horizon-caffe/tools/disturb_in_eye_pic.py | ba897c6e0ebb5b33f534e330ec02510fe6eeedc1 | [] | no_license | zhaoxuli/Eye_clsfy | 5f1635a3766d61d1895e1cea037461fc662f1185 | 692b7c2061d34a4c5b5ce1af052ab179e77bfa50 | refs/heads/master | 2021-04-03T09:58:50.329785 | 2018-03-14T08:37:33 | 2018-03-14T10:55:09 | 125,232,398 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,330 | py | # -*- coding: UTF-8 -*-
import os
import sys
import glob
import numpy as np
import cv2
import argparse
# if test_ratio = [1, 5], then:
# 1. idx % 10 == [0, 2, 3, 4, 6, 7, 8, 9] saves to 'train folders'
# 2. idx % 10 == [1, 5] saves to 'test folders'
test_ratio = [1, 5]
def parse_args():
parser = argparse.Argume... | [
"zhaoxu.li@hobot.cc"
] | zhaoxu.li@hobot.cc |
46f1830187ea8e97f6eab98b1ee66dcdcdfab9ce | ea0969f670c1aab1e16c5ebec9c9fe9b2d6782e0 | /src/grille.py | 73362e1e5297634d6c0d7d86ffe9c3c8987c19c4 | [] | no_license | franzx5/Monte-Carlo-based-Protein-Folding-Algorithm-Implementation | abcc7504bfcad21fef696aaf18c45557a835e47f | a65a8aa0dc98fa1325a281c1b74aba913885ec3b | refs/heads/master | 2020-03-28T04:43:32.373595 | 2018-10-09T20:54:52 | 2018-10-09T20:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,432 | py | #-*- coding: utf-8 -*-
#Author: AKE Franz-Arnold
#Universite Paris-Diderot
#Projet Court: ...
#import library
import numpy as np
class Grille(object):
"""
Class Grille
============
Class to compute a Lattice in which a conformation could be integrated
and contains several function to make operati... | [
"aerod7@hotmail.fr"
] | aerod7@hotmail.fr |
a2b315f8ac5d849d88680e61611a6b16300e5e69 | 58d4e49e8214d4a1699e8783bfed837b3d535dbd | /libs/Theano/theano/tensor/type.py | 9e563bfe55ff1a5e04169998753f981562e67fa1 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | nke001/attention-lvcsr | 08bcab649b9e02bba56a6a397fcb270f6a41e87a | 93e8d0938f8aa7726ea12318cf0a2fc0e159b5ab | refs/heads/master | 2021-01-18T00:44:05.546879 | 2015-11-05T19:51:15 | 2015-11-05T19:51:15 | 43,223,536 | 0 | 0 | null | 2015-09-26T21:23:02 | 2015-09-26T21:23:02 | null | UTF-8 | Python | false | false | 31,403 | py | import logging
import warnings
import numpy
import theano
from theano import config
from theano.gof import hashtype, Type, Variable
from theano import scalar as scal
_logger = logging.getLogger("theano.tensor.type")
class TensorType(Type):
"""Symbolic `Type` representing a numpy.ndarray value."""
filter_c... | [
"jan.chorowski@gmail.com"
] | jan.chorowski@gmail.com |
fc3b38692f0f6d26c2267d32cdcf80c3f9eeaa57 | 90ae5e5276e7d2e43a2e1da84d2534f1dd6fd25e | /prepare_data.py | 5fa4a421dd61267f548dcb27c24eef6bc670603b | [] | no_license | LogicJake/yidianzixun-ctr-top1 | be7004a5199aa823ffce4121b4ae865f60293c74 | cdd1208c1ab7d43ef74822992c6cf15511caf862 | refs/heads/master | 2023-08-17T16:41:10.663032 | 2021-09-19T16:30:40 | 2021-09-19T16:30:40 | 408,175,708 | 16 | 5 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | import warnings
warnings.simplefilter('ignore')
import gc
import numpy as np
import pandas as pd
pd.set_option('max_columns', None)
df_features = pd.read_pickle('/media/user01/wd1tb/yidian/data/feature.pkl')
df_features.drop(['keyword', 'history_docid'], axis=1, inplace=True)
gc.collect()
train = df_features[df_fe... | [
"noreply@github.com"
] | LogicJake.noreply@github.com |
1e0527b357570af3ae2b1c6e24e6c92b1722e82a | 4151bab1ae974b6e613a3fd53eb66aef96418f03 | /test_wiki_testing.py | e674cc0a62713a3a035395cbe818d8be4ac331be | [] | no_license | GuptaAkshay/Assit | c6b73000994c3333326270f29c7285d0e97cef74 | 1f69201d8509c414546d612932be6619371bd572 | refs/heads/master | 2021-05-01T13:44:47.698671 | 2017-01-20T20:46:21 | 2017-01-20T20:46:21 | 79,592,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | import wikipedia
while True:
query = input("Query :")
wikipedia.set_lang("en")
result = wikipedia.summary(query, sentences = 2).encode('utf-8')
print (result)
| [
"akshgupta547@gmail.com"
] | akshgupta547@gmail.com |
5e1a3ae86c4f42578664cd65af131794f3437314 | 5a96dcb6e22b37e43386b3c4e376dc457929deff | /02python常用api/03-列表list常用方法.py | 0ad3182bbaa230c7f7ba77a0667c88b38481b13c | [] | no_license | chengjing00/pythonLearning | 3c0ce48f112a21e90530576ffa3803eb7b9f374c | 63c8395de76adc10b2fd957e1a85c2f157cd0452 | refs/heads/main | 2023-03-09T23:58:49.642979 | 2021-02-28T05:25:22 | 2021-02-28T05:25:22 | 306,793,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,574 | py | # -*- coding: utf-8 -*-
# @Time : 2020-10-26 10:34
# @Author : chengj-f
# @Email : chengj-f@glodon.com
# @File : 03-列表list常用方法.py
# @Software: PyCharm
list1 = [1, 3, 5, 7, 100]
print(list1) # [1, 3, 5, 7, 100]
# 乘号表示列表元素的重复
list2 = ['hello'] * 3
print(list2) # ['hello', 'hello', 'hello']
# 计算列表长度(元素个数)
pri... | [
"chengjing002@163.com"
] | chengjing002@163.com |
abf518b8b5904b80283d0be5973d382c366310f6 | 74be814f7cd10d3c91a53460bd6698aa8bc95704 | /LeetCode周赛/2020年4月12日周赛/5382. HTML 实体解析器.py | 100f3c2047decc971e12392ce1f1c89165f2329d | [] | no_license | weiyuyan/LeetCode | 7202f7422bc3bef6bd35ea299550b51905401656 | 19db0e78826d3e3d27d2574abd9d461eb41458d1 | refs/heads/master | 2020-12-03T17:10:53.738507 | 2020-05-27T08:28:36 | 2020-05-27T08:28:36 | 231,402,839 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,620 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author:ShidongDu time:2020/4/12
'''
「HTML 实体解析器」 是一种特殊的解析器,它将 HTML 代码作为输入,并用字符本身替换掉所有这些特殊的字符实体。
HTML 里这些特殊字符和它们对应的字符实体包括:
双引号:字符实体为 " ,对应的字符是 " 。
单引号:字符实体为 ' ,对应的字符是 ' 。
与符号:字符实体为 & ,对应对的字符是 & 。
大于号:字符实体为 > ,对应的字符是 > 。
小于号:字符实体为 < ,对应的字符是 < 。
斜线号:字符实... | [
"244128764@qq.com"
] | 244128764@qq.com |
d846f8c565849b567cf5ac8fb5611527a0dffc7b | 11415118049c6ef1e778f6f3af1ab1678d374c5d | /superlists/settings.py | 9be6f9aa64be560c9698779d44e495013bcc6173 | [] | no_license | azrishnr/ListApp | dfd0a019a703fa62b117b5e3339d7fc001992bcc | 5c595ff5963f5786fd4d9a6528c20b5935617bb6 | refs/heads/master | 2020-03-07T02:25:07.923907 | 2018-04-09T15:45:24 | 2018-04-09T15:45:24 | 127,206,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | """
Django settings for superlists project.
Generated by 'django-admin startproject' using Django 1.11.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/
"""
impor... | [
"ahilcar.s@gmail.com"
] | ahilcar.s@gmail.com |
2beb5c545c5f8137c263e97d7eb1ef2a8085c386 | 42d4c00477339ed114ed03d2296f9a3ba41f9e43 | /sets.py | ca8b750e7e45d784c9d3f4bd04b4d5c52454f592 | [] | no_license | SaifullahKatpar/CodingTheMatrix | 5506f79214e9be6e4a9e0f74de69f34ab846e118 | b2702ee27d63ce6c2fa6f144680f1ebce78c7789 | refs/heads/master | 2021-07-24T01:29:46.345458 | 2017-11-03T06:26:19 | 2017-11-03T06:26:19 | 109,307,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | S = {1,2,3}
print('S = ',S)
print('2 in S=',2 in S)
# union
print('Union of {1,2,3} and {2,3,4,5,6}:')
union = {1,2,3} | {2,3,4,5,6}
print(union,'\n')
# intersection
print('intersection of {1,2,3} and {2,3,4,5,6}:')
intersection = {1,2,3} & {2,3,4,5,6}
print(intersection,'\n')
# add
print('added 4 to S:')
S.add(4)
p... | [
"saifullah.cs14@iba-suk.edu.pk"
] | saifullah.cs14@iba-suk.edu.pk |
4b61dad65c0eec78567531230fc5dfd64845d3b1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02947/s946573717.py | 2e7fbd83033b4322cdcfef0dce174c61380629b5 | [] | 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 | 188 | py | import collections
N=int(input())
lis=[''.join(sorted(input(), key=str.upper)) for _ in range(N)]
v=collections.Counter(lis).values()
ans=sum(list(map(lambda x: x*(x-1)//2, v)))
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f31edda5d1ea8a0a72aa23e1b1d830d7a491ff5c | a97f789530412fc1cb83170a11811f294b139ee8 | /疯狂Python讲义/codes/02/2.5/chars_test.py | 877b1afe2a70512932e068b93aa383d941a93381 | [] | no_license | baidongbin/python | 3cebf2cc342a15b38bf20c23f941e6887dac187a | 1c1398bff1f1820afdd8ddfa0c95ccebb4ee836f | refs/heads/master | 2021-07-21T19:23:32.860444 | 2020-03-07T11:55:30 | 2020-03-07T11:55:30 | 195,909,272 | 0 | 1 | null | 2020-07-21T00:51:24 | 2019-07-09T01:24:31 | Python | UTF-8 | Python | false | false | 846 | py | s = 'crazyit.org is very good'
# 获取s中索引2的字符
print(s[2])
# 获取s中从右边开始,索引4的字符
print(s[-4])
# 获取s中从索引3到索引5(不包含)的子串
print(s[3:5])
# 获取s中从索引3到倒数第5个字符的子串
print(s[3:-5])
# 获取s中从倒数第6个字符到倒数第3个字符的子串
print(s[-6:-3])
# 获取s中从索引5到结束的子串
print(s[5:])
# 获取s中从倒数第6个字符到结束的子串
print(s[-6:])
# 获取s中从开始到索引5的子串
print(s[:5])
# 获取s中从开始到倒数第6个字符的子串
... | [
"baidongbin@qq.com"
] | baidongbin@qq.com |
f7e85c6652a156f9683772188744b06f6a569901 | f65be574caf751a50cca2dc61a035dad9829d27c | /data/testbed/twist.py | 2462ea123b88783c8287627faf9252d570e70e78 | [] | no_license | Chen-Gu/slp | 295810b597810f386c0d96038a5bae0d178c5ae0 | db242fdc01f42a916a9c1c295548a03c94e56948 | refs/heads/master | 2021-08-28T11:37:52.906728 | 2021-08-11T15:00:25 | 2021-08-11T15:00:25 | 237,653,729 | 0 | 0 | null | 2020-02-01T17:49:44 | 2020-02-01T17:49:44 | null | UTF-8 | Python | false | false | 1,540 | py |
import numpy as np
from simulator.Topology import Topology
def name():
return __name__
def platform():
"""The hardware platform of the testbed"""
return ("eyesIFX", "telosa", "telosb")
def log_mode():
return "printf"
def url():
return "https://www.twist.tu-berlin.de"
def submitter(*args, **kw... | [
"MBradbury@users.noreply.github.com"
] | MBradbury@users.noreply.github.com |
d0b5aad7626c24cddeda85400d41c59779b8b3cd | b102173408f2b99008cc4d9a6aca86f294b5f8fe | /removingthesameelements.py | fa0c42a5746dfaa6e9f21943e7e69a580b3c113b | [] | no_license | Avenger98/Python-Programms | 843083d0d0589d57b2a3fadfe7343c07d9f7292b | 0b7521e111c6a8750e05ecac3c90d256436c83ee | refs/heads/master | 2020-12-13T08:27:28.845042 | 2020-01-16T16:32:33 | 2020-01-16T16:32:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | a = []
cycle_number = int(input("Enter the cycle number: "))
for i in range(cycle_number):
num = int(input("Enter the number: "))
a.append(num)
print("This is the list created: ", a)
b = []
for numbers in a:
if numbers not in b:
b.append(numbers)
print(b) | [
"noreply@github.com"
] | Avenger98.noreply@github.com |
500c896b25f008b10bf817e79c1c5a6f23d40198 | b681b0ef052d49452c7784b5293d56a64b9b1ceb | /MutiView3DReconstruction/lib/view.py | 3fcde7012a93cd28c8d485bfbdd49da14d34f861 | [] | no_license | Gravity-N1/3D-Object-Reconstruction-with-RealSense-D435 | bd21f55e97f8cfd30fa247179c844b0101e3edc4 | 52708913e2d0954bbca237111b5b8ce6bc976191 | refs/heads/master | 2022-04-05T12:08:19.655903 | 2020-03-03T09:07:22 | 2020-03-03T09:07:22 | 257,914,309 | 3 | 2 | null | 2020-04-22T13:46:12 | 2020-04-22T13:46:11 | null | UTF-8 | Python | false | false | 129 | py | import numpy as np
import open3d as o3d
pcd = o3d.io.read_point_cloud('template.pcd')
o3d.visualization.draw_geometries([pcd]) | [
"roboticsleo@gmail.com"
] | roboticsleo@gmail.com |
70c2b4c693ff41de681677fb36fcaf4d68a47c1a | 3d319130b7146249592c8e7383cf09104232358d | /data/read_data.py | e8d293d38422ec20bd63ead37123e9c7bcc9fae4 | [
"MIT"
] | permissive | ziqianxy/coach_service | 81f3ab6770ec05832660f8e1e9812505a39e51e5 | 8020c5e8d7255d22c3473529baf0f111c209879f | refs/heads/master | 2021-01-11T21:47:24.759966 | 2017-01-13T13:21:19 | 2017-01-13T13:21:19 | 78,846,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # coding=utf-8
import csv
import string
from common_utils import gps
CSV_NAME = '_2016-1210-080343'
file_name = '_data_resolved/' + CSV_NAME + '.csv'
# key-map of the column
km = {
"_time": 0, "G_STA": 1, "G_LON": 2, "G_LAT": 3, "G_ALT": 4,
"G_pdop": 5, "G_hdop": 6, "G_vdop": 7, "G_SPD": 8, "G_DI... | [
"ziqiancn@163.com"
] | ziqiancn@163.com |
b5b5413f29f0d3fd56f012bfdb61e13fb70ba12e | 08cfc4fb5f0d2f11e4e226f12520a17c5160f0a2 | /kubernetes/test/test_v2beta1_metric_status.py | f6f4980396861a82b487c809011755f67128829f | [
"Apache-2.0"
] | permissive | ex3cv/client-python | 5c6ee93dff2424828d064b5a2cdbed3f80b74868 | 2c0bed9c4f653472289324914a8f0ad4cbb3a1cb | refs/heads/master | 2021-07-12T13:37:26.049372 | 2017-10-16T20:19:01 | 2017-10-16T20:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
b03f005419c18694abd3a3bb1e63bcfca9b7a48c | 61445c4c3270441f61137224745f5e378815d27e | /main.py | 24cc2b93cc6dc971316786b2a593ee9b0cc4e964 | [] | no_license | lgxqf/easy_mock | 51f7eea0fa80ac78755bfe7e976eb912ed55445d | 42bc63511bdacfb090b68c9fc8eddd2c4d8bb002 | refs/heads/master | 2023-03-30T21:32:01.845354 | 2021-03-31T09:50:35 | 2021-03-31T09:50:35 | 352,025,425 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # -*- coding: utf-8 -*-
import os
from easy_mock import config
from easy_mock.core import main
from easy_mock.loader import load_default_conf
# config.port = load_default_conf("port") or "9000"
# config.is_https = bool(load_default_conf("is_https"))
#
# config.file_path = "server/example.yml"
main()
| [
"mayi@sensetime.com"
] | mayi@sensetime.com |
aa7f2093185a88a33dfb0000ac70a0a23fc889a2 | ac5b5e6a3ebb3825c8a14a7f507283938976e635 | /authapp/urls.py | ec9ac166054b6953288eb4406856d1fa9cfc6ef4 | [] | no_license | Django-TOPS/18Aug_AuthProject | 40f53d4a162a4cfed2137a024a2e8ddf88cbd4d1 | 05d1369799d973104668c86edae3f67be68e7476 | refs/heads/master | 2023-02-22T05:42:13.939901 | 2021-01-30T07:07:19 | 2021-01-30T07:07:19 | 334,351,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from django.contrib import admin
from django.urls import path
from authapp import views
urlpatterns = [
path('',views.index, name='index'),
path('signup/',views.signup),
path('home/',views.home,name='home'),
path('logout/',views.user_logout),
]
| [
"sanketiosonline@gmail.com"
] | sanketiosonline@gmail.com |
a2945f3d81c090a8f2aa8f45e45b0acac73e2923 | adea9fc9697f5201f4cb215571025b0493e96b25 | /napalm_yang/models/openconfig/network_instances/network_instance/policy_forwarding/policies/policy/rules/rule/__init__.py | dc8030ca891d1f3cc60283e5218058163251d128 | [
"Apache-2.0"
] | permissive | andyjsharp/napalm-yang | d8a8b51896ef7c6490f011fe265db46f63f54248 | ef80ebbfb50e188f09486380c88b058db673c896 | refs/heads/develop | 2021-09-09T02:09:36.151629 | 2018-03-08T22:44:04 | 2018-03-08T22:44:04 | 114,273,455 | 0 | 0 | null | 2018-03-08T22:44:05 | 2017-12-14T16:33:35 | Python | UTF-8 | Python | false | false | 41,850 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.y... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
0350bfcfba09fa9dcfb8c0ae0577552fed9d9f2d | 44b01a73aeea92dec4469f3c5c792dd0acf290bf | /examples/advanced/phase_callbacks.py | 23bc002b715a6a30d1d5cca731d8442d1a8b7925 | [
"Apache-2.0"
] | permissive | catalyst-team/gan | 3adb4a0e44cfd5fbce8b97b67fe85e1ef8141c5b | 6a077f6aa889dee7f3aba9c49de27e06c1fce1c5 | refs/heads/master | 2021-09-29T11:25:24.544686 | 2021-09-13T06:01:04 | 2021-09-13T06:01:04 | 236,473,329 | 6 | 3 | Apache-2.0 | 2020-04-22T23:45:16 | 2020-01-27T11:11:41 | Python | UTF-8 | Python | false | false | 5,563 | py | import copy
from typing import Dict, List # isort:skip
from collections import OrderedDict
from catalyst.core import State
from catalyst.dl import registry
from catalyst_gan.callbacks import PhaseManagerCallback
# TODO: remove copy-paste from catalyst.dl.callback.phase
class Phase:
"""
Class for storing in... | [
"andrew.zharkov@abbyy.com"
] | andrew.zharkov@abbyy.com |
2e84202775f3633e16e26cb77080e6a4c281f2fe | bc441bb06b8948288f110af63feda4e798f30225 | /ens_sdk/model/cmdb/object_attr_value_pb2.py | 1c8bea37db97cc1f37eb4ffdf454c89d7af3932d | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 6,395 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: object_attr_value.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pr... | [
"service@easyops.cn"
] | service@easyops.cn |
7ebce75c2d3154de02e1b6ffa38cb81df8c835df | ec25e9a9627d637b16905dc7d12a6038c1d45096 | /one_by_one_30%/4/sc.py | acc01335f5a461f09d1b7d5101d5933c4fcd8f96 | [] | no_license | Mahdi77N/covid-19 | b1ba48ec5302277d6178862773f18b1717ef3dca | 05be426ed213caeb52412c88c5242de2b346f1e0 | refs/heads/master | 2023-01-20T13:44:43.781029 | 2020-11-23T19:40:01 | 2020-11-23T19:40:01 | 315,423,008 | 1 | 0 | null | 2020-11-23T19:44:26 | 2020-11-23T19:44:26 | null | UTF-8 | Python | false | false | 516 | py | from sys import argv
import sys
import os
import subprocess
from pexecute.process import ProcessLoom
def Run(i):
subprocess.call("python ./prediction.py "+str(i), shell=True)
def main():
# loom = ProcessLoom(max_runner_cap = 8)
for i in range(1,7):
print(200 * '*')
print(i)
... | [
"marmegh@gmail.com"
] | marmegh@gmail.com |
b409b037061d3893cf2c2c4ad1317e510f63e35f | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/portal_rating/controllers/portal_rating.py | 2e8e4884730fe8bdee603045117406e60c3b6b03 | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 749 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import http, _
from odoo.http import request
class PortalRating(http.Controller):
@http.route(['/website/rating/comment'], type='json', auth="user", methods=['POST'], website=True)
def publish_rating... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
7aa5cdd160d7b30b3446ab9d7341fcc95f70ee6a | e37a5eeacc4a4bb2216f76a9301401446e6c956b | /tango_with_django_project/tango_with_django_project/urls.py | 7a4a789df7b7eb723717f5855ca967e1330e0711 | [] | no_license | fullfr34k/Rango | ca0860635c8d7afb1c54158970ddf544d7ba6d8d | 67b23aa6c8802c1a1fed7a92f8229a631ecf4bdb | refs/heads/master | 2020-04-17T00:55:55.323462 | 2016-09-02T13:44:41 | 2016-09-02T13:44:41 | 67,223,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | """tango_with_django_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, nam... | [
"uzohobialeri@live.com"
] | uzohobialeri@live.com |
52825730c9e220f34d4b1e21552fd3c9fc880ec5 | 51f5ba127e25d775bcf4454b8addf5a0e3258104 | /content/downloads/euler/p38.py | 36e403cf1a5f1bc667404438b88bc672bf154996 | [] | no_license | fengxia41103/myblog | db7a7508f88965ac99adbd5cc166f922f21e3d87 | 18c3eb9de27222b37b21aee6ad643f7dc0402c97 | refs/heads/main | 2023-08-30T21:08:31.236197 | 2023-08-30T14:43:00 | 2023-08-30T14:43:00 | 66,040,322 | 1 | 0 | null | 2023-03-27T13:21:32 | 2016-08-19T00:41:47 | JavaScript | UTF-8 | Python | false | false | 1,543 | py | # -*- coding: utf-8 -*-
"""Take the number 192 and multiply it by each of 1, 2, and 3:
192 × 1 = 192
192 × 2 = 384
192 × 3 = 576
By concatenating each product we get the 1 to 9 pandigital,
192384576. We will call 192384576 the concatenated product of 192 and
(1,2,3)
The same can be achieved by starting with 9 and m... | [
"fxia1@lenovo.com"
] | fxia1@lenovo.com |
3517a958ce771fa25670dc830749f1ebb2204ad8 | 2e28b34e6fcf6890bdc0bacafbac41c996dbd1e7 | /doc/source/conf.py | 87936b78723b72aae3793bf4e2ef7b7bb5986581 | [
"MIT"
] | permissive | muhammedfurkan/shelfdb | a516d57757c7a776f6a548294b50382f28e21630 | 96a1dd27d2cd885d96098e0db2545ce3526f54a3 | refs/heads/master | 2021-05-18T01:02:33.458427 | 2020-03-23T04:40:33 | 2020-03-23T04:40:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,853 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# ShelfDB documentation build configuration file, created by
# sphinx-quickstart on Thu Feb 23 21:25:00 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... | [
"nitipit@gmail.com"
] | nitipit@gmail.com |
c6850ff0db5408f68ffb310180c2e6fcfa6a64c0 | 9fe646e011269454ef6219fb7d87159df02b8555 | /arrays/chocolate_distribution.py | 42aad5dce92f191d788deb8086e0c239d7de6dcd | [] | no_license | shreyas-selvaraj/geeks_for_geeks_problems | 34fe9b01cebf6be35bd3d3ba9802478ff256c928 | a3d244494df86ba26bad0576469dc936ea027100 | refs/heads/master | 2022-11-28T22:01:08.851558 | 2020-07-29T11:59:15 | 2020-07-29T11:59:15 | 283,486,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | def chocolate_dist(arr, students):
#each packet has dif amount
#packets need to be distributed to students
#each students gets one packet
#dif between number chocolates given to student with max packet and student with min packet
#is a minimum
#problem doesnt make sense?
T = input()
ans = []
for i in range(T):... | [
"shreeachari@gmail.com"
] | shreeachari@gmail.com |
8fc7cebe00a0f7f59d9119c58cd1eba1f57e32ec | bd6da83f5438b3f2ab8f7c6abe0a308e66a123e5 | /egresocovid19/database.py | fb0e3f17b700955fd3fd239c55199fcd47688660 | [] | no_license | CoolCows/egresocovid19-server | f8ac2a6de247bf784f9e33fa1ff93e39c082efce | eb711f4d1101a97261674dea8796627c24a83c89 | refs/heads/main | 2023-08-14T00:00:55.119430 | 2021-09-18T18:49:11 | 2021-09-18T18:49:11 | 407,357,259 | 0 | 0 | null | 2021-09-17T00:49:50 | 2021-09-17T00:49:50 | null | UTF-8 | Python | false | false | 4,105 | py | from datetime import datetime
from typing import List, Optional
from beanie import PydanticObjectId
from motor.motor_asyncio import AsyncIOMotorClient
from pydantic import BaseModel, EmailStr, Field
from .enums import (
AftermathEnum,
BloodTypeEnum,
ContagionEnum,
DiagnosisWayEnum,
IncomeEnum,
... | [
"leynier41@gmail.com"
] | leynier41@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.