blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0aab616a8c0ca629a1f4e434c91a20302f47285b | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/monitoring/metricsscope/v1/monitoring-metricsscope-v1-py/google/monitoring/metricsscope_v1/__init__.py | 1530640d664a0943bb90109a53b0c43ead78fa5b | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,521 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
b4d83d9b56e607732cd70a9353169eb6c897b04c | 2a2435c1955f61727c9968ea87a599d6e999c1bd | /core/migrations/0010_billingaddress.py | 88d7b724fb03f794792b0d947aca41ec9c668d05 | [] | no_license | mahmoudabuelnaga/dje-commerce | 9a5ba483b568613860d55c6062a01cd08ff9466c | 964917da53dc6045c4374943fce68d7de0edad37 | refs/heads/master | 2020-12-15T17:59:11.443834 | 2020-02-23T23:55:29 | 2020-02-23T23:55:29 | 235,202,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | # Generated by Django 2.2 on 2020-01-20 02:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_countries.fields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"[email protected]"
] | |
e72fb5148e9d6560555da3cb66069e5cb311d78e | 147519505f3c47e5f10d9679e07d3719931b9fd0 | /my_contacts/contacts/views.py | 177a81dfd5a303c238013aa4c1cbcc9b156afbe2 | [] | no_license | grbalmeida/hello-django | 85ed28d8d47a9a2e072f3eecd13d22fb2e977a31 | 9ef261ba5faeac3de8d36eeb7efa8974e5d1e661 | refs/heads/master | 2020-08-12T10:10:48.554349 | 2019-12-20T01:18:33 | 2019-12-20T01:18:33 | 214,748,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | from django.shortcuts import render, get_object_or_404, Http404, redirect
from django.core.paginator import Paginator
from django.db.models import Q, Value
from django.db.models.functions import Concat
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from .models import Cont... | [
"[email protected]"
] | |
8dc96ae6d44f834bc6be387acb6a7d8ae7d3e972 | a9eed4d7b8d5256af9f33363761683bba32f106f | /apps/organization/migrations/0006_auto_20180620_2140.py | 98e71397529b5d6e0e4d6500af697f01abd731dc | [] | no_license | cannon-liu/mkonline | 12735d4761663ba42fdd6fe781a2658a5db1b383 | 2a1c64c10ae67abe58c1bfcd77c564fd53957067 | refs/heads/master | 2020-03-28T22:19:08.747770 | 2018-09-18T06:17:50 | 2018-09-18T06:17:50 | 149,223,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 2.0.6 on 2018-06-20 21:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organization', '0005_auto_20180620_1655'),
]
operations = [
migrations.AlterField(
model_name='teacher',
name='image... | [
"[email protected]"
] | |
50d3fa769119f65fde8c60106790dd20765218bf | effce116340b7d937bd285e43b49e1ef83d56156 | /data_files/profiler.py | 721d79980232dad6801fb4dd8236482b83610596 | [] | no_license | DL2021Spring/CourseProject | a7c7ef57d69bc1b21e3303e737abb27bee3bd585 | 108cdd906e705e9d4d05640af32d34bfc8b124da | refs/heads/master | 2023-04-11T18:52:30.562103 | 2021-05-18T09:59:59 | 2021-05-18T09:59:59 | 365,733,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from cProfile import Profile
from pstats import Stats
__author__ = 'Daniel'
def demo():
f = lambda x: x
profiler = Profile()
profiler.runcall(f)
stats = Stats(profiler)
stats.strip_dirs()
stats.sort_stats('cumulative')
stats.print_stats()
stats.print_cal... | [
"[email protected]"
] | |
045e91eefbb6784e11a0d581027f7438c82d7ee4 | 211874c8c72ad0ff1e4d30b29f2e179161a36195 | /lingvo/tasks/milan/params/dual_encoder_recipe.py | 34d43f560fae603a1f930703f68e0a0e586a149f | [
"Apache-2.0"
] | permissive | sailfish009/lingvo | d3308260d2365477e38c4b1b61bdaa4405172b1e | 432e1b0918459c28fcfbed0e6d1a2f48a962a80f | refs/heads/master | 2023-04-19T03:15:51.420821 | 2021-04-27T22:52:45 | 2021-04-27T22:53:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,743 | py | # Lint as: python3
# Copyright 2021 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 ... | [
"[email protected]"
] | |
ca570fc3f6bac84c77a2c7ed692f80fdf74003e1 | d737fa49e2a7af29bdbe5a892bce2bc7807a567c | /software/qt_examples/src/pyqt-official/sql/cachedtable.py | fc5e0ccdcaaacec4422fb011786cc34c79471638 | [
"MIT",
"CC-BY-NC-SA-4.0",
"GPL-1.0-or-later",
"GPL-3.0-only"
] | permissive | TG-Techie/CASPER | ec47dfbfd6c3a668739ff4d707572e0b853518b4 | 2575d3d35e7dbbd7f78110864e659e582c6f3c2e | refs/heads/master | 2020-12-19T12:43:53.825964 | 2020-01-23T17:24:04 | 2020-01-23T17:24:04 | 235,736,872 | 0 | 1 | MIT | 2020-01-23T17:09:19 | 2020-01-23T06:29:10 | Python | UTF-8 | Python | false | false | 4,184 | py | #!/usr/bin/env python
#############################################################################
##
## Copyright (C) 2013 Riverbank Computing Limited.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## This file is part of the examples of PyQt.
##
## $QT_BEGIN_LICENS... | [
"[email protected]"
] | |
9fc60961ec8cdf589ac40c7a9a1ed86cf073e0f3 | 2c95e0f7bb3f977306f479d5c99601ab1d5c61f2 | /olive/rpc/farmer_rpc_api.py | 2544c04855463194e9428596f772ea7d75e8b7b9 | [
"Apache-2.0"
] | permissive | Olive-blockchain/Olive-blockchain-CLI | d62444f8456467f8105531178d2ae53d6e92087d | 8c4a9a382d68fc1d71c5b6c1da858922a8bb8808 | refs/heads/main | 2023-07-19T03:51:08.700834 | 2021-09-19T16:05:10 | 2021-09-19T16:05:10 | 406,045,499 | 0 | 0 | Apache-2.0 | 2021-09-19T16:05:10 | 2021-09-13T16:20:38 | Python | UTF-8 | Python | false | false | 5,569 | py | from typing import Callable, Dict, List, Optional
from olive.farmer.farmer import Farmer
from olive.types.blockchain_format.sized_bytes import bytes32
from olive.util.byte_types import hexstr_to_bytes
from olive.util.ws_message import WsRpcMessage, create_payload_dict
class FarmerRpcApi:
def __init__(self, farme... | [
"[email protected]"
] | |
aaa6aa548821da963e638937b213dc378966b3c7 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/55/usersdata/88/23890/submittedfiles/av2_p3_civil.py | ed8eac935d52a83bb78809e7cbded4971043205d | [] | 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 | 708 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
def slinha(a,x):
soma=0
for j in range(0,a.shape[1],1):
soma=soma+a[x,j]
return soma
def scoluna(a,y):
soma=0
for i in range(0,a.shape[0],1):
soma=soma+a[i,y]
return soma
def somatorio(a,x,y):
soma=... | [
"[email protected]"
] | |
3951a840c8f398942a0c28d4e5f40a8e9f9f69a1 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2015_03_17_plastic_polycrystal/calibration.py | f385c0c6a6ac236b52df962dea3b4c3b32f84600 | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 23 14:25:50 2014
This script performs the MKS calibration given the microstructure function
and the FIP response, both in frequency space.
@author: nhpnp3
"""
import time
import numpy as np
import functions as rr
from functools import partial
import tables as tb
def c... | [
"[email protected]"
] | |
c3844394a1d734f67a9d8879ca813c80bfbe37eb | 80f56878dbceb714266abca85519ebbfa131404e | /app/main.py | 9266f39af6e62cd635ea47fef07f21720c4cb42c | [] | no_license | z-sector/async-fastapi-sqlalchemy | 1b944173972bc8487a2f9c638810ba0ffffbbbf5 | 9d622677c56d6d8495f3c87522216f289d52e2f7 | refs/heads/main | 2023-08-15T03:05:10.260060 | 2021-09-12T00:55:02 | 2021-09-12T00:55:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | from fastapi import FastAPI
from fastapi.responses import JSONResponse
from app.api.main import router as api_router
from app.settings import Settings
settings = Settings()
app = FastAPI(title="async-fastapi-sqlalchemy")
app.include_router(api_router, prefix="/api")
@app.get("/", include_in_schema=False)
async def... | [
"[email protected]"
] | |
443ad2b069ebe801ccdc2108f6045a11a4f817f6 | c2e93b806bf439136d7ff651c14601af405eddc5 | /play_input.py | 362bf3b9fe6bed561365d670f1af67ed564a0782 | [] | no_license | mehulchopradev/divya-python-core | 11bdd09072b81a7f4c46ee84170119655f9d7273 | 0d10fd5697686c3fb46ab1f9b42c0b7d2fb771b8 | refs/heads/master | 2020-08-23T20:35:12.946154 | 2019-11-05T03:00:07 | 2019-11-05T03:00:07 | 216,702,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | print('Program starts')
n = input('Enter n : ')
# Exception handling
try:
ii = int(n)
except ValueError:
print('Please enter integer value')
else:
# will execute when there is no exception raised in the corresponding try block
print('Odd') if ii % 2 else print('Even')
print('Program ends') | [
"[email protected]"
] | |
6b152beccb5eaa5fe80526c70aa33082e6c766ef | 3a28b1a12d0710c06f6360381ad8be6cf3707907 | /modular_model/triHPC/triHPCThermo/HPCAllTrays4CstmVapO2_px_N2.py | 2fd80c1ca4fc8994a818eb65c208cb1c144cf3b0 | [] | no_license | WheatZhang/DynamicModelling | 6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02 | ea099245135fe73e8c9590502b9c8b87768cb165 | refs/heads/master | 2020-06-15T14:12:50.373047 | 2019-07-05T01:37:06 | 2019-07-05T01:37:06 | 195,319,788 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | def VapO2_px_N2(P,T,x_N2):
x = (P-5.62017561e+02)/2.47804900e-01
y = (T--1.74950614e+02)/6.71933000e-02
z = (x_N2-7.23608844e-01)/7.27108322e-03
output = \
1*1.91797051e+00
y_O2 = output*1.00000000e+00+0.00000000e+00
return y_O2 | [
"[email protected]"
] | |
59b39957186f3c76e740d3bac8084fb63519bf5e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/3066.py | fce606fdb7b3bf7e4ebcb4d8aa5331d6907dbeba | [] | 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 | 1,265 | py | fin = open('in', 'r')
fout = open('out', 'w')
numberOfCases = int(fin.readline())
def findChosenRow():
answer = int(fin.readline())
for rowNum in range (1,5):
row = fin.readline()
if rowNum == answer:
cosenRow = row.split()
cosenRow = [int(string) for str... | [
"[email protected]"
] | |
4cb9216fe42a1d68811c6513183c40488acaff47 | bb150497a05203a718fb3630941231be9e3b6a32 | /models_restruct/deepxde/tools/start.py | 7e9ecf8ec9ecf1528bb5f166d1ce332103f5b5aa | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 6,862 | py | """
start before model running
"""
import os
import sys
import json
import shutil
import urllib
import logging
import wget
logger = logging.getLogger("ce")
class DeepXDE_Start(object):
"""
自定义环境准备
"""
def __init__(self):
"""
init
"""
self.qa_yaml_name = os.environ["qa... | [
"[email protected]"
] | |
2a3afbad100efcb1edda22e3475a09ff6d227fab | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/ai/DistributedPhaseEventMgr.py | 2a79a55ca8df3ac10529506eb7476344ed65df63 | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 1,096 | py | # File: t (Python 2.4)
from direct.directnotify import DirectNotifyGlobal
from direct.distributed import DistributedObject
import datetime
class DistributedPhaseEventMgr(DistributedObject.DistributedObject):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedPhaseEventMgr')
def __init__(sel... | [
"[email protected]"
] | |
0f20585a844977b4362a9860a036f47b28823b97 | ecf1ce6f8b592f76c7b7c253608c1264ae0676a3 | /days/day017/list_comprehensions_and_generators.py | 78d9123b75c5cf83388f77dff5985392cf955d59 | [] | permissive | alex-vegan/100daysofcode-with-python-course | 94e99880a50ac412e398ad209ed53796f253641f | b6c12316abe18274b7963371b8f0ed2fd549ef07 | refs/heads/master | 2021-07-20T23:05:59.721661 | 2019-01-21T16:18:25 | 2019-01-21T16:18:25 | 150,115,516 | 0 | 0 | MIT | 2018-09-24T14:28:16 | 2018-09-24T14:28:15 | null | UTF-8 | Python | false | false | 1,006 | py | from random import sample
from itertools import islice
from pprint import pprint as pp
NAMES = ['arnold schwarzenegger', 'alec baldwin', 'bob belderbos',
'julian sequeira', 'sandra bullock', 'keanu reeves',
'julbob pybites', 'bob belderbos', 'julian sequeira',
'al pacino', 'brad pitt'... | [
"[email protected]"
] | |
83ef4a6d7e5cdbfb45c05ea36208a409740e1e33 | 2280e309df300fe1d4cd684799b9aeeb3495c6cc | /core/inbound.py | c6ecbcc422d08468584f3ea64b30969da4f41629 | [] | no_license | cming091/psshutlle-toots | 471fe1a9505116b6d9571259e9de04b3d7404f98 | 1445c2efd024fe33743c09bac799ed9f4a3f15cb | refs/heads/master | 2023-05-30T12:34:39.364337 | 2021-06-21T07:23:23 | 2021-06-21T07:23:23 | 378,834,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,856 | py | import time
import os
from .base import Base
from config import CONF
from utils import *
from psgrpc import wholeInboundBcr
logger = LogHandler(__name__)
class Inbound(Base):
def __init__(self, data):
super(Inbound,self).__init__(data)
def singleProcess(self):
self.common.tearDownStockAndAss... | [
"[email protected]"
] | |
dcc7adaa49fada352d2eb346c9e51df6ed8c9dd4 | 0a5c468cee07b79ddb5368aa7b0fe118f4b11e72 | /lazy_slides/download.py | 72beca49e25d6ab0de60cb57f0674c4ab1b133c7 | [] | no_license | abingham/lazy_slides | c36e451571c14e53cbc2817d4f72475fa5c400ba | ca8eb4618415df6eaa9fb3c3f721cb168708f52b | refs/heads/master | 2020-05-19T16:34:20.286129 | 2013-06-18T17:58:05 | 2013-06-18T17:58:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | import contextlib
import logging
import os
import urllib2
import urlparse
import uuid
log = logging.getLogger(__name__)
def download(url, directory):
'''Download a file specified by a URL to a local file.
This generates a unique name for the downloaded file and saves
into that.
:param url: The URL ... | [
"[email protected]"
] | |
80cd8baa4841a770e7eb7696c77d6f7a99d12ad2 | 23130cd12e38dbce8db8102810edaad70b240ae2 | /lintcode/235.py | e2c5a50114f99694f5bfed245e493ea6148b0de9 | [
"MIT"
] | permissive | kangli-bionic/algorithm | ee6687c82101088db20f10fb958b4e45e97d3d31 | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | refs/heads/master | 2023-01-05T09:29:33.204253 | 2020-10-25T17:29:38 | 2020-10-25T17:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | """
235. Prime Factorization
https://www.lintcode.com/problem/prime-factorization/
"""
import math
class Solution:
"""
@param num: An integer
@return: an integer array
"""
def primeFactorization(self, num):
result = []
up = math.sqrt(num)
k = 2
while k <= up and num ... | [
"[email protected]"
] | |
8879d084898863cce23dedb47389a370ebb7adcf | 11a1e1140fe869e83e337518ca99162cca8780dd | /BHScripts_8TeV_postICHEP_Final_WithRun2012C_NewFitRange/histograms/DataAnalysis_FitRanges/Styles.py | ec5775c7f79b34278912b0d67309b9cfba720b4c | [] | no_license | jhakala/BHMacros | 6bdd1ac855df8a803f39f06e7e218b24b2eb76b1 | bc3cf2e3c1d3570a9e042c865214035e60d20021 | refs/heads/master | 2021-01-19T04:52:27.624800 | 2015-04-09T12:14:21 | 2015-04-09T12:14:21 | 33,666,386 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,718 | py | pattle = [862, 814, 797, 899, 614, 921]
marker = [20, 21, 22, 25, 24, 26]
from ROOT import gStyle
from ROOT import gROOT
from ROOT import TStyle
gStyle.SetPadTopMargin(0.05)
gStyle.SetPadRightMargin(0.05)
def formatST(h):
h.SetMarkerStyle(20)
h.SetMarkerColor(923)
h.SetLineColor(923)
h.SetXTitle("S_{T} (... | [
"[email protected]"
] | |
f3a5e46acb64711021bf454c7e8f5af682764ebf | 48f10cc3520ba8cfa5f3478e4b021766e4d5f29b | /openpyexcel/drawing/tests/test_text.py | 82b747c27e487d5e6e9267a416b1ef8698b4401b | [
"MIT"
] | permissive | sciris/openpyexcel | bef5094d193e62806164c77777fe8c741511aaec | 1fde667a1adc2f4988279fd73a2ac2660706b5ce | refs/heads/master | 2022-01-20T14:04:52.196385 | 2019-02-06T22:48:38 | 2019-02-06T22:48:38 | 168,293,752 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,372 | py | from __future__ import absolute_import
# Copyright (c) 2010-2019 openpyexcel
import pytest
from openpyexcel.xml.functions import fromstring, tostring
from openpyexcel.tests.helper import compare_xml
@pytest.fixture
def Paragraph():
from ..text import Paragraph
return Paragraph
class TestParagraph:
d... | [
"[email protected]"
] | |
41e9e39d9234f668e5bdebd3c69be5fac6a52ed8 | bc074a145c83c53c24288a62806e9806f4bf992f | /lib/bp_utils/filt.py | 8ef6443344a1f4016b9beb9ad690d9e0634a3618 | [] | no_license | Genomon-Project/GenomonBreakPoint | 4b9f44751894d67d8e19a0170f162ab15ce6b237 | 0eed3922c483edcc8a181af042fcce86ad9d9203 | refs/heads/master | 2021-06-09T06:36:31.676564 | 2016-11-20T13:26:36 | 2016-11-20T13:26:36 | 73,768,508 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,154 | py | #! /usr/bin/env python
import sys, gzip, math, numpy
import pysam
from scipy import stats
def filter_by_control(tumor_bp_file, output_file, matched_control_bp_file, merged_control_file,
min_support_num, min_median_mapq, min_max_clip_size, max_control_num_thres):
use_matched_control = True i... | [
"[email protected]"
] | |
38e297f2ecdcdafc8a850489ec195d720ca6a99a | fff5eeff850258b5208f41d4f6c3027044f5374a | /blog/tests/test_urls.py | e384ffffc42e1bbf5c436fcd0981a200d3649038 | [] | no_license | khabdrick/django-pytest | 3f4300f875ed4c6ad9d4fa1bb3bf0902c3e420e7 | 5ce5f5cd1973885dfa2d476b1817d00644e9b10c | refs/heads/main | 2023-04-01T17:10:22.220605 | 2021-04-20T17:27:43 | 2021-04-20T17:27:43 | 345,196,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from django.urls import reverse, resolve
class TestUrls:
def test_post_content_url(self):
path = reverse("content", kwargs={'pk':1})
assert resolve(path).view_name == "content" | [
"[email protected]"
] | |
ec2f321127e4a1f870d4e4c9b178002ea220402a | d74ccf6290b7acb0011fd9b9132cd8beac0bd9d3 | /back/movies/migrations/0003_movie_like_users.py | 13f3f2abdab2d74e4da72d3a07d59fe254a85fc1 | [] | no_license | gaberani/final_netflix | a0687c9cec9157712c9fe2a8627d3624e5fe00b6 | 637016fd6a0c589f1ff96ed5e9225deffc8f18cb | refs/heads/master | 2022-11-09T10:42:22.460795 | 2020-06-21T00:30:21 | 2020-06-21T00:30:21 | 272,981,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # Generated by Django 2.1.15 on 2020-06-15 11:38
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('movies', '0002_comment'),
]
operations = [
... | [
"[email protected]"
] | |
517d75eb080fc570f9f2944db0205779a06920c9 | 6ac0bba8c1851e71529269c0d9d89a7c8fa507f2 | /Medium/18.py | 5808c521f0c1350c3c957493c5fcc72c735dcfcf | [] | no_license | Hellofafar/Leetcode | e81dc85689cd6f9e6e9756beba070cb11e7b192e | 7a459e9742958e63be8886874904e5ab2489411a | refs/heads/master | 2021-05-16T07:07:19.823953 | 2020-02-17T03:00:09 | 2020-02-17T03:00:09 | 103,690,780 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | # ------------------------------
# 18. 4Sum
#
# Description:
# Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.
#
# Note: The solution set must not contain duplicate quadruplets.
#
# Note: ... | [
"[email protected]"
] | |
68616c0dbcebfbf9c42b5566168c88f7aa8c9404 | 7c2e677d931a8eb7d7cffc6d54713411abbe83e4 | /AppBuilder9000/AppBuilder9000/NflApp/migrations/0001_initial.py | c6c706f8bd214fbbea2270eca679fe35fce7be36 | [] | no_license | r3bunker/Python_Live_Project | 19e367b3cf74c2279c287fcd3a8a44a27f24041a | d3e06150d7daea6326cc1a4155309d99e4ff6244 | refs/heads/main | 2023-06-12T23:01:50.440371 | 2021-06-16T20:21:03 | 2021-06-16T20:21:03 | 344,883,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # Generated by Django 2.2.5 on 2020-11-06 15:17
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='PlayerProfile',
fields=[
('id', models.Auto... | [
"[email protected]"
] | |
76e31ee753accb6937d8800000f3bbc5a28dabe6 | 8a9f0a0924706ded24ab4214aa42ab07f201e38b | /LeetCode_Python/Linked_List/Swap_Nodes_In_Pairs.py | 030136ef60b1879da3ce6eb6cdd836e2dfdd49ae | [] | no_license | gitzx/Data-Structure-Algorithm | 687162565729b12551cb660aa55a94f1d382014c | d6af7dfdc4d3d139fd939687a45dd36e327c914c | refs/heads/master | 2021-06-03T21:27:17.750464 | 2019-06-27T10:50:48 | 2019-06-27T10:50:48 | 14,443,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | '''
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. You may not modify the values in the list, only nodes itself can be changed.
'''
'''
class ListNode(object):
def __init... | [
"[email protected]"
] | |
b8760e44c9b37c312a00f01f06b0f1d1992247d0 | 28b405b8a538187367e019e45dd7fff3c5f4f296 | /src/rocks-pylib/rocks/commands/set/host/interface/vlan/__init__.py | 6224fb0a1b94d913a4014f8e6961bc95b0bc6627 | [] | no_license | rocksclusters/core | 95c84cbe4d9f998eea123177e43b25fa0475c823 | 7fb7208aa4a532e64db83e04759d941be9b96d91 | refs/heads/master | 2023-04-08T16:30:45.931720 | 2023-03-23T17:18:54 | 2023-03-23T17:18:54 | 58,084,820 | 21 | 11 | null | 2019-08-22T21:17:23 | 2016-05-04T21:21:17 | Python | UTF-8 | Python | false | false | 5,142 | py | # $Id: __init__.py,v 1.10 2012/11/27 00:48:28 phil Exp $
#
# @Copyright@
#
# Rocks(r)
# www.rocksclusters.org
# version 6.2 (SideWinder)
# version 7.0 (Manzanita)
#
# Copyright (c) 2000 - 2017 The Regents of the University of California.
# All rights reserved.
#
# Redistribution... | [
"[email protected]"
] | |
9896ed4a15946204d46a0faecec93ee19b1562de | 15373eaa353e8aece47a26741b7fb27795268bf6 | /easy/674_longest_continuous_increasing_subsequence.py | ef6d6b79c989164a5d0abafb804820ca0af2c060 | [] | no_license | esddse/leetcode | e1a9bacf04c68a8d642a1e53c90e6c2dda2c1980 | 0ceccdb262149f7916cb30fa5f3dae93aef9e9cd | refs/heads/master | 2021-06-08T19:15:14.346584 | 2020-01-09T01:41:23 | 2020-01-09T01:41:23 | 109,675,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | class Solution:
def findLengthOfLCIS(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return 0
N = len(nums)
dp = [1] * N
max_len = 1
for i in range(1, N):
if nums[i] > nums[i-1]:
... | [
"[email protected]"
] | |
c78fca675d5676273ac2feefb58558b427a6339b | 74e53273dc5aa71293a385512b3d239971099738 | /Data_structures_and_Algorithms/linked_list/odd_even_linked_list.py | 23a4c71690de5d036acb1edf0b4d3ec4ea4b1b76 | [] | no_license | BJV-git/Data_structures_and_Algorithms | 3b240bf699e7091453f3a1459b06da1af050c415 | 393c504b2bb17b19e76f6d9d9cce948b4c12dbb2 | refs/heads/master | 2020-04-23T22:32:22.525542 | 2019-02-19T16:09:51 | 2019-02-19T16:09:51 | 171,504,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # just about the positional ordering
# just can go by the next.next and set the odd last to even head
def odd_even(head):
if not head or not head.next: return head
odd =head
even = head.next
evenhead = head.next
while even and even.next:
odd.next = odd.next.next
odd = odd.next
... | [
"[email protected]"
] | |
7b3118281a9061e8454ba7aa096b0e07c96dd9f7 | 72d95f3b8c4de3e76c1125b2e6573539cadbe66a | /robot/logging.py | bf0f763b3df4200826a487da9e41562cb5cc3fba | [
"MIT"
] | permissive | skyzhishui/wukong-robot | 4b2c4255fffa61705b735fed57fd0c90c4d40d7c | 8395cd4030d340459edd7862b186a6f9395925ff | refs/heads/master | 2020-12-23T03:37:03.320598 | 2020-01-29T16:03:04 | 2020-01-29T16:03:04 | 237,020,512 | 2 | 0 | MIT | 2020-01-29T15:48:47 | 2020-01-29T15:48:46 | null | UTF-8 | Python | false | false | 2,197 | py | import logging
import os
from robot import constants
from logging.handlers import RotatingFileHandler
PAGE = 4096
DEBUG = logging.DEBUG
INFO = logging.INFO
WARNING = logging.WARNING
ERROR = logging.ERROR
def tail(filepath, n=10):
"""
实现 tail -n
"""
res = ""
with open(filepath, 'rb') as f:
... | [
"[email protected]"
] | |
ffc8618fc8a2d869759cb4bd9356f6df5ecafba8 | 14efc9ec42d4fe9beecad1cff66bba77e68b8b74 | /vinod/Scripts/easy_install-3.7-script.py | 7c2e1061a952cf3de73b1ff4da86706252c40275 | [] | no_license | vinodkumar96/ModelForms_ClassBased | b515386554e6241af749742319d46d317755d48f | c1435b7145ac9eb9dff45618ad4c3446667cdc5a | refs/heads/master | 2020-06-14T19:15:55.312078 | 2019-07-03T17:38:07 | 2019-07-03T17:38:07 | 195,100,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | #!C:\PyCharm\PycharmProjects\new_projects\ModelForms_ClassBased\vinod\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] ... | [
"[email protected]"
] | |
e884df3f64553ec1d649d28e8ef4317ea6af6c01 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /organizations_write_f/delegated-administrator_deregister.py | 92bfd542b0cbd45339078af1faf66f98e2e5cf32 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"[email protected]"
] | |
7b72d2a794746c8ae3ce5d3b0062853fb3515f96 | 02f3fcbd495c2282694ad0612a66640b4731582f | /helloworld/helloworld.py | 610c9184d9177bfd6ddccf2c45d3cd1da7bb4e73 | [
"MIT"
] | permissive | plter/LearnKivy2021 | 8f39f99bf3123d23230e047e853dfeba983329f8 | 04bf9c19c707528f4be8ca666192363aae95fb9f | refs/heads/main | 2023-06-04T04:03:41.829403 | 2021-06-24T04:06:31 | 2021-06-24T04:06:31 | 379,203,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | import os
os.environ['KIVY_IMAGE'] = "pil"
from kivy.app import App
from kivy.core.window import Window
Window.size = (400, 300)
class MyApp(App):
pass
if __name__ == '__main__':
MyApp().run()
| [
"[email protected]"
] | |
1eca7ec2e36e7cae8c2c4ef9e80e9f1268d6c6e8 | 7f9396be71cdf243930d77638f59aa76c135c9c8 | /virtual/bin/sqlformat | 451f4a53a61bc6a3280c8e6bb71755bdd4a53720 | [] | no_license | CollinsMuiruri/Collins | accb894d620104e49de6660127a6a0074cf7f57e | 9d94d528d94821983681fa8d1e5801f16878b464 | refs/heads/main | 2023-01-23T01:14:07.844954 | 2020-12-09T01:10:38 | 2020-12-09T01:10:38 | 316,529,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/home/collins/Documents/me/Collins/Collins/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | ||
dfe50521c8beadbcedb0a1ea16159e0c00737c40 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03945/s610658846.py | ffb8861904f17b983b639980e4783fc5358be706 | [] | 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 | 207 | py | import collections
def main():
S = input()
cnt = 0
tmp = ""
for s in S:
if s != tmp:
cnt += 1
tmp = s
print(cnt - 1)
if __name__ == "__main__":
main() | [
"[email protected]"
] | |
15bd6f29ed5617bbd897682594f52dd64bb410e2 | 6fa554aff1f9507eca282ebd1352fb6689ad4842 | /부록02/helloworld-gae/main.py | 99283f2a5469666030a99944aa94a37db682866f | [] | no_license | wikibook/flask | 88260843b56c3bde2f811515d34b3561e9bcd612 | b3c9a4e4c2a88ffb4ada3c0aabe781b590016762 | refs/heads/master | 2022-12-12T21:27:26.202369 | 2021-08-10T05:35:42 | 2021-08-10T05:35:42 | 15,384,305 | 79 | 85 | null | 2022-12-09T05:35:03 | 2013-12-23T00:08:26 | Python | UTF-8 | Python | false | false | 129 | py | # -*- coding: utf-8 -*-
from google.appengine.ext.webapp.util import run_wsgi_app
from helloworld import app
run_wsgi_app(app)
| [
"[email protected]"
] | |
3dfffc0c816b2afd57cd7b4250788052eb8bb807 | a6719f4815ff41d3a1f09e9a63a64c4582d03702 | /function_and_scope/func_call.py | 224a49fd81ba7ad18b41c7b075f32fa82a7f7447 | [
"MIT"
] | permissive | thanh-vt/python-basic-programming | 8136007b8435dae6339ae33015fe536e21b19d1d | 5fe817986fbef2649b4b03955f07b59d2a2035d8 | refs/heads/main | 2023-01-30T12:57:36.819687 | 2020-12-13T17:27:05 | 2020-12-13T17:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | from func_declare import *
# normal function
hello_func()
# argument
intro_func('Thanh')
# multiple arguments
intro_func_2('Thanh', 'Tat', 'Vu')
# unknown number of arguments
fruit_intro_func('banana', 'orange', 'watermelon')
# key word arguments
child_intro_func(child1='Emil', child2='Tobias', child3='Linus')
# a... | [
"[email protected]"
] | |
611c1256e6469b7ceef7838061cd304f5e2f09ec | dcebc9eba57f252874a336b4b396c1dea328e850 | /py/dd_match_fields.py | 0f91450376fbfa3b376a9c2a4b765fef32abf897 | [
"Apache-2.0"
] | permissive | bcgov/diputils | d7408ceb7d02c1583bba75e515cb3f93e2e07a09 | caf510c81f7f43372d4a8e18f77eaa86cdede6a5 | refs/heads/master | 2022-05-15T01:02:13.289995 | 2022-05-08T22:02:54 | 2022-05-08T22:02:54 | 231,476,522 | 5 | 1 | Apache-2.0 | 2022-05-08T22:02:55 | 2020-01-02T23:31:46 | Python | UTF-8 | Python | false | false | 3,121 | py | # Copyright 2019 Province of British Columbia
#
# 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 agr... | [
"[email protected]"
] | |
2591fab72417dd22098a2d648b9a0eb3d6d035d2 | 0a40a0d63c8fce17f4a686e69073a4b18657b160 | /test/functional/feature_uacomment.py | 75b5a9c538e3ca66a92d254faac84d250742b090 | [
"MIT"
] | permissive | MotoAcidic/Cerebellum | 23f1b8bd4f2170c1ed930eafb3f2dfff07df1c24 | 6aec42007c5b59069048b27db5a8ea1a31ae4085 | refs/heads/main | 2023-05-13T06:31:23.481786 | 2021-06-09T15:28:28 | 2021-06-09T15:28:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the -uacomment option."""
from test_framework.test_framework import CerebellumTestFramework
from test_... | [
"[email protected]"
] | |
6c9178f13779fa4d7a1c76768de12543cd42748f | be9d82f263466b397d354798fcf260ceee7f8419 | /scripts/docs.py | 02ecae1eeb67800e7d5b17c1c4238c78b8fb1b18 | [
"MIT",
"LicenseRef-scancode-generic-export-compliance"
] | permissive | pradeepbhadani/dffml | 0af135045a6d0bbde9b6f2d539839107bc0b5181 | 35bc31be462685efe78ede981dbef8fd5577882b | refs/heads/master | 2020-06-24T17:05:37.415285 | 2019-07-26T15:19:22 | 2019-07-26T15:19:22 | 199,024,888 | 0 | 0 | MIT | 2019-07-26T15:19:23 | 2019-07-26T13:50:26 | Python | UTF-8 | Python | false | false | 5,883 | py | # SPDX-License-Identifier: MIT
# Copyright (c) 2019 Intel Corporation
import os
import getpass
import inspect
import argparse
import pkg_resources
from typing import List
def traverse_get_config(target, *args):
current = target
last = target
for level in args:
last = current[level]
current... | [
"[email protected]"
] | |
019a2296e2c2a44d1f6bad58af35702346c4199e | 2ae8fe4fccac95d98dffe77d5a948e64c3cb91b5 | /2404.py | ede38319f93e8799fd73115eae1a663d4d2fbf38 | [] | no_license | lilaboc/leetcode | e61362592f87d094fe57635af1d7d2b93284bfe8 | d4c5329a9d6ce945b965fd9d811757a80934dd36 | refs/heads/master | 2023-07-07T07:30:29.516698 | 2023-06-24T03:16:16 | 2023-06-24T03:16:16 | 25,621,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # https://leetcode.com/problems/most-frequent-even-element/description/
from collections import Counter
from typing import List
class Solution:
def mostFrequentEven(self, nums: List[int]) -> int:
c = Counter([i for i in nums if i % 2 == 0])
most = c.most_common()
if len(most) == 0:
... | [
"[email protected]"
] | |
7c4472d1c378a26fb67ec9911be21421a4e0f8e4 | b980c0bae0cff8533253c135449beb6e09759dca | /Grader_Exercise/04_Loop/04_Loop_002.py | 1edaec5e838baacb6893af99ef8e5cf7b8e6e326 | [] | no_license | manhanton/COM-PROG | 1f76985b3f3fea54057a0da1d3911dc91998c5be | 7a4f2c62ecd6677ec1f818a5d115aa0fb182b3a2 | refs/heads/main | 2023-06-18T10:25:26.448133 | 2021-07-16T07:46:45 | 2021-07-16T07:46:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | d = [int(i) for i in input().split(' ')]
p = d[-1]
i = -1
j = 0
n = len(d)
while j < n-1 :
if d[j] <= p :
i += 1
d[i],d[j] = d[j],d[i]
j += 1
d[-1],d[i+1] = d[i+1],d[-1]
print(d) | [
"[email protected]"
] | |
6d06c44ef0584637a7e5e9645ae9ac066be5356e | 610349599d32d7fc5ddae5dcb202836ca8be50aa | /blog/migrations/0012_auto_20200916_1140.py | 6fec12b0c70e4c5506fc56f580196f8e254756e6 | [] | no_license | reetjakhar09/blogs | e3d9d14c01096e4a50474b5a7f562bea7b655a76 | d0e17a8dd3761aaa08a59c466820040e05dc300a | refs/heads/master | 2022-12-20T05:03:50.350408 | 2020-09-29T16:40:17 | 2020-09-29T16:40:17 | 299,676,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # Generated by Django 2.2.16 on 2020-09-16 11:40
import autoslug.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0011_auto_20200916_1139'),
]
operations = [
migrations.AlterField(
model_name='post',
name='... | [
"[email protected]"
] | |
aa8131480478b18d37db2f7289886a67b1ce0d30 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/meta/IngameDetailsHelpWindowMeta.py | dbfa7dc67745ed3fc5561ecd88202c1b71e07635 | [] | 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 | 652 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/IngameDetailsHelpWindowMeta.py
from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView
class IngameDetailsHelpWindowMeta(AbstractWindowView):
def requestPageDat... | [
"[email protected]"
] | |
0e6c2ac755ecf45fc4a0cfe0470f37f85a5c9859 | ca66a4283c5137f835377c3ed9a37128fcaed037 | /Lib/site-packages/sklearn/manifold/__init__.py | 60e17b6bfd918a11c0a1c25a5a6062760e777a68 | [] | no_license | NamithaKonda09/majorProject | f377f7a77d40939a659a3e59f5f1b771d88889ad | 4eff4ff18fa828c6278b00244ff2e66522e0cd51 | refs/heads/master | 2023-06-04T20:25:38.450271 | 2021-06-24T19:03:46 | 2021-06-24T19:03:46 | 370,240,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | """
The :mod:`sklearn.manifold` module implements data embedding techniques.
"""
from .locally_linear import locally_linear_embedding, LocallyLinearEmbedding
from .isomap import Isomap
from .mds import MDS, smacof
from .spectral_embedding_ import SpectralEmbedding, spectral_embedding
from .t_sne import TSNE
... | [
"[email protected]"
] | |
cf30bd306af294595dce71b6a3e2f4cd9bbe10a6 | 3ba975cb0b4b12510f05b9970f955b98ce576124 | /setup.py | cd9ddfb83ebe7ed71de9d5e82960499e761b8f73 | [
"MIT"
] | permissive | vidrafeed/terminaltables | 44d3b85e775138fa16f36f65be7a1bc0e89c04be | da4531bf0002051b3bcd97098acbe09c22ee7736 | refs/heads/master | 2020-12-30T20:04:31.298279 | 2015-03-22T22:34:43 | 2015-03-22T22:34:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,889 | py | #!/usr/bin/env python
import atexit
from codecs import open
from distutils.spawn import find_executable
import os
import re
import sys
import subprocess
import setuptools.command.sdist
from setuptools.command.test import test
_JOIN = lambda *p: os.path.join(HERE, *p)
_PACKAGES = lambda: [os.path.join(r, s) for r, d,... | [
"[email protected]"
] | |
4d3ad13d97346c629af9713a9ec75583d934cf79 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/web/v20181101/list_web_app_sync_function_triggers.py | f1ecce2911774db5bc639f91d0d5aee728445211 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,108 | 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
from ... import _utilities, _tables
__a... | [
"[email protected]"
] | |
8bc0e253bcff105a4ede5e931ee1a5b8c496b7a1 | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/plone.app.versioningbehavior-1.2.0-py2.7.egg/plone/app/versioningbehavior/testing.py | b6817a3b3f16fd765884b5ed7e997bd55a8acf8f | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,740 | py | # -*- coding: utf-8 -*-
from plone.app.testing import applyProfile
from plone.app.testing import FunctionalTesting
from plone.app.testing import PLONE_FIXTURE
from plone.app.testing import PloneSandboxLayer
from plone.dexterity.fti import DexterityFTI
from Products.CMFCore.utils import getToolByName
from Products.CMFDi... | [
"[email protected]"
] | |
92c0e09476c89293544c2680a6d1bb74a148fe62 | 27691e5ef8e49fb29189b01dd76a1dc3720e7ae8 | /AC/ABC-TDD/057/c.py | 33fa121771e3149b137159983a0a5ae01e6fbf1c | [] | no_license | oshou/procon | 61e5f5bc819e0fe5ab29749fc2f894fe6f3b1d07 | 3d000c64b5917c65b51ed7da5b90cb79892d5909 | refs/heads/master | 2023-05-10T23:56:50.861468 | 2021-09-23T06:07:29 | 2021-09-23T06:07:29 | 116,886,484 | 1 | 0 | null | 2023-05-05T02:28:41 | 2018-01-10T00:21:38 | Go | UTF-8 | Python | false | false | 350 | py | import math
def f(a, b: int) -> int:
alen = len(str(a))
blen = len(str(b))
if alen > blen:
return alen
else:
return blen
n = int(input())
max = int(math.sqrt(n))
fmin = len(str(n))
for i in range(1, max+1):
if n % i == 0:
tmp = f(i, int(n/i))
if tmp < fmin:
... | [
"[email protected]"
] | |
4aa5de904d5db17eee1ffaeb1ac77ed83ca86551 | 3eae9c14c119ee2d6a7d02ef1ba5d61420959e3c | /modules/core/mgmt/rwuagent/test/utframework/testtasklet.py | e8a7ca66d397981331bc610e8777f2b7cffb1434 | [
"Apache-2.0"
] | permissive | RIFTIO/RIFT.ware | 94d3a34836a04546ea02ec0576dae78d566dabb3 | 4ade66a5bccbeb4c5ed5b56fed8841e46e2639b0 | refs/heads/RIFT.ware-4.4.1 | 2020-05-21T14:07:31.092287 | 2017-06-05T16:02:48 | 2017-06-05T16:02:48 | 52,545,688 | 9 | 8 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # RIFT_IO_STANDARD_CMAKE_COPYRIGHT_HEADER(BEGIN)
# Creation Date: 3/20/2016
# RIFT_IO_STANDARD_CMAKE_COPYRIGHT_HEADER(END)
# Workaround RIFT-6485 - rpmbuild defaults to python2 for
# anything not in a site-packages directory so we have to
# install the plugin implementation in site-packages and then
# import it from ... | [
"[email protected]"
] | |
b9459e9ff5bdd141c5f22653c1f854167a3a9ddc | 6be1990abf99c85ef886b49dcea1824aabb648d3 | /weixinofneolocal/weixinofneolocal/zinnia/management/commands/zinnia2wp.py | ed19b9f8955b229141d7afe8a566d52eb21ec5cb | [] | no_license | neoguojing/cloudServer | b53ae205efe52cf0aea28dbb9e6c16c20caf991f | 7c19101789b0c46474269e4c8fe00e92203e9cd7 | refs/heads/master | 2020-12-04T23:02:23.551479 | 2017-09-22T03:08:35 | 2017-09-22T03:08:35 | 67,382,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | """Zinnia to WordPress command module"""
from django.conf import settings
from django.utils.encoding import smart_str
from django.contrib.sites.models import Site
from django.template.loader import render_to_string
from django.core.management.base import NoArgsCommand
from utils.tagging.models import Tag
from zinnia ... | [
"[email protected]"
] | |
a6492367edc20853e84511db1b05e10bf5cfc989 | 82aee3211216f55392d5a757eb57f02c859e9a28 | /Easy/172_factorailTrailingZeroes.py | 05ea5253c0407b74dbb6ecfb30dd4f8afb340ace | [] | no_license | Yucheng7713/CodingPracticeByYuch | 505d18095d4b9a35c1f3b23632a90a76d811b64a | 1461b10b8910fa90a311939c6df9082a8526f9b1 | refs/heads/master | 2022-05-01T11:51:00.612603 | 2022-04-18T09:46:55 | 2022-04-18T09:46:55 | 198,961,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | class Solution:
def trailingZeroes(self, n):
if n == 0:
return 0
return n // 5 + self.trailingZeroes(n // 5) | [
"[email protected]"
] | |
bc9d969532d16be769e237943030facdb30ca407 | 731c17913b5ff61190f938909e1a74bae18285c9 | /tf_agents/agents/sac/tanh_normal_projection_network_test.py | 7e0a439c969d84cc822e3458cdbe3dff3e9e3f54 | [
"Apache-2.0"
] | permissive | isabella232/agents | d3055ca0a4d593e2251801264354fb7193c8f99f | b2ed02d20c43a4b789a4711f4653e8421f8ba526 | refs/heads/master | 2023-03-10T16:14:46.426288 | 2020-12-29T20:32:45 | 2020-12-29T20:33:06 | 326,205,625 | 0 | 0 | Apache-2.0 | 2021-02-24T00:52:40 | 2021-01-02T14:57:47 | null | UTF-8 | Python | false | false | 2,584 | py | # coding=utf-8
# Copyright 2020 The TF-Agents 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"[email protected]"
] | |
f258a219f8446de388d4977228e418e4f63b53f1 | 031b24455b953907a0f98778931ee8a03c3c4b6c | /pacman103/front/common/delay_projection_subedge.py | 20ba4ca1e9194c2bc870a136e70f2f2169b9f2a1 | [] | no_license | BRML/HBP-spinnaker-cerebellum | 7e5f69c05d0e51f79442635df58815768f20e6bc | 7fc3eb5c486df66720d227e0e422cbab65c08885 | refs/heads/master | 2020-12-25T23:47:09.416213 | 2015-06-26T09:45:31 | 2015-06-26T09:45:31 | 38,686,607 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,612 | py | from pacman103.front.common.projection_subedge import ProjectionSubedge
from pacman103.front.common.synaptic_list import SynapticList
from pacman103.front.common.synapse_row_info import SynapseRowInfo
import logging
logger = logging.getLogger(__name__)
class DelayProjectionSubedge(ProjectionSubedge):
def __... | [
"[email protected]"
] | |
504dcd6b031b80b87d353d6fb8c1fe63157987f6 | f4a0b5a834b47bfee2f89c318e97b9f4ae11a968 | /lib/collision_detector.py | 47b488f9603004391d92b4af2a3d8ddc8ce1554c | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Marcus-Peterson/ros | 5f0937dcd28198cd9be1025144d0bcc3cf69da31 | 77b1361e78f68f00ba2d3e3db908bb5ce0f973f5 | refs/heads/master | 2023-07-16T03:15:51.412658 | 2021-06-10T10:53:09 | 2021-06-10T10:53:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,551 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020-2021 by Murray Altheim. All rights reserved. This file is part
# of the Robot Operating System project, released under the MIT License. Please
# see the LICENSE file included as part of this package.
#
# author: altheim
# created: 2020-03-31
# modifie... | [
"[email protected]"
] | |
35c8bbadea7912a45f80c67b0bda1e2a9b39bce0 | 9ba30f939b79df5bc8ea8ab97196693e10d45605 | /airflow/contrib/operators/dataflow_operator.py | 8f61e18ab5d6a61a18b1dfc296650253e833f727 | [
"Apache-2.0"
] | permissive | suchenzang/incubator-airflow | 5d09f1d1dfaf3f668408bd162bc275e1c112fbb7 | 5d90d132af4b5a455c6f3bb43817f0e46195cf72 | refs/heads/master | 2021-01-18T07:06:06.616698 | 2016-07-19T06:33:47 | 2016-07-19T06:33:47 | 63,733,649 | 2 | 0 | null | 2016-07-19T23:07:06 | 2016-07-19T23:07:06 | null | UTF-8 | Python | false | false | 3,680 | py | # -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
... | [
"[email protected]"
] | |
14ff0b9eaaa24fab20c4b9e88038e39cee101426 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/2374.py | 3bfb9aefbafc0afcf5a26e222d920922d38daec3 | [] | 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 | 1,045 | py | # Google Codejam - Cookie Clicker Alpha
def ShouldInvest(C, F, X, Gradient):
return Gradient < (F * (X - C) / C) # mathematics ;P
def MinimumTime(C, F, X):
Gradient = 2
Time = 0
# start
while 1:
if ShouldInvest(C, F, X, Gradient):
Time += C / Gradient # time till we reach C coo... | [
"[email protected]"
] | |
550c0de84f2fb3a9f49462534f551540f2a83251 | f47edebe28f491f94b4fd30c2e4d8b29e1abc2a1 | /src/models/configs/model_operation.py | f56635621bd7c1d91bc7c576904309f5abe043dd | [
"MIT"
] | permissive | Nardri/rbac-service | 4a2053a38597315b4ef1ce5b877cf031e64eae12 | c5cf6baf60e95a7790156c85e37c76c697efd585 | refs/heads/develop | 2022-10-04T06:17:30.766467 | 2020-01-31T11:06:03 | 2020-01-31T11:06:03 | 226,638,869 | 0 | 0 | MIT | 2022-09-16T18:19:46 | 2019-12-08T08:48:12 | Python | UTF-8 | Python | false | false | 1,072 | py | """Common model operations"""
from .database import database as db
class ModelOperationsMixin:
"""Mixin Model operation"""
__abstract__ = True
def save(self):
"""Save to the database."""
db.session.add(self)
db.session.commit()
return self
def delete(self):
... | [
"[email protected]"
] | |
d9508c77ce6a5869b179fdf31d94ffeefa784cfd | 800b5166148d4e3cd03825d7d20e2900fbc6c789 | /report_form/migrations/0016_helperdataform_year_date.py | 42b2c55917bfd96ca6159e3ab7b4b2c5526990c0 | [] | no_license | JiSuPiaoYi/dawufupin | 4ffc979a93502eb576776673c98aaeb16021827e | 57756a501436fabe9b27ebca2e80e60932da30dc | refs/heads/master | 2020-04-07T11:37:35.728108 | 2018-11-20T09:09:50 | 2018-11-20T09:09:50 | 158,334,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-06-01 13:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('report_form', '0015_auto_20180531_1322'),
]
operations = [
migrations.AddFi... | [
"[email protected]"
] | |
74aafc70a85dd29f4d4cc806cfa276e0aa7575a6 | 7ba5ec9aa9ddca3f9b3384fc4457b0a865c2a0a1 | /src/282.py | 407f92ee3a4c1d3a373b9457eb3d21a9ba194679 | [] | no_license | ecurtin2/Project-Euler | 71f79ee90a9abd0943421677d78a6c087419e500 | 79479da7a45b3ae67c0c7ea24da5f7d43c6f25d3 | refs/heads/master | 2021-03-19T14:52:57.045443 | 2018-04-12T22:05:37 | 2018-04-12T22:05:37 | 100,059,180 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | """
For non-negative integers m, n, the Ackermann function A(m, n) is defined as follows:
For example A(1, 0) = 2, A(2, 2) = 7 and A(3, 4) = 125.
Find A(n, n) and give your answer mod 148.
""" | [
"[email protected]"
] | |
d48e851bbed4bf582803970b6cc8e21ed795bfdd | 3cda2dc11e1b7b96641f61a77b3afde4b93ac43f | /nni/compression/pruning/tools/utils.py | cc8e4ce5d17a5451476be7062871887d3d11bed1 | [
"MIT"
] | permissive | Eurus-Holmes/nni | 6da51c352e721f0241c7fd26fa70a8d7c99ef537 | b84d25bec15ece54bf1703b1acb15d9f8919f656 | refs/heads/master | 2023-08-23T10:45:54.879054 | 2023-08-07T02:39:54 | 2023-08-07T02:39:54 | 163,079,164 | 3 | 2 | MIT | 2023-08-07T12:35:54 | 2018-12-25T12:04:16 | Python | UTF-8 | Python | false | false | 314 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from __future__ import annotations
from ...base.target_space import PruningTargetSpace
def is_active_target(target_space: PruningTargetSpace):
return target_space.sparse_ratio is not None or target_space.sparse_threshold is not None
| [
"[email protected]"
] | |
776a45689ed9e05ab9016d1cc5eb5a45307f9c67 | edc1134436a79ca883a0d25f3c8dfffc4235c514 | /examples/cvae/baseline.py | 68695c6d5ee2eb75ef59ea4b52fbb1df51e444b1 | [
"Apache-2.0"
] | permissive | pyro-ppl/pyro | 2283d8ca528fc090c724a3a6e0f344e505ebbf77 | 0e82cad30f75b892a07e6c9a5f9e24f2cb5d0d81 | refs/heads/dev | 2023-08-18T00:35:28.014919 | 2023-08-06T21:01:36 | 2023-08-06T21:01:36 | 94,506,832 | 3,647 | 606 | Apache-2.0 | 2023-09-14T13:52:14 | 2017-06-16T05:03:47 | Python | UTF-8 | Python | false | false | 3,338 | py | # Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
import copy
from pathlib import Path
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from tqdm import tqdm
class BaselineNet(nn.Module):
def __init__(self, hidden_1, hidden_2):
super... | [
"[email protected]"
] | |
0fc3b98016bf84ae5f510d5fa9774d1a025d4876 | 597b82737635e845fd5360e191f323669af1b2ae | /08_full_django/dojo_secrets/dojo_secrets/urls.py | eae83a229eb529cf3cb46e4debdd86ea411b8ac9 | [] | no_license | twknab/learning-python | 1bd10497fbbe181a26f2070c147cb2fed6955178 | 75b76b2a607439aa2d8db675738adf8d3b8644df | refs/heads/master | 2021-08-08T08:50:04.337490 | 2017-11-10T00:28:45 | 2017-11-10T00:28:45 | 89,213,845 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | """dojo_secrets URL Configuration
Sets up URL files for all applications in this project.
Current applications:
- `secrets` - This application allows users to create and interact with secrets.
"""
from django.conf.urls import url, include
urlpatterns = [
url(r'^', include("apps.secrets.urls")),
]
| [
"[email protected]"
] | |
8911835e9a12c6ffa09456d6e6024c5d6dfe5e0d | d2cac4cb6b39db7413d22598e7061d228cb9bc4f | /main/migrations/0027_auto_20200622_0034.py | dd141c29c08c24a23b41b2cbd8c2ab5e248d02d7 | [] | no_license | sasha00123/furniture | cf9dd818ab0bc27890af41d6228163b1c20dfc71 | 98dfb3e971b6d714cd8638aefbed2407bddf1529 | refs/heads/master | 2023-02-21T02:09:12.976005 | 2021-01-24T18:12:10 | 2021-01-24T18:12:10 | 262,677,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | # Generated by Django 3.0.6 on 2020-06-21 19:34
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('main', '0026_telegramuser_is_admin'),
]
operations = [
migrations.AddField(
model_name='telegramuse... | [
"[email protected]"
] | |
e1fba51ef584abc797614110e47f734a5df5f760 | 56eb5f7a8921a8e995fef89672e4e1abbf02f5d4 | /2016/quals/a/a.py | df23faf51800b7be647a839d403914dce0911ca1 | [
"MIT"
] | permissive | enricobacis/google-code-jam | e5b41e5004918001d4278c0636c91d5a3576ab49 | 43b259d5dbb167ea46b072eb144bd351e8f4e059 | refs/heads/master | 2021-01-01T05:00:48.774563 | 2016-04-17T07:17:44 | 2016-04-17T07:17:44 | 56,395,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
# Google Code Jam 2016 - Qualification Round - Problem A
def single(func):
return func(raw_input())
def row(func):
return map(func, raw_input().split())
def printcase(case, out, pattern='Case #%d: %s'):
print pattern % (case, out)
def digits(n):
res = set()
while n:
... | [
"[email protected]"
] | |
7ea5df191482c3f5d23570452224674f639e9414 | f329f3061e3a72b2562bb242dfe1a2ed07fe65f0 | /plugins/edayshop_cms.py | edd1d718942dbcbac642c5095f742ef2fc9226ea | [
"MIT"
] | permissive | ver007/getcms | 58263174355eb16bae95b74f6efaff5069b4ce56 | da03c07457abc266cacddc3ccd67126f0b03da3d | refs/heads/master | 2021-01-19T07:01:51.453626 | 2016-04-13T08:28:14 | 2016-04-13T08:28:14 | 56,134,430 | 0 | 0 | null | 2016-04-13T08:27:38 | 2016-04-13T08:27:38 | null | UTF-8 | Python | false | false | 136 | py | #!/usr/bin/env python
# encoding: utf-8
def run(whatweb, pluginname):
whatweb.recog_from_file(pluginname, "inc/ys.css", "djs1wz")
| [
"[email protected]"
] | |
c6cb4d2f3b19bd4743d379f707a29aae0cd5836e | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/models/local_output.py | ea1587edd07eab7c4a840bd7109e17b67c5f5349 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 3,965 | py | # coding: utf-8
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
from bitmovin_api_sdk.models.output import Output
import pprint
import six
class LocalOutput(Output):
@poscheck_model
def __init__(self,
id_=None,
... | [
"[email protected]"
] | |
70178561fb6044f424e0ea11e1209181b7647f8d | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D09A/REBORDD09AUN.py | bec780d969532c1a91a16b22dc253e67a96fb6d8 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,871 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD09AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'GEI', MIN: 1, MAX: 6},
{ID: 'NAD', MIN: 1, MAX: 9, LEVEL: [
{ID: 'CTA', MIN: 0, MAX: 1},
... | [
"[email protected]"
] | |
a4cb9fbfcd0887f5b389ccf0a1c066f258b6fe94 | 3f182e860f4485e304bc9195d1c1eaa8b2de70aa | /benchmarks/pbs.py | 262de7acb034729890bb7eb2db75ed80b25538aa | [
"MIT"
] | permissive | spirali/estee | 0feda169af35edc51bd4ac9cab2d36377561a576 | 55c0834db3d7da407b7c37d46fa41b5b563e2bbe | refs/heads/master | 2020-03-28T02:22:22.218292 | 2019-04-05T13:55:16 | 2019-04-05T13:55:16 | 147,566,052 | 9 | 4 | MIT | 2019-04-05T12:32:29 | 2018-09-05T19:01:33 | Python | UTF-8 | Python | false | false | 6,915 | py | import json
import os
import socket
import subprocess
import sys
import time
import click
import pandas as pd
from benchmark import BenchmarkConfig, load_graphs, SCHEDULERS, CLUSTERS, NETMODELS, BANDWIDTHS, \
IMODES, SCHED_TIMINGS, create_instances, run_benchmark, parse_timeout, load_resultfile
BENCHMARK_DIR = o... | [
"[email protected]"
] | |
5772bb6470b24532b7994a0214d80fef1d75cdec | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/scaleform/daapi/view/lobby/prb_windows/companies_dps.py | e082606ad29ce039f92198d5bb1043082e01fb4c | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,465 | py | # 2015.11.10 21:27:16 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/prb_windows/companies_dps.py
from constants import PREBATTLE_COMPANY_DIVISION, PREBATTLE_COMPANY_DIVISION_NAMES
from gui.LobbyContext import g_lobbyContext
from gui.Scaleform.framework.entities.DAAPIData... | [
"[email protected]"
] | |
0061de720027daadb201b017b60778a348bd49e4 | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/Cura/cura/Machines/ContainerNode.py | a8bbf0a537b1a075b08ce72a608469761fc4ce74 | [
"LGPL-3.0-only",
"GPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 3,102 | py | # Copyright (c) 2019 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Any, Dict, Optional
from UM.ConfigurationErrorMessage import ConfigurationErrorMessage
from UM.Settings.ContainerRegistry import ContainerRegistry
from UM.Logger import Logger
from UM.Settings.InstanceCo... | [
"[email protected]"
] | |
121baaf372cb1f46859c1327a05f3c81c6651dfd | c50e7b5a9597980f7b659fa4294f065b152ef9cf | /definindo_atributos_para_uma_classe.py | fb4e643e0bb0ac1649f7d7494c7ce7f8d669c712 | [] | no_license | crishonsou/modern_python3_bootcamp | aab60ede8f8bec4cb38dc81e896823795460ea5b | 086e0e97dacaf05862fa8d73184b217cf5688114 | refs/heads/main | 2022-12-24T00:00:03.621358 | 2020-10-06T15:35:26 | 2020-10-06T15:35:26 | 301,769,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | class User:
def __init__(self, first, last, age):
# print('New user has been made')
self.first = first
self.last = last
self.age = age
user1 = User("Leticia", "Carvalho", 35)
user2 = User("Cristiano", "Gonçalves", 44)
print(user1.first, user1.last, user1.age)
print(us... | [
"[email protected]"
] | |
7e7acef5cce5e50952cd4019ea5d94b671b6733f | 18e35b5a45063dadd0a9b541198572907cfe8908 | /13_4/4.py | 6c6c76fce90a958343f4f5878d480ad3efde5566 | [] | no_license | syn7hgg/ejercicios-python | b516d04ee7b705e477b30e3fe09108d592ff45a2 | ace895650219898cf9aac40dae523e18f63c2b13 | refs/heads/main | 2023-06-12T03:32:06.332235 | 2021-06-29T18:37:53 | 2021-06-29T18:37:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | import math
print(math.pi)
# imprime un número real con 3 decimales %.3f
print("%.3f" % math.pi)
# forma equivalente con formateo de strings
s = "{:.3f}".format(math.pi)
print(s)
| [
"[email protected]"
] | |
295822b31175fdee626cbd7b2df44a18716f6f33 | 8e7ecd2b5121c66692d0b7c76aafad938906a1c4 | /mist/action_server/helpers.py | 1b42b1bfdf30ccf116a3ee3f1a452b476f60ea81 | [
"Apache-2.0"
] | permissive | pombredanne/mist | 93e425078c68d63925cc33bf86724e1ff8380910 | 3821ccd089e78cefe78282ac7297a6b4882cc53c | refs/heads/master | 2023-03-18T20:49:58.243258 | 2021-07-13T10:10:16 | 2021-07-13T10:10:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | from functools import wraps
from flask import request, abort, jsonify, Flask
def setup_custom_errors(_app: Flask): # pragma: no cover
@_app.errorhandler(400)
def invalid_request(e):
return jsonify(error=e.description), 400
@_app.errorhandler(401)
def request_error(e):
return jsonif... | [
"[email protected]"
] | |
8e415f9388d7251829b968cdb8d65cffddadb507 | 99d8895888ab093b06a3ba03594f2a74cb97758f | /Scripts/Python_HSE/WEEK8/homework/solution10.py | 951b789a6af19bec7d8728d47a81122f56db1823 | [] | no_license | AlekseyAbakumov/PythonLearn | 4c35efeb0996f4a3221f228b57e30d595bb62637 | fdd2cc9bdaa0fac3d582ddd5f2fbf9018218bda5 | refs/heads/master | 2023-03-23T20:12:42.603817 | 2021-03-16T18:22:48 | 2021-03-16T18:22:48 | 265,309,409 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from functools import reduce
from operator import xor
print(
*reduce(
lambda x, y: map(xor, x, y),
map(
lambda line: map(
int,
line.split()
),
map(
lambda _: input(),
range(
int(
... | [
"[email protected]"
] | |
19ef51007e955745a99630518184f72e57979c65 | cef9e79f4776a97f3e1980f907bd531e02eb8ef6 | /src/news_crawler.py | f5f2f020eb01483bebc58bce202549f4ca4ea8b7 | [] | no_license | Sapphirine/202005-11-Risk-Analysis-and-Default-Prediction-on-Taiwanese-Companies | afa54bc6bf3c15d791fe8970a6001beffcc85e52 | f02df8db08a425b4cc29468df2b988fc0e977762 | refs/heads/master | 2022-07-22T20:30:02.984293 | 2020-05-15T20:58:11 | 2020-05-15T20:58:11 | 264,291,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,408 | py | #
# This file is used to retrieve posts from Google news.
# Usage:
# python news_crawler.py ${CSV_FILE} ${DEST_FOLDER}
#
# Example:
# python news_crawler.py computer_peripherals.csv ./global_industry/
#
#
import requests
from bs4 import BeautifulSoup
from urllib.parse import quote
from urllib.parse import... | [
"[email protected]"
] | |
b01528b02aaaeaf6601446f6bcbe39ab03432c27 | ca41157d95d87a9899730637fd2339479ce80088 | /gPhoton/photonpipe/__init__.py | e8bccb42bbd96b09fe8bd03c3656a75895354873 | [
"BSD-3-Clause"
] | permissive | MillionConcepts/gPhoton2 | b5c2b36b68cfcc38b324f371a9677b86e51709df | 0f1b054094bd476b2998e5b32aceb7e0a764ebda | refs/heads/main | 2023-08-21T09:55:24.598275 | 2023-08-11T06:28:12 | 2023-08-11T06:28:12 | 383,023,797 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | """
.. module:: PhotonPipe
:synopsis: A recreation / port of key functionality of the GALEX mission
execute_pipeline to generate calibrated and sky-projected photon-level data from
raw spacecraft and detector telemetry. Generates time-tagged photon
lists given mission-produced -raw6, -scst, and ... | [
"[email protected]"
] | |
247972aaa39a632dc35b5983f933198777e8b5d0 | 6a1f69c2b11a1cfda8a2e63006b0efa721ed8d7b | /scoreboard_backend/const.py | f832e88117df79f44f73716114489f5a435ae415 | [] | no_license | o-o-overflow/dc2021q_scoreboard | 54aa471daf6263225e8c45c71553f2ffb26c22c7 | bb0e0054fec807dc3f6472d0b1fa5ee21f607b92 | refs/heads/main | 2023-04-21T19:44:39.168136 | 2021-05-03T07:39:26 | 2021-05-03T07:39:26 | 356,939,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | ACCESS_TOKEN_DURATION = 3600 # Seconds
COMPETITION_END = 1_620_000_000
COMPETITION_START = 1_619_827_200
REGISTRATION_PROOF_OF_WORK = "00ff00"
SUBMISSION_DELAY = 30 # Seconds
TIMESTAMP_MAX_DELTA = 600 # Seconds
TOKEN_PROOF_OF_WORK = "f00f"
| [
"[email protected]"
] | |
a4221a26f7a8f15d99820a04fb870d3c580e7c79 | 002f28763ed3e0b2114c1ba950ca0ddbd6be4cdc | /08_Django/day01/Day01/day1/news/views.py | 05147949532d30c137cf3eaa601b9a1ed6874c3d | [] | no_license | rogerbear/tarena_project | e599359b94eece6decc13672c6a920071cb65e4c | d8dc5e84d1a81943e94a72a62e09d44919c617c1 | refs/heads/master | 2020-05-28T00:50:44.248954 | 2019-12-20T07:26:58 | 2019-12-20T07:26:58 | 188,836,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index_views(request):
return HttpResponse('这是news应用中的index视图')
| [
"[email protected]"
] | |
488ddd5c60c724031615fd26d7275674b48d650f | c934e7c27f0e72385218a14b4e2a7e94a747a360 | /google-cloud-sdk/lib/surface/certificate_manager/maps/update.py | 7a2c24ca74ad26f07718becdb48850597811789b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PrateekKhatri/gcloud_cli | 5f74b97494df4f61816026af9460b9c4d8e89431 | 849d09dd7863efecbdf4072a504e1554e119f6ae | refs/heads/master | 2023-03-27T05:53:53.796695 | 2021-03-10T04:08:14 | 2021-03-10T04:08:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"[email protected]"
] | |
bffabba54a0d868677fd9c4efb7ae8979d02983b | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/12145431.py | c4e465ef175e1027d3e54926439b5bf2956f89a2 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/12145431.py generated: Fri, 27 Mar 2015 15:48:08
#
# Event Type: 12145431
#
# ASCII decay Descriptor: [B+ -> K+ (J/psi(1S) -> mu+ mu- {,gamma} {,gamma}) (eta -> pi+ pi- pi0)]cc
#
from Configurables import Generation
Generation().EventType = 12145431
Gener... | [
"[email protected]"
] | |
9916fa68f4ceb29a1038f6d031fe37d34505a80f | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /AtCoder/ABC-E/143probE.py | 70f6181217ad03009e6bb24c889899e531bd2a4f | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | import sys
input = sys.stdin.readline
def main():
N, M, L = map(int, input().split())
INF = 10**13
dis = [[INF for _ in range(N)] for _ in range(N)]
for _ in range(M):
a, b, c = map(int, input().split())
dis[a-1][b-1] = c
dis[b-1][a-1] = c
Q = int(input())
Query = [list... | [
"[email protected]"
] | |
7f144350d87384443247fefaa3f0ea005b1d6671 | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/virtual_machine_memory_reservation_info.py | 3707eed990dc6821036df0d45d5babbbba5e6e7d | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def VirtualMachineMemoryReservationInfo(vim, *args, **kwargs):
'''The VirtualMachineReser... | [
"[email protected]"
] | |
99dc217bc0e3c7d93969753502d481a115a55776 | 4bd4bacecee33cada173e427b5ecb1d758bafaad | /src/scalarizr/storage2/cloudfs/base.py | 78b39ceaae1d9ed9189164619f4692252f4984d3 | [] | no_license | kenorb-contrib/scalarizr | 3f2492b20910c42f6ab38749545fdbb79969473f | 3cc8b64d5a1b39c4cf36f5057f1a6a84a9a74c83 | refs/heads/master | 2022-11-26T10:00:58.706301 | 2017-11-02T16:41:34 | 2017-11-02T16:41:34 | 108,550,233 | 0 | 2 | null | 2020-07-24T11:05:36 | 2017-10-27T13:33:46 | Python | UTF-8 | Python | false | false | 3,270 | py | import sys
import urlparse
import os
class DriverError(Exception):
pass
def raises(exc_class):
"""
Catches all exceptions from the underlying function, raises *exc_class*
instead.
.. code-block:: python
@raises(MyError)
def func():
raise Exception(message)
... | [
"[email protected]"
] | |
f04339670af036069b46af8492061f639973847f | 088314e3bd6ca7ef34d15f2aa45b743b363641d9 | /tasks/R2R/speaker/paths.py | 974d47598f0ee0d6c3af239f2de1668c10bf89b4 | [
"MIT"
] | permissive | weituo12321/PREVALENT_R2R | 7a27d580fcbe8f72a209697d053ca3eb2013e3a0 | 868fb53d6b7978bbb10439a59e65044c811ee5c2 | refs/heads/master | 2022-11-24T00:54:32.385940 | 2020-07-24T17:56:42 | 2020-07-24T17:56:42 | 248,832,547 | 8 | 7 | MIT | 2022-11-22T02:10:54 | 2020-03-20T19:07:08 | Python | UTF-8 | Python | false | false | 637 | py | convolutional_feature_store_paths = {
'imagenet': 'img_features/imagenet_convolutional',
'places365': 'img_features/places365_convolutional',
}
mean_pooled_feature_store_paths = {
'imagenet': 'img_features/ResNet-152-imagenet.tsv',
'places365': 'img_features/ResNet-152-places365.tsv',
}
bottom_up_feat... | [
"[email protected]"
] | |
2e9eff8dee310ca6608ca04cd53b779bdaac0063 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02570/s396702537.py | 9fe0af1e414c1c161a8894caf8757f2e4915c3db | [] | 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 | 237 | py | import sys; input = sys.stdin.readline
from math import ceil
d, t, s = map(int, input().split())
u, l = ceil(d/t), d//t
if u == l:
if u <= s: print("Yes")
else: print("No")
else:
if d/t <= s: print("Yes")
else:print("No") | [
"[email protected]"
] | |
35caceecfe007534fe487f5b4ff7aa3dbc3ca320 | a62348929ea1911e7842beef868e5fa4d64d7927 | /api/server.py | 8184d335c168b6db069c51ebc95d73fb154b6084 | [
"MIT"
] | permissive | RENCI/pds-server-mock | 8bfa040421b4ffcfd0bfe7332ff39cecc1b84408 | 8d003561948b23aa4260c32d453a8f2c901e1dc7 | refs/heads/master | 2021-01-05T21:18:26.476560 | 2020-12-05T05:15:00 | 2020-12-05T05:15:00 | 241,140,488 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | import connexion
def create_app():
app = connexion.FlaskApp(__name__, specification_dir='openapi/')
app.add_api('my_api.yaml')
return app
| [
"[email protected]"
] | |
c370c472aafebd84a2b87575f6dcb0e37b94e932 | 6472c4553c49a8c05103355ff53b1cbb7f025e8f | /pava/implementation/natives/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.py | a42dc13374784791b67769b761b7248140f118ab | [
"MIT"
] | permissive | laffra/pava | 0b012e27c207a3e0f3ca772667b0c32168fe3123 | 54d10cf7f8def2f96e254c0356623d08f221536f | refs/heads/master | 2021-01-23T04:23:22.887146 | 2020-12-21T23:14:09 | 2020-12-21T23:14:09 | 86,191,143 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | def add_native_methods(clazz):
def initIDs____(a0):
raise NotImplementedError()
def connect0__long__boolean__java_net_InetAddress__int__long__(a0, a1, a2, a3, a4, a5):
raise NotImplementedError()
def updateConnectContext__long__(a0, a1):
raise NotImplementedError()
def read0__... | [
"iV29VQzQVT11"
] | iV29VQzQVT11 |
c298645d8fbccbc1048f2356f90a670ad3994bf9 | 46e9a375f0562f5dfd9282da20cbb34900f6b230 | /Python/986.py | 083a36ffc45f5cd0093f7a1ef29041c027ef9106 | [] | no_license | MohisinShaik/LeetCode | da90a65a4980d9daa1bc11581f4d0aa415ddb2f4 | dd788a3bffc8c5121cbb83d8c2efe077bf8693db | refs/heads/master | 2022-04-23T11:16:42.855063 | 2020-04-16T04:58:39 | 2020-04-16T04:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | class Solution:
def intervalIntersection(self, A: List[List[int]], B: List[List[int]]) -> List[List[int]]:
res = []
i = 0
j = 0
while i < len(A) and j < len(B):
a_overlap_b = A[i][0] >= B[j][0] and A[i][0] <= B[j][1]
b_overlap_a = B[j][0] >= A[i][0] and B[j][0... | [
"[email protected]"
] | |
0183f3f7f2baf910cf0facb6ce6d58af7ec6df00 | ebcb092d796366d36a1afe9c381cd9e4c31026f1 | /redis/python_redis_publisher.py | 6e0bd349be9638af02233a09bf270796fdcc99af | [
"MIT"
] | permissive | MiracleWong/PythonBasic | d2e0e56c88781ebf9c6870f185ceaba6ffaa21ca | cb8ec59dc646842b41966ea4ea4b1ee66a342eee | refs/heads/master | 2021-06-06T22:26:08.780210 | 2020-01-08T14:48:54 | 2020-01-08T14:48:54 | 96,536,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | #!/usr/local/bin/python
# -*- coding:utf-8 -*-
# 订阅
from RedisHelper import RedisHelper
obj = RedisHelper()
obj.publish('nihao')#发布
| [
"[email protected]"
] | |
62e37ebc3e6e0bfb19bb51f5101b05e188c158be | 3c9011b549dd06b6344c6235ed22b9dd483365d1 | /OrientacaoObjeto/aula18.py | 1ed8f6b0cc2da4d9f90b4791c271fa308f1c8a10 | [] | no_license | joaoo-vittor/estudo-python | 1411f4c3620bbc5f6b7c674a096cae8f90f0db8d | 5562d823dd574d7df49fddca87a1fbd319356969 | refs/heads/master | 2023-05-31T17:59:16.752835 | 2021-06-25T04:54:56 | 2021-06-25T04:54:56 | 292,372,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | from contextlib import contextmanager
"""
Aula 18
Context Manager - Criando e Usando gerenciadores de contexto
"""
"""
class Arquivo:
def __init__(self, arquivo, modo):
print('__init__')
self.arquivo = open(arquivo, modo)
def __enter__(self):
print('__enter__')
return self.ar... | [
"[email protected]"
] | |
9c69b46842a2a97671f844c0372d9dcd3097c9b1 | 9e30a239886210dc57e6c7cb9a71ad95a840712e | /views/get_post_reactions/tests/__init__.py | c021c82af21c3a42f479640bfdc616e5ccf42f8a | [] | no_license | sridhar562345/fb_post_v2 | 0a26d661a3f335d9a9cf129c24265d7674b3fb22 | dfd150ab5521f05291f66944d7a8686a00477547 | refs/heads/master | 2022-11-08T00:32:35.752419 | 2020-06-23T15:32:02 | 2020-06-23T15:32:02 | 274,440,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # pylint: disable=wrong-import-position
APP_NAME = "fb_post_v2"
OPERATION_NAME = "get_post_reactions"
REQUEST_METHOD = "get"
URL_SUFFIX = "posts/{post_id}/reactions/v1/"
from .test_case_01 import TestCase01GetPostReactionsAPITestCase
__all__ = [
"TestCase01GetPostReactionsAPITestCase"
]
| [
"="
] | = |
c370b9cb49b49d7f9bf6414b9561be8f703a7b7a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03776/s172150439.py | 3a29529fed9c416827a4e10cbb9dd63cdab6e24e | [] | 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 | 611 | py | nCr = {}
def cmb(n, r):
if r == 0 or r == n: return 1
if r == 1: return n
if (n,r) in nCr: return nCr[(n,r)]
nCr[(n,r)] = cmb(n-1,r) + cmb(n-1,r-1)
return nCr[(n,r)]
N,A,B = map(int,input().split())
v = sorted(list(map(int,input().split())),reverse=True)
"""
if len(set(v)) == 1:
print(1)
p... | [
"[email protected]"
] | |
a612afd2b5fe7e22ba24750568476b126ced3165 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_151/65.py | 72e9454d35bbe107abb5efe84efe7d59d6024fa8 | [] | 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 | 1,026 | py | #!/usr/bin/pypy
import itertools
def cnts(S):
cnt = 1
bor = {}
for s in S:
cur = bor
for x in s:
if x in cur:
cur = cur[x]
else:
cnt+=1
cur[x] = cur = {}
return cnt
def calc(S, ost, pcnt=0):
if ost==1:
... | [
"[email protected]"
] | |
41089bdf4fb39893bf5360ec2ffff7c5a0f6d71e | 127e99fbdc4e04f90c0afc6f4d076cc3d7fdce06 | /2021_하반기 코테연습/boj1197.py | ca8be4cf43b06e8029b3a28c61c048807ef92221 | [] | no_license | holim0/Algo_Study | 54a6f10239368c6cf230b9f1273fe42caa97401c | ce734dcde091fa7f29b66dd3fb86d7a6109e8d9c | refs/heads/master | 2023-08-25T14:07:56.420288 | 2021-10-25T12:28:23 | 2021-10-25T12:28:23 | 276,076,057 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from heapq import *
import sys
from collections import defaultdict
input = sys.stdin.readline
answer = 0
v,e = map(int, input().split())
link = defaultdict(list)
for _ in range(e):
a, b, c = map(int, input().split())
link[a].append((b,c))
link[b].append((a, c))
link_set = []
h = []
heappush(h, (0,... | [
"[email protected]"
] | |
c184003f838b0b7d4dd109970baf5f2b4711a076 | e7b665624c1134f7a6b3ab7c043cfa5ec83227bb | /CoGAN/impl2_tf/cogan_tf.py | a0037d11f6c7e06eb0738bf75acc6851b1e76fc4 | [] | no_license | zhijie-ai/GAN | 46f896909d1f5caedb7725cf44d328e24f4ad699 | 5e64b416209058721c582c3b71a1e9ca25cf169d | refs/heads/master | 2022-10-26T10:28:08.279901 | 2019-08-26T14:09:15 | 2019-08-26T14:09:15 | 204,423,289 | 1 | 3 | null | 2022-10-07T00:52:36 | 2019-08-26T07:45:08 | Python | UTF-8 | Python | false | false | 5,513 | py | #----------------------------------------------
# -*- encoding=utf-8 -*- #
# __author__:'xiaojie' #
# CreateTime: #
# 2019/7/4 10:01 #
# #
# 天下风云出我辈, ... | [
"[email protected]"
] | |
062c3d98dcd6b0c5dddfb9ca904e99660a416d33 | 6c5daf5133656a33574dc2f5b62b9f1a1bdf1390 | /draw-pictures/draw_ppqq.py | 38729585225143f55f0e755f3a5d0a742a8ec286 | [] | no_license | RobinChen121/Python-Practices | 6c10b721dce3a8d2b76e190959d0940c52f0d1cc | 85bd9ad30c245dd62dc7ea837f964eaecbe24ed9 | refs/heads/master | 2023-08-31T10:08:01.613828 | 2023-08-27T14:51:46 | 2023-08-27T14:51:46 | 142,564,793 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 22 22:30:23 2020
@author: zhen chen
MIT Licence.
Python version: 3.7
Description:
"""
import scipy.stats as st
import matplotlib.pyplot as plt
import numpy as np
n = 100
samples = st.norm.rvs(loc = 5, scale = 2, size = n)
samples_sort = sorted(samples)
x_lab... | [
"[email protected]"
] | |
1178707ecfe919527b34e6a1c3cdff681fb91f2e | 0c110eb32f2eaea5c65d40bda846ddc05757ced6 | /python_scripts/pimriscripts/mastersort/scripts_dir/p7575_run2M6.py | 77c08e0b84c585a82c7e3b37095796f621c6ee0b | [] | no_license | nyspisoccog/ks_scripts | 792148a288d1a9d808e397c1d2e93deda2580ff4 | 744b5a9dfa0f958062fc66e0331613faaaee5419 | refs/heads/master | 2021-01-18T14:22:25.291331 | 2018-10-15T13:08:24 | 2018-10-15T13:08:24 | 46,814,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7575', 'run2M6']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/3184/E3184_e858822/s944135_5610_2M6_s34... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.