blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3dfd37b502e225e3f66840019c085a2442a476db | 2564d19ba0f40ecb0392cde6a28cb87dc70276db | /ADB/urls.py | 29b83b574dc92be8cb45195e4d40dd703ebdac8c | [] | no_license | Moochun/ADB_Project2_backend | 6476eb07506b55cda1ae92d8ce52bc11e69929a3 | b835c07c3c2fbf9fc537ea062fb7d052f845e5a8 | refs/heads/master | 2020-12-24T18:55:54.768338 | 2016-05-11T15:54:50 | 2016-05-11T15:54:50 | 58,558,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | """ADB URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based v... | [
"ys9431425@gmail.com"
] | ys9431425@gmail.com |
2c9c4fd5697467b536ce805d2da4f449ced0fadc | 5c9bc1e9eca2e020e8a459e53e66699d057eb03d | /run.py | b543b3b0b8436f76d78df794279f2f2cc20637b9 | [
"MIT"
] | permissive | alexomaset/PasswordLocker | aaa91581edd7b68991ceb26b8321908506743b17 | d74f12c97e7ff194d31333dd92d50482ade61dbf | refs/heads/master | 2020-05-05T13:30:27.481366 | 2019-04-08T11:28:53 | 2019-04-08T11:28:53 | 180,080,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,306 | py | from user import User
from credential import Credential
def create_account (account_name,user_name,user_password,confirmpassword):
"""
function to create a new account
"""
new_user = User(account_name,user_name,user_password,confirmpassword)
return new_user
def save_details(user):
"""
... | [
"alexomaset711@gmail.com"
] | alexomaset711@gmail.com |
2d66de8b269ba8e5da83aedb44f710f028e31d44 | b1a7417caf4200557106821a0fe45d848b598467 | /python 101/files/files-write.py | 6d916edda92324b417762dd84371b64f4021a66e | [] | no_license | WonderLuc/brother-bootcamp | 3ab6a197160f71d17be837c0be2001b2abcc6c3c | 841285d516566730d35da7af9690c5d3b94051a4 | refs/heads/main | 2023-08-20T15:44:33.228640 | 2021-10-14T17:43:47 | 2021-10-14T17:43:47 | 404,047,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | try:
with open('hello.txt', 'a') as f:
f.write('\nI\'m fine')
f.close()
print(open('hello.txt', 'r').read())
# Hello File!
# How are you?
# I'm fine
with open('404.txt', 'w') as f:
f.write('New File')
f.close()
print(open('404.txt', 'r').read())
# New File
except:
print('Smthg wrong... | [
"workmaildo@yandex.ru"
] | workmaildo@yandex.ru |
abb6d54a01cfb9eb330d64b5b58c4a9309b4d8e3 | 04b85710bbf73f807b7bf8506982fd019e3898e1 | /app/user/serializers.py | 20380f41ebbe29264af31739c0a3ada8d4fe7b1f | [
"MIT"
] | permissive | wamuntu/recipe-app-api | 774bd6d097b63a962474962161c422f46b833031 | 7976ff4fa13872097e1018e3305c00206c54fcf5 | refs/heads/master | 2022-12-01T06:45:45.046421 | 2020-07-28T22:25:29 | 2020-07-28T22:25:29 | 281,071,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | from django.contrib.auth import get_user_model, authenticate
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
"""Serializer for the users object"""
class Meta:
model = get_user_model()
fields = ... | [
"edwardzmk@gmail.com"
] | edwardzmk@gmail.com |
342d09cf61ccf5c4f339d5c86f0e7204551a0b93 | 368c8d27f42d2789e84b0463b09018017858e383 | /tests/test_scan.py | cb28934a266e8cae990bf7825374528ac27bd8e0 | [
"MIT"
] | permissive | ConnectBox/wifi-configurator | 6cce0ae5048a327fd9508f672a8359d178dd0c87 | 07031bdd2ea1f2a59b15cbff13149091642ea3f0 | refs/heads/master | 2023-08-27T10:13:58.107992 | 2023-08-15T21:22:06 | 2023-08-15T21:22:06 | 183,581,318 | 1 | 1 | MIT | 2022-12-26T20:47:21 | 2019-04-26T07:36:48 | Python | UTF-8 | Python | false | false | 8,756 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from wifi_configurator import scan
def freq_signal_dict_as_scan_output(cs_dict):
scan_output = ""
for freq, signal in cs_dict.items():
scan_output = "%sBSS: blah\nfreq: %s\nsignal: %s\n" % \
(scan_output, freq, signal)
return sca... | [
"edwin@wordspeak.org"
] | edwin@wordspeak.org |
d517c0304e985ead906169b47b976447619f523e | b54f9626c1b4fb8b930bf2ad73821cda24df73ee | /onnxmltools/convert/sparkml/operator_converters/word2vec.py | b66edf23938a6e5a08b2b5ace52b4f2eb84246e9 | [
"MIT"
] | permissive | vinitra/onnxmltools | 6e5e8100ce1914f8d265d32e7c44ba590fc1c2ce | dd843d392c5790320b3b597a0618c4910473b5a2 | refs/heads/master | 2021-06-25T00:11:12.705711 | 2020-10-12T03:29:10 | 2020-10-12T03:29:10 | 152,326,441 | 3 | 1 | MIT | 2018-11-17T00:07:20 | 2018-10-09T21:54:36 | Python | UTF-8 | Python | false | false | 4,079 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import pan... | [
"noreply@github.com"
] | noreply@github.com |
5c5014ac32e47fc41d41eaf0a112c52d610840dc | e9a322607be1740c4d1f69944f9bf4ac46c29f4d | /cyvlfeat/sift/sift.py | 46419daeeee11b4edf767bd224c35f3ccadd94ee | [
"BSD-2-Clause"
] | permissive | simmimourya/cyvlfeat | 71fc3ac92b1ca12cc08d796296fb379269f2e10f | efc83dca40d335658620c49017ca0c814ad77132 | refs/heads/master | 2022-01-14T10:39:37.630437 | 2019-06-16T16:28:28 | 2019-06-16T16:28:28 | 59,349,633 | 2 | 0 | BSD-2-Clause | 2019-06-16T16:28:29 | 2016-05-21T08:26:19 | Python | UTF-8 | Python | false | false | 5,888 | py | import numpy as np
from .cysift import cy_sift
def sift(image, n_octaves=None, n_levels=3, first_octave=0, peak_thresh=0,
edge_thresh=10, norm_thresh=None, magnification=3, window_size=2,
frames=None, force_orientations=False, float_descriptors=False,
compute_descriptor=False, verbose=Fa... | [
"patricksnape@gmail.com"
] | patricksnape@gmail.com |
1e9740a8e1b78a322a5f0a91333bbb1a7d3abc3c | 3d2901bb0dc06b24f40544b92b999b76256b2a5b | /05_django/01_django_intro_2/config/urls.py | 84d5a8a8031e1ad68880dfe1f48eda2d3b2088a9 | [] | no_license | kyunghee2/TIL | 3ac949000900cdd58c8b63685dbe45561a1523e4 | 8e3a27d99beabee6342da571700ad08b35e62bb9 | refs/heads/master | 2022-12-11T10:44:37.494808 | 2020-12-29T07:15:02 | 2020-12-29T07:15:02 | 216,502,861 | 0 | 4 | null | 2022-12-08T06:47:25 | 2019-10-21T07:21:19 | Python | UTF-8 | Python | false | false | 998 | py | """config 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-based ... | [
"kyungh103@gmail.com"
] | kyungh103@gmail.com |
08a4954ba693a54f34fe62d504239de31695ae34 | 5452fc2155808581ba7448de23a2879c27e411a1 | /accounts/models.py | edb676378a47f85bc1131b953e72d73d1b72e1a9 | [] | no_license | eferroni/django3-star_social | 9e991ea7f3a869b7b33f9b171ea620000b7a2aca | 266d3c1e1ac9596e6fdd3774a1609b3327841955 | refs/heads/main | 2023-04-24T08:18:47.627003 | 2021-05-05T23:33:08 | 2021-05-05T23:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from django.db import models
from django.contrib import auth
# Create your models here.
class User(auth.models.User,auth.models.PermissionsMixin):
def __str__(self):
return f'@{self.username}'
| [
"edu_ferroni@hotmail.com"
] | edu_ferroni@hotmail.com |
c36b256ce526feca9b8fd7feb9a7ee6860c355db | 18d9fe191a7dcccaa989ac16d0c693526f9f43dc | /manage.py | c86a46ea1870ec971a072381f1188f5ad3f96561 | [] | no_license | david654100/messingwithdjango | 787fb6bda6ca0e3a237081b022e1c15d0ddd6dfd | 8086429645001c02607d4d241829e838f66c7d67 | refs/heads/master | 2020-05-30T00:11:33.439830 | 2019-05-30T17:25:27 | 2019-05-30T17:25:27 | 189,454,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'messingwithdjango.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
ra... | [
"david654100@gmail.com"
] | david654100@gmail.com |
5d2afa784fddf2b41a2109e47a38a43e9cbbc586 | 34cd68ebcb2d8c2cacc8c3c5550881b998de969a | /my_site/blog/forms.py | 7370321b58f6c732fc4aa6705a9598d23f9ad1c0 | [] | no_license | kenzli/waterloo-blog | 793bc8873ba544e55863faaaf82227d014c06a18 | 66a7c7897181751332e5a578cb14807d7ac4e8ec | refs/heads/master | 2020-12-14T06:43:02.500688 | 2020-01-18T20:44:16 | 2020-01-18T20:44:16 | 234,671,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
class RegistrationForm(UserCreationForm):
email = forms.EmailField()
first_name = forms.CharField(label='First Name', max_length=50)
last_name = forms.CharField(label='Last Name', ma... | [
"kenn.li.ggl@gmail.com"
] | kenn.li.ggl@gmail.com |
069713aff4aa6e1329cdf6ccd1b28edd3cecf71f | 70f41a06d733e680af3bb1f00d8ff33574f4f4bb | /src/fh_tools/language_test/DeepLearningNotes/Note-2 RNN处理非线性回归/sonnet/examples/rnn_shakespeare.py | f53e8156f989b18659775bba702b787f26b79ac1 | [
"MIT"
] | permissive | mmmaaaggg/RefUtils | 209f7136acc63c880e60974c347e19adc4c7ac2e | f127658e75b5c52b4db105a22176ee0931ceacae | refs/heads/master | 2021-06-11T16:06:06.245275 | 2021-03-10T05:32:14 | 2021-03-10T05:32:14 | 139,413,962 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,434 | py | # Copyright 2017 The Sonnet Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"mmmaaaggg@163.com"
] | mmmaaaggg@163.com |
60b4941d89cf2d18278c8cc3cc21bb76ed4d4ee1 | 2b2350241420638b2ea0e7068648c801e24c908c | /notchlist/notchlistApi/models/cocktail_ingredient.py | 09669015acdc1697a30aa82b052cd8f97505811f | [] | no_license | RockMurdock/Notch-List-API | a2133fd5179fca7901efe5debc2fe62af7a2c12d | 6907992357b08c0c34710dab96fdad1daf183e9d | refs/heads/master | 2023-08-02T09:54:02.883186 | 2020-07-01T05:05:14 | 2020-07-01T05:05:14 | 272,433,980 | 0 | 0 | null | 2021-09-22T19:15:11 | 2020-06-15T12:34:07 | Python | UTF-8 | Python | false | false | 400 | py | from django.db import models
from .cocktail import Cocktail
from .ingredient import Ingredient
class Cocktail_Ingredient(models.Model):
cocktail = models.ForeignKey(Cocktail, on_delete=models.CASCADE)
ingredient = models.ForeignKey(Ingredient, on_delete=models.CASCADE)
class Meta:
verbose_name = ... | [
"warhammer4563@gmail.com"
] | warhammer4563@gmail.com |
4537ab6a765731e146c3aed202b3496d609ec0f6 | cfee5e56465060cec89cb779f8c5196aeae29730 | /bot.py | 221c27e8a8446474a189514afe027fe96170f666 | [] | no_license | r3dinforesearcher/ircbot | 5b43fdb5cb29924858e407fde1feec75a6cd5d5f | 76461457948409225b15ff8631915e0559291201 | refs/heads/master | 2021-01-10T04:47:43.839499 | 2015-10-04T13:48:32 | 2015-10-04T13:48:32 | 43,637,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,072 | py | # Author: r3dinfoguy
# Source code integrated from below mentioned links
# http://wiki.shellium.org/w/Writing_an_IRC_bot_in_Python
# http://www.primalsecurity.net/0xc-python-tutorial-python-malware/
import socket
import getpass
import os
import time
import random
import re
# Set up our commands function
def commands... | [
"r3dinfo.researcher@gmail.com"
] | r3dinfo.researcher@gmail.com |
5577785d91f8ed0b861ba5b46a164fa8802bcbd5 | 951c392e439e4a3576ce3f4469aedae7e4167cd9 | /modules/site_watcher.py | f1bd75fc7a473bce6b4bcf7c6b6e07ea09e27a35 | [] | no_license | DonoA/Thompson-Discord | bfbe524f0b6bd0cc3d565b626a5ed41be1647659 | 7a04497887bbb6355e8ded39e7e0a18a53738598 | refs/heads/master | 2021-01-19T09:35:50.553880 | 2017-04-17T04:34:39 | 2017-04-17T04:34:39 | 87,770,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | from threading import Thread
from splinter import Browser
import discord_bot
class SiteWatch(Thread):
def __init__(self, url, xpath, timeout, total_time, logger, channel):
self.url = url
self.xpath = xpath
self.timeout = timeout
self.total_time = total_time
self.... | [
"me@donovanallen.net"
] | me@donovanallen.net |
49ce8a859130b9c6410b6506e684134bc91d97bb | cadb30d66cfb3352d333ecf131356eb67d602399 | /AstroObject.py | 22a294c6a05df5efc23d9e7acda968fd9011502e | [] | no_license | LoganBenham/SpaceGame | 4ae37f12899c279cd6f5fc591644e6e5492abc88 | 9b4bcd5847c9a48eeaedef48398b9f32c581119e | refs/heads/master | 2021-01-11T15:57:56.467364 | 2017-01-25T00:22:54 | 2017-01-25T00:22:54 | 79,968,509 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,434 | py | from UnitNumber import *
import random as rand
class StationaryObject: # Newtonian object, mainly for centers of galaxies
def __init__(self, mass=UNum(0, suns=1), position=UVector2D(value=UNum(0, ly=1), angle=0.)):
self.mass = mass
if type(position)!=UVector2D:
raise TypeError('Position must be UVector2D')
... | [
"loganbenham0@gmail.com"
] | loganbenham0@gmail.com |
ff4167eca5c1c06c214655bc62f72432e12d13f8 | 35bb03caac708f73497a88c1a81cef6f5f481197 | /WeightofEvidence.py | c0abe497e7fa5ad0a1324be8b3bfe22a68897703 | [] | no_license | aleespa/Equipo-3 | c70c7a3b6458aa0c14571036ea2634895314d7f0 | 5a28b3fde05d3eca6c32570c79dd4b0e054753df | refs/heads/master | 2020-04-06T07:09:05.047232 | 2018-05-16T20:38:35 | 2018-05-16T20:38:35 | 124,180,706 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,844 | py | from __future__ import division
import pandas as pd
import numpy as np
from math import log
class WoE:
def __init__(self, disc=None, cont=None):
self.maps = None
self.disc = disc
self.cont = cont
self.IV = None
def fit(self, Z, y,bins=None):
X = Z.copy()
self.IV =... | [
"aleespazx@gmail.com"
] | aleespazx@gmail.com |
7fa2c95485f833a66f82eeeb2eac977db70d395a | d31d744f62c09cb298022f42bcaf9de03ad9791c | /lingvo/lingvo/core/generic_input_test.py | f9ce2cc34f92681e17e8c56079cff145b69a067b | [
"Apache-2.0"
] | permissive | yuhuofei/TensorFlow-1 | b2085cb5c061aefe97e2e8f324b01d7d8e3f04a0 | 36eb6994d36674604973a06159e73187087f51c6 | refs/heads/master | 2023-02-22T13:57:28.886086 | 2021-01-26T14:18:18 | 2021-01-26T14:18:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,217 | py | # Lint as: python3
# Copyright 2018 The TensorFlow Authors. 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 ... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
683a5c5baaba469274e36b437dc1f159aad7593e | 572f63126e81fd12c3eaa3c9293190a04c4808ba | /text_file.py | 51fdea75a5b60348dd4ef3f7438dde20f6a53f27 | [] | no_license | ibbocus/file_handling | caa32718f41634e71b42a728f26e70fb4582b522 | b4528a886b2c7c8c1b95508eadf35aa4c9c89dfe | refs/heads/master | 2022-11-14T09:37:33.579256 | 2020-07-08T18:00:57 | 2020-07-08T18:00:57 | 278,157,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | class TextFileHandling:
def __init__(self, file_path, text_storage = None):
self.file_path = file_path
self.text_storage = text_storage
# Going to read in two ways and write in two ways
def readtextfile(self):
#open file
#read the file
#close the file
try:
... | [
"ib_bocus@hotmail.com"
] | ib_bocus@hotmail.com |
1d7ed26d68903d80c4ab5c736012326121c90ce6 | 806f10d2b56a3f4b79f3d90e8ac6d0addd96c16a | /pyictacp/record/input.py | 7f6db8cb1e1699fb78cca4f0d4e54ae9c48aea19 | [] | no_license | HexF/pyictacp | 3f41e348d4c84d45876725e092c3967f08328b43 | a742e92dee0f2666c30069aed4427da981cee5fb | refs/heads/main | 2023-08-12T00:10:49.567906 | 2021-10-06T13:26:19 | 2021-10-06T13:26:19 | 412,511,915 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | from pyictacp.connection import Connection
from pyictacp.record import Record
from pyictacp.packet.data import InputStatusDataPacketData
from pyictacp.packet.command import PermanentInputBypassCommandPacket, RemoveInputBypassCommandPacket, RequestInputStatusCommandPacket, TemporaryInputBypassCommandPacket
class Input(... | [
"git@hexf.me"
] | git@hexf.me |
053a6d747f2455a605247829fbc91cd44c08ac2b | 0907a339c27471b1b0da4207229d245eec75c1ca | /src/utils/timeget.py | 3a90bd0d0e5f2f68738ddd3764a34c5b932e0d5a | [
"MIT"
] | permissive | Useems/TrydRPC | 2f142b0d54469229a15abbc794d47183f535a2d1 | f149779ecb147999a339399e85a195f024698eca | refs/heads/main | 2023-04-17T04:48:53.028499 | 2021-04-24T14:34:42 | 2021-04-24T14:34:42 | 341,267,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | timeOrder = ["acabou de abrir a plataforma", "há {0} minutos", "há {0} horas", "há {0} dias"]
def getTime(time):
global timeOrder
diff = (datetime.now() - time).total_seconds()
index = 0
for i in [60, 60, 24]:
if diff >= i and index + 1 < len(timeOrder):
diff = diff/i
... | [
"marcos@outlook.in"
] | marcos@outlook.in |
0158367327597b0ac63d733ad9deb79ba2213d1e | 7c1a0ee337c4407768c343518ebee7f8a1b540ef | /env/lib/python3.6/sre_constants.py | 91beca82ad32721c6b411f90126001a8780c8fc3 | [] | no_license | spmarisa/flask_demo | 8dcce02b43664da0b6afe97975e70a675425e22f | e5be66cfe1ebddc130875fb9fddc294d81085a0e | refs/heads/master | 2020-03-23T19:58:39.017626 | 2018-07-23T12:51:14 | 2018-07-23T12:51:14 | 142,013,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | /home/phaneendra/anaconda3/lib/python3.6/sre_constants.py | [
"phaneendra.marisa@gmail.com"
] | phaneendra.marisa@gmail.com |
00659e30f98681b77ccbae801214198d8020a229 | 6e08e7057b4e8ac04aa031cea19518ff6e479b62 | /TSIS1-informatics/3752-1.py | 207dbbd58d826b5a32392cb98a6f035b6834dc5a | [] | no_license | Arujazzz/Python | 1e313cab12f11e506844e969d5e5072635cfd27c | 1ea44e9bdc830f60bf627958c2a5defad54af823 | refs/heads/main | 2023-05-02T23:39:28.053098 | 2021-05-20T05:56:15 | 2021-05-20T05:56:15 | 369,092,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | s = list(map(int, input().split()))
nset = set()
for i in s:
print('YES') if i in nset else print('NO')
nset.add(i) | [
"noreply@github.com"
] | noreply@github.com |
71766bce5bf64747b94fe0451bda8719bec805b1 | edf354a966b107d784580591ea6d649e9e513378 | /django_chuck_conf.py | 582494f8fbd5b652d1186c41241e9ca170258e1c | [
"BSD-2-Clause"
] | permissive | cambieri/django-chuck | bc57da06c2892c082876e3ad15fdd10f23d9bfc8 | 43980e054c450038e5143d1b08edbcb0b331369f | refs/heads/master | 2020-12-25T12:07:54.365015 | 2013-06-24T11:33:49 | 2013-06-24T11:33:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # Where to put virtualenvs?
virtualenv_basedir="/home/workspace-django/virtualenvs"
# Where to put project dirs?
project_basedir="/home/workspace-django/projects"
# Comma seperated list of dirs where Chuck should look for modules.
# . will be replaced with the Django Chuck modules dir
#module_basedirs = ["."]
module_... | [
"oscar@cambieri.it"
] | oscar@cambieri.it |
e6336016dcbe4e89b2a155b8b3de83bb815764d9 | 8b553f336d01a28c6e84d7c864963775073b892c | /perceptron.py | 95d698ae73dcc818c55c0acf75b6e0342af2b31f | [] | no_license | wangshuaibupt/rock-climbing-cnn | c3e8fad4e97104c2492ba4fe59cbbad35ec2e8f6 | aab26eb4fe16fe5ca1568efbd4d636aaf726a635 | refs/heads/master | 2022-12-05T22:22:15.362925 | 2020-07-26T13:58:38 | 2020-07-26T13:58:38 | 282,428,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,885 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
################################################################################
#
# Copyright (c) 2020 wangshuaibupt. All Rights Reserved
#
################################################################################
"""
perceptron.py
感知机
Authors: wangshuaibupt(wangsh... | [
"wangshuaibupt@126.com"
] | wangshuaibupt@126.com |
3c614fad0d1969fd449d602b813487baaeec15fc | b39530cc6370acf017f8136ae2888bceaff412e1 | /TangoProject/wsgi.py | a20a940848b4cac39d94378de2e9301542b014f9 | [] | no_license | smallcrustation/TangoProject | 375a328dd664121d32e94ea7417cd7453e6c7b87 | 5969f97af69971665ef95a46856252931ad4ee0b | refs/heads/master | 2022-12-14T09:47:16.632714 | 2019-12-10T19:42:29 | 2019-12-10T20:15:59 | 70,802,056 | 0 | 0 | null | 2022-11-22T01:18:38 | 2016-10-13T12:01:16 | Python | UTF-8 | Python | false | false | 1,146 | py | """
WSGI config for TangoProject project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATI... | [
"lpmaze@gmail.com"
] | lpmaze@gmail.com |
eae2af2918fa99c6dbb9f80d51f087a4a62e8429 | d0581b344128cf838c9e7912bf922f8e2d37f2b3 | /08-Functions/01-BasicFunctions.py | 2db751135f260de39c5b4f10cfeb22dd5581938f | [] | no_license | ravi4all/PythonFeb_9-30 | fe60d240db3e0922332072ee3ae74cea7fab29ef | 8c660e826328c411ec7dd91564ee457e9c758aa5 | refs/heads/master | 2021-05-03T08:34:59.428138 | 2018-03-24T11:38:11 | 2018-03-24T11:38:11 | 120,567,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | x = 12
y = 13
def add():
## x = 12
## y = 13
z = x + y
print("Sum is",z)
def sub():
## x = 12
## y = 13
z = x - y if x > y else y - x
print("Difference is",z)
def mul():
## x = 12
## y = 13
z = x * y
print("Multiplication is",z)
def div():
## x = 12... | [
"noreply@github.com"
] | noreply@github.com |
3e15473e0ceef6ee8b0f3a681787454452ed8b62 | 39beeca8b6862adfb7f1a55b9f5308b20cd64395 | /delivery_history/models/__init__.py | 89a0441e27055814dfc92edc0722e69a16f1c3a6 | [] | no_license | Ibrahimmardini/texmar | 98c34469618b72648686c3252b6053f1dd07e9a0 | d31416df8feb87b93d757b1451be5f870d3ca867 | refs/heads/master | 2023-08-15T20:20:57.520164 | 2021-02-02T12:02:17 | 2021-02-02T12:02:17 | 255,095,450 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | # -*- coding: utf-8 -*-
from . import sale_order_line_changes
from . import sale_delivery_date_history | [
"ahmed.salama1679@gmail.com"
] | ahmed.salama1679@gmail.com |
6afe39dc1e07f76c1385e9d30b2ae28b9529fbab | 738f2cb3642da73eb8aa2c617f2ae006279c96dc | /五期周末作业/start.py | d692f71898ae296f0668bda0e980d289f61e7f10 | [] | no_license | betakenname/used_modules_homework | 4c0a08b3a37da1fd8b49ee3f68c28de956047eb5 | 81814ede5fd5b48903cc5e9e7f8a91ce907f4e14 | refs/heads/master | 2020-04-10T16:12:35.273402 | 2018-12-07T09:42:02 | 2018-12-07T09:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import os,sys
sys.path.append(os.path.dirname(__file__))
import core
if __name__ == '__main__':
#功能字典
funcs = {"1":core.login,"2":core.register}
while True:
print("""
1.登录
2.注册
""")
res = input("请选择功能(q退出):")
if res == "q": # 输入q则退出
print("再见!"... | [
"1050646028@qq.com"
] | 1050646028@qq.com |
e9cf1f988cf4a51913aa29d3fd87ab9904ae843e | 49db7f622d670f08be3f48b12e40dd6e76898af2 | /readstdout.py | 2412c331f88adaeadbcfbdfefb41b30e87632b09 | [] | no_license | PlutusApp/MachineLearning | 65da8f9a37fdf5014dc889f0bc3da38602422213 | 3c310266b4916f315c0eca9c2317b28c028c6dcf | refs/heads/master | 2021-01-24T18:58:13.026393 | 2017-03-26T15:50:06 | 2017-03-26T15:50:06 | 86,162,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | import subprocess
proc = subprocess.Popen(['python3','productList.py'],stdout=subprocess.PIPE)
while True:
line = proc.stdout.readline()
if line != b'':
#the real code does filtering here
print("test:",line.rstrip())
else:
break
| [
"amyat@purdue.edu"
] | amyat@purdue.edu |
d64ad6136478df14a748d71546ab31ce4efffa36 | 863c77a136ed5383bd4dc9240ef91fd06bb2037c | /app/__init__.py | 91596db6e6d34c7aa3a48ad27cd59798436b6cdf | [] | no_license | VianneyMI/morpion | 2b84863a80ae609330545336460e44e410557b53 | 5a4a13a137c68ea32eb12410d42d5828e3c1e291 | refs/heads/master | 2023-04-11T19:14:00.641608 | 2021-05-16T20:46:36 | 2021-05-16T20:46:36 | 367,982,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | import connexion
from app import extensions
def create_app():
# Setup connexion
connexion_app = connexion.FlaskApp(__name__)
connexion_app.add_api('api.yaml')
flask_app = connexion_app.app
# Flask setup
extensions.init_app(flask_app)
# Database setup
extensions.create_db(flask_app)... | [
"vianney.mixtur@outlook.fr"
] | vianney.mixtur@outlook.fr |
abe34e472f3eaa6b544688f444409cdee257634c | fbfcccbbf045c271ce6156113c14c40abf3cbeb6 | /homework/casadi_gen.py | c32efd0dcf40e2b578e66fc7a2a5645aa38b0004 | [
"BSD-3-Clause"
] | permissive | jmpark418/aae497-f19 | e6e4182e5068976ccb398bb0bda5c3586ba1cdb1 | adca263c4c553dc3afe634fde390fe8dfefb5fe3 | refs/heads/master | 2020-07-08T12:27:39.662266 | 2019-10-31T01:11:00 | 2019-10-31T01:11:00 | 203,671,932 | 0 | 0 | null | 2019-08-21T22:14:45 | 2019-08-21T22:14:44 | null | UTF-8 | Python | false | false | 239 | py | import casadi as ca
x = ca.SX.sym('x')
y = 2*x
f = ca.Function('double_this', [x], [y], ['x'], ['y'])
gen = ca.CodeGenerator('casadi_gen.c', {'main': False, 'mex': False, 'with_header': True, 'with_mem': True})
gen.add(f)
gen.generate()
| [
"park843@purdue.edu"
] | park843@purdue.edu |
2f78fce0ae82499ddc9b90df99fdd48b92a01f86 | 6d80ce7a1f44ddf5741fd190ddfe0d9be8e5f162 | /model/detection_model/maskscoring_rcnn/demo/webcam.py | b4176584dda2025fc3284894978afd67f5f831c9 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dun933/FudanOCR | dd8830ca4b8ebb08acd31326fcf5aa3c961886a0 | fd79b679044ea23fd9eb30691453ed0805d2e98b | refs/heads/master | 2021-04-03T19:50:47.646099 | 2020-03-16T08:43:59 | 2020-03-16T08:43:59 | 248,391,401 | 1 | 0 | MIT | 2020-03-19T02:23:11 | 2020-03-19T02:23:10 | null | UTF-8 | Python | false | false | 2,705 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import argparse
import cv2
from maskrcnn_benchmark.config import cfg
from predictor import COCODemo
import time
def main():
parser = argparse.ArgumentParser(description="PyTorch Object Detection Webcam Demo")
parser.add_argument(
... | [
"s110h0716i@qq.com"
] | s110h0716i@qq.com |
7ece072e393552c38e72e4d6a0bb231595d98128 | 6a6984544a4782e131510a81ed32cc0c545ab89c | /src/trigger-sim/resources/scripts/print_trigger_configuration.py | 0b21c3f90486a4f57234d8f37117ef7f27cd4609 | [] | no_license | wardVD/IceSimV05 | f342c035c900c0555fb301a501059c37057b5269 | 6ade23a2fd990694df4e81bed91f8d1fa1287d1f | refs/heads/master | 2020-11-27T21:41:05.707538 | 2016-09-02T09:45:50 | 2016-09-02T09:45:50 | 67,210,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | #!/usr/bin/env python
from optparse import OptionParser
usage = """ %prog -g [GCD file]
This script pulls the trigger configuration
information from the input GCD file.
"""
parser = OptionParser(usage=usage)
parser.add_option("-g","--gcd",
dest="GCD_FILENAME",
help="Name of the ... | [
"wardvandriessche@gmail.com"
] | wardvandriessche@gmail.com |
50214a889c1615e1112e87bcafae8b641515c699 | 864d9402cc77f97ab8c015fa0557667a567785f4 | /assign5.1.py | 4d54afcdca802e3fad42c69d6c3e1763bd9c591d | [] | no_license | fkxodls/python | 6068e453c132a83468960175b9d100c13370db4c | 89200102f4bb60e35ecfc60aec6fb8674fd0a838 | refs/heads/master | 2020-07-21T15:53:04.895707 | 2019-12-07T06:23:38 | 2019-12-07T06:23:38 | 206,913,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | lnum = None
snum = None
while True:
num = input("enter a number ")
if num == 'done':
break
try:
num = int(num)
except:
print('invalid value')
continue
if lnum == None:
lnum = num
snum = num
elif num > lnum:
lnum = num
elif ... | [
"47289970+fkxodls@users.noreply.github.com"
] | 47289970+fkxodls@users.noreply.github.com |
6ed89e3db6fe588de88fde566e4c388509b50cbe | 68be706be391fce3667bbcb9ebb9a7298196149c | /setup.py | 82768fc5110675b35f69199e0a4fdab3425ee5ae | [] | no_license | chaoflow/example.packagerepo | 764ecaa46f59f756b758b2b60debe41be1c3d2f7 | 657a39ba5ee1229046dedf208c879333f01c9439 | refs/heads/master | 2021-01-22T19:44:57.367420 | 2009-10-29T02:02:48 | 2009-10-29T02:02:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | from setuptools import setup
name = 'example.packagerepo'
version = 0.1
# get packages from the package name: '1.2.3' -> ['1','1.2','1.2.3']
packages = [name.rsplit('.',x)[0] for x in reversed(range(len(name.split('.'))))]
setup(name=name,
version=version,
description="Example package repository, containing ... | [
"flo@chaoflow.net"
] | flo@chaoflow.net |
cf9dad94cae2dbc0f9a4b994ff370ceeb7fc8021 | 346e3729151491493c6a61f958ba9ddd8028c3aa | /ICDARRecTs_task2/ICDARRecTs_2Train.py | 69d40541eea710ccab4318a9cca5b000304e1702 | [] | no_license | ResearchingDexter/ICDAR2019RecTS | 16687db52b38efcdd44083e8235c2a276c19276c | 274978435455671dc22ca18e4d9b1ec8b8bb80e9 | refs/heads/master | 2020-05-16T08:35:41.612158 | 2019-08-31T13:22:14 | 2019-08-31T13:22:14 | 182,917,144 | 11 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,686 | py | import torch
from torch.autograd import Variable
from datetime import datetime
from torch.utils.data import DataLoader
from torch.nn import CTCLoss
from torch.optim import Adam,Adadelta
import json
from torchvision import transforms
from IPython.display import clear_output
from ICDARRecTs_2DataSet import ICDARRecTs_2Da... | [
"yingsunwangjian@gmail.com"
] | yingsunwangjian@gmail.com |
b57f96130b2ac339bfe0abfe7a141f41ec8080a2 | c122dcd3eedccfbdd3e087076fb67dc7cfc77282 | /seg_models/models/deeplab.py | 5adaaf909a1935faa8963032b4dc4f92c8b6eb67 | [
"MIT"
] | permissive | daniel-zeng/SegSort | 4bba641ce4ce376ad9e9fff05b561fc868637132 | 7a50e6253df23a7719f962b34acff2626c916354 | refs/heads/master | 2023-06-29T18:43:47.981883 | 2021-08-01T20:11:41 | 2021-08-01T20:11:41 | 298,406,985 | 0 | 0 | MIT | 2020-09-24T22:15:55 | 2020-09-24T22:15:55 | null | UTF-8 | Python | false | false | 3,398 | py | import tensorflow as tf
from network.common.resnet_v1 import resnet_v1_101
import network.common.layers as nn
def _deeplab_builder(x,
name,
cnn_fn,
num_classes,
is_training,
use_global_status,
... | [
"jyhjinghwang@gmail.com"
] | jyhjinghwang@gmail.com |
797b90c5844bc3a338d7aeb8c53eab43e5b3da5c | 5ae650f569d9929140dd61f86b7dd69187125dde | /resorce/page_costome.py | 5040f298ce9c004ce29c16205f2c44dd7e90b2df | [] | no_license | liuxingyuxx/LXY | 17bc641b9ff029cab2fd313ea908a47ecfdb5c6f | c43e3a78ab99a8f5923d0e3d4eb6d9ccba2ffaad | refs/heads/master | 2020-03-19T07:34:16.058725 | 2018-06-05T05:40:23 | 2018-06-05T05:40:23 | 135,989,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | #--*-- coding:utf-8 --*--
'''
在学老男孩python全栈开发时写的,用于自制的分页功能
'''
class PageInfo(object):
def __init__(self, current_page,all_data_num, per_page_num):
try:
self.current_page = int(current_page)
except:
self.current_page = 1
self.per_page_num = per_page_num
se... | [
"typefj@gmail.com"
] | typefj@gmail.com |
9355c2e7458a18116cb2e9ed51a955260f7fbaaa | 81d9e83bbcfcd98836f6df6f0aba89a55c5c9adf | /store/migrations/0005_auto_20201108_0234.py | 821ffead7487267c75d149cbb33334dcb7029034 | [] | no_license | AnikaTahsin06/PeriwinkleRose | 3405b47391d9544a67f940df9231753aeae52167 | f4bf1c98b0645243aa45a45d4c5d1f66fe9cab37 | refs/heads/main | 2023-02-03T23:48:06.205837 | 2020-12-27T18:52:48 | 2020-12-27T18:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # Generated by Django 3.1.2 on 2020-11-07 20:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('store', '0004_auto_20201107_0258'),
]
operations = [
migrations.RenameField(
model_name='customer',
old_name='lasr_name',
... | [
"bushratahsin653@gmail.com"
] | bushratahsin653@gmail.com |
b852e1a665b8052d9d91c5710556b67df67ddb7f | fa2a2cd5e0089f216a0df15defa6a3abf09be083 | /mlp/prediction/debug_utils.py | 1c3a160e8b47a734001f3605c4b5c60e87a5b303 | [] | no_license | dominikheinisch/neural_network | d2a925ea77ea13090da9c89da439541438be09ec | 4705f9c74fdfc33757f7e9e9d5ea5ad2d97aaaa6 | refs/heads/master | 2020-08-08T06:55:39.349768 | 2019-11-27T19:08:38 | 2019-11-27T19:08:38 | 213,767,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,708 | py | import numpy as np
from loader.loader import load
from loader.mnist_loader import load_data_wrapper
from saver.saver import save
# from prediction.network import calc_prediction_accuracy
from prediction.activation_function import SIGMOID, RELU
from utils.timer import elapsed_timer
# def print_result(filename, test_da... | [
"dominikheinisch2@gmail.com"
] | dominikheinisch2@gmail.com |
ab4e452b493ea04924e42fbd382980755e7f27c5 | 7bcd811a6e575f2bbc658510c7c64e3cf78a0aa5 | /ui/settingsitems/numbox.py | b06982684d73f627efbf43fc5568b57a56d6b379 | [] | no_license | alang321/Shellmania | 1e32ae2ae36767b842ad2f3a03021628dd989e10 | fc489ffda77cec2c1e0376e481b1cf3907eaf472 | refs/heads/master | 2023-01-24T11:49:22.354544 | 2020-12-08T22:58:57 | 2020-12-08T22:58:57 | 268,876,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,432 | py | import pygame
class numbox:
def __init__(self, keydict, key, isint, hasfocus, font, pos, w, h, bordercolor, bordercolorhover, backgroundcoloractive, backgroundcolorinactive, minvalue, maxvalue, lostfocusfunction, textcolor=pygame.color.THECOLORS["black"], maxtextlength=5):
self.isint = isint
if sel... | [
"34992832+alang321@users.noreply.github.com"
] | 34992832+alang321@users.noreply.github.com |
fc9fee71cf034ce62cc202be2f52f1ff8a766382 | 7fe646e7d425bc3e1e0f2bac03c4df0f33dcf4ec | /chamado/apps.py | 73571d3c357d5521e84ff34963e3d71378a5a17c | [] | no_license | equeirozdenoronha/tickets | d77d13da08cf2f96ef6d6d2a28c8919719981b69 | 560b0f3dce2e2058b6875ba5f93ef175ab7afcb7 | refs/heads/master | 2022-12-11T19:05:18.367194 | 2018-04-22T19:25:19 | 2018-04-22T19:25:19 | 130,600,070 | 1 | 0 | null | 2022-12-07T23:51:09 | 2018-04-22T19:22:27 | Python | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class ChamadoConfig(AppConfig):
name = 'chamado'
| [
"equeirozdenoronha@gmail.com"
] | equeirozdenoronha@gmail.com |
9281930d21b644e11996b40a59b910ca73f0d356 | d4b701776eb649dc28e9c892fd83a8d3f1351fb4 | /schooltogether/wsgi.py | c3d02c316fac0e2b7ff33bff0edac25885de46c4 | [] | no_license | jouanneaur/Projet-Applicatif | 4d7788ef45d500ff33c221e4d397f41da2469cb8 | d8b6f3575d1f7027142e02d4229f3bae5482252d | refs/heads/master | 2020-08-11T22:10:35.371909 | 2020-01-20T17:37:00 | 2020-01-20T17:37:00 | 214,637,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | """
WSGI config for schooltogether 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setd... | [
"noreply@github.com"
] | noreply@github.com |
a2ab682b9768d771d61598f9a4775200e11716dd | e520ddd5000de801d670b28132b7bee2c6925ffa | /estudo_portatil/views/correctionViewSet.py | 40bee06bc72b6b119e4c528ffde3653924ef363d | [] | no_license | salvachz/estudoPortatil | 7fba16b4b5555c402e29784ffa4d2d35abc0b199 | 74e285541f6f4b99dc8b09a4d6460a9784b6a3aa | refs/heads/master | 2020-06-19T17:38:04.004987 | 2017-04-14T01:50:16 | 2017-04-14T01:50:16 | 74,843,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | from rest_framework.response import Response
from rest_framework import authentication, permissions, viewsets
from rest_framework.authentication import SessionAuthentication, BasicAuthentication
from django.utils import timezone
from estudo_portatil.models import UserProfile, Correction, Wording, CorrectionItem
from es... | [
"salvachz@gmail.com"
] | salvachz@gmail.com |
ea9c40dce4b1d666e29be1c4368b84744ddb28b7 | dbbcc80f4468db1d08d8e44dcb02b086fe2debfe | /manage.py | b8c9ad11decd1e19114c6a4ce32283abb95a5afb | [] | no_license | drsherlock/movienalyse | ee2b04b5f2b6a35e1496681720c191f4430585c8 | 1f1d01858bcd590f29cbb817aa31d0295ea20afe | refs/heads/master | 2021-01-10T12:21:19.010722 | 2016-03-15T17:41:58 | 2016-03-15T17:41:58 | 50,301,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "movienalyse.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"zain.delhi27@hotmail.com"
] | zain.delhi27@hotmail.com |
d90002bacce97e271e447cada97bfd8130957162 | c3367f9919cfc13702224ba248d72030e477f872 | /drift correction.py | 1650a05b9166edf1baecdaeeed6d42185a7e44a9 | [] | no_license | jaianthv/Nanoparticles_py | a88d9db9288c3721da014389148a2d96be6c19e2 | 5b2e5ac730e572e0375f5aa32dbdeb82b686b316 | refs/heads/main | 2023-04-25T11:14:26.534222 | 2021-05-17T16:18:27 | 2021-05-17T16:18:27 | 368,249,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | import peempy.imageproc as imp
import matplotlib.pyplot as plt
from skimage.data import astronaut
from skimage.color import rgb2grey
from scipy.ndimage import shift
import numpy as np
# n images
n_images = 20
base_img = rgb2grey(astronaut())
print (np.shape(base_img))
# Generate randomised shift vectors
ra... | [
"noreply@github.com"
] | noreply@github.com |
e324c70afaed5d9a592520cfd6f9d8ce868489b1 | e1e08ca2df1caadc30b5b62263fa1e769d4904d8 | /stream/models/utils.py | ee41104f14bd821b66dd2e63eaca0fbc99d93663 | [
"LicenseRef-scancode-public-domain"
] | permissive | tiench189/ClassbookStore | 509cedad5cc4109b8fb126ad59e25b922dfae6be | 4fff9bc6119d9ec922861cbecf23a3f676551485 | refs/heads/master | 2020-12-02T07:48:26.575023 | 2017-07-10T02:45:09 | 2017-07-10T02:45:09 | 96,728,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,077 | py | #@author: hant
# Those functions are inserted in many service.
from datetime import *
from contrib.pbkdf2 import *
import os
import sys
import traceback
import usercp
import fs.path
import StringIO
import urllib2
sys.path.append('/home/pylibs/pdflib')
ERR_TIME_OUT = CB_0011
ERR_TOKEN = CB_0012
SUCCES = CB_0000
db_RQ... | [
"caotien189@gmail.com"
] | caotien189@gmail.com |
304196f5503465038ec51dcf77bc133495327bf5 | 08f1cd2ba1f5c441c609e44219148b49ecc27f97 | /商城优惠券系统.py | 20a6a0aeb071370db93b448316aa421465a1178b | [] | no_license | 919074006/first | fe05537ff4506fb3dcfa7b4b19b05fe282afdc26 | 8baee6b072c4ada8cb02d1d24b0af3f32cf16a51 | refs/heads/master | 2023-06-15T05:00:36.012607 | 2021-06-09T06:16:46 | 2021-06-09T06:16:46 | 373,369,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | py | shop=[
["联想电脑",6000],
["Iphone 16x plus",15000],
["PS5游戏机",3500],
["老干妈",7.5],
["老于妈",5.5],
["卫龙辣条",10],
["HUA WEI watch",1200],
["MAC PC",15000]
]
coupon=[
["联想电脑",6000],
["卫龙辣条",10]
]
mycart=[]
salary=input("请输入您的余额:")
salary=int(salary)
M=salary
import random... | [
"noreply@github.com"
] | noreply@github.com |
ac1ec3210e1bc44987c279340c27129430ee2fad | 8fd472f7f5e7c8868fbda91ef9bff4d9fb53823c | /bjoj_2446.py | 8e69870ea3cfbcf98943aa50fb7e3841cee01220 | [] | no_license | basekim14/BJOJ_py | 13810537bda4663e59e00cf0398468dd1366cb46 | 986f8394f9883f64f31961ba68f9639636ccd17f | refs/heads/master | 2023-07-18T16:10:13.467785 | 2021-09-19T14:07:44 | 2021-09-19T14:07:44 | 270,268,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | """
ㄱㄱㅊ <basekim14@gmail.com>, 20-06-18
Baekjoon Online Judge Study - 2446(print * - 9)
"""
from sys import stdin
N = int(stdin.readline())
for i in range(N):
print(" " * i + "*" * (2 * (N-i) - 1))
for i in range(N-1, 0, -1):
print(" " * (i-1) + "*" * (2 * (N-i+1) - 1))
| [
"basekim14@gmail.com"
] | basekim14@gmail.com |
3834aad9ce09ccfbb6453c057e638122965eb47e | 0c9e39df287b55bb5088ed95df88d8a14cfdf381 | /test.py | 618fd02249f0b31002869d3a6c48d6e5b5f1c292 | [
"Apache-2.0",
"CC0-1.0"
] | permissive | afcarl/accelerator-gzutil | 9e599d0313dbe4c96539a0b1ea8eec65aaf60801 | 7ea2b9ca48bcdd1c395b4eb3649a075e99bb463f | refs/heads/master | 2020-03-18T07:19:29.281153 | 2018-04-20T20:37:15 | 2018-04-20T20:37:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,496 | py | #!/usr/bin/env python
############################################################################
# #
# Copyright (c) 2017 eBay Inc. #
# ... | [
"bearded@longhaired.org"
] | bearded@longhaired.org |
235cf824591304d36567de455c94e8ee24396e90 | ee51d8f7180ee75bc3c2e84872ae60bc8edeacd1 | /evalfun.py | 8bd5a20a411c235d970c903800dd91d9de35a719 | [] | no_license | cboin1996/Chesster | d2a822936aad2fca6355fd0e66be5930c11e35ad | c7dfdc9bcbfcc69bef9856d94cb08d7ac8810101 | refs/heads/master | 2022-03-01T17:24:21.342397 | 2021-09-15T13:08:09 | 2021-09-15T13:08:09 | 244,189,301 | 2 | 0 | null | 2022-02-09T23:43:42 | 2020-03-01T17:05:15 | Python | UTF-8 | Python | false | false | 567 | py | import math
import random
import itertools
import os
import chess
def start(config: Config):
return EvaluateWorker(config).start()
"""
^ creates a new function to start the evaluation function.
This "Config" is from the utils package which may need to be downloaded
using pip install. If this doe... | [
"pnguyeddk@gmail.com"
] | pnguyeddk@gmail.com |
ecb83b8c2c02fcc3dd01c5da3e6b777228dae06e | 32c0c21fc97cb2429b92a488663a34dddf360008 | /src/resources/api.py | 5be37f581e69a59d8f0aaf0c603d502ca1881402 | [] | no_license | fuse-sujan/Basic-Flask-Setup | 5a2038317668ec604e3b90fb90d9a14950defd96 | 32b7f2c7ed180a0a450da44ee242871d7648c587 | refs/heads/master | 2021-06-27T18:08:49.813756 | 2019-12-04T09:48:09 | 2019-12-04T09:48:09 | 223,720,475 | 0 | 0 | null | 2021-03-20T02:22:18 | 2019-11-24T09:31:05 | Python | UTF-8 | Python | false | false | 109 | py | from flask_restplus import Api
api = Api(version='1.0', title='Todo API', description='A simple Todo App')
| [
"sujan.shrestha@fusemachines.com"
] | sujan.shrestha@fusemachines.com |
3eb0594982efc90f12c71373cf28806e98a9a2c1 | f9bb9466f575166c578167f7fff0c3a210ab409a | /settings/base.py | 8acd839dcba05e11c4831b3b7f1021f66026ad21 | [
"MIT"
] | permissive | jameelhamdan/mlfaati | 77edaa4230298f8807029c446d61643b68ae69ae | 12c0dcbe0389c2c1da0bde80509fb3374955e293 | refs/heads/master | 2023-04-20T12:32:17.811344 | 2021-05-23T13:45:10 | 2021-05-23T13:45:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,699 | py | import os
import dj_database_url
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
# SECURIT... | [
"jameelhamdan99@yahoo.com"
] | jameelhamdan99@yahoo.com |
a38096882f016407f2967c5cc1d40ac61dadb377 | 83ad61aee2c828978a8e4a5db5c4e8a6bf7574c6 | /setup.py | af15176d6fdba12593d114f09124549cfe1f8e78 | [
"Apache-2.0"
] | permissive | zengchen1024/mindinsight | 24b2877af1cc32da5f3cfab8af36c26416b8dcd5 | 228a448b46707e889efc1fb23502158e27ab56ca | refs/heads/master | 2021-05-19T05:16:26.548635 | 2020-03-30T12:01:47 | 2020-03-30T12:01:47 | 251,543,681 | 0 | 0 | Apache-2.0 | 2020-03-31T08:30:33 | 2020-03-31T08:30:32 | null | UTF-8 | Python | false | false | 5,606 | py | # Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | [
"gaocongli@huawei.com"
] | gaocongli@huawei.com |
ac80b72867b0693300017bf2be9315b5d866cc98 | aafdea5ae489a951818851610f1096bd6ba6c2e0 | /Symphony/exitpnl.py | 28d1f9702ee60d320c2f3ae62a587ce2eb4a7731 | [] | no_license | ChetanKoranga/RMS_Trade | 5edd8b673e2654b9d6e147d376601911f9f4fb8b | 6aadd005463bda87549a359af0455af0480c6274 | refs/heads/master | 2022-11-18T23:17:51.606122 | 2020-07-20T14:53:51 | 2020-07-20T14:53:51 | 232,064,690 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,589 | py | from pymongo import MongoClient
import datetime
from time import sleep
date = datetime.date.today()
new_collec = f'finalpnl_{date}'
try:
client = MongoClient()
db = client['newTotalPnl']
collec = f'newTotalPnl_{date}'
db.create_collection(collec)
print(f"created new collection '{co... | [
"chetankoranga3@gmail.com"
] | chetankoranga3@gmail.com |
2239f04929b2dc1222a6a620b16e4b17090d4853 | 79b7e662e9010f7675e0c2406e4eb5105fa864cf | /weatherApp/weather.py | f677bd2d19de6f0d8787426a512a56caf39d7ea3 | [] | no_license | kav98/cloud2 | 7bd27cac7e2dbe794cfcbb90ccd4ce73257f1759 | 1d59a564a3d93c0726e1d5329328b4e13ee261b9 | refs/heads/main | 2023-03-07T11:22:06.735152 | 2021-03-01T20:32:05 | 2021-03-01T20:32:05 | 340,958,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | from datetime import datetime
import os
import pytz
import requests
import math
API_KEY = '2447efb69513604bd845ca8e0a73fb81'
API_URL = ('http://api.openweathermap.org/data/2.5/weather?q={}&mode=json&units=metric&appid={}')
def query_api(city):
try:
print(API_URL.format(city, API_KEY))
data = reque... | [
"kavya.raman@ontariotechu.net"
] | kavya.raman@ontariotechu.net |
995fe38e4e3c1c437b481edebf11ccf292bc0490 | 9626164f8c550cf1529fe4909494defa114218be | /news_ie/views.py | 7a6d1eb8156ba8f284fa9f6e9875e44c99b12208 | [] | no_license | Anmeet/News-Information-Extraction-and-Visualization | 85e2f1bbf9e924f1ca9e3ba5319e9d424d1c63a0 | 34a48458df0126928fdf5f52ae63ef181ecdb492 | refs/heads/master | 2021-07-03T09:28:04.647042 | 2020-02-23T01:06:02 | 2020-02-23T01:06:02 | 242,434,860 | 0 | 0 | null | 2021-06-10T22:36:01 | 2020-02-23T00:57:04 | Python | UTF-8 | Python | false | false | 8,805 | py | import datetime
import string
import sys
from django.contrib.gis.geos import GEOSGeometry, Point, fromstr
from django.http import HttpResponse
from django.shortcuts import render
from world.models import WayPoint
from .extraction.getdate import extract_date
from .extraction.getday import get_day
from .extraction.get... | [
"anmeet619@gmail.com"
] | anmeet619@gmail.com |
bce010e018cf7d38188930cbfbdc14ff095e91d4 | 11eea5de39fcdb28ee928c252c93eadd82cc19d6 | /robotics/build/robot_description/catkin_generated/pkg.installspace.context.pc.py | 19d0f2067ceba31d43929362359cb61e2647b4ef | [] | no_license | eandualem/Robotics-Final-Project | f5df467ca0f9892921b5506f830f6f4715fd1b1e | f6ca90dfd5dcf945c61758a779d5a1f4af5ac5c2 | refs/heads/master | 2020-12-24T03:58:48.423089 | 2020-01-31T08:06:56 | 2020-01-31T08:06:56 | 237,374,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "robot_description"
PROJECT_SPACE_DIR ... | [
"eandualem@gmail.com"
] | eandualem@gmail.com |
2594c37f8a6e7f0892fb7ed620e30d9339c1c69e | e4e44097320d056f3768eb3a53f28f4c19cdc7ce | /recoverTree.py | b06eb61e5a0f4c3bae3d675badf8f4208cced976 | [] | no_license | amisyy/leetcode | 0640e009c02956778f402eb89b74c98c36882d44 | ba8ab343a246aa3eead75a23dc69b5a76680d290 | refs/heads/master | 2021-06-03T06:27:38.216035 | 2020-11-08T06:59:40 | 2020-11-08T06:59:40 | 103,757,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def recoverTree(self, root):
"""
:type root: TreeNode
:rtype: void Do not return anything, modify root ... | [
"amisyy@sina.cn"
] | amisyy@sina.cn |
2478f96af98a0a8eb5353f436c45ba8ffa79ba4f | f3d86b5f622a407dc30233c4a609a410dc048920 | /profile_app/urls.py | b06c6239840a4fbe76df0861ae2695880bb6fbcb | [] | no_license | KozlovKV/django-votings | 1adb350919ea1ff0a3bb4f450cf6a43fe7b779e8 | 9d917c9c4d8719ae6ce326a46cc6bb6a5e837414 | refs/heads/master | 2023-03-02T02:43:17.414803 | 2021-02-08T17:48:06 | 2021-02-08T17:48:06 | 337,081,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | from django.contrib.auth import views
from django.urls import path
import profile_app.view_subclasses as reg_subclasses
import menu_app.view_subclasses as menu_subclasses
urlpatterns = [
path('login/', reg_subclasses.LoginViewDetailed.as_view(), name='login'),
path('logout/', views.LogoutView.as_view(), name... | [
"kozlov.kirill.v.work@gmail.com"
] | kozlov.kirill.v.work@gmail.com |
d5986cb730eac15b8464e6d259d06074a79643ef | 0b0a947c10038152fc56efbdde13eef3330adb34 | /hackerrank-problem-solving-solutions/39. Find Angle MBC.py | c17a91d5e4e612e6dddf54c97dc3dfea98b81da3 | [] | no_license | swapnanildutta/Python-programs | 9c382eb8c823571e4f098fff263d126665fbc575 | d47e2e3c4d648e0cc0ae1b89b83ce4f99db89f63 | refs/heads/master | 2021-11-18T22:16:57.276910 | 2021-09-04T13:07:36 | 2021-09-04T13:07:36 | 197,773,723 | 1 | 26 | null | 2023-04-09T10:51:57 | 2019-07-19T13:02:26 | Python | UTF-8 | Python | false | false | 307 | py | # Author Aman Shekhar
import math
ab = float(input())
bc = float(input())
ac = math.sqrt((ab*ab)+(bc*bc))
bm = ac / 2.0
mc = bm
b = mc
c = bm
a = bc
angel_b_radian = math.acos(a / (2*b))
angel_b_degree = int(round((180 * angel_b_radian) / math.pi))
output_str = str(angel_b_degree)+'°'
print(output_str) | [
"Aman Shekhar"
] | Aman Shekhar |
fc2b1670dc0d8c57a7933598d24f307c9bf42883 | ab3d5455b4644e643679a8cc6263b17b1d616a64 | /custom.py | 824c9ad6a2bc48cff7c24a7b6a3ada6beaeec775 | [] | no_license | ayrton22/IA_Final_Project_DH | 3ee1aa3aa09d229707ce3dd4391ac3f0f3aaabc7 | 08a03380eadebc80a37dd669fa6f2497bcc1ea5b | refs/heads/master | 2023-03-05T02:25:12.312710 | 2021-02-11T20:11:15 | 2021-02-11T20:11:15 | 336,387,853 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | '''
Custom cce, plate_acc and acc for plate recognition using CNN
'''
from tensorflow.keras import backend as K
import tensorflow as tf
# Custom Metrics
def cat_acc(y_true, y_pred):
y_true = K.reshape(y_true, shape=(-1, 7, 37))
y_pred = K.reshape(y_pred, shape=(-1, 7, 37))
return K.mean(tf.keras.metrics... | [
"themasterayrx@hotmail.com"
] | themasterayrx@hotmail.com |
30fe5f0a451f6fe0b398ee8ef69538f3765c29b4 | b2eed268ec55b0e0b7299a042d1cbf2e39212ed7 | /lista_videos.py | 669092621a9dedd8046ccd7d517da493e23cfa65 | [] | no_license | jul21unac/codigo | 5772f2706e493b1020268fbdaff59e6b5d7676e2 | 3c24b439c083cb3d2da21f3ab2f69da02ecd50f6 | refs/heads/master | 2020-04-28T04:50:59.884582 | 2019-05-23T09:25:27 | 2019-05-23T09:25:27 | 174,996,541 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.keys import Keys
import time
import random
driver = webdriver.Firefox()
driver.g... | [
"noreply@github.com"
] | noreply@github.com |
2eb0b07281848c75fdfbbebad5323ee7aad041b6 | b064696e34a31d2f23eb5da4f364a09542428b44 | /tf_agents/environments/test_envs.py | 6a387d171858712c9f4f239a123767929ea08075 | [
"Apache-2.0"
] | permissive | vraoresearch/agents | affead659efd3b5ac232d3d9ff60a1fabe74250e | 58ffe1eec6e38a2cddcf34834d795b37e3b8843b | refs/heads/master | 2022-11-19T10:01:54.906271 | 2022-10-27T14:41:56 | 2022-10-27T14:42:23 | 293,401,771 | 0 | 1 | Apache-2.0 | 2020-09-07T02:23:54 | 2020-09-07T02:23:53 | null | UTF-8 | Python | false | false | 6,095 | py | # coding=utf-8
# Copyright 2020 The TF-Agents Authors.
#
# 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.0
#
# Unless required by applicable la... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
145fa56faeef37542e22de8faa7b5458191b40fd | 4139b937d2710e809a3883554f8717271277b5a0 | /ytube/mainapp/urls.py | 97b68c554252e5162218c69ab690e68bb20160e7 | [] | no_license | debaghosh/Youtube-Data-API-Project | 5a24ebd8e05665b31f3451cc620b14d29446eb49 | 0f4c79b7c03e222e4978327d310fd5f95b53aebc | refs/heads/main | 2023-04-18T00:34:53.734390 | 2021-04-28T19:11:21 | 2021-04-28T19:11:21 | 305,747,146 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.home,name='home'),
path('video/',views.video,name="video"),
path('channel/',views.channel,name="channel"),
]
| [
"debanjanaghosh99@gmail.com"
] | debanjanaghosh99@gmail.com |
de1fb4c2e52ad648d612c61f606df65673435378 | 422c7b6f117bb78483fffdc58bc4dce97ece3a06 | /weatherapp/app/views.py | 090c18fa303cc6319572324faab9a7cdd487b756 | [] | no_license | xiasuke/WeatherApp | 300e076ab0868f23b7cb2329befd2412de4c007a | edffd0b581955a41b0419722fe8dc8327d8bd693 | refs/heads/master | 2021-06-30T00:42:03.245952 | 2017-09-18T13:32:04 | 2017-09-18T13:32:04 | 103,694,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,525 | py | # -*- coding: utf-8 -*-
import json
from flask import render_template, url_for, redirect, flash, request
from app import app
from .forms import CityInputForm, SelectCityForm
from .models import Cities, CurrentWeather
from controller import InputHandler
from common.constants import JAVASCRIPT_PATH
@app.route('/', metho... | [
"qluc@ualberta.ca"
] | qluc@ualberta.ca |
ff42e4c1e25395242bc420cf6c2299df49eeed88 | 662207b37b6d77b43c164b9feacdbf928790bf17 | /day5/csv_file_reader-4.py | 71ef476d3185e56ed6b74d536cdfcf95ce22baa0 | [] | no_license | shamanthaka/mypython_work | fc26983488059eb59462f8ab966aaad2ab93532a | 410f655939387b709cefa4d452aa323aede1c4d7 | refs/heads/master | 2020-07-10T03:12:59.246227 | 2019-08-24T12:34:34 | 2019-08-24T12:34:34 | 204,152,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | import csv
from datetime import datetime
file = open("google_stock_data-1.csv", newline='')
reader = csv.reader(file)
header = next(reader) #The first line is the header
data = []
for row in reader:
#row = [Date, Open, High, Low, Close, Volume, Adj.Close
date = datetime.strptime(row[0], "%m/%d/%Y")
open... | [
"shamanthaka.veerareddy@gmail.com"
] | shamanthaka.veerareddy@gmail.com |
d4d251c3b3289e5e59f6f69637eadebeaa3d7d65 | f286fa74dc20579274cc61281326446fa05e0e45 | /python_bale_bot/models/messages/base_message.py | 524159d0e63e0f952aac44dd6aec8cc98853c726 | [] | no_license | mmdaz/Bot | 91b39d8ff0cce16834ca2d80e77232020b31bd90 | fb7b207dc8c07e4e7d766ced61c0dce6eccf11b7 | refs/heads/master | 2021-06-13T10:32:15.215663 | 2018-12-25T02:52:57 | 2018-12-25T02:52:57 | 145,236,800 | 0 | 0 | null | 2021-03-31T18:47:50 | 2018-08-18T16:49:58 | Python | UTF-8 | Python | false | false | 105 | py | from python_bale_bot.models.base_models.jsonable import Jsonable
class BaseMessage(Jsonable):
pass
| [
"ma313@aut.ac.ir"
] | ma313@aut.ac.ir |
a742a33db13716c957bb8912fdcb12eeb8c67fc9 | e4ceb24675f326ee985271761ceea1f7499c008f | /shredder.py | 106463d860d699b6eeb4dc91b0c6d9019f394391 | [] | no_license | vdugar/Instagram-Challenge | c15b0584bb6cbf87be4c856b2ac4e92418848b35 | fe5ce6d79e91235d967d998ea2a268f2600e2fcf | refs/heads/master | 2016-09-06T09:43:12.606514 | 2012-01-08T05:43:56 | 2012-01-08T05:43:56 | 2,802,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | """
Usage: python shredder.py source_image NO_OF_SHREDS
"""
import sys
from PIL import Image
from random import shuffle
def shredder():
image = Image.open(sys.argv[1])
SHREDS = int(sys.argv[2])
shredded = Image.new('RGBA', image.size)
width, height = image.size
shred_width = width/SHREDS
seq... | [
"vishaldugar12@gmail.com"
] | vishaldugar12@gmail.com |
d8c7395042d0f2082aff13bcb11066c45b458b79 | ddca79e37a1731104e7e469d349797c6c46cfa9b | /egs/thchs30/steps/data/augment_data_dir.py | 432b136e3b1f54793a1e224686852689243038b9 | [
"Apache-2.0"
] | permissive | zyzisyz/tf-kaldi-speaker | 9608302d9430fae6916cb0367a79e227e06a3795 | 320ed4d6255addda4e86f9d4c2911c1fec21ba42 | refs/heads/master | 2020-08-11T14:21:13.280003 | 2019-10-12T14:22:16 | 2019-10-12T14:22:16 | 214,579,180 | 0 | 0 | Apache-2.0 | 2019-10-12T04:46:17 | 2019-10-12T04:46:17 | null | UTF-8 | Python | false | false | 9,158 | py | #!/usr/bin/env python3
# Copyright 2017 David Snyder
# 2017 Ye Bai
# Apache 2.0
#
# This script generates augmented data. It is based on
# steps/data/reverberate_data_dir.py but doesn't handle reverberation.
# It is designed to be somewhat simpler and more flexible for augmenting with
# additive noise.
fro... | [
"zyziszy@foxmail.com"
] | zyziszy@foxmail.com |
54261356c34affbb8adc4b8e18917f0b93ecbf45 | 3bdc9855c32ed0a7e1b433f1538f57264ae2e4dd | /Day-4/Hands-on/MultiNetworkExample/RGM/utils.py | bfbc401a5a5a51a897363163829527eacd302c6e | [] | no_license | SSDS-Croatia/SSDS-2020 | b184cef79b38f1973cd04f42063ef7de22585ed8 | fd3b18ed36aa33a31c24e45d5562aa7b371eb760 | refs/heads/master | 2022-12-18T14:35:52.898610 | 2020-09-23T11:45:14 | 2020-09-23T11:45:14 | 279,528,225 | 4 | 6 | null | 2020-09-06T18:41:28 | 2020-07-14T08:31:35 | null | UTF-8 | Python | false | false | 2,780 | py | import numpy as np, networkx as nx
import scipy.io as sio
from config import *
import scipy.sparse as sp
from scipy.sparse import coo_matrix
dataset_lookup = {"mutag" : "MUTAG",
"nci" : "NCI1",
"ptc" : "PTC_MR",
"imdb-b": "IMDB-BINARY",
"imdb-m" : "IMDB-MULTI",
"collab": "COLLAB"}
#Input: list of n embs of shape ... | [
"mheimann@wustl.edu"
] | mheimann@wustl.edu |
122be19a61a0639cc28993bfa38839b6a35b7df6 | 2821a9e144d27e70aacebed3bc4e58137dc7c191 | /app/auth/forms.py | 387f678d01142d6847f971ab03d0ca788f6e0d75 | [] | no_license | bluesnoblue/BluesServer | 296fd3b281616b82d0773902ba7a06c089740935 | 96db1d10d6ce565db46c0bdb72e493fc0dbdd23b | refs/heads/master | 2022-12-13T18:47:17.140086 | 2019-03-12T07:28:40 | 2019-03-12T07:28:40 | 156,386,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, PasswordField, BooleanField
from wtforms.validators import DataRequired, Email, ValidationError, EqualTo
from app.models import User
class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
passwo... | [
"470960070@qq.com"
] | 470960070@qq.com |
eaf3251ef24f1745953ed74171cac3e1b9abf7d3 | df93e960b8be38d82d76cc2656a16f7b441d320d | /obfuscate.py | 18e5e3ef1f2d578017b810761247397e821a4009 | [] | no_license | kabads/obfuscate | ce8ecfbf67cef8cbd31b934b432d040ae5839428 | 88005a1d28557c9b5e2defb03095c5f4ce736e7b | refs/heads/master | 2023-04-07T04:27:30.966242 | 2021-03-31T07:38:17 | 2021-03-31T07:38:17 | 353,115,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,248 | py | import csv
import random
import argparse
LOWER_VOWEL_LIST = ['a', 'e', 'i', 'o', 'u']
UPPER_VOWEL_LIST = ['A', 'E', 'I', 'O', 'U']
LOWER_CONSONANT_LIST = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'w', 'x', 'y',
'z']
UPPER_CONSONANT_LIST = ['B', 'C', 'D', '... | [
"adam.cripps@sgbd.co.uk"
] | adam.cripps@sgbd.co.uk |
5a376adc61df0a82a554729b16161f47b55484e0 | cf72581c792fa74f959c74550c167f9e18def815 | /dominio_ag_tsp.py | 2acc9f158e926e78aaa485d4b23213164fd2583e | [
"Apache-2.0"
] | permissive | ITCRStevenLPZ/Proyecto3-Analisis-de-Algoritmos | 295319f918bb14d48e651c3c7b28feebb92091fc | 86d73834da5f4ca7cd94671dc665bd576ed32e4b | refs/heads/master | 2023-08-14T15:45:23.249396 | 2021-10-07T06:04:22 | 2021-10-07T06:04:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,224 | py | from dominio_ag import DominioAG
from dominio_tsp import DominioTSP
from random import random
class DominioAGTSP(DominioAG, DominioTSP):
"""
Representa el objeto de dominio que conoce los detalles de implementación y modelamiento
del problema del vendedor viajero para ser resuelto con algoritmos genéticos.... | [
"esquivellopezronald@hotmail.com"
] | esquivellopezronald@hotmail.com |
a936dc2e461b068adb1d7e0afb575895d7118f90 | 59ac4d6d130fa83a9a38e0838c4ff52ed6a944d2 | /tourism survey multi-tasking/ILS_master_2.py | edb75cfddf590aa10936e3404f5feb54ed10c87a | [] | no_license | GaryGrimes/Multi_Tasking_Main | f97c3aad02c95dde259ef148350ef230d6ed5347 | fd3924ae9e64f1163e5d9fc23a6c61a9d9fbb7aa | refs/heads/master | 2020-11-27T02:32:27.591003 | 2019-12-20T14:17:46 | 2019-12-20T14:17:46 | 229,273,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,873 | py | import numpy as np
import pickle
class IlsUtility(object):
def __init__(self, NodeNum, alpha, beta, phi, UtilMatrix, TimeMatrix, CostMatrix, DwellArray):
if len(alpha) != 2:
raise ValueError('alpha should be a 1*2 array!')
if len(beta) != 3:
raise ValueError('beta ... | [
"gary@Garys-MBP.local"
] | gary@Garys-MBP.local |
e859c41c360c09031092ca20ba7456f1a4d99789 | 63168b3cc1a8019583b331ebc8c4ec58c241753c | /ngraph/python/tests/test_onnx/test_zoo_models.py | dd2534600445cc7195cdfa606889c5cf8b590520 | [
"Apache-2.0"
] | permissive | generalova-kate/openvino | 2e14552ab9b1196fe35af63b5751a96d0138587a | 72fb7d207cb61fd5b9bb630ee8785881cc656b72 | refs/heads/master | 2023-08-09T20:39:03.377258 | 2021-09-07T09:43:33 | 2021-09-07T09:43:33 | 300,206,718 | 0 | 0 | Apache-2.0 | 2020-10-01T08:35:46 | 2020-10-01T08:35:45 | null | UTF-8 | Python | false | false | 9,766 | py | # Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import tests
from operator import itemgetter
from pathlib import Path
from typing import Sequence, Any
import numpy as np
from tests.test_onnx.utils import OpenVinoOnnxBackend
from tests.test_onnx.utils.model_importer import ModelImport... | [
"noreply@github.com"
] | noreply@github.com |
8c06bb5e519ec1686a774be59d66a0b85a8aa078 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/ml/azure-ai-ml/azure/ai/ml/entities/_compute/synapsespark_compute.py | 91246ce9f13fa7101e3c320b4f62ab2e90df2b91 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",... | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 9,495 | py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
from typing import Dict, Optional
from azure.ai.ml._restclient.v2022_10_01_preview.models import (
AutoPauseProperties,
AutoScalePr... | [
"noreply@github.com"
] | noreply@github.com |
f91b75f58f0b50595c5280517be0d491c69e8a3d | cc8d7864ded79da1822441d1b223349e79fc4a2d | /for문/for문 ) 빠른 A+B.py | c169219ba2d76bf9192dbeea72e5f7feaea2b47b | [] | no_license | yaena1223/BAEKJOON- | 0b3afbad1ece5074cdd41dde51e4f262407a16da | bd2e5396183a2aaba30c38adcc3751aa05d951c0 | refs/heads/main | 2023-08-16T23:34:47.901537 | 2021-09-29T16:28:59 | 2021-09-29T16:28:59 | 368,310,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | import sys
sum = []
num = int(input())
for i in range(num):
a, b = map(int, sys.stdin.readline().split())
sum.append(a+b)
for i in range(num):
print(sum[i]) | [
"noreply@github.com"
] | noreply@github.com |
378fed1855d570a576642186d5941fdcf0477fcc | bd0959ad5d0d6cf57acaaf3785cf78e92fcf36af | /ScriptingLab/PyCol/changeString.py | 023b9e9de4289b4cfccf55044efa11260289a160 | [] | no_license | sach999/ScriptingLab | 3b39080d89c2feeddd6db7cd98e0290fef3e3d47 | 4ff340b65337e4c228ed9cb906605e8860a6dd47 | refs/heads/master | 2020-07-20T07:14:20.635313 | 2019-12-22T16:50:30 | 2019-12-22T16:50:30 | 206,596,385 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | def ChangeStr(str1):
#increment each alphabet by 1
temp=""
temp1=""
l=len(str1)
for i in range(0,l):
ch=str1[i]
if ch>="a" and ch<="z":
if(ch=='z'):
temp=temp+"a"
else:
ch1=ord(ch)
ch1=ch1+1
... | [
"noreply@github.com"
] | noreply@github.com |
a1c33c1c1624f756c1e2048314d0fbef2bb9a278 | 7d131ff01b3955ab892ac4323060712882febcf7 | /setup.py | e1ec27da120ccbd79585c4d36de47f6608323d0c | [
"MIT"
] | permissive | TomekPulkiewicz/pywebby | d441973a0884b680198fab718b8d83adebd1271a | a7f8bd22a697ee4a4f09612e8a4384941ad08074 | refs/heads/master | 2023-06-17T11:42:14.903957 | 2021-07-18T12:47:08 | 2021-07-18T12:47:08 | 370,953,575 | 0 | 0 | MIT | 2021-05-27T23:01:09 | 2021-05-26T07:59:42 | Python | UTF-8 | Python | false | false | 923 | py | from setuptools import setup, find_packages
import codecs
import os
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
LONG_DESCRIPTION = "\n" + fh.read()
VERSION = '0.0.2'
DESCRIPTION = 'An open-source python WebFramework.'
# Setting up
s... | [
"tomek@pulkiewicz.com"
] | tomek@pulkiewicz.com |
d6835d4de5c1a6c84a8eb54508afc0f74d9de13c | 0a8d1b0d6ad3d836781373cdb3f1d58f8e246a59 | /feature_1_2.py | 50270ea6909ffb70365db289e6fa3e2a6d221933 | [] | no_license | kunwardeepak/2020-interns | 80c1d2e09c18ccb8c016dadd4f592e8ef78b51c0 | 6c073cf5aa8f9cfd605539a00b7d1a039199f8fb | refs/heads/master | 2022-11-24T12:28:40.619037 | 2020-07-22T05:59:36 | 2020-07-22T05:59:36 | 281,129,122 | 0 | 0 | null | 2020-07-20T13:49:01 | 2020-07-20T13:49:01 | null | UTF-8 | Python | false | false | 7,617 | py | #Python 3.7.4
from tkinter import *
import json
import datetime
import turtle
import urllib.request
import random
def reset():
pass
c = (0,0,0)
def drawBar(t, height,old,date):
""" Get turtle t to draw one bar, of height. """
global c
try:
if c[0]<220 and c[1]<220 and c[2]<220:
r, ... | [
"68549770+kunwardeepak@users.noreply.github.com"
] | 68549770+kunwardeepak@users.noreply.github.com |
a99ce3fd7eafe338c38c4823f88c6f2e0aecf982 | 4acd48fd26b40891e4f58b33bb86be95d935c018 | /models/LSTMEnsembleEncoder.py | b5b11d43430cc8085831116e553291b872af18cb | [] | no_license | ezosa/topic-aware-moderation | 84052ef8b766348c4cfe25859801920f7d9f89d0 | 7721aab0625a49d0307a065783aae120cb140bf4 | refs/heads/main | 2023-08-21T09:00:18.839930 | 2021-10-20T06:23:28 | 2021-10-20T06:23:28 | 397,535,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py |
import torch
import torch.nn as nn
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
from models.MLP import MLP
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
class LSTMEncoder(nn.Module):
def __init__(self, lstm_args, mlp_args):
super(LSTMEncoder, self)._... | [
"elaine.zosa@helsinki.fi"
] | elaine.zosa@helsinki.fi |
0ff4b26b697e8ddb4643086d96acfea6f61ee817 | ca3d3a34db5363141de2338b56a2dc41c545762d | /file_python1.py | 893ba9712f3796cd12f99f14d30bb579e1747656 | [] | no_license | marmiksp/First-Git-Based-Project | ede432d4aa4cc39d0b5a2bf5cb200ade345e0be6 | 4a4d7f3e557187085e23a4acc9bce0e2917e892d | refs/heads/master | 2020-06-01T17:47:55.724890 | 2019-06-08T11:11:53 | 2019-06-08T11:11:53 | 190,870,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py |
# In this Program, we will going to move
# file(.txt , .jpg etc) from source to Destination
# and not Folders
import os
import shutil
src = 'C:/Users/MSP/Desktop/A'
dest = 'C:/Users/MSP/Desktop/B'
filess = os.listdir(src)
print("A -> ",filess)
filesd = os.listdir(dest)
print("B -> ",filesd)
os.chdir(src)
#for fil ... | [
"marmikpatel628@gmail.com"
] | marmikpatel628@gmail.com |
c29467258a701902de51c13c6b259165f83ade76 | ed39a9306f9fec3e61849d5aec98e70c25b5ea42 | /SrikanthFTL/SrikanthFTL/wsgi.py | ec26cab72385951eec06ccfeb050bc47ea79ab78 | [] | no_license | srikanthch95/MYAPI | 84323768d59c89a5780c19c3deff72ed97c71c57 | 09685d0902f12ec37a5fe77e037bdb7330365857 | refs/heads/main | 2023-03-08T17:38:27.375267 | 2021-02-20T16:23:59 | 2021-02-20T16:23:59 | 340,362,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for SrikanthFTL 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_S... | [
"harikrishna.ptrj@gmail.com"
] | harikrishna.ptrj@gmail.com |
a0cedfaad3d595e93689cbd4a6c82b83bac81f28 | 3b499249387fc42800d7eba3b2f802911a9b4ece | /Exercize3.py | 2ac01f2b1d849fc45c458d6e0e2f29d23c4ac0f9 | [] | no_license | ArtemMonk/Homework2 | 636b051f48c8a4e379be581ee1527ccec5b7c1d2 | 9f8ee37d78e5055eb309ffa937bcb02a51b3d694 | refs/heads/master | 2023-03-03T07:50:35.353901 | 2021-02-09T13:41:26 | 2021-02-09T13:41:26 | 337,415,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # 3. Пользователь вводит месяц в виде целого числа от 1 до 12.
# Сообщить к какому времени года относится месяц (зима, весна, лето, осень).
# Напишите решения через list и через dict.
seasons = ((1, 'Зима'), (2, 'Зима'), (3, 'Весна'), (4, 'Весна'), (5, 'Весна'), (6, 'Лето'), (7, 'Лето'), (8, 'Лето'), (9, 'Осень'), (10... | [
"[Berserker_mohax@mail.ru]"
] | [Berserker_mohax@mail.ru] |
06a7697c93e8cfd130164bfb4344619cf2bf77df | 04a4a951516e760fe1d9b6577d80776f03e306a7 | /ZenPacks/community/bridge/BridgeDevice.py | b56e9e000be2008ced0ca53337f4f4d88c017dad | [] | no_license | Hemie143/ZenPacks.community.bridge | 5f07a0ac87561ce04b60abd5cb2410791ad81ca3 | aacdb3ce7f55e9e51392cb8cbb5725e47d7fc6b7 | refs/heads/master | 2021-01-21T17:10:37.352806 | 2017-08-02T10:13:58 | 2017-08-02T10:13:58 | 98,509,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | ########################################################################################################################
# BridgeDevice
########################################################################################################################
from Globals import InitializeClass
from Products.ZenRelations... | [
"hemie143@gmail.com"
] | hemie143@gmail.com |
e8fd4267fb33d903fe484ed060f7d7fc78e425a8 | 81873e1a4e3b8c52e39c0995134129a1836df526 | /propertylisting/proplistapp/models.py | ca820cc35665b1c7deeba95a874debbbd0fe6903 | [
"MIT"
] | permissive | sameem420/iProperty | 7edcd279d03c49adb7c5647b96473393b19509f1 | 3e15a42f7119c347b6a4cad86d86ce79a3c9b7ed | refs/heads/main | 2023-02-23T21:04:10.469716 | 2021-02-02T16:50:11 | 2021-02-02T16:50:11 | 323,579,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
from django.db.models.signals import post_save
from django.dispatch import receiver
class UserProfile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
phone... | [
"43237227+sameem420@users.noreply.github.com"
] | 43237227+sameem420@users.noreply.github.com |
28f1fee81bfc9e4b70161d7ab0a2fc88e096a862 | 91d9dcd5756b42e047e039e32259f22500a5f97d | /seed_packing.py | ed55baea52d64e76806ec515441cabf553fcbd89 | [] | no_license | kmandrus/fibonacci-examples | 0485bb00986d07317ab0dd39338b55c747f5cc32 | a0c4f389b59f43f253d7fe3c2a26f3b3965d4365 | refs/heads/main | 2023-03-01T16:48:49.768051 | 2021-02-01T17:06:23 | 2021-02-01T17:06:23 | 335,023,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | import plotly.graph_objects as go
import math
phi = (math.sqrt(5) - 1) / 2
radii = [math.sqrt(x) for x in range(100)]
angles = [x * phi * 360 for x in range(100)]
fig = go.Figure(data=
go.Scatterpolar(
r=radii,
theta=angles,
mode = 'markers',
))
fig.update_layout(showlegend=False)
fig... | [
"kevin.andrus@gmail.com"
] | kevin.andrus@gmail.com |
2f60fcf9674263e0fe4727a8818e310e48a2e8e3 | 55f43ddf80f995f17123f34ac69b9360d9a0e4cc | /tiktok-master/base_user/models.py | 443c0d9c5f942a105af0ce4d71ddd9f8b18fe841 | [] | no_license | Orxan014/Tik_Tok | 36d237e6462185e8c1251acde4f27044f4c2aab9 | 08969fb0ce9b8deadfbe3fc11aeebeb03daa4b53 | refs/heads/master | 2022-02-10T03:15:49.863792 | 2019-06-29T12:25:46 | 2019-06-29T12:25:46 | 194,402,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,375 | py | from django.db import models
from django.utils import timezone
from django.conf import settings
from django.core import validators
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, UserManager
from base_user.tools.common import get_user_pr... | [
"naminal_014@mail.ru"
] | naminal_014@mail.ru |
16dd280bdb3aeae7c20e3fc516cfa46616cc7c11 | ecd1efa7d985f9f168cb71a8b385621269d5a2a5 | /threading_test.py | 01667dd9d6ff0e92c706c563195b6849a790e199 | [] | no_license | dtward/pylddmm | 90c1f1b7537831d0dce57918895116ab0a0350d4 | 41da878fd0447bb60d19e54775e08f32bc5537a4 | refs/heads/master | 2021-08-23T03:01:31.195450 | 2017-12-02T19:45:39 | 2017-12-02T19:45:39 | 109,031,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 28 08:56:54 2017
@author: dtward
"""
from multiprocessing import Pool
from multiprocessing import Process
import os
import time
def f(x):
return x*x
data = [1,2,3,4,5]
n = len(data)
p = Pool(n)
out = p.map(f,data)
print(out)
def info(title):
print title
pr... | [
"daniel.tward@gmail.com"
] | daniel.tward@gmail.com |
158d0868e5c8cc7e84b71ac90477cfc0929d2c76 | 8538d36b6aae027aa4f2a6eb5bacb33927f3ae3f | /Main.py | 95eec8672ba40ffac23557ff743645d3e292f071 | [] | no_license | jordi1307/exam_extra_iPY | 1b14971efcd2f9dab90114fa9a252a3824887a45 | d1b95da47c9d703178491f9670ff493c0741f834 | refs/heads/master | 2016-09-06T17:59:03.019642 | 2014-06-13T16:45:39 | 2014-06-13T16:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,162 | py | __author__ = 'jor'
import datetime
import re
def main():
#nif=input("Cliente Identifiquese ,con su nif")
nif="47179315J"
if nif=="":
print("se creara un nuebo cliente:")
nombre=input("Nombre: ")
apellido=input("Apellido: ")
nifcli=input("Nif: ")
clien=cliente(nombre... | [
"jluesma93@gmail.com"
] | jluesma93@gmail.com |
3472f414bb872e3cfb085954cbbb3e0152f80455 | 04a77043cebd9415069aad4a6b8e7af077de1168 | /1-pbase/day05/exmple/for_for.py | 8b5fbd75a866aea0376e372ffee9ad02756fc2a6 | [] | no_license | yangxiangtao/biji | a935fbc4af42c81205900cb95a11e98c16d739de | 5c5f46e6c145fc02ea10b7befdc05c489fc3b945 | refs/heads/master | 2022-11-12T02:25:51.532838 | 2019-04-02T01:22:12 | 2019-04-02T01:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | #练习:
# 输入一个整数,打印正方形
# 1 2 3 4 5
# 1 2 3 4 5
# 1 2 3 4 5
# 1 2 3 4 5
# 1 2 3 4 5
n = int(input('输入一个数:'))
for x in range(1,n+1):
for x in range (x,x+5):
print(x,end=" ")
x += 1
print()
| [
"123@bb.com"
] | 123@bb.com |
edd40c8dc2627641923343107499a3309785bd4e | 73ff5a5b78b1dc9dcd1c2b9436b037ba89716f42 | /algolove/urls/snippets.py | f708dad208722bc437e9a1ccf8b68722267e132b | [] | no_license | gchandel6/algolove | f77fbc52f5b6c08e8608bd607f4e1475a04d03a3 | 2ca9fc875782547c96e2f2223ee86721d0e482fd | refs/heads/master | 2021-01-17T10:19:55.106012 | 2016-06-11T06:47:27 | 2016-06-11T06:47:27 | 58,667,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py |
from django.conf.urls import url
from algolove.views import Algo_snippets,Coding_snippets
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.shortcuts import render , get_object_or_404
from algolove.models import Algo_snippet,Coding_snippet
query1 = Algo_... | [
"gchandel6@gmail.com"
] | gchandel6@gmail.com |
2a36aaf9a1504c34d23ddb693137eba315b58ed4 | 6f394a5f520ba50671d95aa18b3e594e427a4d21 | /flytekit/sdk/exceptions.py | 1e9ea62b88aff3b6ccd64e4a2be7395bf752621b | [
"Apache-2.0"
] | permissive | jbrambleDC/flytekit | 844cf2216954eecfe8243e1bd9ca733a2802304c | 2eb9ce7aacaab6e49c1fc901c14c7b0d6b479523 | refs/heads/master | 2022-04-15T10:30:22.433669 | 2020-04-13T17:09:15 | 2020-04-13T17:09:15 | 255,514,936 | 1 | 0 | Apache-2.0 | 2020-04-14T05:04:46 | 2020-04-14T05:04:45 | null | UTF-8 | Python | false | false | 458 | py | from __future__ import absolute_import
from flytekit.common.exceptions import user as _user
class RecoverableException(_user.FlyteRecoverableException):
"""
Raise an exception of this type if user code detects an error and would like to force a retry of the entire task.
Any exception raised from user code... | [
"matthewsmith@lyft.com"
] | matthewsmith@lyft.com |
0813c7423d195ac6c50cc117503fb58455f94fd3 | 6f080f12c45b995ef1fb3edc48758980cb947137 | /backend/controller/rest/main_handler.py | b1317d82e23e236501b55b82d6490e89c22d34ae | [] | no_license | MrWhiski/neinzehnaruafn | e3303d8702bffddc5ce7b5d984da9979aef2342f | 219133d4d1d2e2f10eac18721735880f9c07de6a | refs/heads/main | 2023-05-09T10:45:34.766758 | 2021-05-25T20:58:14 | 2021-05-25T20:58:14 | 367,586,150 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | from abc import ABC
from typing import Any
import tornado.web
import tornado.httputil
class MainHandler(tornado.web.RequestHandler):
def __init__(
self,
application: "Application",
request: tornado.httputil.HTTPServerRequest,
**kwargs: Any
):
super().__... | [
"david.staffal@gmail.com"
] | david.staffal@gmail.com |
07d1754c6d472cb4a99f4e501f68369ae85c632d | 5caa7bca9872109c3cbde72b937272b4ecf77555 | /cart/migrations/0005_cart_ordered.py | 7a9bc238a15596efa00677e66d4aa270f13258ba | [] | no_license | Prejudice182/prej-milestone-four | 292ea493b6486479b328f82ca2bc77117052e241 | b05ac9ad90807a2f8b075d96548dced2116d6ced | refs/heads/master | 2022-11-13T07:19:29.986343 | 2022-11-07T22:52:09 | 2022-11-07T22:52:09 | 231,970,672 | 0 | 1 | null | 2022-08-27T00:30:59 | 2020-01-05T20:17:31 | Python | UTF-8 | Python | false | false | 381 | py | # Generated by Django 3.0.2 on 2020-01-11 00:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cart', '0004_cartitem_ordered'),
]
operations = [
migrations.AddField(
model_name='cart',
name='ordered',
... | [
"redpaulkenny@gmail.com"
] | redpaulkenny@gmail.com |
8ebd76df680408aac13b53b494f35a9d9ff7fca6 | 554b840d833b4fe9a6735521a180bf95ceaa1665 | /centro/historialesmedicos/apps.py | 675c029f22defe4a8da33ea7e32c65473ec83021 | [] | no_license | jppenuela/centro_medico | 4889718b07c35295e38ae0d755fa00e6dcaec9d8 | 439aab4ae2e2c9697339b11450eb068b0fe5252d | refs/heads/master | 2022-12-27T04:54:19.649475 | 2020-10-15T22:28:47 | 2020-10-15T22:28:47 | 304,086,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from django.apps import AppConfig
class HistorialesmedicosConfig(AppConfig):
name = 'historialesmedicos'
| [
"jppenuela@misena.edu.co"
] | jppenuela@misena.edu.co |
818e80a9624f26542880063b7539c3636f076b3e | 76881c25248b35d925669feff7079c70b5a71344 | /nose/test_profile.py | ba1b21cbd5df00c3fce15705414bf116859b5ad6 | [] | no_license | abatten/pynbody | 4919a3e4a3ddd0b2846477b0f50466321cb25dc7 | bb4ee1e32d1674295d12f7dddb0d680802ffe086 | refs/heads/master | 2021-04-29T19:36:49.240663 | 2018-08-13T06:05:48 | 2018-08-13T06:05:48 | 121,580,496 | 0 | 0 | null | 2018-02-15T01:23:10 | 2018-02-15T01:23:10 | null | UTF-8 | Python | false | false | 1,053 | py | import pynbody
import numpy as np
np.random.seed(1)
def make_fake_bar(npart=100000, max=1, min=-1, barlength=.8, barwidth=0.05, phi=0, fraction=0.2):
x = np.random.sample(int(npart*fraction))*(max-min) + min
y = np.random.sample(int(npart*fraction))*(max-min) + min
xbar = np.random.sample(npart,... | [
"andrew.pontzen@gmail.com"
] | andrew.pontzen@gmail.com |
da65bbdb35886a9cf93a682e86d6cdd0b982bc5a | ba1754030b7bf3f20a8bc826cfa797640470f721 | /observation/otf_IRC_radec_2021.py | e3d85e9fab58d7ca9ab84d780220cafe8d3f7874 | [] | no_license | 1p85m/necst-1p85m2019 | 46b52e59cb980e802d974a7101c672040211119f | d20724bd2cd23d6ad3524630c5755c571b619624 | refs/heads/master | 2021-06-25T15:01:32.984872 | 2021-02-09T10:47:52 | 2021-02-09T10:47:52 | 197,499,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,828 | py | #!/usr/bin/env python3
import sys
import time
import numpy
import math
import os
import datetime
sys.path.append("/home/exito/ros/src/necst-telescope/scripts")
import telescope_controller
sys.path.append("/home/exito/ros/src/necst-core/scripts")
import core_controller
sys.path.append("/home/exito/ros/src/necst-1p85m20... | [
"tatuyuki.takashima@gmail.com"
] | tatuyuki.takashima@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.