blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9524b3b82893f96b5401f320e1e5ef79be1a59ef | 523db0f90e8069311705173cfcfdfb2c4417ae44 | /06_port_scan/w8ay.py | a95691477badbd9c9fae4083fb5c2c06b3319282 | [] | no_license | ClayAndMore/py_scanner | b351fbc23fdc2d797fcc527472561333423d44f7 | b21c1ae9ae8d9a6dc32841ec62bcd7cc40e0531f | refs/heads/master | 2020-06-05T13:20:27.787920 | 2019-06-19T02:45:15 | 2019-06-19T02:45:15 | 192,449,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
Name:w8ayScan
Author:w8ay
Copyright (c) 2017
'''
import sys
from lib.core.Spider import SpiderMain
from lib.core import webcms, common, PortScan
reload(sys)
sys.setdefaultencoding('utf-8')
def main():
root = "https://shiyanlou.com"
threadNum = 10
ip = common... | [
"wangyu1@antiy.com"
] | wangyu1@antiy.com |
0a4d9c5a7f1c40f757a2731830ff440ee111ecd1 | 03b7430a0fbba63c0d5712ed6539caa807cb8d05 | /problem1e.py | 920b116d89aa792337950f565febeb39b2f85035 | [
"MIT"
] | permissive | yasserglez/monkeys-typing | 7e0dcecfea3bc7401fbd8d229180b8277dc0b6e0 | c7d15802cedd29dc0a194612d3777a656cb43caa | refs/heads/master | 2020-04-06T04:31:39.337137 | 2015-08-08T18:23:37 | 2015-08-08T18:23:37 | 18,028,427 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from monkeys import compute_freq_tab, write_freq_tab
freq_tab_2nd_order = compute_freq_tab(2, 'books/agnes_grey.txt')
write_freq_tab(freq_tab_2nd_order, 'agnes_grey_2nd_order.json')
freq_tab_3rd_order = compute_freq_tab(3, 'books/agnes_grey.txt')
write_freq_tab(freq_tab_3rd_order, 'agnes_grey_3rd_order.json')
| [
"ygonzalezfernandez@gmail.com"
] | ygonzalezfernandez@gmail.com |
2cdced4eecc20d7bb193be9283df32bad706371b | 841af9f674d910f1135b65a1e46f4a422d13a6db | /test_only_modified.py | 6626cf6ccb89b554c250e63db1192603bc0e1db2 | [] | no_license | betterteam/InterSec_simulation | 07e95215abbab4722226355261b9909c4a8d8308 | bfccec4e58b0fe79313993cb6cad33ce53a7f672 | refs/heads/master | 2021-01-15T22:18:47.528359 | 2018-01-10T07:57:19 | 2018-01-10T07:57:19 | 99,894,685 | 3 | 0 | null | 2017-12-15T15:39:54 | 2017-08-10T07:30:28 | Python | UTF-8 | Python | false | false | 23,851 | py | # Final version of traffic signal
import sys
import numpy as np
from PyQt5.QtWidgets import QWidget, QApplication, QMainWindow, QFrame, QDesktopWidget
from PyQt5.QtGui import QPainter, QColor, QPen, QBrush
from PyQt5.QtCore import Qt, QTimer, QTime
import math
class Position:
def __init__(self, x=0, y=0):
... | [
"better@opossum.itolab.nitech.ac.jp"
] | better@opossum.itolab.nitech.ac.jp |
59accba5a656d5b413c7c3ad528bee9b9a83ad95 | 9025c27655e2f150d01e64ce0826df8166ac6813 | /core/urls.py | a1c84250501f6e331d1daaab5d0a66f5b2db6bbf | [] | no_license | kairat3/bella-plain | 02dd219f6bf087c99772490a32d61cd242a18f28 | 1950fd46dc53b800461f6077af3044bdfcf8300c | refs/heads/master | 2023-07-13T05:06:17.575811 | 2021-08-19T14:05:29 | 2021-08-19T14:05:29 | 393,064,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from product.views import ProductApiView
from rest_framework import permissions
from drf_yasg.views import get_schema_view
f... | [
"jvckmiller@gmail.com"
] | jvckmiller@gmail.com |
3e9e5f2e2ab82da05314d2f3be4cd0c514ea872e | b10bae1f94f00404d8d21a563d7626486aeebe74 | /users/models.py | ce385919d08af645716f84c4baa3931bbe72a02d | [] | no_license | brotherchris65/newspaper | d93b91f618cc33c627f5e584fccd91bdcb6fb75c | 7dd5f5c3e09fc38183684d9a30e01f5e1debc2ee | refs/heads/master | 2021-09-28T14:20:35.043218 | 2019-12-11T01:42:05 | 2019-12-11T01:42:05 | 227,240,504 | 0 | 0 | null | 2021-09-22T18:10:49 | 2019-12-11T00:18:19 | Python | UTF-8 | Python | false | false | 202 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.db import models
class CustomUser(AbstractUser):
age=models.PositiveIntegerField(null=True, blank=True)
| [
"brotherchris65@gmail.com"
] | brotherchris65@gmail.com |
50363bbf710a2b67812e488531ed086fe0b32138 | d40fbefbd5db39f1c3fb97f17ed54cb7b6f230e0 | /datadog_checks_dev/datadog_checks/dev/tooling/config.py | 7d63ecb7890e8d4df068f1419c36389ea8bb11bc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | slightilusion/integrations-core | 47a170d791e809f3a69c34e2426436a6c944c322 | 8f89e7ba35e6d27c9c1b36b9784b7454d845ba01 | refs/heads/master | 2020-05-20T18:34:41.716618 | 2019-05-08T21:51:17 | 2019-05-08T21:51:17 | 185,708,851 | 2 | 0 | BSD-3-Clause | 2019-05-09T02:05:19 | 2019-05-09T02:05:18 | null | UTF-8 | Python | false | false | 3,143 | py | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
from collections import OrderedDict, deque
from copy import deepcopy
import toml
from appdirs import user_data_dir
from atomicwrites import atomic_write
from six import string_types
from ..compat impor... | [
"noreply@github.com"
] | slightilusion.noreply@github.com |
c67c4e7d3e4988859508f7b101f56a874364ee59 | 1add9e012d8b61f17ca992f0c157ee0a5d1b7860 | /env/bin/pyhtmlizer | 5689466410d24f4b1c2200f96904416ace10fb6b | [] | no_license | dims337/chat-app | 3b0cd7dd4c2b22ba71219fba181ae35e91e7b3db | 042594f1f5785feeb3a06f7c204fa726ae2b2352 | refs/heads/master | 2020-04-11T17:09:17.406649 | 2018-12-21T04:02:46 | 2018-12-21T04:02:46 | 161,949,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/Users/dimsontenke/Desktop/chat_app/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from twisted.scripts.htmlizer import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"dimsontenke@dimsons-MacBook-Pro.local"
] | dimsontenke@dimsons-MacBook-Pro.local | |
fb997a333c66b348a4b2be51acc74d9b48a24bd6 | 47a211616a0fd746c1738aac8ab00cb758d6b057 | /Flask/Scripts/rst2xml.py | 04f24d4bafeabae2bcd193f648d3307ea9da0421 | [] | no_license | yan-egorov/flask_bro | 49b8b43ae5d113fd776adda6a65214b334daf63b | 5e233a5665c9948fc22d7d185c6d43b50b58fe5c | refs/heads/master | 2021-01-18T20:30:05.722883 | 2015-06-10T07:40:45 | 2015-06-10T07:40:45 | 37,182,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!C:\Users\rusegy\Documents\Python Scripts\TrueStories\Flask\Scripts\python.exe
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"... | [
"egorov.yan@gmail.com"
] | egorov.yan@gmail.com |
beb223699fadcff443ec1b36fb64cecf67b2359c | b5d0a6254b54c0a778181a67bcda14cc6663e871 | /0-notes/job-search/Cracking the Coding Interview/C10SortingSearching/questions/10.5-question.py | 5ec618baaa19cdb2c7b27b33ac1bfb9f081b82c6 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | Web-Dev-Collaborative/Lambda-Final-Backup | 113e719a76a144b86d06f3a412afe4b02689cad7 | e9ab84928faa8364bacd863009ae9aec01ff9d1e | refs/heads/master | 2023-06-07T15:34:00.682815 | 2021-04-17T01:53:14 | 2021-04-17T01:53:14 | 358,899,122 | 0 | 0 | MIT | 2023-05-30T04:03:16 | 2021-04-17T14:24:53 | JavaScript | UTF-8 | Python | false | false | 318 | py | # Sparse Search
# Given a sorted array of strings that is interspersed with empty strings,
# write a method to find the location of a given string.
# EXAMPLE: INPUT: ball, {"at", "", "", "", "ball", "", "", "car", "", "", "dad", "", ""}
# OUTPUT: 4
# time complexity: O()
# space complexity: O()
| [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
a2dd70fc69879a4648eb45dac4bea8dae1233790 | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/views/application/effect.py | 40b158532e97911174a83a5334610da7b7a1310a | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,649 | py | # -*- coding: utf-8 -*-
from platinumegg.app.cabaret.views.apphandler import AppHandler
from platinumegg.app.cabaret.util.api import BackendApi
import settings
from platinumegg.app.cabaret.util.url_maker import UrlMaker
from platinumegg.lib.pljson import Json
import settings_sub
from urlparse import urlparse
import url... | [
"shangye@mail.com"
] | shangye@mail.com |
e9645d989c183c9dbac600d419ff4e6142b1a50e | 0c6fb8fcc31eb658561ee7e244e8f0f7c8d72d6e | /build/ros_arduino_firmware/catkin_generated/pkg.installspace.context.pc.py | 499a2c796c3c70019a20c66822f8a3cea544edbd | [] | no_license | tutlebotmitica/mybot_ws | f71fac8e41a061d132694eb4f24f8375fd5eba8d | 4bb2003069709a29f0868c5fc404da01cddd0af3 | refs/heads/master | 2021-08-18T21:41:13.355546 | 2017-11-24T00:43:04 | 2017-11-24T00:43:04 | 111,839,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | 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 = "ros_arduino_firmware"
PROJECT_SPACE_D... | [
"paul@modulab.ro"
] | paul@modulab.ro |
a8a1af44b4ff29b22520121f30295c8ebe1d693f | 554ec84f23825452f7692f91f742bdc81fa50e84 | /chatbot_27549/urls.py | 7d1264887b9b6eb6dad7fc662d8571cc66eddd66 | [] | no_license | crowdbotics-apps/chatbot-27549 | a7806af210b6e7ccdfb3db3dbaaac9e9dcb5a5af | 0e615cbb191a8d91e2874e7329b059193a8ad625 | refs/heads/master | 2023-05-26T13:30:53.116812 | 2021-05-29T07:24:50 | 2021-05-29T07:24:50 | 371,908,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | """chatbot_27549 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... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f8b918dbc080c727941fe32353727591500f3f2d | 5c61851a03dd1ac98d03c2e98f27487f188ff00f | /{{cookiecutter.repo_name}}/manage.py | 13bffdcfd10dc0e98343059f47512923a6698335 | [
"BSD-3-Clause"
] | permissive | tony/cookiecutter-flask-pythonic | e7208a8fc9ccbde10e541f8e657dbf4da7b388b3 | d1274ec5d5b72cab128e593ed78de88c29bd54b5 | refs/heads/master | 2023-05-29T20:49:21.927268 | 2021-10-05T12:39:04 | 2021-10-05T12:39:04 | 35,064,692 | 39 | 4 | null | 2023-05-01T21:06:54 | 2015-05-04T22:52:20 | Python | UTF-8 | Python | false | false | 1,203 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from flask_script import Manager
from {{ cookiecutter.repo_name }} import {{ cookiecutter.repo_name | capitalize }}
"""If not using Flask-Script::
app = {{ cookiecutter.repo_name | capitalize }}.from_cli(sys.argv[1:])
Does the trick for retrieving an applic... | [
"tony@git-pull.com"
] | tony@git-pull.com |
e6acc1a14b714638e4d8eb6b3210b8ad4b35a3c2 | 37069009dd428ce59819ffea2fcffc07dda6e712 | /django_analyze/migrations/0068_auto__add_field_genotype_max_memory_usage.py | 550ac7b81c79b27de932d2c0ecb1788805c93c03 | [] | no_license | chrisspen/django-analyze | 829f560d7c5f2fb1c19fc07bc77cb1a83238e696 | 421ee35235f76ff8657f7befe5212acd7ccf3989 | refs/heads/master | 2020-04-28T15:42:51.773823 | 2015-04-18T14:50:02 | 2015-04-18T14:50:02 | 14,995,029 | 2 | 2 | null | 2014-07-07T12:39:22 | 2013-12-06T22:26:29 | Python | UTF-8 | Python | false | false | 18,209 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Genotype.max_memory_usage'
db.add_column(u'django_analyze... | [
"chris@coronis"
] | chris@coronis |
af5d3531a0c3b27b202c1ef66223d898bd77ec13 | 008aada8c0e718e0220eabc5b54732a1e1b07f97 | /sergeant/connector/_connector.py | ee1985d5cf05a1683d5b4b588c6a582648b9599b | [
"MIT"
] | permissive | gabriel-yahav/sergeant | 59259a92c4c072e317d82022f19b440b21d2c294 | 0de9bfb4fdca62f061d6588c6839c4491c5d4f9b | refs/heads/master | 2022-09-30T04:38:48.414842 | 2020-05-26T10:28:50 | 2020-05-26T10:28:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | import typing
class Lock:
def acquire(
self,
timeout: typing.Optional[float] = None,
check_interval: float = 1.0,
ttl: int = 60,
) -> bool:
raise NotImplementedError()
def release(
self,
) -> bool:
raise NotImplementedError()
def is_locked(... | [
"gal@intsights.com"
] | gal@intsights.com |
52361d8d4a6f74b1bd33bc572eee6582ff87237f | 92a34017b2c604e3e1d5af6347f98cd05e8d0cb7 | /orders/urls.py | 3fbadc5750edf20f37089f51c4735544a62a7205 | [] | no_license | dandani-cs/swishtest | 76b7c2e04193c749bef1b31e24fdd53a61707341 | 983e07930265690918d9d60b7ca972c2547d95bf | refs/heads/master | 2023-02-18T03:25:23.652843 | 2020-12-12T12:54:15 | 2020-12-12T12:54:15 | 316,511,893 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from django.urls import path
from .views import OrderListView, OrderCreateView
urlpatterns = [
path("", OrderListView.as_view(), name="order_view"),
path("new", OrderCreateView.as_view(), name="order_new")
]
| [
"dani.cstech@gmail.com"
] | dani.cstech@gmail.com |
4090524e51e82ff0144e1f510597cdaf59752ac9 | 08d5ac4947860068f3c79edd6eed7493cee29f95 | /theano_train.py | 54672bc9bc60d8e2e33a5ff5e6c0dc50ddded584 | [] | no_license | MrsJLW/nslkdd-deep | 9babc0821524247bdd4bd2afa1c197392af5ab3c | 462705bb0f42328673a3fe6d0caf0e75802e9b87 | refs/heads/master | 2020-03-29T13:27:54.058568 | 2016-04-11T18:01:31 | 2016-04-11T18:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,049 | py | import matplotlib.pyplot as plt
from sklearn.metrics import accuracy_score, precision_score, confusion_matrix
import numpy as np
import sklearn
import sklearn.datasets
import matplotlib
import theano
import theano.tensor as T
import timeit
import time
from theano import pp
import data as d
from theano import config
fro... | [
"rajarsheem@gmail.com"
] | rajarsheem@gmail.com |
5b645591d5f4113d5f9bc03b5fb8121abefcbe03 | 47c12b42843d08a10655006fba6fb0c662e7bf62 | /yonep.py | 92b1c822b8ae4f9d036e2f38a53af06c6ffd61e1 | [] | no_license | easthgs/git-test | 6325a8ba1bc77bec6a4b2d54fc84d08498d4b67e | 34de227bbf017f6b78b5bcf2cd4a7a47069c797a | refs/heads/master | 2021-01-10T12:23:10.331150 | 2016-02-20T17:55:13 | 2016-02-20T17:55:13 | 52,128,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from flask import Flask, render_template, url_for, redirect, request
app = Flask(__name__)
@app.route('/')
@app.route('/<name>')
def yo(name=None):
return render_template('yo.html', name=name)
@app.route('/add', methods=['POST'])
def add():
return redirect(url_... | [
"eastnep@yahoo.co.jp"
] | eastnep@yahoo.co.jp |
8efde5c2d68e9d8fcd988306f044844b4c316c77 | c3796ebebb42e55878556a53abad1a2e18fa4020 | /test/functional/wallet_resendwallettransactions.py | 1d73e04f39a1b4d65c9ca45043ad36d0c6b036b9 | [
"MIT"
] | permissive | lycion/genex-project | a9e54d22138ca81339f76bba166aa9f366fa9dd8 | fc103e93ee274dc57179d01c32b0235b29e364ca | refs/heads/master | 2020-03-29T02:18:33.445995 | 2018-08-07T23:56:27 | 2018-08-07T23:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Genex Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test resendwallettransactions RPC."""
from test_framework.test_framework import GenexTestFramework
from test_... | [
"40029035+genexcore@users.noreply.github.com"
] | 40029035+genexcore@users.noreply.github.com |
c85864db8a16d494aabf4adc4a5f186176ac2e22 | 1cd904a429a2392f47762a037e7ac8545cd673f1 | /homework_hse/homework03/homework03.py | 79b8c6afc95b99b94d14f1dbddd140ce4a529c33 | [] | no_license | annnyway/homework | e0bce8af87fc6100f20ce736e7082721005f4842 | 4fd3aa4279560d7a56af99d24636128e520945df | refs/heads/master | 2021-07-12T16:06:44.210852 | 2019-03-03T20:40:05 | 2019-03-03T20:40:05 | 148,026,613 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,018 | py | import random
def adjective():
with open('adjectives.tsv', 'r') as f:
adjectives = f.read().split()
return random.choice(adjectives)
def noun():
with open('nouns.tsv', 'r') as f:
nouns = f.read().split()
return random.choice(nouns)
def transitive_verb():
with open('trans_verbs.... | [
"nuticbooms@gmail.com"
] | nuticbooms@gmail.com |
2de0a3a5bc6d4a723ceea97771879e67868cf611 | 0543e8a6c4c45a80c3e11bbd6df694a63ad0155d | /diapers/migrations/0004_auto_20150822_1627.py | b4144d1ff6d3d09f9af4eea806abf61a693331fa | [] | no_license | asorokoumov/compare | 758f0cc22607db51022386d64f21c29610622b02 | 221aef6024f3c63c1a1d01f13f03166ce5b02a54 | refs/heads/master | 2022-08-09T16:05:33.342400 | 2019-05-08T09:54:48 | 2019-05-08T09:54:48 | 41,490,630 | 0 | 0 | null | 2022-07-06T19:18:37 | 2015-08-27T14:13:05 | CSS | UTF-8 | Python | false | false | 249 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('diapers', '0003_auto_20150822_1624'),
]
operations = [
]
| [
"sorokoumov.anton@gmail.com"
] | sorokoumov.anton@gmail.com |
c40f6a5a4f47f0180df1f9da49f262d8982ae040 | 728bd80edb381d74b5d19b0d2bbd5f0c7e00412e | /partenaire/admin.py | e4d1b140508662c013b2e393f60d3fdb997f44dc | [] | no_license | guilavogui24/applisigre | 16b45b4448975c7872223b911745ca02d8c64a84 | 39572782b2646543129208503f8c47a5813223ce | refs/heads/master | 2023-07-12T06:31:54.882558 | 2021-08-06T13:28:55 | 2021-08-06T13:28:55 | 393,380,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from django.contrib import admin
from .models import Partenaire
from .models import TypePartenaire
from .models import FormeJuridique
from .models import Categories
from .models import SousCategorie
class SousCategorieAdmin(admin.ModelAdmin):
list_display = ('nom', 'Categories')
search_fields = ['nom']
#... | [
"guilavoguijoseph@gmail.com"
] | guilavoguijoseph@gmail.com |
6fb69cae212e1193fbae6999d71ad04fb456e8f7 | be77e3ff1de69b11a427309ad5e953dfdbdb55a2 | /main.py | 7b29ea9b11bb750109abb536c2465b092280ee36 | [] | no_license | Richard98PL/tibiaAntyLogout | 58bfef476453ae021d69ebc7785eac6a1b47d947 | b790f9ffb756624c1e6d71506f15e8f9dda390cb | refs/heads/main | 2023-08-26T22:12:29.090560 | 2021-11-01T16:52:21 | 2021-11-01T16:52:21 | 423,093,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | from pynput.keyboard import Key, Controller
import win32gui
import win32con
import re
import time
import datetime
from random import randint
keyboard = Controller()
class WindowMgr:
"""Encapsulates some calls to the winapi for window management"""
def __init__ (self):
"""Constructor"""
self._h... | [
"noreply@github.com"
] | Richard98PL.noreply@github.com |
f625664d16d2ea3be1e1bf2f040c0452b92aaf29 | 47541875c7be36ce612c382b7f98c92173c7144c | /WarDrivePiCar/Tests/test_main.py | 47e6e1b2adc29e0bdcc292ffbd93dc17fff20045 | [] | no_license | MorenoB/WarDrivePi | 72b6373796e9b6a5ff5c8841154da556b9471906 | b4a29774de033df9f50043c6275a13d7a9d186cc | refs/heads/master | 2021-01-17T15:26:16.733107 | 2017-01-27T11:47:12 | 2017-01-27T11:47:12 | 69,866,547 | 1 | 0 | null | 2017-01-27T11:47:13 | 2016-10-03T11:59:23 | JavaScript | UTF-8 | Python | false | false | 1,357 | py | # Test files need to re register themselves for when using shell
import sys
import os
sys.path.insert(1, os.path.abspath(os.path.dirname(__file__)))
from unittest import TestCase
from program import Program
from Util.testing import TestThread
import sys
import time
import os
class TestMain(TestCase):
def test_mo... | [
"moreno_bralts@hotmail.com"
] | moreno_bralts@hotmail.com |
aebbafdcebef5f7edbb5985af8c57816dee40ee3 | a8e132c3cb716021064ad30b3d5a61a093d8ae6d | /Tugas 1/Find GCD of a Number/Find GCD of a Number.py | c0eecb79b70470313db3e3ae0e98674f3fa75f5c | [] | no_license | Ngurah30/Kriptoanalisis | 2ad971eaec14c9967c27a4ec8270bc0cc4bd0dcd | e3a0e26f4005b060b9f8833525151ad4616ccaa4 | refs/heads/main | 2023-03-30T12:41:59.854953 | 2021-03-22T11:31:38 | 2021-03-22T11:31:38 | 343,434,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Menggunakan fungsi rekursif
def gcd(x, y):
if (y == 0):
return x
else:
return gcd(y, x % y)
x =int (input ("Masukkan bilangan pertama : ")) # Menginputkan bilangan pertama
y =int (input ("Masukkan bilangan kedua : ")) # Menginputkan bilangan kedua
bil = gcd(x, y) #Memanggil gcd untuk mencari h... | [
"noreply@github.com"
] | Ngurah30.noreply@github.com |
fedd1e48e973b16043436c9c51aa37b3063a283e | 1f2df4dfed4af1485fefab0118dd6abd437de4de | /listings/migrations/0001_initial.py | 7dc50d07d346be74a195cb7f75a96f3f72bf4ebd | [] | no_license | Rhillx/IH_project | 90bc0ecaa200a2fb51e520dd75f6485cb21e6f17 | 4a51311e24456e0aefec16872f340685ec7dca74 | refs/heads/master | 2020-04-25T18:55:04.270785 | 2019-03-02T05:56:23 | 2019-03-02T05:56:23 | 173,000,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | # Generated by Django 2.1.7 on 2019-02-21 22:48
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('realtors', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"rhillz718@gmail.com"
] | rhillz718@gmail.com |
8041a1fb64300f05fe3fc25480204f1c264af1d5 | 4c205e65142adcde0e55693e63aadc0f32b585a7 | /Appliction_Generate_ETL/Fact/fact_commande_vente.py | 2de5b3fc4f7fd4dfd663b5fbe28c2c9805ee8b0a | [] | no_license | HamzaLebcir/Generic-DW-ERP-realization | 3d42809a48c012b2cbc96860350a5aa61529ddb3 | e13de06158fbbc55b8760485131951aa7006d5ca | refs/heads/main | 2023-01-30T04:51:52.603268 | 2020-11-26T11:48:48 | 2020-11-26T11:48:48 | 316,214,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | from configparser import ConfigParser
config = ConfigParser()
class fact_commande_vente:
def __init__(self, file_config):
config.read(file_config, encoding='utf-8-sig')
self.ID = config.get('Fact_Commande_Vente','ID')
self.Key_Produit = config.get('Fact_Commande_Vente','Key_Produit')
... | [
"lebcirhamza7@gmail.com"
] | lebcirhamza7@gmail.com |
8072e2425675f6565ceecb16805e4ef341e0456e | 4cb37eaa0bdcf002c26aba4656df1287ce3cfe56 | /main/settings.py | 6abbf86caad648c174cc9b0af91a9fcf6aa0f5f6 | [] | no_license | jiuniuone/app-mall-backend | 86ef3ec8cd78e019d90c8885173b68a6ecfdf6ca | 07dcb5840bc0d5f2d98522c5eb3d33de74bdcb6f | refs/heads/master | 2020-03-26T07:27:43.297704 | 2018-08-21T05:10:30 | 2018-08-21T05:10:30 | 144,655,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,210 | py | import os
import socket
import sys
import time
from unipath import Path
APP_NAME = 'mall'
FUNCTION_NAME = "shopping mall"
DEBUG = socket.gethostname() not in ['public', 'stage']
# DEBUG = False
SHOW_SQL = 'runserver' in sys.argv
if DEBUG: SHOW_SQL = False
BASE_DIR = Path(__file__).ancestor(2)
SECRET_KEY = 'i%25adry^... | [
"hikelee@gmail.com"
] | hikelee@gmail.com |
fc751a4c8a4c39cb45786c720a5ed4aa6a9bfb76 | 5cd9518f9a869a355019c743a5c2e65b0f3c50ba | /problem4.py | a96d8f797444928c1432d958ac34449608efcd17 | [] | no_license | astan54321/PA3 | 0d2ce6a1e9bce4ae9cafcedb930459e6b0bf66ee | 13d4048c12ea9b42cf9990389cf7894b2430cb3c | refs/heads/master | 2023-01-06T09:51:21.428543 | 2020-10-15T08:17:30 | 2020-10-15T08:17:30 | 303,866,798 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | from mrjob.job import MRJob
from mrjob.step import MRStep
import re
WORD_RE = re.compile(r"[\w']+")
class MRMostUsedWord(MRJob):
def steps(self):
return [
MRStep(mapper=self.mapper_get_words,
combiner=self.combiner_count_words,
reducer=self.... | [
"astan54321@gmail.com"
] | astan54321@gmail.com |
b12892a96f4b48796a35f6700c11b1ce1875c2cf | 94c8dd4126da6e9fe9acb2d1769e1c24abe195d3 | /test/python/circuit/library/test_phase_estimation.py | 8bf3d15d9ea0a395cd1d2ede7c122fdb666605b4 | [
"Apache-2.0"
] | permissive | levbishop/qiskit-terra | a75c2f96586768c12b51a117f9ccb7398b52843d | 98130dd6158d1f1474e44dd5aeacbc619174ad63 | refs/heads/master | 2023-07-19T19:00:53.483204 | 2021-04-20T16:30:16 | 2021-04-20T16:30:16 | 181,052,828 | 1 | 0 | Apache-2.0 | 2019-06-05T15:32:13 | 2019-04-12T17:20:54 | Python | UTF-8 | Python | false | false | 5,238 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | levbishop.noreply@github.com |
aa3069e85491124d364115e57d1a97e1ff6dbda7 | e2589896ad0e629d933f1e9e03f9963eb922664a | /backend/cool_dust_27675/wsgi.py | 297564f38beadc76f1ea37eeabd22b393dcbc0c4 | [] | no_license | crowdbotics-apps/cool-dust-27675 | 89b947ddd6c87d70febeb2af15ffab3706b6cc13 | f2fa1d6f4206955173a2ebf1b0f824ee5d184d1a | refs/heads/master | 2023-05-08T10:46:07.382608 | 2021-06-02T06:44:22 | 2021-06-02T06:44:22 | 373,066,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for cool_dust_27675 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('DJAN... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
816a6e3ddb957c0b742e5e7ca3543a7b6de38cf7 | fff4db9bd3408d881168a4838bd3d342b6415583 | /codesort/tests/test_data/sorted_1.py | 27b8982e7e8ff7740a54d846e70e116697b5bb1d | [
"MIT"
] | permissive | dougthor42/CodeSort | 853da348ddaa7461b6374fce7d4c62d66e437a12 | 4e4b5b862b903a258433cfd399db124a5abfa67e | refs/heads/master | 2021-01-01T20:01:05.040710 | 2014-10-09T00:32:13 | 2014-10-09T00:32:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | # -*- coding: utf-8 -*-
"""
Docstring!
"""
from __future__ import print_function, division
def ClassA(object):
""" ClassA, for sorting! """
def __init__(self):
""" Nothing needed here! """
pass
def _private_a(self):
""" And things! """
pass
def _p... | [
"dougthor42@users.noreply.github.com"
] | dougthor42@users.noreply.github.com |
939c05361fb679aea62692cdc376799186c3289d | 2bbb75129fa4e1d28b7fcfe58f585bcbfdc33dde | /lib/models/__init__.py | 98f6d9847c0667734e0d47537fc46076fd0f5152 | [] | no_license | Gyyz/Targeted-Sentiment-analysis-with-memory-network-attention | 1165ba850fd1a61a1ddbfd0d8a1ec4fa408ecf92 | 2208188eb6bd150e739acfd6b16ec810eac15e43 | refs/heads/master | 2021-06-22T10:09:52.490474 | 2017-08-10T08:27:58 | 2017-08-10T08:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from nn import NN
import rnn
from sentiment import *
| [
"yuz@fff"
] | yuz@fff |
0e162d2c63ae0f43fffc22bc0537ef43c0b7ff22 | baa4b4e6a4aae7df3236cc97f600262f969fe827 | /project/server.py | 39d0f9cd9df5c6768b9fbdd29f1e2e3bac6fc873 | [] | no_license | elihan27/CS-131 | 97517d86d0d92033ab207185d2a64cdbe55cfa50 | 088d05a138c9f7383faa048a500748f43e6c789b | refs/heads/master | 2020-04-21T23:13:11.225262 | 2019-02-10T03:37:02 | 2019-02-10T03:37:02 | 169,938,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,303 | py | import asyncio
import string
import aiohttp
import sys
import time
import logging
#As of 9:30 AM, 06/08/2018:
#has implemented "WHATSAT", "IAMAT", and "AT", dictionary, servers talking to each other
#need to implement: logger, buffer
server_info={}
#buffer=[]
portnumbers= {
'Goloman': 12717,
'Hands': 12718,... | [
"ehan2016@gmail.com"
] | ehan2016@gmail.com |
b13d0766ba150b96be1c6b817e88795d4963c5de | bbab26a8d60b9b1c3e0037596165d3639a5e18ae | /assign2.py | 797216f15613313e889f7b7f082da1c2bdbe46a0 | [] | no_license | MidhaTahir/-Python- | 200d6c83c8066392143e7297659ea9ecc5b57b79 | b054e4bc82289051e4f96b9b03f8402993b42a38 | refs/heads/master | 2021-07-19T20:13:37.920052 | 2020-06-24T18:31:05 | 2020-06-24T18:31:05 | 186,156,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import random
arr = []
for i in range(10):
arr.append(random.randint(1,100))
print(arr)
minimum = min(arr)
print("The minimum number in random list is " + str(minimum))
minimum_position = arr.index(min(arr))
print("The minimum number position is " + str(minimum_position+1))
maximum = max(arr)
print("The maximum n... | [
"midhatahirkhan2011@gmail.com"
] | midhatahirkhan2011@gmail.com |
b9d3d581f68fcf8fdc2b060485db026dfba0d13f | 7cb7553a04ce0eace07f331a493b96f2bdb2fd26 | /week13_H.W/IDS_20200529-8.py | fbc674aded1485154d1c326dc00a9f40c3df7241 | [] | no_license | hjkyuit1226/Introduction-to-DS | 2308f0780e2c6944f98ba3c0a559bca96b23bfbf | 1cf26d1c7b080bb518f2f131c26091461a844fd3 | refs/heads/master | 2021-02-19T15:32:10.344138 | 2020-06-06T19:04:13 | 2020-06-06T19:04:13 | 245,314,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | def get_fahrenheit(x):
"""
Transform a Celsius degree into Farenheit scale
"""
f = x*9/5 + 32
return f
print(get_fahrenheit(25)) | [
"noreply@github.com"
] | hjkyuit1226.noreply@github.com |
2cd11da1a7669bc9c9ef03e9c656328abf9a4495 | f32f45a84f296392fa5433402bf126885fb2df23 | /learningTemplates/basic_app/urls.py | ae5ad4e2a7806bef5b64fb1740555b78e54b3277 | [] | no_license | samjonescode/Python-Anywhere-First-Deployment | 8878f2b4d3c25a4b6f05795cd712c1def58f03ed | 8608956168363442988acc3468886131787db4d6 | refs/heads/master | 2021-10-22T23:32:56.691641 | 2019-03-13T17:08:50 | 2019-03-13T17:08:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from django.urls import path
from basic_app import views
# template tagging
app_name = 'basic_app'
urlpatterns = [
path('index/',views.index,name='index'),
path('relative/',views.relative,name='relative'),
path('other/',views.other, name='other'),
] | [
"sjonesmusician@gmail.com"
] | sjonesmusician@gmail.com |
7397068550e96dd401ecb0de352f442531574858 | 78a4379f22f1a1f8b801a26c4bb5357bdce24cb6 | /apps/pay/migrations/0001_initial.py | c0f63180f3030475c4991ea0eef92a94c718e380 | [] | no_license | 18801166104/TravelWebSite | 706890ecc901b7fea277dd5794d81c0e54424e98 | 131399ecc3df3344105677b9e6745fb2f23750e7 | refs/heads/master | 2020-04-30T15:12:34.745958 | 2019-03-21T09:38:16 | 2019-03-21T09:38:16 | 176,461,032 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | # Generated by Django 2.1.7 on 2019-02-22 13:27
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='OrderItems',
fields=[
('id', models.AutoFie... | [
"75197440@qq.com"
] | 75197440@qq.com |
de555bff1a32f8e3a9d93047cae238e8a3aa29ce | b0a9e9df50749086a7db7e135b2582d87cb8dbc2 | /energy_estimation/nd/fhc/svm/hadron/sample_weighted_estimator_2d.py | aac40196ce6aae3c0ebd3a02e163dc5b2568c47b | [] | no_license | kaikai581/sklearn-nova | 6ff204bfb4351395c8029b80fedfbb6b8702f06d | e16644c0651123fe3ebdf42a9fb3dc50fbd2c2de | refs/heads/master | 2020-03-08T17:26:46.222451 | 2020-01-07T01:12:36 | 2020-01-07T01:12:36 | 128,268,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,781 | py | #!/usr/bin/env python
"""
This script weights each point with inverse square root of its true hadronic
energy when fitting. This is equivalent to modifying the SVM loss function.
Two predictors are used, namely calibrated hadronic energy, and one swappable
varisble.
"""
from __future__ import print_function
print(__... | [
"shihkailin78@gmail.com"
] | shihkailin78@gmail.com |
7ce22c0d3c1840a8b15bf306b73f4eaade25b3f0 | c80ae9c1decd51252f8d623ded02b1003eb369c2 | /web/movies/migrations/0003_auto_20170827_1727.py | 27edc80f52dabe8be01eff1bc0d86b5e77aa52e9 | [] | no_license | wudizhangzhi/demo | 5fa605709fb6f3d90b530d65149298d98b45c7fd | 679933b7fdacbf7942c1cceb4f69da8b9e7d4bdd | refs/heads/master | 2021-01-20T12:42:40.050376 | 2017-09-30T02:15:11 | 2017-09-30T02:15:11 | 90,399,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-27 09:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movies', '0002_auto_20170826_1532'),
]
operations = [
migrations.AddField(
... | [
"zhangzhichao@promote.cache-dns.local"
] | zhangzhichao@promote.cache-dns.local |
cc22681d605c52facf8d17b0ff1cd2612d797397 | eb5ab5ce3763f5e5b80a38f77ee98b7b954d726e | /cciaa/portlet/calendar/tests/base.py | 34f3751741116d33cc8d925131230f0af4066c0c | [] | no_license | PloneGov-IT/cciaa.portlet.calendar | 088e400c567066ce486f6dfb6eaa2f482abd0471 | 81aa9deb5e082520604946387a6a60dd229db21a | refs/heads/master | 2021-01-21T19:28:56.055750 | 2013-11-20T16:48:08 | 2013-11-20T16:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | from Products.Five import zcml
from Products.Five import fiveconfigure
from Testing import ZopeTestCase as ztc
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import onsetup
@onsetup
def setup_product():
"""Set up additional products and ZCML required to test this produc... | [
"keul@db7f04ef-aaf3-0310-a811-c281ed44c4ad"
] | keul@db7f04ef-aaf3-0310-a811-c281ed44c4ad |
b94eb3cd9714f1550d11a2faa1808f08db720be0 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/storage/delete.py | b0dd92d45fc1d77f4de21763de0131975f546827 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 5,897 | py | # -*- coding: utf-8 -*- #
# Copyright 2013 Google LLC. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
f08c6bfd9d1ae8773db3560b2864739bc460de2e | 4716314a21040600df9c186eefa9182ad6aab9d7 | /civil_war/settings.py | b81ccbfb701633189dc2ec406661c89e9c140834 | [] | no_license | muilee/politician_analytics | 164a7127ca5fe74a399cf83abc8b25d2e64bff24 | 54b2761f880e5f441f299909266ebbfb4e4a5a29 | refs/heads/master | 2021-05-12T13:43:24.811319 | 2018-01-31T12:21:14 | 2018-01-31T12:21:14 | 116,940,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | """
Django settings for civil_war project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | [
"matt@localhost.localdomain"
] | matt@localhost.localdomain |
6faafc33a8fa0bcb600ee25a8837c929a209e065 | 9054a65b931267d15d74ad992f947d348e0a039f | /hw0/code/python_tutorial.py | 2f781d96bfa2f67f823357da87ca917398da18dd | [] | no_license | saunair/Autonomy | e0ba30b3e6301477efabc125880fcd7ee47bc0de | 01621595250daeb858ddd096dfa67b8e1d4fe0c5 | refs/heads/master | 2021-06-13T07:09:04.409729 | 2017-02-24T02:09:47 | 2017-02-24T02:09:47 | 81,028,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | #!/usr/bin/env python
import numpy as np
import operator
def print_list(l):
print l
def sort_manual(shops):
shops_sorted = []
values = [ v for v in shops.values() ]
#TODO: Here implement manual sorting using loops
for i in range(0, len(values)):
for j in range(0, len(values)-i-1):
... | [
"snnair@andrew.cmu.edu"
] | snnair@andrew.cmu.edu |
dff8c7bdbed01f6050d2849d52ffd0a9b798193a | bcf09471588530a543b1eca8fd2938ee10c1a9c5 | /api-service/api/service.py | 320dbfe7cf29e4250393d9fe4930558d7373abd8 | [] | no_license | dlops-io/video-in-out | 34bf5ded0a3d48a678cd4f47f4edade11ef6131a | c2cd180e5f00f67d9fcce532b728a92950ae25aa | refs/heads/main | 2023-08-20T13:21:37.479774 | 2021-10-25T12:48:55 | 2021-10-25T12:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | from fastapi import FastAPI
from starlette.middleware.cors import CORSMiddleware
from starlette.requests import Request
from starlette.responses import JSONResponse
from starlette.staticfiles import StaticFiles
from api.routers import video
# Setup FastAPI app
app = FastAPI(
title="API Service",
description=... | [
"shivasj@gmail.com"
] | shivasj@gmail.com |
28b5d104d8e8eb1a445ac2a3359068286e7227cf | dde3f20bc5d50bb87f735f88645a07d9789ada2a | /contrib/seeds/generate-seeds.py | 885030bca90708d6cc21d0386331627e2401a544 | [
"MIT"
] | permissive | wai1496/Quaz | 6c96dd0009df9254127d4e37d5398e0e09b355c9 | 8cea70d86e0b38cd580a8de457d1890b4710c0d2 | refs/heads/master | 2021-04-15T03:37:17.426013 | 2018-03-16T08:43:39 | 2018-03-16T08:43:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,366 | py | #!/usr/bin/python
# Copyright (c) 2014 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the directory tha... | [
"devquaz@gmail.com"
] | devquaz@gmail.com |
9ff2745dddde91c4bb375c36b46f51ff6af9493f | fe19282d91746bd21d1daed624d6d5102a871d8d | /assign5/models.py | 05082fd5e43de3bfec644355f7fc8ca81186f2b1 | [] | no_license | vivekpradhan/autograder | 344410aa8f7fa8c93137ec56762b949be77c24ae | 0cd8c24d0ba1c8f2af129c1c2a7bd7a7bbe0853d | refs/heads/master | 2021-01-24T10:34:04.424425 | 2017-10-09T12:07:32 | 2017-10-09T12:07:32 | 69,992,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,500 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Submission(models.Model):
eid = models.CharField(max_length=10, blank=False)
document = models.FileField(upload_to='media/')
uploaded_at = models.DateTimeField(auto_now_add=True)
assignment_num = mod... | [
"vivkripra@gmail.com"
] | vivkripra@gmail.com |
c19e0105d28469432092df67fa6a94f2cb27922c | 4a6f3bc478dcd0c32f376bd0369940526a0242c9 | /main.py | 71941dc9451847800a7fe93dae92f57aa8973e66 | [
"Apache-2.0"
] | permissive | 1999foxes/python-gobang-bilibililive | 179495d2f7c8094a490dcb90a386a42cffafe61b | efc1f631a8c9686177b92a3e54c183ee227a45d2 | refs/heads/master | 2023-02-24T14:46:29.337799 | 2021-01-31T18:00:25 | 2021-01-31T18:00:25 | 334,715,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,352 | py | # _*_ encoding:utf-8 _*_
import os
def installlibs():
libs = {"numpy","requests","pygame"}
try:
for lib in libs:
os.system("pip3 install "+lib)
print("Successful")
except Exception as err:
print("Failed:", Exception)
try:
import pygame
from pygame.locals ... | [
"hl1999@yeah.net"
] | hl1999@yeah.net |
e14ac3d06dfe4effe84493b1c1438edb268348ab | ab692ff0773367a0190309d3e7c3785a46a205d3 | /main_finetune_imagenet.py | ffeb8bccfc2c0e2dac3ba392891c83eea971c116 | [
"MIT"
] | permissive | sAviOr287/imagenet_ICLR | f6da8149bf4280c923c584c4e6aade81fc469cf4 | 1ac83d799f5335355161156aa9bba63e0d82a063 | refs/heads/main | 2023-01-13T02:45:53.450571 | 2020-11-15T22:12:36 | 2020-11-15T22:12:36 | 313,132,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,010 | py | import argparse
import os
import random
import shutil
import time
import warnings
import sys
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.distributed as dist
import torch.optim
import torch.multiprocessing as mp
import torch.utils.data
import torch.utils... | [
"jeanfrancois287@hotmail.fr"
] | jeanfrancois287@hotmail.fr |
24a9afca2f817f33c7ce171ef49ab354c5dd6efc | d925eb9cf278a67c7714ffa26f25060ae176cb1a | /09_ingredient_splitter_v3.py | 0cd41a40b08cf10dc8fe487ef18f3d9e721adf97 | [] | no_license | wenqitoh/Recipe-Moderniser | bf188697706d69e836396fbf99e7708962ec9f96 | e257b35f82b70d15bda812dca774f089ce40e68e | refs/heads/main | 2023-06-13T23:24:50.556741 | 2021-07-11T05:04:02 | 2021-07-11T05:04:02 | 372,673,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,474 | py | """Further version of ingredient splitter which splits the ingredients from one lin of input
into quantity, unit, and ingredient
version 3 - testing on full recipe
created by Wen-Qi Toh
7/7/21"""
import re # this is the Regular Expression module
# ingredient has mixed fraction followed by unit and ingredient
full_r... | [
"tohw@middleton.school.nz"
] | tohw@middleton.school.nz |
e7336bb7129d0dba26d5d33533f5b0997f133562 | b53869d9c0b38ecc5f2bef40f03e0146d05c67c5 | /send_mail/core/kafka_connect.py | 420f3ba573dc426a1325a1038a87f916c876b163 | [] | no_license | manhcuong2801/send_sms | 564435736e163b41b06c6d53c79d41ac9ca1886d | 8734ffa74ddf723852d01a4b4ecc9dc3dd4accef | refs/heads/master | 2023-04-03T13:35:43.433808 | 2021-04-23T12:42:59 | 2021-04-24T03:52:22 | 360,880,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | import json as j
from django.conf import settings as s
from kafka import KafkaConsumer as KC, KafkaProducer as KP
class KafkaConnector:
_bootstrap_server = s.KAFKA_SERVER
_topic = "topic_example"
_group_id = "group_example"
def get_consumer(
self,
topic: str = _topic,
group_i... | [
"cuongle@tamdongtam.vn"
] | cuongle@tamdongtam.vn |
9bf4e35570827087d92050fcab5d0ddbc721c47b | e8469a38083f28633b74cfd2cf4399aac11a6514 | /ver.1/selectors.py | 4197f85bcdd90c359aaf3cf34c0d506aec0db4a4 | [] | no_license | JadenHeo/FO4-data-crawling | e67ff2b611e9f3b5c83b3e237e5d06065094d091 | e1d4be6a144985d953c9e57b2aef409d7eddea8a | refs/heads/main | 2023-08-07T17:59:28.884544 | 2021-10-04T07:57:22 | 2021-10-04T07:57:22 | 395,150,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,343 | py | selector = {"name" : "#middle > div > div > div:nth-child(2) > div.content.data_detail > div > div.content_header > div.info_wrap > div.info_line.info_name > div.name",
"pay" : "#middle > div > div > div:nth-child(2) > div.content.data_detail > div > div.content_header > div.info_wrap > div.info_line.info_n... | [
"hhj801@gmail.com"
] | hhj801@gmail.com |
a7ba513d9dbf489347919fd23a3cec055f45149c | e4bf5f3ad3beecf288507470b20ae30849effdb1 | /node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build/config.gypi | fbceeb251c1b9d148e8e13e1a6ab16086dcc9128 | [
"MIT",
"Apache-2.0"
] | permissive | JohnnyLamb/scotch_jwt_token | 6356e30026db88fdac64484e4ca0770b40d0701f | 505db6a587deaefb75df7ad24b718bbac72472db | refs/heads/master | 2021-01-10T16:36:39.379628 | 2015-10-17T23:32:49 | 2015-10-17T23:32:49 | 44,454,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,717 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"icu_data_file": "icudt54l.dat",
"icu_d... | [
"agnusjack@gmail.com"
] | agnusjack@gmail.com |
c246469f12df1abde9b82eeadc65ac655fed42e2 | add649416e475ef5febb207ec3c90ef504a4d5b7 | /Marie Laure/django/mycalendar2/mycalendar2/wsgi.py | 11e4e77fa13f33700e778d5217741c38e3dbf3d6 | [] | no_license | juliencampus/python | e3bc77453d449533db02bc69376ea6d1a4f2e9ba | 323013fa32be74571ccd665cd3faa74ff8a905f3 | refs/heads/main | 2022-12-29T09:09:08.917610 | 2020-10-23T14:55:14 | 2020-10-23T14:55:14 | 303,637,772 | 0 | 4 | null | 2020-10-21T11:12:06 | 2020-10-13T08:29:19 | Python | UTF-8 | Python | false | false | 399 | py | """
WSGI config for mycalendar2 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"marie-laure.riedinger@le-campus-numerique.fr"
] | marie-laure.riedinger@le-campus-numerique.fr |
66bd585e840a22d0e4615b07176d861991dd6612 | da617dbc147d7720490866b279068cdef87e00c9 | /q7.py | 510b9e8113cec4c9b681288211d223574fb7efc6 | [] | no_license | Shailaj97/Python-Assignment-1 | 444750a816bd593fdafb9eebdd9b6b5dd646915f | 55e11b541fbc517da360afc41ea915a1a9af43ea | refs/heads/main | 2023-07-17T06:10:59.775212 | 2021-09-01T04:32:43 | 2021-09-01T04:32:43 | 401,912,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | """ Write a Python program to combine two lists into a dictionary, where the elements of the first one serve as the keys and the elements of the second one serve as the values. The values of the first list need to be unique and hashable.
Sample Output:
Original lists:
['a', 'b', 'c', 'd', 'e', 'f']
[1, 2, 3, 4, 5]
... | [
"noreply@github.com"
] | Shailaj97.noreply@github.com |
74d689c8c85d5d2561a6abc2a06ba077a7496e0e | 0fa82ccc0b93944c4cbb8255834b019cf16d128d | /Az/temp.py | caf3bc211fbf8fccda75e10e1fee9d32caddc4ec | [] | no_license | Akashdeepsingh1/project | 6ad477088a3cae2d7eea818a7bd50a2495ce3ba8 | bdebc6271b39d7260f6ab5bca37ab4036400258f | refs/heads/master | 2022-12-13T23:09:35.782820 | 2020-08-27T14:22:37 | 2020-08-27T14:22:37 | 279,722,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | def mincostTickets (days, costs):
dp = [0] * 366
for i in range (1,max (days)+1):
if i in days:
dp[i] = min (dp[i - 1] + costs[0], dp[i - 7] + costs[1], dp[i - 30] + costs[2])
else:
dp[i] = dp[i-1]
return dp[:max (days) + 1][-1]
def mincostTickets2( days, costs):
... | [
"Akashdeep_S@Dell.com"
] | Akashdeep_S@Dell.com |
8602f77cf80a23e828ccb71e0edd430dbdbb77c2 | b97fd4dd496456bbbeda8d774bb179f1b03b0dba | /day11/part2.py | c85016a17ab75f04ef04b920eb6f2beffec81e34 | [] | no_license | woranov/aoc2020 | 7666cabc96267936fda04a58244193db19e9489e | 671ef866e0c81a5f70898a7e6ec725b1f78378fb | refs/heads/master | 2023-02-11T19:03:01.437839 | 2020-12-25T15:29:46 | 2020-12-25T15:29:46 | 317,584,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,312 | py | import functools
import itertools
_TESTCASE = """\
L.LL.LL.LL
LLLLLLL.LL
L.L.L..L..
LLLL.LL.LL
L.LL.LL.LL
L.LLLLL.LL
..L.L.....
LLLLLLLLLL
L.LLLLLL.L
L.LLLLL.LL
""".strip().splitlines()
def compute(data):
"""
>>> compute(_TESTCASE)
26
"""
grid = [*map(list, data)]
rows = len(grid)
cols =... | [
"wor4nov@gmail.com"
] | wor4nov@gmail.com |
425b4486fa1fd6169f158a9b5cac855c66475095 | 7d5d8492c2d88b88bdc57e3c32db038a7e7e7924 | /IPCC-CMIP5/bias_correction/bc_extract_gcm.py | ef32727acb01fb3b19decbfd3c17f5d35dbfc4ff | [] | no_license | CIAT-DAPA/dapa-climate-change | 80ab6318d660a010efcd4ad942664c57431c8cce | 2480332e9d61a862fe5aeacf6f82ef0a1febe8d4 | refs/heads/master | 2023-08-17T04:14:49.626909 | 2023-08-15T00:39:58 | 2023-08-15T00:39:58 | 39,960,256 | 15 | 17 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | # ---------------------------------------------------------------------------------
# Author: Jaime Tarapues
# Date: September 23th, 2014
# Updated: July 28th, 2014
# Purpose: Purpose: extract values daily data of cmip5
# ----------------------------------------------------------------------------------
import os, sy... | [
"jaime.tm8@gmail.com"
] | jaime.tm8@gmail.com |
114910137765ee9246494ef8b775990951da0d1f | b321ca6310cd84bd8603fa9685365bb2a4acc945 | /公司真题/拼多多/phone_number.py | 144534cc23631ee5da9b7f732598e83ae9e6c492 | [] | no_license | baixiaoyanvision/python-algorithm | 71b2fdf7d6b57be8a2960c44160f2a7459e153ae | 6cbb61213af8264e083af1994522929fb7711616 | refs/heads/master | 2020-08-27T03:41:08.332322 | 2019-10-02T13:28:49 | 2019-10-02T13:28:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py |
# line1 = input()
# line2 = input()
line1 = '6 5'
line2 = '787585'
N, K = [int(i) for i in line1.split()]
line2 = [int(i) for i in line2]
result = []
line2_set = set(line2)
min_money = 99999999
for val in line2_set:
sub_vals = [abs(val - number) for number in line2]
sort_sub_vals = sorted( list(range(l... | [
"18310523922@163.com"
] | 18310523922@163.com |
b60bee7fa7a89fdb6ab3d2d5194fd86e56b4801b | 0f0a7e594c53acbce5e93fad653abed2a3d02466 | /zhidao/middlewares.py | 190647c84d6e3a0b2e42f946e2fa9359d599844a | [] | no_license | ElliottYan/crawler | de1e5a7ae1dbf0bd3bd3faa9224180ebb7051964 | cab3e078ec85b13219bee836fa136c2f43eb4f2f | refs/heads/master | 2020-03-24T06:12:58.864182 | 2018-07-27T03:05:52 | 2018-07-27T03:05:52 | 142,520,505 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class ZhidaoSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy ac... | [
"elliottyan37@gmail.com"
] | elliottyan37@gmail.com |
faccd9f59e65cffd749ab558cda959576930e26c | 0ea5d0f75e7cb9f8a7fd213e2eb4f29a339ea285 | /wnfportal_python/wnfportal_dm_konten.py | a209429b9d0e3bab64b37d89220a66b699158bda | [] | no_license | wnf58/wnfportal | 1d5d7ba8e5b63b69feb016e57fc2ee7efccc8400 | 2d593fdd9266f44d60297f7f96b6b4a2c4c7ea98 | refs/heads/master | 2022-12-17T03:08:06.001400 | 2020-09-26T11:51:59 | 2020-09-26T11:51:59 | 115,601,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,164 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import fdb
import os
import configparser
import wnfportal_dm_datenbank
import wnfportal_tools as T
import time
from reportlab.graphics.shapes import Drawing
from reportlab.graphics.charts.barcharts import VerticalBarChart
from reportlab.graphics.charts.piecharts import ... | [
"dev@wlsoft.de"
] | dev@wlsoft.de |
8b97fb6b8a7718a7b273586c5c11230785335bf5 | 51d348426c6e5fa79f2e77baf59bdbf8357d9f12 | /week10/Инфоматрикс/d.массивы/1.py | 39e914161d08fae03f9bd90984ada04bfe926359 | [] | no_license | Zhansayaas/webdev | c01325b13abf92cef13138d7ffc123cf9bc4f81a | dd054d0bcafc498eccc5f4626ab45fd8b46b3a3f | refs/heads/main | 2023-04-10T23:33:30.469465 | 2021-04-17T10:21:53 | 2021-04-17T10:21:53 | 322,049,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | n=int(input())
a=input().split()
for i in range(0,n,2):
print(a[i],end=' ') | [
"noreply@github.com"
] | Zhansayaas.noreply@github.com |
c0d29ea3e56d0a9a1129476105c243a8a2566772 | 8d2a124753905fb0455f624b7c76792c32fac070 | /pytnon-month01/周六练习-practice on saturday/独立完成/OOP-fanb-1_student_manager_system.py | 370a4186757ac84e2f949eca27cb01e393c5348c | [] | no_license | Jeremy277/exercise | f38e4f19aae074c804d265f6a1c49709fd2cae15 | a72dd82eb2424e4ae18e2f3e9cc66fc4762ec8fa | refs/heads/master | 2020-07-27T09:14:00.286145 | 2019-09-17T11:31:44 | 2019-09-17T11:31:44 | 209,041,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,533 | py | #学生信息管理系统:
# 数据模型类:StudentModel
# 数据:编号 id,姓名 name,年龄 age,成绩 score
class StudentModel:
def __init__(self,name,age,score,id = 0):
self.name = name
self.age = age
self.score = score
self.id = id
# 逻辑控制类:StudentManagerController
# 数据:学生列表 __stu_list
# (#私有属性,提供只读)
# 行为:获取列表 stu... | [
"13572093824@163.com"
] | 13572093824@163.com |
25055392f3e0fab759ac48b34d2c85f1944c0249 | dbbb304265437b2d591d6d42953efc96bd8b4a24 | /blog/views.py | c19f66271a7b0a97d3aca9fd694b2641d6ce7c38 | [
"Apache-2.0"
] | permissive | echessa/django-ex | 647edbea8a9dd7159420af96dd3414bdaaf8aff3 | 33758d254886d3298acba20c0d231bcd6bb6c09a | refs/heads/master | 2020-12-02T21:12:24.753773 | 2017-07-05T09:09:18 | 2017-07-05T09:09:18 | 96,271,914 | 1 | 1 | null | 2017-07-05T03:11:15 | 2017-07-05T03:11:15 | null | UTF-8 | Python | false | false | 1,463 | py | from django.shortcuts import render, redirect
from django.utils import timezone
from django.shortcuts import render, get_object_or_404
from .forms import PostForm
from .models import Post
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('-published_date')
return ... | [
"jokhessa@yahoo.com"
] | jokhessa@yahoo.com |
7df32dbb48957659309409618ea967eed738d6a8 | ff1dbdb9baed0be909aaf60b7b78bef9441bfcd9 | /review_homework/ifstatement_review.py | 330b7c81edabb8d705433d5648705605630043d7 | [] | no_license | singh-sonali/AP-Compsci | ab2c923c79e67eebc021168c720de10618c58583 | 1f26e40b88532cfb9aee39d18fb2ea254d8a1083 | refs/heads/master | 2020-03-28T06:43:33.963516 | 2019-03-20T12:04:25 | 2019-03-20T12:04:25 | 147,855,508 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,381 | py | # Partner 1:
# Partner 2:
''' Instructions:
Work with a partner to complete these tasks. Assume that all variables are declared; you need only write the if-statement using the variables indicated in the description. Write your solution below the commented description.
'''
''' 1.
Variable grade is a character. ... | [
"ssingh20@choate.edu"
] | ssingh20@choate.edu |
0d9c11e159814d4603e92a7da12ac0993d494912 | db012fc9716bb27e9ff22078bc17edb7745b3f13 | /examples/plot_classifier_dl85_plot_tree.py | c1d3f1657cd0965bb5b814f5562272bc9936fd33 | [
"MIT"
] | permissive | VivanVatsa/pydl8.5 | df15b99c313da29b32a0571c59e90225aaa71566 | 8686839d000e47375b5ed70ad42828e6c3eef6e6 | refs/heads/master | 2023-08-14T11:25:06.511972 | 2021-09-21T18:50:13 | 2021-09-21T18:50:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | """
==============================================
DL85Classifier example to export tree as image
==============================================
"""
import numpy as np
from sklearn.metrics import confusion_matrix
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
from dl85 i... | [
"aglingael@gmail.com"
] | aglingael@gmail.com |
0312b66b3e7867e0ab472288a6c5e79ae7d68dd8 | dacdc8eca8258abc9c82b3a87d97f6a461503edf | /data/process_data.py | 5318bb50a55db8751ba09ebc42d4a40d09cfc52d | [] | no_license | eherdter/MessageClassifier | ce8f6503c9980068f038e1aa777c9c6a99921bf6 | 449431fab917b9294acce82977eb1d7c44e42bb3 | refs/heads/master | 2020-06-12T12:10:07.883068 | 2019-07-10T19:15:54 | 2019-07-10T19:15:54 | 194,294,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,016 | py | import sys
import pandas as pd
from sqlalchemy import create_engine
def load_data(messages_filepath, categories_filepath):
''' Loads messages and category datasets and joins them
together using the common id.'''
''' Returns: pandas.DataFrame '''
#Load data.
messages = pd.read_csv(messages_filep... | [
"eherdter@mail.usf.edu"
] | eherdter@mail.usf.edu |
ef3863b249697253ae98c02f073111c5d9fb56a5 | 2406724e872efc10c25fff5fb4b551c65cf4f298 | /Codes/Pong_game.py | 48b58da41228fb79140ac11d9c18925f1ca9ffb7 | [] | no_license | Pradhyuman12/Beginner-Hacktoberfest | c6d57b692f34f19b3334a7b364ca084f2b85bf95 | 5e0184d0825e5bafbb4625c31396bca9e6792c7a | refs/heads/main | 2023-08-30T11:31:58.281561 | 2021-10-29T18:19:26 | 2021-10-29T18:19:26 | 412,496,299 | 0 | 0 | null | 2021-10-01T14:20:41 | 2021-10-01T14:20:40 | null | UTF-8 | Python | false | false | 2,339 | py | import turtle
wn = turtle.Screen()
wn.title("Pong Game")
wn.bgcolor("black")
wn.setup(width=800, height=600)
wn.tracer()
#Score
score_a = 0
score_b = 0
#Paddle A
paddle_a = turtle.Turtle()
paddle_a.speed(0)
paddle_a.shape("square")
paddle_a.color("white")
paddle_a.shapesize(stretch_wid=5, stretch_len=1)
paddle_a.pe... | [
"noreply@github.com"
] | Pradhyuman12.noreply@github.com |
edbc5843172b296c275bf4d38092d8dabd6213fe | bd3b1eaedfd0aab45880c100b86bc4714149f5cd | /student/dyp1/11.py | c6e63aa6b223b8b5cdbb13353fe5872beeeea0a7 | [] | no_license | ophwsjtu18/ohw19f | a008cd7b171cd89fa116718e2a5a5eabc9f7a93e | 96dedf53a056fbb4d07c2e2d37d502171a6554a6 | refs/heads/master | 2020-08-08T12:59:38.875197 | 2020-04-01T10:38:14 | 2020-04-01T10:38:14 | 213,835,959 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | import numpy as np
import cv2
capture = cv2.VideoCapture(0)
face_cascade = cv2.CascadeClassifier('C:\\Users\\DING-DING\\AppData\\Local\\Programs\\Python\\Python36\\Lib\\site-packages\\cv2\\data\\haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('C:\\Users\\DING-DING\\AppData\\Local\\Programs... | [
"noreply@github.com"
] | ophwsjtu18.noreply@github.com |
34fc9717d6ba5477e1aa8e8cc9c71b46b8ee7fd2 | 2f2feae3dee5847edbf95c1eeb14e656490dae35 | /2022/day_13_distress_signal_1.py | e89f9fb5f20ecbd78b7b38f8d58eca40028031af | [] | no_license | olga3n/adventofcode | 32597e9044e11384452410b7a7dda339faf75f32 | 490a385fb8f1c45d22deb27bf21891e193fe58a2 | refs/heads/master | 2023-01-07T09:19:04.090030 | 2022-12-25T13:31:22 | 2022-12-25T13:31:22 | 163,669,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | #!/usr/bin/env python3
import sys
import json
from typing import Iterable, List, Any, Tuple, Optional
def is_right_order(left: List[Any], right: List[Any]) -> Optional[bool]:
iter_left = iter(left)
iter_right = iter(right)
while True:
item_left = next(iter_left, None)
item_right = next(i... | [
"olga3n@gmail.com"
] | olga3n@gmail.com |
00333130e10a7ca7f1207ec2896cc61f017a3839 | 24e2b10c6d13deac27bd4b8af07907de4c9e8bcd | /traingle.py | 413d3bf8ba2ac1ff1e4a678063e1efb7d2d49f1a | [] | no_license | adilreza/docker-env-var-python | a5b2e0269511d588bc2de30ab35f09a86138419a | 156d3fa9b3fc25e56a40edc091818d6c86ba017b | refs/heads/main | 2023-03-29T12:02:06.158341 | 2021-04-08T12:25:56 | 2021-04-08T12:25:56 | 355,896,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import os
def triangle(n):
k = n - 1
for i in range(0, n):
for j in range(0, k):
print(end=" ")
k = k - 1
for j in range(0, i+1):
print("* ", end="")
print("\r")
n = os.environ.get('TR_NUMBER')
# TR_NUMBER=8 python3 traingle.py
# docker run -e TR_NUMBER=7... | [
"adil.reza@selise.ch"
] | adil.reza@selise.ch |
a6d438db0bc275cba915649a275ab52409197ac7 | 059b6f2963515af4ee4a5342f45ab05a4f431b60 | /string reverse.py | 2e5ff44a2f7f05c080f8e1c3b9e5f2ab8162ad8f | [] | no_license | Surya-Narayanan0503/Python-Programs | 70c20c0b1e07420b3058bbdd6ac88bcb9b1c273a | 2fcdc31ed3c4cc068f2a23ef02a465673c0700e7 | refs/heads/master | 2020-06-20T02:40:16.488314 | 2019-07-19T08:49:07 | 2019-07-19T08:49:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | n=input()
i=n[::-1]
print(i)
| [
"noreply@github.com"
] | Surya-Narayanan0503.noreply@github.com |
9c7357576d312b577fde01d5955822e944b46c7b | d0f11aa36b8c594a09aa06ff15080d508e2f294c | /leecode/1-500/401-500/472-连接词.py | 4edb1540db15225aeb711ca0bd0954fa23641a7b | [] | no_license | saycmily/vtk-and-python | 153c1fe9953fce685903f938e174d3719eada0f5 | 5045d7c44a5af5c16df5a3b72c157e9a2928a563 | refs/heads/master | 2023-01-28T14:02:59.970115 | 2021-04-28T09:03:32 | 2021-04-28T09:03:32 | 161,468,316 | 1 | 1 | null | 2023-01-12T05:59:39 | 2018-12-12T10:00:08 | Python | UTF-8 | Python | false | false | 1,016 | py | class Solution:
def findAllConcatenatedWordsInADict(self, words):
def search(word, pre_dict):
if len(word)==0:
return True
cur_dict = pre_dict
for i,c in enumerate(word):
cur_dict = cur_dict.get(c,None)
if not cur_dict:
... | [
"1786386686@qq.com"
] | 1786386686@qq.com |
6696d49ec45e3e7ddf84f6655775d70902a6d38f | 9fbec0955358e0dc3c24e2b7e5e7aeb4fa12f963 | /info.py | 5eacb8d09d67a42912218c1f4e3c65871f39fe3c | [] | no_license | AyselHavutcu/FlaskBlog | 9b0142d7a400a6b73f9367d42a09e421e1ab1a0b | 820e1e4740eb1f31ed302b208f61af0ba32f8f14 | refs/heads/master | 2020-07-26T01:20:28.171975 | 2019-09-14T18:30:30 | 2019-09-14T18:30:30 | 208,485,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | from flask import Flask,render_template,flash,redirect,url_for,session,logging,request#web sunucumuzu aga kaldıracak
from flask_mysqldb import MySQL
#mysql icin gerekli olan fromları dahil ettik
from wtforms import From,StringField,PasswordField,validators
#bunlarda formda kullanmak icin dahil ediyourz
from passlib.h... | [
"42868243+AyselHavutcu@users.noreply.github.com"
] | 42868243+AyselHavutcu@users.noreply.github.com |
713b479653ed7764eabad8e061233c7fc1086f24 | 0c2ca3b3c7f307c29f45957e87ed940c23571fae | /fhirclient/models/bodysite_tests.py | a3aaa3593967b5390640ec04095fcc47317b4e4a | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | myungchoi/client-py-1.0.3 | 49c3d15b8dfb845e7cbc933084ed5fcc37e7c4ed | 08e4e5828fb461c105907fd454b19dfc8463aad8 | refs/heads/master | 2021-06-25T04:36:26.952685 | 2021-02-11T16:27:26 | 2021-02-11T16:27:26 | 209,669,881 | 0 | 0 | NOASSERTION | 2021-03-20T01:45:42 | 2019-09-20T00:11:10 | Python | UTF-8 | Python | false | false | 2,663 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 on 2016-03-23.
# 2016, SMART Health IT.
import os
import io
import unittest
import json
from . import bodysite
from .fhirdate import FHIRDate
class BodySiteTests(unittest.TestCase):
def instantiate_from(self, filename):
d... | [
"myungchoi@gmail.com"
] | myungchoi@gmail.com |
9f704f4065654f070e858bc08858abfdfaeb1745 | 796198b4613ae30ff7735d7a8473064b8ecb0247 | /abc140/D.py | cc3f77d7f92a52f460d82787bdd62c4304943b30 | [] | no_license | Tomoki-Kikuta/atcoder | 993cb13ae30435d02ea2e743cf3cead1a7882830 | 97b886de867575084bd1a70310a2a9c1c514befe | refs/heads/master | 2021-07-16T15:14:00.706609 | 2020-06-29T06:15:13 | 2020-06-29T06:15:13 | 184,001,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | n,k = map(int,input().split())
s = input()
h = 0
for i in range(n-1):
if s[i] == s[i+1]:
h+=1
print(min([n-1,h+2*k]))
| [
"tomoki0819@akane.waseda.jp"
] | tomoki0819@akane.waseda.jp |
c269309d5a7e596f3b4d827d0729f1e6c2e2640b | 5bcbf7fc2fd10bfd51df37aa806cc2305d0fe077 | /mongokit_ng/schema_document.py | 0a0063bf73fc7e9d786e72cf9a10b383720c63aa | [
"MIT"
] | permissive | Windfarer/mongokit-ng | 29f9e10af48af77a44e829a2910c88f92af1f218 | 52844c9242c4483694d4f3f65cf0d70a13df1c35 | refs/heads/master | 2023-08-20T02:39:45.240670 | 2020-02-20T03:37:05 | 2020-02-20T03:37:05 | 216,472,772 | 15 | 3 | MIT | 2023-09-14T17:11:44 | 2019-10-21T03:47:34 | Python | UTF-8 | Python | false | false | 42,541 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2009-2011, Nicolas Clairon
# 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 abov... | [
"windfarer@gmail.com"
] | windfarer@gmail.com |
98cbe8d9f4b12239cf1d517d7cd9c165e3ac2876 | 83df3d7773a4c7c3da8824cd3e6b3f0d6e6cfa07 | /world.py | 92f49a7703868c98e84f84d8b7d82c02437552a6 | [] | no_license | azmzing/c | d4f8690ae0ad43c6441b6559995042ebe730108e | 69b2511683d709961034ec46814400bccae0ae5b | refs/heads/master | 2020-03-15T23:42:45.118141 | 2018-05-07T06:13:12 | 2018-05-07T06:13:12 | 132,399,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | print"b hellow
| [
"amazing.zanjun@outlook.com"
] | amazing.zanjun@outlook.com |
9ee04dc56eec32ca912fa8b81136a49356550e03 | dfbe04629c68e49c0671b0ed1890d82d96180164 | /graphsage/datafetcher.py | 28421aa404bbc8ea1a9ba08303cc535fc7c67f45 | [] | no_license | bluelancer/MLAdv2020Proj | 417d9c3853297541d48036f3af5999aea68465ad | 7057492f7b4f171aa1bdf5a6f792c5fbdc679d35 | refs/heads/main | 2023-04-30T02:47:49.581387 | 2021-01-12T11:47:17 | 2021-01-12T11:47:17 | 325,494,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | from collections import defaultdict
from scipy.io import mmread
import numpy as np
class DataFetcher:
def __init__(self):
return
def load(self, dataset):
if dataset == 'cora':
return self.load_cora()
elif dataset == 'pubmed':
return self.load_pubmed()
def... | [
"zhaoyu@zhaoyudeMacBook-Pro.local"
] | zhaoyu@zhaoyudeMacBook-Pro.local |
27687dfa574c3d83cfd55d79f9b60849782917ff | 09a32f98165c20fbc0c519f826cbd445b1906d54 | /merge_opt.py | 03c8ad504fd12016c93a0f874d11647442ea508f | [] | no_license | huuthai37/LSTM-Consensus | d2ec2d63073a1a996c827c1f71a8edc4e763a8dc | 97233cf0a4176b0a0fc69c4c7051a5289628e48f | refs/heads/master | 2020-03-17T05:53:33.663364 | 2018-07-13T04:12:50 | 2018-07-13T04:12:50 | 133,332,710 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-d', '--dataset', help='Dataset', default='ucf101')
parser.add_argument('-s', '--segment', help='Number of segments', default=3, type=int)
parser.add_argument('-debug', '--debug', help='Number of classes', default=1, type=int)
args = parser.parse_a... | [
"huuthai37@gmail.com"
] | huuthai37@gmail.com |
4d5620e88c6380c33efa91a55293aac691fa505e | 64cacb589af13865d8c1aef9b27e65bfed742967 | /md_image_backup_py3.py | 576aa084a8a8b6120e98074c4de692836ce5a214 | [] | no_license | eggfly/markdown-img-backup | 6f984a380ca837b69446f3e805cfeba19a8dd40f | 6d0e5bb2e679b081ca0b960869d87a17b5e1cdda | refs/heads/master | 2022-01-11T17:53:49.165213 | 2018-12-26T00:30:34 | 2018-12-26T00:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | # coding=utf-8
import sys
import os
import re
import requests
import urllib.request
def backup():
try:
# 备份指定文件的img
download(str('你的markdown文件路径' + sys.argv[1]))
except IndexError:
# 备份文件夹下的所有img
search('你的markdown文件路径', '.md')
def search(path, word):
for filename in os.li... | [
"hj531@live.com"
] | hj531@live.com |
1c69ce72d7668c9f655b4077f3fe6fef28f0a157 | eeaeb0f39262fa04233614ce377ac9dcd04f9b5e | /pyQt 5/my library pyqt5/QComboBox.py | a7d29c80b1d80e2e2fc041a97ce4e8fc09f32595 | [] | no_license | akashian4/python_example | 70811300c97c3e9874b2c6f47a05569e7451e4df | 64d57bfd9fe2d5ce71db3e1a03f0e6c4dfe3497f | refs/heads/main | 2023-08-12T10:03:21.417469 | 2021-09-30T19:41:03 | 2021-09-30T19:41:03 | 412,203,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | ###QComboBox
import sys
from PyQt5.QtWidgets import QWidget,QLabel,QApplication,QComboBox
class F(QWidget):
def __init__(self):
super().__init__()
self.setUI()
def setUI(self):
self.lbl = QLabel(" ", self)
self.lbl.resize(50,20)
self.lbl.move(50, 150)
... | [
"akashian4@gmail.com"
] | akashian4@gmail.com |
c57c61d86c5572b1948a7a0502578e0809ad170e | e36472948f74fd5ed35fc64801a59db4efa27070 | /part_1/04_6_test.py | 174139579a5653b3edaa5a336c79a87ac1f5214f | [] | no_license | anton1k/python_crash_course | 051aad7c5a043830d8cc9e5fd314f568bf0f4a53 | 80f302074e5fef48fb40e72f7d79ab4b8658b38a | refs/heads/master | 2020-07-18T23:28:00.871466 | 2019-09-04T14:06:12 | 2019-09-04T14:06:12 | 206,333,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | square = list(range(1, 21, 2))
print(square)
for i in square:
print(i)
| [
"40913464+anton1k@users.noreply.github.com"
] | 40913464+anton1k@users.noreply.github.com |
ef9b7a69e3843ac4417cdf88c780113699fa503d | e3278ff5f2d28cb6c07ee89ed75e189661f287aa | /trains/urls.py | 1c45f047095e93987125920c10a1f1fa4289c3b1 | [] | no_license | ArturYumagulov/Travel_City | 3f7ba8581f81e71785e3ed76834ab948f1fbc2b3 | 09dbc58d09925c7bac19b74df0223a1340b60830 | refs/heads/master | 2023-03-14T14:43:45.317546 | 2021-03-06T22:05:28 | 2021-03-06T22:05:28 | 279,313,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from django.urls import path
from .views import home, TrainCreateViews
urlpatterns = [
path('add/', TrainCreateViews.as_view(), name='add'),
path('', home, name="home")
] | [
"zico.13288@gmail.com"
] | zico.13288@gmail.com |
2602f0d5d20194361a9b3aaf0ea2586b950fa49b | 5af72fd35f3f967be5b6c195eaedd8739df3ee47 | /SnakeBlock.py | fb9c5afcab27983b4ec802adfbba6fe9c6d19186 | [] | no_license | tomluko/PythonSnake | 0d43e0d7ba37fd4ca29b37856294d5f63502412b | e336cf1853fa060f3b33445d485a2b353bb0dccc | refs/heads/master | 2021-01-10T02:43:08.590884 | 2015-06-02T19:52:54 | 2015-06-02T19:52:54 | 36,740,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | import Block
#snakes body segment
class SnakeBlock(Block.Block):
def __init__(self, size, position):
solid = True
removable = False
color = (0, 153, 0)
super(SnakeBlock, self).__init__(solid, removable, position, size, color)
| [
"tomazasax@yahoo.com"
] | tomazasax@yahoo.com |
3351932d3d3a75e35b6b1fcbd967fa8b054bd65b | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/theano/sandbox/cuda/tests/test_tensor_op.py | cb9162354ac7fa9120cf4dd3b05d616e784e0f36 | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 5,283 | py | """
This file test tensor op that should also operate on CudaNdaray.
"""
from __future__ import absolute_import, print_function, division
from nose.plugins.skip import SkipTest
from nose_parameterized import parameterized
import numpy
import theano
from theano import tensor
import theano.tensor as T
import theano.tes... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
1f54af48b0de5de3deb1326d6dfc2e3b9b08012e | 7246faf9a222269ce2612613f58dc5ff19091f10 | /baekjoon/3000~5999/4949_균형잡힌세상.py | 69e300ec26003ff839d8917a542427b2e7f68cc4 | [] | no_license | gusdn3477/Algorithm_Study | 87a2eb72a8488d9263a86db70dadc7944434d41d | 3fefe1dcb40122157845ffc542f41cb097711cc8 | refs/heads/main | 2023-08-30T12:18:21.412945 | 2021-09-28T13:00:11 | 2021-09-28T13:00:11 | 308,364,230 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | a = input()
while a != '.':
poc = []
for i in range(len(a)):
if a[i] == '(' or a[i] == '[':
poc.append(a[i])
if a[i] == ')':
if not poc or poc[-1] != '(':
poc.append(a[i])
break
if poc[-1] == '(':
poc.pop()
... | [
"gusdn3477@naver.com"
] | gusdn3477@naver.com |
170a083c957c7be6132d27953ebb3e394bf8b3e5 | 130a98632d2ab4c171503b79e455b7aa27a1dda4 | /models/research/object_detection/inputs_test.py | 10dd078873c538661d0f57fd9154cb10f2b0c150 | [
"Apache-2.0",
"MIT"
] | permissive | aboerzel/German_License_Plate_Recognition | d7fc0314295f5cf0c9d7ae9c93a795e3ef1c5787 | 6fc53292b1d3ce3c0340ce724c2c11c77e663d27 | refs/heads/master | 2023-01-30T18:08:37.339542 | 2023-01-07T07:41:36 | 2023-01-07T07:41:36 | 245,586,430 | 34 | 12 | MIT | 2023-01-07T07:41:37 | 2020-03-07T07:16:51 | Python | UTF-8 | Python | false | false | 75,857 | py | # Copyright 2017 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 required by applica... | [
"andreas.boerzel@gmx.de"
] | andreas.boerzel@gmx.de |
c49836f2e56130e13c2dacd1c19ed24793523e5b | 16f3cffc0e62d660103ada3185112caa9ee2ad4f | /marksheet.py | dabf959855ebef4b01e86ce099927e2117779242 | [] | no_license | hirak0373/AI-Practices | 5601adcf91427cf57de4703b16b794e931c4b05b | 4c23dc90c193f64f7511f1c1b9fc8cf79c776998 | refs/heads/master | 2020-06-25T10:03:15.001939 | 2019-07-28T11:25:42 | 2019-07-28T11:25:42 | 199,278,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | eng =input("Enter marks of English: ")
bio = input("Enter marks of Biology: ")
chem = input("Enter marks of Chemistry: ")
pak = input("Enter marks of Pakistan Sudies: ")
sin = input("Enter marks of Sindhi: " )
obtain =int(eng)+int(bio)+int(chem)+int(pak)+int(sin)
print (obtain)
per =int(obtain)/425
per1=per*100
print("... | [
"Hirak0373"
] | Hirak0373 |
92c7ef3d0dd3f76c0176fecc684bb6e824e0fa9f | 1521645e97dfa364ce4ecc34ef97aa00510a5d7c | /cart/test_forms.py | aa48460ebb4a3c7ccf62ff39049c915e09f89007 | [] | no_license | kajamiko/u_m_website | 0327903646ae21a024e0d95df937c49605c9e615 | 158953e5e375856c80ab34859c581b628681657e | refs/heads/master | 2022-12-14T03:38:42.702543 | 2018-10-23T16:08:30 | 2018-10-23T16:08:30 | 139,005,832 | 0 | 0 | null | 2022-12-08T02:48:16 | 2018-06-28T10:53:31 | JavaScript | UTF-8 | Python | false | false | 838 | py | from django.test import TestCase
from .forms import CartAddTicketForm
from django.contrib.auth.models import User
class TestTicketForm(TestCase):
def test_for_updating(self):
"""
Normal, as from a real view
"""
form = CartAddTicketForm({'donation': 20, 'update'... | [
"kajaths@gmail.com"
] | kajaths@gmail.com |
c4d7e36734ac5ab04af3745ef7239a1f37d315fd | 1005b44f86523c377b607c69d96a0f6cbfbd62c7 | /Weather ToPy_bot/bot.py | 9cb6e7c3d32246ca654b13e6d664c8f6a65b966c | [] | no_license | Tofan93/Python | 7e3308b99ea8f0db374a74d778d0fe6229bc0f59 | 20c0085bf8592bc2bee6ca35360701054993fd2f | refs/heads/master | 2022-11-11T17:53:13.606553 | 2020-07-09T06:31:24 | 2020-07-09T06:31:24 | 258,720,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | import pyowm
import telebot
owm = pyowm.OWM('b819a91869f45bb714b2cb0a0c647732', language = 'ru')
bot = telebot.TeleBot('1223510132:AAEg4XkxdnSa92GP4dfcamjb3uznTB9rkzM')
@bot.message_handler(content_types=['text'])
def send_echo(message):
obs = owm.weather_at_place(message.text)
city = obs.get_weather()
te... | [
"noreply@github.com"
] | Tofan93.noreply@github.com |
05fa6c5fd8aacf359f1d9088e7f7c6cdb1a8d9ab | 08fe9b6afba5708f8d51d79c1d503b8e87ff96a8 | /Sets/symmetric_diff.py | 844629f4671501b4b5d6caaf92c07ccc6faf3d96 | [] | no_license | Harsh-2909/HackerRank-Python-Solutions | 667e83290c1421150b8ce782a2ffad82b84c4f57 | 2a6c5f013870791eb45c34e470c2a797a49f4cc1 | refs/heads/master | 2020-05-30T21:54:37.185556 | 2019-08-10T06:17:10 | 2019-08-10T06:17:10 | 189,983,460 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | m = int(input())
m_set = set(map(int, input().split()))
n = int(input())
n_set = set(map(int, input().split()))
m_set, n_set = list(m_set - n_set), list(n_set - m_set)
l = [*m_set, *n_set]
l.sort()
for i in l:
print(i) | [
"harsh29092000@gmail.com"
] | harsh29092000@gmail.com |
a7f1a34e1dbca643640865dc62b696a4dbff6b39 | 8e97978634fad317bf33090f17097a13c4fda856 | /test_sdio/encode_image.py | c616b0f8e802b3128408e9e05439d803e6d574ea | [] | no_license | meesokim/bitbox | 31459009e2c8d54fa1538dab3c3d625920ce60d9 | 40e1883f6eaa16eb22e28072479c08c423262a58 | refs/heads/master | 2021-01-22T13:30:54.894759 | 2015-12-13T16:04:48 | 2015-12-13T16:04:48 | 29,057,990 | 0 | 0 | null | 2015-12-13T16:04:48 | 2015-01-10T13:29:39 | C | UTF-8 | Python | false | false | 684 | py | 'very simple encoder for one raw image data to .bin file. expects small data <32k pixels'
import sys, struct
from PIL import Image
def reduce(c) :
'R8G8B8A8 to A1R5G5B5'
return (1<<15 | (c[0]>>3)<<10 | (c[1]>>3)<<5 | c[2]>>3) if c[3]>127 else 0
src = Image.open(sys.argv[1]).convert('RGBA')
print "dimensio... | [
"makapuf2@gmail.com"
] | makapuf2@gmail.com |
24276040f76be3849eb58873430e762060fc75dd | 1e28d01665dd609bd443d44d974e712e0e1c2535 | /contact/forms.py | 4a95f7e4edb08715bc23dc62fc1c9693db764e90 | [] | no_license | Code-Institute-Submissions/Time-To-Rent | 44a4c4f918de786dfdd0426baf55669323a892f9 | b77a0f914cb32fd51af369db2987c3b1c42c5065 | refs/heads/master | 2023-06-15T07:41:52.557881 | 2021-06-29T22:26:12 | 2021-06-29T22:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | from django import forms
from .models import Contact
class ContactForm(forms.ModelForm):
class Meta:
model = Contact
fields = ('full_name', 'email', 'contact_reason',
'message')
def __init__(self, *args, **kwargs):
"""
Add placeholders and classes, remove aut... | [
"Marc.gulliver100@gmail.com"
] | Marc.gulliver100@gmail.com |
83547d23b166d298dba8225456e446df30293c67 | c90962d0f3233205d4dc99391f6aab3402fa7ed8 | /parPDE/__init__.py | 4557dcb4c8a5af05fe9207a2e5b7ce6f3b66bbdf | [
"BSD-2-Clause"
] | permissive | chrisjbillington/parpde | f97a1303c404ec83f22df15c6fb4e80485176150 | 4f882cbbb9ad6c57814e4422e9ba063fa27886a0 | refs/heads/master | 2022-11-10T16:18:31.489069 | 2019-01-22T21:01:25 | 2019-01-22T21:01:25 | 275,920,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from .parPDE import *
try:
from __version__ import __version__
except ImportError:
__version__ = None | [
"chrisjbillington@gmail.com"
] | chrisjbillington@gmail.com |
283e4abc4a65e52a5d9b59d3a8238102b56d822c | 0ac08e36e128573a612bacfc85380b3917fa0fe3 | /18.py | c9374871b9e3c9a97e498e80ae2d80395bd24801 | [] | no_license | Henrique970/Monitoria | 9db148435b54e1175310c3bc0c134eb38e8a76be | 361fa3da50b5710eb44959962197e434c302dc7a | refs/heads/master | 2020-07-15T00:42:32.563702 | 2019-08-30T19:00:50 | 2019-08-30T19:00:50 | 205,439,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import random
nome = input('Informe seu nome: ')
escolha = input('Informe i para impar e p para par: ')
numero = int(input('Informe seu número: '))
computador = random.randint(1,10)
soma = numero + computador
print('Você escolheu,',numero,'e o computador,',computador)
print('A soma dos dois é',soma)
if escolha == 'i':
... | [
"henrydossantos1560@gmail.com"
] | henrydossantos1560@gmail.com |
5686a856ed2ea24c4fa6fc47556d57a680b78c88 | 8a9dfd08d8bfbe07f948851ada95085bb279daa2 | /Python/26-Remove-Duplicates-from-Sorted-Array.py | ff24549e704ad2e566add902835aae98f2e34dfb | [] | no_license | lukk47/LeetCode | e437dd39f27ce40f421b03dad50935ec55239dc6 | 038cadf2b50c3aa28a7c3834f5e0dc1e8ef40e38 | refs/heads/master | 2023-09-01T18:57:09.888955 | 2021-02-08T09:46:12 | 2021-02-08T09:46:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
index = 0
last_number = None
while index < len(nums):
if nums[index]!=last_number:
last_number = nums[index]
index ... | [
"noreply@github.com"
] | lukk47.noreply@github.com |
5eefceddfd476526d32fbc4ea9938a8b6fcb3b42 | a2f1179b0b096d2a4d6dfd2f98b9b7b1febe0cfd | /321810304056_Suppose passing marks of a subject is 35.Take input of marks from user and check whether it is greater than passing marks or not.py | c6ec71228a3825e0aaa6c9890caae47ae3d118e8 | [] | no_license | pooji12/Python | 55d811a9e310d97bb30e1c0f5187970dd67cbb80 | d72309086e7ead17c491c12a85374a5f6d514a42 | refs/heads/master | 2022-11-07T03:44:45.505998 | 2020-06-23T16:16:39 | 2020-06-23T16:16:39 | 273,281,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py |
# ## Suppose passing marks of a subject is 35.Take input of marks from user and check whether it is greater than passing marks or not
marks=float(input("Enter marks of the student"))
if marks>=35:
print("Student has passed in the subject")
else:
print("Student has failed in the subject") | [
"noreply@github.com"
] | pooji12.noreply@github.com |
70f6b0b090ff0d91affb41cb57adece59c466bc2 | 14f821fc6d2150fe8387f2e58753482cb01ff081 | /Tests/test_ordoneaza_crescator.py | edf715ca43e67aedd1a0d17f7deb76aec9e040c6 | [] | no_license | AP-MI-2021/lab-567-raluca2002 | d9798e2a16b14ab2ab718ac28d379c0488b8a7d5 | 27365dc8412dbc8c9c761433236e4fd80f487f65 | refs/heads/main | 2023-09-02T13:27:49.140431 | 2021-11-10T11:36:54 | 2021-11-10T11:36:54 | 420,812,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | from Domain.librarie import creeaza_carte, get_id
from Logic.ordodeaza_crescator import ordoneaza_crescator
def get_data():
return [
creeaza_carte(1, 'v1', 'gen1', 60, 'silver'),
creeaza_carte(2, 'v2', 'gen1', 20, 'none'),
creeaza_carte(3, 'v3', 'gen2', 12, 'gold'),
creeaza_carte(4... | [
"raluca0602372yahoo.com"
] | raluca0602372yahoo.com |
45d34cd5b697ed70c4cfa9dfffdfe76104672c8f | e6956b020916b7b120f289f4790b73f836e9a0aa | /leads/models.py | dd4cc43f0c8aef3c5200381eb5175ba22af15b46 | [] | no_license | wilsonmwiti/testyangu | 4628afdd0ba533324aa642e597eeb5d60933e480 | a6e2c5bebf7fce8bccdc9e413583095cda522c1a | refs/heads/main | 2023-06-21T18:59:14.999930 | 2021-07-05T06:47:26 | 2021-07-05T06:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | from django.db import models
from django.db.models.fields import BooleanField, CharField, TextField
from django.contrib.auth.models import User
CONVERTED_CHOICES = [
('No', 'NO'),
('Yes', 'Yes'),
('NA', 'Not applicabe'),
]
class ContactUs(models.Model):
time=models.DateTimeField(auto_now_add=True,verb... | [
"Iamdeveloper254@gmail.com"
] | Iamdeveloper254@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.