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
5e15489107b3c51fb2cfad091143fbf0e6ceb0fc
9009ad47bc1d6adf8ee6d0f2f2b3125dea44c0aa
/cf-540-a.py
44dd74a1dc85a6de815348507461f004dcdbb3da
[]
no_license
luctivud/Coding-Trash
42e880624f39a826bcaab9b6194add2c9b3d71fc
35422253f6169cc98e099bf83c650b1fb3acdb75
refs/heads/master
2022-12-12T00:20:49.630749
2020-09-12T17:38:30
2020-09-12T17:38:30
241,000,584
0
0
null
null
null
null
UTF-8
Python
false
false
1,017
py
# JAI SHREE RAM import math; from collections import * import sys; from functools import reduce # sys.setrecursionlimit(10**6) def get_ints(): return map(int, input().strip().split()) def get_list(): return list(get_ints()) def get_string(): return list(input().strip().split()) def printxsp(*...
36d766acb64d266f4988a64145c619c6d89a0910
17331ee8285a1f19e4ca1abd89dac64da381959d
/03-accessing-web-data/reading-webpages.py
537e39244e68328b3514cbd9f43c78a7595785c4
[]
no_license
chaochaocodes/PY4E
3681367ce548fe9a423adb895fe76efda60521bb
09930f6187c3388b61903680bcd4a1533b0b4f82
refs/heads/main
2023-03-28T11:29:09.209120
2021-04-01T02:34:58
2021-04-01T02:34:58
333,506,525
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
''' Reading Webpages like Files using urllib ''' import urllib.request, urllib.parse, urllib.error # 1. Read like a File fhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt') for line in fhand: print(line.decode().strip()) # reads the HTML file! # returns header + body, but header not returne...
a4b161d665baf8d27aecbdb191e60e06308b2f62
8c7fba506eb022e627537e6017b97508ca453b65
/models/dbsetup.py
7b7c8e89cda78eb02cff7f6496740a112f1c6dcd
[ "MIT" ]
permissive
laminko/wBlog
4a6851ba159c5cf30461fd08b428647c14622c14
c2bdecede8bf589eabb57bd080e90d995261aafd
refs/heads/master
2020-04-06T07:05:22.722787
2016-09-15T09:01:34
2016-09-15T09:01:34
65,677,117
0
0
null
null
null
null
UTF-8
Python
false
false
6,885
py
from datetime import datetime SYM_PAGE_BREAKER = " {LMK:PAGE-BREAK} " SINGLE_SPACE = " " # Tables db.define_table('post', Field('title', 'string'), Field('body', 'text'), Field('body_pagebreak', compute=lambda r: ( r['bod...
[ "=" ]
=
f7881b2609d4092aa8e483ad9b8bc0d585901f87
67d8173a716da10a7350213d98938aae9f2115ce
/ProgrammingCourses/CS61A/project/maps/data/__init__.py
41d0dcae71d4be63e17e6aabe7e0795053028508
[]
no_license
jxie0755/Learning_Python
94490d41bdf93acf8396f843328e38b6da310b0f
143422321cbc3715ca08f6c3af8f960a55887ced
refs/heads/master
2021-11-02T22:47:35.790239
2021-09-26T04:26:23
2021-09-26T04:26:23
101,445,132
0
2
null
2019-02-19T15:48:44
2017-08-25T22:00:16
Python
UTF-8
Python
false
false
3,054
py
import collections import os from abstractions import * import data.jsonl DATA_DIRECTORY = "data" USER_DIRECTORY = "users" def load_data(user_dataset, review_dataset, restaurant_dataset): with open(os.path.join(DATA_DIRECTORY, user_dataset)) as f: user_data = jsonl.load(f) with open(os.path.join(DATA...
d3c366292f09c31949649f09f59f18df63e790be
1cad3fa574350c9be29282f518f4927efb26e18f
/http_api/api_intro.py
0c1edd60bc8199386fc7a5c103448f64018fc4dc
[]
no_license
EvgeniyBudaev/python_learn
c72fdc2c5a84dae03bfd6e5afc5453b795ada17f
1a5385e3412832dd9017536dad1140138143600e
refs/heads/main
2023-05-27T04:41:50.754525
2021-05-27T02:11:18
2021-05-27T02:11:18
337,162,792
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
import requests # url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2014-01-01&endtime=2014-01-02' # response = requests.get(url, headers={'Accept':'application/json'}) url = 'https://earthquake.usgs.gov/fdsnws/event/1/query?' response = requests.get(url, headers={'Accept':'application/...
9301f373603392c31e4ef37ab57d6eace6eb163f
cf470f7d3fd0ea481970bcdedcd869258f692d05
/aces_1.2/python/bin/create_aces_config
198eabe513ced3b60c560b6793299b56d29d36e7
[ "LicenseRef-scancode-unknown-license-reference", "AMPAS" ]
permissive
colour-science/OpenColorIO-Configs
3acef083127b698eb3252b45d724dfd4f5346c1a
b0a3ae218c24ed452e01ac1282d0b40e31dede6e
refs/heads/master
2023-09-03T11:51:31.862794
2022-04-14T20:17:13
2022-04-14T20:17:13
54,505,320
619
440
NOASSERTION
2022-04-14T20:17:14
2016-03-22T20:06:48
Roff
UTF-8
Python
false
false
802
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: AMPAS # Copyright Academy of Motion Picture Arts and Sciences """ Creates the *ACES* configuration. """ from __future__ import division import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from aces_ocio.generate...
e58b36b05c142642d3001d70c865a8a112804449
75dcb56e318688499bdab789262839e7f58bd4f6
/_algorithms_challenges/projecteuler/ProjectEuler-master(2)/ProjectEuler-master/156.py
aafe0dea8075d2124fd3dc79cbb842ba780bd38f
[]
no_license
syurskyi/Algorithms_and_Data_Structure
9a1f358577e51e89c862d0f93f373b7f20ddd261
929dde1723fb2f54870c8a9badc80fc23e8400d3
refs/heads/master
2023-02-22T17:55:55.453535
2022-12-23T03:15:00
2022-12-23T03:15:00
226,243,987
4
1
null
2023-02-07T21:01:45
2019-12-06T04:14:10
Jupyter Notebook
UTF-8
Python
false
false
2,015
py
import sys class Problem(): def __init__(self): self.found = None def solve(self): count = 0 for digit in range(1, 10): solution_sum = self.s(digit) print(digit, solution_sum) count += solution_sum print(count) def s(self, digit...
b34734bccd0addbe7a3f95e5866fe250ba44c343
e6ebd1f9e3968f6ed613e9f35e46716115e6e9c3
/chapter4/demo2.py
9d025bcb4070abbf880ddf67f5d49444fcbfdbdb
[]
no_license
huwanping001/Python
897046d3d6d1b420befeefcaa2b9544efa7d1881
3c76278f7a9b216b28b8880e0108af3c550b9372
refs/heads/main
2023-08-21T00:45:17.991833
2021-10-18T13:47:52
2021-10-18T13:47:52
409,586,414
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
# 学校:四川轻化工大学 # 学院:自信学院 # 学生:胡万平 # 开发时间:2021/9/18 9:54 #测试对象的bool值 print(bool(False)) #False print(bool(0)) #False print(bool(0.0)) #False print(bool(None)) #False print(bool('')) #False print(bool("")) #False print(bool(list())) #空列表 False print(bool([])) #空列表 False print(bool(())) #空元组 False prin...
3df69c8078977d9b51a98b936360a4cf6bcf6b89
1260ce7869ce32d6b434afbf273273b7b1ebea2d
/lorentz_equivariant_gnn/architectures/EquivariantGNN/egnn_base.py
ddcd258aec9bfcb6cb6915b699a963195d25437c
[]
no_license
savvy379/Lorentz-Equivariant-GNN
b3b30e964cfa9af39adcb4e8b73bc78b4f8b7b5e
3d1c74081bdd43387a7c530bce73580db379d22d
refs/heads/master
2023-08-01T06:43:13.229014
2021-09-22T18:35:15
2021-09-22T18:35:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,499
py
import sys, os import logging import pytorch_lightning as pl from pytorch_lightning import LightningModule import torch.nn.functional as F from torch.nn import Linear from torch_geometric.data import DataLoader import torch import numpy as np from sklearn.metrics import roc_auc_score, roc_curve from .utils import loa...
300dc5d3cf9ec6b7d67dca8ceb272fa0ad0e6d80
6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a
/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_rule_py3.py
0f8b6dc1a56b4743ed087bfac58ebfdafeb3318d
[ "MIT" ]
permissive
ashirey-msft/azure-sdk-for-python
d92381d11c48f194ec9f989f5f803db614fb73f2
e04778e13306dad2e8fb044970215bad6296afb6
refs/heads/master
2020-03-23T06:05:39.283442
2018-09-15T00:18:26
2018-09-15T00:18:26
141,188,192
0
1
MIT
2018-07-16T20:02:52
2018-07-16T20:02:52
null
UTF-8
Python
false
false
7,668
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 ...
d05ce141ecc9bf14ab3e7757f48348f9ccdd9d61
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/171/61531/submittedfiles/testes.py
0394990bdadaa06eebff3565e0697e79fea81b66
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
# -*- coding: utf-8 -*- import math #COMECE AQUI ABAIXO def media(a): soma=0 for i in range(0,len(a),1): soma=soma+a[i] media=soma/(len(a)) return(media) n=int(input('digite numero de elementos da lista:')) a=[] for i in range(0,n,1): numero=float(input('digite numero á ser inserido na lista...
c61d403099fed6fbcb69b33fa047ee2d16e137e1
5eb52c07e5b1bd00af77306f927f382b684cd6ff
/indy_common/generates_request.py
b70eefee0dfbe79d777c07d732f89f1458602edb
[ "Apache-2.0" ]
permissive
hyperledger/indy-node
bce39486988f5114581cff4f6d14fc1b7684143c
e6bb87d4c605aff9914491d062248b6ec857334c
refs/heads/main
2023-09-03T15:33:08.187153
2023-05-08T22:48:21
2023-05-08T22:48:21
77,021,566
691
783
Apache-2.0
2023-05-09T15:42:43
2016-12-21T05:45:04
Python
UTF-8
Python
false
false
328
py
from abc import abstractmethod class GeneratesRequest: @abstractmethod def _op(self): pass @abstractmethod def ledgerRequest(self): """ Generates a Request object to be submitted to the ledger. :return: a Request to be submitted, or None if it shouldn't be written ...
7c30c30dcc7cc854a841fbb8a6e3e7b45eb5bcf8
22aa900e70c8cc6005ecadbb2ae710526af8d3ba
/course/forms.py
8da7a5b70959e28879bb8df24e4db2ededff90aa
[]
no_license
skafis/career_choice
f79ac3df223122a19a7718d9247ca4e2e72ee22e
84d3ec752ba6da60e7130f132bd329ff72d66cae
refs/heads/master
2021-01-13T02:50:44.580867
2016-12-22T16:32:40
2016-12-22T16:32:40
77,144,113
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
from django import forms from .models import Courses class add_coursesForm(forms.ModelForm): class Meta: model = Courses fields = [ 'name', 'time', 'cost' ]
1999644c558f0f3bf2fc69e88aea396932927a64
f3ad39ebf9654c99edb33c0fee843a53f9b6c31a
/backend/wesmusicmedia_20833/settings.py
66d308873bed16394e0b2159023b8a1dcdfc1907
[]
no_license
crowdbotics-apps/wesmusicmedia-20833
306814d32b3acd43c446cd004351c9fb93009afa
474162c36a486c6028cfec8214d93d83fda4e235
refs/heads/master
2022-12-25T19:45:48.328522
2020-09-29T17:51:09
2020-09-29T17:51:09
299,693,724
0
0
null
null
null
null
UTF-8
Python
false
false
5,900
py
""" Django settings for wesmusicmedia_20833 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ ...
454994b05910daee4f982348fb1beb8bab821645
cf5bfac1e203ae0da1802cf539f32250b57e7224
/4.exceptions/exception101.py
dafb2cf845bdff6ba846e02634c5ec0ab88084d4
[]
no_license
jnepal/OReilly-Python-Beyond-the-Basics-OOP
fba2229ffd31b87e2ceab48c6c3f7f445ab47493
05050a7ecd0db5c9f18cc6e5ae49a07ddf6054cf
refs/heads/master
2021-05-01T07:16:26.957247
2018-02-11T18:16:36
2018-02-11T18:16:36
121,152,291
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
''' Handling Exceptions ''' import sys mydict = {'a': 1, 'b': 2, 'c': 3, 'd': 4} key = input('please input a key: ') try: print("The value for {0} is {1}".format(key, mydict[key])) except KeyError as err: print('the key ' + key + ' does not exists') print(err) # print(sys.exc_info()[0]) ''' ...
58be87c385080aa2d8610c062e6534b8eb59cef9
06adea92d1e66d653d0884e8469b7352f5de4f04
/matplotlibMine/change/ACF_PACFPlot.py
525672a6ccb4aba2cba6966636059490d812989e
[]
no_license
Gedanke/FigureDemo
a3cf1f0998fb0dc7acce9b90ff55453372759575
e37164521d9c4e8c5a05592749f1779bed2b0903
refs/heads/master
2023-04-19T08:47:35.417971
2021-05-05T05:09:48
2021-05-05T05:09:48
361,770,137
1
0
null
null
null
null
UTF-8
Python
false
false
842
py
# -*- coding:utf-8 -*- import pandas import matplotlib.pyplot as plt from statsmodels.graphics.tsaplots import plot_acf, plot_pacf # Import Data df = pandas.read_csv('../dataset/AirPassengers.csv') # Draw Plot fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(12, 6), dpi=80) plot_acf(df.value.tolist(), ax=ax1, lags=50) ...
c7a4356d7fdf1cd0601244d175b68f0a61ee4a2a
4c6113392ea456e1eb964172b43f0c9846ca712a
/tests/test_volatility.py
8ff6fe6b0143161483ac60f94b8552bc2c8018be
[ "MIT" ]
permissive
g8a9/pyti
abd344d4d5eb30f36e6c860eb82567d7cacbd780
1697ea000730a2238df70505ba77e165619fdf8c
refs/heads/master
2020-03-27T11:04:22.417031
2019-09-09T08:50:51
2019-09-09T08:50:51
146,463,237
0
1
MIT
2018-08-28T14:53:08
2018-08-28T14:53:07
null
UTF-8
Python
false
false
10,070
py
from __future__ import absolute_import import unittest import numpy as np from tests.sample_data import SampleData from pyti import volatility class TestVolatility(unittest.TestCase): def setUp(self): """Create data to use for testing.""" self.data = SampleData().get_sample_close_data() ...
47a973711a8b923b936e2065c5d59905c74acf35
810412fc189697eaad5731cd66cc291f1d82c3b5
/cap2/extensions/experimental/strains/merge_snp_graph.py
17ef682831a202a1ef92a7392795e9a09cedac61
[ "MIT" ]
permissive
MetaSUB/CAP2
c511655ed15a7e886d5216a358fc6e5904b25f24
5ccdc0af310dd4ee382a81c7330e04927d9ef5fe
refs/heads/master
2022-12-03T15:50:59.694245
2021-12-29T17:03:50
2021-12-29T17:03:50
213,112,026
12
7
MIT
2022-11-22T09:28:20
2019-10-06T05:09:18
Python
UTF-8
Python
false
false
1,890
py
from .tasks import StrainCapGroupTask from ....pipeline.config import PipelineConfig from .strainotyping import ( VERSION, merge_filter_graphs_from_filepaths, write_graph_to_filepath, graph_node_table, ) from .make_snp_graph import MakeSNPGraph class MergeSNPGraph(StrainCapGroupTask): MIN_WEIGH...
235f8543683b0f8e93ab3658fce247f2507db2ac
2a3743ced45bd79826dcdc55f304da049f627f1b
/venv/lib/python3.7/site-packages/deribit_api.py
29835d45975a42ff171d83291465e8b8813c9460
[ "MIT" ]
permissive
Dimasik007/Deribit_funding_rate_indicator
12cc8cd7c0be564d6e34d9eae91940c62492ae2a
3251602ae5249069489834f9afb57b11ff37750e
refs/heads/master
2023-05-26T10:14:20.395939
2019-08-03T11:35:51
2019-08-03T11:35:51
198,705,946
5
3
MIT
2023-05-22T22:29:24
2019-07-24T20:32:19
Python
UTF-8
Python
false
false
5,534
py
# -*- coding: utf-8 -*- import time, hashlib, requests, base64, sys from collections import OrderedDict class RestClient(object): def __init__(self, key=None, secret=None, url=None): self.key = key self.secret = secret self.session = requests.Session() if url: self.url...
dd8b87c4e3eb039651b484713ee069ae838bf750
28bea635167b3e0b99c3abf1236a5d6970d65d49
/esgf2zarr/_version.py
4d23300f6cbd39cbfe292238ba9c4635b656a65a
[ "Apache-2.0" ]
permissive
pangeo-data/esgf2xarray
4531dbe0d1108d916cc3a00f807d9abe9e495aac
6a5e4df0d329c2f23b403cbfbb65f0f1dfa98d52
refs/heads/master
2020-04-27T08:59:03.829876
2019-03-08T18:05:52
2019-03-08T18:05:52
174,194,614
4
1
Apache-2.0
2019-03-08T18:06:26
2019-03-06T18:01:20
Jupyter Notebook
UTF-8
Python
false
false
18,555
py
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains th...
39694e63e136c7de35f1644beaf3721a4977f8c9
e6f62e277c63ad417664c292989ac7b18b5d3027
/sanguo/core/plunder.py
6a6fd5fdf9222be63677815da601b879f2ae45c8
[]
no_license
yueyoum/sanguo-server
1fe8df69ca923e0166fd6f75e11d08a2b4bbde37
08df991a3bffea4b4f56f20ffea23bc373465332
refs/heads/master
2021-01-15T15:33:00.427811
2016-06-21T09:28:03
2016-06-21T09:28:03
13,704,516
1
3
null
2014-10-22T07:45:31
2013-10-19T16:38:19
Python
UTF-8
Python
false
false
16,744
py
# -*- coding: utf-8 -*- __author__ = 'Wang Chao' __date__ = '1/22/14' import time import random import base64 import dill from mongoscheme import DoesNotExist from core.server import server from core.character import Char from core.battle import PlunderBattle from core.mongoscheme import MongoPlunder, MongoAffairs,...
00e9f5fe14e266706112b3eda5db3a81edd109a1
4fdd98d5e82385393d4eb2f6526cddb15563c477
/src/morphforge/core/quantities/__init__.py
8ed61d5caaf565c48693fc05504751f56db48a69
[ "BSD-2-Clause" ]
permissive
bmerrison/morphforge
f8541d4471ce13519986c42d4ebb3714a238e390
6d06845493bf01aae94a706bfde5d4eb9c733659
refs/heads/master
2021-01-18T07:49:47.645031
2012-09-26T20:54:13
2012-09-26T20:54:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,047
py
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
95b4ba670fad9aa6e2ada7300f4aa62646de42ef
897d82d4953ed7b609746a0f252f3f3440b650cb
/day07/exercise_personal/08_exercise.py
36811015b50dfbbced51178172c00201a0a3c549
[]
no_license
haiou90/aid_python_core
dd704e528a326028290a2c18f215b1fd399981bc
bd4c7a20950cf7e22e8e05bbc42cb3b3fdbe82a1
refs/heads/master
2022-11-26T19:13:36.721238
2020-08-07T15:05:17
2020-08-07T15:05:17
285,857,695
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
list_poker = [] for r in range(1,7): for c in range(1,7): for v in range(1,7): list_poker.append((r,c,v)) print(list_poker)
8a752594fbaede8a55376c2bb862d7962842e631
fa67314df981eb8c72790819ca29f45c37c52c69
/Assignment-1_CS16BTECH11036/Question4/Dtree.py
a37b07fb18afb5767de65c0ba9122cf331dccafb
[]
no_license
omsitapara23/AML
5ce142751354cee72a8007ba952c55ae8a90d193
7d320ef6ce342590dfbce9e70d9d9fff7561939b
refs/heads/master
2020-04-20T01:45:41.095561
2019-03-12T17:13:57
2019-03-12T17:13:57
168,553,812
0
0
null
null
null
null
UTF-8
Python
false
false
2,800
py
import numpy as np import csv import json from sklearn.neighbors import KNeighborsClassifier from sklearn import preprocessing from collections import Counter from sklearn.naive_bayes import GaussianNB from sklearn.naive_bayes import MultinomialNB from sklearn.naive_bayes import BernoulliNB from sklearn import tree ...
828e53f2e62d6cc45ed309a2d29a4778afa6d5a6
057bdbd048d8b99064eb06af45d9e40beff6fe80
/examples/app.py
5726ced00da4c2d832a28e7d5bce9fbca39c9927
[ "MIT" ]
permissive
miguelgrinberg/APIFairy
5a058f9763c381b765a4139366e35e579b4a1723
ed2c9b99e8ed8b7cd61a1b95f7f295bd2a902590
refs/heads/main
2023-07-24T14:22:21.282560
2023-07-15T23:01:50
2023-07-15T23:01:50
299,060,489
303
28
MIT
2023-01-05T15:49:05
2020-09-27T15:24:33
Python
UTF-8
Python
false
false
2,202
py
"""Welcome to the APIFairy Simple Example project! ## Overview This is a short and simple example that demonstrates many of the features of APIFairy. """ from typing import Annotated from uuid import uuid4 from flask import Flask, abort from flask_marshmallow import Marshmallow from apifairy import APIFairy, body, re...
91c04102d7309c5dc96caf9dbaefa29ae8dc3d40
ecb113be53f2fe1768e85a1004d571c74d87ae8d
/tests/fmlaas/model/model.py
0621cd46327918a951006e15f1e784933fe91ece
[]
no_license
Internet-SmokeAlarm/core
39351e4d5bddf19bd59faf51bbc225c0e0521905
87b66a10042ec41916c490bb20cb4117f3caf1ba
refs/heads/master
2023-02-17T18:40:12.822530
2020-07-05T20:28:38
2020-07-05T20:28:38
216,093,027
0
0
null
null
null
null
UTF-8
Python
false
false
1,953
py
import unittest from dependencies.python.fmlaas.s3_storage import JobAggregateModelPointer from dependencies.python.fmlaas.model import Model class ModelTestCase(unittest.TestCase): def test_to_json_pass(self): model = Model("1234", str(JobAggregateModelPointer("4456", "5567", "1234")), "123552") ...
33e0f6e0f58713cd6b9e0bf434b0190abffc395a
a47e4480d1584c5a2bb4c31ac512c864d0c2c240
/core/settings.py
8e44faed4463d4a577291f1a56a01053b9a77cef
[ "MIT" ]
permissive
shaymk1/ke-nako-shop
014bd960e2048d4e2b5cc77c0b2d99f2058208d4
5c6f3dfb6b1e89efe111c1c6daa21434c7843ddc
refs/heads/main
2023-08-02T08:19:31.702068
2021-09-20T19:21:53
2021-09-20T19:21:53
406,715,370
0
0
null
null
null
null
UTF-8
Python
false
false
3,243
py
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.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key...
78b752d117f11c2a5a5d056b47227a18ba096e0b
185b7529d9d439a0d554db2fc7b60a1531a5a836
/scrappy_settings/asgi.py
2d14dbc27187113e3031e51b3b38ab18a5531eeb
[]
no_license
cavidanhasanli/Scrappy_price
8901baeaa40beb7102042d687d405258ae20d7fe
b5cc50010f727ba95686d89cac29f76533d860c2
refs/heads/main
2023-03-11T00:14:56.576016
2021-02-16T09:58:00
2021-02-16T09:58:00
338,854,431
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
""" ASGI config for scrappy_settings project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJA...
6b7df363e07c32497d7b6a3ae77012127a2fb79a
789f108a849be99052f13cdec68953266458e646
/nfe_mde/nfe_schedule.py
c0e580b66329ba0eeea7f4afc2737145ed796e5a
[]
no_license
rick-romero/odoo-brazil-eletronic-documents
6ebe1b30deaa854861aa632ee62b022b8eeb2d8a
2a1f144612ef23b77b57b9edcf2089a2b2b3077a
refs/heads/8.0
2021-01-14T14:07:27.728313
2016-07-12T22:11:29
2016-07-12T22:11:29
59,238,349
0
0
null
2016-05-19T19:58:39
2016-05-19T19:58:39
null
UTF-8
Python
false
false
7,908
py
# coding=utf-8 ############################################################################### # # # Copyright (C) 2015 Danimar Ribeiro www.trustcode.com.br # # ...
94e544a15e0e29b8f771385dfbdcefcb09413fcd
30467bd47c29412687a384d824655daa7400cef4
/examples/dockerbuild.py
d7f0e1ae2176bdb6508f530e8a2f4f6e916f5b3c
[]
no_license
dpedu/shipper
556409843c6da888338d2a791d4f06b17c709a52
e5544416c2b0ee818285b9a13761f1c351d7676f
refs/heads/master
2020-05-17T17:39:45.645549
2019-02-03T00:59:34
2019-02-03T00:59:34
183,860,592
0
0
null
null
null
null
UTF-8
Python
false
false
1,308
py
from shipper.lib import ShipperJob, SshConnection, GiteaCheckoutTask, LambdaTask, \ DockerBuildTask, DockerTagTask, DockerPushTask # This job accepts gitea webooks and builds docker images. If the "imagename" parameter is passed, it will be used to # name the image. Otherwise, a repo named "docker-image-name" wou...
3bd68f15f1ba900bd732975bf7fe77e8c8d0874c
c4cfce852c59bdd65d5ab5e77021e42cb7b02ff8
/eng_to_kana_test/test_eng_to_kana.py
c7f683673655332c566e7794109d70e9fe281858
[ "MIT" ]
permissive
yokolet/transcript
5749be490a7f53e907b2143696afaa592647dc59
4a83cc70d868bb243846ebee8c322c63c2092141
refs/heads/master
2020-05-28T09:47:27.771042
2019-06-15T21:46:53
2019-06-15T21:46:59
188,961,209
3
0
null
null
null
null
UTF-8
Python
false
false
683
py
import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import unittest from eng_to_kana.eng_to_kana import EngToKana class TestEngToKana(unittest.TestCase): def setUp(self): self.list_func = EngToKana().fromWordList self.file_func = EngToKana().fromFile def test_1(...
360c489c9cbf919e2cb62c14bf5a0f370355366e
96f9c82d0331a853abb602aa0e214ba10d97e782
/gcp/plugins/modules/gcp_compute_target_pool_info.py
904029bfbefcc02c8d4b9c707949d7d57de1ea26
[]
no_license
gundalow-collections/google
c5a269477dd44e44d50fba3e1145ba3150585ba8
d4148513bec8926ec617c4450900236adb5e87bf
refs/heads/master
2020-07-25T02:11:46.852809
2019-09-16T20:13:35
2019-09-16T20:13:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,814
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2017 Google # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ---------------------------------------------------------------------------- # # *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** # ...
4094dc115614d752fdc61bd95ecac6cfb7797367
7b3711d4c6d7284255ba0270d49d120f984bf7c6
/problems/2361_minimum_cost_using_the_train_line.py
546dcff817a1d4ba91ccab3ae95614fb4d2f1ff7
[]
no_license
loganyu/leetcode
2d336f30feb55379aaf8bf0273d00e11414e31df
77c206305dd5cde0a249365ce7591a644effabfc
refs/heads/master
2023-08-18T09:43:10.124687
2023-08-18T00:44:51
2023-08-18T00:44:51
177,875,222
0
0
null
null
null
null
UTF-8
Python
false
false
2,677
py
''' A train line going through a city has two routes, the regular route and the express route. Both routes go through the same n + 1 stops labeled from 0 to n. Initially, you start on the regular route at stop 0. You are given two 1-indexed integer arrays regular and express, both of length n. regular[i] describes the...
cc15539f09c655e2a85fd8d417d67c0477c45e87
a323fc11db97690c4ea50d92766d9d5db0418aac
/article/migrations/0020_auto_20200719_1016.py
ae9b1b99f0de83746e98a9195dcf7750dc6193a6
[]
no_license
sparshjaincs/articleplus
ad909f937ebf856b6da87bd623af0776f8faafc3
0fa34a5384d8cfc52181be42c130aadd03ad8ef2
refs/heads/master
2023-08-10T23:21:44.845993
2021-09-30T22:29:13
2021-09-30T22:29:13
279,252,336
0
0
null
null
null
null
UTF-8
Python
false
false
1,419
py
# Generated by Django 2.2.6 on 2020-07-19 04:46 import datetime from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('article', '0019_auto_20200719_0951'), ...
2e0fad46c16958cbd3582723916a0ac1dda5a23e
0bd14d7590db43af015433edc95c101b325f2b45
/simple_sso/sso_server/admin.py
e21b92dc68b986e617291c935f1c31c63bf08af1
[ "BSD-3-Clause" ]
permissive
chrisglass/django-simple-sso
21f390535c012af4bba9a1b78a23b298592611df
b63d37ac64450ff5a506e6b1c2e34e42109b8cd8
refs/heads/master
2020-12-25T03:22:00.352693
2011-08-10T15:40:09
2011-08-10T15:40:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
# -*- coding: utf-8 -*- from django.contrib import admin from simple_sso.sso_server.models import Client admin.site.register(Client)
0b7ff06c8aa9f6a941ff4fe8a749d7d0a028286b
4da0c8906c9cd671e3a4bee3a6ee801a353e3d9a
/Water/watres/migrations/0012_targetusewo_checkin.py
82f4465901163fac353bd3219380d8d3cb10db6e
[]
no_license
avpakh/GVK
2a5a699caa8a986a3fd0dadbe2160fc9da5bf193
ac8b8d8ad5cd5ef8485e98cd532a29cd420e0cae
refs/heads/master
2020-06-13T10:35:36.663668
2017-01-06T09:01:42
2017-01-06T09:01:42
75,392,559
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-09-02 14:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('watres', '0011_auto_20160816_1523'), ] operations = [ migrations.AddField( ...
2445f62695bc503243d90b47fd380b81e2c25e92
3528abad46b15133b2108c237f926a1ab252cbd5
/Core/ableton/v2/control_surface/elements/optional.py
86a72e77d342aa7dee2a59777b27af577769514a
[]
no_license
scottmudge/MPK261_Ableton
20f08234f4eab5ba44fde6e5e745752deb968df2
c2e316b8347367bd157276f143b9f1a9bc2fe92c
refs/heads/master
2020-03-20T10:56:32.421561
2018-06-14T19:12:47
2018-06-14T19:12:47
137,389,086
1
0
null
null
null
null
UTF-8
Python
false
false
1,241
py
# Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/ableton/v2/control_surface/elements/optional.py # Compiled at: 2018-04-23 20:27:04 from __future__ import absolute_import, print_function, unicode_literals from ...base import listens from .combo import T...
e1ff8838e74408dffc4bbb3722723ff62a425439
5afa0b8e447bb6b1565a64d201ee38adfa406e44
/rapidsmsrw1000/apps/ubuzima/reports/utils.py
d393926a512649803396bf1457d11c5f819a56f9
[]
no_license
daaray/rapidsmsrw1000
98ad2cb24a4b5cbbd8b496c64ad357c6ff687874
013a06a61987b18e61bdb0da8da09140b8b16d9a
refs/heads/master
2020-12-25T00:38:29.934693
2013-03-26T07:15:11
2013-03-26T07:15:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,183
py
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 from rapidsmsrw1000.apps.ubuzima.models import * from rapidsmsrw1000.apps.ambulances.models import * from rapidsmsrw1000.apps.ubuzima.models import * from rapidsmsrw1000.apps.chws.models import * from django.utils.translation import ugettext as _ from django.utils.t...
140475678049842dcc7a9513455b15a220182ac9
fe8d49331e73fe89be9195bf748159830d2c3622
/zerver/views/drafts.py
47b5c6fa242f0d66e718fb84c1ffb31a7fce178b
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
lizzzp1/zulip
13e1a4428b5ed6d9cdc06cb291b126ee127a03e8
4e8067aadc7d5a4b2644e383898c5c731740ffd5
refs/heads/master
2022-12-13T23:44:52.351757
2020-09-12T19:04:24
2020-09-12T19:04:24
295,025,435
1
0
Apache-2.0
2020-09-12T21:00:35
2020-09-12T21:00:34
null
UTF-8
Python
false
false
5,766
py
import time from typing import Any, Dict, List, Set from django.core.exceptions import ValidationError from django.http import HttpRequest, HttpResponse from django.utils.translation import ugettext as _ from zerver.lib.actions import recipient_for_user_profiles from zerver.lib.addressee import get_user_profiles_by_i...
387f51e0f8907ab9ea32d68006e9dec8eae78b6c
7d9bf6444ef321d3b8264f814fc52036c9373805
/ba_data_paths/__init__.py
19a5403cda72cfbf2efcef05a4c4be3112cc29da
[ "Apache-2.0" ]
permissive
knu2xs/ba_data_paths
ef5f34d1f054bed2beddd2eb0461c981ade7a4db
c161feec529882a2edfb2ed88b8a89cf07ec3243
refs/heads/master
2020-07-09T21:12:17.956351
2019-10-14T19:59:42
2019-10-14T19:59:42
204,085,377
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
from ba_data_paths.ba_data import ba_data
a83a11d7de133095f348d5920113cb836562415e
8e95e79840005f6c34dfb978e8fe6e0ec4f7f643
/7_Image Processing in Python_/29_Edges.py
f4953bd068a7dbf38dcc7620a093d0b9b0858f0d
[]
no_license
Naysla/Machine_Learning
a0593cac41ef1561f14bec55780570b82fc37720
e75d5cd2894ccb005228ab3da87dde9025385a08
refs/heads/master
2023-02-01T17:19:32.413609
2020-12-22T20:36:45
2020-12-22T20:36:45
323,708,628
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
#Edges #In this exercise you will identify the shapes in a grapefruit image by detecting the edges, using the Canny algorithm. #Image preloaded as grapefruit. #The color module has already been preloaded for you. # Import the canny edge detector from skimage.feature import canny # Convert image to grayscale grapefru...
b1c806080769dbbd96a828a4f775b7cd730fbd53
8eeef7742573a8b671648d94e448d5614272c5d6
/core2web/week2/day7/printNumber.py
33b2619d33b2dfbf88f662253e9577e0f68a5cc6
[]
no_license
damodardikonda/Python-Basics
582d18bc9d003d90b1a1930c68b9b39a85778ea7
fd239722fc6e2a7a02dae3e5798a5f1172f40378
refs/heads/master
2023-01-28T16:22:19.153514
2020-12-11T06:36:49
2020-12-11T06:36:49
270,733,918
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
""" Program 1: Write a program that accepts an integer from user and print it. Input: 11 Output: 11 """ v=(int)(input("enter the number")) print("output",v)
b87d3c6c3e1f49c4c0cfbc2f7d0ecab4016fc060
fb2cc597f319380d228fc15c4008760a82203687
/var/spack/repos/builtin/packages/py-linear-operator/package.py
8133edf5144a33322dd069c679c2a2a0f9be91e9
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "LGPL-2.1-only" ]
permissive
JayjeetAtGithub/spack
c41b5debcbe139abb2eab626210505b7f930d637
6c2df00443a2cd092446c7d84431ae37e64e4296
refs/heads/develop
2023-03-21T02:35:58.391230
2022-10-08T22:57:45
2022-10-08T22:57:45
205,764,532
0
0
MIT
2019-09-02T02:44:48
2019-09-02T02:44:47
null
UTF-8
Python
false
false
888
py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PyLinearOperator(PythonPackage): """A linear operator implementation, primarily de...
6b89749fe8823ae962abbaa45373e75891ef3212
15e6385746ccf4b8eb6c6e302aca236021bb8781
/LintcodePartII/li405_submatrixSum.py
443777a2c60f7562a7b839a401d41945fa35145d
[]
no_license
akb46mayu/Data-Structures-and-Algorithms
11c4bbddc9b4d286e1aeaa9481eb6a620cd54746
de98494e14fff3e2a468da681c48d60b4d1445a1
refs/heads/master
2021-01-12T09:51:32.618362
2018-05-16T16:37:18
2018-05-16T16:37:18
76,279,268
3
0
null
null
null
null
UTF-8
Python
false
false
1,307
py
""" Given an integer matrix, find a submatrix where the sum of numbers is zero. Your code should return the coordinate of the left-up and right-down number. Have you met this question in a real interview? Yes Example Given matrix [ [1 ,5 ,7], [3 ,7 ,-8], [4 ,-8 ,9], ] return [(1,1), (2,2)] """ class Solution...
dbe0a5a91d774e8c317b43293a42fde45b272cee
e5b8a5d93989dd53933c5cd417afa8b2a39ad307
/ultracart/models/oauth_token_response.py
3c0fa3d282238a67a49514ccec2bfe343dd0916b
[ "Apache-2.0" ]
permissive
gstingy/uc_python_api
f3586bfce9c962af2e8c1bc266ff25e0f1971278
9a0bd3f6e63f616586681518e44fe37c6bae2bba
refs/heads/master
2020-03-28T11:13:22.537641
2018-09-10T17:07:59
2018-09-10T17:07:59
148,190,066
0
0
null
null
null
null
UTF-8
Python
false
false
8,949
py
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 OpenAPI spec version: 2.0.0 Contact: [email protected] Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class OauthTokenResponse(object...
2ae16a9e9e78108fc155c5ad03fae33bc317ad74
d63222abe326a3c8debd59bb8d24cb7eab3de09e
/leetcode/mock-interviews/reorganize_string/solve2.py
457e7f2208383c86f7b71461edd8321eeb4e2c1e
[]
no_license
tariqrahiman/pyComPro
91f47e93eb0a077d489659fcf0a75d5c1a65fc17
86ec13f47506a2495ab6b6bbb58d4e8b2a21538b
refs/heads/master
2022-02-10T04:15:40.194828
2019-06-16T10:22:38
2019-06-16T10:22:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
948
py
class Solution(object): def reorganizeString(self, S): count_letter = [[0, i] for i in xrange(25)] for char in S: count_letter[ord(char) - 97][0] += 1 count_letter.sort(reverse=True) count_letter = [k for k in count_letter if k[0] > 0] res = [""] def decrease(index): ...
185c7b7f95c8487e2f85422f38c93095e8bd3438
3f36a8e71ea13a135467ea64367d6e3358333f74
/movie_details.py
b88daf458d68088e861cd4d0c53e98e1ee709f51
[ "MIT" ]
permissive
gorpo/Exemplos-Python
4257873af5a23b79d51cc60e8ea84185b7e299c4
2cc11e0604d83c4f0a46645ceef0b209e467e6e6
refs/heads/master
2023-03-09T00:24:27.404626
2020-08-24T04:49:59
2020-08-24T04:49:59
264,974,378
4
4
MIT
2021-02-26T02:53:36
2020-05-18T15:02:56
Python
UTF-8
Python
false
false
1,600
py
import urllib.request import mechanize from bs4 import BeautifulSoup # Create a Browser browser = mechanize.Browser() # Disable loading robots.txt browser.set_handle_robots(False) browser.addheaders = [('User-agent', 'Mozilla/4.0 (compatible; MSIE 5.0; Windows 98;)')] movie_title = input("En...
4681f93f39d6f4d7e12d2abc33f56032b610f0e0
d50dec961435073f35bd89be322341862cf7ae6c
/enaml/qt/docking/q_dock_container.py
7c95686787621238b95078e2b6c0b4259b34ad77
[ "BSD-3-Clause" ]
permissive
johnelund/enaml
19971d298b46c5c08f662110cb1c3b6bab976936
1e957da694e84d016a19c4866a1801ca04651fa5
refs/heads/master
2021-01-18T08:51:44.403979
2013-07-03T20:37:36
2013-07-03T20:37:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,875
py
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
08bb23fdc4d27bf24fc8acba539dc31a6c16a40d
0412893529999de784ab9cb914f385ba788a3684
/logicmonitor_sdk/models/service_alert.py
f140a8c85cf85576b2c428c2b3678d325ef7a839
[ "Apache-2.0" ]
permissive
JeremyTangCD/lm-sdk-python
0326bf034c16b022b760600dc18fe7aaad42fa26
2a15e055e5a3f72d2f2e4fb43bdbed203c5a9983
refs/heads/master
2020-04-15T15:39:59.276224
2019-01-09T09:55:36
2019-01-09T09:55:36
164,803,314
0
0
Apache-2.0
2019-01-09T09:58:55
2019-01-09T06:33:40
Python
UTF-8
Python
false
false
14,296
py
# coding: utf-8 """ LogicMonitor REST API LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account...
8b4b8b5b6d763fd2a7db57022a79bde58116674a
9692a20a1e7a224a72785e4495f31421639b9f3b
/frex/stores/sparql_queryable.py
ca7711df4642f8043fbcf8e36450204ce9c9d5df
[]
no_license
solashirai/FREx
6b0cb040930761a0e269f4591d7dde36e3f636d1
36ad09a0cb0020661ee990c7800bafd110e2ec04
refs/heads/master
2023-08-14T08:49:49.270281
2021-09-29T14:58:23
2021-09-29T14:58:23
291,760,109
0
0
null
2021-09-24T22:41:19
2020-08-31T15:57:47
Python
UTF-8
Python
false
false
526
py
from abc import ABC, abstractmethod from rdflib.query import Result class SparqlQueryable(ABC): """ SparqlQueryable is the base class for stores that can be queried in some way using SPARQL queries. """ @abstractmethod def query(self, *, sparql: str) -> Result: """ Query the sparq...
58bcf3d3d7a9e42fa01ca8b29a710f6e81cfde90
b086a1caa4e3457c1faa0889d7a7291e653a0248
/tests/test_decontaminate.py
ed588a42754b1f20fbaafdd1f11bfdc4e4ef65af
[ "MIT" ]
permissive
hover2pi/specialsoss
a29381bbfcf7cc15a82e0aba8e607b99192dc48f
6afde9fbd83bb33afa9e606e681c330b64e64aa2
refs/heads/master
2023-01-12T19:22:03.636104
2022-11-30T18:51:16
2022-11-30T18:51:16
152,112,781
1
1
MIT
2022-12-26T20:46:35
2018-10-08T16:36:32
Jupyter Notebook
UTF-8
Python
false
false
500
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `decontaminate` module.""" import unittest from pkg_resources import resource_filename from specialsoss import decontaminate class TestDecontaminate(unittest.TestCase): """Test functions in decontaminate.py""" def setUp(self): """Test insta...
28695cb41961f9b7f6d93c97584d9999c98e5d78
cb4c67ff2ad27834bed67f7e920a12fb1c545fcd
/tensorflow/python/keras/callbacks.py
f2feeb85a1e0db976a1c29e47257558ba40cc856
[ "Apache-2.0" ]
permissive
ahoneybun/tensorflow
b67668cc0d9375eaab3bee4ed0791626f6eac02d
5134e65300d1ac384eeb1f4ca72a011ad7225bc8
refs/heads/master
2020-03-26T00:53:51.554467
2018-08-13T13:36:55
2018-08-13T13:36:55
144,342,477
0
0
Apache-2.0
2018-08-13T13:36:56
2018-08-11T00:07:43
C++
UTF-8
Python
false
false
51,653
py
# Copyright 2015 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...
24b225f065ed151eb22a92e8b8d904ab8f8a5b5d
ad01faab6dd663dc5193eb8383fdc2d24c2df23d
/_flask/_flask/src/models.py
65bcffc85e3d1501298f09252d2b8c292996163d
[]
no_license
jurgeon018/snippets
585db91b8120076b37deaa37393b34f7c61fec66
e0ab24a99791c3b25422a3208f02919cf98ca084
refs/heads/master
2023-05-14T12:31:48.139452
2023-01-23T03:33:41
2023-01-23T03:33:41
222,001,233
0
0
null
2023-05-01T22:16:48
2019-11-15T20:51:27
Python
UTF-8
Python
false
false
2,368
py
from flask_security import UserMixin, RoleMixin from datetime import datetime import re from app import db def slugify(s): pattern = r'[^\w+]' return re.sub(pattern, '-', str(s)) post_tags = db.Table( 'post_tags', db.Column('post_id', db.Integer, db.ForeignKey('post.id')), db.Column('tag_id', d...
e4d331190d0951613bfb2dd2e5c596a4220fc079
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-4642.py
e44d50bd03724d6fd15dac3b8b839dc0d38c9563
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,755
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
7ce5a5a7e987b5117fe0c6627da59256dd274079
09f0505f3ac1dccaf301c1e363423f38768cc3cc
/r_DailyProgrammer/Hard/C261/__init__.py
7fb10a7e3f3dd524eca4b11a7704983484b081b8
[]
no_license
Awesome-Austin/PythonPractice
02212292b92814016d062f0fec1c990ebde21fe7
9a717f91d41122be6393f9fcd1a648c5e62314b3
refs/heads/master
2023-06-21T11:43:59.366064
2021-07-29T23:33:00
2021-07-29T23:33:00
270,854,302
0
0
null
2020-08-11T20:47:10
2020-06-08T23:24:09
Python
UTF-8
Python
false
false
63
py
#! python3 from r_DailyProgrammer.Hard.C261.main import main
[ "{ID}+{username}@users.noreply.github.com" ]
{ID}+{username}@users.noreply.github.com
552ab2bbd2ef44a5026c219a56b2ffd8ce677ca4
c73fc798764f40ea6fa466a573fb01223e367ce3
/recursion/dequeue.py
0cb394faf20083a3b1185caeaf1124bf8907044b
[]
no_license
mohitsh/python_work
b1385f62104aa6b932f5452ca5c2421526345455
223a802dea5cdb73f44a159856c7432983655668
refs/heads/master
2020-04-24T00:34:15.427060
2018-08-21T19:12:07
2018-08-21T19:12:07
37,491,449
0
0
null
null
null
null
UTF-8
Python
false
false
1,060
py
''' in this deque example I have considered position 0 to be FRONT in other deque exmaples like Palindrome checker last element has been considered as front. Usually first element is considered rear and last one is considered front. I have to manipulate 0 twice to make this code compatible with 0 as rear and last a...
8939cb11b44574e3ae4666bb7ed1698550d192c4
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5756407898963968_0/Python/eding/A-small-code.py
e5ebfa779d5c7ca729204629dbea0f829a594e03
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
939
py
import codecs import sys N_ROWS = 4 def main(): file = codecs.open(sys.argv[1], "r", "utf-8-sig") lines = [line.strip() for line in file] T = int(lines[0]) cards1 = [] cards2 = [] index = 1 for trial in xrange(0,T): ans1 = int(lines[index]) ca...
90bd6692ba1c920aebf545909f10a2d5fe660622
c8036cb365243439b4a3593124eafdfba933a034
/src/loss/normal_6_class.py
445ac4273311e941f342bfc5794d5eeaf8cc2e37
[]
no_license
koike-ya/rsna
3a1150dc878bde6320ae4c1d965675460dd7de0d
c88c45cfa280b47f0fb48cc9df88954f83a551b4
refs/heads/master
2022-03-16T00:36:55.846905
2019-11-02T00:49:15
2019-11-02T00:49:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,715
py
dir_csv = '../../input/' dir_train_img = '../../input/stage_1_train_pngs/' dir_test_img = '../../input/stage_1_test_pngs/' # Parameters n_classes = 6 n_epochs = 5 batch_size = 32 import glob import os from pathlib import Path import cv2 import numpy as np import pandas as pd import pydicom import torch import to...
9273d11433c99cd486d59b7efcdbdf73ababd159
83ed75056a4fa0a26e363ecf80fdb5390b9abe76
/web/decisions/subscriptions/__init__.py
ec796c778fac00714e1a872800e4d04f22d29a5c
[ "BSD-3-Clause" ]
permissive
okffi/decisions
a67ef9150dfa8585b82bb95da323e5b354be4532
e45d8c56cf244ef277ffeba6808e942564028b7f
refs/heads/master
2021-01-21T13:34:03.416056
2016-05-25T09:58:51
2016-05-25T09:58:51
53,145,413
3
2
null
2016-05-02T11:31:34
2016-03-04T15:36:21
JavaScript
UTF-8
Python
false
false
72
py
default_app_config = 'decisions.subscriptions.apps.SubscriptionsConfig'
cf68f6c4ab005f0fe8ee4f5b2477383a7c5b3c99
a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea
/tests/models/test_param.py
3529f0360cdcfbcedfe6aa3802c9aedb473ab05d
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
ishiis/airflow
4305794e36b611d01f49e3f2401be3dc49782670
292440d54f4db84aaf0c5a98cf5fcf34303f2fa8
refs/heads/master
2022-07-30T00:51:28.806940
2022-07-14T12:07:11
2022-07-14T12:07:11
209,801,072
1
0
Apache-2.0
2019-09-20T13:47:26
2019-09-20T13:47:26
null
UTF-8
Python
false
false
9,932
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...
a10d864424683827df934951ff4cb07416e8d969
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_12_01/aio/operations/_private_link_resources_operations.py
a7c4a66aa9351e0ab6a575929711ac78f42085cb
[ "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,000
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 ...
ab1409aaf95d2bf69bc496ba2c8a4938816631bd
3b7b6648b72910046b6a227db30f71aeee2cba9c
/2020-12-18-neural-style-transfer/deeptools/preprocessing/RandomSingleCropPreprocessor.py
4ddf0ecef9eedb517ec472e48447e933c6d54b45
[]
no_license
ken2190/deep-learning-study
f2abeb1cd302e405a15bbb52188ae44ffb414e2f
f2998be89d0c931176f158ae5f48ca562786e171
refs/heads/main
2023-04-02T05:07:08.504212
2021-04-11T15:11:22
2021-04-11T15:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
from sklearn.feature_extraction.image import extract_patches_2d # this processor randomly crop an image of fixed size. class RandomSingleCropPreprocessor: def __init__(self, width, height): self.width = width self.height = height def preprocess(self, image): return extract_patches_2d...
f4056f860df1771e62dd5010d3a51ea2059537d3
6dc761a30cf5efa045f1154aaff2acfa139b835a
/LeetCode/Python/majorityElement.py
2c3a07d29edec31ce28f3cebf1b76d1b29269efe
[]
no_license
snail15/AlgorithmPractice
4e58beee3ff76498a389268dd4cc207dcabf778e
9e8885953ad50e966454c45c460e81dbb6e48be0
refs/heads/master
2021-08-17T06:30:02.290260
2021-06-08T01:15:07
2021-06-08T01:15:07
98,246,912
0
0
null
null
null
null
UTF-8
Python
false
false
654
py
# Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. # You may assume that the array is non-empty and the majority element always exist in the array. # Example 1: # Input: [3,2,3] # Output: 3 # Example 2: # Input: [2,2,1,1,1,2,2] # Output: 2 ...
883b131aab7cc6403a4eb04a14315ce599a3fb52
60d6b8501d0be546437b26a6ee1f9fab97ec3897
/platypush/message/event/zigbee/mqtt.py
e3179407f6aa9291e1c47fb4fbf836c0c6dbf740
[ "MIT" ]
permissive
BlackLight/platypush
68284a85b2f9eef303d26b04530f075927b5834a
446bc2f67493d3554c5422242ff91d5b5c76d78a
refs/heads/master
2023-08-31T21:01:53.519960
2023-08-29T22:05:38
2023-08-29T22:05:38
109,421,017
265
25
MIT
2023-09-01T23:15:49
2017-11-03T16:56:24
Python
UTF-8
Python
false
false
5,542
py
from typing import Dict, Any from platypush.message.event import Event class ZigbeeMqttEvent(Event): pass class ZigbeeMqttOnlineEvent(ZigbeeMqttEvent): """ Triggered when a zigbee2mqtt service goes online. """ def __init__(self, host: str, port: int, *args, **kwargs): super().__init__(*...
642dace9a98ba086429328e4a3bb682bf656ef68
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03139/s354736213.py
c172482303f5c5982f40aa05ddff89c507c32649
[]
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
85
py
a,b,c = [int(i) for i in input().split()] print(min(b,c),b+c-a if b + c >= a else 0)
a472c103c0b1f3c1f8c566e750f7ba8e53639190
65cc6a8877896ef69dd03d7b5eee5bed56e5371f
/example/attpc-daq/web/attpcdaq/daq/templatetags/daq_model_tags.py
600bbc1d51d3e665f9f57b9b0ce19ce3797deda5
[]
no_license
wuhongyi/DjangoNote
34bdb9e82fc379e19b1df0bd7c90e504fa70a40d
81ad949ff895feda8131d8bdf5fa1439f962ae37
refs/heads/master
2020-05-02T17:54:12.270297
2019-05-22T14:37:32
2019-05-22T14:37:32
178,112,720
2
0
null
null
null
null
UTF-8
Python
false
false
762
py
from django import template from ..models import DataSource register = template.Library() def get_datasource_attr_from_choices(attr_name, choices): value = getattr(DataSource, attr_name, None) # Verify that the result is a valid member of the set of choices. # This also ensures that we're not just retur...
d546c510a58b01a177c9d64ec2c323aa473720ae
c5d68f58c9523257a8b41954553f5cff2cd5f487
/Secao_13_Lista_Ex_29e/ex_27.py
5ab77700769e25293337bd239ed838f3bd7ed0dc
[]
no_license
SouzaCadu/guppe
04bfcde82d4404eb9ec795006c6931ba07dc72b6
1f8a672230c5c27712f522e1e34516591c012453
refs/heads/master
2023-03-13T01:32:51.019871
2021-02-25T17:02:59
2021-02-25T17:02:59
320,908,119
1
0
null
null
null
null
UTF-8
Python
false
false
10,378
py
""" 27) Faça um programa para gerenciar as notas dos alunos de uma turma salva em um arquivo. O programa deverá ter um menu contendo as seguinte opções: (a) Definir informações da turma; (b) Inserir aluno e notas; (c) Exibir alunos e médias; (d) Exibir alunos aprovados; (e) Exibir alunos reprova...
cc16d1697225baee47a86dda51adb9016bdd330c
3f394cd47a1aaf0ae2f8de5ab9854f52341e017a
/tests/conftest.py
0ec2f5ef473a93e1446046c292552c5de1df0cff
[ "MIT" ]
permissive
devildeveloper/Clay
e3771d97d23ae3ba7d866d8921102d50e95a6562
ca419ee4cfe191724ed68e3507515a5b258bb4bb
refs/heads/master
2021-01-18T02:27:22.094481
2013-11-18T20:24:02
2013-11-18T20:24:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
# -*- coding: utf-8 -*- """ Directory-specific fixtures, hooks, etc. for py.test """ from clay import Clay import pytest from .helpers import TESTS @pytest.fixture() def c(): return Clay(TESTS) @pytest.fixture() def t(c): return c.get_test_client()
42dc6d18884578c84f4ca5272b7590683a423d4d
532549735aab20e7948511b63e0fb77cc5aedacf
/chaussette/backend/_fastgevent.py
c43809bd8d374be7c03b29174b2ce058a6b65653
[ "Apache-2.0" ]
permissive
ericem/chaussette
f71ac35990b2b7aa41610ec4be867321ce3be89f
fe62725ca1d018bb26c024f796447b6c761f00e0
refs/heads/master
2021-01-18T10:52:43.720192
2013-05-02T13:38:23
2013-05-02T13:38:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
import socket from gevent.wsgi import WSGIServer from gevent import monkey from chaussette.util import create_socket class Server(WSGIServer): address_family = socket.AF_INET socket_type = socket.SOCK_STREAM def __init__(self, listener, application=None, backlog=None, spawn='default', ...
f7d0ebc5b5c74035f2e5e648525b0bdabb67d31e
ee53b0262007b2f0db0fe15b2ad85f65fafa4e25
/Leetcode/441. Arranging Coins.py
dfa616241b4d3e2f18fe71fc819dff41930a76d6
[]
no_license
xiaohuanlin/Algorithms
bd48caacb08295fc5756acdac609be78e143a760
157cbaeeff74130e5105e58a6b4cdf66403a8a6f
refs/heads/master
2023-08-09T05:18:06.221485
2023-08-08T11:53:15
2023-08-08T11:53:15
131,491,056
1
0
null
null
null
null
UTF-8
Python
false
false
1,616
py
''' You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number of full staircase rows that can be formed. n is a non-negative integer and fits within the range of a 32-bit signed integer. Example 1: n = 5 The coins can for...
40e14b319898e3aa7c0b8261d42eea8d55f52f5d
1c2cd5951f82a5fb12142621a3b9baea14cf4a31
/ABC012/ABC012B.py
93560073a8f77c4f747fddf4fd00cc740a476428
[]
no_license
ksera332/Atcoder_records
55ef832eb3e517b99334eb00d2287cd4a1bc83cd
f8b1f13211bae79b7da6d63ba9b1bd177031aef9
refs/heads/master
2022-12-08T19:25:26.834948
2020-08-29T12:55:30
2020-08-29T12:55:30
263,906,419
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
# coding: utf-8 # In[37]: import time N = int(input()) print(time.strftime('%H:%M:%S', time.gmtime(N)))
cfc155b48e7139b1bf1bea71e66f59e91f6f6b50
d7c527d5d59719eed5f8b7e75b3dc069418f4f17
/main/_pythonSnippet1_backup/61/views.py
3e9bacefeb4c0afffa4042075dad295c84f00a02
[]
no_license
Aivree/SnippetMatcher
3e348cea9a61e4342e5ad59a48552002a03bf59a
c8954dfcad8d1f63e6e5e1550bc78df16bc419d1
refs/heads/master
2021-01-21T01:20:59.144157
2015-01-07T04:35:29
2015-01-07T04:35:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,894
py
from django.shortcuts import render_to_response from django.template import Template, Context, RequestContext from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from django.template.loader import get_template import datetime from django import forms from runner.forms import Doc...
078e7534de86ed7c579a2ba0c616d3db8756b6be
d32a1eff193052dd62ad05f638346c7132796c2e
/python/pyspark/pandas/tests/connect/test_parity_groupby_slow.py
375dc703d956f229358f88f2ca4bde9e8f96075a
[ "CC0-1.0", "MIT", "Python-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown", "EPL-1.0", "Classpath-exception-2.0", "GCC-exception...
permissive
Kyligence/spark
c266dc19c7c2e2914eea34c9922f97ba17011075
f29502acf2fe96e23525268b0a29a6338b41bce6
refs/heads/master
2023-08-31T08:42:15.254881
2023-04-22T00:30:53
2023-04-22T00:30:53
100,349,194
6
61
Apache-2.0
2023-09-14T06:29:07
2017-08-15T07:04:07
Scala
UTF-8
Python
false
false
2,010
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 us...
e9222d3599e353156217730a4903521d6e392997
90c6262664d013d47e9a3a9194aa7a366d1cabc4
/tests/storage/cases/test_KT1QHRKLkwaHDV6TyY9H4ZU9ZwGuwZ1TWPfg_babylon.py
69dc0227141ef450501ea7063314cad598bd84b6
[ "MIT" ]
permissive
tqtezos/pytezos
3942fdab7aa7851e9ea81350fa360180229ec082
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
refs/heads/master
2021-07-10T12:24:24.069256
2020-04-04T12:46:24
2020-04-04T12:46:24
227,664,211
1
0
MIT
2020-12-30T16:44:56
2019-12-12T17:47:53
Python
UTF-8
Python
false
false
1,170
py
from unittest import TestCase from tests import get_data from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson class StorageTestKT1QHRKLkwaHDV6TyY9H4ZU9ZwGuwZ1TWPfg_babylon(TestCase): @classmethod def setUpClass(cls): cls.maxDiff = None ...
67d0a2a954213d42ddd71266366f19adab9b7138
71678f708e7bb80577b560ab660af2d965f7fa88
/test.py
23bb3cfd232d7d25db37f4d52705132a55b38aeb
[]
no_license
natepill/CS-1.2-Tweet-Generator
7c09b396f37b56c5be45edfa603821389848853f
64736b69a3701c34ba5f36153af1fa4ad0fef84c
refs/heads/master
2020-04-02T18:25:45.848092
2019-03-13T17:05:47
2019-03-13T17:05:47
154,699,785
0
0
null
null
null
null
UTF-8
Python
false
false
52
py
from string import ascii_lowercase as al print(al)
fb3c1d8faf3f4c7f4a59af63fb46a030978ecd4e
f167dffa2f767a0419aa82bf434852069a8baeb8
/lib/youtube_dl/extractor/einthusan.py
4e0f8bc819c70730a476ca31cd4320cecdc25b3d
[ "MIT" ]
permissive
firsttris/plugin.video.sendtokodi
d634490b55149adfdcb62c1af1eb77568b8da3f5
1095c58e2bc21de4ab6fcb67a70e4f0f04febbc3
refs/heads/master
2023-08-18T10:10:39.544848
2023-08-15T17:06:44
2023-08-15T17:06:44
84,665,460
111
31
MIT
2022-11-11T08:05:21
2017-03-11T16:53:06
Python
UTF-8
Python
false
false
3,720
py
# coding: utf-8 from __future__ import unicode_literals import json import re from .common import InfoExtractor from ..compat import ( compat_b64decode, compat_str, compat_urlparse, ) from ..utils import ( extract_attributes, ExtractorError, get_elements_by_class, urlencode_postdata, ) c...
2d441b942de17b1981ea070088659addc116d4ac
4f3a4c194451eae32f1ff7cf3b0db947e3892365
/142/main.py
7dd2d69286c4280a2dc6408e5232b45fffb6d8a6
[]
no_license
szhongren/leetcode
84dd848edbfd728b344927f4f3c376b89b6a81f4
8cda0518440488992d7e2c70cb8555ec7b34083f
refs/heads/master
2021-12-01T01:34:54.639508
2021-11-30T05:54:45
2021-11-30T05:54:45
83,624,410
0
0
null
null
null
null
UTF-8
Python
false
false
1,177
py
""" Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the linked list. Follow up: Can you solve it without using extra space? """ # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x ...
1b2708b9fd69527e897aec7549fa95a9ed7fafd3
6d11eda98e529286c775942f63013619f37246c5
/examples/potsdam/semantic_segmentation.py
a3ad3085dd6f3c7d8d3532839dfb3cf35057feda
[ "Apache-2.0" ]
permissive
Pandinosaurus/raster-vision-examples
388438ddd58c2c0fd8a7eced5be02cc5518e80f8
d6957a5de6d49fbe7d419da67979725eaab43ee7
refs/heads/master
2021-07-18T08:17:33.274224
2020-07-03T02:52:20
2020-07-03T02:52:20
184,796,275
1
0
NOASSERTION
2020-07-03T04:10:43
2019-05-03T17:38:55
Jupyter Notebook
UTF-8
Python
false
false
5,610
py
import os from os.path import join import rastervision as rv from examples.utils import str_to_bool, save_image_crop class PotsdamSemanticSegmentation(rv.ExperimentSet): def exp_main(self, raw_uri, processed_uri, root_uri, test=False, use_tf=False): """Run an experiment on the ISPRS Potsdam dataset. ...
f4be1784fe13e6274c766985a165f620b822bcb1
930309163b930559929323647b8d82238724f392
/abc216_e.py
b2c5d66d2e922c823160cdcb8e9ca31ca835c4d4
[]
no_license
GINK03/atcoder-solvers
874251dffc9f23b187faa77c439b445e53f8dfe1
b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7
refs/heads/master
2021-11-07T14:16:52.138894
2021-09-12T13:32:29
2021-09-12T13:32:29
11,724,396
3
1
null
null
null
null
UTF-8
Python
false
false
1,123
py
import sys import logging def main(): n, k = map(int, input().split()) a = list(map(int, input().split())) a = sorted(a, reverse=True) + [0] def cumsum(x): return x * (x + 1) // 2 k_remaining = k ans = 0 for i in range(n): if a[i] == a[i + 1]: continue ...
e7b69c6f075b17d67552da7d91dd5b80b77ed235
5f0eeef355fa84b165d4e0707e8874755cc03259
/chp02_forces/Exercise_2_10_attractrepel/Attractor.py
b265f28a642f9d31b8c7540541527dd188cd2d56
[]
no_license
kidult00/NatureOfCode-Examples-Python
5835fbed114f3991b9986852f31d29a0a46d7e53
42461590deebbe305d5815ff0d207ff974335ad5
refs/heads/master
2021-05-11T04:47:53.999705
2018-03-07T15:54:12
2018-03-07T15:54:12
117,946,895
0
0
null
null
null
null
UTF-8
Python
false
false
2,195
py
# The Nature of Code - Python Version # [kidult00](https://github.com/kidult00) # A class for a draggable attractive body in our world # Attraction = G * M1 * M2 / Distance^2 class Attractor(object): def __init__(self): self.mass = 10.0 # Mass, tied to size self.g = 1.0 # Gravitational Constan...
9b0612a4597a28b9bfac2f4dc745eb4104ab302c
384d0be5ac54b306b945cf38c10d9b0a44c975ea
/devstack/tools/uec/meta.py
5b845d81a69b19773c66ea4fb61a1a9065a88c47
[]
no_license
ashokcse/openstack-bill
05ae313637b3cfecba946d2a9b32e8c7609fc721
1a3d7575d4b341f64fa1764ed47e47a7504a9bcc
refs/heads/master
2021-01-18T14:05:24.696165
2012-09-12T11:29:20
2012-09-12T11:29:20
5,424,267
5
2
null
null
null
null
UTF-8
Python
false
false
827
py
import sys from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler from SimpleHTTPServer import SimpleHTTPRequestHandler def main(host, port, HandlerClass = SimpleHTTPRequestHandler, ServerClass = HTTPServer, protocol="HTTP/1.0"): """simple http server that listens on a give address:port""" ser...
afef5e088c4a797fddf972b908f3d05308a8a5c5
a512b8893b0d2de827d6292e810f3a98b41e132c
/Week6/Day1/Solutions/Python/prog4.py
8f234ad7cc815e2ff244fd79557baa2595b427a1
[]
no_license
Audarya07/Daily-Flash-Codes
d771079fd0d470e2d3e05679f17f32fb64b4f426
cf96ca2b1676b038e243fac67be778381492ffeb
refs/heads/master
2022-11-06T15:37:47.180729
2020-06-25T16:20:55
2020-06-25T16:20:55
274,960,651
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
for i in range(5): num = 5 for j in range(5): if i>j: print(" ",end=" ") else: print(num,end=" ") num-=1 print()
bef4ed0adc518bd890aba6eb08948e612e7755b4
9eaa2c64a777bd24a3cccd0230da5f81231ef612
/study/1905/month01/code/Stage1/day04/exercise02.py
4527340f5bf057badc200a68d1b1fcc8edce6772
[ "MIT" ]
permissive
Dython-sky/AID1908
4528932f2ca66b844d8a3fcab5ed8bf84d20eb0c
46cd54a7b36b5f009974f2bbb7005a4ad440ca1a
refs/heads/master
2022-04-14T12:23:30.426270
2020-04-01T18:05:19
2020-04-01T18:05:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
""" 一张纸的厚度是0.01mm 对折多少次厚度能超过珠穆朗玛峰(8844.43米) """ thickness = 0.01 / 1000 count = 0 while thickness <= 8848.43: thickness *= 2 count += 1 # print(thickness) print("一张纸对折{}次能超过珠穆朗玛峰".format(count))
d49ea65ea1d608754984e1885d288d255efbf3a9
a8f615e6f2e00bcc72cd67475c5dd4a9ff0e6c14
/imdemo/imdemo/pages/nodes/pin.py
15058ecdfab3a662b795bd45d0d98c33f047f968
[ "MIT" ]
permissive
KangWeon/arcade-imgui
fcf43f2399f56960b5249bd80e4e16d8639be8e2
24a8d423440cd9adaf3373a9c2492d04d8862062
refs/heads/master
2023-01-01T03:04:05.605347
2020-10-18T08:04:21
2020-10-18T08:04:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
class Pin: def __init__(self, node, name): self.node = node self.name = name self.x = 0 self.y = 0 def set_position(self, pos): self.x, self.y = pos def get_position(self): return (self.x, self.y) def draw(self): pass class Input(Pin): pass...
8da13cd142ec6b62a14d15b73cfe977ec43475ff
a97fb0584709e292a475defc8506eeb85bb24339
/source code/code/ch203.py
3aa2f981b9a6399e15c03b0b1aeb0e4e562fef35
[]
no_license
AAQ6291/PYCATCH
bd297858051042613739819ed70c535901569079
27ec4094be785810074be8b16ef84c85048065b5
refs/heads/master
2020-03-26T13:54:57.051016
2018-08-17T09:05:19
2018-08-17T09:05:19
144,963,014
0
0
null
null
null
null
UTF-8
Python
false
false
553
py
#!/usr/bin/env python #coding=utf-8 from __future__ import print_function ## 宣告x, y, z變數,各分別為tuple, list, dict資料型態。 x, y, z = (), [], {} ## 雖然都是空的結構,但是它們之間並不相等。 if x == y == z: print(x, y, z, "相等") else: print(x, y, z, "不相等") if x == None: print(x, " 相等 None") else: print(x, " 不相等 None") if y == None: ...
a1b3558b03ae177a9ec695640ddab9481f1cfb65
093b9569be9d1c4e5daf92efbebc38f680917b2d
/.history/base/views_20210829090123.py
bfec5c7dacaf07d85a118c58236ec494edd47b23
[]
no_license
Justin-Panagos/todoList
95b1e97ff71af1b0be58e7f8937d726a687cea4d
10539219b59fcea00f8b19a406db3d4c3f4d289e
refs/heads/master
2023-08-04T13:27:13.309769
2021-08-29T14:06:43
2021-08-29T14:06:43
400,827,602
0
0
null
null
null
null
UTF-8
Python
false
false
2,107
py
from django.shortcuts import render from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView, FormView from django.urls import reverse_lazy from django.contrib.auth.views import LoginView from django.contr...
311b252fcafda3be30a0ef65d230b9e80034b49b
4b3d25e20d710442eb63ed0a655c1ae1cfe68303
/admin/xstat.py
f3ab436a10a6b2750beeccd42aad970000f8aaa4
[ "ISC" ]
permissive
openafs-contrib/afs-tools
ad720ae6c56a9500734eed2d84d11b7f58f01f67
6509810b8c66454e78514c78bb30d12281067edb
refs/heads/master
2022-10-21T03:06:27.350718
2022-10-11T19:19:55
2022-10-14T17:56:01
6,767,969
5
6
ISC
2021-07-08T13:39:37
2012-11-19T21:54:11
Perl
UTF-8
Python
false
false
10,758
py
#!/usr/bin/env python # Copyright (c) 2014-2017 Sine Nomine Associates # # 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 cond...
b983070276e9108430c515665fa30b6bce8cb8fb
f6841d5626d87e836f6012d88c783706fa46d769
/web_crawler.py
c736c3b9c98f9e2dabb384fc0182472094e813d0
[]
no_license
Jack-Valentine/python-seminar-4
850b22cd7c552b570e25e9432abf98a25cf0b7d6
cd6c8945f436fa5dc0d6dec14551d07e6dd3562a
refs/heads/master
2021-01-22T07:42:35.044924
2017-05-25T03:46:59
2017-05-25T03:46:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,010
py
from bs4 import BeautifulSoup from gevent import monkey import sys import gevent import time import urllib.request def crawling_product_price(product_url): try: with urllib.request.urlopen(product_url) as response: html = response.read() soup = BeautifulSoup(html, 'html.parser') ...
69e51fdfc4869a7c3cbfdeaf0cb52e5fa0558a74
f69eccca4970bc898983b149bbadfc6a79e77916
/befh/api_socket.py
9252264f83791eecb5cd78803add2d6948531050
[ "Apache-2.0" ]
permissive
chrischris292/MarketDataGdax
a3cd911edafe7a246a1d553180e1edb66a125c8c
95dc398123f7878526df4af2402af3cbeee67057
refs/heads/master
2021-05-06T17:38:19.949472
2017-11-24T22:24:40
2017-11-24T22:24:40
111,900,487
1
0
null
null
null
null
UTF-8
Python
false
false
887
py
#!/bin/python class ApiSocket: """ API socket """ def __init__(self): pass @classmethod def parse_l2_depth(cls, instmt, raw): """ Parse raw data to L2 depth :param instmt: Instrument :param raw: Raw data in JSON """ return None @...
5f8d714422c7d691696299d9f7a93d52b2168c5c
59166105545cdd87626d15bf42e60a9ee1ef2413
/test/test_space_shuttle_api.py
f91c3cfb0e3cfbade624d087754e5913f39e478a
[]
no_license
mosoriob/dbpedia_api_client
8c594fc115ce75235315e890d55fbf6bd555fa85
8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc
refs/heads/master
2022-11-20T01:42:33.481024
2020-05-12T23:22:54
2020-05-12T23:22:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
995
py
# coding: utf-8 """ DBpedia This is the API of the DBpedia Ontology # noqa: E501 The version of the OpenAPI document: v0.0.1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import dbpedia from dbpedia.api.space_shuttle_api import SpaceShutt...
de412810d3844cf5f8ee29bbd2e1e99a79ec08a8
31085d66c719c5c27aec57be693bb99c902d2596
/flux_tool/neutrino.py
f2e1a11c0da132e7731968f5bce499d1e10f630c
[]
no_license
bhokansonfasig/flux_tool
0fa0692a3a10cb0b493a1a34ffb3339db49ac585
a74d991d0a02d31eea00d5dd053405542d16247d
refs/heads/main
2023-02-12T04:13:10.814367
2021-01-08T23:54:45
2021-01-08T23:54:45
327,973,884
1
1
null
null
null
null
UTF-8
Python
false
false
9,805
py
"""Class for neutrino interaction physics calculations""" from enum import Enum import numpy as np import scipy.constants from . import units def get_from_enum(value, enum): """ Find the enum value given some representation of it. Transforms the given `value` into the corresponding value from the `enu...
165d038ef67c6e5d9650811fb8eebb4c215a8874
1ad12a71c3d5d2b3810ce03e8bd138c4ffb66eb8
/xlsxwriter/test/comparison/test_chart_axis17.py
d77b584fbddf1629eaf7474c77dea6cb5512ae61
[ "BSD-2-Clause-Views" ]
permissive
idreamsfy/XlsxWriter
b52929229b16e2ee1eaca0cda9980a5a0aad5769
129044ed821de67895b4562c6b71f90eba5be6b4
refs/heads/master
2021-01-02T20:39:20.415882
2020-02-07T21:07:55
2020-02-07T21:07:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, [email protected] # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
ac0032fb8c3c73b7de8979c896fcd0df0b3a547f
263dc86ea58278d6e1db448c245f692049c73199
/employeedetails/customer/urls.py
00350cd841b461cd5617ec8e73ffdbac809561d7
[]
no_license
krishnanunni-pr/MyDjangoProjects
c3a81b193a659c47fd6aec01777d6f689479eb9f
3d644d2a261243be40f5678e9a61d508a5980143
refs/heads/master
2023-08-05T20:10:08.509167
2021-09-27T09:21:21
2021-09-27T09:21:21
394,686,590
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
from django.urls import path from customer import views urlpatterns=[ path("accounts/signup",views.signup,name="signup"), path("accounts/signin",views.signin,name="signin"), path("accounts/signout",views.signout,name="signout"), path("",views.home,name="home") ]
f63b4dd68f760c9f304342b9e16b4f91fa19bd8f
6a95112805b64322953429270a305d01fef3faea
/dist/weewx-3.6.2/bin/weewx/drivers/ws23xx.py
2b538e1eaf92814e477ceee58c4beccac5760015
[ "GPL-1.0-or-later", "GPL-3.0-only", "Apache-2.0" ]
permissive
tomdotorg/docker-weewx
c6d59dc492a9e53f3bc898f7b9f593717092d72c
7085654f455d39b06acc688738fde27e1f78ad1e
refs/heads/main
2023-06-08T17:57:44.184399
2023-01-30T11:21:23
2023-01-30T11:21:23
54,113,384
21
16
Apache-2.0
2022-10-19T23:46:26
2016-03-17T11:39:29
Dockerfile
UTF-8
Python
false
false
79,394
py
#!usr/bin/env python # # Copyright 2013 Matthew Wall # See the file LICENSE.txt for your full rights. # # Thanks to Kenneth Lavrsen for the Open2300 implementation: # http://www.lavrsen.dk/foswiki/bin/view/Open2300/WebHome # description of the station communication interface: # http://www.lavrsen.dk/foswiki/bin/vie...
9b8abd96e7a9d1cf1657b05be3e7327c9595c874
f64e31cb76909a6f7fb592ad623e0a94deec25ae
/tests/test_p0380_insert_delete_getrandom_o1.py
6fb1b572dadda2d8a17a49d0331190489c5cd47b
[]
no_license
weak-head/leetcode
365d635cb985e1d154985188f6728c18cab1f877
9a20e1835652f5e6c33ef5c238f622e81f84ca26
refs/heads/main
2023-05-11T14:19:58.205709
2023-05-05T20:57:13
2023-05-05T20:57:13
172,853,059
0
1
null
2022-12-09T05:22:32
2019-02-27T05:58:54
Python
UTF-8
Python
false
false
1,572
py
# flake8: noqa: F403, F405 import pytest from leetcode.p0380_insert_delete_getrandom_o1 import * solutions = [ RandomizedSet, ] # ([args], expectation), test_cases = [ [ ("d", 2, False), ("i", 1, True), ("i", 1, False), ("r", None, {1}), ], [ ("d", 2, False), ...
27eeeb653c05caa760b8785076bda08a096fb674
0eb599c3bbfa6e5b31516913b88cc9db3a1311ce
/AtCoder_unofficial/chokudai_speedrun_001_i.py
5148ec2cff2560f0cb7e129c29a7606713c0aa9f
[]
no_license
Linus-MK/AtCoder
5b84dc88c2d2773d0f97ed18265d303290da7879
a587e89a9e0c2ab4d36b09176bcc95e901e14326
refs/heads/master
2022-11-25T05:37:12.148722
2022-11-17T16:04:10
2022-11-17T16:04:10
169,840,698
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
n = int(input()) nums = list(map(int, input().split())) # 累積和 + α # 累積和が単調増加であることを利用して二分探索で解くか(NlogN) # 1からの相異なる数の和がnに達するのは割と早いことを利用して逐次計算で解くか(最悪N√Nだがそれより小さいはず) # 後者でやってみよう # 369ms, 余裕を持って間に合う cumsum = [0] * (n+1) for i in range(n): cumsum[i+1] = cumsum[i] + nums[i] ans = 0 for i in range(n+1): for j in ran...
c1596616ba13010400e6d2581bcc6100afca0493
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_10_01/operations/_maintenance_configurations_operations.py
1ff70644846346ec7ed89b8078257c9d68991e1e
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
26,102
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...
278beccd4959f7b5d2b6bd3011a01f60c47f08e7
3f8de52ba41a7abb4a8b222908f98747d13e1afa
/rlpy/stats/_stats.py
13b84d0d9773808baa5d5c273610176409964df4
[ "ISC" ]
permissive
evenmarbles/rlpy
9c6b570ca3117d2171a897e06ec6deef8fdd918a
3c3c39a316285ca725268e81aef030e5c764f797
refs/heads/master
2016-08-11T06:50:19.679495
2016-03-12T22:04:05
2016-03-12T22:04:05
53,755,316
1
0
null
null
null
null
UTF-8
Python
false
false
12,387
py
from __future__ import division, print_function, absolute_import # noinspection PyUnresolvedReferences from six.moves import range import numpy as np # noinspection PyPackageRequirements from sklearn.utils.extmath import logsumexp from ..auxiliary.array import nunique __all__ = ['is_posdef', 'randpd', 'stacked_randp...
82fb173cf47cd88083962ab2b73da46b3f4fcc51
817142283452fd6d351f2faaaccbeb1b012155ef
/ntc_rosetta_conf/usr_datastore.py
201738bef1e9d1f63cecf9c45559e4d5b2c7deac
[ "Apache-2.0" ]
permissive
networktocode/ntc-rosetta-conf
ada2356f9e717a9688300842dd613a9021a78456
06c8028e0bbafdd97d15e14ca13faa2601345d8b
refs/heads/develop
2021-09-26T13:02:30.495809
2019-08-14T15:53:25
2019-08-14T15:53:25
191,575,862
5
1
Apache-2.0
2021-09-16T15:04:24
2019-06-12T13:24:51
Python
UTF-8
Python
false
false
86
py
from jetconf.data import JsonDatastore class UserDatastore(JsonDatastore): pass
5225cec94bbd84fd01b937451ec2e442f10c6b36
64aadced1900d9791099228fa91995c2f8444633
/python/prices.py
1865f0e7dfe64d2745c9ef79321c2b43b4be11fc
[]
no_license
ctmakro/playground
821a8c668b58ebd81cd48309e6f4c6cd16badea7
5d6e8e528f1913b6089322ef388213cec5264ae1
refs/heads/master
2020-12-25T01:51:12.041611
2020-07-14T19:17:24
2020-07-14T19:17:24
57,165,089
0
0
null
null
null
null
UTF-8
Python
false
false
1,044
py
wg = '''<!-- TradingView Widget BEGIN --> <div class="tradingview-widget-container"> <div class="asdf">{}</div> <div class="tradingview-widget-container__widget"></div> <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-mini-symbol-overview.js" async> {{ "symbol": "...