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
bd1e0023e976133adf144217da8c40767542ad6a
40c4b8e9ac9074869bfb0dc1d3c3f566371f1764
/Hangman1/dog_1.py
8ef10b06f11b544da283359081ffd9dca0a7cd4a
[]
no_license
katuhito/Hangman001
870a8827e69cbd9a8b01ffb55f5c499c71861b76
710a201c6ad8284e164ea8ad26cd061486c50849
refs/heads/master
2022-12-06T16:30:24.613288
2020-08-22T10:19:27
2020-08-22T10:19:27
285,448,433
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
class Dog: def __init__(self, name, breed, owner): self.name = name self.breed = breed self.owner = owner class Person: def __init__(self, name): self.name = name mick = Person("Mick Jagger") stan = Dog("Stanley", "Bulldog", mick) print(stan.owner.name)
9520ad44cace073dcbbf25bfb2530de13bce6960
fe19d2fac4580d463132e61509bd6e3cc2cf958d
/toontown/suit/DistributedGoon.py
6f991324caf0d47395d571c95bf7668c93012657
[]
no_license
t00nt0wn1dk/c0d3
3e6db6dd42c3aa36ad77709cf9016176a3f3a44f
7de105d7f3de0f8704b020e32fd063ee2fad8d0d
refs/heads/master
2021-01-01T16:00:15.367822
2015-03-21T21:25:52
2015-03-21T21:25:55
32,647,654
3
5
null
null
null
null
UTF-8
Python
false
false
18,204
py
# 2013.08.22 22:25:21 Pacific Daylight Time # Embedded file name: toontown.suit.DistributedGoon from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from toontown.battle.BattleProps import * from GoonGlobals import * from direct.fsm import FSM from direct.distributed import ClockDelta from otp...
3b39a7459507e3e865fdf5bbc05da93b29990c97
8792e3449fbc6c8dec99f6af1d9f1b4caddad1f7
/105.py
9c3a0992e67c64804a57d489ee89d15378444d1d
[]
no_license
aarthisandhiya/aarthisandhiya1
c19c1951c9ba01cd97eeddd44614953088718357
e6f10247b6a84d6eaf371a23f2f9c3bebbc73e5b
refs/heads/master
2020-04-15T17:17:07.151242
2019-05-20T05:24:19
2019-05-20T05:24:19
164,868,494
0
1
null
null
null
null
UTF-8
Python
false
false
63
py
a,b=map(str,input().split()) z = int(str(a) + str(b)) print(z)
73632a0fc46bcb44ba1b1359191e89d643076b20
6d87f66357e4002c461532b39498636d29956097
/stack/cinder/cinder/tests/integrated/test_volumes.py
0ec851113d15b555d1a9e13b95fbf0ec2994a1dd
[ "Apache-2.0" ]
permissive
megaumi/openstack-tbd-scheduler
b8588b35c45b8fe9eee59723276047601ce2dfde
13928e9fec092e573c4945343a8b60e1fa86c4b3
refs/heads/master
2021-06-06T05:45:48.026940
2020-07-24T08:52:55
2020-07-24T08:52:55
6,046,752
0
1
null
2020-07-24T08:52:57
2012-10-02T15:11:38
Python
UTF-8
Python
false
false
7,530
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Justin Santa Barbara # 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.apach...
[ "umi@apricot.(none)" ]
umi@apricot.(none)
73d0714f19bdb72afedfbdfb6a4e3fdd2f379fcd
c57439f0c98af370ace65f9d55ef5a457bedc531
/ydk/models/infra/Cisco_IOS_XR_infra_infra_clock_cfg.py
f85b7e5635a2a58fec6e49f2f48e3d0d54e76eaa
[ "Apache-2.0" ]
permissive
myahmao/ydk-py
c932fbd8245e554227cce0fd723d9a22887b0c40
2f367d93f2088d4abdc2f2bb10ca4864952b458a
refs/heads/master
2021-01-14T11:32:29.064494
2016-03-15T22:44:05
2016-03-15T22:44:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,599
py
""" Cisco_IOS_XR_infra_infra_clock_cfg This module contains a collection of YANG definitions for Cisco IOS\-XR infra\-infra\-clock package configuration. This module contains definitions for the following management objects\: clock\: Configure time\-of\-day clock Copyright (c) 2013\-2015 by Cisco Systems, Inc. Al...
7ac9d1d7cdbc4d296c89596b2cbfc6ba7d04f0d9
f7c07caa1210d2a08e8433cdd854b1232efa88e3
/Date-And-Time-Modules/Time-Module/asctime.py
4636038147253d9c36f45035d301ee8980be3e2f
[]
no_license
rchicoli/ispycode-python
c2fbecc28bf32933150986d24f77b7297f50b78e
fa27f2377943ac2e4d983065406578151091e3f5
refs/heads/master
2020-03-20T11:34:59.698618
2018-06-14T21:14:02
2018-06-14T21:14:02
137,407,150
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
import time print(time.asctime()) print(time.asctime([2000,1,31,6,30,59,17,0,0]))
0e9b9d7b4cfe391c63a71319701c9315c52c1588
efc690a4c42b1511deb0fe80bf146872c45aed69
/conf_site/sponsorship/models.py
f1a2c0a6aceed0242319506cff3c3807176f3152
[ "MIT" ]
permissive
jasongrout/conf_site
34aa1197727fbbbdf8811338764a7451445f1803
6b3beb21de8d847cba65dcb6da84464b40739d48
refs/heads/master
2021-03-31T06:35:59.696561
2020-03-17T20:39:57
2020-03-17T20:39:57
248,086,087
0
0
MIT
2020-03-17T22:32:02
2020-03-17T22:32:01
null
UTF-8
Python
false
false
421
py
from django.db import models from wagtail.contrib.settings.models import BaseSetting, register_setting @register_setting(icon="group") class SponsorshipSettings(BaseSetting): info_link = models.URLField( default=u"https://pydata.org/pdf/sponsor-prospectus.pdf", max_length=2083, verbose_na...
2512b083e55f6101e8cf2f1a317a475ba920dc4c
32e948f9e7d6bd8771d266d93db0a2653043af0c
/retrieve_cci.py
2e4c71257d529c9c71e1d2bc844b836f83643c91
[ "MIT" ]
permissive
brorfred/density_stats
f14c979f6b6214f4546f5d6f14767cb0825c1d02
b66673c67083010f29afbac1ce30ab431643697f
refs/heads/main
2023-05-05T11:26:48.312639
2023-04-17T13:39:42
2023-04-17T13:39:42
506,174,445
0
0
null
null
null
null
UTF-8
Python
false
false
2,701
py
import numpy as np import xarray as xr import pandas as pd import pyresample as pr from fast_histogram import histogram1d import resample bins = 100 binrange = np.log(10**-4), np.log(10**2) binlist = np.linspace(*binrange, bins) def open_dataset(date="2000-01-01"): """Open OC-CCI dataset as xarray dataarray via...
9c4c84794897db611285d44fe40a857bd5997ffb
e1303b5f9b13b9b7f0fa7b5af1e7b8b38314d31f
/findTreeDiameter.py
8945e0de95a004a85b0c3fd800eb3850c42f4d14
[]
no_license
middleverse/ads_prac
a77b0a162ac34eae3847533f773e28e6bec93fbb
5b41defb74b1ae1fb38f244d9ffa070ac07d44c9
refs/heads/master
2023-03-25T06:54:56.913539
2021-03-10T23:06:51
2021-03-10T23:06:51
307,391,921
0
0
null
null
null
null
UTF-8
Python
false
false
1,408
py
class TreeNode: def __init__(self, val, left=None, right=None): self.val = val self.left = left self.right = right class TreeDiameter: def __init__(self): self.treeDiameter = 0 def find_diameter(self, root): self.find_diameter_recursive(root) return self.treeDiameter ...
cc4d1a777b82c57297ced99c26076184686c1a16
de8e0c5c759347917ca7f06b42ca6c82b8f8c95f
/baekjoon/11_math-2/9613.py
b08bf5a8ddfbf8f859876049db7ce69d8f7dcee3
[]
no_license
Greek-and-Roman-God/Apollo
aaeb315a9e70c719b3e53e3c4b9b5dde7b517ec0
2823cbcc9fc10ecd3f1785732403cb9c288f8ef3
refs/heads/main
2023-08-23T12:08:05.322733
2021-10-02T10:54:13
2021-10-02T10:54:13
308,242,023
1
1
null
2020-11-26T12:03:44
2020-10-29T06:49:26
Python
UTF-8
Python
false
false
502
py
# 9613 GCD 합 # https://www.acmicpc.net/problem/9613 def gcd(a, b): result = 0 if a > b: a, b = b, a while b > 0: result = b a, b = b, a % b return result t = int(input()) for _ in range(t): inp = list(map(int, input().split())) cnt = inp[0] num_list = inp[1:] ...
12a0858f92e944f3282765fe64115943dabf630e
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_11_01/aio/operations/_express_route_service_providers_operations.py
562620df96ed6195c4d70aade703489bdeef9938
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
scbedd/azure-sdk-for-python
ee7cbd6a8725ddd4a6edfde5f40a2a589808daea
cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a
refs/heads/master
2023-09-01T08:38:56.188954
2021-06-17T22:52:28
2021-06-17T22:52:28
159,568,218
2
0
MIT
2019-08-11T21:16:01
2018-11-28T21:34:49
Python
UTF-8
Python
false
false
5,138
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 ...
533602f46e5fd616444778719ca121007c3b3786
8e58feae60f66ed52e5e5a04843580591bc6968d
/setup.py
b295a85ded33f5522c9e1cac762aaf01290d18b2
[ "BSD-3-Clause" ]
permissive
rblack42/sphinxcontrib-lpblocks
89a50ff64cbf8866ec2663dd999ccca0fad4bfd9
a30869b1ee2f4f0f73b35f4a9841609d1fafd487
refs/heads/master
2022-07-31T23:29:57.534383
2020-05-18T20:06:33
2020-05-18T20:06:33
264,270,050
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
''' Sphinxcontrib-lpblocks ~~~~~~~~~~~~~~~~~~~~~~ Sphinx extension to support Literate Programming. ''' import io from setuptools import setup, find_packages import sphinxcontrib.lpblocks as lp def readfile(filename): with io.open(filename, encoding="utf-8") as stream: return stream.read()....
f95a5a18b076a96c572670f92020e9b9eb2a8756
faa84a83a3d347ac8b17cab2fa0599c65652a85d
/uliweb/contrib/jsonql/__init__.py
983480b5218ad736d2b4e7dba40780990a35cd85
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
limodou/uliweb
4d829568cb6bab4a807fb80adb84b6aa1d0e76ab
8bc827fa6bf7bf58aa8136b6c920fe2650c52422
refs/heads/master
2023-08-22T09:10:34.609797
2021-07-04T01:20:33
2021-07-04T01:20:33
283,042
230
65
BSD-2-Clause
2019-07-29T11:17:01
2009-08-20T13:50:46
Python
UTF-8
Python
false
false
22,652
py
#coding=utf8 from uliweb import settings from uliweb.utils.common import safe_str, import_attr from uliweb.utils.storage import Storage from uliweb.orm import do_, get_model from uliweb.utils.sorteddict import SortedDict from sqlalchemy import __version__ as sa_version, select, true, text, literal import logging DEBU...
90cec1ab49e52fccaa6aa9922683ffe103721e6a
3002452f8e5520645109eb68b70128b9ebb01ccf
/turngeneration/tests/test_models.py
bfd85131f2c6bbacf1a3efafc5563b520a00a38f
[ "MIT" ]
permissive
jbradberry/django-turn-generation
f01b2d681ec8a01263dd8afa467544ae85082351
dbfec9d0addbff2d8d54597b7520e171938c9107
refs/heads/master
2021-05-16T03:13:09.156798
2019-12-21T02:21:24
2019-12-21T02:21:24
14,544,818
0
1
MIT
2019-12-21T02:21:26
2013-11-20T02:45:08
Python
UTF-8
Python
false
false
10,757
py
import datetime from django.contrib.auth.models import User from django.utils import timezone from django.test import TestCase from mock import patch, call from dateutil import rrule import pytz from ..models import Generator, GenerationTime, GenerationRule, Pause, Ready from sample_app.models import TestRealm, TestA...
28b5f273d0e04b143c9cd5bb9d092bf1a50eedb1
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/pkgs/ipython-5.0.0-py27_0/lib/python2.7/site-packages/IPython/core/pylabtools.py
e7327e58e8c5648d59463ff3f067689983b9f24d
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
13,845
py
# -*- coding: utf-8 -*- """Pylab (matplotlib) support utilities.""" from __future__ import print_function # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from io import BytesIO from IPython.core.display import _pngxy from IPython.utils.decorators import flag_calls...
e53dd06c2a2df6fe95473cf29333718731785fe7
be5f4d79910e4a93201664270916dcea51d3b9ee
/rovers/fastdownward/experiments/issue420/issue420-v1.py
b5d93b01dad7fc570cabc56ea38aee5819c50c0a
[ "MIT", "GPL-1.0-or-later", "GPL-3.0-or-later" ]
permissive
mehrdadzakershahrak/Online-Explanation-Generation
17c3ab727c2a4a60381402ff44e95c0d5fd0e283
e41ad9b5a390abdaf271562a56105c191e33b74d
refs/heads/master
2022-12-09T15:49:45.709080
2019-12-04T10:23:23
2019-12-04T10:23:23
184,834,004
0
0
MIT
2022-12-08T17:42:50
2019-05-04T00:04:59
Python
UTF-8
Python
false
false
718
py
#! /usr/bin/env python # -*- coding: utf-8 -*- from downward.suites import suite_optimal_with_ipc11 import common_setup REVS = ["issue420-base", "issue420-v1"] CONFIGS = { "blind": ["--search", "astar(blind())"], "lmcut": ["--search", "astar(lmcut())"], } TEST_RUN = False if TEST_RUN: SUITE = "gripper...
258b646c702736c7a992f113a68f318a0df6c2a5
e0980f704a573894350e285f66f4cf390837238e
/.history/menus/models_20201030152822.py
c70dffeb2c5e9ce219e941ae4b37043c1fd1e98f
[]
no_license
rucpata/WagtailWebsite
28008474ec779d12ef43bceb61827168274a8b61
5aa44f51592f49c9a708fc5515ad877c6a29dfd9
refs/heads/main
2023-02-09T15:30:02.133415
2021-01-05T14:55:45
2021-01-05T14:55:45
303,961,094
0
0
null
null
null
null
UTF-8
Python
false
false
1,640
py
from django.db import models from django_extensions.db.fields import AutoSlugField from modelcluster.models import ClusterableModel from modelcluster.fields import ParentalKey from wagtail.core.models import Orderable from wagtail.admin.edit_handlers import FieldPanel, PageChooserPanel, InlinePanel class MenuItem(O...
3e9956e9dcc4a1c4b5873fb6cc00798a7a1b8a6e
2eb386991d9975f0f8440d90de26e950304ac42f
/TGHACK2020/mystic/mystic.py
890845cecbe1fd91e46764c04ab3175c590b43f6
[]
no_license
Quintec/CTFs2020
2816a66e8a486537c31e5ac25253840bc3a8ffe9
bdaa327c9f0b0ee16ff95bafcaf65f0df8acd8b9
refs/heads/master
2022-12-19T21:39:14.129702
2020-10-01T16:49:06
2020-10-01T16:49:06
281,812,929
1
0
null
2020-10-01T16:49:08
2020-07-23T00:37:44
null
UTF-8
Python
false
false
182
py
with open("mystic.png", 'rb') as file: dat = file.read() print(dat) print(type(dat)) dat = bytes([d^42 for d in dat]) with open("mystic.dat", 'wb') as file: file.write(dat)
571dce4b35f1680fb3c9ae0aa7327fffecc8a440
eac985db4df6ef7429ee6798956aad85087dc444
/rcsfootprints/settings.py
5809049ca8dfede2566f444d0a91519b4eaebd56
[]
no_license
scottcoughlin2014/rcsfootprints
10e7caafda5062ecece0cf1eba978a853e35240e
06317fd97cd1feda745428df4c65662941caa755
refs/heads/master
2022-11-28T15:50:57.004215
2020-08-03T20:34:06
2020-08-03T20:34:06
284,801,649
0
0
null
null
null
null
UTF-8
Python
false
false
3,713
py
""" Django settings for rcsfootprints project. Generated by 'django-admin startproject' using Django 3.0.9. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import...
1cc919de041c45de9d95e37af262c9a2f2d6e5fe
c2f85286d1e21fb803c35f6d996abc850b993e53
/mystorage/models.py
3b1da397f6d612372399cd856fd46f538d5bc4d8
[]
no_license
devdw98/likelion_drf
dfeec1bf5ee153918807f99040c8c33240c4344c
6d0171961bc93f4edd7998b7351034e0a936079d
refs/heads/master
2020-07-29T20:38:29.041098
2019-10-27T07:22:53
2019-10-27T07:22:53
209,951,594
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
from django.db import models from django.conf import settings class Essay(models.Model): author = models.ForeignKey(settings.AUTH_USER_MODEL, default = 1, on_delete=models.CASCADE) #모델지우면 그 모델과 관련한 모든 것 지움 title = models.CharField(max_length = 30) body = models.TextField() class Album(models.Model): #imag...
00b51cd8339ee6726731147e53432b24dc540662
a4146004694aa8745f751fd49152b01718e43cdd
/Algorithm/test/IM/D03/미로탈출 로봇중간 단계2.py
6085d18524e9fd1a78f28e0e385c58c842be2f6e
[]
no_license
hoyoung2176/TIL
1f4e2110e1e21d03855889044a7df280ad9788fc
e2bca069d36455fdf8f142fa9a06fb1a39f3c99f
refs/heads/master
2021-06-25T13:34:01.463989
2019-07-31T05:05:45
2019-07-31T05:05:45
163,781,026
0
0
null
2021-06-10T21:19:53
2019-01-02T01:39:56
Python
UTF-8
Python
false
false
872
py
import sys sys.stdin = open("미로탈출 로봇중간 단계.txt") N = int(input()) arr = [[1]*(N*2) for _ in range(N+2)] for i in range(1,N+1): arr[i]= [1] + (list(map(int, input()))) + [1] Darr = list(map(int,input().split())) Dno = 0 #방향순서 dr = [0, 1, 0, -1, 0] #아래1 왼2 위3, 오른4 방향 dc = [0, -1, 0, 1] r,c = 1, 1 #현재좌표 cnt = 0 while...
4c119e4d899ded17fc322cbed2aae93f00f17728
28b4c4676cb016e35cc7b1048097628caa113114
/sso/relay.py
99757032575f381faeec89c1b1124012853f5fa4
[ "MIT" ]
permissive
shiroyuki/voila-id
829127ef258c829f33d6f4079486829e3325f208
da86daef255d23b73ad6f2ba67fba02201407f09
refs/heads/master
2016-09-06T16:56:45.724263
2014-08-25T05:50:43
2014-08-25T05:50:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
from sso.common import Controller from sso.security import AccessMode class Relay(Controller): def get(self): routing_map = self.component('routing_map') if not self.session.get('auth'): return self.redirect(routing_map.resolve('authentication')) auth = self.session.get('auth'...
afe11d1033c0af9c586eb0ac088d3f083c15409b
44d62a165f943ca752795be97b5921767c034f29
/iblrig/frame2TTL.py
e20a493f101e1a7f882816f9d47bac791410a1f8
[ "MIT" ]
permissive
magically-solutions-india/iblrig
1d2c52d9966f3b3c9f681fde37a9926e35b62542
0d428591bd91d22feed5254f36a5dc9e104d4ff5
refs/heads/master
2020-12-20T03:41:08.808129
2020-01-22T10:07:55
2020-01-22T10:07:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,300
py
import logging import struct import numpy as np import serial import iblrig.alyx import iblrig.params log = logging.getLogger('iblrig') class Frame2TTL(object): def __init__(self, serial_port): self.serial_port = serial_port self.connected = False self.ser = self.connect...
323314a44358a166ba601398ae2f8308055495fa
cfc46fd56c16ac9c010bcf0c1eb50da3047d1b2b
/toscametrics/general/text_entropy.py
d41f0bfbd5d377be29b2831b990d4c15a8b08cbf
[ "Apache-2.0" ]
permissive
radon-h2020/radon-tosca-metrics
d93ef5b3dc53c7863ba98a985919237fe6c4aadf
d0a10e10f2d897299a04f69290f09d5589bc039f
refs/heads/master
2021-08-24T13:53:43.207745
2021-07-06T08:44:00
2021-07-06T08:44:00
242,997,596
3
0
Apache-2.0
2021-03-29T13:47:46
2020-02-25T12:45:05
Python
UTF-8
Python
false
false
811
py
import re from math import log2 from toscametrics import utils from toscametrics.blueprint_metric import BlueprintMetric def splitter(x): return re.sub(r'\s+', ' ', str(x)).split(' ') class TextEntropy(BlueprintMetric): """ This class measures the blueprint's Shannon entropy for keywords frequencies """ ...
c5fa70baf76c52c1e7edd22a04caa0f0124d5192
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_10971.py
1e427429e1f1fb08ee4d28ae4224b1b47e60d17e
[]
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
130
py
# sampling random floats on a range in numpy np.random.uniform(5,10) # A single value np.random.uniform(5,10,[2,3]) # A 2x3 array
2450814533832c1abc008339e64b4cf98eedf527
0206ac23a29673ee52c367b103dfe59e7733cdc1
/src/fao_un/fao_explore_text_file.py
8f720005daa4892cb920451ae2460557678d06ed
[]
no_license
guziy/RPN
2304a93f9ced626ae5fc8abfcc079e33159ae56a
71b94f4c73d4100345d29a6fbfa9fa108d8027b5
refs/heads/master
2021-11-27T07:18:22.705921
2021-11-27T00:54:03
2021-11-27T00:54:03
2,078,454
4
3
null
null
null
null
UTF-8
Python
false
false
507
py
__author__ = 'huziy' def main(): path = "/skynet3_rech1/huziy/Global_terrain_slopes_30s/GloSlopesCl1_30as.asc" with open(path) as f: for i, line in enumerate(f): if i < 6: print(line) if 3000 < i < 4000: nums = [int(s.strip()) for s in line.spl...
e61562e0b288dce372a49eb34d6462236ab75a15
3a117858e61c87b703c694d8e1b6da61e6074851
/src/.history/Test/HiwinRT605_Strategy_testsocket_20190626140818.py
ae6dddd6e9834397236b8fe1d7181f7c4ff0b95c
[ "MIT" ]
permissive
SamKaiYang/ROS_Socket
4daa2c66181a76038e20161a44f1362084b6bd58
aa131496617cec0a9c32141565faa668db738eb9
refs/heads/master
2020-05-25T22:02:02.468922
2019-07-18T09:02:35
2019-07-18T09:02:35
188,009,003
0
1
null
null
null
null
UTF-8
Python
false
false
6,551
py
#!/usr/bin/env python3 # license removed for brevity #策略 機械手臂 四點來回跑 import threading import rospy import os import numpy as np from std_msgs.msg import String from ROS_Socket.srv import * from ROS_Socket.msg import * import math import enum import Hiwin_RT605_Arm_Command as ArmTask ##----Arm state----------- Arm_state_...
c2c096ac99f6a8ef635bfe244d6f1b363cafbb99
25bb4e760769cc483a20f27b6312698891dce034
/algorithms/dynamic programming/fibonacci-modified-English.py
43e913d6860797d42644fb453e498a9e8ba33f17
[]
no_license
rangaeeeee/codes-hackerrank
e13d22adff1ef74974e34251d9bfac6cfd36f2b0
ce7fdf7f336c10164fd2f779d4ed3713849d7c2b
refs/heads/master
2021-01-19T17:07:28.451983
2017-09-01T18:05:33
2017-09-01T18:05:33
101,049,197
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
# Enter your code here. Read input from STDIN. Print output to STDOUT t1,t2,n = map(int,input().split()) result = [None] * (n+1) result[1] = t1 result[2] = t2 for i in range(3,n+1,1): if result[i] == None: result[i] = result[i-2] + result[i-1]**2 print(result[n])
812f0756e1b6b47085b05cdfe5bb31706fea3a48
d91a61442d0ba0547301f54e7f63039ab5346198
/for/exe_5_soma_impares.py
e24ac2e7564b8fc8ec7eb560600909bf26b37fd9
[]
no_license
pedroceciliocn/programa-o-1
a41bf89475939ad1791320c8fa4845744921ec19
15f8a3dbc13f4cbbc15f2b626ccef47fe145cc3f
refs/heads/main
2023-07-12T20:06:20.632304
2021-08-17T22:05:57
2021-08-17T22:05:57
377,301,280
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
""" Somar os inteiros ímpares entre dois valores inteiros informados pelo usuário. """ n_1 = int(input("De o primeiro valor do intervalo: ")) n_2 = int(input("De o segundo valor do intervalo: ")) s = 0 if n_1 > n_2: n_1, n_2 = n_2, n_1 for i in range(n_1, n_2 + 1): if i % 2 != 0: s += i print(f"...
e7a515daeaa03636535a18bbda0da4090a2ea830
5e6d8b9989247801718dd1f10009f0f7f54c1eb4
/sdk/python/pulumi_azure_native/network/v20200601/express_route_circuit.py
727cf5612ac08490037b0bda33dc7615a0e558e1
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
vivimouret29/pulumi-azure-native
d238a8f91688c9bf09d745a7280b9bf2dd6d44e0
1cbd988bcb2aa75a83e220cb5abeb805d6484fce
refs/heads/master
2023-08-26T05:50:40.560691
2021-10-21T09:25:07
2021-10-21T09:25:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
35,206
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
fb3de3e1e992cf59a0db77e1e77140ba3f9e8072
64dfafd940d77129b38865ccac869aadffb868ff
/natural_satmass_plots.py
0a3c6e64ef4ce8f400172a6e12b45c5a341759a2
[]
no_license
RaymondSimons/foggie_local
242d4ef5fa814d44747b2bc38825433ade73de9f
f10bc56ef90b274d08fc81c8d02ddd9b653dfd19
refs/heads/master
2021-07-07T18:03:27.996681
2020-07-30T16:34:40
2020-07-30T16:34:40
147,853,943
0
1
null
null
null
null
UTF-8
Python
false
false
4,178
py
import glob from glob import glob from astropy.io import fits from scipy import interpolate plt.rcParams['text.usetex'] = True plt.ioff() plt.close('all') DD_to_t = np.load('/Users/rsimons/Dropbox/rcs_foggie/outputs/DD_time.npy')[()] #DDs = arange(44, 800) DDs = arange(44, 800) sat_ns = arange(0, 12) clrs = ['blue'...
bd2be70e948d6957ceca507b2d58feba34736b39
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/network/azure-mgmt-network/generated_samples/hub_route_table_delete.py
6e2f314f2351a185a63bd8d45de74648f9983c8e
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,554
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 ...
70fe8e8b64018de3046f650a5b1487419d30a178
af259acdd0acd341370c9d5386c444da6a7a28a6
/Deep-Learning-in-Python/04-Fine-tuning-keras-models/02-Changing-optimization-parameters.py
de78e0ef25b6108c14e0a39d883bc0b1c62905bf
[]
no_license
pace-noge/datacamp
fcd544f6478040660f7149b1a37bfd957eef9747
eeffb8af233e7304c0f122a48e6b4f78ee7c650e
refs/heads/master
2020-07-04T12:41:29.635167
2019-09-17T10:11:39
2019-09-17T10:11:39
202,289,041
0
0
null
null
null
null
UTF-8
Python
false
false
2,013
py
""" Changing optimization parameters It's time to get your hands dirty with optimization. You'll now try optimizing a model at a very low learning rate, a very high learning rate, and a "just right" learning rate. You'll want to look at the results after running this exercise, remembering that a low value for the loss ...
5264e111233945faf45b9aefd6d120ef0d823acf
8a5ab3d33e3b653c4c64305d81a85f6a4582d7ac
/PySide/QtXml/QDomDocumentFragment.py
05e5e380013867b6c5bff79ce5d82cf2508b4f84
[ "Apache-2.0" ]
permissive
sonictk/python-skeletons
be09526bf490856bb644fed6bf4e801194089f0d
49bc3fa51aacbc2c7f0c7ab86dfb61eefe02781d
refs/heads/master
2020-04-06T04:38:01.918589
2016-06-09T20:37:43
2016-06-09T20:37:43
56,334,503
0
0
null
2016-04-15T16:30:42
2016-04-15T16:30:42
null
UTF-8
Python
false
false
801
py
# encoding: utf-8 # module PySide.QtXml # from /corp.blizzard.net/BFD/Deploy/Packages/Published/ThirdParty/Qt4.8.4/2015-05-15.163857/prebuilt/linux_x64_gcc41_python2.7_ucs4/PySide/QtXml.so # by generator 1.138 # no doc # no imports from QDomNode import QDomNode class QDomDocumentFragment(QDomNode): # no doc d...
cba3267fc1a634b25b0ca18b959b737bd7ad0cde
9f1db0cce0aebc6c14c7e3c4adfa424bbc20c968
/project/lit/migrations/0008_auto_20151112_0935.py
e03309c46b32757228973dba1d3bbb8e0d673561
[]
no_license
JoshAddington/hawc
6b8f9efb0dec2aeb972a66a636dfc7493502003b
28cb8a2690ba934134c4dd4660d51e573cd6b895
refs/heads/master
2020-12-25T17:16:05.746517
2016-06-10T18:03:32
2016-06-10T18:03:32
44,217,584
0
0
null
null
null
null
UTF-8
Python
false
false
555
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import utils.models class Migration(migrations.Migration): dependencies = [ ('lit', '0007_auto_20151103_0925'), ] operations = [ migrations.AlterField( model_name='refere...
69a804c507365deb078ecc69332d2ffa90e580e1
fac4c2fa64e6a22d0a80eec7b65c93d7a6236b7f
/original-modules/text-to-text-transfer-transformer-master/t5/models/gin/objectives/span.gin
2da19b4e5ebab684ee90690c65fafe40978d8775
[ "Apache-2.0" ]
permissive
zouning68/nlp-transfer-learning
ec2b9e91f4b3bb9d77bf88dd78282f6ff5aaa4fd
e9b1544b55905ceb2235471f036abc1d7c4160db
refs/heads/master
2023-04-13T18:25:22.206475
2020-01-15T02:36:19
2020-01-15T02:36:19
228,514,893
2
0
Apache-2.0
2023-03-24T23:36:35
2019-12-17T02:21:15
Python
UTF-8
Python
false
false
1,801
gin
# -*-Python-*- # Random pattern of noise and non-noise spans. include 'objectives/denoise.gin' preprocessors.unsupervised.preprocessors = [ @preprocessors.select_random_chunk, @preprocessors.reduce_concat_tokens, @preprocessors.split_tokens, @preprocessors.denoise, ] inputs_length = 512 noise_density = 0.15 prepro...
530054b5f5bfcf224797ff7cb03ce8898da54858
6c5a2649bd7dce505e108d5ceb862d9a3912ca8b
/score_of_data.py
dc556bef64979e96be25a36395d5a45b68c9bbf1
[]
no_license
maidao/machine_learning_Intermediate
680295ba8b9282312cd499151e57ef03e1a55283
7cb5a05b4bdd30f0555faa3705d7ab20793d61b5
refs/heads/master
2020-06-18T07:33:47.152520
2019-07-17T10:03:00
2019-07-17T10:03:00
196,215,591
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
from sklearn.ensemble import RandomForestRegressor from sklearn.metrics import mean_absolute_error def score_dataset(X_train, X_valid, y_train, y_valid): model = RandomForestRegressor(n_estimators=10, random_state=0) model.fit(X_train, y_train) preds = model.predict(X_valid) return mean_absolute_error(...
2497cfe49693743af6f390ab5ee75b6bd96ebf9e
48894a44b01b055c9d88eb93f4472fa1da72441b
/run.py
ffab80d383c6be37ca0c1c76c9b9eb84500f98b7
[]
no_license
Biking0/ambari_monitor
4f349846f5be9042854427979e844934db3881c0
137cd8d7b051253a616c6b106722cac539616610
refs/heads/master
2020-08-10T22:39:44.331360
2020-03-19T05:41:22
2020-03-19T05:41:22
214,435,780
2
2
null
null
null
null
UTF-8
Python
false
false
1,088
py
#!/usr/bin/env python # -*-coding:utf-8 -*- #******************************************************************************** # ** 文件名称:run.py # ** 功能描述:ambari 监控项目启动所有监控程序 # ** 输 入 表: # ** 输 出 表: # ** 创 建 者:hyn # ** 创建日期:20191020 # ** 修改日志: # ** 修改日期: # ****************************************************************...
87cddce92b5071b9d47617bca4b11461da55b66a
046207f434966462fff55f634ba5a450d2208534
/CodeUp/1259_0186.py
d3941c4ae56ec159bd0e541f26d3f46a954997cd
[]
no_license
sungsikyang92/pythonStudy
e293e1ac8af443809f840ccee7052a8f57480b70
26522b5e232ccd9ab25c52122d254aa7249a8fdf
refs/heads/master
2023-07-04T16:58:40.318976
2021-08-04T02:00:27
2021-08-04T02:00:27
365,398,522
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
n = int(input()) sum = 0 for x in range(1, n+1): if x % 2 == 0 : sum += x print(sum)
45a941542c6eb500c823b5d445f76412a2149b8a
1208ac3718420c4a118ab6b777d99980b85f952a
/112.py
aabd7878a6fe754ceb9cd8e4a711f5e799a5cd90
[]
no_license
deimelperez/150_Py_challenges
6ab9aea77c9c117b682790bfe36fb5e280cb8afc
b58f55312e7abf30cb7cb6d68b249bb5dcd3c862
refs/heads/master
2023-03-13T02:30:15.095467
2021-03-04T19:02:11
2021-03-04T19:02:11
344,579,979
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
import csv file = open ('111 Books.csv','a') title = input('Enter title: ') author = input('Enter author: ') date = input('Enter date: ') newRecord = tile + ',' + author + ',' + date + '\n' file.write(str(newRecord)) file.close()
69a692f69279f5075583c5453a69f1f6df3bec6c
079989df1765293d3536b98f841630246bb77a85
/information/models.py
69782d9228cdbcd29e08eba464dd17a09dce24be
[]
no_license
R-Mielamud/ClasssixSite
fb74cf71acc55fd32b7be0b4365ff3b2099d5d7c
0d3bc58b4e13ddc29f0a7f2025a6c813d828433f
refs/heads/master
2020-12-27T08:10:52.040513
2020-07-09T19:19:15
2020-07-09T19:19:15
237,826,755
1
0
null
2020-02-10T13:18:41
2020-02-02T19:47:34
HTML
UTF-8
Python
false
false
723
py
from django.db.models import * from diary.models import Subject class TeacherData(Model): full_name = CharField(max_length=100, default="") subject = ForeignKey(Subject, on_delete=CASCADE, related_name="teacher_data_sets") def __str__(self): return "{} | {}".format(self.full_name, self.subject) ...
1a1b25fc8c24554f7190b90d529bd53fdea7f86e
f3e9cabfa31638f3de80f5b39794a3fc2a8edc7e
/src/py3.x/ml/16.RecommenderSystems/RS-usercf.py
97d0e54c7c09effb2a1f102b859a7782462a2ccd
[]
no_license
Michael-24/ML-master
21ef050c32b8a156f6346456aa686f7bdb8f10e1
bb4ff4252db9f4657f395b76d4bbe20d9edef29a
refs/heads/master
2023-03-18T06:34:48.472023
2020-08-07T04:37:45
2020-08-07T04:37:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,223
py
#!/usr/bin/python # coding:utf8 ''' Created on 2015-06-22 Update on 2019-05-16 Author: Lockvictor/片刻 《推荐系统实践》协同过滤算法源代码 ''' from __future__ import print_function import sys import math import random from operator import itemgetter print(__doc__) # 作用: 使得随机数据可预测 random.seed(0) class UserBasedCF(): ''' TopN recomme...
e00636abdfb80b92e41cf30784c894caed7f6519
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/battle_control/controllers/team_bases_ctrl.py
4d0149d8b224752e45e0be7a44f2f435f4a1e495
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
12,531
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/battle_control/controllers/team_bases_ctrl.py from collections import defaultdict import BattleReplay import BigWorld import SoundGroups from helpers import dependency from skeletons.gui.battle_session import IBattleSessionProvi...
3810a9e948c34313e813a1fe7c302f115e7b368c
0a28bcde2499e6a41e16d88ed62cd2e80a5b464d
/hb_quant/huobi/service/account/get_account_balance_by_subuid.py
29532076b68ed85bd1db6979439b5886c05dab41
[ "MIT" ]
permissive
wenli135/Binance-volatility-trading-bot
2cfe66007294b13a89b16d1622d50ce1615f1d66
75a03ad61df0e95492128fb6f1f419d4dc256ab3
refs/heads/main
2023-06-13T06:40:43.855256
2021-07-01T02:03:25
2021-07-01T02:03:25
373,853,320
0
0
MIT
2021-06-04T13:38:26
2021-06-04T13:38:26
null
UTF-8
Python
false
false
696
py
from huobi.connection.restapi_sync_client import RestApiSyncClient from huobi.constant.system import HttpMethod from huobi.model.account import * class GetAccountBalanceBySubUidService: def __init__(self, params): self.params = params def request(self, **kwargs): sub_uid = self.params["sub-u...
29cff6d8c3117c518a9ab74b682916b64efc225e
9b0bdebe81e558d3851609687e4ccd70ad026c7f
/数据结构/栈/04.合法的出栈顺序.py
1f404b5a1970e989acf41c5634f48a5b42087105
[]
no_license
lizenghui1121/DS_algorithms
645cdad007ccbbfa82cc5ca9e3fc7f543644ab21
9690efcfe70663670691de02962fb534161bfc8d
refs/heads/master
2022-12-13T22:45:23.108838
2020-09-07T13:40:17
2020-09-07T13:40:17
275,062,257
0
0
null
null
null
null
UTF-8
Python
false
false
980
py
""" 1到n的数字序列,入栈,每个数字入栈后,即可出栈,也可在栈中停留,求该数字序列的出栈序列是否合法。 @Author: Li Zenghui @Date: 2020-03-21 21:19 """ from queue_and_stack import MyStack def check_is_valid_order(arr): s = MyStack() for i in range(1, len(arr)+1): s.push(i) while not s.is_empty() and arr[0] == s.top(): s.pop() ...
11a6f509dac11d1628a4239ad6e3882798927964
1839a3881de40db86a2c1e50086ccd6562ed221e
/UnetVgg11/network/textnet.py
cf1ac08f05461b500ccb74444b31ded0a846858b
[]
no_license
weijiawu/Yibao-cup_competition
491c3e63ee1398c97339e95d5299f2aa2ea8af32
84369b038d8c3b3b2e9bfeae824518e49586612e
refs/heads/master
2020-05-07T12:09:22.987473
2019-04-10T06:41:16
2019-04-10T06:41:16
180,490,552
9
1
null
null
null
null
UTF-8
Python
false
false
5,052
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import torch import torch.nn as nn import torchvision.models import torch.nn.functional as F import os os.environ["CUDA_VISIBLE_DEVICES"] = "0" class UnetVgg11(nn.Module): def __init__(self, n_classes=3, num_filters=64, v=1): super(UnetVgg11, self).__init__() ...
165ee5fd66aeb6ac69a6639f029b320d336eb6d4
a596d773e011ca0f4e75c725a24bb263b67b16d1
/MINDIVNO.PY
8d937c6f7dca64910cd6f2ccb8a096b2c985fe19
[]
no_license
shamiliraghul/python
47b1ca1b4be40d89b014755c51b8da9787b3ffff
207b6a3d6222d95af9c74b6f91a94f8f6115b3d5
refs/heads/master
2020-05-23T02:04:20.900868
2019-07-19T07:10:05
2019-07-19T07:10:05
186,596,277
1
3
null
null
null
null
UTF-8
Python
false
false
103
py
n=int(input()) C=0 for i in range(1,n+1): if n%i==0 and (n/i)%2!=0: print(i) break
016861683eb38bdf6dc98d015f3a661609b4eb1b
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_07_01_preview/models/_models_py3.py
48be276791f964e4836563a515cd28181ea518b3
[ "LicenseRef-scancode-generic-cla", "MIT", "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
122,736
py
# coding=utf-8 # pylint: disable=too-many-lines # -------------------------------------------------------------------------- # 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...
26306fc13a2759dc8d39618d990a765d293540d4
49aa2eaeda287fdbbab6f83734473633f200b501
/dataPlatform/go_platform/api/LibScootersOwners.py
7172161c8125935f57716365ef901d7d05f770c6
[]
no_license
petercheng168/My-account-automation
9d41255bb18421a887a308345db94e973467bae5
31c29cc9a9b3f5a4b2c2b721a33df04c52b9d80a
refs/heads/master
2023-03-13T10:14:00.896812
2020-09-11T06:26:44
2020-09-11T06:26:44
341,831,073
0
0
null
null
null
null
UTF-8
Python
false
false
1,604
py
import os import sys __dirname = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.join(__dirname, '../api')) from _init_ import _init_ class LibScootersOwners(object): def __init__(self): self.init = _init_() def scooters_owners_get(self, request_data_type=None, owner_ids= None, scoo...
c04def4b5c87882e4cda68bfee1339fd1ca34a84
daa75594c01a09c60cfcd0afa215ff6cc6676c09
/detectron2/engine/hooks.py
10359e534ce737a16d980fbc468f92700726afe7
[ "Apache-2.0" ]
permissive
Samleo8/detectron2
3d0f8cbacf3f6386d4a9efd7ff0568a5a2981c34
488da8e86e4eb4ee2dc4e6d8dc032af4976bdc58
refs/heads/master
2023-02-28T10:40:05.339246
2021-02-01T22:31:52
2021-02-01T22:31:52
271,258,350
2
0
Apache-2.0
2020-06-10T11:26:49
2020-06-10T11:26:48
null
UTF-8
Python
false
false
15,070
py
# -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import datetime import itertools import logging import os import tempfile import time from collections import Counter import torch from fvcore.common.checkpoint import PeriodicCheckpointer as _PeriodicCheckpointer from fvcor...
b85b77389b8994f59d4cb318c5d635f56232ca7d
e1e8e29d202b663be6d424a41aaf7c42f90c8ab3
/ex40c1.py
72888476074cfb401f36728067a2464107d84161
[]
no_license
Amo95/Learning-coding-with-Python3
414f60d1b7da2fa41a4527034420c6ab34c6acb7
c4527a670b01c55031eb1ad65403a032e545baac
refs/heads/master
2020-12-15T19:20:12.266274
2020-01-21T18:12:58
2020-01-21T18:12:58
235,226,827
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
class MyStuff(object): """docstring for ClassName""" def __init__(self): self.tangerine = "I love coding in python" print(self.tangerine) def apple(self): print("Coding OOP is amazing") def main(): thing = MyStuff() thing.apple() if __name__ == '__main__': main()
9e439aa2203215a329bac34f106ea9ae0aaa38c5
a3b306df800059a5b74975793251a28b8a5f49c7
/Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/lib/itkCropImageFilterPython.py
0bb7d058f400eafaae2cf2ceb3959b1130ff9995
[]
no_license
giacomo21/Image-analysis
dc17ba2b6eb53f48963fad931568576fda4e1349
ea8bafa073de5090bd8f83fb4f5ca16669d0211f
refs/heads/master
2016-09-06T21:42:13.530256
2013-07-22T09:35:56
2013-07-22T09:35:56
11,384,784
1
1
null
null
null
null
UTF-8
Python
false
false
108,489
py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 1.3.40 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3,0,0): new_instancemethod = lambda func, inst, cls: _itkCropIm...
dea6745e243b7a67b860dc3d86998254c22d6dd9
112e792b80f0ba5f0989a297156d1554e18034d9
/testapp/migrations/0003_person__etag.py
77350671fec980d95092bece88612d0351d2bf1b
[]
no_license
VNG-Realisatie/vng-api-common
ba4537c230f47f0b0ba305eccc289eef09be56f2
609c931b3f8b640aa6dff6d02cfb799745f25eb5
refs/heads/master
2023-06-26T22:52:50.419762
2023-06-20T11:20:53
2023-06-20T11:20:53
136,349,326
4
14
null
2023-09-01T14:26:58
2018-06-06T15:31:27
Python
UTF-8
Python
false
false
629
py
# Generated by Django 2.1.8 on 2019-09-05 06:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("testapp", "0002_auto_20190620_0849")] operations = [ migrations.AddField( model_name="person", name="_etag", field=mod...
ceb1883778ddd0a2c8c0827fd3ee230013717c7f
da370ba0df9700519139e1da54f3e7f38e9b7f5f
/.nox/tests/lib/python3.7/site-packages/tensorflow_probability/python/positive_semidefinite_kernels/positive_semidefinite_kernel.py
79f834dc7218d03f27472a50abf01fcb1c2b97fa
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
antonevenepoel/open_spiel
90e3c7c6611cf508f2872237412fd67cf6cd10e0
f2f0c786410018675fc40e9a5b82c40814555fa8
refs/heads/master
2021-03-15T20:57:00.562672
2020-05-15T16:10:23
2020-05-15T16:10:23
246,877,171
0
0
Apache-2.0
2020-03-12T16:07:42
2020-03-12T16:07:41
null
UTF-8
Python
false
false
30,020
py
# Copyright 2018 The TensorFlow Probability Authors. # # 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...
b43075304e3f3743babbc05752088d35d38d269f
8370083dbbbd32740ad1862637809396dc7984e2
/paresh60/a12.py
673c08cc381941391743fa151ddb4784c6997b26
[]
no_license
parshuramsail/PYTHON_LEARN
a919b14aab823e0f5e769d8936ddbfb357133db2
8c76720bf73f13cf96930e6d4d5128e6ba9aa535
refs/heads/main
2023-07-14T16:25:26.240555
2021-08-29T17:10:19
2021-08-29T17:10:19
401,095,644
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
# Method over-loading in python using default argument. class A: def first(self,f=None): if f is not None: print('Method',f) else: print('method without argument') a=A() a.first() print(a.first('with argument'))
29e71287fe48a5b6f7722a2cac26373b8fdbe652
d6833270e21fc14d8dd9d6624f8906ed7fe3ae86
/SoarUtils.py
3944a872bd43b057c2eda986c0618db191e20328
[ "MIT" ]
permissive
ChienDavid/pysoarlib
0f9c91424f7900d43b39e401f91274b0fdf21540
3c722d163acf3dd35c5be914bf200e23369e169a
refs/heads/master
2022-10-24T22:37:24.839494
2020-06-13T15:10:32
2020-06-13T15:10:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,783
py
import Python_sml_ClientInterface as sml from .SoarWME import SoarWME class SoarUtils: """ A Class containing static utility methods for dealing with Soar and working memory """ def update_wm_from_tree(root_id, root_name, input_dict, wme_table): """ Recursively update WMEs that have a sub-tre...
8f8df82e8f10eae8a382750c473b56390d9cf50e
52243c4a05a296e7c042663b5942faa47eb66aee
/common/plot_points_shp.py
2f0e6e7945bf659016fd5b03ffaaa47015baf92c
[ "MIT" ]
permissive
joaoppadua/Pesquisas
fbe0311b59340c041732d6d1f7f4862fa6c53198
808d8b0ef9e432e05a4f284ce18778ed8b3acd96
refs/heads/master
2023-07-16T02:50:30.846205
2021-09-03T13:34:54
2021-09-03T13:34:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
import matplotlib.pyplot as plt, geopandas as gpd from sklearn.preprocessing import MinMaxScaler def plot_points_shape_file( shape_file, list_values, list_longitude, list_latitude, title ): scaler = MinMaxScaler(feature_range=(50, 1000)) list_final = scaler.fit_transform([[i] for i in (list_values)]) ...
44ae1b353c4c95c6209f6de8cde15112550f0a3b
f966c891c666db846d86406cb9c08a530902d032
/algorithms/implementation/divisible_sum_pairs.py
94ca67a38d2a2b8e609d8ed2769e0956df8b0853
[]
no_license
rickharris-dev/hacker-rank
36620a16894571e324422c83bd553440cf5bbeb1
2ad0fe4b496198bec1b900d2e396a0704bd0c6d4
refs/heads/master
2020-12-25T14:33:20.118325
2016-09-06T01:10:43
2016-09-06T01:10:43
67,264,242
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
#!/usr/bin/python n,k = raw_input().strip().split(' ') n,k = [int(n),int(k)] a = map(int,raw_input().strip().split(' ')) count = 0 i = 0 for i in range(0,n): j = i + 1 while j < n: if (a[i] + a[j]) % k == 0: count += 1 j += 1 print count
85404e686fe6601424f46561d0938c179b5a1cb7
dddbfd8eb6dff0bd3449bac87ee76b5c3e0bdfb1
/icehouse-patches/neutron/dvr-patch/neutron/services/vpn/plugin.py
74218e2ab6b6e6fecfba5e5f3a40c5d4d3e0f0af
[ "Apache-2.0" ]
permissive
joey5678/tricircle
40897fed8fe9d6772e8878b4f06ba1a829636488
e211f7efef129bbfb038cc05232ea1de33f82a97
refs/heads/master
2021-01-17T21:04:32.945469
2014-11-17T09:46:29
2014-11-17T10:10:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,525
py
# (c) Copyright 2013 Hewlett-Packard Development Company, L.P. # 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/license...
16cac5e803f640d4ca511eefb60e7fe8ff4999f1
73cb6d22aa85f00808fdc58d5998e85b5ff7deea
/anunciotest/urls.py
2d4965a2709628e794b96ce06c579ad62f2af6d6
[]
no_license
juanshocl/anunciotest
d0edf8b2535f31cbd93dbfe9d075b346a2e1247c
43e447038233456727bcd689f48f6440a80a6d3f
refs/heads/master
2023-08-14T05:53:29.389870
2020-06-05T15:36:54
2020-06-05T15:36:54
269,683,683
0
0
null
2021-09-22T19:09:54
2020-06-05T15:26:09
Python
UTF-8
Python
false
false
768
py
"""anunciotest URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
64d1d215eb66bb8fe647dfa71e5b4e50a6e7d16d
f9e1d9c71d232aa0bcf03627259e6c9f88538b18
/gs70PageExpiredAfter20Seconds/gs70/urls.py
9912e105f6b2d0ea566a6baf3471f65ae0e3e527
[]
no_license
nayan-gujju/Django-Practice
a7db202b6a3627a6a4e9f96953b61e43eaf68cb1
eafa29e9321a1683867b2ea1d26ca74dfa6db12d
refs/heads/master
2023-07-27T11:41:43.956705
2021-09-09T08:47:44
2021-09-09T08:47:44
403,917,725
0
0
null
null
null
null
UTF-8
Python
false
false
879
py
"""gs70 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
881028d34f8ae09d7ee3fa9e047a5a4c55c4a893
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/CJ/16_0_3_54N_c.py
a900e884b099ed456e2e4f9878c7443257e54913
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,146
py
#!/usr/bin/python luts = [] def initlut(): for i in range(2,11): l = [] for k in range(0,32): l.append(i**k) luts.append(l) # stackoverflow def is_prime(n): if n == 2 or n == 3: return True, 0 # never happens in our case? if n < 2: return False, 1 if n%2 == 0: return False, 2 if n < 9: return True...
773a41d0dcc8b30a7a4ad88f2e2719f1d65a4822
3774a634f361e99bb7f0b8fb172290b106e4072e
/grafatko/__init__.py
0a13235dd8109a9d55e4de6c7e60d27ea97b7288
[ "MIT" ]
permissive
knut0815/Grafatko
13a7300a25e5931e4b4106a6b6425b0e4dadace4
11f09c15567e34e37aee07d8356af25b679fb429
refs/heads/master
2023-04-24T18:54:28.239521
2021-05-14T16:27:33
2021-05-14T16:27:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
26,837
py
import os import sys import webbrowser import argparse from importlib.machinery import SourceFileLoader from functools import partial from random import random from math import pi from PyQt5.QtWidgets import * from PyQt5.QtGui import * from qtmodern import styles from grafatko.controls import * from g...
a73d86d3a4f951a81943d8e5269cbe679da0b96d
7727187a009e4b9c46c2fe06609372ec8814cd23
/freemix_akara/__init__.py
91c164e4bb4284d6a3acfe41a1ff6a0104cecf65
[]
no_license
govtmirror/freemix-akara
ebf204554f4effc0543e60083698f2ea012413b8
1d10c3f02afbd4268852e2c52afdf77809176bdd
refs/heads/master
2021-01-12T07:47:08.183429
2014-06-05T18:53:56
2014-06-05T18:53:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
787
py
import os import sys target_version = "5.0.0" def build_version(): distance ="0" try: from subprocess import Popen, PIPE prev_tag,distance,revision = Popen(["git", "describe", "--match", "[0-9]*", "--long"], cwd=os.path.dirname(__file__), ...
b09b6faf12f4a4ca4b0c15e69bb14fb55025f71c
23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6
/rootfs/usr/lib/pymodules/python2.6/orca/scripts/apps/Instantbird/script_utilities.py
30ada4b76dc1afe520b58b72cbf76629cd6b7945
[]
no_license
xinligg/trainmonitor
07ed0fa99e54e2857b49ad3435546d13cc0eb17a
938a8d8f56dc267fceeb65ef7b867f1cac343923
refs/heads/master
2021-09-24T15:52:43.195053
2018-10-11T07:12:25
2018-10-11T07:12:25
116,164,395
0
0
null
null
null
null
UTF-8
Python
false
false
69
py
/usr/share/pyshared/orca/scripts/apps/Instantbird/script_utilities.py
2a87718535884ed7542b5b091ab25bf9c0463213
43e0cfda9c2ac5be1123f50723a79da1dd56195f
/python/paddle/fluid/tests/unittests/test_generate_proposals_v2_op.py
506176d146c572f653a460b40608bbb55357141d
[ "Apache-2.0" ]
permissive
jiangjiajun/Paddle
837f5a36e868a3c21006f5f7bb824055edae671f
9b35f03572867bbca056da93698f36035106c1f3
refs/heads/develop
2022-08-23T11:12:04.503753
2022-08-11T14:40:07
2022-08-11T14:40:07
426,936,577
0
0
Apache-2.0
2022-02-17T03:43:19
2021-11-11T09:09:28
Python
UTF-8
Python
false
false
13,448
py
# Copyright (c) 2020 PaddlePaddle 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...
543f98e378822d026624672325a7e5e70e01bdbb
0103046cd77e9f86ccde477736de36bba766ceb6
/src/sentry/projectoptions/manager.py
e0fea86bd8bc6dd142d90dbc9d5bf9ee8979bf40
[ "BUSL-1.1", "Apache-2.0" ]
permissive
kaozdl/sentry
ad41ada649a20300e9f2fe69050200cfbf738a63
63d698f5294f64a8c206b4c741e2a11be1f9a9be
refs/heads/master
2021-06-21T18:24:21.713064
2021-03-04T19:45:20
2021-03-04T19:45:20
198,681,569
0
0
BSD-3-Clause
2019-07-24T17:32:29
2019-07-24T17:32:28
null
UTF-8
Python
false
false
3,109
py
import uuid import bisect from datetime import datetime from pytz import utc class WellKnownProjectOption: def __init__(self, key, default=None, epoch_defaults=None): self.key = key self.default = default self.epoch_defaults = epoch_defaults self._epoch_default_list = sorted(epoch...
1a1cb129232e0e97be0322ccfb3ff3d58cbee9bc
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/readtwice/models/narrative_qa/preprocess_lib.py
c4826fd2778991d70acaaa4911bced36be5f44de
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
32,958
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # 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 applicab...
ead7b1a0755191bb9b690a567988c0afb102bd9f
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/man/call_last_world_with_next_woman/want_last_case/come_new_hand/few_person.py
61c2026eb36fe40fd1c4e1cefa0bcdb43a2f6891
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
#! /usr/bin/env python def group(str_arg): thing(str_arg) print('feel_company_by_week') def thing(str_arg): print(str_arg) if __name__ == '__main__': group('same_part')
07abeb853173fc2e69c1a3dea3176bc3904f1b83
cdb186ad49bba1406c81f634b936e73f8cb04009
/ARC/002/a2.py
b88ac58257608a246949e7fe5a812d771b81e63d
[]
no_license
ToshikiShimizu/AtCoder
9e46f5581f2c1f5149ce1394d61d652cda6256a3
41fe6408c20c59bbf1b5d7ee9db2e132f48ad1ac
refs/heads/master
2023-07-26T22:45:51.965088
2023-07-10T14:11:35
2023-07-10T14:11:35
148,154,815
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
#coding:utf-8 y = int(input()) if (y%400==0): print ("YES") elif (y%100==0): print ("NO") elif (y%4==0): print ("YES") else: print ("NO")
ed52f1f1bcf6a8340ae7a9012b1186ea964513df
6710c52d04e17facbc9fb35a7df313f7a2a7bd53
/0258. Add Digits.py
9fcb8f9b0f7b36558df111738752ea389b781eb3
[]
no_license
pwang867/LeetCode-Solutions-Python
535088fbe747a453360457728cc22cf336020bd2
188befbfb7080ba1053ee1f7187b177b64cf42d2
refs/heads/master
2022-11-13T16:20:28.211707
2020-06-28T06:01:14
2020-06-28T06:01:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
""" explanation, mathematical proof: N=(a[0] * 1 + a[1] * 10 + ...a[n] * 10 ^n),and a[0]...a[n] are all between [0,9] we set M = a[0] + a[1] + ..a[n] and another truth is that: 1 % 9 = 1 10 % 9 = 1 100 % 9 = 1 so N % 9 = a[0] + a[1] + ..a[n] means N % 9 = M so N = M (% 9) """ # digit root, time/space O(1) class Soluti...
a9617016af138a8744cd4ab32de42682c82f62a9
6f44214567f1fe9c5534ea3d55800e9aaabaa390
/evergreen_requests.py
73c97ef056f55049281e3fcfd2f921c5cf23debe
[ "BSD-2-Clause" ]
permissive
saghul/evergreen-requests
c3505c1f669834b997a3b15907cd25a1d88b08f1
4df9e7564492d82d9850399ad6b0c83e59e30423
refs/heads/master
2016-09-06T05:53:26.345690
2013-05-14T21:36:22
2013-05-14T21:36:22
10,063,878
1
0
null
null
null
null
UTF-8
Python
false
false
3,433
py
from functools import partial from operator import methodcaller from evergreen import futures, patcher # Monkey-patch. requests = patcher.import_patched('requests') __version__ = '0.0.1' __all__ = ['map', 'imap', 'get', 'options', 'head', 'post', 'put', 'patch', 'delete', 'request', '__version__'] # Export same i...
d2004d8e68741301c502305b263147f20710d51e
ef821468b081ef2a0b81bf08596a2c81e1c1ef1a
/PythonWebBasics_Django/Django_Web_Basics/Django_Web_Basics_2/migrations/0007_auto_20210130_1511.py
c45bf61e0b3924a636cba22def0c3c357974ec4f
[]
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
448
py
# Generated by Django 3.1.5 on 2021-01-30 15:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Django_Web_Basics_2', '0006_auto_20210130_1456'), ] operations = [ migrations.AlterField( model_name='game', name='l...
cf3fde1e92f30234f03259580d338b0fc8a49ef0
94a4388cee6dfeaa1674fba20423e8a3f8f6dd42
/backend/game_mdoe_18873/urls.py
d4b0c3f0622dafe5bd8ba458e4c2793e11cd2878
[]
no_license
crowdbotics-apps/game-mdoe-18873
0dc5c1e1827f382d5a84847697d0b1b05191066d
8bcbe6c9b116fa1294b8104018c9cd36b1536c13
refs/heads/master
2022-11-15T17:29:36.126851
2020-07-13T22:23:28
2020-07-13T22:23:28
279,423,144
0
0
null
null
null
null
UTF-8
Python
false
false
2,058
py
"""game_mdoe_18873 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cla...
6e0aac2a7595214d87e1fd0c6e350a34022d7300
8a223de74cf3d44d7b3275a3be3b4f8bebf0d9b8
/big.py
a63654aaed6d317bae9c002b9d4f5c3da5f1e39e
[]
no_license
sarureddi/j
cdb69fd5be90d140b20d1b2ad47ab3100e4776d9
6e2a4f8298990c787dc171d5d4e6e2e1424b8745
refs/heads/master
2020-05-31T22:23:28.208008
2019-06-04T17:03:55
2019-06-04T17:03:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
a,b=(input()).split() if(a>b): print(a) elif(a<b): print(b) else: print(a)
579f9cdd764f516d3acae14fe2bbe0ae5e6f94b5
165d2e9a6d451b3a614a28629cca256f849b73ab
/notebooks/_solutions/case2_biodiversity_analysis21.py
087bcee2f2924c310bc97c9115dab1564054c9e1
[ "BSD-3-Clause" ]
permissive
DemeulemeesterT/DS-python-data-analysis
5b2439382571769dcc9b61fb3408a51552364c08
b4dd68b9c912c5d5c52c607aa117f5054449c73d
refs/heads/master
2023-05-07T16:51:31.426493
2021-05-31T07:24:38
2021-05-31T07:24:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
species_per_plot = survey_data.reset_index().pivot_table(index="name", columns="verbatimLocality", values="occurrenceID", aggfunc='count') # alte...
1401b708e738bdf68f663d12f6a128f484f08f08
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/statistics_timeline_item.py
71106a07b0316521f9190c69730cb31447e4a86e
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
4,489
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class StatisticsTimelineItem: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attri...
bc34681fd530d87f8de958eb30d88c342abbeffe
daee54824cb107f9b5749e3c12e7f09f544bac0e
/modules/readers/resources/python/rawVolumeRDRViewFrame.py
f809c2e9c0e1da779a57aa6d0deafd0a9ea6ba7c
[]
no_license
JoonVan/devide
8fa556d2b42c5ad70c3595303253f2a171de0312
586225d68b079e2a96007bd33784113b3a19a538
refs/heads/master
2020-12-26T06:25:01.744966
2017-01-22T19:47:50
2017-01-22T19:47:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,028
py
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- # generated by wxGlade 0.6.3 on Sat Feb 09 13:43:04 2008 import wx # begin wxGlade: extracode # end wxGlade class rawVolumeRDRViewFrame(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: rawVolumeRDRViewFrame.__init__ kwds["style"] ...
fc7f96130086adfc9ad4a25f653c89d83852ef51
bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6
/AtCoder/EducationalDP/n_2.py
cbed84f2ac5e605e38eb513f8cf7a89401c910ac
[]
no_license
y-oksaku/Competitive-Programming
3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db
a3ff52f538329bed034d3008e051f30442aaadae
refs/heads/master
2021-06-11T16:14:12.635947
2021-05-04T08:18:35
2021-05-04T08:18:35
188,639,647
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
import numpy as np N = int(input()) A = np.array(input().split(), np.int64) Acum = np.zeros((N, N + 1), dtype=np.int64) for i in range(N): Acum[i, i + 1:] = A[i:].cumsum() dp = np.zeros((N, N + 1), dtype=np.int64) for length in range(2, N + 1): for left in range(N - length + 1): right = left + lengt...
cc2d90b5c507367ae76264756846dcd49936d646
f9bfba4002964d24df97d20722e116b4f7cf52de
/recursor/atlas/chart.py
32d9c3f847990d5343b2ca0226ca7e4861424a89
[ "MIT" ]
permissive
OaklandPeters/recursor
a42ce77c190a3b537b671f88e74f9ecab81841ad
3a5eabd0b43e5ec2a66e6215a9bad70b4ab47c34
refs/heads/master
2020-04-05T23:35:29.259107
2015-04-24T21:39:16
2015-04-24T21:39:16
27,939,875
0
0
null
null
null
null
UTF-8
Python
false
false
118
py
""" Standard implementation of Atlas class. Essentially just a list of dicts, with item access affecting sublists """
6564f4093b1a148ae1df81d5d70bfef545717316
747f759311d404af31c0f80029e88098193f6269
/addons/etl_interface/etl_component/input/xml_in.py
a491b849e447f154b6d922032dbf9fd2564c96c9
[]
no_license
sgeerish/sirr_production
9b0d0f7804a928c0c582ddb4ccb7fcc084469a18
1081f3a5ff8864a31b2dcd89406fac076a908e78
refs/heads/master
2020-05-19T07:21:37.047958
2013-09-15T13:03:36
2013-09-15T13:03:36
9,648,444
0
1
null
null
null
null
UTF-8
Python
false
false
81
py
/home/openerp/production/extra-addons/etl_interface/etl_component/input/xml_in.py
102852e3762a3459527bfeaaf5209fbd07acaf95
e70e8f9f5c1b20fe36feab42ad4c2c34fc094069
/Python/Advanced OOP/Inheritance/Players and monsters/05. Knight.py
6e1783c65ccaa292e9d2cfcc4e9d7be7e99ab6ad
[ "MIT" ]
permissive
teodoramilcheva/softuni-software-engineering
9247ca2032915d8614017a3762d3752b3e300f37
98dc9faa66f42570f6538fd7ef186d2bd1d39bff
refs/heads/main
2023-03-29T15:55:54.451641
2021-04-09T18:46:32
2021-04-09T18:46:32
333,551,625
0
0
null
2021-04-09T18:46:32
2021-01-27T20:30:18
Python
UTF-8
Python
false
false
68
py
from project.hero import Hero class Knight(Hero): pass
39011567a8e74d0c3d1a0fa36bbb225839194414
349dadbf45b7c12a3fe41c5e0421c0488b679919
/transformers/tests/test_trainer_seq2seq.py
dc4a11260d4c0fe61480ce2e944d48835dcfbbd3
[ "BSD-3-Clause", "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Apache-2.0" ]
permissive
salesforce/CodeRL
c772e408bac690527759f416ea22add4c97e5bec
51db4ff983d5376e62b9e7eba150316a651c80d9
refs/heads/main
2023-08-18T18:38:02.740995
2022-11-18T16:14:28
2022-11-18T16:14:28
508,912,853
412
52
BSD-3-Clause
2023-08-31T07:51:27
2022-06-30T02:54:36
Python
UTF-8
Python
false
false
4,859
py
# coding=utf-8 # Copyright 2020 the HuggingFace Inc. team. # # 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...
b0914bfb223699b5b1e55591b0080efe663329aa
f94c2337607ef06856fcff8acd18e60059894e21
/src/program/consumers.py
9d141e87613bd88c6f795b85e8bcb5a01bc8c4e4
[]
no_license
coral/bornhack-website
d82446486db8523d0e059e82851ae80498b0bf2d
260a37af3c1cb4cd33dfc8cb80f6bd966b794c3d
refs/heads/master
2021-01-16T00:09:15.237955
2017-08-10T18:55:13
2017-08-10T18:55:13
99,955,304
0
0
null
2017-08-10T18:51:34
2017-08-10T18:51:34
null
UTF-8
Python
false
false
2,043
py
from channels.generic.websockets import JsonWebsocketConsumer from camps.models import Camp from .models import EventInstance, Favorite class ScheduleConsumer(JsonWebsocketConsumer): http_user = True def connection_groups(self, **kwargs): return ['schedule_users'] def connect(self, message, **k...
1fa159fc3242994e4c5012f910fd314436c5735a
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_210/312.py
a4c44e7288c46a54c1f07b45e3b43b556f87655f
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,008
py
''' t = int(input()) # read a line with a single integer for b in range(1, t + 1): n = list(input()) eqInd = 0 for i in range(1, len(n)): if n[i] < n[i-1]: n[eqInd] = str(int(n[eqInd]) - 1) n[eqInd + 1:] = ['9'] * (len(n) - eqInd - 1) break ...
d63d12e23a52921f34d12e3a1cdc0d1b61ad85ac
9249947c07f8addf64dd3d2a2f9f37d379f83921
/client_tools/svc/scratch.py
4b5fae33a95ec2120c0dc9b330a9788b34c10759
[ "MIT" ]
permissive
operepo/ope
eb71aa763d157416009d7c3052ace11852660e0a
018c82af46845315795c67c36801e2a128f515d5
refs/heads/master
2023-08-08T15:05:28.592589
2023-07-25T00:22:24
2023-07-25T00:22:24
96,855,111
12
11
MIT
2023-03-03T15:10:34
2017-07-11T05:42:14
Perl
UTF-8
Python
false
false
48,207
py
import pythoncom import win32serviceutil import win32service import win32event import servicemanager import socket import time import datetime import sys import os import logging import random from win32com.shell import shell, shellcon import ntsecuritycon import win32security import win32api import win32gui import win...
2673f7a679c32787464288aeaaf3f84c4970adcd
1852cdc422fe605a379ab24368157a1b82e8f66f
/037_trunc_primes.py
2367585319fcdf307dc6473976ef2f6828dcd21d
[]
no_license
JesseAldridge/Euler
e96bd7995fd8da60ce4db3c1daa20a719778b4a2
ee23c562cfcf3187f8768264249a41470c9d6355
refs/heads/master
2021-01-16T19:35:53.064280
2014-07-06T01:20:26
2014-07-06T01:20:26
2,194,822
2
0
null
null
null
null
UTF-8
Python
false
false
710
py
def gen_primes(): ## http://stackoverflow.com/questions/567222/simple-prime-generator-in-python D = {} q = 2 while True: if q not in D: yield q D[q * q] = [q] else: for p in D[q]: D.setdefault(p + q, []).append(p) del D[q] q += 1 # Find the...
89f8dbce692f523fe4b4add92ab763aebb764dbb
bdc47ebbe3e125a48d3cfe762061f4b1070465c4
/mysite/fcuser/migrations/0001_initial.py
49fb63275f1f537773b58852b3526f7fe6aadb84
[]
no_license
swpheus/Django_prj
3de3d2b110e51087cdf89b95fc2b6ea3f63acf00
10b9af058f0b76c424e24ecd1996a49646948547
refs/heads/master
2020-07-21T17:17:14.019550
2019-09-21T03:00:36
2019-09-21T03:00:36
206,929,161
0
0
null
null
null
null
UTF-8
Python
false
false
791
py
# Generated by Django 2.2.4 on 2019-08-30 12:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Fcuser', fields=[ ('id', models.AutoField(a...
5c04bc43c47e68240dcf58ac436ae995004210b7
0a33cc0ebb67c51cc38750f0f04c3e6c088e3b1a
/tests/components/media_source/test_init.py
491b1972cb680ef2f8d91bc7ee511cd93d8951ad
[ "Apache-2.0" ]
permissive
robert-alfaro/home-assistant
e9bb08ad22a167ed226fb3de8f5b36acfc393548
4a53121b58b77a318f08c64ad2c5372a16b800e0
refs/heads/dev
2023-02-28T06:46:23.217246
2022-04-26T17:30:08
2022-04-26T17:30:08
115,894,662
4
0
Apache-2.0
2023-02-22T06:21:08
2018-01-01T02:00:35
Python
UTF-8
Python
false
false
7,917
py
"""Test Media Source initialization.""" from unittest.mock import Mock, patch import pytest import yarl from homeassistant.components import media_source from homeassistant.components.media_player import MEDIA_CLASS_DIRECTORY, BrowseError from homeassistant.components.media_source import const, models from homeassist...
ee898a8219a29d065569ea7a3d1dc90e6507d516
a3fa25d5424c81e1d5aef431916be9759a88cf91
/src/main/python/lib/default/gtkgui/default_gui/runningactions.py
eb6950505cfa100e4dafd11ff9539c69900d75a3
[ "MIT" ]
permissive
emilybache/texttest-runner
e4d5385bfb2d7f543b9e9828fae90681f49e5c77
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
refs/heads/master
2021-01-22T23:20:28.358273
2015-07-07T18:03:56
2015-07-07T18:03:56
17,683,055
0
0
null
null
null
null
UTF-8
Python
false
false
37,337
py
""" The various ways to launch the dynamic GUI from the static GUI """ import gtk, plugins, os, sys, stat from .. import guiplugins from copy import copy, deepcopy # Runs the dynamic GUI, but not necessarily with all the options available from the configuration class BasicRunningAction: runNumber = 1 def __i...
c994e9588ddb9863412a93b03416f881104cb03e
7e4e2acb0cdd4dba7d23e15ce56cdc3e4842f601
/openstack/telemetry/v2/_proxy.py
f9265372a1af74b7c92e798ebfaed693919c7dcc
[ "Apache-2.0" ]
permissive
david-guyon/python-openstacksdk
99b2a52af9acf75b3df76438569477d2a46c1679
4a7c643b1b09904ac5ab8863a06a11e493a3d235
refs/heads/master
2021-05-28T23:06:46.337935
2015-02-26T23:12:53
2015-02-26T23:12:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,801
py
# 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 # distributed under t...
40fd3a424ce366164e63986b518fd63f14d16468
2a0efe30198c948982a85ea74c7e47ef9ecb4823
/pers/cyj/day11/shoot/person.py
124be128ac066503bc23040dc39c6c6912db87cf
[]
no_license
cyjhunnyboy/PythonTutorialProj
00151ed364807c6df54b1b0300cb622086128b74
c3a02e6fa2dd09bf5d7b47fd78a4d3a31356a39d
refs/heads/master
2023-02-23T18:35:45.481252
2021-01-25T11:13:45
2021-01-25T11:13:45
298,922,161
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
class Person(object): """人类""" def __init__(self, gun): self.gun = gun def fire(self): self.gun.shoot() def fillBullet(self, count): self.gun.bulletBox.bulletCount = count
ca3aa4adc107683032e77e9d1df22364acfe304a
0e4dc82a94563dacb0c25d0d43fbcbe3def21f72
/259-3Sum-Smaller/Python/Solution01.py
d722b1e3406c547a4b5602fe95da262f1617fbce
[ "CC-BY-3.0", "MIT" ]
permissive
Eroica-cpp/LeetCode
3ce3b05b3098e8097c1090e2116b813efaadd2a3
07276bd11558f3d0e32bec768b09e886de145f9e
refs/heads/master
2021-06-20T05:41:30.506250
2017-03-16T05:17:39
2017-03-16T05:17:39
35,126,816
7
2
null
null
null
null
UTF-8
Python
false
false
1,478
py
#!/usr/bin/python """ ============================================================================== Author: Tao Li ([email protected]) Date: Aug 29, 2015 Question: 259-3Sum-Smaller Link: https://leetcode.com/problems/3sum-smaller/ ============================================================================== Gi...
d8a209f8fec660b58abf72cb3b33b420aa69cf12
665d9bad46e68f779512640e582d2522867b0dba
/Linked List Problems/21. Merge Two Sorted Lists.py
48c4ac08963a9b30f419087ad340bcb3731dfc20
[]
no_license
RahatIbnRafiq/leetcodeProblems
6fd1e9726b14b7ad3571e5a4af5665b72f7aee0a
2d35590d189938e0705a21be110e75e0b209ea96
refs/heads/master
2021-11-25T11:58:20.498911
2021-11-25T00:43:04
2021-11-25T00:43:04
72,865,562
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def mergeTwoLists(self, l1, l2): d1,d2,d3 = ListNode(0),ListNode(0),ListNode(0) d1.next, d2.next = l1,l2 cur = d3 whi...
77d1b6b14ec4e15eceb3b3cb3df095166f40518e
88bbf27deb0b2a1b96985c0a94ff0b7a3d012820
/Feeds/migrations/0001_initial.py
4b9aaa549847b201a89bcbc92820989702ecc36c
[]
no_license
Code-Community99/Hiq-django
e8efb7d63bd4fc0bc8e2af193fdec9aaab0975b0
af62622648ad88f6e8d94e86a8dc5d6660e3bbe2
refs/heads/master
2022-12-14T01:12:45.218318
2020-05-18T23:29:35
2020-05-18T23:29:35
233,811,384
2
1
null
2022-12-08T03:34:53
2020-01-14T10:02:55
JavaScript
UTF-8
Python
false
false
783
py
# Generated by Django 3.0.2 on 2020-01-31 11:46 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('signup', '0001_initial'), ] operations = [ migrations.CreateModel( name='fe...
64bec78da4f9613a704e778e9861c439a2f6da10
f281d0d6431c1b45c6e5ebfff5856c374af4b130
/DAY001~099/DAY84-BOJ7579-앱/ykim.py
57d20480ba6f75c21a3574aa7376c4bf95479268
[]
no_license
tachyon83/code-rhino
ec802dc91dce20980fac401b26165a487494adb4
b1af000f5798cd12ecdab36aeb9c7a36f91c1101
refs/heads/master
2022-08-13T09:10:16.369287
2022-07-30T11:27:34
2022-07-30T11:27:34
292,142,812
5
6
null
null
null
null
UTF-8
Python
false
false
799
py
import sys N,M=map(int,sys.stdin.readline().split()) #앱 m=list(map(int,sys.stdin.readline().split()))#메모리 c=list(map(int,sys.stdin.readline().split()))#비활성화 비용 result=[10001]*(M+1) result[0]=0 #M = 확보할 메모리 for i in range(N): rm=m[i]#해당 메모리를 제거할때 for j in range(M,-1,-1): if result[j]!=10001:#해당 값이있다면 ...
6a77925e19d91eaed67900e2e238817e5b1b7ae6
2e70b3ce93762c5b66fba57f8b9cba37aacf0702
/new/event/migrations/0068_auto_20190604_0558.py
2b9ad4a849e0cdbfb1119ab88bfba5b068febf1e
[]
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
536
py
# Generated by Django 2.2.1 on 2019-06-04 05:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('event', '0067_auto_20190602_1815'), ] operations = [ migrations.RenameField( model_name='eventmember', old_name='account', ...
8abf0d510ba72fc3a8052dcc5dd840e749d5fe57
84bf0086bfe7af894bbfba353f1884ae9f31c335
/1123. Lowest Common Ancestor of Deepest Leaves/Python 3/solution.py
3ab86fe8912541cd5a9e096944789f1d46549a38
[]
no_license
HarrrrryLi/LeetCode
7625d9ec3d7854f72e7aeeb0292960af06a78d05
fe5c6936627c2459731ddda6f67422c217b3cc91
refs/heads/master
2020-04-12T23:57:12.387253
2020-01-16T02:22:26
2020-01-16T02:22:26
162,834,492
0
0
null
null
null
null
UTF-8
Python
false
false
1,129
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def lcaDeepestLeaves(self, root: TreeNode) -> TreeNode: stack = collections.deque() path = set() path.add((root,...
4eebe69f6eb17ac0db185dfa84f1ab896d702cd5
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/3a4115ceaf044682aee09918ac6e23d1.py
b78aaaad71268364f91be3bfbc607b615372c346
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
236
py
def hey(arg): arg = arg.strip() if arg == '': return 'Fine. Be that way!' elif arg.isupper(): return "Whoa, chill out!" elif arg.endswith('?'): return "Sure." else: return "Whatever."
36ae90b43eb93bcefa102186ba36f11fe3c82757
650b3dd4cc74f32db78f7d99cef9907aec78a222
/dialogs/Transaksi/fFundCollection_intr.py
1f13cbe037fb3f889079353bc5fd50c4f76ebfc3
[]
no_license
mech4/PKTrx
29b871ab587434e7c208175c248f48d9b6c80a17
cf01bc5be8837d632974786d2419c58b94a0381d
refs/heads/master
2020-03-29T19:55:07.331831
2012-09-18T20:22:52
2012-09-18T20:22:52
6,289,691
0
1
null
null
null
null
UTF-8
Python
false
false
16,055
py
# GLOBALs MAPEntity = {'Z': 1, 'I': 2, 'W': 3, 'A' : 4 ,'N' : 5} DefaultItems = [ 'Inputer', 'BranchCode', 'TransactionDate', 'FloatTransactionDate', 'CurrencyCode', 'Rate', 'TotalAmount', 'CashType',...