blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b91175d32f3bb9b7fd3dd0808d4f5901e03ee082 | c8a1fdf8795c39b21ecc1f5b31370073418a3cbb | /tests/test_dataset.py | 0e3997dce7789cc9aa4e35c957c7d0774945e2c9 | [] | no_license | h4nyu/random-char-image | 6b59935994ed70b3923074cf1c5baca7539aa18f | 7e56368ce17429eed580fd54767c109a20f8e06d | refs/heads/master | 2022-11-08T02:24:01.991103 | 2020-06-24T14:59:00 | 2020-06-24T14:59:00 | 269,483,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | import typing as t
from PIL import ImageDraw
from glob import glob
from random_char_image import TextRepo, BackgroundRepo, RandomImage
def test_image() -> None:
br = BackgroundRepo().with_file("templates/shiyoukyokashinnseisho09.jpg")
text = TextRepo().with_file("texts/hvt.txt")
ri = (
RandomImag... | [
"yao.ntno@gmail.com"
] | yao.ntno@gmail.com |
a19e75646c36ed5108be9cad9273be168194691c | e51886646479dad5b99beb33561fad2f57db86c0 | /crapc/helper.py | 877fdbd3b08ef297b214afd2d88757bcd6eb6b5d | [
"Apache-2.0"
] | permissive | iffy/crapc | 97332a15241ce1eed0bf6fb52b8331c43e7f7a96 | 08d52f008318a5b13ccd1f0afd4dbe4b4fceebcc | refs/heads/master | 2020-05-16T23:10:37.440129 | 2015-03-04T23:52:02 | 2015-03-04T23:52:02 | 15,877,333 | 0 | 0 | null | 2015-01-09T18:13:23 | 2014-01-13T18:27:31 | Python | UTF-8 | Python | false | false | 2,438 | py |
__all__ = ['RPCFromObject', 'PythonInterface', 'RPCFromClass']
import inspect
from zope.interface import implements
from crapc.error import MethodNotFound
from crapc.interface import ISystem
from crapc._request import Request
class _LazyWrappingRPCSystem(object):
"""
Create an L{ISystem} from the public ... | [
"haggardii@gmail.com"
] | haggardii@gmail.com |
75d70fbb98b545fcc479cedcb71d0c0c1a66c7f3 | 3199331cede4a22b782f945c6a71150a10c61afc | /20210520PythonAdvanced/04-generator/gen03.py | 8e90543f12be76de586348e1b666f99624657b1a | [] | no_license | AuroraBoreas/language-review | 6957a3cde2ef1b6b996716addaee077e70351de8 | 2cb0c491db7d179c283dba205b4d124a8b9a52a3 | refs/heads/main | 2023-08-19T23:14:24.981111 | 2021-10-11T12:01:47 | 2021-10-11T12:01:47 | 343,345,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | "#Python is a protocol orientated lang; every top-level funtion or syntax has a corresponding dunder method implemented;"
import time
def compute(n:int)->int:
for i in range(n):
yield i
time.sleep(.5)
if __name__ == "__main__":
for i in compute(10):
print(i) | [
"noreply@github.com"
] | AuroraBoreas.noreply@github.com |
4ae75bfe73911236396761c0f469cef3b96d3de8 | bc438e54c94f6ab8a178102b0913bb1957142589 | /0x09-python-everything_is_object/100-magic_string.py | e8ceede40fe306ebe5a1a60a2cf035a687f11668 | [] | no_license | paisap/holbertonschool-higher_level_programming | 75d5ac7abea9c94dcdb96c60e2b3bd3293346d4a | 1fde8e02d484c6cfe6b14847fd5d96c3fbf2cff3 | refs/heads/master | 2020-09-28T23:34:29.494192 | 2020-05-14T19:41:08 | 2020-05-14T19:41:08 | 226,892,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | #!/usr/bin/python3
def magic_string(mylist=[]):
mylist.append("Holberton")
return ', '.join(mylist)
| [
"santiagoaldana58@gmail.com"
] | santiagoaldana58@gmail.com |
d77d4d53827e97725d74639c8df62462eeca897d | b56cc9f6a5eadf81cb832c5074f78fba33afad42 | /notes/filterByAsciiRows.py | 31c59dc028882c43e156f1f752e83ee79265da5b | [] | no_license | NicholasPiano/puzzle | 450c953555a836e0d387de61c67bddfd1634540a | be0d201449863694817f8c18a9e38606224abecf | refs/heads/master | 2020-03-29T13:00:36.291681 | 2015-06-09T20:08:41 | 2015-06-09T20:08:41 | 29,688,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,519 | py | #!/opt/local/bin/python2.7
print '\nrunning...\n'
from xlrd import *
from xlsxwriter.workbook import Workbook
source = 'Nigeria practice file.xlsx'
# http://stackoverflow.com/questions/196345/how-to-check-if-a-string-in-python-is-in-ascii
def is_ascii(s):
return all(ord(c) < 128 for c in s)
### STEP 1: ANALYS... | [
"nicholas.d.piano@gmail.com"
] | nicholas.d.piano@gmail.com |
99b185b33b49e397501b5227108ba3f56760b675 | e48702862be879ceebcab8fb35eb74481f0b52bf | /apps/groups/migrations/0007_auto_20150907_1438.py | 9978a6e76866729512cf25ba008bb135bfffccee | [] | no_license | od-5/enjoy-africa | af79e976a790a6b0af5d39e527f34e829cccb8f4 | bb05d44dd4ac6557ca9394f81f80465ed5174b60 | refs/heads/master | 2021-01-10T22:29:22.967261 | 2015-12-28T16:35:16 | 2015-12-28T16:35:16 | 42,873,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('groups', '0006_auto_20150907_1325'),
]
operations = [
migrations.AlterModelOptions(
name='groups',
o... | [
"od-5@yandex.ru"
] | od-5@yandex.ru |
71b330b488e52804270b90f7039a827c4e222d72 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-arms/aliyunsdkarms/request/v20190808/CreateRetcodeAppRequest.py | 5a9b285fe82df3bb2625f17670d00e02cf073d03 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,665 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
ee170c27c9ebbfb8661950b51a290f617950767f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02694/s151928991.py | b58c3973aefeb1e64577a96d949fdf774070af65 | [] | 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 | 75 | py | X=int(input())
a=100
cnt=0
while a<X:
a=a+a//100
cnt+=1
print(cnt) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cdf41cbdd7ffb5aaf836ad13a9d2bcc91d0d6c4f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_266/ch27_2019_03_08_12_05_37_480317.py | 88848104c47121d291e574f9ff740516855d64eb | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | cigarros = int(input('quantos cigarros fuma por dia: '))
anos = int(input('quantos anos fuma: '))
dias = anos*365
min = dias*10*cigarros
y = (min)/1440
print('voce perdeu {0} dias da sua vida'.format(y)) | [
"you@example.com"
] | you@example.com |
cd22c23d0977b35c147f379d8bbf37ddec01fdcd | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnedda.py | 3fc5576135aefb89dde92bfe2e79089fdf22aba3 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 83 | py | ii = [('MarrFDI.py', 1), ('CoolWHM2.py', 1), ('CoolWHM.py', 1), ('CoolWHM3.py', 2)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
8211a06d9970d197e58ca99d1b537932a4f60b36 | 1c16b9812768abc9305a82aaa0a76a16668571cb | /0x16-api_advanced/0-subs.py | 6abde0d2cce700370f6cba0d160c0b4ecde8116a | [] | no_license | emmanavarro/holberton-system_engineering-devops | 73bbf5dcfe3661b68e1c9946bcb3fd6a03213a23 | bdf4b3e179518f9deb79856213e1c665cfde3d9e | refs/heads/master | 2020-12-23T01:48:07.725058 | 2020-10-07T23:18:18 | 2020-10-07T23:18:18 | 236,994,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | #!/usr/bin/python3
"""
Uses the reddit API to print the number of subscribers of a subreddit
"""
import requests
def number_of_subscribers(subreddit):
"""Get the numbers of subscribers by subreddit given"""
url_rsubs = "https://api.reddit.com/r/{}/about".format(subreddit)
headers = {'User-Agent': 'Pyt... | [
"elnavarro55@gmail.com"
] | elnavarro55@gmail.com |
c70783d8cfd93612801582b5e2235579428603b7 | e9538b7ad6d0ce0ccfbb8e10c458f9e0b73926f6 | /tests/unit/modules/network/fortios/test_fortios_log_gui_display.py | 644e279cf41382231c315d93b3a1273a7d584043 | [] | no_license | ansible-collection-migration/misc.not_a_real_collection | b3ef8090c59de9ac30aca083c746ec3595d7f5f5 | 7ab1af924a3db4ada2f714b09bb392614344cb1e | refs/heads/master | 2020-12-18T13:48:51.849567 | 2020-01-22T17:39:18 | 2020-01-22T17:39:18 | 235,400,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,511 | py | # Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
b630a9f6c367e1fb16b0412c86faca800f21e951 | 9ab9d9a3883471763edbceea59a0e83170581b5f | /eggs/Paste-1.7.5.1-py2.7.egg/paste/exceptions/reporter.py | 95e31ba9ce0bd654f856a5f9ea8da4e0714090a5 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | asmmhossain/phyG | 24dc211dad5b3e89c87ff384e841f2e98bbd52db | 023f505b705ab953f502cbc55e90612047867583 | refs/heads/master | 2022-11-21T12:43:46.172725 | 2014-02-14T12:33:08 | 2014-02-14T12:33:08 | 13,800,552 | 0 | 1 | NOASSERTION | 2020-07-25T21:05:41 | 2013-10-23T11:04:25 | Python | UTF-8 | Python | false | false | 4,574 | py | # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
from email.MIMEText import MIMEText
from email.MIMEMultipart import MIMEMultipart
import smtplib
import time
try:
from socket import sslerror
exce... | [
"mukarram819@gmail.com"
] | mukarram819@gmail.com |
3c31d6df0e8e6f26f2bc2df7c1841a03cf228944 | d9f7123433fe473cfa2fd5c3438251f83ffb326c | /apps/login/migrations/0001_initial.py | 66a865cda502ac38bb6d10342d0d79a968d271ba | [] | no_license | mazurbeam/friends | 6c2d201220db52bc85eb1869fd6685eee372e920 | 1dc2432ad371113c0979158053c821a449ebbc6c | refs/heads/master | 2021-01-01T18:27:12.875643 | 2017-07-25T20:46:08 | 2017-07-25T20:46:08 | 98,345,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-07-25 17:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
... | [
"mazurbeam@gmail.com"
] | mazurbeam@gmail.com |
0bcb6ed75c2ebe3f34acff106b6a3a6d6ad9de9d | 7eb606a7957e5500f163c93dc4b19418cf9cf335 | /ludwig/datasets/archives.py | 6b2aa057cc3df86a1494f0c6e365d8f5f814191f | [
"Apache-2.0",
"MIT"
] | permissive | ludwig-ai/ludwig | 024f74da86567a57ec8e30efcb4600f0c52333a1 | e1d023e41606c9b76b35e1d231c2f13368a30eca | refs/heads/master | 2023-09-03T08:07:32.978301 | 2023-09-01T19:39:32 | 2023-09-01T19:39:32 | 163,346,054 | 2,567 | 285 | Apache-2.0 | 2023-09-14T20:34:52 | 2018-12-27T23:58:12 | Python | UTF-8 | Python | false | false | 5,833 | py | #! /usr/bin/env python
# Copyright (c) 2019 Uber Technologies, Inc.
#
# 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 a... | [
"noreply@github.com"
] | ludwig-ai.noreply@github.com |
c9d7d43fca7a9180a32c04151abb9723f931ab20 | dbe5973d69df9c5a5f3b06b7451a0de7086ebda4 | /myapps/error_handlers.py | dc9bf7e6a63c1a820ff2ebef03ed0cecbfccf5fc | [] | no_license | phares/mall | 29e7c0fdf3222a05161de36c8252167ab59df7be | d3f0093828c892ce46d55afaa245e5780555cc68 | refs/heads/master | 2021-01-22T23:53:27.535609 | 2017-04-30T09:17:53 | 2017-04-30T09:17:53 | 85,676,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from django.shortcuts import render
def _403(request):
return render(request, '403.html', {})
def _404(request):
return render(request, '404.html', {})
def _500(request):
return render(request, '500.html', {})
| [
"cndeti@gmail.com"
] | cndeti@gmail.com |
8ce8de29e51709461abbc005a1bb995b1642d349 | 4f001a046035884748af1d3504fb4ba61788f6e8 | /viedeos_manager-New_code_with_resolve_issoe/imratedme/urls.py | 489abc93252e15ded22ec19775d2733e4e7f1a30 | [] | no_license | sidkushwah123/video_manager | eb19686dcb87612dea9c2e56b6a4de3defbe123f | eb39f72c574548bd35ebc05ae05806d602995e93 | refs/heads/main | 2023-07-29T10:09:09.862337 | 2021-09-11T15:56:00 | 2021-09-11T15:56:00 | 405,418,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | """imratedme 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')
Class-bas... | [
"sachinkushwah0007@gmail.com"
] | sachinkushwah0007@gmail.com |
da927004a68396766225719a622fcf949077d8ff | 2c81769c05ffb32c0da0e5d1a1bb91750e37afc6 | /google/area120/tables_v1alpha1/services/tables_service/async_client.py | 57e5ddc22ccc55d0e76bced6c1220f0716f54ee5 | [
"Apache-2.0"
] | permissive | FavoriteProjects/python-area120-tables | cc43e3864bbd07395f6a0b8c928517ce183ad7dc | 3fdf054851d51e1c23dbed04bc0202e1a86d34a8 | refs/heads/master | 2022-12-26T18:41:10.690438 | 2020-09-22T22:15:14 | 2020-09-22T22:15:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,967 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... | [
"busunkim@google.com"
] | busunkim@google.com |
615dc11cdddc204b7d4d84d3e3e6ffd4e4ab1827 | 25ea9de5a0b2a66ad69dc1cdff0869117c3d32bd | /usuarios/migrations/0002_auto_20210318_1714.py | 28b645d0db5cf0dc537655ece2c487aa5453804f | [] | no_license | arm98sub/djangoDeploy | 070b634979ae96935228c6f67d91305109be6625 | b1420b68100b357993e9ee062fd008b6f68accf0 | refs/heads/master | 2023-05-21T20:41:52.975252 | 2021-06-01T23:25:53 | 2021-06-01T23:25:53 | 372,984,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # Generated by Django 3.1.6 on 2021-03-18 17:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('usuarios', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='usuario',
name='foto',... | [
"vagrant@ubuntu1804.localdomain"
] | vagrant@ubuntu1804.localdomain |
8587e5c358d7da81e23a5053acacf1b5abfabd9d | f8ffa8ff257266df3de9d20d95b291e393f88434 | /Python from scratch/Zadania/zadania domowe/nr1_08-09-2018/zad_dom_nr1.py | 0b44e7ed08182fb13edec812cb43f0deaad16759 | [] | no_license | janiszewskibartlomiej/Python_Code_Me_Gda | c0583c068ef08b6130398ddf93c3a3d1a843b487 | 7568de2a9acf80bab1429bb55bafd89daad9b729 | refs/heads/master | 2020-03-30T05:06:26.757033 | 2020-03-02T08:53:28 | 2020-03-02T08:53:28 | 150,781,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | liczba_str = input('Wpisz liczbę całkowią: ')
liczba = int(liczba_str)
liczba_podzielna_przez_2 = liczba % 2
liczba_podzielna_przez_3 = liczba % 3
liczba_podzielna_przez_4 = liczba % 4
liczba_podzielna_przez_5 = liczba % 5
liczba_podzielna_przez_6 = liczba % 6
liczba_podzielna_przez_9 = liczba % 9
liczba_podzielna_prze... | [
"janiszewski.bartlomiej@gmail.com"
] | janiszewski.bartlomiej@gmail.com |
24483d9352ce4f2d62458534a9923202d3ae25bf | d274e22b1cc5d546855fe46b089b13cfe2f4047c | /random/solutions/q08_ThirdMaximumNumber.py | 93d327b69fb06ea864b1db2d3724352a9fe9459b | [] | no_license | varunkumar032/lockdown-leetcode | ca6b7a8133033110680dd226c897dd8a1482682b | 15a72a53be9005eca816f018cb1b244f2aa4cdfb | refs/heads/master | 2023-06-30T08:31:54.323747 | 2021-07-12T11:29:59 | 2021-07-12T11:29:59 | 260,616,280 | 0 | 0 | null | 2021-05-06T10:24:48 | 2020-05-02T04:52:37 | Python | UTF-8 | Python | false | false | 1,108 | py | # Given integer array nums, return the third maximum number in this array. If the third maximum does not exist, return the maximum number.
# Example 1:
# Input: nums = [3,2,1]
# Output: 1
# Explanation: The third maximum is 1.
# Example 2:
# Input: nums = [1,2]
# Output: 2
# Explanation: The third maximum does not ex... | [
"varunkumar032@gmail.com"
] | varunkumar032@gmail.com |
b67e033f8ce190876bde29161ecb2bec08ec8442 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_YCHF/KCB_YCHF_MM/SHOffer/YCHF_KCBYCHF_SHBP_288.py | e62dd95589968fc2cb8e097b41b5f82371b6c0f5 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test//xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test//service")
from ServiceConfig import *
from ARmainservice import *
from QueryStkPriceQty import *
from log import *
sys.path.append... | [
"418033945@qq.com"
] | 418033945@qq.com |
5df8bb3efc81b4b1dde446829495f73005a13f29 | fa3e527114cd5799dddb0a25067da4923eae354e | /DataPrepare/FastSim/GAN/BES/Dedx/pid_check/plot_pid_eff.py | 10e13a0c58d2d4fb1bfb00937d19f712808da57c | [] | no_license | wenxingfang/FastSim_ML | e64c6b56ce2afd703d1ddda0ada2de6f65fde049 | d2f1abbb2f6879313d5f4f137b64c4d8bf10fe83 | refs/heads/master | 2022-11-28T01:35:39.727895 | 2020-08-03T15:47:37 | 2020-08-03T15:47:37 | 284,734,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,800 | py | #!/usr/bin/env python
"""
Plot pid efficiency
"""
__author__ = "Maoqiang JING <jingmq@ihep.ac.cn>"
__copyright__ = "Copyright (c) Maoqiang JING"
__created__ = "[2020-03-27 Fri 10:53]"
import numpy as np
import sys, os
import logging
import ROOT
import math
import gc
from ROOT import TChain,TH1F,TH2F,TCanvas,gStyle, T... | [
"1473717798@qq.com"
] | 1473717798@qq.com |
bca600bfc1ded616304d1f4bf3ce2e519ef39d6f | 482c670a1885d4058909d817b1b20904eedb09c6 | /python_api_auto/request-demo/post_request.py | f7244d74286e0358f74171f174b146c51ddf2988 | [] | no_license | qiaoxu1123/python-auto | 13bddeafd3832dc9c28f39ab9fa2343d23fd3dd0 | 15bfc1aaedbbdf7a00f03cd3552ed8e7b30eabdc | refs/heads/master | 2020-04-02T16:10:15.862150 | 2018-11-04T07:27:51 | 2018-11-04T07:27:51 | 154,601,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | import requests
import unittest
class Test_login(unittest.TestCase):
url = 'https://passport.womai.com/login/login.do'
headers = {'Accept': 'application/json, text/javascript, */*',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'zh-CN,zh;q=0.9',
'Conne... | [
"you@example.com"
] | you@example.com |
db8d9e2cf111fa8e3a2526c2bfef7a8f4dc10a02 | 3c8f9251b0bf6e9247a07fe81ccd8df75d982580 | /MeClass5/question2c.py | 43bc69baeb6fc65b861db9cd6f8c5a87693f04d7 | [
"Apache-2.0"
] | permissive | carrascodc/pyneta | 2f70c25261264d930767533593908e584e36b23e | 857c0279d6c567d8855fedde2883603d7c70b50b | refs/heads/master | 2020-04-18T10:59:51.614601 | 2020-02-28T01:43:18 | 2020-02-28T01:43:18 | 167,485,054 | 0 | 0 | Apache-2.0 | 2019-01-26T22:34:10 | 2019-01-25T04:31:02 | Python | UTF-8 | Python | false | false | 3,205 | py | from jinja2 import FileSystemLoader, StrictUndefined
from jinja2.environment import Environment
from netmiko import ConnectHandler
from mydevices import nxos1, nxos2
from pprint import pprint
import textfsm
import time
import re
from colorama import Fore, Back, Style
env = Environment(undefined=StrictUndefined)
env.lo... | [
"you@example.com"
] | you@example.com |
0fcff59e8e9a70815c8cbe655d66190841f3eb45 | a82418f3d62b944a27b6e9000829af54b7575893 | /psets_gensim_v1/2018/cfgs_update_noFilter/cfg_hiddenValleyGridPack_darkphoton_m_2_ctau_500_xiO_2p5.py | b520654fef0394c8e15ac2b1b4833d95d6de20db | [] | no_license | mcitron/hiddenValleyGeneration | abb347a30319ce5f230e0e1248a4259bf4cc4b1b | 5d165be91ae082fdba790506bfb11a026d602787 | refs/heads/master | 2023-04-08T13:34:56.835752 | 2021-04-28T17:14:46 | 2021-04-28T17:17:14 | 362,550,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,197 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/cfgs_update_noFilter/hiddenValleyGridPack_darkphoton_m_2_ctau_500_xiO_2p5.py --python_filename cfg_hidde... | [
"mcitron@cern.ch"
] | mcitron@cern.ch |
215f4513eb1b55e128ba2887b9bbd6c50c1398a5 | 0cd81f8a964de3712881fe48a75208490d644cf0 | /entry.py | b7da5013b3a8c99aca7afaf4ed186298cde46d87 | [] | no_license | ALLYOURSR/cvml | 1bf79b0d57da7b225cb0b98d5ee20889fe73204a | 0dfaa5a21e6d86731e5e034ceb9f209079bac912 | refs/heads/master | 2021-05-18T09:59:33.208411 | 2020-04-13T01:23:36 | 2020-04-13T01:23:36 | 251,200,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from config import ServerConfig
from question_generator import QuestionGenerator
from server import Server
c = ServerConfig()
qg = QuestionGenerator(c.QuestionFilepath)
qg.PrintAll()
s = Server(c, qg)
s.Run() | [
"x"
] | x |
332e7cb3d78bc410afc3bccae5fcd93f5a4e5e59 | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/lib/python3.7/test/test_cmath.py | c3ee3140b71cac235830ae6efa65e1fb68f59869 | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/python-3.7.7-oihhthdoxtgh4krvzpputn5ozwcnq2by/lib/python3.7/test/test_cmath.py | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
36d995b522dd8a070c1fe6af8ffc791077fabbd4 | 70f5f279e051360310f95be895320d8fa6cd8d93 | /extraPackages/matplotlib-3.0.2/examples/mplot3d/surface3d_radial.py | 521f6195330d266d655b1e63e19f76cfd132b2a3 | [
"BSD-3-Clause"
] | permissive | spacetime314/python3_ios | 4b16ab3e81c31213b3db1e1eb00230621b0a7dc8 | e149f1bc2e50046c8810f83dae7739a8dea939ee | refs/heads/master | 2020-05-09T20:39:14.980041 | 2019-04-08T15:07:53 | 2019-04-08T15:07:53 | 181,415,024 | 2 | 0 | BSD-3-Clause | 2019-04-15T05:00:14 | 2019-04-15T05:00:12 | null | UTF-8 | Python | false | false | 1,075 | py | '''
=================================
3D surface with polar coordinates
=================================
Demonstrates plotting a surface defined in polar coordinates.
Uses the reversed version of the YlGnBu color map.
Also demonstrates writing axis labels with latex math mode.
Example contributed by Armin Moser.
'''... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
2a39ee5245c8e52dc5d1316e6515469db668b9c7 | dd6ea0bfbaf6ed6eaab919398f6b2c21bc03c0c6 | /setup.py | 6f214ef68e95a0657105c4ac598fcf4abc45bf9c | [
"BSD-2-Clause"
] | permissive | oliverzgy/wechat-python-sdk | 32f0b3622f30072d74e5affd268742e01876c6fe | eafd27521feea92215aae8b0ed0887ee40703dc9 | refs/heads/master | 2021-01-20T23:40:38.744050 | 2015-02-06T15:04:59 | 2015-02-06T15:04:59 | 30,707,434 | 0 | 1 | null | 2015-02-12T14:59:58 | 2015-02-12T14:59:58 | null | UTF-8 | Python | false | false | 591 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='wechat-sdk',
version='0.5.2',
keywords=('wechat', 'sdk', 'wechat sdk'),
description=u'微信公众平台Python开发包',
long_description=open("README.rst").read(),
license='BSD License',
url='https://g... | [
"doraemonext@gmail.com"
] | doraemonext@gmail.com |
433c74652da8834ac5064d09ce7f8a68abd9384a | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /backup_write_3/backup-vault-notification_put.py | 6ea0433dce6df72d7c2c3e9b44bc794bccbba370 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/backup/put-backup-vault-notifications.html
if ... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
889ff2dd9c9418259b6ee467ef8771eb521c7d26 | 34de2b3ef4a2478fc6a03ea3b5990dd267d20d2d | /Python/science/integration/myintegration.py | 8d3710164567f2f0d1c663cd3b2fab77d9da7592 | [
"MIT"
] | permissive | bhishanpdl/Programming | d4310f86e1d9ac35483191526710caa25b5f138e | 9654c253c598405a22cc96dfa1497406c0bd0990 | refs/heads/master | 2020-03-26T06:19:01.588451 | 2019-08-21T18:09:59 | 2019-08-21T18:09:59 | 69,140,073 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | #!/usr/bin/env python3
# integrate ax from 0 to 3 with a = 5
# using scipy.integrate.quad
# intgrand = 5x
# limit = 0 to 3
# ans = 5x**2/2 = 2.5 x**2
from scipy import integrate
import numpy as np
a = 5
# lambda method
fun = lambda a,x: a*x
# function method
def fun(a,x):
return a*x
y = integrate.quad... | [
"bhishantryphysics@gmail.com"
] | bhishantryphysics@gmail.com |
8eb80fa95c3be888ed3cf7bfe84303f5dc888efd | dee468400b97faa9926a8f80be9d400fab2c6d85 | /tests/flatpages_tests/no_slash_urls.py | 112e6d16384b35566483dc930b852f67b3e7b3c6 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"Python-2.0"
] | permissive | claudep/django | 0a8eec4039ddb57fc3c31ae03b313fccdeb6a063 | f1a808a5025b63715d1034af2b96a6a5241d29e9 | refs/heads/master | 2023-09-01T05:08:41.544950 | 2020-04-15T11:11:13 | 2020-04-15T16:31:30 | 4,217,165 | 3 | 2 | BSD-3-Clause | 2023-08-27T16:40:58 | 2012-05-03T18:20:44 | Python | UTF-8 | Python | false | false | 121 | py | from django.urls import include, path
urlpatterns = [
path('flatpage', include('django.contrib.flatpages.urls')),
]
| [
"felisiak.mariusz@gmail.com"
] | felisiak.mariusz@gmail.com |
636f25285e5b1ceca841e1881768541bb14c88ca | b57b0a14df5c6841f04cccb7b02ad04afbca18f8 | /etcd/datadog_checks/etcd/__about__.py | c75a87ea64bdb4e76aadd942c28a4a1a906e0f36 | [
"AFL-3.0",
"BSD-3-Clause-Modification",
"LGPL-3.0-only",
"Unlicense",
"LGPL-2.1-only",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zeroc0d3/integrations-core | d9c99803c049668b7f9f9c796d338e343d3d46ee | 634d567f3c38d32aabb3f4c16b50bcfa8a4ae0fb | refs/heads/master | 2021-09-28T18:37:00.650406 | 2021-09-13T11:59:45 | 2021-09-13T11:59:45 | 199,758,958 | 0 | 0 | BSD-3-Clause | 2019-07-31T02:01:25 | 2019-07-31T02:01:24 | null | UTF-8 | Python | false | false | 138 | py | # (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
__version__ = '2.7.1'
| [
"noreply@github.com"
] | zeroc0d3.noreply@github.com |
3c47c84faa7edc6e871e1909b808a873271d09c8 | 20a3cc1106fa86fc2d45cd1728cc87d5db97e1f7 | /jiayq/utils/timer.py | 3607ee673ddbb8d716631baa9d2b02da0848a641 | [] | no_license | sarahboufelja54/galatea | f5664f0b3117629b2c5bbe078a1bd52bb5e359e6 | 002a9f2905868be25b71770190fb2d5eda11c861 | refs/heads/master | 2020-12-04T13:45:07.697189 | 2018-12-12T16:27:09 | 2018-12-12T16:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | from time import time
from jiayq.utils import mpiutils
def hms(t,template='{}h {}m {:.2f}s'):
'''
format the time value to "xxh xxm xxs"
'''
# not implemented
hour = int(t / 3600.0)
t = t % 3600.0
minute = int (t / 60)
t = t % 60
return template.format(hour,minute,t)
class Timer:
... | [
"goodfellow.ian@gmail.com"
] | goodfellow.ian@gmail.com |
094a8e5ce8cf0d9bb819ce0a32723b0f2da0c8a8 | d652c5cd50abc59163288f67aabf511edf2ffc16 | /{{cookiecutter.package_name}}/sandbox/settings/demo.py | 3d99764e0583de7cbdf4e92da06122dc22131747 | [
"MIT"
] | permissive | sveetch/cookiecutter-sveetch-djangoapp | 2f883958a665a84423f9dcc0bbd794a67d91fb0e | 6770a00e5ed67702f61543c0495bc55dcebdc76a | refs/heads/master | 2023-04-03T18:05:59.380348 | 2023-03-17T16:26:15 | 2023-03-17T16:26:15 | 297,186,173 | 3 | 1 | null | 2020-10-12T00:52:41 | 2020-09-21T00:04:59 | null | UTF-8 | Python | false | false | 462 | py | """
Django settings for demonstration
Intended to be used with ``make run``.
"""
from sandbox.settings.base import * # noqa: F403
DEBUG = True
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG # noqa: F405
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": VAR_PATH / "db" / "db.... | [
"sveetch@gmail.com"
] | sveetch@gmail.com |
d679a89de0c76f528dd84256305a04ee5ca93ed2 | 267298206e19567d2399cd32f7d4ac264f470760 | /sorbet/feedmanager/migrations/0007_chg_field_item_title.py | aec0e9a9cd82eb62705c3e8b0e8c653aec319cef | [
"BSD-3-Clause",
"CC-BY-3.0",
"BSD-2-Clause"
] | permissive | kklimonda/sorbet | e340b4d5749ddb06e313f6b17f968b4391072cf8 | d7d0d04fbd6ba16700a7549cfe1d240ca51693af | refs/heads/master | 2021-01-18T06:30:10.063506 | 2012-07-15T06:20:16 | 2012-07-15T06:20:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,256 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Item.title'
db.alter_column('feedmanager_item', 'title', self.gf('django.db.models.fields.... | [
"isaac@bythewood.me"
] | isaac@bythewood.me |
55080a68f4c3a651706f71cc3c3ecebb5102ac65 | 4bba68477b57ccbd9e8c3bf1622fc3fb4c07034a | /texar/modules/pretrained/pretrained_gpt2.py | 35f3aa3bb99251e8df4b6bed440d78b69bf89803 | [
"Apache-2.0"
] | permissive | TPNguyen/texar-pytorch | 9ed56e2983ee1e055c5eb9c14856f967906e96f5 | d212ab01e427da00cd4210344cc18e0d88a16e50 | refs/heads/master | 2020-06-25T06:56:59.791929 | 2019-07-28T01:00:33 | 2019-07-28T01:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,405 | py | # Copyright 2019 The Texar Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"huzecong@gmail.com"
] | huzecong@gmail.com |
14b2ba3ed8ddd6c1f75e8bf51a7f5fba38312c1d | 283f9fc69e0b00051a79232fc2cbaabdab589c18 | /flashsale/pay/migrations/0004_create_brand_and_brand_product_add_amount_flow_outer_id.py | 3b6952a54f9dc87a3d6b483977e5c893ab1de7a5 | [] | no_license | nidepuzi/ndpuzsys | 572b67a84fcd6c4fa4d49d3bdb0eb826e7791e62 | be58dc8f1f0630d3a04e551911f66d9091bedc45 | refs/heads/master | 2023-01-06T22:52:49.861479 | 2019-07-09T11:00:06 | 2019-07-09T11:00:06 | 188,955,119 | 1 | 0 | null | 2022-12-26T20:15:24 | 2019-05-28T04:41:35 | Python | UTF-8 | Python | false | false | 4,309 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('pay', '0003_auto_20160425_1212'),
]
operations = [
migrations.CreateModel(
name='BrandEn... | [
"xiuqing.mei@xiaolu.so"
] | xiuqing.mei@xiaolu.so |
46e9f7c42f8a3f5978431277c2b11a34a1bd58df | 1ffc17893d9e15fd939628bbc41c3d2633713ebd | /tests/test_utils/reference_implementation_helper.py | e703d38310611aa42b79f1811d54ed8bc4f70b02 | [
"Apache-2.0"
] | permissive | xadupre/sklearn-onnx | 646e8a158cdded725064964494f0f8a760630aa8 | b05e4864cedbf4f2a9e6c003781d1db8b53264ac | refs/heads/master | 2023-09-01T15:58:38.112315 | 2022-12-21T01:59:45 | 2022-12-21T01:59:45 | 382,323,831 | 0 | 2 | Apache-2.0 | 2023-01-04T13:41:33 | 2021-07-02T11:22:00 | Python | UTF-8 | Python | false | false | 4,801 | py | # SPDX-License-Identifier: Apache-2.0
import numpy as np
def ErfInv(x):
sgn = -1. if x < 0 else 1.
x = (1. - x) * (1 + x)
log = np.log(x)
v = 2. / (3.14159 * 0.147) + 0.5 * log
v2 = 1. / 0.147 * log
v3 = -v + np.sqrt(v * v - v2)
x = sgn * np.sqrt(v3)
return x
def ComputeLogistic(val)... | [
"noreply@github.com"
] | xadupre.noreply@github.com |
c9186add6d0c25f076889a28cd4e487475439e09 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_com1.py | c9f4959959fa47cab33563e9c613b6405be5674a | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | from xcp2k.inputsection import InputSection
from _each74 import _each74
class _com1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.Filename = None
self.Log_p... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1c850d20f46c8bacea3e2001b3b00d03e4f2e38e | 5d1c43bb4881039f198eedcee2ceb101b406e0a0 | /Django/myvenv/Scripts/rst2man.py | 52894792e98bd74e7fc0f83fd5849d6aff9320c2 | [] | no_license | MunSeoHee/Likelion_Gachon_2020 | 46155b1686a245a59c5664f7726ac754b7079e4b | e0e48845fdb0e4aa2365e7c47e29880a27f0f261 | refs/heads/master | 2021-04-10T09:51:06.618980 | 2020-12-07T10:06:43 | 2020-12-07T10:06:43 | 248,927,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!c:\users\munseohee\desktop\likelion_gachon_2020\django\myvenv\scripts\python.exe
# Author:
# Contact: grubert@users.sf.net
# Copyright: This module has been placed in the public domain.
"""
man.py
======
This module provides a simple command line interface that uses the
man page writer to output from ReStructured... | [
"nansh9815@naver.com"
] | nansh9815@naver.com |
3e499444b616bca4d9fddf21ce013e69466b7aaf | 462e53caefc202f1e48f7a3891b27dad6d4032f1 | /src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/aio/_cosmos_db_management_client.py | 3545f0218265ae5196150878aee2d9b2a28f3050 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | bragi92/azure-cli-extensions | a910f14a0613f5611b08ed34ce8d67c1ad05013e | e9aebbcbd3df15fd874a32babc40ae1a0ba23c1f | refs/heads/k8s-extension/public | 2023-08-04T13:22:05.747918 | 2023-07-28T15:45:27 | 2023-07-28T15:45:27 | 205,455,084 | 0 | 0 | MIT | 2019-08-30T20:50:25 | 2019-08-30T20:50:25 | null | UTF-8 | Python | false | false | 18,163 | 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"
] | bragi92.noreply@github.com |
8f06941c60c03810aab9bda1e07ab6e226fdb88d | 74d17bf3d5485ffa7fe795b633f461277b1a0e40 | /mall/utils/token_jwt.py | 9f6bdc1c94a1663630df923d329b870e42591943 | [] | no_license | py-king/ready | 6ddc7e8b830742bcdeb696791ec49ad9d30f2296 | e352aa335b07f6852f4c99e7fbd030f2eb8f16da | refs/heads/master | 2022-12-09T13:31:38.199448 | 2019-01-24T02:13:35 | 2019-01-24T02:13:35 | 167,284,151 | 2 | 0 | null | 2022-12-08T02:29:02 | 2019-01-24T01:52:28 | HTML | UTF-8 | Python | false | false | 359 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# author:caozy time:19-1-10
from rest_framework_jwt.settings import api_settings
def token_jwt(user):
jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER
jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER
payload = jwt_payload_handler(user)
token = jwt_en... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
77565a9d8c3f31e8f3d58e03818152374b4ed0b0 | ef821468b081ef2a0b81bf08596a2c81e1c1ef1a | /PythonWebBasics_Django/Django_Web_Basics/manage.py | 9e82bfc16fd0851d60bb007f7e74d85d2250139e | [] | no_license | Ivaylo-Atanasov93/The-Learning-Process | 71db22cd79f6d961b9852f140f4285ef7820dd80 | 354844e2c686335345f6a54b3af86b78541ed3f3 | refs/heads/master | 2023-03-30T20:59:34.304207 | 2021-03-29T15:23:05 | 2021-03-29T15:23:05 | 294,181,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Django_Web_Basics.settings')
try:
from django.core.management import execute_from_command_line
e... | [
"ivailo.atanasov93@gmail.com"
] | ivailo.atanasov93@gmail.com |
ee216ef4dc793f6328f24c7d46838a6ff173f7bf | 0b80791593076c266c682226a001a06c4b02fcf8 | /backend/mobile_build_a_dev_16819/urls.py | eea5aa0e16aece39f5771d77abe0ac6f55e3d09d | [] | no_license | crowdbotics-apps/mobile-build-a-dev-16819 | 1b697601504f5a42cefc30fd6d764312869a210a | 80d6870f71371273eddddb7416d5672623d4510e | refs/heads/master | 2023-02-07T10:56:17.932363 | 2020-12-16T14:17:06 | 2020-12-16T14:17:06 | 322,003,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | """mobile_build_a_dev_16819 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='h... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3e395ec76d78e4c609fdde7e8103b501babf72a7 | 2fba0a631bb70aaae6dc89bff09f13e728934605 | /privacy/migrations/0038_auto_20200602_1034.py | db62c8fff5c90f19cdb26e9b6407b2889ebb2669 | [] | no_license | murengera/eshoping-api | 4c5bcbeb7ac3ef12858e08f8a88d4f7b710b5c64 | 90acb0f8db519a38a1bd0976bd1f704f6d02f2dd | refs/heads/master | 2022-12-25T10:19:39.431427 | 2020-09-26T12:35:38 | 2020-09-26T12:35:38 | 286,399,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # Generated by Django 3.0 on 2020-06-02 08:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('privacy', '0037_auto_20200602_1031'),
]
operations = [
migrations.AlterField(
model_name='privacypoliciesandtermsofuse',
... | [
"daltonbigirimana5@gmail.com"
] | daltonbigirimana5@gmail.com |
8796bd002abd785667c8defcd90ef90f7d1870ed | b5402b40b69244380bc0d3f85ff65483d0505181 | /bot/event.py | b4768733a97c8525da2b9963c7e42ad67f84ca50 | [
"MIT"
] | permissive | RxJellyBot/Jelly-Bot | ea7b6bd100431736732f9f4cc739858ec148e3e2 | c7da1e91783dce3a2b71b955b3a22b68db9056cf | refs/heads/master | 2023-08-29T20:41:01.813945 | 2021-10-20T05:27:21 | 2021-10-20T05:27:21 | 189,347,226 | 5 | 1 | MIT | 2020-09-05T00:50:41 | 2019-05-30T04:47:48 | Python | UTF-8 | Python | false | false | 1,298 | py | """
Events for the bot to trigger after certain conditions are met.
Methods prefixed with ``signal_`` should be called when the certain event occurs.
Methods prefixed with ``on_`` will be executed on all of the events specified occur.
"""
from django.conf import settings
from JellyBot.systemconfig import System
from... | [
"raenonx0710@gmail.com"
] | raenonx0710@gmail.com |
e1c6b71f6753abc16634e2ceac2ea85cb7d57daf | 5754e080348df0fc7f1fffe46c6909edf681ee79 | /branch/dome2-12.py | 463148dadbe21d3912ba1bb5f43a3507a8d00409 | [] | no_license | biao111/learn_python | 57e373d62979096b94b9ea96664dec3b7d88dfce | 609a6a9634a37ecd1c59fa639fcca1eaa6472bfd | refs/heads/master | 2023-01-05T23:15:39.670105 | 2020-11-08T05:23:57 | 2020-11-08T05:23:57 | 310,991,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | #定义变量year,并接收“请输入正确的年份:”
year = input("请输入正确的年份")
#判断是否是闰年:1、能被4整除,但是不能被100整除的年份 2、能被400整除的年份
if int(year) / 4 and not int(year) / 100 and int(year) / 400:
print("{0}年是闰年".format(year))
else:
print("{0}年不是闰年".format(year)) | [
"18211149974@163.com"
] | 18211149974@163.com |
332fdd820f0bc7ff950fcaeb827614a42af1283e | 6e932aa6ec9424ae0238c559112fdd0214c52be6 | /ffawp/ch03/6_excel_value_match_pattern.py | d1e792c640076832617e29f290e915655527f22c | [] | no_license | LingChenBill/python_first_introduce | d1c780dcd3653ef4cda39cc4a0c631a99071f088 | 32ff4a16fe10505fcb49e4762fc573f5f1c62167 | refs/heads/master | 2020-07-29T13:03:15.447728 | 2020-06-09T13:39:07 | 2020-06-09T13:39:07 | 209,813,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | # Date:2020/5/24
# Author:Lingchen
# Mark: 使用基础Python筛选出Excel中客户姓名包含一个特定模式(以大写字母J开始)
# python 6_excel_value_match_pattern.py data/sales_2013.xlsx data/output/6_output.xlsx
import sys
import re
from datetime import date
from xlrd import open_workbook, xldate_as_tuple
from xlwt import Workbook
input_file = sys.arg... | [
"lingchen1316@163.com"
] | lingchen1316@163.com |
a8ac8c461732d4ded453bead82fc9acec29dbbba | ac5e52a3fc52dde58d208746cddabef2e378119e | /schedRUN/batchExps.py | 7db0515b331adb3b60252aaf47cb1feafd1af7df | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | #!/usr/bin/env python
import expconfig as cfg
import model.SystemResourceGenerator as generator
import schedulability.schedulabilityRUN as mySched
#x = utilLimit, y=resDistr
def saveFile(fileName, Data, resN, reqN, resW):
out_file = open(fileName,"w")
out_file.write("# utilLimit, resDistr, success\n")
for k1 ... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
dad141c8211da3eff2f75cc84917eb3fd1c34fe3 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_proximity_placement_groups_operations.py | 3596a3d4ff636882792fbbb9493826f69ebc878f | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 22,039 | 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"
] | yunhaoling.noreply@github.com |
45a2dc394fecfadccc2ed49b79f85b17928b0fb6 | aa369073fab4f8e13ac27a714fe0d975a5a4a9ed | /mathematics/math/math_isinf.py | 38f0c57b3c57471a56b8a47acecc32dda6634bd6 | [] | no_license | ramsayleung/python3-module-of-week | 4076599a8b1d8aa5794de5d73e2083555abe9f0c | 54266c7e62025c3816a6987191c40f3bc0fdd97c | refs/heads/master | 2021-06-18T09:07:30.256614 | 2017-06-25T10:14:54 | 2017-06-25T10:14:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | import math
print('{:^3} {:6} {:6}{:^}'.format('e', 'e', 'x**2', 'isinf'))
print('{:-^3} {:-^6} {:^6} {:-^6}'.format('', '', '', ''))
for e in range(0, 201, 20):
x = 10.0**e
y = x * x
print('{:3d} {:<6g} {:<6g} {!s:6}'.format(e, x, y, math.isinf(y)))
| [
"samrayleung@gmail.com"
] | samrayleung@gmail.com |
934d2b157de713c6d466541d5d13b2e7e9e822df | 9aa488e813b6986d463b35a394a997727a2b26e2 | /NimGame.py | 710f59aac2f9cd39102407a9ac5574b1c545f0ad | [] | no_license | s781825175/learnpython | 5fb2304e3183acb0faa068470b416620115c07dc | 458c84693d8a27e13dab5cb0dc649f894dbba621 | refs/heads/master | 2020-12-30T10:49:13.531546 | 2017-12-14T10:01:32 | 2017-12-14T10:01:32 | 98,855,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | class Solution(object):
def canWinNim(self, n):
"""
:type n: int
:rtype: bool
"""
return bool(n%4)
a=Solution()
n=4
b=a.canWinNim(n)
print(b)
| [
"781825175@qq.com"
] | 781825175@qq.com |
35391ce5c447621ce5679aed9db59627ffd82563 | a4681043cb56a9ab45be32a62fa9700b391f087f | /16-Hypothesis_Testing_with_SciPy/P-Values.py | f449cb0cb34998455568dd581dbc9c0f9e642373 | [] | no_license | MarceloDL-A/Python | b16b221ae4355b6323092d069bf83d1d142b9975 | c091446ae0089f03ffbdc47b3a6901f4fa2a25fb | refs/heads/main | 2023-01-01T02:29:31.591861 | 2020-10-27T19:04:11 | 2020-10-27T19:04:11 | 301,565,957 | 0 | 0 | null | 2020-10-27T19:04:12 | 2020-10-05T23:41:30 | Python | UTF-8 | Python | false | false | 1,894 | py | """
A p-value of 0.05 means that if the null hypothesis is true, there is a 5% chance that an observed sample statistic could have occurred due to random sampling error. For example, in comparing two sample means, a p-value of 0.05 indicates there is a 5% chance that the observed difference in sample means occurred by ... | [
"marcelo.delmondes.lima@usp.br"
] | marcelo.delmondes.lima@usp.br |
4e9e704c291b63d48880b728ff72d7853655dd19 | 0381663735f6187eaba2a080972c696fef6a122c | /tests/test_transforms.py | aa34fda2fe829d05a840aac3a1b185df62f77444 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ankitshah009/CovidPrognosis | 3cfe8740511ff6672d3d27b547d83ba83eb6eb48 | febabc43a56a1c55e5237513f85f592f578910ea | refs/heads/master | 2023-02-28T08:14:17.475669 | 2021-02-08T07:50:53 | 2021-02-08T07:50:53 | 330,040,422 | 0 | 0 | MIT | 2021-02-08T07:50:54 | 2021-01-15T22:57:31 | null | UTF-8 | Python | false | false | 5,321 | py | """
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""
import covidprognosis.data.transforms as cpt
import numpy as np
import pytest
import torch
import torchvision.transforms as tvt
from scipy.ndi... | [
"matt.muckley@gmail.com"
] | matt.muckley@gmail.com |
ad3872fe9215e5b4563df49a87e54b6899c3d9a4 | 316b8375a7ef8095f09973d13f5a49bc7fbe7580 | /leetcode/1319.py | f921bc8cfc4b6c03132ff116954b9e8c0afdc9b9 | [] | no_license | zhaolijian/suanfa | 9a8d23fbca01d994f7eef24631783c4b7ed25683 | 4f3b25f360f30c0e604ba4dc4d5774ccb5f25b32 | refs/heads/master | 2023-06-08T17:12:41.522937 | 2021-06-27T08:13:16 | 2021-06-27T08:13:16 | 313,269,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | # 用以太网线缆将 n 台计算机连接成一个网络,计算机的编号从 0 到 n-1。线缆用 connections 表示,其中 connections[i] = [a, b] 连接了计算机 a 和 b。
# 网络中的任何一台计算机都可以通过网络直接或者间接访问同一个网络中其他任意一台计算机。
# 给你这个计算机网络的初始布线 connections,你可以拔开任意两台直连计算机之间的线缆,并用它连接一对未直连的计算机。
# 请你计算并返回使所有计算机都连通所需的最少操作次数。如果不可能,则返回 -1 。
# 如果线数<n-1,则返回-1
# 否则线数肯定够,返回连通分量数-1
class Solution:
def makeC... | [
"820913569@qq.com"
] | 820913569@qq.com |
1f48b579b46935fd936d8a0e11a65d6de57091ac | 6c492996b452423ff3c02ae2bda35c806b5e2beb | /ALDS1_3_C.py | 8c03c6d04d4818cf18920a385da7b33829d1b0aa | [] | no_license | TakuroKato/AOJ | 4764820aa0fc523d1f2719d968ab9a30069cdef7 | cdcf173eca3079c89041967121f746b200d39ea7 | refs/heads/master | 2021-05-09T17:34:24.953074 | 2018-01-27T07:09:04 | 2018-01-27T07:09:04 | 119,141,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # -*- coding:utf-8 -*-
n = int(input())
arr = []
for i in range(n):
c = input()
try:
tmp = c.split()
com = str(tmp[0])
num = int(tmp[1])
except:
com = str(c)
num = -1
if num != -1:
if com == 'insert':
arr.insert(0,num)
if com == 'delet... | [
"kttk.aero@gmail.com"
] | kttk.aero@gmail.com |
9ba9418423e0772feb3012850b6a1961edec013b | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/201-300/week 239/1851. Minimum Interval to Include Each Query/Minimum Interval to Include Each Query.py | 11dc19b8a31558f91781f8fb8511f15ad9f7d71f | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | #!/usr/bin/env python
# -*- coding:utf-8 _*-
"""
@author: wangye(Wayne)
@license: Apache Licence
@file: Minimum Interval to Include Each Query.py
@time: 2021/05/02
@contact: wang121ye@hotmail.com
@site:
@software: PyCharm
# code is far away from bugs.
"""
from typing import *
import heapq
class Solution:
... | [
"905317742@qq.com"
] | 905317742@qq.com |
842deaed315b48e3b07793d16beefeae9e057192 | aa458694658fd621e9f8fb5bc131a796b541a6b1 | /experiments/stripe82/tractor_render.py | 876960eb8b759f7310ed727a8573ae13f30681df | [] | no_license | PinkDiamond1/DESI-MCMC | 7e6681e605b039d3584ea93aa8ecc35aa3e51344 | 54436db88e97eb0ffa571bff84d1cae2c4b44887 | refs/heads/master | 2023-03-17T15:21:51.431764 | 2016-04-27T13:16:38 | 2016-04-27T13:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,589 | py | import os
import logging
import numpy as np
import pylab as plt
import fitsio
import math
from astrometry.util.file import *
from astrometry.util.plotutils import ArcsinhNormalize
from astrometry.util.starutil_numpy import *
from astrometry.sdss.fields import *
from astrometry.sdss import DR9
from tractor import *
from... | [
"andrew.colin.miller@gmail.com"
] | andrew.colin.miller@gmail.com |
ff2271359db1616124e1268faddb92c674bae44a | 7b47c686684e145ad06f2096c4be9fcf4dba4c68 | /regress_nn.py | e40313ea874bca697c0ccb86cfd15631c9e9e903 | [] | no_license | evanthebouncy/learn_torch | 3e5f52fb9dc7d8dbcf6fe5f2f3dcaf252c523512 | d612375e1b0f6b8dee667e25644d03d297e3da65 | refs/heads/master | 2020-04-09T19:00:59.485452 | 2018-03-07T19:01:37 | 2018-03-07T19:01:37 | 124,240,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | import torch
from torch.autograd import Variable
import numpy as np
# generate the data
A = np.array([[1.0, 2.0],[3.0, 4.0]])
B = np.array([[4.0, 3.0],[2.0, 1.0]])
def to_torch(x):
x = Variable(torch.from_numpy(x)).type(torch.cuda.FloatTensor)
return x
def gen_xy():
x = np.random.rand(2)
y = np.matmul(A,x) i... | [
"evanthebouncy@gmail.com"
] | evanthebouncy@gmail.com |
07c3f2b17542741fdba879d28e6400445fafd77b | 5dd190725aaaeb7287d935b3c99c20480b208816 | /slim/deployment/model_deploy_test.py | af033d9b9ce6deb1fd51ed74cd65a6fa3e9f852a | [
"MIT"
] | permissive | DemonDamon/mask-detection-based-on-tf2odapi | 32d947164fb54395b9e45368c0d4bcf3a6ea1c28 | 192ae544169c1230c21141c033800aa1bd94e9b6 | refs/heads/main | 2023-05-13T05:05:44.534885 | 2021-06-08T05:56:09 | 2021-06-08T05:56:09 | 369,463,131 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,854 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | DemonDamon.noreply@github.com |
2befe10f9db67c105252acf3bd768d479655c6b7 | 886400ec768a04900761a2487ef473daf5acdd6c | /recipes/nysopwdd_providers/build.py | b6ae36c3ba33b39e314f412f973558856b6b8ab2 | [] | no_license | NYCPlanning/db-data-recipes | b058ae9abcee8dc916ee9f36e13c57aad53af0dc | 29ea8e1dc0a4d6dc0dd1704c68389e73f318227a | refs/heads/master | 2020-04-30T18:37:10.044641 | 2019-11-08T17:52:57 | 2019-11-08T17:52:57 | 177,013,624 | 2 | 0 | null | 2019-08-02T16:14:20 | 2019-03-21T19:47:58 | Python | UTF-8 | Python | false | false | 582 | py | from dataflows import *
from lib import joined_lower, create_base_path, dump_to_s3
def ETL():
table_name = 'nysopwdd_providers'
url = 'https://data.ny.gov/api/views/ieqx-cqyk/rows.csv?accessType=DOWNLOAD'
base_path = create_base_path(__file__)
Flow(
load(url, name=table_name, format='csv', fo... | [
"caobaiyue@gmail.com"
] | caobaiyue@gmail.com |
6a52daae1178628c2ebb5e4f1b022cb05d9e4e8f | 60c18eefd903957622a8bd9dc2b7c8522d13552b | /app/jobs/pay.py | e85ffd8937a57dc6377f72492f10e4b47bb4a1b1 | [] | no_license | 15051882416/food_shop | f2868ac7ca63e9e8e36564f979c0c9585e5a22f0 | 0033580a08da6e7f043153e5d3dd382333a9eac2 | refs/heads/master | 2022-03-03T01:45:25.648296 | 2019-02-21T03:25:58 | 2019-02-21T03:25:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from datetime import datetime, timedelta
from flask_script import Manager
from app.libs.enums import OrderStatus
from app.models import Order
from app.service.order import OrderService
from food_shop import app
pay = Manager()
@pay.command
def pay_deadline():
now = datetime.now()
date_30mins_ago = (now - t... | [
"zcxyun@126.com"
] | zcxyun@126.com |
5c39684cc433176e05bd518b1786f2fcb92b87d7 | c9198b0524f07648804d4dd556865840ccbc0195 | /main.py | ae1faa23dccd98e0bc7a82e73d9e48040861b4f3 | [] | no_license | p9s/spider_main | 64e83d5831c2b9095ae7bb6f8707f0576091e4bb | b63b7663c6b70f3d7d49201edea806eab778db37 | refs/heads/master | 2021-07-23T04:34:50.586697 | 2017-11-02T02:57:51 | 2017-11-02T02:57:51 | 109,651,350 | 1 | 0 | null | 2017-11-06T05:24:39 | 2017-11-06T05:24:39 | null | UTF-8 | Python | false | false | 158 | py | import time
import os
os.system('python resetnew.py')
os.system('python word_key.py')
os.system('python set_AZCM.py')
os.system('python word_count_key.py')
| [
"campanulamediuml@gmail.com"
] | campanulamediuml@gmail.com |
3ced7480cec0ff578a70ba52ceb9a6776529471d | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /xlsxwriter/test/workbook/test_check_images.py | 557841a96a86143abdc923cc767ad74e85ab9dd2 | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 1,358 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org
#
import unittest
from io import StringIO
from ...workbook import Workbook
from ...exceptions import Undefine... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
054fa4e0d4cc7c36581cb80e72ee24794728aa75 | c781392896fd2498670bdb2eef9c6f6c43cea6bf | /feder/questionaries/models.py | b89eff9cb28b37e37fc10124f863c21c6d6662f9 | [
"MIT"
] | permissive | fossabot/feder | f35b7485bfe76f9a85e6434ddd97a8c3a4f53ade | c73ebb119e9e620f367e6cf59334e6e9cb13b592 | refs/heads/master | 2021-07-05T04:27:24.801358 | 2017-09-29T23:17:18 | 2017-09-29T23:17:18 | 105,324,724 | 0 | 0 | null | 2017-09-29T23:17:17 | 2017-09-29T23:17:17 | null | UTF-8 | Python | false | false | 2,123 | py | from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
from jsonfield import JSONField
from model_utils.models import TimeStampedModel
from feder.monitorings.models import Monitoring... | [
"naczelnik@jawnosc.tk"
] | naczelnik@jawnosc.tk |
4626e411c019e6382bd13482f3b826e081d71712 | a697a38b37c4cf0a9d6c3439faf7a04d3d8c7766 | /tests/test_spyd/test_utils/test_rate_limiter.py | 5cf89c82abb4f7d3001b9c5cadf6764dc8fca1d4 | [
"Zlib"
] | permissive | fdChasm/spyd | e22ea50c7dbcd9901edcb7e989a455b6db40ec1e | 38e070d10290c2da1e9e5c2226aace871e4dcc59 | refs/heads/master | 2021-01-10T20:01:25.684294 | 2014-03-19T03:47:38 | 2014-03-19T03:47:38 | 13,235,339 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import unittest
from twisted.internet import task
from spyd.utils.rate_limiter import RateLimiter
class TestRateLimiter(unittest.TestCase):
def setUp(self):
self.clock = task.Clock()
RateLimiter.clock = self.clock
self.rate_limiter = RateLimiter(5)
def test_check_drop_first_second(s... | [
"fd.chasm@gmail.com"
] | fd.chasm@gmail.com |
7844f97bf551ed550c53a8663218ff44d86b27c2 | 3f64e138f14e3555d3750327961fa8bdf7ef3894 | /tests/test_utils.py | 98c5d830e14c8029c42a174ba56eed26ac6d8889 | [] | no_license | potykion/repka | 1f2cb76fac6e55d1b397bc3376c0c2734937603e | 4af753fd7ca85df34a2d56846abfee209f199ea1 | refs/heads/master | 2021-06-24T08:51:45.699627 | 2021-01-16T20:26:39 | 2021-01-16T20:26:39 | 194,866,011 | 15 | 6 | null | 2021-01-16T19:42:13 | 2019-07-02T13:13:38 | Python | UTF-8 | Python | false | false | 1,376 | py | import datetime as dt
import pytest
from aiopg.sa import SAConnection
from pydantic import BaseModel
from repka.utils import model_to_primitive, create_async_db_connection
class MyModel(BaseModel):
id: int
title: str
created: dt.datetime
@pytest.fixture()
def model() -> MyModel:
return MyModel(id=... | [
"potykion@gmail.com"
] | potykion@gmail.com |
1d66426f9e4724302c9516cccd3afd40f81c426b | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_ls_service_profile_all_of.py | 852d1df889f3cbf9ce05ab54ad0afc4887b566f5 | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 1,943 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
4701c32f3cea059e7d98f62136b9bdb9e14346a0 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/programa-stic_barf-project/barf-project-master/examples/scripts/arm/check_constraint1.py | 0575fae11d2ef320c4090b71d86c5307d021bd56 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 2,988 | py | #! /usr/bin/env python
import os
import sys
from barf import BARF
from barf.arch import ARCH_ARM_MODE_ARM
if __name__ == "__main__":
#
# Open file
#
try:
filename = os.path.abspath("../../bin/arm/constraint1")
barf = BARF(filename)
except Exception as err:
print err
... | [
"659338505@qq.com"
] | 659338505@qq.com |
3fe0429d361d570d27e0ba30b97de0e16a82479a | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/quota/azure-mgmt-quota/azure/mgmt/quota/aio/_quota_mgmt_client.py | 48fc3c78a5d268c271a5b23817271d60686e4814 | [
"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 | 4,808 | 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 |
ad8c7c1713fe5226ae24dda311c28e08b57f3ef5 | 09a2d0231caf5231875270ca85dba3bf201d83c7 | /linotak/images/models.py | 3ca3d0604eab73f4b3fb4635ce44532e92768c83 | [] | no_license | pdc/linotak | 898c2a014a2f2beed25127efc4b69db637c1a537 | 0075ea457f764cbb67acecb584e927bf58d2e7a8 | refs/heads/develop | 2023-03-09T19:39:59.013308 | 2022-12-19T19:58:49 | 2022-12-19T19:58:49 | 148,982,795 | 0 | 0 | null | 2023-02-15T20:20:01 | 2018-09-16T09:54:31 | Python | UTF-8 | Python | false | false | 23,561 | py | """Modles for images.
Images have two main classes:
Image: the source data for an image.
In RDF terms, this is the resource.
It is augmented with hints for representing it as a thumbnail:
crop_{left,top,width,height} and focus_[xy]
Representation: information about where we stored ... | [
"pdc@alleged.org.uk"
] | pdc@alleged.org.uk |
904911564f504e2a80881c6d84483ecf5f71f3ff | ccae8d40438c4f569463fd422d12fff7baaeba16 | /Utils/Timer.py | 9047838faf2e19200dac23dc3375fe42f8e63e88 | [] | no_license | Occy88/console_game | 2fab618812091d61a40951d15813bd7f603392a6 | 4a70e9188c2061db35712aa4dd0d91b913ee9842 | refs/heads/master | 2022-12-03T20:21:09.494594 | 2021-01-01T14:00:07 | 2021-01-01T14:00:07 | 240,998,812 | 0 | 0 | null | 2022-11-22T05:19:24 | 2020-02-17T01:52:04 | Python | UTF-8 | Python | false | false | 881 | py | import time
class Timer:
def __init__(self):
self.timer_start = 0
self.timer_end = 0
self.elapsed = 0
self.running = False
self.prev_lap = 0
def poll(self):
if self.running:
return time.time() - self.timer_start
else:
return self... | [
"octavio.delser@gmail.com"
] | octavio.delser@gmail.com |
e345860053111c2bfa4a40e308126db75975ad68 | 8928c4745515ffecfc581da36df47b0789fb463f | /Chapter_5/downloader.py | ab075c69084a83f6cf614df2e43a8f8bc16ed2ff | [] | no_license | iluxonchik/webscraping-with-python-book | 72da36ba8fae016ccc20d44753ec4c46bc933dee | ffc5a1459778649d081c62812c8d3edbb2f120a9 | refs/heads/master | 2021-01-10T10:19:12.443341 | 2016-01-21T21:50:11 | 2016-01-21T21:50:11 | 48,058,040 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import os
from urllib.request import urlretrieve
from urllib.request import urlopen
from bs4 import BeautifulSoup
downloadDirectory = "downloaded"
baseUrl = "http://pythonscraping.com"
def getAbsoluteURL(baseUrl, source):
if source.startswith("http://www."):
url = "http://" + source[11:]
elif source.startswith("h... | [
"iluxon4ik@hotmail.com"
] | iluxon4ik@hotmail.com |
fc2ab2260587bdda8ade496a114f769bb62fa695 | 06671e14ae54f887be05a64c632712537d38add6 | /integration_distributed_training/server/sanity_check_redis.py | be2d662f50ca2b88be7b8e88384c2d38df63a90f | [] | no_license | Jessilee/ImportanceSamplingSGD | cf74a220a55b468b72fed0538b3a6740f532fcb2 | 0831b9b1833726391a20594d2b2f64f80e1b8fe2 | refs/heads/master | 2021-01-24T10:12:48.285641 | 2016-02-05T19:25:34 | 2016-02-05T19:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,488 | py |
import redis
import numpy as np
import time
import progressbar
import signal
import sys
from redis_server_wrapper import EphemeralRedisServer
def start_redis_server(server_port=None):
server_scratch_path = "."
if server_port is None:
server_port = np.random.randint(low=1025, high=65535)
#se... | [
"gyomalin@gmail.com"
] | gyomalin@gmail.com |
77e0749e86338275012284cf329a197dfdf60053 | 2ec5a02fe7e23d6a07ed653c240aa47ca8c58323 | /ephemeral/visualise_embeddings.py | c2d1779917c5a8cc3966fc87a785f0f0944ce944 | [
"BSD-3-Clause"
] | permissive | gob1thaasan/fMRI_Cubical_Persistence | aecfe5721e1dd0445356f3820f6c8c46a4e5bf4e | 5a4773333a33f86c17bbd0604cc48a361fc9a35f | refs/heads/master | 2022-12-27T18:05:36.885999 | 2020-10-22T16:49:01 | 2020-10-22T16:49:01 | 445,372,065 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,467 | py | #!/usr/bin/env python3
#
# Visualises persistence-based embeddings in the form of trajectories
# in a space of a given dimension.
import argparse
import json
import os
import scprep
import sys
import matplotlib.collections
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d.art3d import Line3DCollection
impor... | [
"bastian.rieck@bsse.ethz.ch"
] | bastian.rieck@bsse.ethz.ch |
d516c0765a53652ce4b81c21c84245df87e8baf7 | 3419067388879d8a6542df01cb0278ae90b021a2 | /面向对象02/04-__del__方法.py | 4f57a186c20066a4ae3cea8e7927fc016c4ee51b | [] | no_license | oweson/python-river-master | faa31c5248e297a92054cc302e213e2b37fb8bd5 | cf9e99e611311b712465eb11dec4bb8f712929b2 | refs/heads/master | 2021-06-21T15:47:01.755957 | 2019-10-02T00:08:05 | 2019-10-02T00:08:05 | 205,607,518 | 0 | 0 | null | 2021-06-10T21:55:20 | 2019-08-31T23:39:55 | Python | UTF-8 | Python | false | false | 526 | py | class Dog:
def __init__(self):
print("英雄出生啦!")
def __del__(self):
print("-----英雄over------")
dog1 = Dog()
dog2 = dog1
pig = dog2
del pig
del dog1 # 不会调用 __del__方法,因为这个对象 还有其他的变量指向它,即 引用计算不是0
del dog2 # 此时会调用__del__方法,因为没有变量指向它了
print("====================")
# 如果在程序结束时,有些对象还存在,那么python解释器会... | [
"570347720@qq.com"
] | 570347720@qq.com |
9d9ead965bb272ef26c91d607ee1edf97b67eb46 | c4bed653be5a24b9cdd8816a05bba9faf2314798 | /everpad/pad/editor/content.py | 36a00d2cffd73c79974998f05f97ae08875d6992 | [] | no_license | hechaoyuyu/everpad | 842188ec6328aa10fc8f28f6ade807143dcdbc4d | 0d0732c2187808f622235caa1f771e0c7643c3f2 | refs/heads/master | 2021-01-16T18:38:22.005686 | 2013-01-15T14:38:19 | 2013-01-15T14:38:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,363 | py | from PySide.QtGui import (
QIcon, QPixmap, QAction, QFileDialog,
QShortcut, QKeySequence, QInputDialog,
QPrintPreviewDialog, QPrinter, QDropEvent,
QDragEnterEvent, QDragMoveEvent, QApplication,
QDesktopServices, QApplication,
)
from PySide.QtCore import (
Slot, Qt, QPoint, QObject, Signal, QUrl... | [
"nvbn.rm@gmail.com"
] | nvbn.rm@gmail.com |
d6451583c9261fe045e59096f4413197ec245229 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03816/s835463454.py | bb046e7283c6af48d8494de5f20feb193506bf36 | [] | 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 | 131 | py | N = int(input())
A = list(map(int, input().split()))
s = set(A)
if len(s)%2 == 0:
ans = len(s)-1
else:
ans = len(s)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d18c48e1c9e31fcd43c523c8aec7b75312b8f08f | 98d832289b7437247ce03ea54ad3cb7b95451159 | /rapid7vmconsole/models/disk_free.py | fc0bdc97d984c0fa933b54ae148bfe5d434c05a4 | [
"MIT"
] | permissive | rmehilli-r7/vm-console-client-python | 7f02f13345dce4f4d4d85e18da7146daeefbceb9 | 069041c1c7b53c6b3d8bfdd81b974141bfca3c0c | refs/heads/master | 2020-03-23T11:20:33.364442 | 2018-08-10T20:06:37 | 2018-08-10T20:06:37 | 141,498,444 | 0 | 0 | MIT | 2018-08-08T19:58:45 | 2018-07-18T23:00:41 | Python | UTF-8 | Python | false | false | 51,784 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
853bed2cb752c48a90ca0259b3a04f2b8aee8684 | 6160586aa239eada16e735d40d57970dedbe1dfc | /modules/ifttt_manage/ifttt_scene_query/ifttt_scene_query_detail.py | 042e1159acc9f5254e74791f0a6593cdb8438812 | [] | no_license | showgea/AIOT | 7f9ffcd49da54836714b3342232cdba330d11e6c | fe8275aba1c4b5402c7c2c2987509c0ecf49f330 | refs/heads/master | 2020-07-23T10:19:37.478456 | 2019-09-23T12:25:59 | 2019-09-23T12:25:59 | 207,525,184 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | import requests
from config import readcfg
header_Gary = readcfg.header_Gary
header_Jenny = readcfg.header_Jenny
url = readcfg.url
def ifttt_scene_query_detail(sceneId):
url_ = url + "/app/v1.0/lumi/ifttt/scene/query/detail"
params_ = {
"sceneId": sceneId
}
proxies = {'http': 'http://127.0.0.... | [
"tangguobing2011@163.com"
] | tangguobing2011@163.com |
1206c9ef9057cf5c0c26e4daf0692b70bd167e82 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/plaudit.py | de18d7887743622f3d164216f2eedbb4c948086d | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 451 | py | ii = [('CookGHP3.py', 1), ('WilbRLW4.py', 1), ('CookGHP.py', 3), ('KembFJ1.py', 1), ('PettTHE.py', 1), ('ChalTPW2.py', 1), ('CarlTFR.py', 6), ('LyttELD.py', 1), ('AinsWRR3.py', 1), ('RoscTTI2.py', 1), ('ClarGE.py', 2), ('DibdTRL2.py', 1), ('BackGNE.py', 1), ('LeakWTI4.py', 1), ('LyttELD3.py', 1), ('RoscTTI.py', 1), ('T... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
8c68e381114915acc331eee949fba0bca03c4ec5 | 754d39fbc163cb38bcff31d4b16bfc583242b759 | /Session20L.py | 81de6bb7d8ef42101807af128a981e9329e89bd2 | [] | no_license | MUSKANJASSAL/PythonTraining2019 | c68654b5548860c7b501252ce2289a48dbe575c3 | 0e3f226d2d7443759c92b3808d9d7f176c9a4a84 | refs/heads/master | 2020-06-22T14:39:29.491716 | 2019-07-21T10:46:10 | 2019-07-21T10:46:10 | 197,730,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
result = pd.read_csv('CityTemps.csv', delimiter = ',')
print(result)
print("Maximum Temparature of Ludhiana", result['Ludhiana'].max())
print("Maximum Temparature of Amritsar", result['Amritsar'].max())
print("Maximum Temparature of Chandigarh", r... | [
"muskan124.jassal@gmail.com"
] | muskan124.jassal@gmail.com |
9c40c6ed010c2cd1f0ebcc2470ac11538c1ffa5f | 6e9c127bd6705a8b92f240ca663163504b86cd81 | /test/test_plants/test_plants/test_noFuelPlant.py | 15637666059d8880a95372b53df0b25bedf4bd63 | [
"MIT"
] | permissive | alexanderkell/elecsim | 239ffd539d1b04f24186ddaae20ac4ce6b258c03 | df9ea14cbc8dd3fd4302be9274cb6ea61c0cdb10 | refs/heads/master | 2023-04-06T10:03:35.367411 | 2023-04-05T16:52:16 | 2023-04-05T16:52:16 | 124,561,430 | 36 | 10 | MIT | 2022-12-08T01:57:45 | 2018-03-09T15:55:53 | Jupyter Notebook | UTF-8 | Python | false | false | 2,109 | py | """
File name: test_noFuelPlant
Date created: 28/11/2018
Feature: #Enter feature description here
"""
from unittest import TestCase
from pytest import approx
from elecsim.plants.plant_type.non_fuel_plant import NonFuelPlant
__author__ = "Alexander Kell"
__copyright__ = "Copyright 2018, Alexander Kell"
__license__ ... | [
"alexander@kell.es"
] | alexander@kell.es |
6335ca36003aa92af24d10cb4f58f016985db399 | 16546a94e9f078c3e7a39337d47b21d7b71b6799 | /siphon.py | 09a895c8d1f3ff55df5b9a8edae0e64a5d8af074 | [] | no_license | mdevaev/arduino-siphon | 7c7259bb87f116fa9c0eb65b2c1b8941c11dd06a | 56a7959a13a73311faeefcd54a9f3aeb9f7989ff | refs/heads/master | 2021-01-21T08:57:33.710400 | 2016-01-09T05:06:40 | 2016-01-09T05:06:40 | 15,296,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py | #!/usr/bin/env python3
import sys
import xmlrpc.client
import serial
import struct
import time
import logging
# =====
class Siphon:
def __init__(self, device):
self._tty = serial.Serial(device, 115200)
def send(self, download, upload, has_download, has_upload):
self._tty.write(struct.pack("... | [
"mdevaev@gmail.com"
] | mdevaev@gmail.com |
acc34bec7a83d214a82312b4dd86944cdfe77048 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/__init__.py | 7095017a476bda7b22db2b89d133e5d222d228d9 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 23,839 | 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"
] | test-repo-billy.noreply@github.com |
da97ca1fe888a2921cdd2db3c8eb5634445741f2 | 9f118ed377f62c84ff46710d15bfeb60ff43a514 | /11 - Unit 4/4.3.6.py | 17d9a7b0d37933163b49ee42961f2e80067563f1 | [] | no_license | srujanprophet/PythonPractice | 382f8bd5cc3f70504c3d62c1d8795c7451b344dc | ebc13e9f21a6b0f594d10b8524ef358c797979de | refs/heads/master | 2021-09-12T15:37:22.423484 | 2018-04-18T05:05:59 | 2018-04-18T05:05:59 | 67,717,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | c=dict()
n = input("Enter total number ")
i=1
while i<=n:
a=raw_input("enter place")
b=raw_input("enter number")
c[a]=b
i=i+1
print "place","\t","number"
for i in c:
print i,"\t",c[i]
| [
"noreply@github.com"
] | srujanprophet.noreply@github.com |
743e4f277a0e2c96bc6bd00fda0b9a9e8941dddb | bd06d7672673370fb6fde1e2f9c5364fb131f2c9 | /s02e03.py | b61732294b523dfd70d6bacddf59f9c3f4200712 | [] | no_license | tjmode/python | 12e327b644b1579af1f47de20dc579737f6be202 | a99c45e18d5f453747d0caaa9b96aedc84d23bc8 | refs/heads/master | 2020-08-30T10:49:27.190948 | 2019-10-29T18:32:52 | 2019-10-29T18:32:52 | 218,356,539 | 1 | 0 | null | 2019-10-29T18:32:09 | 2019-10-29T18:32:09 | null | UTF-8 | Python | false | false | 137 | py | a=int(input())
count=0;
for i in range(2,a):
if a%i==0 :
count=count+1
if count==0 :
print("yes")
else :
print("no")
| [
"noreply@github.com"
] | tjmode.noreply@github.com |
da51bd29e9ec5c024eccd93f2c07274810ce5075 | b24e993bfae0e530b7c6ee676b0efa1b2cbea33c | /rsopt/codes/__init__.py | caa06d213dc50724c2cf5cbbba9ae378f38c5a34 | [
"Apache-2.0"
] | permissive | tanxicccc/rsopt | f99d8d721ce37647717b41c08b44f69a065444ae | 8705e937f95a4bbe6ed3fb1a04b78f724a5f3931 | refs/heads/master | 2023-01-06T19:21:40.065806 | 2020-10-24T23:48:34 | 2020-10-24T23:48:34 | 288,584,476 | 0 | 0 | Apache-2.0 | 2020-08-18T23:19:55 | 2020-08-18T23:19:54 | null | UTF-8 | Python | false | false | 403 | py | # Templated codes have schema files that can be used to check input and create run files. Otherwise user
# must supply module containing inputs
_TEMPLATED_CODES = ['elegant', 'opal']
# Supported codes have defined Job class
# FUTURE: 'Unsupported' codes could become a class of supported codes that have expanded user... | [
"chall@radiasoft.net"
] | chall@radiasoft.net |
6d4e8ab0a2d77c2dd96717365794b656c3c1a689 | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/pyshark/capture/inmem_capture.py | 2a1f2d1370ad5eb6fc9c98cf1d87cdcfb0d0f0d9 | [
"MIT"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 8,200 | py | import asyncio
import subprocess
import os
import struct
import time
import warnings
from distutils.version import LooseVersion
from pyshark.capture.capture import Capture, StopCapture
DEFAULT_TIMEOUT = 30
class LinkTypes(object):
NULL = 0
ETHERNET = 1
IEEE802_5 = 6
PPP = 9
IEEE802_11 = 105
cl... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
f55bac2f84b841a6ce569f89983b6c04c82dbda8 | dc30b6ecea0a1ad2342244871817a5882f506fda | /Euler Challenge/Euler71.1.py | c3635d3278d68ee5699fad292243f03b338cd532 | [] | no_license | CasperHagenaars/WISB256 | 26e4b272a80d687b22ce7fd48a6040e45e152b85 | d0871a2221f71fe64d7aba4efcd3a1e276c22f34 | refs/heads/master | 2020-05-20T17:03:27.182900 | 2015-06-18T12:43:33 | 2015-06-18T12:43:33 | 34,313,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | import math
import fractions
from time import time
print(fractions.Fraction(3.0/7-0.000001).limit_denominator(1000000)) | [
"casperhagenaars@gmail.com"
] | casperhagenaars@gmail.com |
ac1798e3eaec3b174772f1900d1e578f23c91dbd | 21183612ae42b6e84e010ead82f5ae5346890ac7 | /python/ccxt/braziliex.py | 31c183f7c4f299f3f90229487b6e8e0654596bfd | [
"MIT"
] | permissive | mpalamar/ccxt | f81cce56b9fd585f38ec96026c2fd64c18459934 | d1d71de475db83fd1cd38ed6b8b8873b7a98d5bd | refs/heads/master | 2021-05-13T15:38:19.086675 | 2018-01-09T05:23:07 | 2018-01-09T05:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,855 | py | # -*- coding: utf-8 -*-
from ccxt.base.exchange import Exchange
import hashlib
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationError
from ccxt.base.errors import InvalidOrder
class braziliex (Exchange):
def describe(self):
return self.deep_extend(super(b... | [
"igor.kroitor@gmail.com"
] | igor.kroitor@gmail.com |
6f7b4b4469eea1d72517868ec70829943fb7202a | df0df0aa366c323e61a397b2ea54d359bbee3469 | /forms.py | f203bdd474a96cb79067f297555d0cd69932099c | [
"Apache-2.0"
] | permissive | craigderington/snowy-owl-api | d8c3cd47bc64e9d96512a5bee49f5978ac500398 | b61141e8b4d28f82782ca30b7360ec7fe55bb8ba | refs/heads/master | 2023-02-05T00:38:41.008820 | 2020-12-23T22:49:41 | 2020-12-23T22:49:41 | 324,015,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from wtforms import Form, BooleanField, StringField, PasswordField, validators
class LoginForm(Form):
username = StringField('Username', [validators.Length(min=4, max=25)])
password = StringField('Email Address', [validators.Length(min=6, max=35)])
| [
"craig@craigderington.me"
] | craig@craigderington.me |
858debd46c8c5246143b38a6c3044dfbbb758d0b | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/learningCurve/ninetyPercent/lrClassifierC.py | a453c046d35a319d2fd070e68cd30511bf66bef3 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,133 | py | # 9 September 2019
# Kiyoto Aramis Tanemura
# I modified the rfClassifier.py script to implement a logistic regression classifier. This classifier runs faster than the random forest classifier and Jun previously observed comparable results between logistic regression and random forest classifiers for the protein fold... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
bd66eed366baf1ce93deacad00fb25566d2e9611 | c85ec637dd7202eccbab3623f0e12608f2c58c73 | /redditdownloader/tests/integration/processing/handlers/test_ytdl.py | 54bdcc840f71ebbc42637314c6bf87935b3a79c1 | [] | no_license | shadowmoose/RedditDownloader | 2d7b8d68d3be7cd63614c5019e2935e25d8548f8 | ebcb791f78e5d761efcca28b5ebd5b7e1b61df85 | refs/heads/master | 2023-07-13T09:55:21.700858 | 2023-07-02T05:02:18 | 2023-07-02T05:02:18 | 93,103,288 | 1,134 | 120 | null | 2023-05-04T05:57:26 | 2017-06-01T22:03:41 | Python | UTF-8 | Python | false | false | 1,214 | py | from tests.mock import StagedTest, mock_handler_request
from processing.handlers import ytdl
class YTDLHandlerTest(StagedTest):
""" Test the YT_DL Handler's downloading capabilities """
def test_gfycat(self):
""" Attempt Gfycat.com download """
_task, _prog, _file = mock_handler_request(self.dir, 'https://gfyc... | [
"theshadowmoose@gmail.com"
] | theshadowmoose@gmail.com |
6ac23f071d374644a614840e4e5d00c178a6e2d0 | d5d0daf16e3dd7621b0f1fefc31f4312d7871043 | /src/jmx4py/jolokia/client.py | 942152f906eed683020d0772327a3cbb3af16d20 | [
"Apache-2.0"
] | permissive | pombredanne/jmx4py | fb5aae878095855e7198d9cac9ec1a8058f9c65a | 7950c9bdbdbd09f9fc13377b2d4a42ddd757309f | refs/heads/master | 2021-01-15T16:17:41.289333 | 2013-09-27T18:21:12 | 2013-09-27T18:21:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,944 | py | # pylint: disable=C0321
""" JMX Client Proxy.
See http://www.jolokia.org/reference/html/protocol.html for a
detailed description of the Jolokia protocol and different ways
to query for information. The client API methods only describe
the major points, and specifics of the Python interface.
@autho... | [
"jh@web.de"
] | jh@web.de |
5cc085f2bcede2101a78d224a389fcf4d5aedfc7 | 40da919c52cfdb9658b7400f26c48c11e124e315 | /ising3D.py | 0d08754fec2e3fa6bd878d34ac543fa856d3c52f | [] | no_license | bvillasen/isingModel | ae71f57c94db58ac35d3bc26b36c944b70fed2b0 | b4d47c8b563cf6f787fe9a764ccdbd560964acbe | refs/heads/master | 2021-01-19T14:07:01.017178 | 2019-11-23T22:36:08 | 2019-11-23T22:36:08 | 14,155,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,589 | py | # 3D Ising model simulation
# made by Bruno Villasenor
# contact me at: bvillasen@gmail.com
# personal web page: https://bvillasen.webs.com
# github: https://github.com/bvillasen
#To run you need these complementary files: CUDAising3D.cu, volumeRender.py, CUDAvolumeRender.cu, cudaTools.py
#you can find them in my gi... | [
"bvillasen@gmail.com"
] | bvillasen@gmail.com |
eb699c07c9e6654200ed8d1ce223b385bfd7154d | bf72d3e5a22e4deaeeb2bbdf25efc942cfa4da08 | /2013spring/cd/w16_gearwidth2.py | 5bf0ac17632b819d1e0c3a750fc5f0746e8568f3 | [] | no_license | chiamingyen/mdeCourse | e9caf13ee9f701d4641e91c04963d60aec5d85e3 | 43dea5078df8ede58d8cfaa013b94d54750feead | refs/heads/master | 2021-01-16T21:22:01.906176 | 2013-10-25T14:25:28 | 2013-10-25T14:25:28 | 8,744,258 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,394 | py | #coding: utf-8
'''
"本程式的目的在輔助設計者選擇齒輪的尺寸大小,";
"由於相囓合的兩齒輪其徑節 (Diametral Pitch) 相同";
",齒的大小也相同。因徑節為每單位直徑的齒數,因此徑節愈大,則其齒的尺寸愈小";
";反之,徑節愈小,則齒的尺寸則愈大。";
"一般在設計齒輪對時,為避免使用過大的齒及過寬的齒面厚度,因此必須要就齒輪大小與強度與負載加以設計。";
"一般而言是希望齒輪面的寬度 (Face Width) 能大於3倍周節 (Circular Pitch),以避免選用太大的齒尺寸。";
"並且希望齒輪面的寬度 (Face Width) 能小於5倍周節,以便齒面傳遞負載時能有較為均勻的分佈,因此... | [
"chiamingyen@gmail.com"
] | chiamingyen@gmail.com |
5cfb3d0d5e2118c2eb69149f2e71449e382566cd | 8d014a0120864b42748ef63dddfa3c733370118c | /layint_api/models/clair_layer.py | 930dd8c648cdb805eef50bded4091bd69bb4939c | [
"Apache-2.0",
"LicenseRef-scancode-unknown"
] | permissive | LayeredInsight/layint_api_python | 3a6cf0bf62219f09010b828d7e02c2f3852a6f6f | a5c9a5b24098bd823c5102b7ab9e4745432f19b4 | refs/heads/develop | 2020-03-27T05:43:35.831400 | 2018-10-15T22:28:54 | 2018-10-15T22:28:54 | 146,044,385 | 0 | 0 | Apache-2.0 | 2018-10-15T22:28:55 | 2018-08-24T22:11:08 | Python | UTF-8 | Python | false | false | 7,525 | py | # coding: utf-8
"""
Layered Insight Assessment, Compliance, Witness & Control
LI Assessment & Compliance performs static vulnerability analysis, license and package compliance. LI Witness provides deep insight and analytics into containerized applications. Control provides dynamic runtime security and analyti... | [
"Scott Oberg"
] | Scott Oberg |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.