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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
97a0f2744a464e8b985f8af31d6623715d42c189 | 1ebbe94ff3c5475b01be75bdac07b6d0dea3d96c | /data_types_variables/ascii_table_print.py | 689cd9b7e84f225a660d254af1860c600a2758bf | [] | no_license | konsatanasoff/python-fundameltals-2020 | fae71bac5254d5102019d6493af90f44b3083ccd | 922d4b15394654bd474f56c69ef4e2f855aff0a1 | refs/heads/master | 2023-01-30T12:20:37.837293 | 2020-12-13T20:53:40 | 2020-12-13T20:53:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | start = int(input())
end = int(input())
sum = ""
for i in range(start, end + 1):
sum += chr(i) + " "
print(sum, end=' ')
| [
"noreply@github.com"
] | noreply@github.com |
0d42a1d1d1761dbd3245d8a6f400581fb6f1dcba | 711504efdf973fecea6071b2c74e1ce7edeeab9d | /venv/Scripts/easy_install-3.6-script.py | a49bdf015e009572cd5d86750183a7507fb78a02 | [] | no_license | lost222/pycharm-git | 182addf8d8f4ac72081f823cee0e41cb7b6c914c | 14c588cdd984c43431fc524ecb76ffa38c31c470 | refs/heads/master | 2021-04-27T00:18:43.327974 | 2018-03-04T13:37:01 | 2018-03-04T13:37:01 | 123,791,253 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 466 | py | #!C:\Users\ÑîÆð\PycharmProjects\untitled4\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"1610299@mail.nankai.edu.cn"
] | 1610299@mail.nankai.edu.cn |
adeabef3f494bc9c41687167b509aa615f902b2a | 03ad802be7a8658be0fe301f1bde9675dd7735e0 | /clionly.py | a1ab05bfc324aead4d1f0b1ab75aadf35d9dae06 | [] | no_license | Sonnenlicht/BasicPython | 466544d8c4e8bf063ee4ae509c871645288c7e71 | bf36d60b101c1f2c11d09045bf125160f68cb149 | refs/heads/master | 2021-01-16T21:40:03.450477 | 2016-07-14T23:46:30 | 2016-07-14T23:46:30 | 63,377,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | #! python3
# Command line only
import sys
if __name__ == "__main__":
print('Hello world!')
else:
#print('This module can only be run from the command-line')
raise ImportError("This module can only be run from the command-line")
| [
"bs.suriyhaprakhas@gmail.com"
] | bs.suriyhaprakhas@gmail.com |
98a0fa51dd4d6202ca092845161834059bd7de61 | cea0fe3ca380e9d81fc1e9d3830504f79ae2cf13 | /pyThesaurus-1.1-dev-r371/pyThesaurus/Thesaurus.py | 9e87cf674bd0d18dbcf4ce045b8d5a7bd0f47cf0 | [] | no_license | Uniltaron/Projektseminar | 93551bb424db091e183de1ad90165300ded9bcec | 8436e5b64f84ba6f715c8e062473b22bcf836d23 | refs/heads/master | 2021-01-19T20:29:46.944008 | 2013-04-01T01:43:12 | 2013-04-01T01:43:12 | 8,251,628 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,878 | py | # begin: Platecom header
# -*- coding: latin-1 -*-
# vim: set ts=4 sts=4 sw=4 :
#
# $Id: Thesaurus.py 361 2008-07-31 22:07:50Z flarumbe $
#
# end: Platecom header
from config import *
from Concept import Concept
def _join_(self, s, l=[]):
"""
_join_(object, str, list<str>) -> list<str>
Get a list of terms@lang in... | [
"liesa.witt@uni-duesseldorf.de"
] | liesa.witt@uni-duesseldorf.de |
62db8ed5f3c02a9e5e943c507938b3956708f48b | 832793d1146296ad0740b2c1ba0abc3870db04dd | /thunder_backup/liff/views.py | be06e4686ce641fbdff01ee0ea02f942c3b4ad58 | [] | no_license | mayo233/todolist | 161d7b1b2fc46f347e16fc6786bdf10200995cc7 | 85fa4fe03ee114b245a4a9ec0bc68709a2abf483 | refs/heads/main | 2023-06-03T08:45:46.779620 | 2021-06-14T17:06:43 | 2021-06-14T17:06:43 | 376,892,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | from django.http.response import HttpResponse
from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'liff/index.html') | [
"honda.ichigo@outlook.jp"
] | honda.ichigo@outlook.jp |
e4226e9a6f0e6afb491866424386c3e226400951 | c68b2f6eb401e9fbe3ecf7fc07257817f9c2e18d | /src/model/edsr.py | dd686890e2337914d66d519bee0fe203716ab92c | [] | no_license | Shualite/PCAN | d0ee4f756913065d73c79120af313e476017cfa1 | 7f306a8816b699b4b6504f703330c3cfe612595a | refs/heads/main | 2023-09-01T22:10:53.875021 | 2021-11-01T03:09:14 | 2021-11-01T03:09:14 | 423,322,160 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,067 | py | import torch
import torch.nn as nn
import math
from IPython import embed
class MeanShift(nn.Conv2d):
def __init__(self, rgb_mean, sign):
super(MeanShift, self).__init__(3, 3, kernel_size=1)
self.weight.data = torch.eye(3).view(3, 3, 1, 1)
self.bias.data = float(sign) * torch.Tensor(rgb_mea... | [
"shualite@outlook.com"
] | shualite@outlook.com |
3b59957514af2caceea80eae22b19dd7ea646767 | 43c7490d67ac0f122249e53d9540cf1772ecec45 | /parking/shared/rest_models.py | 89e560f8f27884289a25bd24b221dc002c079553 | [] | no_license | manfredlift/parking | 4882bac59bf570408452d48f5634b249f78bd782 | 65acd71f4df16a1f511ff74369a332e61b995d70 | refs/heads/master | 2020-03-17T14:55:34.538109 | 2018-05-24T09:19:43 | 2018-05-24T09:19:43 | 133,691,530 | 0 | 0 | null | 2018-05-16T16:03:22 | 2018-05-16T16:03:22 | null | UTF-8 | Python | false | false | 1,079 | py | import attr
from parking.shared.location import Location
from parking.shared.util import ensure, validate_non_neg, validate_pos
@attr.s
class ParkingLot:
capacity: int = attr.ib(validator=[attr.validators.instance_of(int), validate_pos])
name: str = attr.ib(validator=attr.validators.instance_of(str))
pric... | [
"harveyhuntnexus@gmail.com"
] | harveyhuntnexus@gmail.com |
61b784153c320622f4cee73ed3dc4ca481c8393a | 019ac6dfab10f38d93ad6d983123a0d03e8b2488 | /tonal_test.py | 6aa88fdcd1f2e219aca6abfb86c7fb553a6988ad | [] | no_license | ivanstaryu/machine_music | 3d351982f14225621bd8956b63905cf2b03a96e2 | 93c66903c23286212129ccc6c3700bbbf032bc72 | refs/heads/master | 2023-03-17T00:26:22.968999 | 2018-05-12T21:52:27 | 2018-05-12T21:52:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | import unittest
import tonal
import mingus.core.notes
from scales import SCALE_NAMES, TonalScale
import mingus.core.scales as scales
notes = mingus.core.notes
to = tonal.Tonal()
ts = TonalScale()
class TestTonal(unittest.TestCase):
def test_scale_octave(self):
self.assertEqual(12, to.add_octave(0, 1))
... | [
"gabe@g4briel.com"
] | gabe@g4briel.com |
8ddbfe8ab9df2f58b47bb9ef5f93de40257fa062 | 351d1501f9ac83206c95c2750bf51513b6c50585 | /Mutation.py | 267d72c2e0e48672963538725a3198166544fa7a | [] | no_license | profharimohanpandey/GA_Implementation | 809123daf2a2abb4cfa3477057955353a5243938 | b2c09db526e3c94bf404e507fd7ac6aa0b639781 | refs/heads/master | 2021-05-10T18:41:56.004784 | 2018-01-19T13:59:51 | 2018-01-19T13:59:51 | 118,131,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | def mutate(self, network):
"""Randomly mutate one part of the network.
Args:
network (dict): The network parameters to mutate
"""
# Choose a random key.
mutation = random.choice(list(self.nn_param_choices.keys()))
# Mutate one of the params.
network.network[mutation] = ... | [
"noreply@github.com"
] | noreply@github.com |
53221261103f62df267243163280b0d29520d6f0 | d0dc833a66e273f4620f0ed8cd6952e0d36c692e | /main.py | 77c535df48b6b1c237979aecf0df07cbbc991acc | [
"MIT"
] | permissive | huhumt/pi-weather | b999ef703ed8ed5e7f2c847c4b00b46cad20dee7 | 6b76ece39c6fb3cc66ef84ce20d186a8ac2df90c | refs/heads/master | 2021-08-19T20:05:14.622968 | 2017-11-27T09:51:30 | 2017-11-27T09:51:30 | 109,334,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from get_weather import weather_info
from text_to_speech import tts_engine_voicerss
def main():
"""
this is the main entry of the project
"""
forcast = weather_info("./config.json", "./city_list.json")
weather_response = forcast.request_server()
... | [
"nepood@gmail.com"
] | nepood@gmail.com |
b0155ad0ed13c971cdf30436d585cb8a9d9318d9 | 77b16dcd465b497c22cf3c096fa5c7d887d9b0c2 | /Horan_Colby/Assignments/great_number_game/gng.py | 936d2ca5c0a84843305b1bdbb8dfd1c764cfbaab | [
"MIT"
] | permissive | curest0x1021/Python-Django-Web | a7cf8a45e0b924ce23791c18f6a6fb3732c36322 | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | refs/heads/master | 2020-04-26T17:14:20.277967 | 2016-10-18T21:54:39 | 2016-10-18T21:54:39 | 173,706,702 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | from flask import Flask
from flask import render_template
from flask import request
from flask import redirect
from flask import session
import random
app = Flask(__name__)
app.secret_key = 'SEEEEEEEECRET'
@app.route('/')
def index():
if not 'bingo' in session:
session['bingo'] = random.randint(0,100)
session['h... | [
"43941751+curest0x1021@users.noreply.github.com"
] | 43941751+curest0x1021@users.noreply.github.com |
fc6181d4d4c8cf151123dee3de63d63ce68e97ec | ed0f9eb0c1cb4858d91ef7e2d435db307f23a5a5 | /dist/manage/django/conf/locale/tr/formats.py | c231c93977e377b76ab7aec4fbcc111ccb8f0abf | [] | no_license | hjlhehehe123/ATC_Data | 81b4622e7279aa9cc2013db8cc5a71d33561e768 | ad35e61afb8e87d8bab2d2b3aeea08e9409d56c0 | refs/heads/master | 2023-07-13T16:23:45.951584 | 2021-08-20T12:37:34 | 2021-08-20T12:37:34 | 256,994,694 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | # This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd F Y'
TIME_FORMAT = 'H:i'
DATETIME_FORMAT = 'd F Y H:i'
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT... | [
"1598214715@qq.com"
] | 1598214715@qq.com |
baaa7bd14df062ec3185125c7a9d62977def5c7a | ccbe6552deddbad3e8456d4c5fab4ad5db63cabe | /snapshot_v0.py | 0d15ab8b6a4df5c347bba6340f9aa98009247a82 | [
"MIT"
] | permissive | hyzzd/network-analysis | aad75abb6cfd5ca813aaf9718dabf53ba39ff47a | c655867ad1762bb9052aafbbeb41cb6951dd2863 | refs/heads/master | 2020-03-19T16:44:47.424799 | 2018-06-09T14:04:21 | 2018-06-09T14:04:21 | 136,728,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | src_path = "dataset/"
main_file = "2018.csv" #"First Set of Data - Transactions.csv"
import csv
import collections
import pprint
with open(main_file, "rb") as fp:
root = csv.reader(fp, delimiter=',')
result = collections.defaultdict(list)
# ignore the header
#next(root, None)
for ro... | [
"noreply@github.com"
] | noreply@github.com |
6e48bdf04c597e0bc5a74e637d938b26abd117c5 | a17a15211ac8b47d01c616ae87fccb0e95d8298d | /return_to_origin.py | 5f53e244b0ce3f93b2a85a68ee48fdf862d24807 | [] | no_license | prosis369/Data-Structures | 68a12a95db530adc153ca6b38b4310f5ab321f5a | cbfdb37f3145066285bf463360f9486bb64fe580 | refs/heads/master | 2021-06-25T12:10:52.894381 | 2020-11-11T08:54:17 | 2020-11-11T08:54:17 | 149,286,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | '''
657. Robot Return to Origin
There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0) after it completes its moves.
The move sequence is represented by a string, and the character moves[i] represents its ith move. Valid moves are ... | [
"pniharika369@gmail.com"
] | pniharika369@gmail.com |
b5919d81dd0c5e583bc7ef6b72ce82c72879c2d1 | 48d52acfdc03388338967b1020894926cf63be07 | /tutorial/quickstart/views.py | 3a8a9250d9a93d301ed8f4eb9492123542f97a73 | [] | no_license | KimochiiStyx/Come_on_Django | f84df689265620fbacc8e9dcc3a7c5e4f5826f64 | 9397bfe800c2c7e1188cc1752dcd27d94c43a0ee | refs/heads/master | 2021-05-11T15:27:39.704349 | 2018-02-02T12:32:47 | 2018-02-02T12:32:47 | 117,451,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | from django.contrib.auth.models import User, Group
from models import Company, Person
from rest_framework import viewsets
from tutorial.quickstart.serializers import UserSerializer, GroupSerializer, CompanySerializer, PersonSerializer
class UserViewSet(viewsets.ModelViewSet):
"""
API endpoint that allows user... | [
"598053856@qq.com"
] | 598053856@qq.com |
2c82b1ab8790a344e35364649acf9e32e55e9933 | 0a38890df3e399fbae4cde9c4af5ac3270e8cd29 | /Notes/Examples of HMMs/hmm_from_scratch.py | 75a88b8bf69c39a581d58bb049c21fef7a89cfc1 | [] | no_license | likitha-9/Gene-Prediction-Using-HMM-Stochastic | a38e301a01ccff642319da0277a1a6dc92135939 | 93c0ca3e0c946ba6fdb7243ec869fe7b770dad54 | refs/heads/master | 2022-07-27T08:58:04.965277 | 2020-05-16T23:38:05 | 2020-05-16T23:38:05 | 255,749,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,601 | py | import numpy as np
import pandas as pd
class ProbabilityVector:
def __init__(self, probabilities: dict):
states = probabilities.keys()
probs = probabilities.values()
assert len(states) == len(probs),"The probabilities must match the states."
assert len(states) == len(set(... | [
"sivalikitha.valluru9@gmail.com"
] | sivalikitha.valluru9@gmail.com |
4a2785205967c6c824b45557d5974388b35d9303 | f6afa468d9ab1d8eaa4b3ae032dbac1009c298f6 | /list1.py | 7ac94b575fc16ae99bacc4b4ca01482a3659083a | [] | no_license | RGD-Consulting/Py4E | 4b5064ad01009de938551a117145b6d11dde3de6 | b264f34871aca58401ddd8f0529c2f8524cbda17 | refs/heads/master | 2020-09-09T04:19:06.594672 | 2019-11-13T01:42:50 | 2019-11-13T01:42:50 | 221,346,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | li = [1, 2, 3, 4, 5]
li2 = ['a', 'b', 'c']
li3 = ['Notebooks', 'Sunglasses']
print(li3[1])
li4 = li3[0:10]
print(li3)
| [
"noreply@github.com"
] | noreply@github.com |
f0dc516e03770d35c6f59f1e277face9cd05a17c | a2b3987eb8a50bee311f869e39d1c76e738ba2b8 | /authlib/oidc/core/__init__.py | 212ebc031322a8079d2801b905c424145e5fbd5b | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lepture/authlib | abb3e14b8ccacef9ade90b28efed827ab65aadce | 1846d6ac66e89bdb3268fffe15b7e49289966366 | refs/heads/master | 2023-09-04T04:27:56.650738 | 2023-09-02T07:42:47 | 2023-09-02T07:42:47 | 108,510,280 | 4,091 | 481 | BSD-3-Clause | 2023-09-13T13:04:38 | 2017-10-27T06:52:26 | Python | UTF-8 | Python | false | false | 650 | py | """
authlib.oidc.core
~~~~~~~~~~~~~~~~~
OpenID Connect Core 1.0 Implementation.
http://openid.net/specs/openid-connect-core-1_0.html
"""
from .models import AuthorizationCodeMixin
from .claims import (
IDToken, CodeIDToken, ImplicitIDToken, HybridIDToken,
UserInfo, get_claim_cls_by_response_t... | [
"me@lepture.com"
] | me@lepture.com |
23a3f87aa0a881b55e2bb861584609f639b08b47 | 3810eb933366169ee226e2db0358475b47e28f72 | /PYTHON_Stack/POO/Tienda/store.py | 4b32b0d767fc46073429a1f1ceb5ba12d0a0efd7 | [] | no_license | jsilva16/Fullstack_Python | 53b823f7cfc5e03f03bf90587c72230ce00e7e06 | fe31679dea5439fb68900984fd1d2b01a7105045 | refs/heads/master | 2023-08-13T12:59:12.509492 | 2021-10-11T12:17:49 | 2021-10-11T12:17:49 | 365,086,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | import product as prod
class Store:
def __init__(self, name, products=[]):
self.name = name
self.product = products
def add_product(self, new_prod):
self.product.append(new_prod)
print(f"Se ha agregado el producto '{new_prod}'")
return self
def delete_prod(self... | [
"juansilva.ambiental@gmail.com"
] | juansilva.ambiental@gmail.com |
5157c2d0dc477639cd2f76410375bd04ba1d25a4 | 59c6728976844b8003d4fc61cc9942b086df10d4 | /236/p236.py | 2b5c1160f13ed388d9e16dc731bdce9efb8a8726 | [] | no_license | hacatu/project-euler | dcafa013c3f9d630fe007357716f1408a31876ba | af43ffc5c1cd0f59fb1eea8215d4a5d48bdfc808 | refs/heads/master | 2022-06-19T21:43:52.693907 | 2022-03-08T09:29:30 | 2022-03-08T09:29:30 | 23,130,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | """
Product Supplier
A
1 Cavier 5248 = 2^7.41 640 = 2^7.5
2 Cake 1312 = 2^5.41 1888 = 2^5.59
3 Joint 2624 = 2^6.41 3776 = 2^6.59
4 Wine 5760 = 2^7.3^2.5 3776 = 2^6.59
5 Truffles 3936 = 2^5.3.41 5664 = 2^5.3.59
Sum 18880 = 2^6.5.59 15744 = 2^7... | [
"hacatu5000@gmail.com"
] | hacatu5000@gmail.com |
6030376f26f6c9dd2c2c056562fb2d8ac34ce972 | 1444fbd2f50814edef7924d7a470ce6adb5e0e3e | /ribbit/urls.py | 1d80fc78eb3d9a0fef58f08ba4f507be9dbffb8d | [] | no_license | elpepov1/ArquitecturaTarea | 7db9739b38e64e1fc1049307d219bd1922dae25c | 02b408613a41077ad7d911868b333fc91caa4954 | refs/heads/master | 2022-10-15T11:19:29.253665 | 2018-11-05T04:18:42 | 2018-11-05T04:18:42 | 155,798,751 | 1 | 2 | null | 2022-10-02T12:20:18 | 2018-11-02T01:42:11 | Python | UTF-8 | Python | false | false | 814 | py | """ribbit URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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-bas... | [
"estoespajugarlol@gmail.com"
] | estoespajugarlol@gmail.com |
d79abed3ffcac17237d816221c670d8599e5f161 | 608110dbe16505e4266fe8eb740acb0ab9fd00b5 | /examples/3d/reconstructSurface.py | e8095edeff28901e3d9d35e9204e315913cd4d55 | [] | no_license | jiawu/tegm | 02c5a07ac863691493d6b0f313160047cefd6cf1 | 8208dddb87aecfc0b66f5b17e027cd661de95b39 | refs/heads/master | 2020-04-06T11:47:46.339002 | 2018-11-27T18:44:22 | 2018-11-27T18:44:22 | 157,430,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | #!/usr/bin/env python
# This example shows how to construct a surface from a point cloud.
# First we generate a volume using the
# vtkSurfaceReconstructionFilter. The volume values are a distance
# field. Once this is generated, the volume is countoured at a
# distance value of 0.0.
import os
import string
import vtk... | [
"jia@dhcp-10-105-147-15.wireless.northwestern.private"
] | jia@dhcp-10-105-147-15.wireless.northwestern.private |
decec552e407b3d47f8a23848bfeaa27f005a136 | dcfdc9822308c21824b27c051f221a971864e637 | /desafio3aula4.py | 828b1a0b5d44cc32942839f0e0098b411e90ea1c | [] | no_license | renato29/python3-mundo-1 | 04d5f23bcf8e0f5558cd6db129896ce09e14cc6f | a7d92d5b620d56efbcaeced8e00ff4a5fb80ae23 | refs/heads/master | 2020-04-23T05:10:21.013030 | 2019-02-15T21:54:29 | 2019-02-15T21:54:29 | 170,931,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | n1=input("qual o numero 1?\n")
n2=input("qual o numero 2?\n")
soma=n1+n2
print("soma",int(n1)+int(n2))
| [
"noreply@github.com"
] | noreply@github.com |
15ee603bb46c7437c126e4b32fb4f106c68bb73a | f4229b9711cc42b9b386fd446438eaf6ab746a86 | /test.py | ed2b56c357556c0270dde69976e54f4b8c4fd0f9 | [
"WTFPL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Spectrum-CETB/competitive-programming | b71947a0539856831f4aef834f1933e83c36b0b7 | b0827db89916ccda94c6ed38e136fcd7776f5c22 | refs/heads/master | 2022-12-25T04:12:02.477797 | 2020-10-04T08:10:41 | 2020-10-04T08:10:41 | 283,162,958 | 2 | 7 | WTFPL | 2020-10-04T08:10:42 | 2020-07-28T09:21:00 | C++ | UTF-8 | Python | false | false | 19,069 | py | #!/usr/bin/env python3
import collections
import os
import os.path
import shutil
import subprocess
import sys
import re
languages = [
'arr', 'c', 'cc', 'cr', 'd', 'hx', 'factor', 'go', 'jl', 'js', 'lid',
'lisp', 'ml', 'moon', 'nim', 'ooc', 'pi', 'pony', 'py', 'rb', 'rkt', 'rs',
'sage', 'sml', 'stanza', 'sh... | [
"alfredo.beaumont@gmail.com"
] | alfredo.beaumont@gmail.com |
7425a766feedb1ae2a6e8685f175afea1555fcc6 | 273f9563deff1808e4e31dc41057d6f84003352b | /devise/views.py | 6ba9a64539be3b1f9f4cae20f7b5cd3d14170f75 | [] | no_license | AliBouss/Projet-Convertisseur | ac68dd5cd402e25e2f0fd5744e4cdafbe64e43b8 | c475393abaf267ed2faa19ce9f84c2775fbe8298 | refs/heads/master | 2023-05-08T14:43:56.165323 | 2021-06-05T19:41:09 | 2021-06-05T19:41:09 | 359,482,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from django.http import HttpResponse
from django.shortcuts import render
def dashboard(request):
return render(request, 'devise/index.html')
| [
"bouss58@hotmail.com"
] | bouss58@hotmail.com |
c8e9442da4ebb733f6e9bb872e2ccdb0a579b212 | d83da199e48e4ce8c6f1f7cb47ea536b9fdf982f | /recognition.py | 077860b949f3d596fb63a1d9635b6732c02d73ca | [] | no_license | q-viper/final-devanagari-word-char-detector | 2554eb4fb9ae897603e83061c90f320fd0e76b24 | a7c797dc79e60d0b488c4c00b2cfb3a4520325df | refs/heads/master | 2022-12-21T05:11:25.836142 | 2022-12-10T09:51:28 | 2022-12-10T09:51:28 | 218,929,020 | 11 | 7 | null | 2022-12-10T09:51:29 | 2019-11-01T06:46:40 | Jupyter Notebook | UTF-8 | Python | false | false | 1,597 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 11 13:50:41 2019
@author: Quassarian Viper
"""
from preprocess import preprocess, detect_text, localize
from predictor import prediction
import numpy as np
import matplotlib.pyplot as plt
import cv2
def recognition(gray_image, show):
segments, template, th_img, text_... | [
"viper.incarnation@gmail.com"
] | viper.incarnation@gmail.com |
0aae9de573edfa7e08995672402e04f0342010e6 | 6cb50457e2eca73d103745e2397b034693844892 | /venv/Lib/site-packages/selenium/webdriver/phantomjs/webdriver.py | 37c4b1b4359c5116756b5d38373ce338956f0b0c | [] | no_license | alecloz/SberTask | 64b3047c4500df1e70f982cc8060e56f66e79449 | 0ba42cedfde4cbab6d471edc51e5d8d2d55826c8 | refs/heads/master | 2023-06-10T02:10:43.115179 | 2019-11-07T13:13:35 | 2019-11-07T13:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"alec.loz@yandex.ua"
] | alec.loz@yandex.ua |
43beae783785a193a2d0257f6ce6022528215360 | 936d82330f6cabea8ffea6ed35cfd6784b3a7885 | /Baselibs/src/cmor/setup.py | 6ed3f068422483f55b52448f54c4ec59c9902040 | [] | no_license | aborle1/GEOS2 | cc4386e19c76fb0c11a98348ffde5f1b55db9337 | 47d25a0d92a20efd7fd552a934ae0dd7422320ba | refs/heads/AJ | 2021-07-20T22:40:42.121925 | 2017-10-17T18:46:08 | 2017-10-17T18:46:08 | 104,491,177 | 0 | 1 | null | 2017-10-17T18:46:09 | 2017-09-22T15:39:23 | Fortran | UTF-8 | Python | false | false | 3,959 | py | import numpy
from numpy.distutils.core import setup, Extension
#from numpy.distutils.ccompiler import CCompiler
import os,sys,string
include_dirs = [numpy.lib.utils.get_include(),"include","include/cdTime"]
library_dirs = [ os.path.join("/home/aborle1/Baselibs/powerpc64le-unknown-linux-gnu/gfortran_5.4.0-openmpi_1.10... | [
"aborle1@umbc.edu"
] | aborle1@umbc.edu |
3b92ebb7a15d77a2d75fce08ac0def58af58f685 | a23a41dd766b05cd3f762e179f01986e7203ce73 | /第一次实验/sy1_t1.py | 2fe2dfcb64a03aaffb7c88cb08172019c108bf45 | [] | no_license | QYQYQYQYQYQ/Python_bjtu_courses | 041b4c3d2e810dab6b6b482d1996939308308f5d | 446d6b3cd30e3c1338e74026c95fc8748c97ffc4 | refs/heads/master | 2022-09-11T22:17:01.603294 | 2020-05-30T17:46:24 | 2020-05-30T17:46:24 | 266,515,072 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | #authored by 邱烨卿-19271222
f1 = open("text1.txt",'r')
t1 = f1.read()
print(t1)
f1.seek(0)
t2 = f1.readline()
while t2 != "":
print(t2,end="")
t2 = f1.readline()
f1.seek(0)
t3 = f1.readline()
print("\n"+t3.replace("Python","java"),end="")
while t3 != "":
t3 = f1.readline()
print(t3.replace("Python","java... | [
"245895024@qq.com"
] | 245895024@qq.com |
50e4da80ec9967a19f4a89b12ea87445776ca627 | 75191657d2226dab4dbaa4baf0dda64f9cc67691 | /python/BMatzip/mat_data.py | 34c148cfcc63a2db8bed1e469a297a81d0f62c6e | [] | no_license | dkaylee/ClassProject | d1c02b65b9a4f45b51a43af2a139f5f19b10214a | 0e6488fb598899621642b9a809796299632c74f8 | refs/heads/master | 2023-03-15T17:09:42.482162 | 2021-03-16T12:11:02 | 2021-03-16T12:11:02 | 299,173,494 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,937 | py | import logging
import logging.config
import csv
##############################
#logging.config.fileConfig('logging.conf')
logger = logging.getLogger('main')
formatter = logging.Formatter('%(asctime)s %(levelname)s %(process)d %(message)s')
data_log_handler = logging.FileHandler('mat_data.log')
data_log_handler.set... | [
"dkayleeee2@gmail.com"
] | dkayleeee2@gmail.com |
abc399c1b0a5eb06f408279dc075c4c7b5750846 | 7c7d2cb72b6c2ac57605250bcde2143988137c9c | /0x01-python-if_else_loops_functions/8-uppercase.py | d9f862c5829adaabd09b000787637d0067b9432d | [] | no_license | garthus23/holbertonschool-higher_level_programming | 915f2cc501ffc1f9b9efd7f9d7dfcae5b50e9edf | 9ab8ade0b615b669ee7807caf560b411e09634af | refs/heads/main | 2023-04-24T08:59:33.043402 | 2021-05-12T19:57:30 | 2021-05-12T19:57:30 | 319,256,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | #!/usr/bin/python3
def uppercase(str):
for i in str:
if ord(i) >= 97 and ord(i) <= 122:
i = chr(ord(i) - 32)
print("{}".format(i), end="")
print('')
| [
"garthus@adminux.fr"
] | garthus@adminux.fr |
ee2d594ca917245a4670b0f459d13c3cb3900661 | 0d0d9c4a1ecd7bc067eca561afa9da559270a92b | /QuestionList/nonOverlappingIntervals.py | 23db98c51357802b7532a60567c45c65f3365979 | [] | no_license | aashrit-luthra/LCSolutions | af95323b02d810b59a3018bdd3c5661f0d98a95f | a4df47ee5d5daa4d54bda54e6e8f1cc980844c93 | refs/heads/main | 2023-07-30T09:22:59.563904 | 2021-09-10T17:18:30 | 2021-09-10T17:18:30 | 389,480,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | class Solution:
def eraseOverlapIntervals(self, intervals: List[List[int]]) -> int:
if not intervals:
return []
numRemovals = 0
intervals.sort(key=lambda x: x[0])
runningInterval = intervals[0]
for i in range(1, len(intervals)):
currInterval = interval... | [
"aashrit@bolt.com"
] | aashrit@bolt.com |
cf58a6dbd75371fe2af32b1f5b96ddbb9a5eeee0 | e7950d663e0655ae2a3808bc3a8da4e8c2e1d43f | /lms/migrations/0100_auto_20160329_1215.py | 8ace96eddf9599d7734b86cadc183763461ebc0e | [] | no_license | sanketlolge/gktcs | 6ec4d05812caa95824f35c9c7d13dfdff15678b6 | 0c3d300ff9d1fdb9eb4cd7ecb6471a9ffce35e92 | refs/heads/master | 2021-01-10T03:58:24.471078 | 2016-12-12T10:38:16 | 2016-12-12T10:38:16 | 51,284,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('lms', '0099_userprofile'),
]
operations = [
migrations.DeleteModel(
name='temptest',
),
migratio... | [
"sanket.lolge@gmail.com"
] | sanket.lolge@gmail.com |
54e5aceba5b879aeed3c9e293cd506c8860d9945 | c1d62a0506dac6234cedd08d6772ae668042bfad | /Django_beltExam/Django_beltExam/wsgi.py | 4c6bcd6b1dfdb51ed47a0d65e2c74d827075016d | [] | no_license | alish1331/Python-Django | 0263ab080910cb0c3bef93eecd64698ca7166a96 | 7030a469aaa5221af365f516e9645a0ffa924301 | refs/heads/master | 2020-11-26T01:47:45.711116 | 2020-01-13T23:15:40 | 2020-01-13T23:15:40 | 228,928,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """
WSGI config for Django_beltExam project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"alish1331@gmail.com"
] | alish1331@gmail.com |
2c27aa0c30f0c2a44a61e8a498c6eb2a703ec614 | 50281a785c6fd4ed3ca47c5facc586546ffc6db7 | /scrapy_project/ganji/ganji/pipelines.py | 589a3058e91ae4544cbe78bc35cbd2ae499d9d9f | [] | no_license | zuohd/python-excise | 9c40a7ab0caca18fdcf10d52123a9f9c515c2527 | d5236c35761dbb8c45f79c54ab806556241f0ef0 | refs/heads/master | 2021-07-10T14:18:10.463614 | 2019-03-13T13:15:25 | 2019-03-13T13:15:25 | 148,882,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import sqlite3
class GanjiPipeline(object):
def open_spider(self, spider):
self.con = sqlite3.connect("xarenthou... | [
"zuo.houde@gmail.com"
] | zuo.houde@gmail.com |
f56286a025e615958ddb8ba01d7fb534450b623e | c139bfbec0ba4f80f4a339b45f183952057768e2 | /About_CharacterSet/PlugBoard/PlugBoard.py | 324d0e892c6eebad2a4f919c3bc215626a737d60 | [] | no_license | WryHarpy/Enigma-Machine | 53b29a386ddb0e0d582cf14999d2c3c5d5d62ddd | 3e3fabbec84f46d018dc3d85130cd45b14449b5b | refs/heads/master | 2020-07-23T21:03:00.228495 | 2019-12-09T14:35:03 | 2019-12-09T14:35:03 | 207,705,635 | 2 | 6 | null | 2019-11-25T15:20:35 | 2019-09-11T02:30:16 | Python | UTF-8 | Python | false | false | 1,559 | py | # PlugBoard.py
# Quang Hoang
# 24 Sept 2019
# PlugBoard for the Enigma Machine
import os
# Open the letter set file and get the letter sets
def getSet(charSet):
doc = open(charSet, 'r')
doc = doc.readlines()
set = []
for i in doc:
i = i.strip("\n")
set.append(i)
return set
# G... | [
"noreply@github.com"
] | noreply@github.com |
130714484ab7bd4391518ceba64a99c41e7365b0 | 6e6e1301d2aa55d1542640a76ad30b68314b4b56 | /radiobutton.py | 9c2465760ade1ce9fa9259d8835e84a7534a0f66 | [] | no_license | Akhil-64/tkinter-python- | e3906f16930b3a7bb544696808a6b7f7e5b310fb | dbe55e82194de7f1e826f4d236592fb4e86d34aa | refs/heads/master | 2020-09-06T02:44:11.918618 | 2019-11-11T11:20:39 | 2019-11-11T11:20:39 | 220,293,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from tkinter import *
root=Tk()
v=IntVar()
master=Radiobutton(root,text="GfG",variable=v,value=1).pack(anchor=W)#anchor for left alignment
master=Radiobutton(root,text="Pnj",variable=v,value=2).pack(anchor=W)
root.mainloop()
| [
"noreply@github.com"
] | noreply@github.com |
b6edd35cd22a0b768255f1100a8fa6b9fdb1ef6e | 06a366f002e41334a07f2449581204e03d52449b | /datalogtest.py | c4f865ed91c4cd468bbb823baa898de238e78436 | [] | no_license | seanachaidh/experiments | dca2f466566fa217f79267abd23c4bfd2aef18b0 | 1ab86a1f6f390e4ea0f74218ef74f79414205e6c | refs/heads/master | 2020-09-16T10:00:29.011363 | 2016-09-23T18:35:45 | 2016-09-23T18:35:45 | 67,930,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,167 | py | ##from pyDatalog import pyDatalog
##pyDatalog.create_terms('N,X0,X1,X2,X3,X4,X5,X6,X7')
##pyDatalog.create_terms('ok,queens,next_queen')
##
### the queen in the first column can be in any row
##queens(X0) <= (X0._in(range(8)))
##
### to find the queens in the first 2 columns, find the first one fir... | [
"pieter@Wodan"
] | pieter@Wodan |
131e309c0b50460e66d4e5a9a60fa88662524d57 | 2f63688febd21dc3ae6b19abfa79ad313c820154 | /For Irene/DFS/0104_Maximum_Depth_of_Binary_Tree.py | be6de331f2aee2e7984f41c5fcbadc9e59b7a7b9 | [] | no_license | novayo/LeetCode | cadd03587ee4ed6e35f60294070165afc1539ac8 | 54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7 | refs/heads/master | 2023-08-14T00:35:15.528520 | 2023-07-30T05:56:05 | 2023-07-30T05:56:05 | 200,248,146 | 8 | 1 | null | 2022-11-19T04:37:54 | 2019-08-02T14:24:19 | Python | UTF-8 | Python | false | false | 541 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def maxDepth(self, root: Optional[TreeNode]) -> int:
def postorder(node):
if no... | [
"f14051172@gs.ncku.edu.tw"
] | f14051172@gs.ncku.edu.tw |
6519c3d8e645e3763e579ed202267054d59f3223 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_23/models/policy_member.py | be52a484c3c24eaafba329d0bce3cec995432afc | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,961 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.23
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | noreply@github.com |
88aa9c9e0dd1fe3fd0adc143f1631d6bb4bdbf22 | 099976fab0dc207b7e4116d6c9965102a307fdaf | /kNN/KNN.py | 8eec7af052246e2fb31b1cae6ff9d03b1c7ed8f5 | [] | no_license | enningxie/mlWin | 8d387dd8e6228377b916f68661e471a5d9d9fd57 | fce35bcc71f9ac4a8059d022c6b216a2c4cd2834 | refs/heads/master | 2021-01-22T23:57:56.313185 | 2018-03-29T13:42:59 | 2018-03-29T13:42:59 | 85,682,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,409 | py | #coding=utf-8
from numpy import *
from os import listdir
import operator
def classify0(inX, dataSet, labels, k):
"""
分类器
参数说明:用于分类的输入向量inX/输入的训练样本集dataSet/标签向量labels/用于选择最近邻向量的数目k
"""
dataSetSize = dataSet.shape[0]
diffMat = tile(inX, (dataSetSize,1)) - dataSet #tile函数以inX为基准生成shape为(dataSetSize,1)大小的array
sq... | [
"enningxie@163.com"
] | enningxie@163.com |
a4763ae237c078246199f4f7ac24897c0b297b50 | 07dc7b55944fee252652f4c6b32d67163f297060 | /30.sum while true.py | 3ffd1b80ba86e4140023a7484a199b1e97a208a4 | [] | no_license | maysuircut007/python-basic | 356cc815e34cdfbd533c3a7cf52199999dc654c8 | 714eca954e8c9c7901223522791a9e8cd718030b | refs/heads/master | 2023-07-05T05:17:01.587965 | 2021-08-23T17:14:20 | 2021-08-23T17:14:20 | 399,177,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py |
sum = 0
while True:
number = int(input("ป้อนตัวเลข : "))
sum += number
if sum >= 100:
break
print("ผลรวม = ", sum)
| [
"maysuitcut007@gmail.com"
] | maysuitcut007@gmail.com |
0d556bf100ee647928151bb47b989764f52027ff | ffcf6b4336c686e718038efd8b1c85889d72e2f1 | /newspaper_project/urls.py | aa23f4a0ff74c6f28a938312c2d9705198e4ff30 | [] | no_license | NanaAsabere/Newspaper | fd30c75b82a546d8e9355ba0d57bac35b11c9993 | fbfa5966b261fe75f6aa3bed4cbc7215e2ac0ad0 | refs/heads/main | 2023-06-05T05:06:48.214158 | 2021-06-28T20:20:49 | 2021-06-28T20:20:49 | 381,153,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | """newspaper_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"asabere.ernest@gmail.com"
] | asabere.ernest@gmail.com |
5d6d76fca7697a49e08aee67a0ae85c1c5adb328 | 695803cf1ae81f7a8ad63faa80545c3c913cee02 | /Part1/week2/chapter10/exercise/guest_10.3.py | b190270eef1664d80d2869917fa4a7cf697b3ce1 | [] | no_license | superstones/LearnPython | fa72a249a69323927da81887ce4b9f400552a1d0 | 5ea25f9b9922654d67c6b31475cdf02b9fe99c7e | refs/heads/master | 2023-06-24T10:40:18.639288 | 2021-07-22T08:34:11 | 2021-07-22T08:34:11 | 370,679,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | # 10.3访客
guest_name = input("Please enter your name: ")
file_name = 'guest.txt'
with open(file_name, 'a') as file_object:
file_object.write(guest_name + "\n")
| [
"292454993@qq.com"
] | 292454993@qq.com |
d3528e1d17c1e7b29841d77b4f103c4b61bc682d | 2c17d22b564c133871eb3f6bc21da88bcf8e0d2d | /CodeMethodeOptimisation.py | 968815e8c1fdfe0133a1fb6327daaa578cfb2a5b | [] | no_license | MiKiDe/Falconer2020 | ac6de5c7b9603f615108ceef779aa732cf8620c1 | d5611a8fb7746ba871c09ef3fc275697ab568cc7 | refs/heads/master | 2022-11-06T20:42:04.003182 | 2020-07-01T08:09:42 | 2020-07-01T08:09:42 | 249,779,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,788 | py | import numpy as np
import pylab as plt
from mpl_toolkits import mplot3d
import numpy.random as rd
N=50
## Choix des figures
# Formes géométriques : rond, carré, triangle
g1=np.zeros((N,N))
for i in range(N):
for j in range(N):
if np.sqrt((i-N/2)**2+(j-N/2)**2)<=N/4:
g1[i,j]=1
g... | [
"noreply@github.com"
] | noreply@github.com |
ba200e3d13d1f1665df809c94d97f51cf50fcba0 | c5201677a094a2d85ca1917ac67b82ed049b87ce | /parseps.py | aa41550ee96b6c617a9a4bfda85b3402e671b0b0 | [] | no_license | anantpbhat/Python | 0b510982e187570363e2883f71787b333ebe9637 | b6675b31604a3c095a1c4bf0fe4204651834aca8 | refs/heads/master | 2022-10-16T04:11:01.407536 | 2022-09-26T00:53:21 | 2022-09-26T00:53:21 | 145,345,000 | 0 | 0 | null | 2022-09-26T00:51:24 | 2018-08-19T23:32:34 | Python | UTF-8 | Python | false | false | 3,934 | py | #!/usr/bin/env python3.6
########################################################################
# #
# Parse Unix PS output, takes input file as an argument or will prompt #
# for User input. #
# ... | [
"anant.bhat@gmail.com"
] | anant.bhat@gmail.com |
01afceb569c6f7189fe92a4880be05e98b268961 | 156e28f7e9d5d6f240cc8e03d462c3451a870ecd | /test_match_func_names.py | f8633113bc9cd6f74294ba23a61a649f7bda9c2b | [] | no_license | augustovictor/python-pytest-lab | c225b3103e6502f6e672f08e7ce4840bf81cfb28 | 371a31b278bc1ba8bc436cac2dec43a5daba2547 | refs/heads/master | 2022-12-17T04:34:10.171571 | 2018-06-29T02:36:22 | 2018-06-29T02:36:22 | 135,964,672 | 0 | 0 | null | 2021-06-01T22:18:46 | 2018-06-04T03:13:06 | Python | UTF-8 | Python | false | false | 190 | py | import pytest
def test_should_match_this_name():
assert 1 == 1
def test_shouldnt_match_this_name():
assert 1 == 1
# pytest test_match_func_names.py -v -k '_match and not shouldnt' | [
"victoraweb@gmail.com"
] | victoraweb@gmail.com |
c85032b63cbdc557d2481ca0b0b2b8af2bf6d57f | dd46c2eed4291a2b6895401e6c18442bb59c70de | /学习/pygame库/贪吃蛇1.0.py | 9b9b88be69f892b02f79b49b898d856c4287616a | [] | no_license | linzhongxiazhi/student_python | 0894b3f7e23b516a5ffc6bc056d3a3d77589338d | 0bbd71ea2f0b9c886f4cbecc9a1e2a3d8fec6ffe | refs/heads/master | 2023-06-30T21:38:23.624449 | 2021-08-07T15:20:03 | 2021-08-07T15:20:03 | 393,718,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,683 | py | import pygame, sys, time, random
from pygame.locals import *
# 定义颜色变量
redColour = pygame.Color(255, 0, 0)
blackColour = pygame.Color(0, 0, 0)
whiteColour = pygame.Color(255, 255, 255)
greyColour = pygame.Color(150, 150, 150)
# 定义gameOver函数
def gameOver(playSurface):
gameOverFont = pygame.font.Font('arial.ttf', 7... | [
"1134393383"
] | 1134393383 |
ae7734e049fcefae6e173f67ed11572958ee6c53 | 3dc189017a38d6230fde6b2cbdc309b3d7198af9 | /contacts.py | d48779ef417b02586cecf3b65bdbe93c073ac5ff | [] | no_license | codejoncode/build-a-blog-web2py | 6bf27505126f1cf3b0bbddeb74702f2e52717af5 | 53215799b5446cb690dd39a1a18cc7bf6a06b4a1 | refs/heads/master | 2020-04-15T02:56:29.131249 | 2019-01-12T02:54:11 | 2019-01-12T02:54:11 | 164,329,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | # -*- coding: utf-8 -*-
# try something like
def index(): return dict(message="hello from contacts.py")
def add():
form = SQLFORM(db.contacts).process()
return locals()
def data():
rows = db(db.contacts).select()
return locals()
def filter():
#get count
rows1_count = db(db.con... | [
"jonathanjholloway@gmail.com"
] | jonathanjholloway@gmail.com |
2593c52a740421c29980a6d9c58cdd80d6b05e5a | 65ba0ce7b8f2952a70ba745bcdf1d3d5e4ea310f | /src/pygo_plugin/proto/grpc_stdio_pb2_grpc.py | a137e14779c1ff8acaa07f3a75b9fe370e60750f | [
"MPL-2.0",
"Apache-2.0"
] | permissive | justinfx/pygo-plugin | b86820a97e9bd22e5274b21581a939a47502d528 | e83ad5f0a91174936bf5c2868aba84f094fe33d5 | refs/heads/main | 2023-07-02T21:08:31.236426 | 2021-08-11T20:03:51 | 2021-08-11T20:03:51 | 352,862,766 | 4 | 2 | Apache-2.0 | 2021-05-01T08:39:24 | 2021-03-30T03:49:38 | Python | UTF-8 | Python | false | false | 3,204 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from pygo_plugin.proto import grpc_stdio_pb2 as pygo__plugin_dot_proto_dot_grpc__stdi... | [
"justinisrael@gmail.com"
] | justinisrael@gmail.com |
ca0d1cf09ce84ee5763e630588db125be8b05173 | 2be237f8737c970f2dcb0667244638a011108ea4 | /webtest/models.py | f574a46662781030d70b042b22344257b72f67a1 | [] | no_license | yujm2018/autotest | 5f34e1dc5bce96cb31735b4a8d100e4898970986 | 50a6f39245f474abd8bdbd504b5e92f0f91152fb | refs/heads/master | 2020-04-26T17:14:32.252845 | 2019-03-19T07:00:53 | 2019-03-19T07:00:53 | 173,706,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | from django.db import models
class Webcase(models.Model):
Product = models.ForeignKey(
'product.Product',
on_delete=models.CASCADE,
null=True) # 关联产品id
webcasename = models.CharField('用例名称', max_length=200) # 测试用例名称
webtestresult = models.BooleanField('测试结果') # 测试结果
webtes... | [
"527828071@qq.com"
] | 527828071@qq.com |
8d5bfc287da53aea57a2730d52c305f29e8dbbe7 | 4852e5970a8a30ba0ae81de051fd8ddc0254ec2a | /v1sualizati0n.py | 0dcbb9023265f0b3bb06cd466af06442044a54b3 | [] | no_license | DianaNeumann/r5nd0m-m3m0r1e5 | c2f6e9b276ea0d384546104d5f6b2dc5ff1121a9 | e7d2855bdc34d1e251bd10eb6eed9074486d3d76 | refs/heads/main | 2023-06-14T05:12:09.344690 | 2021-07-05T18:08:15 | 2021-07-05T18:08:15 | 326,486,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | import sys
import os
import math
from PIL import Image
IMAGE_WIDTH = 256 # Width of the final photo, in pixels
def main():
if len(sys.argv) != 2:
print('[-] Usage: python v1sualizati0n.py your_file')
exit(1)
input_file_name = sys.argv[1]
input_file = open(input_file_name, 'rb')
input_data = bytearr... | [
"noreply@github.com"
] | noreply@github.com |
2e3cc91c6885fe6c3a6dd5ef1088324c81cd7616 | 13b113a5effbf3cb31e456c4b5ccb00795bada99 | /main.py | 0faab044e40830d3322dc5dd1d1708830b5f7c06 | [
"MIT"
] | permissive | LuizFelipeAG/clothing_detect | 75e23d90911b99b0acbe7e180ad8bdc19a95fc52 | 596a6b4c100dba2f0ecb7ac240749dfeb8b25216 | refs/heads/main | 2023-05-14T20:57:43.289453 | 2021-06-11T23:20:24 | 2021-06-11T23:20:24 | 371,721,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from fastapi import FastAPI
from utils.io_utils import load_config
from utils.model_utils import load_model, load_vectorizer, predict
config = load_config()
model = load_model(config["paths"]["model"])
vectorizer = load_vectorizer()
app = FastAPI()
@app.get("/")
def read_root():
return "Up and runn... | [
"noreply@github.com"
] | noreply@github.com |
ce9109623245d5b42b72378d6a3b91c95cc43305 | 939ce3b263bcf2a349cd9baa87c7b14a20a01927 | /script.py | c1a430e9a7c3329cf313b5f740767ff7bffe6fd9 | [] | no_license | petehewage/PyTranslator | c9972b6f00a4306b69017436934a31da9c115ac9 | c81b0fe7abefdcffc838097b110ad2a50b247372 | refs/heads/master | 2022-12-15T15:13:18.726820 | 2020-08-29T15:52:38 | 2020-08-29T15:52:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,973 | py | from playsound import playsound
from gtts import gTTS
import sys
import os
import time
import goslate
import speech_recognition as sr
import pyaudio
from googletrans import Translator
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
... | [
"noreply@github.com"
] | noreply@github.com |
770e71fd92eeb7374603e5616670abbe1c52790f | 9abd86eb8afadcc852292597862888a4afda8152 | /postman/urls.py | 05f81583bcddc101ab1e6555d8cdfd2890065d96 | [] | no_license | wanghailong50/cmfz2 | 7fb1be1d2dd9f7e615759d896cd1b4ecebdc1c6d | 78b8884293a086ffd2cc47f5a28fc2b86bd5beca | refs/heads/master | 2022-10-07T05:02:31.163882 | 2020-06-09T13:55:21 | 2020-06-09T13:55:21 | 271,017,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py |
from django.contrib import admin
from django.urls import path,include
from postman import views
app_name='postman'
urlpatterns = [
path('admin/', admin.site.urls),
path('first_page/',views.first_page,name='first_page'),
path('album_detail/',views.album_detail,name='album_detail'),
path('register/',vie... | [
"858598857@qq.com"
] | 858598857@qq.com |
9235a4e25c904a61ce16f1660c39cd3e8c9f63ff | 9a819fc91e17ef9a44e45cf68e76cf696381d06d | /snake_bnb_project/src/program_hosts.py | f95975366365a90441d74c0a94f79a315eac1054 | [] | no_license | Gautam3994/Dark-Knight | aef1d6383e0785130db75e80ed40f544a120579e | 327b2d58851a42da1b707addea73e40fac6a61cc | refs/heads/master | 2022-12-01T11:58:39.857379 | 2020-09-05T18:07:51 | 2020-09-05T18:07:55 | 203,866,327 | 0 | 1 | null | 2022-11-24T09:16:18 | 2019-08-22T20:14:43 | Python | UTF-8 | Python | false | false | 7,024 | py | from colorama import Fore
from infrastructure.switchlang import switch
import infrastructure.state as state
from services import data_service
import dateutil, datetime
def run():
print(' ****************** Welcome host **************** ')
print()
show_commands()
while True:
action = get_acti... | [
"gautam3994@gmail.com"
] | gautam3994@gmail.com |
621bdc09aff1254bdeb0b5cea4249380e5b4b554 | b22203455a8131ffc72df358ae0add94430d505a | /Library/Locator.py | ab67b46850074fbdf1df460ac50ef25cc6de87ca | [] | no_license | MonishGit/RobotFramework | f4adfc303ecb8d214fc51476defeb3b6bd95eae7 | 7aac9d702a406686fc8f7749ced65c50cacd6878 | refs/heads/master | 2020-08-15T07:51:08.465689 | 2019-10-18T13:11:11 | 2019-10-18T13:11:11 | 215,304,194 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | import json
import jsonpath
import os
def get_element_locator(locatorname):
f= open("C:/Users/mopawar/PycharmProjects/Creating_NewFramework/Data/EelementLocator.json")
accessJson = json.loads(f.read())
getLocators = jsonpath.jsonpath(accessJson,locatorname)
return getLocators... | [
"pawarmonish@gmail.com"
] | pawarmonish@gmail.com |
df24293736dfe5dde88d52d02ccb88c1b609cf9c | 1875015b968db17337ff6e95ebbc30c3309ced2b | /google/cloud/bigquery_storage_v1beta1/proto/storage_pb2_grpc.py | 1e5bf4799926e5582e7215266fb1c8a74606bd1d | [
"Apache-2.0"
] | permissive | emkornfield/python-bigquery-storage | 230a0d76d434c3727a1b918e5823e66ee140dce5 | a6dffb892cbfd59ac25fcb20e4f34779377d785b | refs/heads/master | 2022-11-23T19:03:54.531481 | 2020-07-01T00:08:21 | 2020-07-01T00:08:21 | 278,273,270 | 0 | 0 | null | 2020-07-09T05:40:16 | 2020-07-09T05:40:16 | null | UTF-8 | Python | false | false | 9,253 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.cloud.bigquery_storage_v1beta1.proto import (
storage_pb2 as google_dot_cloud_dot_bigquery__storage__v1beta1_dot_proto_dot_storage__pb2,
)
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
clas... | [
"noreply@github.com"
] | noreply@github.com |
1c07941454a843cf848a97e1f4e55353ee9ed6a7 | d542c384a8a8fdea29f24010f10f62f59f5a1058 | /manage.py | 6560b6188f4b3ad52a49eec9b00a8977ad43f6b4 | [] | no_license | DanielKalinin/galamart_tracker_django | a10e5e84ef0e4dc2f5c3fdb3f1bf0501e61175fc | faaca711adf93d3a9656c93c2ceb1f6a7cfb3e70 | refs/heads/master | 2021-05-07T02:27:30.719152 | 2017-11-13T15:49:19 | 2017-11-13T15:49:19 | 110,566,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hel.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"den218den@bk.ru"
] | den218den@bk.ru |
c9c7e2bfde0e9f30320765355d36f8fba7e065bb | bdfb6084a33e4b443ffc2a97673ecbfa736d947b | /.history/vision/tensorflow_object_detect/scripts/detect_lane_20210224073617.py | 4b9d7673c398293b97536af85ab936b7119f8430 | [
"MIT"
] | permissive | robcn/Autopilot-Demo | 5c830a0f721d3e8df864c0fcb26e9ea280bbe3fe | 0b7178ae3f417f529d7015373a1e51eb71df28ab | refs/heads/master | 2023-03-16T00:20:31.498672 | 2021-02-24T13:34:06 | 2021-02-24T13:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,020 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import rospy
import numpy as np
import cv2
from cv_bridge import CvBridge
from std_msgs.msg import UInt8, Float64
from sensor_msgs.msg import Image, CompressedImage
import time
# from vision_msgs.msg import Center
class DetectLane():
def __init__(self):
self.... | [
"hemingshan_1999@163.com"
] | hemingshan_1999@163.com |
b4e3f251554702622795308b65c3662dca3efff2 | bdaff2ef9b86450da50cd6ab88bf5810d6d9cd1f | /explosion.py | 22a725730ee156cad13e1c301fb81b917f1c6546 | [] | no_license | s3704429/xBombs | 610be1803ef6274b8ee27cc127593f40b5e81ebf | 4a82c378f54fd236d62a8d341ba19c27db081f2d | refs/heads/master | 2021-04-12T03:31:44.033219 | 2018-05-19T11:10:27 | 2018-05-19T11:10:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | # class for explosion graphics
import pygame
class Fireball(object):
'''
classdocs
'''
def __init__(self, board=0, gridCoord=0, powerup=0):
self.gridCoord = gridCoord
self.powerup = powerup
self.board = board
'''
Constructor
'''
... | [
"noreply@github.com"
] | noreply@github.com |
481f2671c9ce0db5b50bcaebd4377a044fd44018 | 32b9bcbed4641025dbe14196c22fb14e03329c65 | /node_modules/ccap/build/config.gypi | f6c3a3372bf2ac80e8a167f7964f674ea471d874 | [
"MIT"
] | permissive | 343829084/microblog | 0538d2376df08678ca3ac4308c3e4726bad2894a | cc67010860afa1193c124ebe5604e5c881a83954 | refs/heads/master | 2016-09-01T16:12:54.217514 | 2016-01-28T08:32:13 | 2016-01-28T08:32:13 | 50,162,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,806 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"gas_version": "2.23",
"host_arch": "x64",
"icu_data_file": ... | [
"343829084@qq.com"
] | 343829084@qq.com |
602ddc0ee396f621056fbf937d332f0ded0b491c | 23f807d6105f6184238b992db8d3ea6bb8837867 | /openvim/openflow_thread.py | d4d33b0496628611c35bed7fba919fd17cd2145b | [
"Apache-2.0"
] | permissive | msgpo/openmano | a8bce3379fba055f44d9d6186c857770e153cd6e | 4f21dbac5b3c2e955382556453dee58dcce19bf2 | refs/heads/master | 2021-05-28T08:43:04.103872 | 2015-03-17T17:06:41 | 2015-03-17T17:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,774 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
##
# Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
# This file is part of openmano
# 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
# ... | [
"alf.tierno@gmail.com"
] | alf.tierno@gmail.com |
92ae87ad1bd162dbf5f83068e00dcf951fcdce79 | 9a0451bb892db73eba31d1de1cb9a7bb21e1473b | /IP_Ch1_13_Connector.py | bfc3d6993d16a948c2bf88290cef7caacc9b7232 | [] | no_license | DJacobo/InteractivePython | 0d7e9df62e7a433f1d73477c349526272912f752 | 58b0cf349adbc9c0d9e7fa983f326e8e1ded2350 | refs/heads/master | 2020-03-29T15:42:17.469252 | 2018-10-20T09:32:05 | 2018-10-20T09:32:05 | 150,076,266 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,848 | py | # OOP design will use a connector between LogicGates
# Connector Has-A LogicGate
from IP_Ch1_13_LogicGate import *
class Connector:
def __init__(self, fGate, tGate):
self.fromGate = fGate
self.toGate = tGate
tGate.setNextPin(self)
def getFrom(self):
return self.fromGate
... | [
"djacobo772@gmail.com"
] | djacobo772@gmail.com |
505bb735533b3334b3929e04260b649d5d342389 | 046116f7dac7c15cc8af87761fad6d69125cb553 | /Django Web应用开发实战/chapter16/16.3/MyDjango_User/MyDjango_User/settings.py | 9a6e74f6b085b43d6bdefa9d55d70d2116b4b020 | [] | no_license | xingzuhui/Python-Web-Django | 36a0d5e70dd9d4660103c0deeff98abc2984349b | 1b4bd259dd7d6343bf24fa79dc631d6d6fb64a58 | refs/heads/master | 2022-10-11T03:00:07.049245 | 2020-06-14T13:22:49 | 2020-06-14T13:22:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,651 | py | """
Django settings for MyDjango_User project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"huwt15@163.com"
] | huwt15@163.com |
87b4e02b7e5842acb4020612476b7709c67338c0 | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/code-reuse/k_permutation_module.py | 3c3a299dca423f00935250d56d37946d618d8687 | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 313 | py | import sys
from mymath import fact
if len(sys.argv) != 3:
exit(f"Usage: {sys.argv[0]} n r")
'''
n!
P(n, r) = -----
(n-r)!
'''
n = int(sys.argv[1])
r = int(sys.argv[2])
n_fact = fact(n)
#print(n_fact)
n_r_fact = fact(n-r)
#print(n_r_fact)
P = n_fact // n_r_fact
print(P)
| [
"gabor@szabgab.com"
] | gabor@szabgab.com |
b98226a43a743737f9eb71ce6ed9630eba432a0a | f43d31672b333b0442eadd76c9ab2d4364d4bf49 | /src/strategies/BNFORB30Min.py | 32e5ccb2451e4a6924e6a7872b7f0508a17202c9 | [] | no_license | ambhautik11/sdoosa-algo-trade-python | 5e852cdc584ada43780a3e3a857c36c59a0f51c5 | 557c827a0f4cbe04ddec1e3d00bb340b0b5d1d59 | refs/heads/master | 2023-04-22T18:43:43.115787 | 2021-05-14T17:56:37 | 2021-05-14T17:56:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,300 | py | import logging
from datetime import datetime
from instruments.Instruments import Instruments
from models.Direction import Direction
from models.ProductType import ProductType
from strategies.BaseStrategy import BaseStrategy
from utils.Utils import Utils
from trademgmt.Trade import Trade
from trademgmt.TradeManager imp... | [
"doosasreenivas@gmail.com"
] | doosasreenivas@gmail.com |
7fdd464803df821f2821b9304cd413b9e8ef8c7e | 12412a9d3f3434d9a0f9d6db099a6cb75a35a77f | /bgx/consensus/pbft_python/bgx_pbft_common/utils.py | 8038c84491b0ec08a432c0a21700ad8579aa44e6 | [
"Zlib",
"MIT",
"Apache-2.0"
] | permissive | DGT-Network/DGT-Mississauga | 3cf6d79618d2b076ac75b771910cabc5bdd6431a | fb0a558f1304696cdf4278b8009001212ee17cb9 | refs/heads/master | 2023-03-05T08:58:09.141087 | 2022-05-10T15:48:04 | 2022-05-10T15:48:04 | 241,790,384 | 0 | 0 | Apache-2.0 | 2023-03-02T17:42:45 | 2020-02-20T04:10:38 | Python | UTF-8 | Python | false | false | 2,227 | py | # Copyright 2016, 2018 NTRlab
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"sparsov@sinergo.ru"
] | sparsov@sinergo.ru |
77e29850d4c78ce54d481184506e6d1cf29c757d | 9b1308a9e200cb1ca4bbe1f5c7c53bc5cf42ee9a | /run_match_traj_met_script.py | 3d58a3ea342375b672b0ea198d74f17d8d476703 | [] | no_license | crterai/LagrangianAnalysis | 7349684e0dd3a29f78c1a3e3575ddbd74d5e032e | 3b3fb9fe8bf9ad26dcd2a4a3869b7a445dae2d22 | refs/heads/master | 2021-06-27T02:34:40.630928 | 2020-09-28T15:53:52 | 2020-09-28T15:53:52 | 145,752,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | #!/usr/bin/env python
"""
This script takes the Start_time passed through by run_match_traj_exec.sh, adds 2500 to get end_index, and runs the match_traj_parallelized_general script that produces the text files with the output.
"""
import argparse,datetime,gc,re,sys,time
import cdms2 as cdm
import MV2 as MV #stuff ... | [
"rterai@uci.edu"
] | rterai@uci.edu |
bb4fb0abc4f215ff1f24bbd3d42b98f6ba977ffd | da690e5c9dd411039642ca366600a7a19eebcd97 | /TestCase.py | 69234c4c66315367ba7135f4e343ff79f58c76ec | [] | no_license | vijayrajarathinam/Carrom-Strike | 067724658cbb545fbb19d191a273cba69b281067 | 1a4409c7387037e8eaf26c15d7c9473b9c9a3c61 | refs/heads/master | 2020-06-02T02:48:34.593625 | 2019-06-09T13:45:19 | 2019-06-09T13:45:19 | 191,011,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,379 | py | from index import Game
'''
__name__ = Clean Strike
'''
class GameTestCases(Game):
def __init__(self,):
super(GameTestCases,self).__init__("Player 1", "Player 2")
self.is_file = False
self.outputHeader = [
["Player 1","Player 2",
"Player 1 Points","Player 2 Point... | [
"vijay.r@irepute.co.in"
] | vijay.r@irepute.co.in |
ab3070ed80091961e4c958a272cc403253c8eaf9 | 7f0dac79f94a9e74ad5e8538ea25fe9ad49a7d9e | /analyzers/APT_book/apt_ips.py | a630ed92395ad767c965abe79d129a1a60289e45 | [] | no_license | wzr/gummer | a3df5f4105e12737858d307cc3cc7a0151460e65 | e1d29b81a243c6c9960e3317d810e63848c534fe | refs/heads/master | 2021-01-15T10:26:11.547059 | 2015-03-14T15:10:34 | 2015-03-14T15:10:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | import db_loader
#Example of analizer
aid = "apt_ips" # Must be unique
name = "TOP Direct connection to IPs"
desc = "Retrieves the top 10 HTTP/S most repeated connections to IP addresses "
desc += "instead of to domains.\n"
def launch(connector):
query = "select count(*) as Hits, ip_src, url "
query += "from s... | [
"xgusix@gmail.com"
] | xgusix@gmail.com |
b5a2a28f4ee3a8cfe8b5fb8192e35f5770d3f712 | e91f216ea2cf9f2ecf2a770ebc6334d7034cbf94 | /Baekjoon/12865평범한배낭.py | 30036c49effd71e510e02b034165940c43252a73 | [] | no_license | HelloMandu/OnlineJudge | 4c870a737ba8c479adf0f7763ca38afd7761e9a3 | 2dd0abc4066fd0b1f28346f8913ece88167eee99 | refs/heads/master | 2023-01-09T22:53:27.036594 | 2022-12-28T09:38:39 | 2022-12-28T09:38:39 | 168,956,239 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | n, k = map(int, input().split())
arr = [list(map(int, input().split())) for _ in range(n)]
dp = [[0] * (k + 1) for _ in range(n + 1)]
for i in range(1, n + 1):
for j in range(1, k + 1):
w, v = arr[i - 1]
if j - w >= 0:
dp[i][j] = max(dp[i - 1][j], dp[i - 1][j - w] + v)
else:
... | [
"tjdals6695@gmail.com"
] | tjdals6695@gmail.com |
4cf41cca444588c2b9063780949e82ccecc5e2bc | 0c0af1aaae764d16e4adda2432c05bd659fc4290 | /varclassifiers.py | 2732f273642a2f7d95e3af1c82da4c6ef9a6455a | [] | no_license | sreelathav/datascience | 31d74707013e29376d50587039d8c6d14026cd26 | 3d061e1894ad6f20049e4e82654819b284be2483 | refs/heads/master | 2020-06-20T16:02:16.493202 | 2018-10-16T13:51:16 | 2018-10-16T13:51:16 | 74,855,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,007 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.neural_network import MLPClassifier
from sklearn.neighbors import KNeighborsClassifier
from sklearn.svm impor... | [
"vallabhaneni.sreelatha@gmail.com"
] | vallabhaneni.sreelatha@gmail.com |
cd49ce6e63bf72dcb48e1535dbdf32b3c3b35764 | 0dc3c1f447641c6f9c66e67ae8ec6be9a4e5eade | /inner_module/datetime_test.py | aea3dc14718224b159b4a07d49be2bd2bde0f377 | [] | no_license | wangwuuw/pythonTest | 41a6ada4111a56204492bf98bd8b101cc4d1e998 | 92c940032a7e4d0dee304aacfaf1dc3bee30b55f | refs/heads/main | 2023-07-13T20:37:12.718635 | 2021-08-30T06:01:43 | 2021-08-30T06:01:43 | 365,891,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | from datetime import datetime, timedelta, timezone
now = datetime.now()
dt = datetime(2015, 4, 19, 12, 20)
print(now)
print(dt)
print(type(now))
print(dt.timestamp())
cday = datetime.strptime('2015-6-1 18:19:59', '%Y-%m-%d %H:%M:%S')
print(cday)
print(now.strftime('%a, %b %d %H:%M'))
now = now + timedelta(hours=10)
... | [
"tommy.wang@dae.org"
] | tommy.wang@dae.org |
626712a3f27429ba2161e5bff01a4d2c343cd8c3 | 01d31e7e969be9977781ada4a77291f6a73080bb | /Programming101/week5/2-Cinema-Reservation-System/Magic-Cinema-No-OOP/cinema_reservation.py | b9e419e9eed42689c1f3533a7f827e7806382685 | [] | no_license | stanislavBozhanov/HackBulgaria | 93a337ad823a3f1ccd305dd1c57df26c4c7d49a2 | 0fd0744a48c337576ca4dfaedf6d8b417dea212a | refs/heads/master | 2021-01-20T12:12:46.582051 | 2015-06-21T20:40:27 | 2015-06-21T20:40:27 | 24,852,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,092 | py | import sqlite3
def create_table_movies(db, cursor):
cursor.execute('''CREATE TABLE IF NOT EXISTS movies(
id INTEGER PRIMARY KEY,
name TEXT,
rating REAL
)''')
db.commit()
def create_table_projections(db, cursor):
cursor.execute('''CREATE TA... | [
"stanislav.bozhanov@gmail.com"
] | stanislav.bozhanov@gmail.com |
ea99d17392d2ab82f43d373528db6b93b900ec56 | 678f961dc43513e7238ad33fe0bdbb50ec523caa | /cases/file/test_download_log_file_hk.py | b9b1c75ff687c6f40fe7bfa71298b9f681efba0a | [] | no_license | nevermorer1/NEMO | 5afd2784bd86ab33cf9e41cf121e6298ec98e41f | 4f83d90a227203da96b3342022d2818009f5390f | refs/heads/master | 2020-03-20T14:07:17.791530 | 2018-08-24T08:18:02 | 2018-08-24T08:18:02 | 137,476,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | from common.dataHandle import DataHandle
import unittest
from common.log import Log
from cases.login import Login
from cases.downloadfile import DownloadFile
from cases.userinfo import UserInfo
class TestDownloadLogFileHK(unittest.TestCase):
"""日志部分-下载log文件"""
@classmethod
def setUpClass(cls):
Lo... | [
"nevermorer1"
] | nevermorer1 |
092b2ee98e997749a84f6261fe7e40ac394cd874 | e937e58d1041cd0cb93efe5d1197e7ced65dacf9 | /Homeworks/Homework2/ExerciseA/client.py | 13fc8037c0d870bf9f23421f513991072b7aac8a | [
"MIT"
] | permissive | secano97/cliente-servidor | 3c6b135bb43e6611a28efea6050568134c5a7215 | 8a19157ad723fc0384d687343b8093266d002544 | refs/heads/master | 2021-04-28T02:43:09.204906 | 2018-05-18T18:57:42 | 2018-05-18T18:57:42 | 122,123,622 | 1 | 2 | null | 2018-02-19T21:36:50 | 2018-02-19T21:36:50 | null | UTF-8 | Python | false | false | 3,964 | py | import argparse
import zmq
import os
import pyaudio
import wave
import _thread
from pynput.keyboard import Key, Listener
from src.helpers.utils import *
# CONSTANTS SECTION
PORTS = []
WAVE_OUTPUT_FILENAME = "voice.wav"
ID_USERINFO = {} # User information
CLIENT_LPORT = 4000
def receive_data():
while True:
... | [
"hfjimenez@utp.edu.co"
] | hfjimenez@utp.edu.co |
16d1f16ca50e5d93a6391652f767d28400d8ace9 | d005737bd133debbd792ccd8364b2f5b04682292 | /Day01-15/04.py | 7e4fac8da885628518a3ff7ccc646b92dd0a6166 | [] | no_license | XJawher/Python-100 | 522a218136dd8479c83f1cdfbc57200238b81989 | abd65c4095f75d3bd744a6f75d7a4c86b368bf54 | refs/heads/master | 2020-06-19T02:19:32.958386 | 2019-07-25T00:25:49 | 2019-07-25T00:25:49 | 196,530,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | # -*- coding: utf-8 -*
"""python 的循环结构大致分为两种,一种是 for in 一种是 while 循环"""
# sum = 0
# for x in range(20):
# sum += x
# print(sum)
# import random
# def random():
# counter = 0
# answer = 20
# while True:
# counter += 1
# number = int(input('请输入: '))
# if number < answer:
# ... | [
"pengcheng.li@orcadt.com"
] | pengcheng.li@orcadt.com |
c063bdd4e660972e8aad8582c52327669c234386 | 383b8adf5a8b3140e8b2075be3021ac4b7fd400b | /2020_11_24/11000_강의실_배정/moonyeol.py | 5c56e9b19c538f30a6a1e656ced78036b7facbc1 | [] | no_license | aimhigh53/AlgoWing | eecd0ddb34221eb1ea8e6a92cd03afd612e13bb8 | 0804e4f57d87c19f861bb871fb9a39585b90f724 | refs/heads/master | 2023-03-13T17:00:22.171601 | 2021-03-08T14:42:31 | 2021-03-08T14:42:31 | 286,629,140 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import sys
import heapq
input = sys.stdin.readline
def solution():
global lessons, N
ans = 1
times = [lessons[0][1]]
for i in range(1,N):
now = lessons[i]
if now[0] >= times[0]:
heapq.heappop(times)
else:
ans +=1
heapq.heappush(times,now[1])
... | [
"ansduf05@gmail.com"
] | ansduf05@gmail.com |
372588b33202d69d524844c22a983e70dc3faf58 | 548385de21cfc34f0af2543f77ef8af306a83ef6 | /tests/test_data_processor.py | 9b719130c3ba07fd1d5f465f95940d5e7ab0006d | [] | no_license | mwmichaelas/data_jump | 714cabb58f69a709cfd828449e4b94ed8280c010 | cc3b1d784737144251d78de6e2dd981889c0d7bf | refs/heads/main | 2023-03-04T04:31:47.651305 | 2021-02-16T10:48:17 | 2021-02-16T10:48:17 | 339,348,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | import csv
import sys
import os
from data_jump.app import app
from data_jump.data_processor import DataProcessor
sys.path.append(os.path.join(os.path.dirname(__file__),os.pardir,"data_jump"))
import pytest
import pandas as pd
from pandas import DataFrame
import requests_mock
def file_get_contents(filename):
... | [
"mwmichael@pm.me"
] | mwmichael@pm.me |
657972b17491b37cf30ce08ca58445dd72f61ac7 | d56540f1a623de8222d8d92473796df1183850e5 | /LibraryManager/admin.py | 7287ff3590385a66cff2121c8fef5263815f32c3 | [] | no_license | LucasWagler/Django-Library-Manager | 340677b04dcbc6af14162bc9e0ff0c0af272b4db | 3855f6072e51d527711b3ed4c6a6c9dd8f39ec03 | refs/heads/master | 2023-06-21T21:42:56.946077 | 2021-07-12T21:07:53 | 2021-07-12T21:07:53 | 380,251,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | from django.contrib import admin
from .models import Author, Book, BookBranchCopies, Branch, Department, Employee
# Register your models here.
class AuthorAdmin(admin.ModelAdmin):
# fields = ['name', 'country']
list_display = ('name', 'country')
search_fields = ['name', 'country']
class BookBranchCopiesI... | [
"lucas@wagler.dev"
] | lucas@wagler.dev |
87d6805f645884b7278039939c74e61c0db8c098 | a0b720271eb091f0f231c327f97135aeae311d29 | /sendengo/apps/shippers/views.py | ec43611dd78cae573876c8d9ca689e3258ea4d82 | [] | no_license | osharim/shippers | 138a39d1933afcedf4cacbb119d1556509ea00ae | ffcb79becac84ef48b9fa901494bd8e8dcdbe379 | refs/heads/master | 2020-05-21T02:16:56.942018 | 2019-05-13T02:06:07 | 2019-05-13T02:06:07 | 185,873,538 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | # enconding: utf-8
from rest_framework import viewsets
from .serializer import ShipperSerializer, ShipperRequirementSerializer
from .models import Shipper, ShipperRequirement
from rest_framework.response import Response
from rest_framework.exceptions import PermissionDenied
class ShipperViewSet(viewsets.ModelViewSe... | [
"omar@bentel.mx"
] | omar@bentel.mx |
dd873a36e434f4eccf19aa5138c193a824b80b0e | bac5eec28e25a7320c71292cdc7f5935455c2dcf | /api_yamdb/settings.py | c68a58b8482e1219c3aabe63b20c0349b9054e9e | [] | no_license | Nadine45832/yamdb_final | 342886c0402581edbbadb2a63168ebd6385a9743 | a40cf281c489798f201fd2424babb8d9c13e3e5f | refs/heads/master | 2023-08-26T11:12:29.880986 | 2021-11-12T01:41:25 | 2021-11-12T01:41:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,725 | py | import os
from datetime import timedelta
from distutils.util import strtobool
import dotenv
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
dotenv_file = os.path.join(BASE_DIR, ".env")
if os.path.isfile(dotenv_file):
dotenv.load_dotenv(dotenv_file)
SECRET_KEY = os.environ.get('SECRET_KEY',... | [
"tumarevanadya@gmail.com"
] | tumarevanadya@gmail.com |
9fc9bfc859d1abf43f7450af98bda58100accfc7 | f31e082967a104f621e9d2acdd0e2e472672a06e | /analysis/management/commands/get_matches_fromcsv.py | b6ec2f1c79057ed0bb80956d8228ad037c0589c7 | [] | no_license | PrajwalChigod/django_ipl | f9933bd6c300a97bac6e791ea89e87f4e8ccf948 | 0da488f4faf82d4358a1c74b9b9d1f1aa4644d85 | refs/heads/master | 2020-04-16T22:26:31.136251 | 2019-01-16T10:16:30 | 2019-01-16T10:16:30 | 165,967,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | from django.core.management.base import BaseCommand, CommandError
from analysis.models import Matches
import csv
class Command(BaseCommand):
help = 'Gets data from csv to the sqlite3 database'
def handle(self, *args, **options):
matches_file = 'matches.csv'
with open(matches_file) as matches_... | [
"96.prajwalcp@gmail.com"
] | 96.prajwalcp@gmail.com |
9a29d8a4fbcdcac971a68f6ca936be3acb5d1ca9 | 0ac6ba2a881e1bd9c3f1d602e3e280853be0a55f | /winrateprediction/urls.py | 93154eae5b652787eb80ce61b918ecd4cf6b34dc | [] | no_license | antiflee/DOTA_Oracle | b0aec55b2faed0ed5ea64a2c8448be62e36c79aa | 1744b9382b035d76948dcb4c4ae2cc33a56d9c34 | refs/heads/master | 2021-05-07T16:30:23.775415 | 2017-10-30T16:43:09 | 2017-10-30T16:43:09 | 108,560,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from django.conf.urls import url
from . import views
app_name = 'winrateprediction'
urlpatterns = [
url(r'^$', views.winrateHome, name='winrateHome'),
url(r'^result/', views.winrateResult, name='winrateResult'),
]
| [
"antiflee@gmail.com"
] | antiflee@gmail.com |
3c07f2937e72991c56c1d37c7f4a29416844fca4 | 6d465ab8ec7994362ce69bd1b6e456a7f4ac9b97 | /results/format-covid-forecast/format_data_state_case.py | 3d544db444a286503d76af3b6bbb7778d6cb6006 | [
"MIT"
] | permissive | guizhen-wang/ReCOVER-COVID-19 | cbc8a09dc790e2cbb0d663e5b5339a3b2aaed705 | 466886b42467e505c812922ad632c3c1cae1656a | refs/heads/master | 2023-01-04T18:52:30.868428 | 2020-10-23T11:03:53 | 2020-10-23T11:03:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,252 | py | import datetime
import pandas as pd
import csv
import urllib.request
import io
FORECAST_DATE = datetime.datetime.today()
FIRST_WEEK = FORECAST_DATE + datetime.timedelta(5)
INPUT_FILENAME_STATE = "us_forecasts_current_0.csv"
INPUT_FILENAME_GLOBAL = "global_forecasts_current_0.csv"
OUTPUT_FILENAME = FORECAST_DATE.strfti... | [
"xutianjian@gmail.com"
] | xutianjian@gmail.com |
0ba89a7e990d1d019fb7a73a2ee89ae7710b387f | e53d9840342af43e7fb541bb014d61ebfd93c822 | /corona/my_app/migrations/0003_news.py | 358d2b35f12d1d70859a9f35b5c8cd38abcec5db | [] | no_license | webron9/corona_pandemic | 435dd5a7f3f2c635516388d89a59b15d18a82f84 | aea34b4d9dbb1e1d58f5d50064e6ac94a0024baa | refs/heads/master | 2023-09-05T19:18:55.049074 | 2023-08-18T06:50:34 | 2023-08-18T06:50:34 | 284,206,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # Generated by Django 3.0.3 on 2020-05-14 10:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('my_app', '0002_stats_new_date'),
]
operations = [
migrations.CreateModel(
name='News',
fields=[
('id... | [
"kalesanket99@gmail.com"
] | kalesanket99@gmail.com |
2b5581a82a00609c38b0340906dde5249b677912 | 6b7586d26c58eb680339fe69838849e94d569f8d | /bin/gprof2dot | 5bd594195c47b1441d92bcbe46d50f0f52780c1f | [] | no_license | dant00ine/csv-parser | 50355cc12c88feef2e254225f3f448c0ebbaf8cf | 6eabab5ad9e530ab270d7c665701e6997e63b7c7 | refs/heads/master | 2021-03-22T04:30:44.412547 | 2018-06-14T02:06:07 | 2018-06-14T02:06:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/Users/funglr-dan/CODE/csv_sample/django_app/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from gprof2dot import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"daniel.t@funglr.com"
] | daniel.t@funglr.com | |
e6d71dc0b14742f7bfd8673efacb6e2c4f5b510b | cef59836927e958edb8db5f9c7e3bb9f33897991 | /Словари_7.py | 615cccfe76b55182efc77f58fc51cf6ca76fae40 | [] | no_license | setishin/Homework | 73d93f91a7c30e9e70917bdd315e0ca390a8f7bf | 1e700f3e357c9d2963bca1411abd70f73348a61d | refs/heads/main | 2023-01-25T02:11:59.945398 | 2020-12-04T17:39:32 | 2020-12-04T17:39:32 | 316,254,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | dic1={1:10, 2:20}
dic2={3:30, 4:40}
dic3={5:50,6:60}
dic4={}
dic4.update(dic1)
dic4.update(dic2)
dic4.update(dic3)
s=1
for i in dic4:
s=s*dic4[i]
print (s) | [
"noreply@github.com"
] | noreply@github.com |
fe75eb46516cd3b3ecc95dc2faccbe419fdc9146 | 141c9714925dd95156460e583b8d711fcc9b8797 | /src/products/migrations/0002_auto_20190126_0028.py | 9c47b317c26c63d981047607c79206d3e21d9b1e | [] | no_license | sjb3/try_django | 5971211777d5fda9d1ab5bcbb5608237b10ddd28 | b81da0a01f3a29f1977afbb0fe532975f5c86609 | refs/heads/master | 2020-04-18T17:08:33.792225 | 2019-01-27T07:16:12 | 2019-01-27T07:16:12 | 167,648,134 | 0 | 0 | null | 2019-01-27T07:16:13 | 2019-01-26T04:07:04 | Python | UTF-8 | Python | false | false | 709 | py | # Generated by Django 2.1.5 on 2019-01-26 00:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='product',
name='description',
... | [
"sungjbyun@D-10-18-211-135.dhcp4.washington.edu"
] | sungjbyun@D-10-18-211-135.dhcp4.washington.edu |
58d7514b96b34cee6b47d8dbecc807eacdf13fd8 | 01b7ad17cf0f214dc4c6be46337ce112e7eac840 | /healpixify/__init__.py | 7a58f411ea5dd82c1ba6b2396eba2335a825d085 | [
"MIT"
] | permissive | kadrlica/healpixify | ff91a9716664c8bb748e7d49be61b3ebf463e9ee | db44339071ee0e134b12dd938dab3101b729cdc9 | refs/heads/master | 2021-01-19T16:58:28.175393 | 2017-07-11T18:19:45 | 2017-07-11T18:19:45 | 88,294,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | #!/usr/bin/env python
"""
Generic python script.
"""
__author__ = "Alex Drlica-Wagner"
import fitsio
import healpy as hp
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser(description=__doc__)
args = parser.parse_args()
| [
"kadrlica@fnal.gov"
] | kadrlica@fnal.gov |
6d9a119d11c145cf7d2aab6cc451ee96dac0a8e2 | b3c44b75cedd2694e20861b3a217e0e10926038d | /Python Exercises/Exercise_11.py | 3aa10d9a57f3ef40cea23523be35e80cb1e19b95 | [] | no_license | testautomation8/Learn_Python | a85c95ef9103f3d9198a9a3a9df0be073fa6ea70 | 0d79d772b0ebed56266b3393eb2018b926dfaaac | refs/heads/master | 2021-11-24T16:44:38.110007 | 2021-11-02T11:42:06 | 2021-11-02T11:42:06 | 159,313,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | """Ask the user for a number and determine whether the number is prime or not. Use Functions"""
def prime(number):
flag = ""
for x in range(number):
if x != 0 and x != 1:
flag = True
if number/x == 0 or number % x == 0:
flag = False
if flag:
return s... | [
"Voltas83"
] | Voltas83 |
2e34bbdf6c4f21b23057859b9dbdf31976c85e41 | caeb9c7ad9606ed440dcb6f852e6de6d7eb0dd91 | /unqomp/examples/recursivecircuit.py | c1598bd17a54094418ebfcbb457b1ff61fa92183 | [
"MIT"
] | permissive | eth-sri/Unqomp | 2e05395d4d68ca643ccfa9a2fa09693cbc792fd4 | 9d7e885af1ebfdeab7e8059d13149aadeed8a6d6 | refs/heads/master | 2023-03-29T19:26:36.273288 | 2021-04-01T09:38:58 | 2021-04-01T09:38:58 | 344,804,721 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | from qiskit.circuit import QuantumRegister, QuantumCircuit
import numpy as np
from unqomp.ancillaallocation import AncillaRegister, AncillaCircuit
def makesFGate(m, auto_uncomp = True):
# takes as input m bits, outputs m bits.
# for now : 2x+1
qr_input = QuantumRegister(m, "input")
qr_output = Quantum... | [
"anouk.paradis@inf.ethz.ch"
] | anouk.paradis@inf.ethz.ch |
d75d53b225a7d7185fe74255e67235960c9f244d | 6f0effa6451622a10e2e991508547db4ed6b813c | /stud_mgmt_sys/admin.py | bd2e5ba51f5b1370fe5f09caa2e57d1500063ca7 | [] | no_license | umanga24/studentmanagement | 61ec15206ec33477f87cb6314631465d1469a319 | 4e0336dc1af514535e1d776e7f4d8ffe48baeaf1 | refs/heads/master | 2023-03-11T22:33:20.517305 | 2021-03-03T04:57:10 | 2021-03-03T04:57:10 | 344,005,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | from django.contrib import admin
from stud_mgmt_sys.models import *
admin.site.register(Students)
admin.site.register(Supervisor)
admin.site.register(Faculty)
admin.site.register(Section)
admin.site.register(Batch)
| [
"umanga.bhattarai24@gmail.com"
] | umanga.bhattarai24@gmail.com |
4464818865a84d247744c2d224e43f52e09f84b7 | d2ba9a9f7e9c984e492bb9a7a04e4144aacf888c | /core/mkdir.py | 41c3cd9f6cf25dae3e6c0f4de6b805591edb4660 | [] | no_license | lxorz/ftp_client | fb0d12051d30bab65ae210342df3e235d133d907 | 1d2f4cf85bf27773f78ee7cc548613d983d5bc41 | refs/heads/master | 2020-03-31T22:25:09.534815 | 2018-10-11T15:51:40 | 2018-10-11T15:51:40 | 152,617,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # -*- coding:utf-8 -*-
# Author: LiuXing
# date: 9/29/2018 12:04 AM
import json
from conf import settings
def client_mkdir(self, *args):
"""实现用户在当前目录下可创建目录的功能"""
cm_split = args[0].split()
if len(cm_split) > 1:
new_dir = cm_split[1]
msg_dic = {
"action":"mkdir",
"... | [
"553141516@qq.com"
] | 553141516@qq.com |
34007e87bd6b9063ea1b6c3cdfee9585b0f06cb2 | 9d5bd76e93e263ec48e54f0cfbe46a5315c255dd | /help.py | b679b11061aa0e61859bf2b3e0c2b8ea9e8bd1f7 | [] | no_license | anipedia/AnimeBot | da92df35a404a3ff5679c15c3b59b0269ae757ae | bb4fda139b5a18fc23541083163cebb187e549e3 | refs/heads/master | 2020-08-16T14:21:37.232268 | 2019-10-16T09:46:38 | 2019-10-16T09:46:38 | 215,511,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,180 | py | import asyncio
import random
import time
import discord
import nekos
from discord.ext import commands
class HelpFormat:
def __init__(self):
self.raw_colors = ['discord.Colour.blue()', 'discord.Colour.blurple()', 'discord.Colour.dark_blue()', 'discord.Colour.dark_gold()', 'discord.Colour.dark_gre... | [
"noreply@github.com"
] | noreply@github.com |
3431ac52f6eaf42511fba1e27741419740043526 | 23f3e1792c7ad71a31be5a1a6dcdb978b641b555 | /rest/restapi/admin.py | 28c555c69b084cde8ca7a249dbb3eca9b18e0893 | [] | no_license | andrejBel/REST-API-for-image-gallery-service | 2b03f5f263c1fe4aa0d7f1efe4713ada166cfe58 | a64aced12b3f28f51aec122fa56b6677ed4ea3e5 | refs/heads/master | 2022-10-02T14:27:26.416771 | 2020-06-07T20:32:52 | 2020-06-07T20:32:52 | 270,421,301 | 3 | 3 | null | 2020-06-07T20:30:47 | 2020-06-07T20:16:39 | Python | UTF-8 | Python | false | false | 1,334 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from .models import Item, Image, Comment, MyUser, Vote, Favourite
class VotesInline(admin.TabularInline):
model = Image.votes.through
verbose_name = "Vote"
verbose_name_plural = "Votes"
extra = 1
class... | [
"n8833@student.jamk.fi"
] | n8833@student.jamk.fi |
288840689f07f7413473cee89a78c264d7391bd4 | 09769af3c5397e3b23b8ab28eb20e063178d1d3a | /Basics/Loops.py | dfdb82485f9dbcfb00ab6df7017011e55b950bc6 | [] | no_license | guptamadhur/Python_GettingStarted | f7c9144901f7695ad24589724c90e9abb66ede78 | d10f740ddf8cd6b6188b6cf51abd349feb1f1993 | refs/heads/master | 2020-04-24T14:33:20.927771 | 2019-02-23T07:42:15 | 2019-02-23T07:42:15 | 172,024,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | # Author: Madhur Gupta
# Github: github.com/guptamadhur
# Project: Python Getting Started
#
# Example file for working with loops
#
def main():
x = 0
# define a while loop
while (x < 5):
print (x)
x = x + 1
# define a for loop
for x in range(5, 10):
print (x)
# use a for loop over a collec... | [
"guptamadhur"
] | guptamadhur |
e12613dfb2f4eaff7147038711bfa7c6b7cf944e | 5cd5332e073323dfdd0ff607504787239a6fb820 | /alphabetList.py | 92417226cebadcad636ad3308fc5a0c80c277dd2 | [] | no_license | stephenjmuth/PythonLessons | dabcdb9c3b90e9eb5fa9bd4e9da5a9cecc2655d0 | c2f04c75fa62d3667ad93e0593a5c06b33252c05 | refs/heads/master | 2020-09-06T20:46:00.962283 | 2019-12-26T16:03:18 | 2019-12-26T16:03:18 | 220,545,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from string import ascii_lowercase
print(ascii_lowercase)
letters=ascii_lowercase
LenOfAlphabet=len(letters)
print(LenOfAlphabet)
alphabet=list(letters)
print(alphabet)
i=0
for letter in letters:
spaces=' '*i
print(f"{spaces}{letter}")
i+=1
| [
"stephen.j.muth@gmail.com"
] | stephen.j.muth@gmail.com |
2abb11573f51431a9b7bca690bdae3263cd98f57 | 64e9494b3eb5be8a65446dbffe848dff26409fc0 | /dataVisualization/main.py | 45e2a1c25a2ff35063af6255a04a65f554a3042b | [] | no_license | hexing2333/python3 | c3797a6efb355d8dd5e569d7a3d387504b583a39 | 1c32cd675ed7d826ef1a03f227368131e78d0493 | refs/heads/main | 2023-02-09T09:27:50.063960 | 2020-12-13T17:20:33 | 2020-12-13T17:20:33 | 321,117,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,834 | py | import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import csv
import pandas as pd
#作业一
def job1():
plt.style.use('seaborn-bright')
fig, ax = plt.subplots()
ax.set_title("function x*x+x")
x = np.arange(-10, 11, 1)
ax.set_xlim(-11, 11)
ax.set_xticks(x)
y = x * x ... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.