blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
1eb0b5f131b64d53530596a02965c641b07e642a
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Games/Conqueror of Empires/project/data.py
fc8e7a76d51033fe317d3e9b0cdd065b3b283cfc
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:2e685fd55394e2b706aae52098bf791f45158fbc6e6ccb10becc4caa7efc16c4 size 413
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
1cf125c2a540017320395c8cdd6a233922f6dcd9
034fff9750485929ef91c8ab8eb2a5a3b5f26c4a
/books/Python程式設計實務_第2版_博碩/書中附檔/9-5.py
e0dc05aca9638db40095fa87d6e628c10f307a64
[]
no_license
sakanamax/LearnPython
c0dcaf26525e2c1420ae2f61924306f5137b4f20
2d042c90ea380d2b8b64421679ad576cbbbc6b9e
refs/heads/master
2021-01-13T17:27:47.394548
2020-03-01T13:44:00
2020-03-01T13:44:00
42,424,888
1
1
null
null
null
null
UTF-8
Python
false
false
446
py
# -*- coding: utf-8 -*- # 程式 9-5 (Python 3 version) from bs4 import BeautifulSoup import requests import sys if len(sys.argv) < 2: print("用法:python 9-5.py <<target url>>") exit(1) url = sys.argv[1] html = requests.get(url).text sp = BeautifulSoup(html, 'html.parser') all_links = sp.find_all('a') ...
[ "sakana@cycu.org.tw" ]
sakana@cycu.org.tw
74c990030b5828f5aba33b0c759abf7fce25038a
42dd79c614b775e6e8e782ea7ab332aef44251b9
/extra_apps/xadmin/migrations/0002_log.py
2d0b47edefe861fd85eb8ca97914c891c8bb06a0
[]
no_license
Annihilater/imooc
114575638f251a0050a0240d5a25fc69ef07d9ea
547046cff32ce413b0a4e21714cb9ab9ce19bc49
refs/heads/master
2020-05-03T09:06:18.247371
2019-12-04T09:24:55
2019-12-04T09:24:55
178,545,115
0
0
null
null
null
null
UTF-8
Python
false
false
2,877
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-15 05:50 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ...
[ "yanmiexingkong@gmail.com" ]
yanmiexingkong@gmail.com
b33c0fd4e7e3d7f166a592e2a5141660b8ea686b
d7016f69993570a1c55974582cda899ff70907ec
/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/aio/_feature_client.py
403e09981f0530df35255da9d45c697c70fd4f82
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
4,376
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
62a47856e123b77ea1d9154672240f5a843588cc
2bfa2e8d2e744e28141a5c5c79119f2f97e853c9
/openvino_training_extensions_simple/pytorch_toolkit/nncf/tests/sparsity/const/test_algo.py
4aef6b32e0da6caa76a310038f2cd0bd645185ea
[ "Apache-2.0" ]
permissive
maxenergy/CPP_2020520
bed4c2fba0dc96c60b6bb20157d11003b00c6067
8453b4426dcb044251eaed38d01ba07557348113
refs/heads/master
2023-05-17T05:18:32.703231
2021-01-24T15:14:01
2021-01-24T15:14:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,980
py
""" Copyright (c) 2019 Intel Corporation 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 writin...
[ "yuanyupeng-1989@163.com" ]
yuanyupeng-1989@163.com
e0bd123e809bccda8767fea818f6e921d213287d
5de55e32a40a96287d5e10e93ac1e29fbe89628e
/docs/conf.py
531520920d0bf334ba30a5baeda4858c27e4ac59
[ "MIT" ]
permissive
kukupigs/graphviz
b71600fcda2474c508ca8a95c323385b6d814f83
bb1af2e4eb0a3f47ae6193b1aa3dae319ec7c2bf
refs/heads/master
2023-04-30T02:44:23.616509
2021-05-15T13:01:07
2021-05-15T13:01:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,862
py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
[ "sebastian.bank@uni-leipzig.de" ]
sebastian.bank@uni-leipzig.de
d6e6aa275b5933279375629fc50b65f54b108278
da6082484abe8d790a08f8df383f5ae8d4a8ba6b
/last_fm/celery.py
3a4de1f07536d46dde8cfa2ee00731c665a3d4ee
[]
no_license
themylogin/last.fm.thelogin.ru
6d4e65eb62df4866616ccd42769194a46e4fd5b9
69dbe3b287be5e4a2eda1412a0ecd035bcaa3508
refs/heads/master
2022-11-27T16:58:56.804614
2021-03-25T12:57:48
2021-03-25T12:57:48
16,201,329
1
1
null
2022-11-22T01:08:32
2014-01-24T10:17:13
Python
UTF-8
Python
false
false
317
py
# -*- coding=utf-8 -*- from __future__ import absolute_import, division, unicode_literals from themyutils.celery.beat import Cron from themyutils.flask.celery import make_celery from last_fm.app import app from last_fm.db import db __all__ = [b"celery", b"cron"] celery = make_celery(app, db) cron = Cron(celery)
[ "themylogin@gmail.com" ]
themylogin@gmail.com
df9c19801ac4742d19bc68b65b1accd5590e6572
0fe394b10b39864915fcc4073a5fa050aa02502e
/SeriesOfMatplotlib/plot/american_womens_bachelor_degree_plot.py
1c035d41bd5910d64ac69ef06d1ee06493b0df28
[]
no_license
JohnAssebe/Python
9997d47bba4a056fdcd74c6e5207fc52b002cbfd
b88a7c2472f245dc6a0e8900bbea490cb0e0beda
refs/heads/master
2022-05-14T10:08:37.311345
2022-05-09T19:48:53
2022-05-09T19:48:53
212,562,910
0
1
null
null
null
null
UTF-8
Python
false
false
837
py
''' @Author:Yohannes Assebe(John Assebe github) ''' import pandas as pd import random as ra from matplotlib import pyplot as plt plt.style.use('ggplot') df=pd.read_csv('../percent_bachelors_degrees_women_usa.csv') year=df['Year'] fields=[] cols=df.columns.values colors=['black','#521222','#155888','yellow','...
[ "noreply@github.com" ]
JohnAssebe.noreply@github.com
5f43eec0bd28a8fb8303514f2dfbc97dc5c91be7
34cb2555a5884f065a0e7b2dc7f8b075564e67e1
/account_invoice_margin/__manifest__.py
bb1418139039ee9f1f80bbda1a2fe11aa98aa675
[]
no_license
valenciaricardos/odoo-usability
4a944bb06b8fdc7058c2bdf21e36ed0784f2e088
a32d091d837449225ae26c3be387b97c5310a457
refs/heads/10.0
2021-07-08T15:29:58.661172
2017-09-14T17:54:08
2017-09-14T17:54:08
106,070,984
0
1
null
2017-10-07T04:19:55
2017-10-07T04:19:55
null
UTF-8
Python
false
false
1,723
py
# -*- encoding: utf-8 -*- ############################################################################## # # Account Invoice Margin module for Odoo # Copyright (C) 2015 Akretion (http://www.akretion.com) # @author Alexis de Lattre <alexis.delattre@akretion.com> # # This program is free software: you can red...
[ "alexis.delattre@akretion.com" ]
alexis.delattre@akretion.com
94d9210deda244836941983b492d85510b6f98ed
fb871dce626074d71978f48b4af124b975fe933b
/TXR120 activity code examples/driveForwards.py
86ad438d50b3a139f594573c2bf1fa5b2a722505
[]
no_license
psychemedia/ev3robotics
49e1b1b663f7f1946d9fb69a16228584d85016cc
c5190da5d215f9dda571535215e3177d196fa186
refs/heads/master
2021-01-17T20:32:20.494015
2017-09-21T12:03:03
2017-09-21T12:03:03
60,197,304
2
0
null
null
null
null
UTF-8
Python
false
false
466
py
from ev3dev.auto import * from time import sleep #Configure motors LEFT_MOTOR = LargeMotor(OUTPUT_A) RIGHT_MOTOR = LargeMotor(OUTPUT_B) #Turn motors on LEFT_MOTOR.run_forever(duty_cycle_sp=75) RIGHT_MOTOR.run_forever(duty_cycle_sp=75) #Drive for two seconds sleep(2) #Note: experiment with stop() commands via eg: s...
[ "tony.hirst@gmail.com" ]
tony.hirst@gmail.com
7926fb11f584701d5dd9444ea87f3b895be01672
a0879bb909d645d5e64a019234671e2c55cf88fd
/TEST/20201115 마이다스아잍/3-2.py
7f029928907bce5e15a0a911fa99d418565d8d23
[]
no_license
minseunghwang/algorithm
a6b94c2cbe0ac6a106e7aa8789321fae8a3d6964
e7d0125d5f8d65c94f3ce9140f840b33d28cc9da
refs/heads/master
2021-07-18T18:11:17.371674
2020-12-30T08:04:54
2020-12-30T08:04:54
227,807,992
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
cookies = [1, 4, 2, 6, 5, 3] k = 2 combinations = [] queue = [] # 첫 데이터 생성 tmp = cookies[:] # deep copy while tmp: n = tmp.pop(0) queue.append([[n], tmp[:]]) # DFS while queue: print(queue) n = queue.pop() # [1/3] 꺼내 if n[1] == []: # [2/3] 목표냐? combinations.append(n[0]) contin...
[ "mins1011@hanmail.net" ]
mins1011@hanmail.net
f94aec95d3e660b28d7a0d10cf1f8d58fa644f2d
900a7285b2fc4d203717e09c88e8afe5bba9144f
/axonius_api_client/tests/tests_api/tests_system/test_users.py
c9ae601cf277f01332aad50b455a8b76509f9384
[ "MIT" ]
permissive
geransmith/axonius_api_client
5694eb60964141b3473d57e9a97929d4bff28110
09fd564d62f0ddf7aa44db14a509eaafaf0c930f
refs/heads/master
2022-11-23T01:43:52.205716
2020-06-12T14:15:38
2020-06-12T14:15:38
280,499,094
0
0
MIT
2020-07-17T18:35:48
2020-07-17T18:35:47
null
UTF-8
Python
false
false
2,914
py
# -*- coding: utf-8 -*- """Test suite.""" import pytest from axonius_api_client.exceptions import ApiError, NotFoundError from ...meta import TEST_USER @pytest.mark.skip("Waiting for update to 3.3!") # XXX update public API for roles/users class TestSystemUsers: """Pass.""" @pytest.fixture(scope="class") ...
[ "jimbosan@gmail.com" ]
jimbosan@gmail.com
e564564366bd44ba5c752ec4ee3b82ceaae09f0a
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-roma/huaweicloudsdkroma/v2/model/create_app_code_auto_v2_request.py
ea23fe5edb6f1eba5782ccd9696d32d010218d7b
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
3,846
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CreateAppCodeAutoV2Request: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is a...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
baf846c29d7abd610de1db8208469e9648543bcf
943cf86aca0eb23bd61a8705c05a9853d0a71c3d
/test_document_from_pubmed.py
15a285c0fe71666befe5ec12d05ab0e3c0909f67
[ "BSD-3-Clause" ]
permissive
rmatam/vivotools
91f60b19c5d797d39ffb6c20eeb0f1e8048fdd57
b60b36c5ac6c672a5af8b2a7d1a646bebd026026
refs/heads/master
2021-01-20T08:19:01.113299
2015-12-20T22:21:01
2015-12-20T22:21:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
876
py
""" test_document_from_pubmed.py -- use Entrez to retrive a document entry from Pubmed, and format it as a reusable python structure Version 0.1 MC 2013-12-28 -- Initial version. """ __author__ = "Michael Conlon" __copyright__ = "Copyright 2013, University of Florida" __license__ = "BSD 3-...
[ "mconlon@ufl.edu" ]
mconlon@ufl.edu
01249f147a2f8d1dcd5f70439aa9d68d55c997e4
bdda8da38c77194d2fceb29e31e9b564f015259d
/myapp/runScript/User.py
e3094939d9f61864940cf347bca1d74a732fd999
[]
no_license
Hanlen520/myproject
54f2b4c4a77af768ae278f44922cd42befab3b08
eb420d7686bd502b300aadd8ba28cb28f03935f5
refs/heads/master
2020-04-13T13:51:26.667841
2018-12-26T13:23:34
2018-12-26T13:23:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,310
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from myapp.serializers import Login1 from myapp.models import Login from rest_framework import generics, filters, viewsets, mixins from rest_framework.views import APIView import logging from rest_framework.response import Response from rest_framework impo...
[ "zhengxq@dxy.cn" ]
zhengxq@dxy.cn
128a8225ef5aa2c8a88217d582fb77e064710a23
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_1/gjdsuv001/question3.py
bc93359eb4e9fc41676816f51ca1c166ab26a3e0
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
957
py
def message(): first_name = input("Enter first name:\n") last_name=input("Enter last name:\n") money=eval(input("Enter sum of money in USD:\n")) country=input("Enter country name:\n") print() print("Dearest",first_name,) print("It is with a heavy heart that I inform you of the death ...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
704c36ab9cda3860edd3b1fc17cfd5f8c7febc2f
5a71ca1f5c964f803350e3c1238cb48986db565c
/coinlib/tests/utils/test_decorators.py
f309cff6a37f9cb9bc36bc92982bdf409a599424
[]
no_license
tetocode/coinliball
fd644cbc16039ecad7e43228ea4e287ead5c8e5f
41ebbac13c1fbba98aedaa766b9a505cb157f374
refs/heads/master
2022-09-28T21:58:08.130006
2020-06-04T03:00:56
2020-06-04T03:00:56
269,247,318
0
2
null
null
null
null
UTF-8
Python
false
false
561
py
from coinlib.utils.decorators import dedup def test_dedup(): @dedup(lambda x: x) def gen(it): yield from it assert list(range(3)) == list(gen(range(3))) assert list(range(3)) == list(gen(list(range(3)) * 2)) @dedup(lambda x: x, cache_limit=0) def gen(it): yield from it a...
[ "_" ]
_
b559d304d58a2b548b321a7b94fc9bd9c30cd860
bacc65263d0308d455333add3ff918ee42498f32
/pilarfc_crowdbotics_123/settings.py
e4fbdbe907c6641a2a41bf63b3ad341bf211488d
[]
no_license
crowdbotics-users/pilarfc-crowdbotics-123
7d248119ab44ddc8e3c6fb0de866796530d98ba0
aea7b9bf645ac60fbe173f6517727675743a60be
refs/heads/master
2020-03-13T09:39:30.290774
2018-04-25T22:02:42
2018-04-25T22:02:42
131,068,534
0
0
null
null
null
null
UTF-8
Python
false
false
3,600
py
""" Django settings for pilarfc_crowdbotics_123 project. Generated by 'django-admin startproject' using Django 1.11.5. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings...
[ "sp.gharti@gmail.com" ]
sp.gharti@gmail.com
bd689ff301eace5907505fe34ea81ed7774859e8
27b1d48534a3f35d1286498e84df8333250f51a8
/Exam-Preparation/Mid Exam/treasure_hunt.py
0a7d90b968fe4f26fca2191c7289aa538ed23735
[]
no_license
zhyordanova/Python-Fundamentals
f642f841629c99fcdd12ace79ea813d62972f36f
07c16053e5d03bd7cfb51ace8ef277c2c62cd927
refs/heads/main
2023-03-19T03:05:12.764726
2021-03-15T08:20:39
2021-03-15T08:20:39
345,451,804
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
loot = input().split("|") command = input() while not command == "Yohoho!": tokens = command.split() if tokens[0] == "Loot": items = tokens[1:] [loot.insert(0, x) for x in items if x not in loot] elif tokens[0] == "Drop": index = int(tokens[1]) if 0 <= index < len(loot): ...
[ "zhyordanova88@gmail.com" ]
zhyordanova88@gmail.com
02f1fdb651c4922014a525edd14cf31d10ac08d1
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/320/usersdata/287/88404/submittedfiles/lecker.py
85af5097a574ebcfbb8bd3fd8a186df71506f904
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
359
py
# -*- coding: utf-8 -*- import math a=int(input('Digite o primeiro valor: ')) b=int(input('Digite o segundo valor: ')) c=int(input('Digite o terceiro valor: ')) d=int(input('Digite o quarto valor: ')) A=0 B=0 C=0 D=0 if a>b: A=1 if b>a or b>c: B=1 if c>b or c>d: C=1 if d>c: D=1 lecker=A+B+C+D if lecker=...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
4e53ec0a5b834c3009372939a3bcc6d387cb6878
9ecf6dfe87999f0c510c1d67e2b1cf6ca5b53e52
/example/voxelize_chair.py
cd739c8722d72501d5c0aedf805d9f26d41f9adc
[ "MIT" ]
permissive
marian42/mesh_to_sdf
b43cdcb87c2845bebc7b928ccacbf0d2c0a9b50d
66036a747e82e7129f6afc74c5325d676a322114
refs/heads/master
2023-04-17T10:23:31.431009
2021-03-11T23:31:12
2021-03-11T23:31:12
234,407,235
847
95
MIT
2023-04-11T16:05:04
2020-01-16T20:37:53
Python
UTF-8
Python
false
false
778
py
import numpy as np from mesh_to_sdf import get_surface_point_cloud, scale_to_unit_sphere import trimesh import skimage, skimage.measure import os mesh = trimesh.load('example/chair.obj') mesh = scale_to_unit_sphere(mesh) print("Scanning...") cloud = get_surface_point_cloud(mesh, surface_point_method='scan', scan_coun...
[ "mail@marian42.de" ]
mail@marian42.de
1d06f0506e12e305f72fcf5c58609e5187a954f9
e74e55d174772975a3c16d4aa1210215fa698528
/oim_cms/utils.py
8a04ac90651f889c22066ac36e6cc785af2af1c5
[ "Apache-2.0" ]
permissive
tawazz/oim-cms
2c0417863fef24f3a3b2d75dfdd88d8850b9354d
eef09ef42b20a08ff25f3c4ff12d50db14d54416
refs/heads/master
2021-01-11T01:53:15.879813
2016-10-19T02:24:07
2016-10-19T02:24:07
70,650,009
0
0
null
2016-10-12T01:25:30
2016-10-12T01:25:30
null
UTF-8
Python
false
false
5,063
py
from __future__ import unicode_literals, absolute_import from django.http import HttpResponse from djqscsv import render_to_csv_response from restless.dj import DjangoResource class CSVDjangoResource(DjangoResource): """Extend the restless DjangoResource class to add a CSV export endpoint. """ @classmetho...
[ "ashley@ropable.com" ]
ashley@ropable.com
607a3c53f503aaa66c8d67493bd4f30be15d4b1a
ec09932ef977bb0f9117193c3200b0807c588542
/unreleased/azure-mgmt-search/azure/mgmt/search/models/check_name_availability_input.py
581958b5b33330d131bc6863bc2e77ec646619c6
[ "MIT" ]
permissive
biggorog/azure-sdk-for-python
26b9111f5d939e68374e2ff92dd5a3e127100a49
31e15670100f57a03aac9ada5fd83eedc230e291
refs/heads/master
2020-12-24T11:37:13.806672
2016-11-04T20:50:04
2016-11-04T20:50:04
73,026,650
1
0
null
2016-11-06T23:48:38
2016-11-06T23:48:37
null
UTF-8
Python
false
false
1,522
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
9773cad5194ddefe461acc4a4d927159764b2b90
fd0c7c10303ce93590af1a03ecf0fc272a396ade
/scripts/build_mod_picoblade.py
b761e0377b2d3ff3f37ea708c4f493ef48e2d744
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
adamgreig/agg-kicad
13eae98991a266955cac434ba9f43b69b1d5dbd5
5bf13b52fcacf7aedbacb884e0884819083a3bb7
refs/heads/master
2023-02-04T12:25:03.905819
2023-02-02T02:01:10
2023-02-02T02:01:10
45,762,615
157
52
MIT
2022-07-19T12:39:05
2015-11-08T01:42:57
Python
UTF-8
Python
false
false
5,989
py
""" build_mod_picoblade.py Copyright 2019 Adam Greig Licensed under the MIT licence, see LICENSE file for details. Generate foorprints for Molex Picoblade connectors. """ from __future__ import print_function, division import os import sys import time import math import argparse from sexp import parse as sexp_parse...
[ "adam@adamgreig.com" ]
adam@adamgreig.com
0c4bd2476662725bc512930b35d9f2125533ec69
ce083128fa87ca86c65059893aa8882d088461f5
/python/sistema-de-medicamentos-pytest/.venv/lib/python2.7/site-packages/tests/test_sort_query.py
3e14b9edc323ac1925cc4a9556e6985ce77414d7
[]
no_license
marcosptf/fedora
581a446e7f81d8ae9a260eafb92814bc486ee077
359db63ff1fa79696b7bc803bcfa0042bff8ab44
refs/heads/master
2023-04-06T14:53:40.378260
2023-03-26T00:47:52
2023-03-26T00:47:52
26,059,824
6
5
null
2022-12-08T00:43:21
2014-11-01T18:48:56
null
UTF-8
Python
false
false
5,669
py
from pytest import raises import sqlalchemy as sa from sqlalchemy_utils import sort_query from sqlalchemy_utils.functions import QuerySorterException from tests import TestCase class TestSortQuery(TestCase): def test_without_sort_param_returns_the_query_object_untouched(self): query = self.session.query(s...
[ "marcosptf@yahoo.com.br" ]
marcosptf@yahoo.com.br
8016219e342f85c4bd7d288538db7b88088d5f0d
abfc3a43aabace5afd55910279af61e5849963a2
/examples/app.py
b8b9796f6f16a785768f50131c482e0d9b5467e7
[]
no_license
kemingy/ventu
6b89c70222e961ef8bd52a6c3a1816edde664d8c
4a13f9c212c3d468de7ad234d036870857ae7499
refs/heads/master
2023-08-17T04:45:34.643958
2021-10-06T12:48:47
2021-10-06T12:48:47
249,647,511
8
0
null
2020-06-29T04:13:36
2020-03-24T08:03:45
Python
UTF-8
Python
false
false
3,203
py
import argparse import logging import numpy as np import torch from pydantic import BaseModel, confloat, constr from transformers import DistilBertTokenizer, DistilBertForSequenceClassification from ventu import Ventu # request schema used for validation class Req(BaseModel): # the input sentence should be at l...
[ "kemingy94@gmail.com" ]
kemingy94@gmail.com
5d1bedf2cbaa792dbc6e79da13882ee28ac23f02
5085dfd5517c891a1f5f8d99bf698cd4bf3bf419
/011.py
d86312728c2b2022599d385aa1a6c6bbb68e2b38
[]
no_license
Lightwing-Ng/100ExamplesForPythonStarter
01ffd4401fd88a0b997656c8c5f695c49f226557
56c493d38a2f1a1c8614350639d1929c474de4af
refs/heads/master
2020-03-10T22:07:37.340512
2018-04-15T13:16:30
2018-04-15T13:16:30
129,611,532
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
#!/usr/bin/env python # _*_ coding:utf-8 _*_ """ * @author: Lightwing Ng * email: rodney_ng@iCloud.com * created on Apr 14, 2018, 8:00 PM * Software: PyCharm * Project Name: Tutorial 题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少? 程序分析:兔子的规律为数列1,1,2,3,5,8,13,21.... """ a = 1 b = 1 for ...
[ "rodney_ng@icloud.com" ]
rodney_ng@icloud.com
96b00132f49b7b82711d9026c6d8585b771ebd65
5813c01847dd998df24510f1219a44c10717e65f
/flamingo/plugins/feeds.py
6e06bc90a44416fa14250f12bd15cb5b8a4dde47
[ "Apache-2.0" ]
permissive
robert-figura/flamingo
da52e8e3f3cf29f59f393ebae23b3a732f4143bd
63cbc5519b6e6b23a31d4e5153dd84976b6ef39f
refs/heads/master
2020-08-03T19:14:23.390513
2019-09-12T18:42:14
2019-09-30T14:35:51
211,857,258
0
0
null
null
null
null
UTF-8
Python
false
false
3,266
py
import logging from feedgen.feed import FeedGenerator logger = logging.getLogger('flamingo.plugins.Feeds') class Feeds: def pre_build(self, context): FEEDS_DOMAIN = getattr(context.settings, 'FEEDS_DOMAIN', '/') FEEDS = getattr(context.settings, 'FEEDS', []) for feed_config in FEEDS: ...
[ "f.scherf@pengutronix.de" ]
f.scherf@pengutronix.de
531687d1a028a86dd301e9e9d25034c0d5df19cd
b10c3eb402e155da2eba5d4e6175f0ea145685be
/Practice/Python/py-introduction-to-sets.py
d7854cad492b52c7eb421ebea5946ecf5d4168f3
[]
no_license
prayagsrivastava/HackerRank
2c3cff07a7de125d016eaa9510f488ea7f72015c
e5a5fbd6286ac3cc44a65c4408e6c983fdeb0c8e
refs/heads/master
2023-08-18T10:03:48.473061
2021-10-12T19:33:56
2021-10-12T19:33:56
405,563,300
0
0
null
null
null
null
UTF-8
Python
false
false
1,746
py
def average(array): a = set(array) s = sum(a)/len(a) return f"{s:.3f}" if __name__ == '__main__': n = int(input()) arr = list(map(int, input().split())) result = average(arr) print(result) """ >> a = raw_input() 5 4 3 2 >> lis = a.split() >> print (lis) ['5', '4', '3', '2'] >> newlis = l...
[ "prayag@outlook.in" ]
prayag@outlook.in
9f8af437d7187a9b8c4ce3def70c252d1776f115
5f447244723386902a5fbbb94ae45e5e04ec4d93
/08-函数/动手试一试/user_albums.py
2cd6e951005923b7ec008c846c7de6d3b3d4c750
[]
no_license
xuelang201201/PythonCrashCourse
2c0a633773340b748100a3349267e693ed2703da
55c729ec53c7870a327e5017e69ac853b024d58a
refs/heads/master
2022-09-12T06:13:14.302904
2020-05-30T07:40:24
2020-05-30T07:40:24
264,503,065
0
0
null
null
null
null
UTF-8
Python
false
false
918
py
""" 用户的专辑:在为完成练习 8-7 编写的程序中,编写一个 while 循环,让用户输入一个专辑的歌手和名称。获取这些信息后, 使用它们来调用函数 make_album(),并将创建的字典打印出来。在这个 while 循环中,务必要提供退出途径。 """ def make_album(artist, title, tracks=int()): album_dict = { 'artist': artist.title(), 'title': title.title(), } if tracks: album_dict['tracks'] = track...
[ "xuelang201201@gmail.com" ]
xuelang201201@gmail.com
a8e929b25a61e9552c4e32c67d6c3fa98304d4f0
79f42fd0de70f0fea931af610faeca3205fd54d4
/base_lib/ChartDirector/pythondemo_cgi/realtimedemo.py
51f8dc21d7e9e74fb3657b15b89712634d16efbc
[ "IJG" ]
permissive
fanwen390922198/ceph_pressure_test
a900a6dc20473ae3ff1241188ed012d22de2eace
b6a5b6d324e935915090e791d9722d921f659b26
refs/heads/main
2021-08-27T16:26:57.500359
2021-06-02T05:18:39
2021-06-02T05:18:39
115,672,998
0
0
null
null
null
null
UTF-8
Python
false
false
3,605
py
#!/usr/bin/python from pychartdir import * # # In this demo, the generated web page needs to load the "cdjcv.js" Javascript file. For ease of # installation, we put "cdjcv.js" in the same directory as this script. However, if this script is # installed in a CGI only directory (such as cgi-bin), the web server would no...
[ "fanwen@sscc.com" ]
fanwen@sscc.com
f7b39d51deee02aba20f484a17ca18c9719fd1b2
a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c
/venv/Lib/site-packages/pandas/tests/generic/test_frame.py
334651eb42df4f06b3c9078bb7055ef7355b38f6
[]
no_license
mylonabusiness28/Final-Year-Project-
e4b79ccce6c19a371cac63c7a4ff431d6e26e38f
68455795be7902b4032ee1f145258232212cc639
refs/heads/main
2023-07-08T21:43:49.300370
2021-06-05T12:34:16
2021-06-05T12:34:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:c2f9e8ecaccad5fbdf2183633d20185b2b53f18c7eca55721455ca2366e3ce31 size 7441
[ "chuksajeh1@gmail.com" ]
chuksajeh1@gmail.com
2209465c41bec4b36500babebeff0c642f924940
b0f0bd131bbfc287f2d8393fcf6aaabd99b17e05
/db_create.py
5f7295adc0feb3e6fe82b6a31f45750f7ee23f24
[]
no_license
jreiher2003/casino
b19380364d57fba7bc3a772a19cf8caa8b55585c
bd6b12740c84c82dd5589a9aa414d6053c997739
refs/heads/master
2021-01-11T14:50:29.024326
2017-02-12T12:33:08
2017-02-12T12:33:08
80,230,542
1
0
null
null
null
null
UTF-8
Python
false
false
1,523
py
import pymongo from pymongo import MongoClient from datetime import datetime conn = MongoClient("mongodb://finn:finn7797@localhost:27017/casino") db = conn.casino.test_col # blog_record = {} blog_record = { "author": "erlichson", "body": "This is a test body", "comments": [ { ...
[ "jreiher2003@yahoo.com" ]
jreiher2003@yahoo.com
617fb94131635549bc2bcc55ed6c5531eed3c24c
94e6b634335d310daed51687ccb6206ce10c7807
/permutation_sequence.py
b6216a32418a1b28690a18106e2cf89712e5dfaa
[ "MIT" ]
permissive
lutianming/leetcode
4fdbdd852353e1682794ee4b2557389810f07293
848c7470ff5fd23608cc954be23732f60488ed8a
refs/heads/master
2021-01-19T11:45:25.352432
2015-07-26T11:57:21
2015-07-26T11:57:21
18,801,366
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
class Solution: # @return a string def getPermutation(self, n, k): num = 1 for i in range(n): num *= (i+1) if k < 1 or k > num: return None k = k-1 seq = [i+1 for i in range(n)] permutation = '' subk = 1 for i in range(n, 0,...
[ "lutianming1005@gmail.com" ]
lutianming1005@gmail.com
5ac3f83fe5ba0066a76f4ced6242806d952e696c
ddf002d1084d5c63842a6f42471f890a449966ee
/basics/Python/PYTHON --------/oops/aaaa.py
8fccdfcb19262491e0eb8104cd18e8fae6d1bba7
[]
no_license
RaghavJindal2000/Python
0ab3f198cbc5559bdf46ac259c7136356f7f09aa
8e5c646585cff28ba3ad9bd6c384bcb5537d671a
refs/heads/master
2023-01-01T23:56:02.073029
2020-10-18T19:30:01
2020-10-18T19:30:01
263,262,452
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
class Sample: def __init__(self,x): self.x = x def __add__(self,other): print(self.x*other.x) a=Sample(5) b=Sample(10) a+b
[ "40332753+RaghavJindal2000@users.noreply.github.com" ]
40332753+RaghavJindal2000@users.noreply.github.com
b7d6112a988c2054ed227e17d4af0f39335b9cfb
d2fe0e203df127f0a823ca5f1cc2a50c3ae7451e
/dask_image/ndfilters/_gaussian.py
675334d6f433a149add1adf587a7fc70f257133e
[ "BSD-3-Clause" ]
permissive
awesome-archive/dask-image
78e8f1666d59293dc69fb34afbda23de2c3822fb
21047b4d7e882441754b94894013cb3ec9b5b396
refs/heads/master
2021-06-19T01:39:04.882036
2019-02-14T17:06:30
2019-02-14T17:06:30
170,795,341
0
0
BSD-3-Clause
2020-01-13T04:40:59
2019-02-15T03:20:12
Python
UTF-8
Python
false
false
3,181
py
# -*- coding: utf-8 -*- import numbers import numpy import scipy.ndimage.filters from . import _utils def _get_sigmas(input, sigma): ndim = input.ndim nsigmas = numpy.array(sigma) if nsigmas.ndim == 0: nsigmas = numpy.array(ndim * [nsigmas[()]]) if nsigmas.ndim != 1: raise Runtim...
[ "noreply@github.com" ]
awesome-archive.noreply@github.com
f4724ae50443e1ccbbe1fff7f928824f75702d3d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02555/s538632738.py
23cc590fdcbf56a8cc888767b524fbc44b81c985
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
S = int(input()) mod = 10 ** 9 + 7 f = [1] for i in range(1,2000): f.append((f[-1] * i) % mod) def comb(n,r): return f[n] * (pow(f[r], mod-2, mod) * pow(f[n-r], mod-2, mod) % mod) % mod ans = 0 for i in range(1,700): s = S - (3 * i) if s < 0: break ans += comb(s+i-1, i-1) ans %= mod ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
dd13976ac5b9b1d7d3c91724bd781689aea63400
bd8532378ad2a61240faaa7be8ef44c60c055a2a
/rabona/data/leagues/Campeonato Scotiabank/San Luis/San Luis.py
bab8b8776851cf081d0374f9e793d0e82d7e98f0
[]
no_license
nosoyyo/rabona
278a9dfe158e342261343b211fb39b911e993803
b0af3ab5806675fbf81b038633a74943118a67bb
refs/heads/master
2020-03-16T06:56:55.277293
2018-05-30T11:45:51
2018-05-30T11:45:51
132,565,989
2
1
null
2018-05-30T11:45:52
2018-05-08T06:44:11
Python
UTF-8
Python
false
false
220
py
club_info = {'club_url': 'https://www.futbin.com///18/leagues/Campeonato%20Scotiabank?page=1&club=112668', 'club_logo': 'https://cdn.futbin.com/content/fifa18/img/clubs/112668.png', 'club_name': 'San Luis'} players = {}
[ "oyyoson@gmail.com" ]
oyyoson@gmail.com
f0a909ca5858215c7001a0ceeb0fc4ee93eddcb0
d66818f4b951943553826a5f64413e90120e1fae
/hackerearth/Math/Number Theory/Primality Tests/Does it divide/solution.py
28584b27d406a332fb41da73ba15b6bd2ef85ba0
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
438
py
def is_prime(x): if x <= 1: return False if x == 2 or x == 3: return True if x % 2 == 0 or x % 3 == 0: return False for i in range(5, int(x ** .5) + 1, 6): if x % i == 0 or x % (i + 2) == 0: return False return True t = int(input()) for _ in range(t): ...
[ "hbinhct@gmail.com" ]
hbinhct@gmail.com
bd63cfe681913e3127aeabfd924d544aba02e68e
32c56293475f49c6dd1b0f1334756b5ad8763da9
/google-cloud-sdk/lib/third_party/kubernetes/client/models/v1beta1_api_service_list.py
881cd62e4beaeedd82f3052769f50e052fb43ba9
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
permissive
bopopescu/socialliteapp
b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494
85bb264e273568b5a0408f733b403c56373e2508
refs/heads/master
2022-11-20T03:01:47.654498
2020-02-01T20:29:43
2020-02-01T20:29:43
282,403,750
0
0
MIT
2020-07-25T08:31:59
2020-07-25T08:31:59
null
UTF-8
Python
false
false
5,935
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
[ "jonathang132298@gmail.com" ]
jonathang132298@gmail.com
3885aebb72cf173ed1f34761cc278cbade2a89c0
292cec77b5003a2f80360d0aee77556d12d990f7
/typings/fs/opener/appfs.pyi
2482685ff2801c22c4fb2e0cd2c5f3b9f9f5127e
[ "Apache-2.0" ]
permissive
yubozhao/BentoML
194a6ec804cc1c6dbe7930c49948b6707cbc3c5f
d4bb5cbb90f9a8ad162a417103433b9c33b39c84
refs/heads/master
2022-12-17T00:18:55.555897
2022-12-06T00:11:39
2022-12-06T00:11:39
178,978,385
3
0
Apache-2.0
2020-12-01T18:17:15
2019-04-02T01:53:53
Python
UTF-8
Python
false
false
506
pyi
import typing from typing import Text, Union from ..appfs import _AppFS from ..subfs import SubFS from .base import Opener from .parse import ParseResult from .registry import registry if typing.TYPE_CHECKING: ... @registry.install class AppFSOpener(Opener): protocols = ... _protocol_mapping = ... def ope...
[ "noreply@github.com" ]
yubozhao.noreply@github.com
f4a25896e546374e0f6ccf4c1c1b90b47bf1f1f4
89caf19c6e2c9c0c7590226266a1f1fb2bd13d56
/day1/08-strings.py
b7f7fdf17be5e5abf806af3112b5227f57247cbc
[]
no_license
ash/python-in-5days
2af3e4477210fd6e8710b148a1a3c187604695c2
76252fe2b905d1aee0772908742a6bb814a6ef99
refs/heads/master
2021-04-06T20:47:06.667013
2018-03-21T15:06:05
2018-03-21T15:06:05
125,269,790
0
1
null
null
null
null
UTF-8
Python
false
false
1,000
py
# Quoting strings: single or double quotes are equivalent. # Choose the one that makes it easy to add quotes inside a string: s1 = 'single " quote' s2 = "double ' quotes" # Escpaing characters with a backslash: s3 = 'escape \' continue' print(s3) # More escaped symbols: # \n = newline # \t = tab # \r = line feed # \b...
[ "andy@shitov.ru" ]
andy@shitov.ru
26d577fdef3604793c953c49f2c7d23bcabe0c42
4264d47b39469ff508c15aa54960b67d56082855
/scripts/design.py
359f3a688400c5b2326159c5da75cda4cf36a9a4
[]
no_license
EthanHolleman/GLOE-DRIP
5097edad289b9f1e67349540c8959d84a59a0137
ae77f2acc45be99727643466a25d69f1d13c9d48
refs/heads/main
2023-04-28T19:08:53.301899
2021-05-11T17:08:26
2021-05-11T17:08:26
360,753,763
0
0
null
null
null
null
UTF-8
Python
false
false
1,422
py
# Read an SRA table with sample information and create a "design" # table that can be used by the R metagene package for plotting # by experimental group. In the sra file the experimental group # should be under a column called "modification" and the sample # name should be under "Sample Name" (case sensitive). import...
[ "etholleman@ucdavis.edu" ]
etholleman@ucdavis.edu
9448924fade59de01de7a10fa8d88ce40717702b
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Logit/trend_PolyTrend/cycle_7/ar_/test_artificial_128_Logit_PolyTrend_7__20.py
cf1fa0ed89ce35dc406211254b9440c735a0c415
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
265
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 7, transform = "Logit", sigma = 0.0, exog_count = 20, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
c5496dfe565e03a669ff94ddc35eb0624c222896
3274e44458cd20e0c9b04fc41ef0e981f2bfaa34
/forms.py
b3e3630316a6ed949969a3cdab42bd095bd9e398
[ "MIT" ]
permissive
ThanlonSmith/news_cms
b354f59cc8d31b3495c0fa445375fe9c04ea2604
3a5b593334c3edd13682a0280d1ba003732e4c9a
refs/heads/master
2022-12-17T17:26:39.176484
2020-09-27T09:33:48
2020-09-27T09:33:48
298,996,072
0
0
null
null
null
null
UTF-8
Python
false
false
7,489
py
# coding:utf8 # @Time : 2020/7/2 上午1:26 # @Author : Erics # @File : forms.py # @Software: PyCharm from flask_wtf import FlaskForm # pip install flask_wtf -i https://mirrors.aliyun.com/pypi/simple from wtforms import StringField, PasswordField, SubmitField, SelectField, FileField, TextAreaField from wtforms.validators ...
[ "erics1996@yeah.net" ]
erics1996@yeah.net
e45767923ad9500f39828ce955a405c8f8f532c1
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/Yfm3h3nT3apARd4gC_15.py
f993b37a58929b8e7570a3eb9c3d4bd005e786b1
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
996
py
""" Create a function that takes a list consisting of dice rolls from 1-6. Return the sum of your rolls with the following conditions: 1. If a 1 is rolled, that is bad luck. The next roll counts as 0. 2. If a 6 is rolled, that is good luck. The next roll is multiplied by 2. 3. The list length will always be 3...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
d4b7f92e65fef54a3974ebb8980dc6f72e48d271
a616222ab88766f7b74e3224f3584feec558c39e
/log1.py
be88aeff621887a48400c7aff29b3cf3e669ef25
[]
no_license
sundeepkakarla/python2
fdf736968961f44a6e83124d0e8636ec8432ea99
c8987fe1c86b91bdd58b6455e682d1c1fccffed8
refs/heads/master
2021-01-19T20:33:43.831511
2016-11-20T05:03:11
2016-11-20T05:03:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
import logging logging.basicConfig(level=logging.DEBUG) logging.info('Program started') logging.warn("Warnig message") logging.exception("Exception message") logging.info("program ended")
[ "sambapython@gmail.com" ]
sambapython@gmail.com
9255c63f88713989d591023379e353dc29631e7e
1749147fb24b13803d3437e0ae94250d67d618bd
/titanic/titanic_predict_surv.py
d04c873ba7f7ca7d7774a3f44dd32820e330f5ab
[]
no_license
MJK0211/bit_seoul
65dcccb9336d9565bf9b3bc210b1e9c1c8bd840e
44d78ce3e03f0a9cf44afafc95879e4e92d27d54
refs/heads/master
2023-02-06T00:45:52.999272
2020-12-26T07:47:30
2020-12-26T07:47:30
311,308,648
1
0
null
null
null
null
UTF-8
Python
false
false
3,726
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns train = pd.read_csv('./data/titanic/csv/train.csv') test = pd.read_csv('./data/titanic/csv/test.csv') # print(train.shape) #(891, 12) # print(test.shape) #(418, 11) # print(train.head()) # print(train.tail()) ...
[ "kimminjong0211@gmail.com" ]
kimminjong0211@gmail.com
3cd04be986dd9051c15d607bd9520043a0296705
f0bc59dc9aab005ef977957e6ea6b91bbe430952
/2019-06-06-ten-tips-python-web-devs-kennedy/code/top_10_web_explore/ex07_viewmodels/pypi_vm/views/account_view.py
536097402ca04631d85bc4f41202854bac972a11
[ "Apache-2.0" ]
permissive
Wintellect/WintellectWebinars
3ac0f6ae02d2d52eefb80f4f06d70f44e0d66095
5a59d9742c340022d58ec7e2cda69a1eba0feb53
refs/heads/master
2023-03-02T06:31:25.457579
2022-04-29T19:26:55
2022-04-29T19:26:55
87,122,981
68
124
Apache-2.0
2023-03-01T02:39:17
2017-04-03T21:33:32
JavaScript
UTF-8
Python
false
false
2,404
py
import flask from flask import Response from pypi_vm.infrastructure import cookie_auth from pypi_vm.infrastructure.view_modifiers import response from pypi_vm.services import user_service from pypi_vm.viewmodels.account.account_home_viewmodel import AccountHomeViewModel from pypi_vm.viewmodels.account.login_viewmodel ...
[ "mikeckennedy@gmail.com" ]
mikeckennedy@gmail.com
30a54b9384bc265e2460c72854893e255db26a59
c5b21cec89c743475b918bcbb0f36c492417f295
/djangomysqlrestcrudswagger/djangomysqlrestcrudswagger/wsgi.py
fefb24816b834800701be025cdd3ba520f88436f
[]
no_license
roytuts/django
f41acc8ca9d06177e76fc4b4824a5d6cbbf83328
7f32edcfb6b197680c189e3fe6e0d9971ea87e91
refs/heads/master
2023-06-10T11:54:12.184492
2021-06-28T04:53:40
2021-06-28T04:53:40
282,702,115
17
46
null
2020-12-06T22:32:24
2020-07-26T17:43:52
Python
UTF-8
Python
false
false
429
py
""" WSGI config for djangomysqlrestcrudswagger project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setde...
[ "email@email.com" ]
email@email.com
b55bf0d5a78fc51ec3c3a90b25964149808978ac
95857cfe06ba533fc38e4266b3ca40914505ec9f
/01_hello.py
bd65d05e00075141282d58aa5a1b406435df8d22
[]
no_license
ccwu0918/python_basic
184b8d974ea8e0f615b0fd046a59177b7d045099
e5ff6d45dc80805bcda0d9949254f5ad2acfc306
refs/heads/master
2023-06-10T18:59:52.705045
2021-07-02T16:05:55
2021-07-02T16:05:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
# 練習 Hello World,註解符號 print("Hello World") """ 單行註解,井字號 大段落文字的註解,三個引號 """ a = 3 b = 7 c = a * b print(a, "*", b, "=", c) print(7%3) name = "Vincent " print("My name is ", name) # 同時可設定多個變數 a, b = 3, 7 # 練習題:如何做兩數交換?
[ "shinjia168@gmail.com" ]
shinjia168@gmail.com
2b2b1b0623fbd155f773f0883f1016437d0e214b
af7b245364a2532fb1fd1bff915be196830d8699
/begin/urls.py
c50c5aa2a5b87ae23811ca38b32cca44550e600c
[]
no_license
NabhyaKhoria/NBS
433db9962031624db790de3e76450a31ce6287fb
25792daf1c10eddb66c1e6ebf6ca06acc8ae3b73
refs/heads/main
2023-07-01T16:52:38.850449
2021-07-10T18:22:19
2021-07-10T18:22:19
384,763,911
1
0
null
null
null
null
UTF-8
Python
false
false
139
py
from django.contrib import admin from django.urls import path from . import views urlpatterns = [ path('',views.home, name='home'), ]
[ "you@example.com" ]
you@example.com
85d8bfbe235614b4b0ed925893f339a1255e6207
29fd3daff8c31764c00777e67d2cc9b3e94ba761
/examples/appB_examples/pdb_demo_trace.py
36218fc7e9e2118913539b455203de4f100688d2
[]
no_license
mwoinoski/crs1906
06a70a91fc99e2d80e2ed3cea5724afa22dce97d
202f7cc4cae684461f1ec2c2c497ef20211b3e5e
refs/heads/master
2023-06-23T17:13:08.163430
2023-06-12T21:44:39
2023-06-12T21:44:39
39,789,380
1
2
null
2022-01-26T20:43:18
2015-07-27T17:54:56
Python
UTF-8
Python
false
false
566
py
"""pdb_demo_trace.py - Example of pdb from chapter 4""" import pdb class PdbDemo(object): def __init__(self, name, num_loops): self._name = name self._count = num_loops def count(self): for i in range(self._count): pdb.set_trace() print(i) return '{} e...
[ "michaelw@articulatedesign.us.com" ]
michaelw@articulatedesign.us.com
bb40e04886ed2422e53222096f14b7e314049118
f281d0d6431c1b45c6e5ebfff5856c374af4b130
/DAY100~199/DAY197-BOJ6002-Job Hunt/joohyuk.py
6745ebd98856cfab08e5396547a8f43ac8b9118d
[]
no_license
tachyon83/code-rhino
ec802dc91dce20980fac401b26165a487494adb4
b1af000f5798cd12ecdab36aeb9c7a36f91c1101
refs/heads/master
2022-08-13T09:10:16.369287
2022-07-30T11:27:34
2022-07-30T11:27:34
292,142,812
5
6
null
null
null
null
UTF-8
Python
false
false
657
py
import sys si = sys.stdin.readline d, p, c, f, s = [int(e) for e in si().split()] g, earnings = [[] for _ in range(c+1)], [0 for _ in range(c+1)] while p: p -= 1 a, b = [int(e) for e in si().split()] g[a].append([b, 0]) while f: f -= 1 a, b, w = [int(e) for e in si().split()] g[a].append([b, w...
[ "noreply@github.com" ]
tachyon83.noreply@github.com
70e74cc0a23a38a39b7158bb70228fdd02552163
a28a3665af439ad3d9f401d180856b0489341ffd
/plot_dumped_spikes.py
5781e18c464a56d2fef9b00a92fb8f074783e2eb
[]
no_license
Jegp/spike_conv_nets
c75f8bfc8f977ed94e4bc8d6d37cd02ac65b5961
c11b469b6d7896d787c77dca789be26f3d3d98b4
refs/heads/master
2023-06-24T03:20:16.378273
2021-07-16T17:20:43
2021-07-16T17:20:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,231
py
import numpy as np import matplotlib.pyplot as plt dumps_per_rate = { 5: [0, 0, 0, 0, 0, 0, 4, 6], 10: [0, 0, 0, 0, 0, 0, 9, 37], 25: [0, 0, 1, 181, 1204, 3426, 6153, 8864], 50: [0, 68, 2174, 7877, 13170, 18043, 22405, 26850], 100: [0, 5580, 16308, 25460, 33980, 42078, 53812, 61430], 150: [111,...
[ "chanokin@gmail.com" ]
chanokin@gmail.com
2bbf7771c9c7a453bd61e602ff988dfd4a3b4ae0
ac216a2cc36f91625e440247986ead2cd8cce350
/recipes/recipes/infra_frontend_tester.py
35f8b23c7f2b499284c5540051977b9d62c9f7c2
[ "BSD-3-Clause" ]
permissive
xinghun61/infra
b77cdc566d9a63c5d97f9e30e8d589982b1678ab
b5d4783f99461438ca9e6a477535617fadab6ba3
refs/heads/master
2023-01-12T21:36:49.360274
2019-10-01T18:09:22
2019-10-01T18:09:22
212,168,656
2
1
BSD-3-Clause
2023-01-07T10:18:03
2019-10-01T18:22:44
Python
UTF-8
Python
false
false
3,772
py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. DEPS = [ 'depot_tools/bot_update', 'depot_tools/gclient', 'infra_checkout', 'recipe_engine/buildbucket', 'recipe_engine/cipd', 'recipe_engine/con...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
1ce69570b147409c64f71b6f95f4f9f4424df5fd
847273de4b1d814fab8b19dc651c651c2d342ede
/.history/sok2_20180605144707.py
415fc2182c0374df330c14fda7cf3dfab26de737
[]
no_license
Los4U/sudoku_in_python
0ba55850afcffeac4170321651620f3c89448b45
7d470604962a43da3fc3e5edce6f718076197d32
refs/heads/master
2020-03-22T08:10:13.939424
2018-07-04T17:21:13
2018-07-04T17:21:13
139,749,483
0
1
null
null
null
null
UTF-8
Python
false
false
988
py
row1 = [0,0,0,0,0,0,0,0,0] row2 = [0,0,0,5,0,6,0,0,0] row3 = [0,0,1,0,0,0,0,3,0] row4 = [0,9,5,0,0,0,2,0,0] row5 = [0,0,0,0,0,1,6,0,7] row6 = [1,0,6,0,0,9,0,0,5] row7 = [7,0,0,8,0,3,9,0,0] row8 = [0,3,8,9,0,0,0,2,0] row9 = [0,5,0,0,2,0,7,0,0] print(row1) print(row2) print(row3) print("") print(row4) print(ro...
[ "inz.kamil.wos@gmail.com" ]
inz.kamil.wos@gmail.com
4e2cb5d3446ab650d78bd50b0f6c501c5b253419
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-iec/huaweicloudsdkiec/v1/model/create_firewall_request.py
5f5b939d3a460d290d4882cf2d16021fd5122cc7
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
3,151
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CreateFirewallRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attrib...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
db5d2df161a6e83e117857449c89f34e77bbc1e9
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/46/usersdata/133/19356/submittedfiles/funcoes1.py
6e1d19cdc94d09fc1fc04dfb30e04fc08e20562e
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,844
py
# -*- coding: utf-8 -*- from __future__ import division def crescente (lista): c = 0 for i in range(0, len(lista) - 1, 1): if (lista[i] > lista[i+1]): c = c + 1 if c == 0: return True else: return False def decrescente (lista): c = 0 for i in range (0,...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
8d0f295d36ca43741e772ae4a4d619e059a69763
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_pitcher.py
4935937eb1a295682a937ebc12940f067750b650
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
#calss header class _PITCHER(): def __init__(self,): self.name = "PITCHER" self.definitions = [u'a large, round container for liquids that has a flat base, a handle, and a very narrow raised opening at the top for pouring: ', u'a container for holding liquids that has a handle and a shaped opening at the top fo...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
3201eddccde78cd5194c5e90ad30468489386f20
6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110
/api/src/opentrons/hardware_control/emulation/module_server/server.py
5a3d696eb7b834587678e7f64d99bb63f8ebdd00
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
Opentrons/opentrons
874321e01149184960eeaeaa31b1d21719a1ceda
026b523c8c9e5d45910c490efb89194d72595be9
refs/heads/edge
2023-09-02T02:51:49.579906
2023-08-31T16:02:45
2023-08-31T16:02:45
38,644,841
326
174
Apache-2.0
2023-09-14T21:47:20
2015-07-06T20:41:01
Python
UTF-8
Python
false
false
3,478
py
"""Server notifying of module connections.""" import asyncio import logging from typing import Dict, Set from opentrons.hardware_control.emulation.module_server.models import ( ModuleConnection, Message, ) from opentrons.hardware_control.emulation.proxy import ProxyListener from opentrons.hardware_control.emul...
[ "noreply@github.com" ]
Opentrons.noreply@github.com
0058c0c97e9d9d87841883e5c30387db9b77b14e
bdf86d69efc1c5b21950c316ddd078ad8a2f2ec0
/venv/Lib/site-packages/scrapy/selector/lxmlsel.py
c610d120ad1f1822117219bab6d57d09323f7f09
[]
no_license
DuaNoDo/PythonProject
543e153553c58e7174031b910fd6451399afcc81
2c5c8aa89dda4dec2ff4ca7171189788bf8b5f2c
refs/heads/master
2020-05-07T22:22:29.878944
2019-06-14T07:44:35
2019-06-14T07:44:35
180,941,166
1
1
null
2019-06-04T06:27:29
2019-04-12T06:05:42
Python
UTF-8
Python
false
false
1,340
py
""" XPath selectors based on lxml """ from scrapy.utils.deprecate import create_deprecated_class from .unified import Selector, SelectorList __all__ = ['HtmlXPathSelector', 'XmlXPathSelector', 'XPathSelector', 'XPathSelectorList'] def _xpathselector_css(self, *a, **kw): raise RuntimeError('.css() meth...
[ "teadone@naver.com" ]
teadone@naver.com
a1805cdf71db4000bbdb1c7c3b2df4c64fdb8be0
fa6776ade56e05d1448ddb6c81cb78ed207cc7a9
/mlfromscratch/unsupervised_learning/genetic_algorithm.py
005dc1993e1ab570475c62c5a321edb4134e1d7d
[ "MIT" ]
permissive
lyrl/ML-From-Scratch
28eef91c84c8595f43745d8a6a3f6d082ea23346
a7d43fd1eb352035179c5f333bec082d0083362c
refs/heads/master
2021-06-27T19:27:08.053663
2017-09-15T08:43:55
2017-09-15T08:43:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,423
py
import string import numpy as np class GeneticAlgorithm(): """An implementation of a Genetic Algorithm which will try to produce the user specified target string. Parameters: ----------- target_string: string The string which the GA should try to produce. population_size: int T...
[ "eriklindernoren@live.se" ]
eriklindernoren@live.se
52be8e15b25ae2d05f9c682e3964907f3b834520
59cf95f3344bc8284b325691ac9e01a988d0390a
/Session21.py
2ee32100cbd79b7d8ff851b50d644c7d8c1a0dd2
[]
no_license
ishantk/GW2021PY1
8932282895c8a3a53d64f83e2710541beca8e4a7
0d20ad4103f90568e165b35ff571c4672de16147
refs/heads/master
2023-08-01T05:02:39.358314
2021-09-17T12:09:40
2021-09-17T12:09:40
387,378,623
0
4
null
null
null
null
UTF-8
Python
false
false
683
py
import os print(os.name) print(os.uname()) print(os.getlogin()) print(os.getcwd()) print(os.getppid()) path_to_directory = "/Users/ishantkumar/Downloads/profilepage" path_to_file = "/Users/ishantkumar/Downloads/Ishant.pdf" print(os.path.isdir(path_to_directory)) print(os.path.isfile(path_to_file)) # path_to_directo...
[ "er.ishant@gmail.com" ]
er.ishant@gmail.com
9d4313101fa758d947c55a7a942fc0fbb6582ba0
1c2428489013d96ee21bcf434868358312f9d2af
/ultracart/models/coupon_amount_off_subtotal_with_items_purchase.py
41fa3bf9b7bd54a00159e397d0b0dd8c1f743eb2
[ "Apache-2.0" ]
permissive
UltraCart/rest_api_v2_sdk_python
7821a0f6e0e19317ee03c4926bec05972900c534
8529c0bceffa2070e04d467fcb2b0096a92e8be4
refs/heads/master
2023-09-01T00:09:31.332925
2023-08-31T12:52:10
2023-08-31T12:52:10
67,047,356
2
0
null
null
null
null
UTF-8
Python
false
false
7,078
py
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 # noqa: E501 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class CouponAmountOffSubtotalW...
[ "perry@ultracart.com" ]
perry@ultracart.com
9525643788f81bbc4fd703048134022606188cc6
3a4fbde06794da1ec4c778055dcc5586eec4b7d2
/_google_app_engine-projects/django-gae2django/django/core/management/color.py
9e1f4bc3c7035f41cb793f3cff4c5c80232312fc
[ "Apache-2.0" ]
permissive
raychorn/svn_python-django-projects
27b3f367303d6254af55c645ea003276a5807798
df0d90c72d482b8a1e1b87e484d7ad991248ecc8
refs/heads/main
2022-12-30T20:36:25.884400
2020-10-15T21:52:32
2020-10-15T21:52:32
304,455,211
0
0
null
null
null
null
UTF-8
Python
false
false
1,339
py
""" Sets up the terminal color scheme. """ import sys from django.utils import termcolors def supports_color(): """ Returns True if the running system's terminal supports color, and False otherwise. """ unsupported_platform = (sys.platform in ('win32', 'Pocket PC')) # isatty is ...
[ "raychorn@gmail.com" ]
raychorn@gmail.com
8e50fe8cb7476ae32c0df2bdf7c48b016713463d
eb0345c732b9525db372283fe6105f553d6bddbf
/backendapi/prescription/serializers.py
596707772dc9f5393e68fbef67bfdfef64734622
[]
no_license
mahidulmoon/djreact-smart-medic
1f0a6b3de8981858d4234b4da8d76b52e1911f70
9d07d93aa1ff27558cd496a4aa94167c8983958a
refs/heads/master
2021-05-22T01:49:00.155572
2020-04-04T05:13:27
2020-04-04T05:13:27
252,911,771
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
from rest_framework import serializers from .models import Prescription class PrescriptionSerializer(serializers.ModelSerializer): class Meta: model=Prescription fields="__all__"
[ "mahidulmoon@gmail.com" ]
mahidulmoon@gmail.com
e1e603be0d0b6b5a04022895a942d4b2ce6476f7
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/sql/azure-mgmt-sql/generated_samples/server_advanced_threat_protection_settings_create_min.py
6c0235f2a980a9217c5d24fd3ecae5af2e6b9d20
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,785
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
22c9bd34bc65eeaa2531ecd17303521ed2520d03
abd7504f6562babf79fb4e86af7529b2cb40fb54
/pkg/p2/algebraic/Composite.py
f7484bcffe062e091103b6467f18fc30e7da1383
[]
no_license
aivazis/p2
266c1728554b3f7a89e72f09ba2d9e5ff8d4447d
fd9a82d7dafa815dd68f679eb2b4b1a6287d02ea
refs/heads/main
2022-01-08T12:45:16.646028
2022-01-01T17:31:10
2022-01-01T17:31:10
225,452,981
2
0
null
null
null
null
UTF-8
Python
false
false
5,458
py
# -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # (c) 1998-2022 all rights reserved class Composite: """ Mix-in class that provides an implementation of the subset of the interface of {Node} that requires traversal of the expression graph rooted at nodes with dependencies. ...
[ "michael.aivazis@para-sim.com" ]
michael.aivazis@para-sim.com
25b84c72c3109809a8cb05a72d74a669ff8fe826
4059573793d0ee5b74c9dd919aa2945dad2fe426
/Searching Algorithms/binary_search.py
4d3d525420e9d3930077f4a8fae78ac7b8ab65cb
[]
no_license
nayanika2304/DataStructuresPractice
04ea6d9248a63983abdd2b983632ba5907eed9d4
f3c815ff113ce3977cc743360b77fb21c9f9b383
refs/heads/master
2022-12-08T05:28:22.897414
2020-08-29T18:17:57
2020-08-29T18:17:57
282,513,763
0
0
null
null
null
null
UTF-8
Python
false
false
1,299
py
''' Compare x with the middle element. If x matches with middle element, we return the mid index. Else If x is greater than the mid element, then x can only lie in right half subarray after the mid element. So we recur for right half. Else (x is smaller) recur for the left half. ''' # Python3 Program for recursive bi...
[ "nayanikabhargava1993@gmail.com" ]
nayanikabhargava1993@gmail.com
85b3990a7902a3249be40266a3a934ab4f52f997
9cc6721acb439db2e7cff8eb4dbff4b6e14040d5
/코딩테스트(책)/problems/3.dfs_bfs/6.감시피하기_x.py
44a193abe9ce52b0c1122ad0e432887afc033494
[]
no_license
young31/Algorithm
35c6ec6b6d9b192f9d0e6e6f6484f33c92100232
bfcccfa798d031a930490efa24d9b2263bd4b984
refs/heads/master
2021-11-04T14:01:53.827508
2021-10-25T06:35:24
2021-10-25T06:35:24
196,034,851
0
3
null
null
null
null
UTF-8
Python
false
false
2,864
py
# input n1 = 5 arr1 = [ [0, 1, 0, 0, 2], [2, 0, 1, 0, 0], [0, 0, 0, 0, 0], [0, 2, 0, 0, 0], [0, 0, 2, 0, 0] ] n2 = 4 arr2 = [ [1, 1, 1, 2], [0, 0, 0, 0], [0, 0, 0, 0], [2, 2, 2, 0] ] # answer: yes # algo def search(arr, x, y, move): n = len(arr) res = [] is_T = False ...
[ "migael38317@gmail.com" ]
migael38317@gmail.com
1921e361eac11d34257a95c03ac18db950c86452
ac99fc4c74c6306cf23ebc3ddbcbd992b985387d
/tests/myapp/settings.py
55161837d3bbd70265ce48e2ae0356a77b458656
[ "MIT" ]
permissive
jamalex/django-nested-intervals
d7f010d13abd28efd0867fa683bfded04fb91931
b2d80db554762e95b24c7b08217e5bcbed8f40b7
refs/heads/master
2020-03-28T07:31:37.486839
2018-09-09T21:14:06
2018-09-09T21:14:06
147,907,242
5
1
null
null
null
null
UTF-8
Python
false
false
1,336
py
from __future__ import unicode_literals import os import django DIRNAME = os.path.dirname(__file__) DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'db.sqlite3' } } INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.c...
[ "jamalex@gmail.com" ]
jamalex@gmail.com
5be62ca99e20643780c83602ab8fb32b229abe89
5f0eeef355fa84b165d4e0707e8874755cc03259
/chp03_oscillation/NOC_3_09_wave_b/NOC_3_09_wave_b.pyde
b43cee586b23ca1e67378fd57b2a37121536b205
[]
no_license
kidult00/NatureOfCode-Examples-Python
5835fbed114f3991b9986852f31d29a0a46d7e53
42461590deebbe305d5815ff0d207ff974335ad5
refs/heads/master
2021-05-11T04:47:53.999705
2018-03-07T15:54:12
2018-03-07T15:54:12
117,946,895
0
0
null
null
null
null
UTF-8
Python
false
false
507
pyde
# The Nature of Code - Python Version # [kidult00](https://github.com/kidult00) def setup(): size(250, 200) smooth() global startAngle, angleVel startAngle = 0.0 angleVel = 0.2 def draw(): background(255) stroke(0) fill(0, 50) strokeWeight(2) global startAngle, angleVel ...
[ "sysulj@gmail.com" ]
sysulj@gmail.com
3ec8cdf29f18ab3b98ea97b5e714e0b0770ed1e6
148072ce210ca4754ea4a37d83057e2cf2fdc5a1
/src/core/w3af/w3af/plugins/attack/db/sqlmap/lib/request/direct.py
dab662acd830c943a6bb530956ff9115e04cb2cb
[]
no_license
ycc1746582381/webfuzzer
8d42fceb55c8682d6c18416b8e7b23f5e430c45f
0d9aa35c3218dc58f81c429cae0196e4c8b7d51b
refs/heads/master
2021-06-14T18:46:59.470232
2017-03-14T08:49:27
2017-03-14T08:49:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,668
py
#!/usr/bin/env python """ Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import time from extra.safe2bin.safe2bin import safecharencode from lib.core.agent import agent from lib.core.common import Backend from lib.core.common import calculateDelta...
[ "everping@outlook.com" ]
everping@outlook.com
82942fcabae1643320272fa31c19c206e0b8e146
f6db8d85a3b41eed543959314d65927353a8229c
/.history/W5/mapsafood/settings_20201202154801.py
dd4788e75db51881d2911e9cc646c3ed5af86df3
[]
no_license
NFEL/DjangoPaeez99
d573cc8e36500f08bc104d76f7a2628062d86c2f
621636bfb47d71f2a4f45037b7264dd5ebc7cdd7
refs/heads/main
2023-01-27T22:05:57.788049
2020-12-08T10:08:28
2020-12-08T10:08:28
304,553,353
1
2
null
2020-10-16T07:33:04
2020-10-16T07:33:03
null
UTF-8
Python
false
false
3,954
py
""" Django settings for mapsafood project. Generated by 'django-admin startproject' using Django 3.1.2. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathl...
[ "nfilsaraee@gmail.com" ]
nfilsaraee@gmail.com
973af6afd92942add0a57a3941085fd6e2d66174
5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5
/blimgui/dist/pyglet/font/__init__.py
18313153ed4a927df01f0629f5dc04a01d122ae6
[ "MIT" ]
permissive
juso40/bl2sdk_Mods
8422a37ca9c2c2bbf231a2399cbcb84379b7e848
29f79c41cfb49ea5b1dd1bec559795727e868558
refs/heads/master
2023-08-15T02:28:38.142874
2023-07-22T21:48:01
2023-07-22T21:48:01
188,486,371
42
110
MIT
2022-11-20T09:47:56
2019-05-24T20:55:10
Python
UTF-8
Python
false
false
7,514
py
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # Copyright (c) 2008-2022 pyglet contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the follo...
[ "justin.sostmann@googlemail.com" ]
justin.sostmann@googlemail.com
144d632a68c20edf5f33c6a21eba24ba413b5060
61eae81a1780141ba1323adb93d3d41c4ad0cc3e
/src/model_bank/dataset_2018_7_13_lcp_recognition_model.py
66b9a61b10443213dac0a710aa181f548137a8c5
[]
no_license
lsy125/AE-signal-model
0783cda7eee972cce3ab1abf682047baf3d739a1
da11717ffc8bf74dbb2d6f818e73f0b839f0ab5a
refs/heads/master
2020-04-02T08:46:05.140848
2018-10-22T02:01:48
2018-10-22T02:01:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,219
py
from keras.layers import * from keras.models import Sequential, Model from keras.utils import plot_model from keras import regularizers # self lib from src.utils.helpers import direct_to_dir def lcp_recognition_binary_model(): visible_in = Input(shape=(6000, 1)) conv_1 = Conv1D(5, kernel_size=5, activation='r...
[ "hooyuheng@gmail.com" ]
hooyuheng@gmail.com
8afd85abc6361f6690923f4902b20607b778ad70
87b7d7948aa51fdb4a27540240579788896369ea
/code/runs_sacred/model_data_random/_sources/data_set_file_8dbb1c73ef6f7d6c76679b005f0b994b.py
492729d1daa74ff2dbc6c7004f3cccb8805d5d13
[]
no_license
Samuel-Levesque/Projet_GLO7030
6f13accd63b52107ec3e3a0b9b5f52edccda7c8d
557bce3235f09723900f65c6e3b44a0ed9d2b519
refs/heads/master
2022-01-16T12:49:22.884798
2019-05-05T18:38:35
2019-05-05T18:38:35
177,038,991
0
1
null
null
null
null
UTF-8
Python
false
false
7,055
py
import random import warnings warnings.filterwarnings('ignore') # to suppress some matplotlib deprecation warnings import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import ast import cv2 import matplotlib.pyplot as plt import os from torch.utils.data impor...
[ "44324703+William-Bourget@users.noreply.github.com" ]
44324703+William-Bourget@users.noreply.github.com
8a307d78726f1ec71e12b3c0c22f5ac21db4bcf9
dd38578f9622b1ea54838340711a96d57fcfbbc6
/kbm/migrations/0004_auto_20200629_0017.py
29157ee0c71fb1bf849f5a93c6227cfca901170a
[]
no_license
nabaman/sistem-informasi-akademik
544d3563c922f105d310bb6377d236e6022fcb2c
1ffb46e86ab76c6c4b98a10862acf01a5676d574
refs/heads/master
2022-11-17T05:54:07.808086
2020-07-01T06:02:28
2020-07-01T06:02:28
257,820,789
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
# Generated by Django 3.0.5 on 2020-06-28 17:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('kbm', '0003_auto_20200609_2156'), ] operations = [ migrations.AlterField( model_name='data_jurusan', name='jurusan',...
[ "naba.alvian@gmail.com" ]
naba.alvian@gmail.com
373405fdc1325b6237b78fad3cdd074864c92bc5
45f6c7f6e7160c5535d74582c6ba165ee21ab56e
/test/test_van/test_saved_lists.py
740bb5997167057c1ca394ba2c8000ab159b836b
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
move-coop/parsons
1b0bcfcbb8c0e1edb26d06664c6ecb7370eae864
553b0ede3e41cc9811c48d768d05953f8cf75312
refs/heads/main
2023-08-21T12:34:34.004784
2023-08-17T17:46:09
2023-08-17T17:46:09
204,343,221
240
122
NOASSERTION
2023-09-14T20:55:15
2019-08-25T19:56:21
Python
UTF-8
Python
false
false
7,500
py
import unittest import os import requests_mock import unittest.mock as mock from parsons import VAN, Table from test.utils import validate_list from parsons.utilities import cloud_storage class TestSavedLists(unittest.TestCase): def setUp(self): self.van = VAN(os.environ["VAN_API_KEY"], db="MyVoters", ra...
[ "noreply@github.com" ]
move-coop.noreply@github.com
73cc2b03cd8658a38a334360c792ef745c6ead8b
b94c4c88aa3661696a8f8a6677c845a882d4091e
/src/main.py
b0ed8bfe850e44f49de124164adce4397b6cf652
[ "MIT" ]
permissive
pestefo/Coon
b4f1e62b97a330844140f00057a5bda184cf774e
8caa8b683b54b0c0047cbe1095ccf5576352c6ac
refs/heads/master
2021-01-02T21:45:19.393150
2020-02-11T16:49:36
2020-02-11T16:49:36
239,814,056
0
0
MIT
2020-02-11T16:52:15
2020-02-11T16:47:54
Python
UTF-8
Python
false
false
654
py
"""Script for Default keyword""" import sys import currency from currency.workflow import Workflow3 def main(workflow): """The main workflow entry function""" method = str(workflow.args.pop(0)) if method in currency.__all__: workflow.run(getattr(currency, method)) else: workflow.run(cur...
[ "tomy0000000@gmail.com" ]
tomy0000000@gmail.com
7f0a093f4f97b501f6e1600dd3dd4537b88a9ef0
375e5bca82843647941068bd7634cf7adf2015ca
/tests/test_transform_affine3.py
d2f6651ed72b7052691ec6a9f54e6165a33fa6de
[ "MIT" ]
permissive
civodlu/trw
cd57e7bded7fdb0a9d623ed9cd50645fab96583b
11c59dea0072d940b036166be22b392bb9e3b066
refs/heads/master
2023-02-08T09:56:39.203340
2023-02-07T14:22:16
2023-02-07T14:22:16
195,147,670
12
2
MIT
2020-10-19T15:24:11
2019-07-04T01:19:31
Python
UTF-8
Python
false
false
4,555
py
import os import math import unittest import trw import torch import numpy as np class TestTransformsAffine(unittest.TestCase): def test_2d_identity_nn(self): matrix2 = [ [1, 0, 0], [0, 1, 0], ] matrix2 = torch.FloatTensor(matrix2) images = torch.arange(2 * ...
[ "civodlu@gmail.com" ]
civodlu@gmail.com
a80d0ebfec737cf90fc2e079f2ebe80f10496421
562cc46d23d69f399a5f807d11ac567d8f30b567
/env/bin/symilar
b0ebfe4bd208743b9437624b9eda91935d85e19b
[]
no_license
JahanzebNawaz/DJANGO-CRUD
ab77a31c84134f10aee43b4fdc1900b4223b36ba
b3e848f8752c3755bcd26aeefe59eaedbcc06e8d
refs/heads/master
2022-01-26T13:29:30.218067
2020-05-03T11:43:58
2020-05-03T11:43:58
220,016,612
0
0
null
2020-05-03T11:43:59
2019-11-06T14:32:25
Python
UTF-8
Python
false
false
258
#!/home/jk/JKROOT/GITHUB_REPO/DJANGO-CRUD/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from pylint import run_symilar if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run_symilar())
[ "jahanzaib.ch9996@gmail.com" ]
jahanzaib.ch9996@gmail.com
f6e12a2fecf32423abd6f204856a0263e6998195
f0526130407daf1484ba0a228fb16683aa0fa509
/muchopper/common/queries.py
c45db0eec3bcf31cd446399bd333b29bb42491fa
[ "Apache-2.0" ]
permissive
ericschdt/muchopper
f8538f9e58b3512a3341731bc983fa2fbe5a749f
d621b8853360cfdc9f745aefbb9f9ec5d02d1a06
refs/heads/master
2020-08-06T21:10:18.316372
2019-10-06T11:30:17
2019-10-06T11:30:17
213,155,935
0
0
NOASSERTION
2019-10-06T11:30:18
2019-10-06T11:27:11
null
UTF-8
Python
false
false
2,611
py
import shlex import sqlalchemy from . import model def base_filter(q, include_closed=False): if not include_closed: q = q.filter( model.MUC.is_open == True # NOQA ) return q.filter( model.MUC.is_hidden == False # NOQA ) def base_query(session, *, i...
[ "j.wielicki@sotecware.net" ]
j.wielicki@sotecware.net
ef7700a3b968cac227b909d38a28fa784053110b
36e4a3581877736a501a74bfdfc10bbbd4386b8a
/tests/conftest.py
23314e52187708a98fe75147a8829b79b72f0019
[ "Apache-2.0" ]
permissive
valmac/lean-cli
1620300e7bf9428df269bae26b47a4615525144a
88a191afadf7bfe766665fa67c552390cb2e3951
refs/heads/main
2023-03-08T10:40:15.541980
2021-02-11T00:52:47
2021-02-11T00:52:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,500
py
import os from pathlib import Path import pytest from pyfakefs.fake_filesystem import FakeFilesystem from responses import RequestsMock from lean.container import container # conftest.py is ran by pytest before loading each testing module # Fixtures defined in here are therefore available in all testing modules @p...
[ "jaspervmerle@gmail.com" ]
jaspervmerle@gmail.com
d92546f21afa2d9f3d90a90399e84e3bb189d0eb
1966d4ee937abc2febb80af14ea37b3316428ee9
/HackerRank/By Challenge/Charging the Batteries/python/solution.py
5159ded20b702117fd27463677e5700549ec4b56
[]
no_license
spanktastic2120/fun
8083ea33c014062ef791192f1d25d2c3bc45c7fa
de23f404a0505576e00730d06b32aac4ae1e7e75
refs/heads/master
2021-06-03T23:39:31.305198
2019-08-05T07:55:13
2019-08-05T07:55:13
18,019,488
1
0
null
null
null
null
UTF-8
Python
false
false
1,027
py
#!/bin/python import sys if __name__ == "__main__": n, m, k = map(int, raw_input().strip().split(' ')) sockets = [] for _ in xrange(m): x, y = map(int, raw_input().strip().split(' ')) # left if not x: sockets.append(y) # bottom elif not y: so...
[ "dictator@iwantmyowncountry.info" ]
dictator@iwantmyowncountry.info
5ea2d8e12d59b152aba52323d7c529c2a61cbda6
c6fbf6df12cb7de82b3060a7bc12fee9b46e5990
/Chapter10/ch10-9.ML_ann.py
6c23988b2637bec8bdfe79e24d198ebb675f9bea
[ "MIT" ]
permissive
tschoi6712/pythonDataAnalysis2nd
5f0d07493bb835c76aa9fbe7100834e5a8341912
63e366d4dee52f7e4df6cf4d988a85d6de5b00e4
refs/heads/master
2020-08-09T14:42:55.831842
2019-10-10T06:53:24
2019-10-10T06:53:24
214,108,757
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
""" 예측분석과 머신러닝 - (9) Neural Networks: pip install theanets nose_parameterized conda install m2w64-toolchain """ import numpy as np import theanets import multiprocessing from sklearn import datasets from sklearn.metrics import accuracy_score rain = .1 * np.load('ch10.rain.npy')...
[ "tschoi6712@gmail.com" ]
tschoi6712@gmail.com
77c20440aaf6a3fb84a2337d4e42929b8d240a79
6d1bf00636259c1a65842a8dd49ea2037218cc8d
/Admin_console/Summary_Report.py
017d7ef82d692280cd82d33e66e200171626829a
[]
no_license
chetandg123/Release_1.2
efb4b0844b57638d23ac09783e0cd751893058ad
f9ff8add5930c7779ab1954c779f8f0e8cd1e908
refs/heads/master
2022-12-05T21:12:14.671813
2020-08-20T21:33:50
2020-08-20T21:33:50
288,701,130
1
0
null
null
null
null
UTF-8
Python
false
false
2,632
py
import time import unittest from selenium.webdriver.support.select import Select from Data.parameters import Data from get_dir import pwd from reuse_func import GetData class Test_summaryreport(unittest.TestCase): @classmethod def setUpClass(self): self.data = GetData() self.p = pwd() ...
[ "ubuntu@ip-172-31-31-236.ap-south-1.compute.internal" ]
ubuntu@ip-172-31-31-236.ap-south-1.compute.internal
fbd63bd85e48a99cbd17501c5e7a58f779e502b2
a55756b40e0d14b6a4c366b55be65966e1934ec2
/Recursion ADD(1).py
8362065f9df3c9311c4efe9b885631a0f0d57111
[]
no_license
rajeevj0909/FunFiles
97323135bb5120d2d3a2458847a73f91dfa944bf
85f4a430f0e71d1fee9c753bceb566ec319e5da0
refs/heads/master
2022-07-02T15:43:11.495874
2020-05-16T23:29:02
2020-05-16T23:29:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
def add(list1,counter,total): n=len(list1) if n==counter: print(total) else: total=add(list1[counter],counter,total)+total return(total) return counter counter = counter + 1 list1=[1,2,3,4] counter=0 total=0 add(list1,counter,total)
[ "noreply@github.com" ]
rajeevj0909.noreply@github.com
a0b302a8a168a912fbece6444aa9e7f4710361c3
c15a28ae62eb94dbf3ed13e2065195e572a9988e
/Cook book/src/11/passing_a_socket_file_descriptor_between_processes/server.py
05d6b07b5f08832aaaca3ea0ad4f14ffc9c19a1c
[]
no_license
xuyuchends1/python
10798c92840a1a59d50f5dc5738b2881e65f7865
545d950a3d2fee799902658e8133e3692939496b
refs/heads/master
2021-01-25T07:07:04.812140
2020-02-28T09:25:15
2020-02-28T09:25:15
93,647,064
0
0
null
null
null
null
UTF-8
Python
false
false
1,098
py
# server.py import socket import struct def send_fd(sock, fd): ''' Send a single file descriptor. ''' sock.sendmsg([b'x'], [(socket.SOL_SOCKET, socket.SCM_RIGHTS, struct.pack('i', fd))]) ack = sock.recv(2) assert ack == b'OK' def server(work_address, port): # Wait for th...
[ "xuyuchends@163.com" ]
xuyuchends@163.com
069de552aee7711007a0052316643c96cc5c88fd
5facb7b4baccff021b357ad67c966e2d92d665d1
/stemming.py
3a6a5d2215913259aacdefe3190af4f7568fe7da
[]
no_license
sadirahman/NLP
73eeb1e32e7027c35b79ba3f6953b9ec51098cb7
844419ffd7bbb41217ab273753249757a4433865
refs/heads/master
2020-04-09T21:58:21.130129
2018-12-06T13:57:18
2018-12-06T13:57:18
160,617,125
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
from nltk.stem import PorterStemmer from nltk.tokenize import word_tokenize ps = PorterStemmer() example_words =["python","pythoner","pythoning","pythoned","pythonly"] for w in example_words: print(ps.stem(w)) new_text = "It is very important to be pythonly while you are pythoning with python ." word =word_tok...
[ "42184120+sadirahman@users.noreply.github.com" ]
42184120+sadirahman@users.noreply.github.com
18c9a3ba254ee73daa90283860550d2af14d7777
242da8865e037f9fffb76269c3acddb73ce9fa14
/packages/pyright-internal/src/tests/samples/typeGuard1.py
ebeda0031c0154c1009d096010bb082e40aa8e7f
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
khyveasna11111908/pyright
f42eceae044f6fbc27552c1765b03ebd345a451c
493d47807b96137995e4bb6ca341930e4de911f9
refs/heads/main
2023-08-30T00:08:36.191799
2021-09-25T19:17:13
2021-09-25T19:17:13
410,361,483
1
1
NOASSERTION
2021-09-25T19:15:23
2021-09-25T19:15:22
null
UTF-8
Python
false
false
1,635
py
# This sample tests the TypeGuard functionality # that allows user-defined functions to perform # conditional type narrowing. # pyright: reportMissingModuleSource=false import os from typing import Any, List, Literal, Tuple, TypeVar, Union from typing_extensions import TypeGuard _T = TypeVar("_T") def is_two_eleme...
[ "erictr@microsoft.com" ]
erictr@microsoft.com
72655be7c8a19587230e487b7743481687a52f88
fe1e601b67a30e9215fe858e16b9c2965f8a3576
/bloomFilter.py
02f8a1f3bd5e7973d83bc77df4793f64c425fd90
[]
no_license
z-o-e/algoFun
8a53b0804d9ddb019133981ebd677b768d25cee6
539f89bece5791a1aadfafbddc3ce7c48fbf12ac
refs/heads/master
2020-04-19T00:49:53.957430
2014-10-22T20:32:17
2014-10-22T20:32:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,571
py
# bloom filter is a space-efficient probabilistic data structure to check whether an element is a member of a very large set. # False positive are possible, false negative are impossible (100% recall) # probability of a false positive depends on the density of 1's in the array and the number of hash functions # (the n...
[ "hyzhang22@gmail.com" ]
hyzhang22@gmail.com
a4781f355e0c7465556c9f5f554524e357c8f228
0e722188b0a0c2302fab5b2917e9c39394664db3
/gshs_auth/decorators.py
768fdc4efcb9a5bed86fed80905ca350361d8498
[]
no_license
Qwaz/GSHSmeal
6df1d773a883b729c4d87c6f6b1c3990ed0e4d3c
6f2af5f538a1b9b9db8f791041ff65a5c97b96d8
refs/heads/master
2020-04-17T09:12:47.694626
2015-03-04T10:27:56
2015-03-04T10:27:56
20,253,318
0
1
null
2014-08-20T01:56:00
2014-05-28T10:14:37
JavaScript
UTF-8
Python
false
false
305
py
from functools import wraps from django.shortcuts import redirect def admin_login(func): @wraps(func) def wrapper(request, *args, **kwargs): if request.user.is_staff: return func(request, *args, **kwargs) else: return redirect('home') return wrapper
[ "qwazpia@gmail.com" ]
qwazpia@gmail.com
59576815e0896221abafb383026b4ff38ea0df21
f4ec787e34b74823875a8074d2f7c10d6207f206
/tests/util/alert_server.py
2e17d1448e570ccf024752181c78bbba66ce8f5b
[ "Apache-2.0" ]
permissive
Sweety-Network/sweety-blockchain-test
d0fc0fbd27e5b6970597824de43db3fb9e3bceed
44373ff1b6a7a2a1dcb39d3d6fa01cd15e3e5fb6
refs/heads/master
2023-09-04T15:57:19.853659
2021-10-08T04:00:10
2021-10-08T04:00:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,143
py
import argparse import asyncio import logging from pathlib import Path from typing import Any from aiohttp import web log = logging.getLogger(__name__) class AlertServer: shut_down: bool shut_down_event: asyncio.Event log: Any app: Any alert_file_path: Path port: int @staticmethod a...
[ "tlwu@njmlab.com" ]
tlwu@njmlab.com
62dcbc0c418cf6583d090a0a4451f0b217365320
4b44a299bafbd4ca408ce1c89c9fe4a449632783
/python3/06_Collections/02_Tuples/01_tuples.py
490cc61a2d1d027663715e7fff988af2cc75274f
[]
no_license
umunusb1/PythonMaterial
ecd33d32b2de664eaaae5192be7c3f6d6bef1d67
1e0785c55ccb8f5b9df1978e1773365a29479ce0
refs/heads/master
2023-01-23T23:39:35.797800
2020-12-02T19:29:00
2020-12-02T19:29:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
845
py
#!/usr/bin/python # -*- coding: utf-8 -*- """ Purpose: Working with tuples """ mylist = [12, 34.8, 500000, [6, 8], (5,)] print('type(mylist)', type(mylist)) print('len(mylist)', len(mylist)) mytuple = (12, 34.8, 500000, [6, 8], (5,)) print('\ntype(mytuple)', type(mytuple)) print('len(mytuple)', len(mytuple)) print(my...
[ "uday3prakash@gmail.com" ]
uday3prakash@gmail.com
d50ee8a96e31ec7c4404e0ea515495d6127da418
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayUserAuthZhimaperInnerApplyResponse.py
aa55cb52b9d5249d124fbd30a25e134c9e2a5866
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,403
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayUserAuthZhimaperInnerApplyResponse(AlipayResponse): def __init__(self): super(AlipayUserAuthZhimaperInnerApplyResponse, self).__init__() self._access_token = No...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
bb28f5fb6011fac3c82ea587eebe8da09c4224ef
d2c4151eff768af64946ababc2e41c13d8973cd3
/ARC104/b.py
626f3f54124699e2c5c7d4b325852a552aa235d2
[]
no_license
Intel-out-side/AtCoder
2de19b71981247135432aed2d6d9c2a16c3ab7f0
0c419d2df15fff02032432cb1b1323612484e16e
refs/heads/master
2022-06-23T04:21:12.886072
2022-06-13T14:39:07
2022-06-13T14:39:07
235,240,853
0
0
null
null
null
null
UTF-8
Python
false
false
1,160
py
I = input().split() N = int(I[0]) S = I[1] class AccumulatedSum: """ 累積和を勝手に計算します。 0-indexedなので注意 """ def __init__(self, A:list): self.N = len(A) self.accumulated_sum = A.copy() for i in range(1, self.N): self.accumulated_sum[i] += self.accumulated_sum[i-1] ...
[ "so.eng.eng.1rou@gmail.com" ]
so.eng.eng.1rou@gmail.com
294ca33e70eb3070b97b28d0251b424150e1b996
d7e41697c8d82f5ef3f9555af7d3d204803f0a99
/test/mitmproxy/utils/test_strutils.py
4759f1db47ceb9e0a34ee9a9ca78e176b3d0be98
[ "MIT" ]
permissive
shitongzhu/mitmproxy
aba9681765b71c385b2b20fda303c71090a04376
08f35286d3af9ad39046b0b3663913701086be9a
refs/heads/master
2023-08-19T07:03:52.226411
2021-09-04T10:56:33
2021-09-04T10:56:33
316,844,544
0
0
MIT
2020-11-29T00:02:33
2020-11-29T00:02:33
null
UTF-8
Python
false
false
4,828
py
import pytest from mitmproxy.utils import strutils def test_always_bytes(): assert strutils.always_bytes(bytes(range(256))) == bytes(range(256)) assert strutils.always_bytes("foo") == b"foo" with pytest.raises(ValueError): strutils.always_bytes("\u2605", "ascii") with pytest.raises(TypeError)...
[ "stzhu.ac@gmail.com" ]
stzhu.ac@gmail.com
b81de21a3b245370ce540d63715dc874f1e5a1f5
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/timber/testcase/firstcases/testcase1_023.py
bd7a990dcc4d20bd7e9c133c55b4eed72482d212
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
4,842
py
#coding=utf-8 import os import subprocess import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulat...
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com