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
6e612a774a20e51feed223e0a74a18ebcf53f4a2
76fa4bc242502bcd9dfe1053c964318b94acc6d8
/matplotlib bar chart/df_barplot.py
fc8ef89725b545217214b8af713ce4b4e05eb56a
[]
no_license
phani-1995/Week3-python_libraries
720156098ccab5301a58e39a4dd7af5a19a08008
1347b8dfd4980b37471a54ce991c967fdcb32e2b
refs/heads/master
2021-04-01T17:42:54.855954
2020-03-23T06:50:18
2020-03-23T06:50:18
248,204,612
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt data=np.array([[2,4,6,8,10],[4,2,4,2,2],[8,3,7,6,4],[5,4,4,4,3],[6,6,8,6,2]]) dataFrame=pd.DataFrame(data,columns=['a','b','c','d','e'], index=["Delhi",'Mumbai','Hyderabad','Pune','Bengalur']) dataFrame.plot(kind='bar') plt.show()
[ "phanindrajallavaram@gmail.com" ]
phanindrajallavaram@gmail.com
d700bfe0470ed942dca42727b21481b2d69a4bcd
5e324af46c554b88b97ee26886b05c88457ff0f5
/franchises/models/franchise.py
8d73000fdaadc7d85bb373e0c6cadd7335661a11
[]
no_license
doubleclickdetroit/dindintonight
1bda8851e49782d4dc16ca77d46e4b1f431c2b52
9769e1a96730b02511d25af8828b075dff5c35b5
refs/heads/master
2016-08-04T22:01:08.083566
2014-07-26T18:58:58
2014-07-26T18:58:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
927
py
from autoslug import AutoSlugField from django.db import models from django.db.models.signals import post_save from core.models import BaseModel class Franchise(BaseModel): id = models.AutoField(primary_key=True) owner = models.OneToOneField('users.User', related_name='franchise_owners') slug = AutoSlugF...
[ "rgarrison3@gmail.com" ]
rgarrison3@gmail.com
fc0b1a61451fe1c4b893d8ea586e3c6d8e04d357
7b2a3ea853dc44aea204f02abedaad6a2029f4ff
/inv_test.py
46e208002c5331c95094449e682798e59a78e53a
[]
no_license
NoisyLeon/SW4Py
7d45503282dc988b5f886c039706bd79fdd6b339
7029f18eb526bcb46b4aa244da1e088ca57a56aa
refs/heads/master
2020-12-22T14:57:11.265397
2016-12-20T18:27:18
2016-12-20T18:27:18
56,792,735
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
# import obspy # # net=obspy.core.inventory.network.Network('SW4', ftanparams=[]) # inv=obspy.core.inventory.inventory.Inventory(networks=[net],source='CU') # sta=obspy.core.inventory.ftanparam.Station('aa',13,132.4214,0.0)
[ "lili.feng@colorado.edu" ]
lili.feng@colorado.edu
af2e9492dc28f8de8f275110fb743e9b78dbf797
3ef70fe63acaa665e2b163f30f1abd0a592231c1
/stackoverflow/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_internal/vcs/__init__.py
9cba76464ca1a26eb69d5c9dbf37f46eb9dc78f4
[ "MIT" ]
permissive
wistbean/learn_python3_spider
14914b63691ac032955ba1adc29ad64976d80e15
40861791ec4ed3bbd14b07875af25cc740f76920
refs/heads/master
2023-08-16T05:42:27.208302
2023-03-30T17:03:58
2023-03-30T17:03:58
179,152,420
14,403
3,556
MIT
2022-05-20T14:08:34
2019-04-02T20:19:54
Python
UTF-8
Python
false
false
17,278
py
"""Handles all VCS (version control) support""" from __future__ import absolute_import import errno import logging import os import shutil import sys from pip._vendor.six.moves.urllib import parse as urllib_parse from pip._internal.exceptions import BadCommand from pip._internal.utils.misc import ( display_path,...
[ "354142480@qq.com" ]
354142480@qq.com
9b52f8728284f014f32195d6f50595415bcec9bb
cf54adda6874a4256401e9e4eb28f353b28ae74b
/python-modules/python_call_django_view.py
f56832338684b861081db955189ae868d9eae874
[]
no_license
oraant/study
c0ea4f1a7a8c3558c0eac4b4108bc681a54e8ebf
7bce20f2ea191d904b4e932c8d0abe1b70a54f7e
refs/heads/master
2020-09-23T02:08:07.279705
2016-11-21T06:30:26
2016-11-21T06:30:26
66,995,585
0
0
null
null
null
null
UTF-8
Python
false
false
656
py
# coding:utf-8 # # tree /home/oraant/test/django_celery/|grep -v .pyc # /home/oraant/test/django_celery/ # ├── django_celery # │   ├── __init__.py # │   ├── settings.py # │   ├── urls.py # │   ├── wsgi.py # ├── manage.py # └── myapp # ├── admin.py # ├── apps.py # ├── __init__.py # ├── migrations # ...
[ "oraant777@gmail.com" ]
oraant777@gmail.com
33a26a9eff1d85003c886ec1259d2874765ba03b
a2b6bc9bdd2bdbe5871edb613065dd2397175cb3
/中等/旋转图像.py
239a028395365d7e1f8543fcf746f87fc6437301
[]
no_license
Asunqingwen/LeetCode
ed8d2043a31f86e9e256123439388d7d223269be
b7c59c826bcd17cb1333571eb9f13f5c2b89b4ee
refs/heads/master
2022-09-26T01:46:59.790316
2022-09-01T08:20:37
2022-09-01T08:20:37
95,668,066
0
0
null
null
null
null
UTF-8
Python
false
false
1,224
py
''' 给定一个 n × n 的二维矩阵表示一个图像。 将图像顺时针旋转 90 度。 说明: 你必须在原地旋转图像,这意味着你需要直接修改输入的二维矩阵。请不要使用另一个矩阵来旋转图像。 示例 1: 给定 matrix = [ [1,2,3], [4,5,6], [7,8,9] ], 原地旋转输入矩阵,使其变为: [ [7,4,1], [8,5,2], [9,6,3] ] 示例 2: 给定 matrix = [ [ 5, 1, 9,11], [ 2, 4, 8,10], [13, 3, 6, 7], [15,14,12,16] ], 原地旋转输入矩阵,使其变为: [ [15...
[ "sqw123az@sina.com" ]
sqw123az@sina.com
df4bc3c52cb2cc13ff6155431b8a111077115ef7
da6d44b06f631387739d04471920037e8541d6c0
/problems/014.py
8753c9f24c8c00abf2eddba5325e948652a085c7
[ "MIT" ]
permissive
JoshKarpel/euler-python
f6d5d5551a0d77565c852e3eb1e89522675824ec
9c4a89cfe4b0114d84a82e2b2894c7b8af815e93
refs/heads/master
2021-09-01T09:07:46.378352
2017-12-26T05:39:35
2017-12-26T05:39:35
64,712,642
2
0
null
null
null
null
UTF-8
Python
false
false
413
py
from problems import mymath, utils @utils.memoize def collatz_length(n): if n == 1: return 1 if n % 2 == 0: return 1 + collatz_length(n / 2) else: return 1 + collatz_length((3 * n) + 1) def solve(): collatz_lengths = {x: collatz_length(x) for x in range(1, 1000001)} ret...
[ "josh.karpel@gmail.com" ]
josh.karpel@gmail.com
fc0dfd542cb1fc87198d882b23f32e2a923cb059
8822149855c27522b54b05f796e292c1c63dbdf6
/mnist.py
105022e5d79ea5317478d7612e35b04793373105
[]
no_license
jaythaceo/TensorFlow-Tutorial
3c33844b473e67c63bfa9992c124e22ac2a394c3
b4eca4f3f25eeedd868ee2a0645eb617c1b3208a
refs/heads/master
2021-06-27T01:38:49.942255
2017-02-04T23:09:51
2017-02-04T23:09:51
59,586,904
0
0
null
null
null
null
UTF-8
Python
false
false
4,675
py
# Copyright 2016 Jason "jaythaceo" Brooks. 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 appli...
[ "jaythaceo@gmail.com" ]
jaythaceo@gmail.com
8a7fcd602ce6c36bfe796131b87836fae4d82507
04ebcbce9e6ba1329a080f6a970c92fa38bfd3ad
/wxVTKRenderWindowInteractor.py
b082593f5eab958cc247a4efb72b0cbd38ccb342
[]
no_license
Garyfallidis/trn
a9400dfa6cf38887e8ba33a03bfdbc65222a82f6
558086a2c0c360dba9c204be35e9e206750fda5d
refs/heads/master
2020-03-26T17:03:38.476085
2013-02-01T03:19:34
2013-02-01T03:19:34
2,917,853
1
0
null
null
null
null
UTF-8
Python
false
false
25,333
py
""" A VTK RenderWindowInteractor widget for wxPython. Find wxPython info at http://wxPython.org Created by Prabhu Ramachandran, April 2002 Based on wxVTKRenderWindow.py Fixes and updates by Charl P. Botha 2003-2008 Updated to new wx namespace and some cleaning up by Andrea Gavana, December 2006 """ """ Please see...
[ "garyfallidis@gmail.com" ]
garyfallidis@gmail.com
c68040c95d47cb1dbdc67e5ffca73df49529010b
dec108426231384227c39fd83adbd196f9149329
/forge/ethyr/io/__init__.py
53417336b1d41cf6bd2eb3f817ada3db9621aa51
[ "MIT" ]
permissive
Justin-Yuan/neural-mmo
591495d32e20142f8156e09aa725dd124285fd9e
cde2c666225d1382abb33243735f60e37113a267
refs/heads/master
2020-09-06T19:55:26.249578
2019-11-09T17:49:18
2019-11-09T17:49:18
220,532,021
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
from .stimulus import Stimulus from .action import Action from .serial import Serial from .io import IO
[ "sealsuarez@gmail.com" ]
sealsuarez@gmail.com
74fdcfd69840950e1b3e336b45fef12d98d7d355
91ff6fdf7b2ccc58869d6ad41842f230644952c1
/requirements/venky_task/String/7.py
4f1a8999bfbb7bfa6d11aac952ba9d77b5cfcd61
[]
no_license
KONASANI-0143/Dev
dd4564f54117f54ccfa003d1fcec4220e6cbe1f9
23d31fbeddcd303a7dc90ac9cfbe2c762d61c61e
refs/heads/master
2023-08-14T15:59:59.012414
2021-10-13T14:54:49
2021-10-13T15:10:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
def venky(s): n=s.find("not") m=s.find("poor") for i in s.split(): if i=="not": c=s.replace(i,"poor") print(s[n:]+str(c)) n=input("enter a string :") venky(n)
[ "harinadhareddypython@gmail.com" ]
harinadhareddypython@gmail.com
1f8c10416376d98fd9647224d5f6e4826a12517b
cd0cf1c75c715a67502ff7f164bb070da78956de
/calculation/migrations/0046_auto_20160310_0927.py
2a0fc34d174875b0400e1f1c7e5a69becb00158e
[]
no_license
nustarnuclear/orient_linux
9792fb4319007708861d619dac081fa32206d3f6
95082ea56a0dfc248024f9bf54897a017985ccdf
refs/heads/master
2020-03-28T03:17:02.629719
2017-01-04T08:38:16
2017-01-04T08:38:16
43,117,046
0
0
null
null
null
null
UTF-8
Python
false
false
1,065
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import calculation.models class Migration(migrations.Migration): dependencies = [ ('calculation', '0045_server_queue'), ] operations = [ migrations.RemoveField( model_nam...
[ "hengzhang@nustarnuclear.com" ]
hengzhang@nustarnuclear.com
5faf40bbcb2caaa7edd850c568952b71d9a6de70
05c22017cde07bb9fdff2c7f03f2602b1cd15323
/src/textual/widget.py
e43372e6a165b2ec0153e5c91c32e700bf39cf10
[ "MIT" ]
permissive
ramiro/textual
00b0a7fc6fea95d327455c8328248cd926f3eaff
a6a912ab2713b0e1cb668224f7a38f31b1c9939c
refs/heads/main
2023-06-14T01:22:40.975706
2021-07-05T14:06:16
2021-07-05T14:06:16
383,201,815
0
0
MIT
2021-07-05T16:25:54
2021-07-05T16:25:53
null
UTF-8
Python
false
false
6,353
py
from __future__ import annotations from logging import getLogger from typing import ( Callable, cast, ClassVar, Generic, Iterable, NewType, TypeVar, TYPE_CHECKING, ) from rich.align import Align from rich.console import Console, RenderableType from rich.pretty import Pretty from rich....
[ "willmcgugan@gmail.com" ]
willmcgugan@gmail.com
ad8df248427f7098d6463b39e0c10612baf026cc
807305b8aefbd7aac4f44c67deed06c059ca02d9
/src/stk/molecular/topology_graphs/polymer/linear/vertices.py
95e4ae66c4c80eab25400a4a05c7c5504fb3b81f
[ "MIT" ]
permissive
supramolecular-toolkit/stk
c40103b4820c67d110cbddc7be30d9b58d85f7af
46f70cd000890ca7c2312cc0fdbab306565f1400
refs/heads/master
2022-11-27T18:22:25.187588
2022-11-16T13:23:11
2022-11-16T13:23:11
129,884,045
22
5
MIT
2019-08-19T18:16:41
2018-04-17T09:58:28
Python
UTF-8
Python
false
false
6,060
py
""" Linear Polymer Vertices ======================= """ import logging from ...topology_graph import Vertex logger = logging.getLogger(__name__) class LinearVertex(Vertex): """ Represents a vertex in the middle of a linear polymer chain. """ def __init__(self, id, position, flip): """ ...
[ "noreply@github.com" ]
supramolecular-toolkit.noreply@github.com
1d803ef9b328061175dc929664d4498660153ef4
ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7
/tools/verified-boot/signing/gen-op-cert.py
44f970940d9dbbd127253a9616fb4ac0335aa2bd
[]
no_license
facebook/openbmc
bef10604ced226288600f55248b7f1be9945aea4
32777c66a8410d767eae15baabf71c61a0bef13c
refs/heads/helium
2023-08-17T03:13:54.729494
2023-08-16T23:24:18
2023-08-16T23:24:18
31,917,712
684
331
null
2023-07-25T21:19:08
2015-03-09T19:18:35
C
UTF-8
Python
false
false
8,662
py
#!/usr/bin/env python3 # Copyright (c) 2023-present, META, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
9afca773cc3e575a5e99270fc96821846e41becd
1eb7fa8b1745d4e51cefb4eceb44621862516aa6
/Company Interview/FB/BiggestKValuesInBST.py
fd6ddc0d98fe0ee5e2f7a5090dd8918d9e3db922
[]
no_license
geniousisme/CodingInterview
bd93961d728f1fe266ad5edf91adc5d024e5ca48
a64bca9c07a7be8d4060c4b96e89d8d429a7f1a3
refs/heads/master
2021-01-10T11:15:31.305787
2017-03-06T00:03:13
2017-03-06T00:03:13
43,990,453
0
1
null
null
null
null
UTF-8
Python
false
false
1,292
py
class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution1(object): def biggestKthValues(self, root): res = []; stack = [] while root or stack: if root: stack.append(root) roo...
[ "chia-hao.hsu@aiesec.net" ]
chia-hao.hsu@aiesec.net
5f52fdc03f0db7fb339060a70be115388bb1d11a
ed2d96ead522dd4dbd1dfdf4a6a776617f7dbcaf
/tutorial/settings.py
2ab243e3f117195473def28fa8017680ee721604
[]
no_license
Alexmhack/django_rest_quickstart
ff83f435b09f6e279d17c87ea53ad5719276d1f9
b44be0cb8fd07d00ac8715934b1fe480e833e344
refs/heads/master
2020-04-01T06:45:04.591779
2018-10-14T12:22:00
2018-10-14T12:22:00
152,962,441
1
0
null
null
null
null
UTF-8
Python
false
false
3,417
py
""" Django settings for tutorial project. Generated by 'django-admin startproject' using Django 2.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os fr...
[ "alexmohack@gmail.com" ]
alexmohack@gmail.com
70bc0f58d1a7260e8aa0c009c423467c33acd8a0
e6611443e946d1129985a95bc2dd2afc610f8292
/CMS/apps/task_status/migrations/0003_taskstatus_category.py
53b4aaa95708f0d4641fb077232356c169f2ceb3
[]
no_license
Indus-Action/Campaign-Management-System
a761dd9bbc7967f8302bb3283230f87ccc2bd2a6
9c6f1193ff897b8cc53f2a1c3bca8d70a890e70f
refs/heads/master
2020-03-12T19:49:19.329764
2018-05-15T06:37:41
2018-05-15T06:37:41
130,792,314
1
1
null
null
null
null
UTF-8
Python
false
false
694
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-09-28 06:19 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('task_status_categories', '0001_initial'), ('task_sta...
[ "madhav.malhotra3089@gmail.com" ]
madhav.malhotra3089@gmail.com
fcdc3c6425304d12927eedb5366284da5f8f22cc
67b04bf2bdfdfc8de4189a52fe431aa482c375ac
/example/app.py
531fdcb75688c64a06ec95e82a0c65b0fe75b7d9
[ "MIT" ]
permissive
d0ugal/aioauth-client
2de6eeb25fd6582a34c8b144fff066d817b011db
6fce61642c974ede8d800e476a4a5661778a180d
refs/heads/develop
2023-04-10T03:59:04.766587
2020-01-22T19:46:26
2020-01-22T19:46:26
235,654,658
1
0
MIT
2023-04-04T01:21:32
2020-01-22T19:55:56
Python
UTF-8
Python
false
false
5,114
py
""" Aioauth-client example. """ import asyncio from aiohttp import web import html from pprint import pformat from aioauth_client import ( BitbucketClient, FacebookClient, GithubClient, GoogleClient, OAuth1Client, TwitterClient, YandexClient, ) app = web.Application() clients = { 'tw...
[ "horneds@gmail.com" ]
horneds@gmail.com
c422911d66d3c472a423daa9aae44836f52b2fba
7add1f8fc31b09bb79efd2b25cc15e23666c1d1d
/tfx/orchestration/portable/tfx_runner.py
c431cf3f36a66e468fcc48190bbaac4331fed4f7
[ "Apache-2.0" ]
permissive
twitter-forks/tfx
b867e9fee9533029ca799c4a4c5d1c5430ba05fe
cb3561224c54a5dad4d5679165d5b3bafc8b451b
refs/heads/master
2021-11-19T18:45:09.157744
2021-10-19T00:02:34
2021-10-19T00:02:34
205,426,993
2
1
Apache-2.0
2021-10-18T21:03:50
2019-08-30T17:21:03
Python
UTF-8
Python
false
false
1,333
py
# Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ "tensorflow-extended-nonhuman@googlegroups.com" ]
tensorflow-extended-nonhuman@googlegroups.com
2adb5dfa09418d7c569c7c8a6bebcfa114e65261
4652840c8fa0d701aaca8de426bf64c340a5e831
/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py
3649c2d42293998faef2f42ce2b30daf3f057f7c
[ "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft" ]
permissive
remzert/BraveBrowser
de5ab71293832a5396fa3e35690ebd37e8bb3113
aef440e3d759cb825815ae12bd42f33d71227865
refs/heads/master
2022-11-07T03:06:32.579337
2017-02-28T23:02:29
2017-02-28T23:02:29
84,563,445
1
5
BSD-3-Clause
2022-10-26T06:28:58
2017-03-10T13:38:48
null
UTF-8
Python
false
false
20,758
py
# Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above # copyright notice, this list of con...
[ "serg.zhukovsky@gmail.com" ]
serg.zhukovsky@gmail.com
f180ab018656525fd2a3a2e6f419270586db4dd0
947e71b34d21f3c9f5c0a197d91a880f346afa6c
/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_alert_datanode_unmounted_data_dir.py
3bdec79c1f636e892ef6b9ed0a639903073d5fc8
[ "MIT", "Apache-2.0", "GPL-1.0-or-later", "GPL-2.0-or-later", "OFL-1.1", "MS-PL", "AFL-2.1", "GPL-2.0-only", "Python-2.0", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
liuwenru/Apache-Ambari-ZH
4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0
7879810067f1981209b658ceb675ac76e951b07b
refs/heads/master
2023-01-14T14:43:06.639598
2020-07-28T12:06:25
2020-07-28T12:06:25
223,551,095
38
44
Apache-2.0
2023-01-02T21:55:10
2019-11-23T07:43:49
Java
UTF-8
Python
false
false
10,468
py
#!/usr/bin/env python ''' 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")...
[ "ijarvis@sina.com" ]
ijarvis@sina.com
1dc0356232f83b9f82596add14362a858c4e3774
1678abd4c1efb74993745b55bf5a5536c2205417
/forum/migrations/0010_auto_20200414_2322.py
59d3916c979c2e05ef688ccf22bdbfbb16dbbdc9
[]
no_license
samosky123/Django-Forum
7b8868338d09d4a02b61717454adb2297cafc44e
c1ee3c9261479ebf8039c3a6fc9a3aba06d2c870
refs/heads/master
2023-07-29T09:45:19.810265
2020-11-13T16:05:42
2020-11-13T16:05:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
# Generated by Django 2.2 on 2020-04-14 17:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('forum', '0009_auto_20200414_2313'), ] operations = [ migrations.RenameField( model_name='answer', old_name='downvote', ...
[ "shout.mahmud@gmail.com" ]
shout.mahmud@gmail.com
682e6e9bf096cd8bc9cecd1f5476499372f6c040
61dcd9b485bc5e6d07c4adf14f138eabaa9a23b5
/Own practice/2.2-2.10/2.8.py
a4281af24752c551736fa11d1a5726365e91a315
[]
no_license
bong1915016/Introduction-to-Programming-Using-Python
d442d2252d13b731f6cd9c6356032e8b90aba9a1
f23e19963183aba83d96d9d8a9af5690771b62c2
refs/heads/master
2020-09-25T03:09:34.384693
2019-11-28T17:33:28
2019-11-28T17:33:28
225,904,132
1
0
null
2019-12-04T15:56:55
2019-12-04T15:56:54
null
UTF-8
Python
false
false
872
py
""" 程式設計練習題 2.2-2.10 2.8 計算能量. 請撰寫一程式,計算從起始溫度到最後溫度時熱水所需的能量。程式提示使用者數入多少公斤的水、起始溫度 及最後溫度。計算能量的公式如下: Q = M * (finalTemperature - initialTemperature) * 4184 此處的M逝水的公斤數,溫度是攝氏溫度,而Q是以焦耳(joules)來衡量的能量。 以下是範例輸出的樣本: ``` Enter the amount of water in kilograms: 55.5 Enter the initial temperature: 3.5 Enter the final Temperature...
[ "38396747+timmy61109@users.noreply.github.com" ]
38396747+timmy61109@users.noreply.github.com
722f6cccafabb3e43a45d23835ec7dc65f373228
f54e2067a0eb04540a925b4a22db1c341a964dac
/src/pyiem/nws/gini.py
4bdc3f0357741772a951ee1a8f5f6c92de1a3761
[ "MIT" ]
permissive
xoxo143/pyIEM
4b4000acadce17720ccbe4ecf9cd8c54e0775b8d
0dcf8ee65ac4b1acc11d7be61c62df815e3854f0
refs/heads/master
2023-01-24T11:17:32.450242
2020-12-02T04:06:09
2020-12-02T04:06:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,239
py
""" Processing of GINI formatted data found on NOAAPORT """ import struct import math import zlib from datetime import timezone, datetime import os import pyproj import numpy as np from pyiem.util import LOG DATADIR = os.sep.join([os.path.dirname(__file__), "../data"]) M_PI_2 = 1.57079632679489661923 M_PI = 3.1415926...
[ "akrherz@iastate.edu" ]
akrherz@iastate.edu
4b4722dc364c71697c33815091831aec2badb373
0115cfe0ca89264d3e25616943c3437d24ac0497
/pyx/finance/finance.py
56f41561431419e6dbb05819a4c64021703e836c
[]
no_license
shakfu/polylab
9024918681fe4807b4e5e2da4bba04453566bae1
9dce4d30120981e34bbbbc6f2caaff6e16a6cfbd
refs/heads/master
2023-08-18T05:41:01.786936
2023-07-30T22:36:52
2023-07-30T22:36:52
62,841,098
3
0
null
2022-04-21T22:25:43
2016-07-07T22:08:47
C
UTF-8
Python
false
false
4,309
py
#!/usr/bin/env python ''' A set of functions for quick financial analysis of an investment opportunity and a series of projected cashflows. For further details and pros/cons of each function please refer to the respective wikipedia page: payback_period http://en.wikipedia.org/wiki/Payback_period ...
[ "shakeeb.alireza@rezayat.net" ]
shakeeb.alireza@rezayat.net
ec63b954fd448cd482cec2bfb15b88afbea89cc4
c3ff891e0e23c5f9488508d30349259cc6b64b4d
/python练习/基础代码/Demo33.py
20ad574ee408810bd6658c854a8dd2e8ce4e4a44
[]
no_license
JacksonMike/python_exercise
2af2b8913ec8aded8a17a98aaa0fc9c6ccd7ba53
7698f8ce260439abb3cbdf478586fa1888791a61
refs/heads/master
2020-07-14T18:16:39.265372
2019-08-30T11:56:29
2019-08-30T11:56:29
205,370,953
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
infor = {"name":"Jim"} infor["age"] = 19#添加 infor["QQ"] = 10086 infor["QQ"] = 10085#修改 del infor["QQ"] #删除 print(infor.get("name"))#查询 a = {}
[ "2101706902@qq.com" ]
2101706902@qq.com
a2397630ed41926dd03f160daaf34fd7b95a8670
45ab4c22d918dc4390572f53c267cf60de0d68fb
/src/Analysis/Engine/Impl/Typeshed/third_party/2and3/werkzeug/_compat.pyi
74981331c7de5221f3fe7114e32b5f8d3c300296
[ "MIT", "Apache-2.0" ]
permissive
sourcegraph/python-language-server
580a24fd15fe9d4abeb95e9333d61db1c11a2670
64eae156f14aa14642afcac0e7edaf5d7c6d1a1c
refs/heads/master
2023-04-09T21:17:07.555979
2018-12-06T23:25:05
2018-12-06T23:25:05
155,174,256
2
2
Apache-2.0
2018-10-29T08:06:49
2018-10-29T08:06:49
null
UTF-8
Python
false
false
1,280
pyi
import sys from typing import Any if sys.version_info < (3,): import StringIO as BytesIO else: from io import StringIO as BytesIO PY2 = ... # type: Any WIN = ... # type: Any unichr = ... # type: Any text_type = ... # type: Any string_types = ... # type: Any integer_types = ... # type: Any iterkeys = ......
[ "alsher@microsoft.com" ]
alsher@microsoft.com
3baa5490caeaee6f4b3444ff8bdbe2023f78f045
8dcd3ee098b4f5b80879c37a62292f42f6b2ae17
/venv/Lib/site-packages/pandas/core/internals/blocks.py
8cd8524762a8f465d7b25de9b5374adb5fbcf3d3
[]
no_license
GregVargas1999/InfinityAreaInfo
53fdfefc11c4af8f5d2b8f511f7461d11a3f7533
2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a
refs/heads/master
2022-12-01T20:26:05.388878
2020-08-11T18:37:05
2020-08-11T18:37:05
286,821,452
0
0
null
null
null
null
UTF-8
Python
false
false
104,426
py
import functools import inspect import re import warnings from datetime import datetime, timedelta from typing import Any, List import numpy as np import pandas._libs.internals as libinternals import pandas.core.algorithms as algos import pandas.core.common as com import pandas.core.missing as missing from pandas._lib...
[ "44142880+GregVargas1999@users.noreply.github.com" ]
44142880+GregVargas1999@users.noreply.github.com
d911b045663d565be92524dcbdeb0dee537c4ee8
a72106acf426859b49be66ec7a1d209d8ffb59d1
/importer/indico_importer/converter.py
f8b138c0a1ca528382992688f5347a4d08c1ba43
[ "MIT" ]
permissive
indico/indico-plugins-attic
12502c891805e092b936c42a779fa9c667ee23d6
64a6bffe4dc7e30e2874dd4d6aac9908038910f1
refs/heads/master
2021-06-23T03:51:21.500524
2021-03-17T10:35:24
2021-03-17T10:35:24
201,440,329
1
0
null
null
null
null
UTF-8
Python
false
false
4,001
py
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2020 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from __future__ import unicode_literals APPEND = object() class RecordCon...
[ "adrian.moennich@cern.ch" ]
adrian.moennich@cern.ch
62a430d7658748dc827ca7a1a71a21975277174b
2e70b3ce93762c5b66fba57f8b9cba37aacf0702
/new/account/migrations/0005_auto_20190528_1610.py
184bec8ce2a97ea9516a3f76e5495f0cfbb17c49
[]
no_license
mahidul-islam/jamah
02be511fe119e8934ec7d5aa1eaa8e2b24fad246
c8ddf9a8094d33e8b1d6cb834eab3d9f18b1a9ea
refs/heads/master
2022-05-13T15:11:38.609550
2019-06-08T04:52:09
2019-06-08T04:52:09
184,331,276
2
0
null
2022-04-22T21:27:18
2019-04-30T21:04:06
Python
UTF-8
Python
false
false
541
py
# Generated by Django 2.2.1 on 2019-05-28 16:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('account', '0004_account_mother_account'), ] operations = [ migrations.AlterField( model_name='t...
[ "mizihan84@gmail.com" ]
mizihan84@gmail.com
1110f7e0dacac9ef0b6b69c736d03aa57d46b364
006341ca12525aa0979d6101600e78c4bd9532ab
/CMS/Zope-3.2.1/Dependencies/zope.component-Zope-3.2.1/zope.component/bbb/utility.py
f626f6c3e1a4329b351d849e1924758ce526722a
[ "ZPL-2.1", "Python-2.0", "ICU", "LicenseRef-scancode-public-domain", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0" ]
permissive
germanfriday/code-examples-sandbox
d0f29e20a3eed1f8430d06441ac2d33bac5e4253
4c538584703754c956ca66392fdcecf0a0ca2314
refs/heads/main
2023-05-30T22:21:57.918503
2021-06-15T15:06:47
2021-06-15T15:06:47
377,200,448
0
0
null
null
null
null
UTF-8
Python
false
false
2,507
py
############################################################################## # # Copyright (c) 2001, 2002 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # T...
[ "chris@thegermanfriday.com" ]
chris@thegermanfriday.com
244ecb3d7cda2b212c28968b72151583aa73ab22
7fb87945b77d3adaedd8a155c981e97946734e41
/packstack/plugins/amqp_002.py
bc822100bc810d982c6734ba0f87cfae7797e907
[ "Apache-2.0" ]
permissive
Tony910517/openstack
916b36368ea9f17958e4eb04bd1f9daf3aba9213
4c1380a03c37e7950dcf2bba794e75b7e4a8dfd0
refs/heads/master
2020-05-20T01:05:22.499224
2019-05-07T01:11:05
2019-05-07T01:11:05
185,292,662
0
0
null
null
null
null
UTF-8
Python
false
false
7,981
py
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
[ "471123674@qq.com" ]
471123674@qq.com
e71f0a615ae491bb9857459804dafdee895970ae
fd5bc0e8a3ac2b7ba793287084f725a8cd10b5ef
/tests/bench/loadrelated.py
9942ed0b1e2b9a0ae4d8a8c7c923e95f0e30e58e
[ "BSD-3-Clause" ]
permissive
moyaya/python-stdnet
404cb645b80c59b08ce4506480ce897c24032dcd
8d6c41ba1ddb8024e6bfab859f99bf96966d04cf
refs/heads/master
2021-01-24T01:00:18.203118
2012-01-13T18:23:20
2012-01-13T18:23:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
'''Benchmark load realted.''' from stdnet import test, transaction from stdnet.utils import populate, zip from examples.data import FinanceTest, Instrument, Fund, Position class LoadRelatedTest(FinanceTest): def setUp(self): self.data.makePositions() def testLoad(self): ...
[ "luca.sbardella@gmail.com" ]
luca.sbardella@gmail.com
a5ae930e8fe263663440b7fda29bd5a056e44d78
b589f3997e790c3760ab6ddce1dd1b7813cfab3a
/232.py
e2c5834920299064245bc4ccf2a5c4e5fe64f1ff
[]
no_license
higsyuhing/leetcode_easy
56ceb2aab31f7c11671d311552aaf633aadd14a8
48d516fdbb086d697e2593a9ce1dbe6f40c3c701
refs/heads/master
2022-12-04T00:49:33.894066
2022-11-15T20:44:36
2022-11-15T20:44:36
135,224,120
0
0
null
null
null
null
UTF-8
Python
false
false
2,159
py
class MyQueue(object): def __init__(self): """ Initialize your data structure here. """ self.stack1 = [] self.stack2 = [] self.slen = 0 self.curr = 1 # push stack, 2 for pop stack def push(self, x): """ Push element x to the back of queue...
[ "noreply@github.com" ]
higsyuhing.noreply@github.com
57cd82ee8cf61947cac176ab1e3935c3582c06d2
bc2a96e8b529b0c750f6bc1d0424300af9743904
/acapy_client/models/credential_definition_send_request.py
8d1879bd302faeaabbeac1ec17a5fbce0eddf4c4
[ "Apache-2.0" ]
permissive
TimoGlastra/acapy-client
d091fd67c97a57f2b3462353459780281de51281
d92ef607ba2ff1152ec15429f2edb20976991424
refs/heads/main
2023-06-29T22:45:07.541728
2021-08-03T15:54:48
2021-08-03T15:54:48
396,015,854
1
0
Apache-2.0
2021-08-14T13:22:28
2021-08-14T13:22:27
null
UTF-8
Python
false
false
2,441
py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="CredentialDefinitionSendRequest") @attr.s(auto_attribs=True) class CredentialDefinitionSendRequest: """ """ revocation_registry_size: Union[Unset, int] = UNSET schema_id: Union...
[ "dbluhm@pm.me" ]
dbluhm@pm.me
0bf464fb6204343b71d383b81c94bf835f6e6d58
58c34c597e825634fb5833b22e178df4fe570d39
/lib/adapter/cheat_cheat.py
9844008c6be19c9654ed8c373292de2a9e5132c6
[ "MIT", "CC-BY-SA-3.0" ]
permissive
sullivant/cheat.sh
2eb731eb1d7c6b03d65b2dd5f9b6a325b167c005
e2e69b61a361751a145b977ca2f58ae4a50d756e
refs/heads/master
2020-05-30T09:36:58.834850
2019-05-31T19:47:53
2019-05-31T19:47:53
189,649,817
1
0
MIT
2019-05-31T19:45:23
2019-05-31T19:45:22
null
UTF-8
Python
false
false
549
py
""" Adapter for https://github.com/cheat/cheat Cheatsheets are located in `cheat/cheatsheets/` Each cheat sheet is a separate file without extension """ # pylint: disable=relative-import,abstract-method from .git_adapter import GitRepositoryAdapter class Cheat(GitRepositoryAdapter): """ cheat/cheat adapter ...
[ "igor@chub.in" ]
igor@chub.in
ade0b23d401c7a201eec94e034a7bb38e413996e
9abc2f4fbf1b31b5a56507437b4a8d9c3f3db7e6
/users/urls.py
98678c65848e0cd95f42b0434063e6edf15da19f
[]
no_license
odbalogun/ticketr
e9fe8461d66dabe395f0e1af8fbecc67dbb16e97
94f24c82f407f861f1614a151feb3fdd62b283e5
refs/heads/master
2022-11-30T22:40:30.931160
2019-08-09T14:34:38
2019-08-09T14:34:38
188,833,600
0
0
null
2022-11-22T03:50:30
2019-05-27T11:50:07
Python
UTF-8
Python
false
false
595
py
from django.urls import path # from .views import CustomLoginView, UserCreateView, UserListView, CustomLogoutView from .views import CustomLoginView, CustomLogoutView, ProfileView from django.contrib.auth.decorators import login_required app_name = 'users' urlpatterns = [ # path('', UserListView.as_view(), name='...
[ "oduntan@live.com" ]
oduntan@live.com
27282a88578e3530b456399cac4b11018cde5044
a8e2c66b3ebadfc17ee9aee197b3f466534cee16
/ytn11/wh/wh/items.py
0c48330df2942d96bbb37a839696a43850e30629
[]
no_license
yintiannong/98kar
49b6db186a4543a7c50671df990bb491846c1a98
3863529f57e9d2d9bc1bdf8188916e25ad289db0
refs/heads/master
2022-01-07T05:49:31.566453
2019-05-22T07:04:45
2019-05-22T07:04:45
187,794,966
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class WhItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() company = scrapy.Field() company_id = s...
[ "1532295578@qq.com" ]
1532295578@qq.com
e8ae67da9e630730ae1df9ffca7fa2d4296f1d26
24dac117231c9ca39e09e1fd27db8de295a7fe45
/Trident/settings.py
2c943c27e79ee0020f4fe655aed1df9d616f3972
[]
no_license
rohitrajput-42/Trident
784f23b9fa02d405d55715ded627c274a1c887f2
0d75ef954c5d6f88d3b4937e90ab9aace120bdb9
refs/heads/main
2023-06-13T06:10:19.172276
2021-07-10T16:25:22
2021-07-10T16:25:22
384,705,434
0
0
null
null
null
null
UTF-8
Python
false
false
3,092
py
import os from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the se...
[ "rohit1471997@gmail.com" ]
rohit1471997@gmail.com
311b64e499752b8f19be4d85c59a5b14455ada39
a1a57977131ea917a3f3094dae4a3d18846103c0
/unittests/pytests/problems/TestTimeStepUser.py
c53c39a3337525c4aa9aa5702ae8367062012113
[ "MIT" ]
permissive
rwalkerlewis/pylith
cef02d5543e99a3e778a1c530967e6b5f1d5dcba
8d0170324d3fcdc5e6c4281759c680faa5dd8d38
refs/heads/master
2023-08-24T18:27:30.877550
2020-08-05T16:37:28
2020-08-05T16:37:28
154,047,591
0
0
MIT
2018-10-21T20:05:59
2018-10-21T20:05:59
null
UTF-8
Python
false
false
4,095
py
#!/usr/bin/env python # # ====================================================================== # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University of Chicago # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://ge...
[ "baagaard@usgs.gov" ]
baagaard@usgs.gov
05aa5d78f1a77c1849dde9dff4856a79eddc89a7
c1c87cd334972c01935dbb72769064e5d0066ac8
/pickpack/robots/scratchpad.py
2d469bd1d6d84f59c8bd0ec2db7949dd53ec5962
[]
no_license
defgsus/pypickpack
576e9471c9cc7cce60c1010d51b4ea85ec00ecfc
8a604ec1502c615bf24d77f09d564962c3d04930
refs/heads/master
2022-12-28T13:17:18.306748
2020-10-09T00:50:41
2020-10-09T00:50:41
269,505,707
0
0
null
null
null
null
UTF-8
Python
false
false
5,253
py
import random from .base import RobotBase from .._2d import direction_int from ..astar import astar_search from ..log import log from ..static_map import StaticMap from ..items import Article, PickOrder class RandomRobot(RobotBase): def __init__(self, id): super().__init__(id) def process(self, wor...
[ "s.berke@netzkolchose.de" ]
s.berke@netzkolchose.de
b0ebf56863454ffb4571867555552aad6d06569d
6527b66fd08d9e7f833973adf421faccd8b765f5
/yuancloud/addons/hw_proxy/controllers/main.py
1a934348be4f3f21a928d20583d78d39b10c4c17
[]
no_license
cash2one/yuancloud
9a41933514e57167afb70cb5daba7f352673fb4d
5a4fd72991c846d5cb7c5082f6bdfef5b2bca572
refs/heads/master
2021-06-19T22:11:08.260079
2017-06-29T06:26:15
2017-06-29T06:26:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,759
py
# -*- coding: utf-8 -*- import logging import commands import json import os import os.path import yuancloud import time import random import subprocess import json import werkzeug import werkzeug.wrappers _logger = logging.getLogger(__name__) from yuancloud import http from yuancloud.http import request # Those are...
[ "liuganghao@lztogether.com" ]
liuganghao@lztogether.com
f7b3b2faa86e0a9a1ac895411d5a0ba761b172ea
9907134b0da8e5391c51b00c426c648eece7b4b9
/Unidad 2/pfijo.py
a7a60477a2df6797926949881bacf7f7f695a593
[]
no_license
hectorrdz98/metodos-numericos
1fd21593c8c324f0e0e643cc08a8d930ea2e8cf3
dab8e9425f454be60a74d30c985a643bcb915ce6
refs/heads/master
2022-01-22T07:26:48.566615
2019-05-29T12:26:43
2019-05-29T12:26:43
167,975,465
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
import math p0 = 3.8 n = 3 tol = 0.0001 def g(p): return -4 + (4*p) - (0.5 * p * p) flag = False for i in range(n): p = g(p0) print('\nVamos en {}, con g(p0)={} y p0={}'.format(i+1,g(p0),p0)) print('El abs={}'.format(math.fabs(p-p0))) if math.fabs(p-p0) <= tol: print('\nEl valor de p0={}...
[ "=" ]
=
32fe115b47214dd5d925bc1419747dfcf52e0871
150d9e4cee92be00251625b7f9ff231cc8306e9f
/NextGreaterElement.py
eba1f8d0ae08308ff8e272cffeec6304822d027f
[]
no_license
JerinPaulS/Python-Programs
0d3724ce277794be597104d9e8f8becb67282cb0
d0778178d89d39a93ddb9b95ca18706554eb7655
refs/heads/master
2022-05-12T02:18:12.599648
2022-04-20T18:02:15
2022-04-20T18:02:15
216,547,245
0
0
null
null
null
null
UTF-8
Python
false
false
4,114
py
''' 496. Next Greater Element I The next greater element of some element x in an array is the first greater element that is to the right of x in the same array. You are given two distinct 0-indexed integer arrays nums1 and nums2, where nums1 is a subset of nums2. For each 0 <= i < nums1.length, find the index j such ...
[ "jerinsprograms@gmail.com" ]
jerinsprograms@gmail.com
7274d5d6acd06026bb0e3945cca73daf74e06bf3
4e163aa4aa0f4c4ddc22f74ae21b6fb1c85a7a09
/134.加油站.py
2f5d07a462e88ceb77dbdc591efd179e9402385b
[]
no_license
dxc19951001/Everyday_LeetCode
72f46a0ec2fc651168129720ad0b1e7b5c372b0b
3f7b2ea959308eb80f4c65be35aaeed666570f80
refs/heads/master
2023-08-03T09:22:08.467100
2023-07-23T17:08:27
2023-07-23T17:08:27
270,723,436
1
0
null
null
null
null
UTF-8
Python
false
false
1,093
py
# coding=utf-8 """ @project: Everyday_LeetCode @Author:Charles @file: 134.加油站.py @date:2023/1/10 15:35 """ class Solution(object): def canCompleteCircuit(self, gas, cost): """ :type gas: List[int] :type cost: List[int] :rtype: int """ # 贪心算法 ...
[ "870200615@qq.com" ]
870200615@qq.com
e1dcd2a11d7423ba518efc1697c3a148293ffa2a
5456502f97627278cbd6e16d002d50f1de3da7bb
/components/google/core/browser/DEPS
26e9743a04d2db628f4a7357a7d73e4ad5cf843a
[ "BSD-3-Clause" ]
permissive
TrellixVulnTeam/Chromium_7C66
72d108a413909eb3bd36c73a6c2f98de1573b6e5
c8649ab2a0f5a747369ed50351209a42f59672ee
refs/heads/master
2023-03-16T12:51:40.231959
2017-12-20T10:38:26
2017-12-20T10:38:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
135
include_rules = [ "+components/data_use_measurement/core", "+components/keyed_service/core", "+components/pref_registry", ]
[ "lixiaodonglove7@aliyun.com" ]
lixiaodonglove7@aliyun.com
bfe6d113c6248860931cd8d1870126fdd8a59693
2194b6c17f3153c5976d6ac4a9ab78211027adab
/otoroshi_admin_api_client/models/otoroshimodels_rs_algo_settings.py
d3bb0d40170f95f52921aa7d6749dcfb1d4114f7
[]
no_license
krezreb/otoroshi-admin-api-client
7fab5e873c9c5950d77fffce6bcf80d3fdf4c319
9b3156c11eac227024cfe4a26c0129618deb2c4d
refs/heads/master
2023-05-08T08:32:00.982987
2021-05-27T09:55:00
2021-05-27T09:55:00
371,324,636
0
0
null
null
null
null
UTF-8
Python
false
false
3,732
py
from typing import Any, Dict, List, Type, TypeVar, Union, cast import attr from ..models.null import Null from ..models.otoroshimodels_rs_algo_settings_type import OtoroshimodelsRSAlgoSettingsType from ..types import UNSET, Unset T = TypeVar("T", bound="OtoroshimodelsRSAlgoSettings") @attr.s(auto_attribs=True) cla...
[ "josephbeeson@gmail.com" ]
josephbeeson@gmail.com
f38e52cda7f5a3f771a65f7eeb92d6375981bb4a
f25440c9f9fd470ba44394a36d5659dd47ee8800
/tests/conftest.py
6ee0b688b6b226162706d75c8e1acd7eadcb3541
[]
no_license
kqf/hubmap
75010d9109f8b8656e244179de5de226be584d5b
37b3d839f0ad3f47dc39c1b9b036cb1acc27ca2c
refs/heads/master
2023-02-20T04:06:00.145932
2021-01-23T07:56:13
2021-01-23T07:56:13
317,635,257
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
import pytest import tempfile from pathlib import Path from models.preprocess import write from models.mc import make_blob, blob2image @pytest.fixture def size(): return 256 @pytest.fixture def fake_dataset(size=256, nfiles=5): with tempfile.TemporaryDirectory() as dirname: path = Path(dirname) ...
[ "noreply@github.com" ]
kqf.noreply@github.com
5fd5f69280f7e2c8dfa60b2c1d5a770471cc61ab
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2520/60790/274856.py
18e4e0a2884251d28a2c4c3bc79d6f4d2f5ba4c8
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
168
py
R=int(input()) C=int(input()) r0=int(input()) c0=int(input()) print(sorted([[i, j] for i in range(R) for j in range(C)], key=lambda x: abs(x[0] - r0) + abs(x[1] - c0)))
[ "1069583789@qq.com" ]
1069583789@qq.com
b903d4dafdaad69917379130429923b552115ff8
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-workbench-ide/aliyunsdkworkbench_ide/request/v20210121/AddEnvironmentRequest.py
0d20b6717b9971baad3c4aba3f7c1bdd0b316b36
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
2,700
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
e79dca9531ee613ea930b7be4c7871b1eac88c18
d608c2b9fbfcd142fa82875f01f70e1db95cecef
/FlaskAppVenv/Lib/site-packages/pymysql/tests/test_connection.py
c626a0d39468fc0249dbdd719881a28872564b48
[ "MIT" ]
permissive
nidheekamble/SponsCentral
9b30918006b98f242de86920a550f8e072ba093f
b8189993cb87cc2d83e36c9d72df7a3b7d620bd7
refs/heads/master
2022-12-21T11:14:36.565494
2021-01-31T16:15:33
2021-01-31T16:15:33
135,418,522
1
2
MIT
2022-12-08T07:57:59
2018-05-30T09:16:30
Python
UTF-8
Python
false
false
24,709
py
import datetime import sys import time import unittest2 import pymysql from pymysql.tests import base from pymysql._compat import text_type from pymysql.constants import CLIENT class TempUser: def __init__(self, c, user, db, auth=None, authdata=None, password=None): self._c = c self._user = user ...
[ "shreyansh.chheda@gmail.com" ]
shreyansh.chheda@gmail.com
62c20ca9fb15d381b187ac793e03b1b5242e6d37
495b0b8de3ecc341511cdb10f11368b35b585bea
/SoftLayer/CLI/modules/filters.py
1e4274ac04ae064468c5d1d0736b540b8f35416c
[]
no_license
hugomatic/softlayer-api-python-client
cf6c1e6bfa32e559e72f8b0b069339ae8edd2ede
9c115f0912ee62763b805941593f6dd50de37068
refs/heads/master
2021-01-18T11:09:19.122162
2013-04-09T01:44:51
2013-04-09T01:44:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
996
py
""" usage: sl help filters Filters are used to limit the amount of results. Some commands will accept a filter operation for certain fields. Filters can be applied across multiple fields in most cases. Available Operations: Case Insensitive 'value' Exact value match 'value*' Begins with value '*value...
[ "k3vinmcdonald@gmail.com" ]
k3vinmcdonald@gmail.com
af585888517df64c46a62653fa6ff3912e6b9f0d
508c5e01aa7dce530093d5796250eff8d74ba06c
/code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/schemas/tests/test_schema_get.py
d39692be0008269bf1791e585f1e0e92b09181fa
[ "MIT", "PostgreSQL" ]
permissive
jhkuang11/UniTrade
f220b0d84db06ff17626b3daa18d4cb8b72a5d3f
5f68b853926e167936b58c8543b8f95ebd6f5211
refs/heads/master
2022-12-12T15:58:30.013516
2019-02-01T21:07:15
2019-02-01T21:07:15
166,479,655
0
0
MIT
2022-12-07T03:59:47
2019-01-18T22:19:45
Python
UTF-8
Python
false
false
2,132
py
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2017, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## from pgadmin.brow...
[ "jhkuang11@gmail.com" ]
jhkuang11@gmail.com
11aa915574de5fc4f11f5c7671205cfbaa964fe2
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/copp/lacpallowhist5min.py
2d5afaedb106d24fcc43463d8548e0ce36b681e4
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
31,598
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "bkhoward@live.com" ]
bkhoward@live.com
6c16d977d5da188d8203250fd478cfac76c891cc
85c9d6fdff58b9cb40f5fdb9f01ff1a0dd386113
/bot_tests/reminder.py
ef7aa772e1bbf39b40113c0d3d7e94d3036748d1
[]
no_license
jmccormac01/karmafleet
5874644c496b0bbcb2037404ad7ed43a1e4caaae
57ebefbbc6ec3aae634cd9196950f103d48eae95
refs/heads/master
2020-03-25T17:24:39.187176
2019-04-20T18:17:05
2019-04-20T18:17:05
143,976,406
0
0
null
null
null
null
UTF-8
Python
false
false
1,922
py
""" Bot for converting EVE times to local timezones """ from datetime import datetime from pytz import timezone import discord from discord.ext import commands import asyncio # pylint: disable=invalid-name Client = discord.Client() client = commands.Bot(command_prefix="!") reminders = {} async def reminder_handler(r...
[ "jmccormac001@gmail.com" ]
jmccormac001@gmail.com
98239088c3b4a53c50df2bc9f8bf239942107bf9
a36d54fb56bc2898089d6ad407bc2039a55271d4
/zdevicemanager/base/tools.py
8385f630bed268e1b477abec92e22fe0662faa58
[]
no_license
zerynth/core-zerynth-toolchain
443e5180d87b3b783c2b3ec69f24918761715b63
d27b0d6ee47b9c4f320f518705074f1032fedf8a
refs/heads/master
2021-07-25T00:28:00.192322
2021-05-17T14:53:20
2021-05-17T14:53:20
122,219,458
0
1
null
null
null
null
UTF-8
Python
false
false
11,153
py
from .base import * from .fs import * from .cfg import * from .pygtrie import * __all__ = ["tools"] class Tools(): def __init__(self): self.tools = {} self.installed = {} def init(self): #register platform tools if env.is_windows(): self.tools["stty"]="mode" ...
[ "dev@zerynth.com" ]
dev@zerynth.com
41dfb043debbb31d564d9bdcdda0dd997a4a98a5
dca5705c291da76cbfaf3897680eb0ae2eb56e2b
/aayushg_assgn/myauth/views.py
face35c4566395dead6248d30c8430cf8b2fedf8
[]
no_license
gadia-aayush/Django-API-1
41a40598653009def8ca5bda9a578a26b8bf9115
307202ad0aa4357408e756cd74f3723e74fca253
refs/heads/master
2022-12-13T23:09:45.960562
2020-08-30T19:36:16
2020-08-30T19:36:16
273,763,155
0
0
null
null
null
null
UTF-8
Python
false
false
5,723
py
from django.shortcuts import render from django.contrib.auth.models import User from django.shortcuts import redirect from django.contrib.auth import authenticate, login, logout from django.http import JsonResponse from rest_framework.response import Response from rest_framework.views import APIView from rest_framework...
[ "gadia.aayush@gmail.com" ]
gadia.aayush@gmail.com
ab04985a81690a29fc99f93e08d4a4ec4e364ad5
847273de4b1d814fab8b19dc651c651c2d342ede
/.history/Sudoku_II_004_20180618143456.py
c999da2e6ae97112548cc81b5e4e3de4c117dc62
[]
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
3,415
py
from random import randint # Sudoku1 almost solved sudoku1 = [ [5, 9, 8, 6, 1, 2, 3, 4, 7], [2, 1, 7, 9, 3, 4, 8, 6, 5], [6, 4, 3, 5, 8, 7, 1, 2, 9], [1, 6, 5, 4, 9, 8, 2, 7, 3], [3, 2, 9, 7, 6, 5, 4, 1, 8], [7, 8, 4, 3, 2, 1, 5, 9, 6], [8, 3, 1, 2, 7, 6, 9, 5, 4], [4, 7, 2, 8, 5, 9, 6,...
[ "inz.kamil.wos@gmail.com" ]
inz.kamil.wos@gmail.com
c75ea51b954cef8081502d553948e07b0487abe9
bf813d2b877fb8ba62feb4263484db3d0f26d5cd
/early-phd/map_to_flux.py
1c2d0eab20e2c6fa5e1fe3228a8f9507a9b7ba48
[]
no_license
9217392354A/astro-scripts
1e8e8c827097a877518d1f3e10870a5c2609417c
cd7a175bd504b4e291020b551db3077b067bc632
refs/heads/master
2021-01-13T00:40:57.481755
2016-03-25T17:04:28
2016-03-25T17:04:28
54,730,096
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
#Program created by Chris Fuller to test a function for extracting flux's from a fits file using appature photomotry #import stuff from numpy import * import numpy import scipy import math import sys import os from os.path import join as pj #File stuff cat = "bigcoma.csv" catfolder = "/Users/chrisfuller/Dropbox/coma...
[ "chrisfuller@Chriss-MBP.lan" ]
chrisfuller@Chriss-MBP.lan
8d8b46573115c470483434c30bc2fd15efceb159
73785aea08895d0fc15e914ce329716712f057ec
/recipes/errorAnal.py
9208c6a48ac906004212b9520360e38dbc9b8806
[]
no_license
Peder2911/ModelComp
5e93e6db7fbc809e7444448729a91ff7a762b0cc
91ee3835ddc560adeb4af457953905aaeca79cd6
refs/heads/master
2020-05-20T05:09:01.877547
2019-05-18T13:37:34
2019-05-18T13:37:34
185,397,609
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
ppSentences(sentences,y,x): for i,s in enumerate(errorSents): print('#'*38) print(f'{s} - pred: {prediction[err][i]} | actual: {actual[err][i]}') print('\n')
[ "pglandsverk@gmail.com" ]
pglandsverk@gmail.com
99cd43a8c940db281d4db4d33d06b1cee795bc61
c5291e50a3c72c885922378573a0ad423fcedf05
/analysis/data/urls.py
e7638f31b2b04491d30e6f29d5a4d9826f2a05c3
[]
no_license
raghurammanyam/django-projects
bcc3ed6285882af437a2995514cef33760fb063e
dd20ae354f7f111a0176a1cc047c099bd23e9f05
refs/heads/master
2022-12-12T19:22:31.698114
2018-12-09T09:41:45
2018-12-09T09:41:45
137,443,359
0
0
null
2022-11-22T03:01:07
2018-06-15T05:08:15
Python
UTF-8
Python
false
false
196
py
from django.conf.urls import url from django.urls import path from .views import test,get from django.http import HttpResponse urlpatterns = [ url(r'^date/',test), url(r'^get/',get) ]
[ "manyamraghuram@gmail.com" ]
manyamraghuram@gmail.com
f231f73dec833a474cefcee2707d8742f92f9d51
125bc51efb95f383257e7bdb50ae74e5dc05b7f7
/src/belajarIntegerString.py
f28765c84ddfefc5911c0710cd851199053fcd21
[]
no_license
frestea09/learn_ch1_python
f9688fffda5f0fa312b82bd25081b986fa0779e9
510ea59bf85ec024ebc473db2533e92becaefbf3
refs/heads/master
2020-05-26T18:22:31.171688
2019-05-26T05:42:08
2019-05-26T05:42:08
188,334,119
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
from __future__ import print_function def main(): variabelNama = input('nama : ') variabelInteger = int(input('Umur')) print('Nama anda %s dan umur anda %d'%(variabelNama,variabelInteger)) if __name__ == "__main__": main()
[ "ilmanfrasetya@gmail.com" ]
ilmanfrasetya@gmail.com
a6d6d50572836ba4614154dce36cf5e2c21f9c51
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02679/s613915096.py
fec86a56bc93ae2efcf62264eb570f7a448a4ed4
[]
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
667
py
import math, collections N = int(input()) AB = [[int(_) for _ in input().split()] for _ in range(N)] mod = 10**9 + 7 C = collections.Counter() gcd = math.gcd a0 = 0 for a, b in AB: if a == b == 0: a0 += 1 elif a == 0: C[0, -1] += 1 else: g = gcd(a, b) a //= g b //= g ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8951afe2b51d654fd469ed7fd936879e3610aa30
35894bca47cf0c9a51a05caf7b56a0d69c05b033
/04_subrotinas_numpy/25_fibonacci.py
1067f8b8abc1c15bc44a985e9b4f892471d34f46
[]
no_license
alcebytes/Phyton-Estudo
0a2d33f5f3e668e6ab2f99e5e4499545a3bc1273
a3f9a0b3e0a91d71a9359480d6ec17e692572694
refs/heads/master
2023-01-14T17:24:16.486956
2020-10-08T02:02:02
2020-10-08T02:02:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
942
py
import time as time num_iter = int(input("Digitar o valor do número máximo para a sequência de Fibonacci = ")) tempo_inicio = time.time() #tempo_inicio_CPU = time.clock() #ABSOLETO tempo_inicio_CPU = time.process_time() tempo_inicio_CPU_2 = time.perf_counter() # f(0) f = [] f.append(0) print(f) # f(1) f.append(1)...
[ "x_kata@hotmail.com" ]
x_kata@hotmail.com
9a0f0433298aaf2b0b0aa33f5a64b0273f639e93
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
/eXe/rev2669-2722/left-trunk-2722/twisted/internet/iocpreactor/udp.py
3bf7a5bba392de8252482bdf0e1ba0600cfe27fa
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
joliebig/featurehouse_fstmerge_examples
af1b963537839d13e834f829cf51f8ad5e6ffe76
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
refs/heads/master
2016-09-05T10:24:50.974902
2013-03-28T16:28:47
2013-03-28T16:28:47
9,080,611
3
2
null
null
null
null
UTF-8
Python
false
false
6,644
py
import socket from twisted.internet import interfaces, defer, error, protocol, address from twisted.internet.abstract import isIPAddress from twisted.persisted import styles from twisted.python import log, failure, reflect from ops import ReadFileOp, WriteFileOp, WSARecvFromOp, WSASendToOp from util import StateEventMa...
[ "joliebig@fim.uni-passau.de" ]
joliebig@fim.uni-passau.de
1d539066706ca4f69d3130d49688deb922c477b3
98311c7b2b2257f14f0f4a0657363e893872798e
/project/src/python/practicum.py
e3f1dfcf9ef76f4b71a4dd1106d26832dc48802f
[ "MIT" ]
permissive
aslupin/Yak-Ngaen-Project
fed9a264a863e1174c00ec8ad360f1c03422f393
c91b3cc83d2eda22b62fe877276bdd1a8a1b24fd
refs/heads/master
2022-01-28T02:44:39.385903
2019-05-09T13:36:04
2019-05-09T13:36:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,616
py
import usb # RQ_SET_LED = 0 # RQ_SET_LED_VALUE = 1 # RQ_GET_SWITCH = 2 # RQ_GET_LIGHT = 3 RQ_GET_SOUND_PLAYER_I = 1 RQ_GET_SOUND_PLAYER_II = 2 #################################### def find_mcu_boards(): ''' Find all Practicum MCU boards attached to the machine, then return a list of USB device handles for a...
[ "poon_arsene_lupin@hotmail.com" ]
poon_arsene_lupin@hotmail.com
5dcf1531f3266b5a1c867bd6a62ba36a36b2bbc2
7b08ceb8c901a09e41d4a67804e2adf94142cb17
/description2process/__init__.py
2f99a8019b7c0dace78658a646cc5d28bfb7d318
[]
no_license
simrit1/Description2Process
1e7cfcc4dc6bb762d69f27bbe1eedd4e0cef6a38
223372f3588f7ac67537eae3012667951b5543e0
refs/heads/master
2023-08-25T23:12:50.838804
2019-05-16T16:51:51
2019-05-16T16:51:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,370
py
import tensorflow as tf # We need to enable eager execution for inference at the end of this notebook. tfe = tf.contrib.eager tfe.enable_eager_execution() TFVERSION='1.13' import os os.environ['TFVERSION'] = TFVERSION # Import library from description2process import data_generation from description2process import c...
[ "noreply@github.com" ]
simrit1.noreply@github.com
d008e616c943f18e5f7f5c090bc112e713db99cf
c4b7b5a9c56a9b6394a14704d2faf76754175473
/rooms/templatetags/is_booked.py
da615b5d82465d9cb146e16beb8eeaefaf53bbc4
[]
no_license
seungjinhan/airbnb_clone_django
71a15e5242bad28fd96d5f47652a049a77f12f61
4c38780746409ea1ed9b4f5b02abca60326752c2
refs/heads/master
2022-12-02T15:14:39.341441
2020-08-23T13:50:42
2020-08-23T13:50:42
280,878,495
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
import datetime from django import template from reservations import models as reservation_model register = template.Library() @register.simple_tag def is_booked(room, day): if day.number == 0: return False try: date = datetime.datetime( year=day.year, month=day.month, day=day.numb...
[ "hanblues@gmail.com" ]
hanblues@gmail.com
e5f7852757d20d9217562defb3d22da0c1893cb6
5e809acc62b080f1adad2c34e647241cdc5ad297
/myenv/bin/markdown_py
fa2c63491a1647ccda5e1725538898c521cfc6a8
[ "MIT" ]
permissive
RootenberG/My-blog-project
f520af79a2f3eb416b3dadee46813a812ce9d53d
7ef4670cfa9d54d9345d52ca008aae5fed5605bc
refs/heads/master
2020-08-15T20:04:29.478049
2020-02-08T21:57:46
2020-02-08T21:57:46
215,400,930
0
0
MIT
2019-10-30T20:54:38
2019-10-15T21:34:30
Python
UTF-8
Python
false
false
255
#!/home/den/devspace/My-blog-project/myenv/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from markdown.__main__ import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "savichevdenis244@gmail.com" ]
savichevdenis244@gmail.com
98ae73f5af580dce3fc708af8516af5e1c67bbf3
50e03dae243af6bfab19f8cf42494284ff70fbd3
/BIG-BIRD/RelGAN.py
05e0634536e46c4d7140e7c904e0f5d7773baeb5
[]
no_license
BritneyMuller/Summarization-Lab
bf2d79abe724e999e4017d4ffe6220863fe7f162
4b40f5ac7a629f509c323bf426d3058268628186
refs/heads/master
2021-01-25T23:13:13.669487
2019-09-30T14:38:13
2019-09-30T14:38:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,010
py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import math, copy, time from torch.autograd import Variable import matplotlib.pyplot as plt import os import torch.autograd as autograd from RelationalMemory import * from Transformer import * class BigBird(): #generator is tran...
[ "you@example.com" ]
you@example.com
cb87f2390f4328b284144e4fa1564341cb8bdcf7
c27c51f5c33e0431dbe7db6e18c21b249d476cfa
/OpenSource_Python_Code/nova-2013.2/nova/tests/api/ec2/test_faults.py
36cee0663bf4ff4b4c640f0b081a869d016d26a6
[ "Apache-2.0" ]
permissive
bopopescu/Python_Stuff
9bef74e0db17bb5e3ba2d908ced01ee744820d80
9aa94a0fa5e4e802090c7b29ec88b840e304d9e5
refs/heads/master
2022-11-20T06:54:36.581623
2017-12-04T18:56:02
2017-12-04T18:56:02
282,171,169
0
0
null
2020-07-24T08:54:37
2020-07-24T08:54:36
null
UTF-8
Python
false
false
1,914
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # 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 applicabl...
[ "thelma1944@gmail.com" ]
thelma1944@gmail.com
8de31727528745859574b0a71d4d7f4265c46740
2718b6f68a717b24cd6238a20d4116b3dea3201b
/BlogTemplate/mysite_env/mysite/apps/blog/views.py
39b584eea388bcf248d6a6d595bae4840b4bf60b
[]
no_license
tminlun/BlogTemplate
e94654e01e170f27c97c197c898c102518ad13ab
d475587fdd9e111961bbfa56666255d38cfdc056
refs/heads/master
2022-12-11T00:51:53.019391
2018-12-05T14:54:04
2018-12-05T14:54:04
138,825,320
0
0
null
2022-12-08T02:25:29
2018-06-27T03:30:20
Python
UTF-8
Python
false
false
4,519
py
from django.shortcuts import render,get_object_or_404 from django.core.paginator import Paginator from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.db.models.aggregates import Count from read_statistics.utils import read_statistics_once_read from comment.models impo...
[ "1272443075@qq.com" ]
1272443075@qq.com
4da9c1e6ca004b93d1f275e2bd86ea3be8e69b31
52bb1d25a8c146b81b876343f861025e034fa964
/roglick/dungeon/utils.py
fcf6a2a864c5ae7cc6c50f2c302b33b63529bf23
[ "MIT" ]
permissive
Kromey/roglick
b3fc7a6bce7e60a150c9a9ed1cc825ef3988cf8a
b76202af71df0c30be0bd5f06a3428c990476e0e
refs/heads/master
2020-12-14T15:49:53.163385
2016-05-24T16:29:06
2016-05-24T16:29:06
21,549,421
6
0
null
null
null
null
UTF-8
Python
false
false
2,519
py
from roglick.engine import random from roglick.utils import clamp def smoothstep(a, b, x): """Basic S-curve interpolation function. Based on reference implementation available at https://en.wikipedia.org/wiki/Smoothstep """ x = clamp((x - a)/(b - a), 0.0, 1.0) return x*x*(3 - 2*x) def smooth...
[ "travisvz@gmail.com" ]
travisvz@gmail.com
113b1426d9036aee80c7202882206d1f33646a46
fa1e90dedb7f9b84cd210420215ff6a9bf7e6f2d
/airmozilla/suggest/forms.py
605254a63fff168bd1e667a2ed8a5f5f55e9866b
[]
no_license
sara-mansouri/airmozilla
f7bdf6aeafa9a7a299fc69c506e186ba47be7ccb
8f93162be46044798df1e6d0ce80c8407fc41995
refs/heads/master
2021-01-16T18:28:35.569244
2014-03-28T02:59:31
2014-03-28T02:59:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,080
py
from django import forms from django.conf import settings from django.template.defaultfilters import filesizeformat from django.utils.timesince import timesince from django.utils.safestring import mark_safe from django.db.models import Q from slugify import slugify import requests from funfactory.urlresolvers import r...
[ "mail@peterbe.com" ]
mail@peterbe.com
c2a6d24f20bb1c2478b4feea8182623aca53bac4
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_14413.py
5e67c83692878ae8becbb59fe8019e05781959d1
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
# changing type of a entry in dictionary throws error d = {'today': datetime.today()} d['today'] = d['today'].strftime(&lt;your format&gt;)
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
eeb85c0763b4b58838c030ceccd1de9ec42a82e6
5cea11c9373d997430b523227ce81b61972ad1e3
/tests/test_client_events.py
bd3bc8ac4bf3a96cd62673408ee09427626646ff
[ "BSD-3-Clause" ]
permissive
tinylambda/grpclib
fcc0d4f5723fe36359ceb9655764e9a37c87ebc1
948e32a29a4ad82ebbfdbb681f7a797f6233bff3
refs/heads/master
2023-07-15T16:19:59.776603
2021-08-25T19:56:10
2021-08-25T19:56:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,234
py
import pytest from multidict import MultiDict from google.rpc.error_details_pb2 import ResourceInfo from grpclib.const import Status from grpclib.events import listen, SendRequest, SendMessage, RecvMessage from grpclib.events import RecvInitialMetadata, RecvTrailingMetadata from grpclib.testing import ChannelFor from...
[ "vladimir@magamedov.com" ]
vladimir@magamedov.com
31dd5fd0705bfebccf299f10eb6ba594038b885d
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/5ejvPTQeiioTTA9xZ_0.py
9b5d0b04aa8e5dca2af5037100305f74b9f4c108
[]
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
395
py
""" Create a function that checks if the argument is an integer or a string. Return `"int"` if it's an integer and `"str"` if it's a string. ### Examples int_or_string(8) ➞ "int" int_or_string("Hello") ➞ "str" int_or_string(9843532) ➞ "int" ### Notes Input will either be an integer or a str...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
7b288b67b9fa3473f2fb3c72085b6de7ea893109
6cecdc007a3aafe0c0d0160053811a1197aca519
/apps/receiver/management/commands/generate_submissions.py
ae672ba20a318c1fc46d7ecce22a17363b20c062
[]
no_license
commtrack/temp-aquatest
91d678c927cc4b2dce6f709afe7faf2768b58157
3b10d179552b1e9d6a0e4ad5e91a92a05dba19c7
refs/heads/master
2016-08-04T18:06:47.582196
2010-09-29T13:20:13
2010-09-29T13:20:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,172
py
""" This script generates all the necessary data to synchronize with a remote CommCareHQ server on that server. This is only really useful if you intend to manually scp/rsync data to your local server, which requires a login to the remote server. So this is not the standard synchronization workflow (but is necess...
[ "allen.machary@gmail.com" ]
allen.machary@gmail.com
5a5a5583911ddb9db5402f6b3d6030070b115f57
1e50f1643376039ca988d909e79f528e01fa1371
/leetcode/editor/cn/292.nim-游戏.py
174da887a6b080c9b99b41e140bf445662a9f611
[]
no_license
mahatmaWM/leetcode
482a249e56e2121f4896e34c58d9fa44d6d0034b
4f41dad6a38d3cac1c32bc1f157e20aa14eab9be
refs/heads/master
2022-09-04T17:53:54.832210
2022-08-06T07:29:46
2022-08-06T07:29:46
224,415,259
0
0
null
null
null
null
UTF-8
Python
false
false
981
py
# # @lc app=leetcode.cn id=292 lang=python3 # # [292] Nim 游戏 # # https://leetcode-cn.com/problems/nim-game/description/ # # algorithms # Easy (69.45%) # Likes: 326 # Dislikes: 0 # Total Accepted: 50K # Total Submissions: 71.9K # Testcase Example: '4' # # 你和你的朋友,两个人一起玩 Nim 游戏:桌子上有一堆石头,每次你们轮流拿掉 1 - 3 块石头。 拿掉最后一块石头...
[ "chrismwang@tencent.com" ]
chrismwang@tencent.com
22f4ffa79f304c929e6c0680c0a2228d0e15dd2b
dbf2d3f8eb11d04123894e398446b56ca791c9f6
/examples/02.py
c9847666ba51a1574e379280d847d651e7982b21
[]
no_license
podhmo/nendo
ed8d9a62ab23f7409a8ce519f28deff7d3642942
841ec7a990019596c769a2f581a1190aeb8cbd56
refs/heads/master
2021-01-22T17:47:58.964323
2015-06-28T11:37:38
2015-06-28T11:37:38
37,828,656
1
0
null
null
null
null
UTF-8
Python
false
false
550
py
# -*- coding:utf-8 -*- import logging logger = logging.getLogger(__name__) """ -- select explicitly SELECT open_emp_id, product_cd FROM account ORDER BY open_emp_id, product_cd; """ from nendo import Query, make_record, render from nendo.value import List Account = make_record("account", "account_id product_cd open_...
[ "podhmo+altair@beproud.jp" ]
podhmo+altair@beproud.jp
e5ae86739f26139d2a56b19277ea7832e21d41bd
f74dd098c3e665d8f605af5ebe7e2874ac31dd2f
/aiogithubapi/namespaces/user.py
1d1bd8b8cab4928b70f10f1d9836568e6cc2db64
[ "MIT" ]
permissive
ludeeus/aiogithubapi
ce87382698827939aaa127b378b9a11998f13c06
90f3fc98e5096300269763c9a5857481b2dec4d2
refs/heads/main
2023-08-20T19:30:05.309844
2023-08-14T20:24:21
2023-08-14T20:24:21
198,505,021
21
20
MIT
2023-09-11T06:12:10
2019-07-23T20:39:53
Python
UTF-8
Python
false
false
2,993
py
""" Methods for the authenticated user namespace https://docs.github.com/en/rest/reference/users#get-the-authenticated-user """ from __future__ import annotations from typing import Any, Dict from ..const import GitHubRequestKwarg from ..models.organization import GitHubOrganizationMinimalModel from ..models.reposit...
[ "noreply@github.com" ]
ludeeus.noreply@github.com
d556f5c5b3363e7fc2bbc713413256455f6f53d3
7b6e3c5e6b963c749da9f946275661ae0e67dbd2
/src/model/test/yolo_v2_test.py
f12f453a1da9ecff535acc2209d498da9c687322
[]
no_license
WeiZongqi/yolo-tensorflow
c8237295b41beb61943207d8511c80a0f33507f2
53eaa2ad779918ced2ded2834e09abf2e0ed7202
refs/heads/master
2021-01-25T14:26:58.371334
2017-12-28T08:18:59
2017-12-28T08:18:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,688
py
# -*- coding: utf8 -*- # author: ronniecao from __future__ import print_function import sys import os import time import numpy import matplotlib.pyplot as plt import tensorflow as tf from src.data.image import ImageProcessor from src.model.yolo_v2 import TinyYolo class TinyYoloTestor: def test...
[ "caocao7066@outlook.com" ]
caocao7066@outlook.com
4f7ae60a8596d2b441a4ff0da86b405f6c80aba6
ad5d38fce4785037c108186f17eb1c64380355ef
/sddsd/google-cloud-sdk.staging/lib/googlecloudsdk/calliope/arg_parsers.py
106bfe82ce32e1f5504ba759ff9f2da633c36cc4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
saranraju90/multik8s
75864b605a139ddb7947ed4de4ae8466bdd49acb
428576dedef7bb9cd6516e2c1ab2714581e1137c
refs/heads/master
2023-03-03T21:56:14.383571
2021-02-20T14:56:42
2021-02-20T14:56:42
339,665,231
0
0
null
null
null
null
UTF-8
Python
false
false
53,962
py
# -*- coding: utf-8 -*- # # Copyright 2013 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "saranraju90@gmail.com" ]
saranraju90@gmail.com
88c38efa8ff0a8056b6fc309011e034888426fa0
26acc7e23024098661a42da37e2cb4ed56c21b44
/dgp/genera/load/loader.py
daf5ca8acee012f9dd328fd48ef0fb2baf85a38a
[ "MIT" ]
permissive
dataspot/dgp
80536c0e296570c109511de3dae6e0297bb8b0fd
e86d604c8af5534985f9b788ba809facbc325152
refs/heads/master
2023-03-16T05:15:38.362702
2023-03-09T07:07:28
2023-03-09T07:07:28
169,378,970
1
0
null
null
null
null
UTF-8
Python
false
false
2,879
py
import os import json import requests from hashlib import md5 from dataflows import Flow, load, dump_to_path from dataflows.base.schema_validator import ignore from ...core import BaseDataGenusProcessor, Required, Validator, ConfigurableDGP from .analyzers import FileFormatDGP, StructureDGP from ...config.consts impo...
[ "adam.kariv@gmail.com" ]
adam.kariv@gmail.com
449a5b4d464ce12c138b35ee87635fe1817540fc
13d3a44447f6a7d8b0d61c2fb445fa6aa76c2f95
/stackdio/core/viewsets.py
3708da69f32348e2a5e6effb26d7be236dfe77f5
[ "Apache-2.0" ]
permissive
stackdio/stackdio
6ba4ad6c2ef10a323cbd955e6d6d5bd7917c17c2
84be621705031d147e104369399b872d5093ef64
refs/heads/master
2021-04-09T16:36:38.220557
2018-08-13T18:25:29
2018-08-13T18:25:29
17,679,603
9
11
Apache-2.0
2020-03-19T17:21:45
2014-03-12T19:02:06
Python
UTF-8
Python
false
false
13,461
py
# -*- coding: utf-8 -*- # Copyright 2017, Digital Reasoning # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "clark.perkins@digitalreasoning.com" ]
clark.perkins@digitalreasoning.com
56441abdcb0c3e4c4bc9e6e51c066f53b4474751
d09fd96bbc931fbb8522e5c991973f064a4ded50
/baxter/devel/lib/python2.7/dist-packages/baxter_core_msgs/msg/_AssemblyStates.py
e02cc99b32b08bd3ff9a2b09c7d226c451abe8d2
[]
no_license
rymonyu/EE4-Robotics
b3827ba0dff5bdfdd1e47fe07a40e955c5226f38
6cf9272abd7fe8a074dc74a032f6e0b35edb8548
refs/heads/master
2020-08-22T15:09:39.706809
2019-12-15T23:35:45
2019-12-15T23:35:45
216,420,098
6
0
null
null
null
null
UTF-8
Python
false
false
116
py
/home/rob/baxter/devel/.private/baxter_core_msgs/lib/python2.7/dist-packages/baxter_core_msgs/msg/_AssemblyStates.py
[ "rymonyu@gmail.com" ]
rymonyu@gmail.com
1be87f33c8660ad3c54efa5eb9f2ada26d9a1e6b
8afb5afd38548c631f6f9536846039ef6cb297b9
/_PYTHON/DATA_STRUC_PYTHON_NOTES/python-prac/mini-scripts/python_NumPy_Products_1.txt.py
d720b0dffc122f94e2aecfe055e2ab67998d23f1
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
77
py
import numpy as np arr = np.array([1, 2, 3, 4]) x = np.prod(arr) print(x)
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
a0bcf1146515c5da0c64441490de32599b91f02e
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/CodeJamData/12/01/14.py
fd0cb48a6c9d059526138c98e8ba82d309f6802b
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
1,517
py
#!/usr/bin/python2 ### Google Code Jam template # Futures from __future__ import division from __future__ import with_statement from __future__ import print_function ## Library # @memoized def memoized(func): mem = {} def wrapped(*args): if args not in mem: mem[args] = func(*args) re...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
5efd766bb70d94a197cb80cb858d7211c005cb27
4de2b914e4607dd0ca7eec60b21026af6b6c4797
/Old_work/valdambrini_cheli_papallo_tarmati/catkin_ws/build/navigation/clear_costmap_recovery/catkin_generated/pkg.develspace.context.pc.py
cb8deb76dfb119ed5c90cb0df8ac2a426a6fc434
[]
no_license
ABiondi12/project_sgn
5203d21f2753dcdf7c53b153324dc75bc1221549
570b7be0b01e7c83cb927945e532d6a2213ebf65
refs/heads/main
2023-06-18T12:59:18.337096
2021-07-21T10:27:08
2021-07-21T10:27:08
307,121,028
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/robot/catkin_ws/src/navigation/map_server/include".split(';') if "/home/robot/catkin_ws/src/navigation/map_server/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;nav_msgs;tf2".replace(';'...
[ "petracci.francesco@gmail.com" ]
petracci.francesco@gmail.com
c34f28b064723496b9f76b20880853d1b861b23c
bad62c2b0dfad33197db55b44efeec0bab405634
/sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/operations/_tables_operations.py
1cfeb4326088fb395f5d11a07bd548a359826a3a
[ "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
32,472
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
test-repo-billy.noreply@github.com
0a948854e027da6e1d313f2c60f11f0684e5b0f2
e7e497b20442a4220296dea1550091a457df5a38
/main_project/AdHot/monitorsystem/monitorsystem/controllers/zoom_graph.py
4e70d23eb63430c0430abba719d0b4142562c92e
[]
no_license
gunner14/old_rr_code
cf17a2dedf8dfcdcf441d49139adaadc770c0eea
bb047dc88fa7243ded61d840af0f8bad22d68dee
refs/heads/master
2021-01-17T18:23:28.154228
2013-12-02T23:45:33
2013-12-02T23:45:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,518
py
import logging import rrdtool from pylons import request, response, session, tmpl_context as c, url from pylons.controllers.util import abort, redirect from monitorsystem.lib.base import BaseController, render from monitorsystem.lib.app_globals import Globals as g from monitorsystem.lib.get_chart_info import GetAll...
[ "liyong19861014@gmail.com" ]
liyong19861014@gmail.com
d1a37f55af2498bbddef30e64ab5cf173cdc0d1e
7f2612e5132e1583e5ba9758f299a8f301f0dc70
/FB/257-binary-tree-paths.py
eada330e2dcde3095e5ceb1523f68ee52d0cba47
[]
no_license
taeheechoi/coding-practice
380e263a26ed4de9e542c51e3baa54315127ae4f
9528b5e85b0ea2960c994ffea62b5be86481dc38
refs/heads/main
2022-07-09T11:22:18.619712
2022-06-28T14:55:51
2022-06-28T14:55:51
447,082,854
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
# https://leetcode.com/problems/binary-tree-paths/ # Input: root = [1,2,3,null,5] # Output: ["1->2->5","1->3"] # Example 2: # Input: root = [1] # Output: ["1"] class Solution: def binaryTreePath(self, root): elements = [] def dfs(node, s): if not node: return if node.left ...
[ "dadac76@hotmail.com" ]
dadac76@hotmail.com
ebe6ba66f1743f17d66488c547d62eb1dd646dc3
a972c5de4144940d1c5903bb5636df4bcaf4b283
/ejerciciokenwin/__init__.py
bcbe09dd494756b2f4afdb3392ceb03bc3b19d99
[]
no_license
apocalipsys/ejerciciopyramid-2020
5dafe2926bb78338eb1eca17d2be8f6ef2eba8fa
2411601f4e2e0dd9aa49951251f9acfe73d43777
refs/heads/master
2020-12-21T00:51:38.700245
2020-02-07T07:24:51
2020-02-07T07:24:51
236,258,661
3
1
null
2020-02-05T06:29:14
2020-01-26T02:42:08
Python
UTF-8
Python
false
false
802
py
#This is a config file, necesary to include the views, moludes, models and so on #Este archivo de configuracion sirve para incluir las vistas, modelo de base de datos, modulos etc. from pyramid.config import Configurator from pyramid.session import SignedCookieSessionFactory import os static_dir = os.path.abspath(os....
[ "martinvargas82@gmail.com" ]
martinvargas82@gmail.com
05316d88a35289d491a107f6328cede2a1c6eb9f
4eaa1b9b08914e0a2cc9276363e489ccef19d3a2
/ch9/electric_car.py
a3903742781c7a56beb7c524f66ba35a4bb8f545
[]
no_license
melihcanyardi/Python-Crash-Course-2e-Part-I
69b3b5b3f63cdbd7be6fabd6d4f2ddfd9a3434a3
0c9b250f512985c04b2c0397f3afaa8bf3a57f17
refs/heads/main
2023-03-12T21:43:14.012537
2021-03-03T19:23:41
2021-03-03T19:23:41
344,236,741
0
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
from car import Car class Battery(): """A simple attempt to model a battery for an electric car.""" def __init__(self, battery_size=75): """Initialize the battery's attributes.""" self.battery_size = battery_size def describe_battery(self): """Print a statement describing the bat...
[ "melihcanyardi@hotmail.com" ]
melihcanyardi@hotmail.com
9878aa70c6c4979e347708410e1b4bfdc95469e0
f4fbeb3b1f91043b82d1aacf7b40608644b4130e
/tensorflow/python/keras/_impl/keras/layers/normalization_test.py
84f0b2776c9980e0bdc00c173b275604ce16697a
[ "Apache-2.0" ]
permissive
angelmorinigo/tensorflow
0609a99122315ef466bfb1f8e5334b45361b9d29
3176ba990070cdde62b7cdf81747d70107d2e032
refs/heads/master
2020-03-17T15:33:47.145977
2018-05-16T16:58:05
2018-05-16T16:58:05
133,715,400
1
0
Apache-2.0
2018-05-16T19:45:02
2018-05-16T19:45:02
null
UTF-8
Python
false
false
8,571
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 applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
4331f303b88abc1007c44aedec54876888a6b860
1a74a9ec3e51e7776e5c15e98c66b4cb5a9f8144
/source/webapp/views/base_views.py
3bf9e6278427c473397fb2e32f09ab53e41e9079
[]
no_license
Aitmatow/issue_tracker
d66e47a7f633a455e28a1921c5220c60a4c5907f
96f482be1251d9c557446bc0bfa0e949cc3129d9
refs/heads/master
2022-11-26T19:59:12.929073
2019-12-09T12:52:13
2019-12-09T12:52:13
211,033,057
0
0
null
2022-11-22T04:47:23
2019-09-26T07:57:27
Python
UTF-8
Python
false
false
4,098
py
from django.db.models import Q from django.shortcuts import get_object_or_404, render, redirect from django.utils.http import urlencode from django.views import View from django.views.generic import TemplateView, ListView class DetailView(TemplateView): context_key = 'objects' model = None def get_contex...
[ "aitmarowd@gmail.com" ]
aitmarowd@gmail.com
466c50bd91fc4be61abb950479c4d47fb1041ed9
8ed80561e1b3c0bcdb6201cae8af845d5da23edc
/guppe/exercicios_secao_8/ex_10.py
62a551fc304de9116280ee458a9d1eaa9680822e
[]
no_license
Fulvio7/curso-python-guppe
42d5a1ecd80c1f3b27dc3f5dad074a51c9b774eb
98966963f698eb33e65ed58a84f96e28f675848a
refs/heads/main
2023-08-28T13:31:12.916407
2021-10-09T19:03:17
2021-10-09T19:03:17
415,393,122
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" 10- Faça uma função que receba dois números e retorne qual deles é o maior. """ def retorna_maior(n1, n2): if n1 > n2: return f'{n1} é maior.' elif n2 > n1: return f'{n2} é maior.' return 'Os dois números são iguais! XP ' print('Descubra o maior número') num1 = int(input('Num1 = ')) ...
[ "fulvio.barichello@gmail.com" ]
fulvio.barichello@gmail.com
3518fd2cc14d2ce5ab3297741d351dc4635fe976
5a04919d14d3f34815987a202d520609c17cc605
/problems/forritun/hefja_i_veldi/tests/gen.py
1397acd8903770e81c30e87255b3e79a5210b121
[]
no_license
SuprDewd/forritunarverkefni
49e9864c6efaa192747b3f004f79a53a4519c10a
702819f9fa2d106fede4ff2284a00b5141662493
refs/heads/master
2021-01-15T11:14:44.316308
2014-08-09T15:09:09
2014-08-09T15:09:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
import math tests = [ (10, 4), (10, -4), (15, -1), (1, 4), (0, 3), (1, -2), (-1, 2), (-1, 3), (-1, 0), (13, 2), (-13, 2), (13, 3), (-13, 3), (-5, -6) ] for i, t in enumerate(tests): with open('T%d.in' % i, 'w') as f: f.write('%d %d\n' % tuple(t)) with open('T%d.out' % i, 'w') as f: f.write('%f\n' % math.pow(t[...
[ "suprdewd@gmail.com" ]
suprdewd@gmail.com
1dfaa8cf11a2d14dd19b5bf31b58f44bf15e34a0
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03379/s477030145.py
93534519416891d22f6c4c276609f50101689a1d
[]
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
539
py
def main(): n = int(input()) x_lst = list(map(int, input().split())) x_sorted_lst = sorted(x_lst) median1 = x_sorted_lst[n // 2 - 1] median2 = x_sorted_lst[n // 2] if median1 == median2: lst = [median1] * n else: lst = [] for i in range(n): x = x_lst[i]...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com