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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e9f82bbc6dacde92d1f90f2d143e408042e520f | d15ed15aa3df11ce3bc5a007d65dc90ad7b7471d | /go.py | b6b362f5b72c686da4ac1f1525c638befe53b2e4 | [] | no_license | dansgithubuser/dansMap | 95947005c74f975355858f4b059b8913410814e9 | 48e035b1d6c308e83d5ddb5884475bfb88fb3eae | refs/heads/master | 2020-03-17T02:18:56.329812 | 2018-06-24T15:34:22 | 2018-06-24T15:34:22 | 133,185,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | import os
import sys
DIR=os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(DIR, 'deps'))
import djangogo
parser=djangogo.make_parser()
args=parser.parse_args()
djangogo.main(args,
project='dansmap',
app='map',
database='map_database',
user='map_database_user',
heroku_repo='https://git.her... | [
"dansonlinepresence@gmail.com"
] | dansonlinepresence@gmail.com |
2da4bc5d14efc19541749e60986d62a072c681ff | 75c96e6070fb5c2473a7ae3be30a2d3c9bd9301a | /src/colormap/__init__.py | 0266932dba1e3d059d933f1638b9e05c1b604ac1 | [
"BSD-3-Clause"
] | permissive | Akronix/colormap | c727c80c52d8f0a545b4a54974569315319113e9 | e6d9a6e8bc9e3b3ac530a48577a5bee857267304 | refs/heads/master | 2020-08-05T04:16:34.328499 | 2018-12-29T15:10:18 | 2018-12-29T15:10:18 | 212,390,848 | 1 | 0 | BSD-3-Clause | 2019-10-02T16:37:32 | 2019-10-02T16:37:31 | null | UTF-8 | Python | false | false | 1,003 | py | # -*- python -*-
# -*- coding: utf-8 -*-
#
# This file is part of the colormap software
#
# Copyright (c) 2014
#
# File author(s): Thomas Cokelaer <cokelaer@gmail.com>
#
# Distributed under the GPLv3 License.
# See accompanying file LICENSE.txt or copy at
# http://www.gnu.org/licenses/gpl-3.0.html
#
# Website: https://... | [
"cokelaer@gmail.com"
] | cokelaer@gmail.com |
d8d1fab3a4dd38f701ee8cb531edb455f731e1e9 | 368fec101daec272c8d44d592558906ee8043bc1 | /tradefed_cluster/util/ndb_util_test.py | 7d229b359db6b182129e9bc29496883828aabea4 | [
"Apache-2.0"
] | permissive | maksonlee/tradefed_cluster | 3acb0a899c073315c3e80b830784ec94a201a085 | 0568fc1d9b9dca79aed2de493955ce1adebb1d6b | refs/heads/master | 2023-08-09T17:35:46.045476 | 2023-07-21T18:54:26 | 2023-07-21T18:54:54 | 369,842,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | # Copyright 202 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 agreed to in writing, s... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
4358059093f7fef6e061d934bfa2b80593531bc6 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /jaxnerf/eval.py | 9ece8a83f7159aa0df74218fffb0c3781352ec66 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 5,263 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
fc21f78fac993994c6c1d017982080abc3e00a18 | 762c307de73db674c214619778802b863548bf2e | /env/bin/pilfont.py | ea37f1eb1170b5b23568a42c9f4bb924effcd14d | [] | no_license | mansourgueye275/django-bloggy | 56d9d6a2131a71c20d6c341764503b76ba3a45c1 | 1b8080ad26244d3d60e20e24ad6520d7a663381b | refs/heads/master | 2021-06-23T02:16:30.301697 | 2017-09-01T18:56:23 | 2017-09-01T18:56:23 | 102,141,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | #!/home/mansour/Documents/RealPython/django-bloggy/env/bin/python3
#
# The Python Imaging Library
# $Id$
#
# PIL raster font compiler
#
# history:
# 1997-08-25 fl created
# 2002-03-10 fl use "from PIL import"
#
from __future__ import print_function
import glob
import sys
# drivers
from PIL import BdfFontFile
fro... | [
"zoe14@live.fr"
] | zoe14@live.fr |
3591a5c5b02eaef9d5ce5f72aab5bcfda5dc4e60 | 6febc1719503d0f9dbc97f6b1202116370391b10 | /clarico/clarico_category/controllers/main.py | 1a9f165596162d8f4442ae3d08af86cabf4b192d | [] | no_license | arshakil/Odoo-Development | 5c6a1795cd64a8ebef5abfdf7d6245804594bcd8 | df37f6e8c2f7d89cdbdb36d0a8fd501ef8bfe563 | refs/heads/master | 2022-12-11T05:17:12.123339 | 2020-07-28T07:38:58 | 2020-07-28T07:38:58 | 248,154,189 | 0 | 2 | null | 2022-12-08T03:51:50 | 2020-03-18T06:20:59 | Python | UTF-8 | Python | false | false | 587 | py | from odoo import http
from odoo.http import request
from odoo import SUPERUSER_ID
from odoo import models, fields, api
class claricoCategory(http.Controller):
@http.route(['/showcase_data'],type='json', auth='public', website=True , csrf=False, cache=30)
def category_data(self,template,limit=10):
... | [
"azizur.rahman363410@gmail.com"
] | azizur.rahman363410@gmail.com |
f2ab634a4d0e2b54bbdbd6cb5b20849ba87ef995 | 0db86f23fd8f6ff3b6119db0b7fab0f8522611f6 | /Intro_To_Python/HW17/census.py | 4eecf12f9f57d54ea047c9f2da4485ce67a78d9b | [] | no_license | justinminsk/Python_Files | 8a6d96ecc6596e19413b35758d3234900d2381b6 | 68b3815fae58bc2d7ec86bcd42d46354d8b3d2f0 | refs/heads/master | 2021-05-15T11:24:25.473043 | 2018-02-08T20:23:12 | 2018-02-08T20:23:12 | 108,322,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,620 | py | from sqlite3 import *
def make_database():
dataframe = connect('census.db')
return dataframe
def make_db_table():
dataframe = connect('census.db')
df = dataframe.cursor()
df.execute('CREATE TABLE Density(Province TEXT, Population INTEGER, Area REAL)')
dataframe.commit()
return df
def a... | [
"justin.minsk@gmail.com"
] | justin.minsk@gmail.com |
21c9c76e357ed82d65fb33410d6e55d014fba9f3 | 18df7bd3c6a4e35f93b0163b09f0bd304fd82fb9 | /conda/cli/main_run.py | 2e25b2a4149c2a1bf1f325e83c47d951004d188c | [
"BSD-3-Clause",
"MIT"
] | permissive | mitchellkrogza/conda | f1d092d913ac121e3df705decfb3b2e584bf829b | 958f4056578282ef380cdbfc09d3dd736cc5643a | refs/heads/master | 2020-03-25T06:46:56.095771 | 2018-08-02T05:28:42 | 2018-08-02T05:28:42 | 143,523,511 | 1 | 0 | null | 2018-08-04T11:34:43 | 2018-08-04T11:34:43 | null | UTF-8 | Python | false | false | 2,723 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import json
import os
from os.path import abspath, join
import sys
from tempfile import NamedTemporaryFile
from ..base.context import context
from ..common.compat import ensure_binary, iteritems, on_win
from ..g... | [
"kfranz@continuum.io"
] | kfranz@continuum.io |
a007a093bbf5492cf4d74affab5f7938abe6ad6a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/1171.py | fbe4a49e751c83434826e0418b4e5ba6c252d680 | [] | 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,837 | py | #!/usr/bin/env python
T = long(raw_input()) #number of real tests
for t in range(1,T+1):
A = []
for i in range(4):
x = raw_input()
A.append([q for q in x])
x = raw_input() #get rid of trailing blank line
out = ""
dotcnt = 0
#we have the board now... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c1f31c8430d43e31a6eef4e68c76c7800e5e01cd | 8e246e74d91565f8040f7dffcfc43e8e72c56285 | /pixiedust/utils/dataFrameAdapter.py | f1393bd6b45c532667676e739348a2ab5e8f891f | [
"Apache-2.0"
] | permissive | EldritchJS/pixiedust | 706728e034be6281320a1d927d2acb74c3c20dc5 | 5eea4a7f061fa6278e7d21db2df18accf48c1d5e | refs/heads/master | 2021-01-21T20:29:27.262716 | 2017-05-24T02:30:29 | 2017-05-24T02:30:29 | 92,239,313 | 0 | 0 | null | 2017-05-24T02:05:31 | 2017-05-24T02:05:31 | null | UTF-8 | Python | false | false | 5,093 | py | # -------------------------------------------------------------------------------
# Copyright IBM Corp. 2017
#
# 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/licens... | [
"david_taieb@us.ibm.com"
] | david_taieb@us.ibm.com |
34f18b43569133bf9e8e85b99fd90377e982c9b2 | fa346a2d5886420e22707a7be03599e634b230a9 | /temboo/Library/Facebook/Publishing/PublishNote.py | 5cb13e2c67897b548f536ca97016a58a44a8c195 | [] | no_license | elihuvillaraus/entity-resolution | cebf937499ed270c3436b1dd25ab4aef687adc11 | 71dd49118a6e11b236861289dcf36436d31f06bc | refs/heads/master | 2021-12-02T17:29:11.864065 | 2014-01-08T04:29:30 | 2014-01-08T04:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,634 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# PublishNote
# Publishes a note on a given profile.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
from... | [
"cedric.warny@gmail.com"
] | cedric.warny@gmail.com |
b4724b82e389ae6ab9ab29dfe11c7ad6f6d3f090 | ea4e262f3dc18a089895fef08bedefc60b66e373 | /unsupervised_learning/0x04-autoencoders/3-variational.py | e87abd498de0857be678fa67f68543ab58e9abff | [] | no_license | d1sd41n/holbertonschool-machine_learning | 777899d4914e315883ba0c887d891c0c8ab01c8a | 5f86dee95f4d1c32014d0d74a368f342ff3ce6f7 | refs/heads/main | 2023-07-17T09:22:36.257702 | 2021-08-27T03:44:24 | 2021-08-27T03:44:24 | 317,399,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | #!/usr/bin/env python3
"""[summary]
Returns:
[type]: [description]
"""
import tensorflow.keras as keras
def autoencoder(input_dims, hidden_layers, latent_dims):
"""[summary]
Args:
input_dims ([type]): [description]
hidden_layers ([type]): [description]
latent_dims ([type]): [desc... | [
"1498@holbertonschool.com"
] | 1498@holbertonschool.com |
59916d167f39c2a441b8c66f11211e9e2010d2c8 | 60cdd2f763e8ebd19eae1392a1533ce889123ba2 | /main.py | 10661e422cb540c411bf2c3e0779cff557d333e9 | [] | no_license | shohei/logic_analyzer | 79fd7d88be421cac7989369ef640e51e548b9f1a | 2d662d9e81aacd1c81b0a5d389c891b7ebbca466 | refs/heads/master | 2020-05-21T10:11:58.469328 | 2017-04-05T14:03:42 | 2017-04-05T14:03:42 | 69,441,097 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,718 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
from ctypes import *
from numpy import *
from dwfconstants import *
import math
import sys
import matplotlib.pyplot as plt
import pdb
from decoder import decodemap
if __name__=="__main__":
f = open("record.csv", "w")
if sys.platform.st... | [
"shoaok@gmail.com"
] | shoaok@gmail.com |
2505e320f99f41f3496e7a095506b46a630e9e81 | e1a7d00dbe27403427078c627ccebe1562a6049d | /mercury/plugin/client/activity_window.py | 800a6df0ee4cca37dbc125cb1e0e71b51922cb5f | [
"Apache-2.0"
] | permissive | greenlsi/mercury_mso_framework | f24fc167230057bb07b7de5dc9fbb10490293fee | cb425605de3341d27ce43fb326b300cb8ac781f6 | refs/heads/master | 2023-04-28T02:18:16.362823 | 2023-04-18T12:03:23 | 2023-04-18T12:03:23 | 212,610,400 | 2 | 1 | Apache-2.0 | 2023-03-02T14:36:56 | 2019-10-03T15:12:32 | Python | UTF-8 | Python | false | false | 731 | py | from ..common.event_generator import *
class SrvActivityWindowGenerator(EventGenerator[None], ABC):
pass
class ConstantSrvWindowGenerator(SrvActivityWindowGenerator, PeriodicGenerator[None]):
def __init__(self, **kwargs):
kwargs = {**kwargs, 'period': kwargs['length']}
super().__init__(**kwa... | [
"rcardenas.rod@gmail.com"
] | rcardenas.rod@gmail.com |
5cb11f9692234a96b5d785b845b15d74b1f63c91 | 52b6508d4f6f38f068b27c414970aa21460a7b25 | /terraform_validator/custom_rules/ManagedPolicyOnUserRule.py | 713d17af796bee5e9815401961f5155ef3e1b3c0 | [
"MIT"
] | permissive | rubelw/terraform-validator | 97698751ed828e54b4257a378c2dd21c5ec9bf24 | a9d0335a532acdb4070e5537155b03b34915b73e | refs/heads/master | 2020-03-31T04:09:22.435690 | 2018-10-22T03:24:40 | 2018-10-22T03:24:40 | 151,893,251 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | from __future__ import absolute_import, division, print_function
import inspect
import sys
from builtins import (str)
from terraform_validator.custom_rules.BaseRule import BaseRule
def lineno():
"""Returns the current line number in our program."""
return str(' - ManagedPolicyOnUserRule - caller: '+str(inspect... | [
"rubelwi@Wills-MacBook-Pro.local"
] | rubelwi@Wills-MacBook-Pro.local |
b318fa6c4d7fb0cbd18c7f80899aac561a1d4362 | be50b4dd0b5b8c3813b8c3158332b1154fe8fe62 | /Backtracking/Python/MaximalString.py | 72a24b627e0102f42fd6027473225816f4bd5698 | [] | no_license | Zimmermann25/InterviewBit | a8d89e090068d9644e28085625963c8ce75d3dff | 6d2138e740bd5ba8eab992d9bf090977e077bfc5 | refs/heads/main | 2023-03-24T18:12:48.244950 | 2021-03-24T14:36:48 | 2021-03-24T14:36:48 | 350,835,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | class Solution:
# @param A : string
# @param B : integer
# @return a strings
#backtrack naciagany na siłe, w cpp dla ponizszych danych program sie wywala
# a tutaj iteracyjnie wszystko git, ale nie zalicza rozwiązania
#10343456789765432457689065543876
#10
# w c++ backtracking z k... | [
"noreply@github.com"
] | Zimmermann25.noreply@github.com |
187c493ffee7eea9d2b9be959e9c3f10767c80e0 | b8755b5f0b5a3c1bba1270cc8f20dc172abb0634 | /django_data/jobs/forms.py | ac34414120aaf22d30e0ee7da22da786f158b801 | [
"Apache-2.0"
] | permissive | AndersonHJB/Django_Leraning | bf44af05b0e604342fd97cb8699385461cbbb965 | 95c34057f643b234478e72665c6454ebd99cb6cd | refs/heads/main | 2023-07-12T02:47:34.289089 | 2021-08-15T10:17:32 | 2021-08-15T10:17:32 | 367,765,444 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from django.forms import ModelForm
from .models import Resume
class ResumeForm(ModelForm):
class Meta:
model = Resume
fields = ["username", "city", "phone",
"email", "apply_position", "born_address", "gender", "picture", "attachment",
"bachelor_school", "master_school", "major", ... | [
"1432803776@qq.com"
] | 1432803776@qq.com |
5d53cc8f424a2e4af644b6cfad96ee5e9faf1337 | e831c22c8834030c22c54b63034e655e395d4efe | /Array/36-ValidSudoku.py | 021ad548ba09cc2b8417a947f7488b2aedd40882 | [] | no_license | szhmery/leetcode | a5eb1a393422b21f9fd4304b3bdc4a9db557858c | 9fcd1ec0686db45d24e2c52a7987d58c6ef545a0 | refs/heads/master | 2023-08-16T00:27:56.866626 | 2021-10-23T07:35:37 | 2021-10-23T07:35:37 | 331,875,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | from typing import List
class Solution():
def isValidSudoku(self, board: List[List[str]]) -> bool:
rows = [{} for i in range(9)]
columns = [{} for i in range(9)]
boxes = [{} for i in range(9)]
for i in range(9):
for j in range(9):
num = board[i][j]
... | [
"szhmery@gmail.com"
] | szhmery@gmail.com |
d7278abc6eb7faec64da695befeefb216e2a9c29 | ed12b604e0626c1393406d3495ef5bbaef136e8a | /Iniciante/Python/exercises from 1000 to 1099/exercise_1017.py | b2aa81cfeb034d2763bee49764fc7b6004986d30 | [] | no_license | NikolasMatias/urionlinejudge-exercises | 70200edfd2f9fc3889e024dface2579b7531ba65 | ca658ee8b2100e2b687c3a081555fa0770b86198 | refs/heads/main | 2023-09-01T20:33:53.150414 | 2023-08-21T07:07:32 | 2023-08-21T07:07:32 | 361,160,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | def calculateLitros(horasViagem, velocidadeMedia):
distancia = velocidadeMedia*horasViagem
qtdeLitros = distancia / 12.0
print("{:.3f}".format(qtdeLitros))
calculateLitros(int(input()), int(input())) | [
"nikolas.matias500@gmail.com"
] | nikolas.matias500@gmail.com |
235f90dbc5a2bfaf134a72fb2b5c6503e62e0fcc | 4cc285b0c585241ff4404087e6fbb901195639be | /NeuralNetworkNumbers/venv/Lib/site-packages/sklearn/covariance/_shrunk_covariance.py | 38d8f9e44a41fcd0a6b9e914976237455456d8e5 | [] | no_license | strazhg/NeuralNetworksPython | 815542f4ddbb86e918e657f783158f8c078de514 | 15038e44a5a6c342336c119cdd2abdeffd84b5b1 | refs/heads/main | 2023-04-16T18:51:29.602644 | 2021-04-27T14:46:55 | 2021-04-27T14:46:55 | 361,944,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:7eb0d2a7c9800d929396246a06bff3d5f7db239c9aa22020464f240899bb46d2
size 21096
| [
"golubstrazh@gmail.com"
] | golubstrazh@gmail.com |
0a4ecd1ec7cc3e33c5458bf9b06e84e770f48c95 | cad46af6291d48f3b3d7cc4fdf4357cae7243803 | /SDscript_Butterworth_GD_edit.py | 80e98c5a4e8ae15238fc2d74482d39e3f8ff4589 | [] | no_license | gddickinson/flika_scripts | f0977ff8911ba445a38db834a69cd7171c9bacf8 | 429de8bafc64e7a1e4a9f7828f7db38661cfe6d2 | refs/heads/master | 2023-06-23T16:24:13.843686 | 2023-06-15T21:34:59 | 2023-06-15T21:34:59 | 173,676,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,065 | py | # Instructions:
# First, open a window.
# Trim the window in time.
# Then black level subtract: 90 for LLS, 520 for TIRF.
# Set parameters.
# Run script.
####################################
### Set post-filter type ####
####################################
#postFilterType = 'butterworth'
postFilterType = 'savgo... | [
"george.dickinson@gmail.com"
] | george.dickinson@gmail.com |
c8f3b5602a77ff20e816318a011523b2773f2071 | 02a68279e0d04340de4f87f7737b351cd6da1420 | /run_auxvae.py | 9fbf2250de6204d7cac36c03e1d5a7dc69e55abb | [
"MIT"
] | permissive | lim0606/AdversarialVariationalBayes | ffdbb875bae666f06913503b1bcd417c1b4e948f | 93487ca64007c8381e1ed5fc3d131b5da751ba47 | refs/heads/master | 2020-07-25T16:06:22.420746 | 2019-09-13T21:32:57 | 2019-09-13T21:32:57 | 208,349,706 | 0 | 0 | MIT | 2019-09-13T21:31:01 | 2019-09-13T21:31:01 | null | UTF-8 | Python | false | false | 4,363 | py | import os
import scipy.misc
import numpy as np
import argparse
from avb.utils import pp
from avb import inputs
from avb.auxvae.train import train
from avb.auxvae.test import test
from avb.decoders import get_decoder
from avb.auxvae.models import get_encoder, get_encoder_aux, get_decoder_aux
import tensorflow as tf
pa... | [
"lars.mescheder@tuebingen.mpg.de"
] | lars.mescheder@tuebingen.mpg.de |
a12e92b19c21b0082dfaee4fd0e55de9baa0a579 | 963b4cf9fe1de845d994d0c8d3c9bb3def326b5b | /SomeProgs/Python Stuff/Coding Assignments/MeanMedianMode.py | 227d8e60f3814bd424ed898824903f4285954e58 | [] | no_license | lws803/cs1010_A0167 | aa727bdf029168238674d84ea6ce9c75905b8971 | 5759332364909ee1d2eb9c26b0d95d4dc153656f | refs/heads/master | 2022-03-13T02:52:26.488846 | 2019-11-14T20:53:15 | 2019-11-14T20:53:15 | 105,607,027 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | # Name: Tan Tze Guang
# Class: 13S28
# Date: 26 March 2013
# This program finds the mean, median and mode of a list of numbers
def mean(List):
sums = 0 # A temporary storage for sum of numbers in list
for items in range(len(List)): # Sums all numbers in the list
sums = sums + items
mean_num = sums... | [
"omnikron96@gmail.com"
] | omnikron96@gmail.com |
7d2c62c8741ade915952b7fbf0f4c30ee5fa5b0f | ce90676fd0867aced31b86cb6b05db1b5f0f3828 | /random/tst234.py | cac1d82fe7ef0ebacd1700f1777d040e9c14b528 | [] | no_license | KoliosterNikolayIliev/Python_101_NI_Solutions | 9733c1e10967468fe48fc752532bcefacdebcfa9 | 2b878796bbdeff33590036560c0188c72f8fdb3f | refs/heads/main | 2023-08-11T01:08:19.482456 | 2021-10-03T17:33:32 | 2021-10-03T17:33:32 | 369,302,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,351 | py | import requests
import uuid
headers = {'Authorization': 'Token 201ad808f1e2dd3136777f56db2568a08fbfc219'}
# returns json of all banks in the given country
def get_banks_by_country(country):
response = requests.get(f'https://ob.nordigen.com/api/aspsps/?country={country}', headers=headers)
return response.json... | [
"65191727+KoliosterNikolayIliev@users.noreply.github.com"
] | 65191727+KoliosterNikolayIliev@users.noreply.github.com |
0e508934c548e7e866977dbb13a82672b6180f94 | 024316d7672c7c2b2c558003c586df5116c73731 | /wavesynlib/fileutils/__init__.py | a476a38b6e9e90ed2515e926198448c35366f8d1 | [] | no_license | kaizhongkaizhong/WaveSyn | c305b03e44a961892a792a49601f625a90ae4f70 | b7918af5f66dba8c0d63cbb986465febe075cec2 | refs/heads/master | 2023-04-23T00:20:44.134876 | 2021-05-03T07:43:10 | 2021-05-03T07:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 28 00:38:46 2016
@author: Feng-cong Li
"""
import os
from os.path import dirname, join
import hy
try:
from wavesynlib.fileutils.hyutils import *
except hy.errors.HyCompilerError:
utils_path = join(dirname(__file__), 'hyutils.hy')
os.system(f'hyc {utils_path}'... | [
"xialulee@live.cn"
] | xialulee@live.cn |
f27d0a091eba208fe96474ee4959effa93451745 | a85ce270c8c67ab8a8c1bea577c4f8a0a054f8bf | /.venv/bin/jupyter-nbconvert | b7eb233280e1039b38407259910ad9d30b5b112b | [] | no_license | MohammedGhafri/data_visualization | afe2496100a5d204dcae3a8dd13bea51fe8f3c7c | c10c5dd8d1c687c5cf1f402b48178a3413c5abe1 | refs/heads/master | 2022-12-10T16:55:16.629174 | 2020-09-02T19:39:33 | 2020-09-02T19:39:33 | 292,341,273 | 0 | 0 | null | 2020-09-02T19:39:34 | 2020-09-02T16:52:04 | Python | UTF-8 | Python | false | false | 254 | #!/home/ghafri/data_visualization/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from nbconvert.nbconvertapp import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"eng.m.ghafri@gmail.com"
] | eng.m.ghafri@gmail.com | |
e239870c1886ba30562c9a92b0c9771ad29f59c4 | 76f4c947d5259bd8b3060fdb559b98720c670cae | /django_custom_user_model/django_custom_user_model/settings.py | ad8915fcc0ed18c9e600b175190cc90aab81ea63 | [
"MIT"
] | permissive | zkan/django-custom-user-model | 49de78f25af6c9324313aeea067a361778b5b225 | 3cb5937444b2c7a4f9f8a30621e8f2ed680dca1f | refs/heads/master | 2020-03-22T04:51:03.362817 | 2018-07-03T07:29:27 | 2018-07-03T07:29:27 | 139,525,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py | """
Django settings for django_custom_user_model project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
... | [
"kan@prontomarketing.com"
] | kan@prontomarketing.com |
abeffd04fd1e1951cd2f585cfac2f1bbae933fdc | f8c3c677ba536fbf5a37ac4343c1f3f3acd4d9b6 | /ICA_SDK/ICA_SDK/models/object_store_access.py | 2ed6681b5101d31413bd507ed8012a758430dcd6 | [] | no_license | jsialar/integrated_IAP_SDK | 5e6999b0a9beabe4dfc4f2b6c8b0f45b1b2f33eb | c9ff7685ef0a27dc4af512adcff914f55ead0edd | refs/heads/main | 2023-08-25T04:16:27.219027 | 2021-10-26T16:06:09 | 2021-10-26T16:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,883 | py | # coding: utf-8
"""
IAP Services
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from ... | [
"siajunren@gmail.com"
] | siajunren@gmail.com |
c066233bb8db9f3c120392b1b16cc9ce30cc4375 | fa5c0d0bc7dc3a18be3350f1b7da2068e0362afb | /duanping/save.py | 0f13959f99a200b0783a794d2a1b570a9305f1a4 | [] | no_license | earthloong/Douban_spiders | f2f1a368e97364456b226b0382817768248fabfc | 58af80e7a84d5ab970822c1ae68fbd6772e03084 | refs/heads/master | 2020-04-28T16:25:34.778998 | 2019-02-02T04:02:17 | 2019-02-02T04:02:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | # -*- coding: utf-8 -*-
# 此程序用来抓取 的数据
import os
import csv
import json
import sys
from save_data import database
class Spider(object):
def __init__(self):
self.db = database()
def get_data(self): # 获取数据
results = []
paths = os.listdir(os.getcwd())
for path in paths:
if 'data_DB.csv' in path:
with... | [
"492741071@qq.com"
] | 492741071@qq.com |
59e14cb31e210da2525806ce609826785c4b60fd | f47d52330c2f53e8bc3086c23854d3022b802866 | /split_coco.py | dc773dd40c59242d23e4433ffcdf34a4a8f41edf | [] | no_license | Qidian213/GigaVersion | 45dd31d8209d79e3b77a891a19cd6c2bbb5e2683 | 2244e3a60be800b7fbe1fde28fb10be51890ce0a | refs/heads/main | 2023-06-30T18:16:23.232348 | 2021-08-02T01:08:01 | 2021-08-02T01:08:01 | 391,779,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py |
import pycocotools.coco as coco
import json
import numpy as np
import cv2
import shutil
import random
train_val_list = json.load(open('train_val.json', 'r'))
train_list = train_val_list['train']
val_list = train_val_list['val']
train_images_coco =[]
train_annotations =[]
val_images_coco =[]
val_annotations =[]
... | [
"xhx1247786632@gmail.com"
] | xhx1247786632@gmail.com |
c8666866110c40d9d6ea8c980dfedb9f87daa040 | 0444918f75705bdfa177b45fdf8b903c6b63ab88 | /examples/dymoscale_simpletest.py | c9808bdccd88959f6205aae602a08224eb1f3e49 | [
"MIT"
] | permissive | ntoll/Adafruit_CircuitPython_DymoScale | 80785aba4a67a5ab5e533b75d05c968a999d0d5e | c57e45659650bf4ffb2b33eaea7dc462f6c63cbf | refs/heads/master | 2020-07-17T16:26:21.503499 | 2019-09-03T10:48:55 | 2019-09-03T10:48:55 | 206,054,402 | 0 | 0 | MIT | 2019-09-03T10:47:33 | 2019-09-03T10:47:33 | null | UTF-8 | Python | false | false | 639 | py | import time
import board
import digitalio
import adafruit_dymoscale
# initialize the dymo scale
units_pin = digitalio.DigitalInOut(board.D3)
units_pin.switch_to_output()
dymo = adafruit_dymoscale.DYMOScale(board.D4, units_pin)
# take a reading of the current time
time_stamp = time.monotonic()
while True:
reading... | [
"robots199@me.com"
] | robots199@me.com |
68002fbdfd606d9c99b4eaa029b17e29c4aed4f9 | 5f404180423f854df798ea907fd13094f1eccfae | /tests/test_tutorial_filter.py | 14e85a66403ea7c8c5236dd1e7e14af866f9428c | [
"MIT"
] | permissive | sdpython/td3a_cpp | e776bceb65285eca7f9f0400fb5f96cd8bf2393e | 1ca08907be03a09bb9cb89b2ca334b1fa5305648 | refs/heads/master | 2023-05-11T06:18:00.968817 | 2023-04-30T09:15:14 | 2023-04-30T09:15:14 | 226,640,683 | 1 | 7 | NOASSERTION | 2021-10-21T22:46:49 | 2019-12-08T09:05:21 | Cython | UTF-8 | Python | false | false | 2,262 | py | """
Unit tests for ``random_strategy``.
"""
import unittest
import numpy
from numpy.testing import assert_equal
from td3a_cpp.tutorial.experiment_cython import (
pyfilter_dmax, filter_dmax_cython,
filter_dmax_cython_optim,
cyfilter_dmax,
cfilter_dmax, cfilter_dmax2, cfilter_dmax16,
cfilter_dmax4
)
... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
fe8a4ba65c8e91aefd4f7691f21ea64334745863 | dd87194dee537c2291cf0c0de809e2b1bf81b5b2 | /k8sclient/models/v1beta1_scale_spec.py | 57cf26a08a700d346cc6e98651b1499c8acf638a | [
"Apache-2.0"
] | permissive | Arvinhub/client-python | 3ea52640ab02e4bf5677d0fd54fdb4503ecb7768 | d67df30f635231d68dc4c20b9b7e234c616c1e6a | refs/heads/master | 2023-08-31T03:25:57.823810 | 2016-11-02T22:44:36 | 2016-11-02T22:44:36 | 73,865,578 | 1 | 0 | Apache-2.0 | 2018-10-10T12:16:45 | 2016-11-15T23:47:17 | Python | UTF-8 | Python | false | false | 3,582 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: unversioned
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Licens... | [
"mehdy@google.com"
] | mehdy@google.com |
a3717d40f9bcfd31bd41b77ef503e38bca83308a | 4e26d797d72678a1c14ee59522964013eef3d551 | /usuarios/admin.py | 2517a9a6bcbd0522246cf577f8e40c0106d80d1a | [] | no_license | GomesMilla/SistemaDeControle | 3def1f47793b28317b2462dc61098145c6329588 | b9e2aad12bfaa8858ea45aa9adfc3c0f879a45e8 | refs/heads/main | 2023-03-15T05:25:23.606211 | 2021-03-23T19:19:10 | 2021-03-23T19:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from django.contrib import admin
from usuarios.models import Usuario
admin.site.register(Usuario)
# Register your models here.
| [
"camila.adriana.gomes@outlook.com"
] | camila.adriana.gomes@outlook.com |
375e994b7829514a5c1fcb79ec62436a0367d65f | e0b50a8ff40097b9896ad69d098cbbbbe4728531 | /dcmanager/api/app.py | fca85673325aade81b61debc60690625e0a23c64 | [
"Apache-2.0"
] | permissive | aleks-kozyrev/stx-distcloud | ccdd5c76dd358b8aa108c524138731aa2b0c8a53 | a4cebb85c45c8c5f1f0251fbdc436c461092171c | refs/heads/master | 2020-03-27T11:11:09.348241 | 2018-08-27T14:33:50 | 2018-08-27T14:33:50 | 146,470,708 | 0 | 0 | Apache-2.0 | 2018-08-28T15:47:12 | 2018-08-28T15:47:08 | Python | UTF-8 | Python | false | false | 2,808 | py | # Copyright (c) 2015 Huawei, Tech. Co,. Ltd.
# 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
#
# Unle... | [
"scott.little@windriver.com"
] | scott.little@windriver.com |
54256491ebbf1cf309cd445c078bf5fcd3c63642 | 32809f6f425bf5665fc19de2bc929bacc3eeb469 | /src/0278-First-Bad-Version/0278.py | ab08d44570fbedd547f7a90eca4cb6bba6e4ad05 | [] | no_license | luliyucoordinate/Leetcode | 9f6bf01f79aa680e2dff11e73e4d10993467f113 | bcc04d49969654cb44f79218a7ef2fd5c1e5449a | refs/heads/master | 2023-05-25T04:58:45.046772 | 2023-05-24T11:57:20 | 2023-05-24T11:57:20 | 132,753,892 | 1,575 | 569 | null | 2023-05-24T11:57:22 | 2018-05-09T12:30:59 | C++ | UTF-8 | Python | false | false | 307 | py | class Solution:
def firstBadVersion(self, n):
"""
:type n: int
:rtype: int
"""
l, r = 0, n
while l < r:
mid = (l + r) >> 1
if isBadVersion(mid):
r = mid
else:
l = mid + 1
return l | [
"luliyucoordinate@outlook.com"
] | luliyucoordinate@outlook.com |
9f0de9c4bfa3b96834d1c14d7260d39cedcaddd5 | 391decb17414b32941bf43380de4d1474334c29c | /.history/Function_Login_20210907201238.py | 18e67d522775604c3f0cbd51e45425cce2f964bc | [] | no_license | leonardin999/Restaurant-Management-Systems-GUI-RMS- | b17cf910ce0955b370ab51d00d161f96a2fb5ccd | 531726a378ced78de079bfffb68a0a304cfbc328 | refs/heads/main | 2023-08-12T09:21:46.196684 | 2021-09-08T14:58:48 | 2021-09-08T14:58:48 | 403,201,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | ################################################################################
##
## BY: PHUNG HUNG BINH
## This project can be used freely for all uses, as long as they maintain the
## respective credits only in the Python scripts, any information in the visual
## interface (GUI) can be modified without any implicat... | [
"89053434+leonardin999@users.noreply.github.com"
] | 89053434+leonardin999@users.noreply.github.com |
b5b4b09ec0510470ba447b1e2cd4ec172a5f9bf3 | ec551303265c269bf1855fe1a30fdffe9bc894b6 | /old/t20191017_intersection/intersection.py | c3a5a88436acc04574efeb610a63177c156cb504 | [] | no_license | GongFuXiong/leetcode | 27dbda7a5ced630ae2ae65e19d418ebbc65ae167 | f831fd9603592ae5bee3679924f962a3ebce381c | refs/heads/master | 2023-06-25T01:05:45.683510 | 2021-07-26T10:05:25 | 2021-07-26T10:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: KM
@license: (C) Copyright 2013-2017, Node Supply Chain Manager Corporation Limited.
@contact: yangkm601@gmail.com
@software: garner
@time: 2019/10/17
@url:https://leetcode-cn.com/problems/intersection-of-two-arrays/
@desc:
349. 两个数组的交集
给定两个数组,编写一个函数来计算... | [
"958747457@qq.com"
] | 958747457@qq.com |
f0b58de91c55f71530c50df047a31bbb1fe13f48 | 7de954bcc14cce38758463f0b160c3c1c0f7df3f | /cmsplugin_cascade/cms_plugins.py | 5910ca915a921223057b73e18cdafecb596be46f | [
"MIT"
] | permissive | pmutale/djangocms-cascade | c66210a0afad0d2783c2904732972fb8890d7614 | 066b8a1ca97d3afd8b79968a7f5af506a265095c | refs/heads/master | 2022-10-28T12:34:18.610777 | 2015-08-21T20:58:03 | 2015-08-21T20:58:03 | 41,476,721 | 0 | 0 | MIT | 2022-10-23T19:43:13 | 2015-08-27T09:05:23 | Python | UTF-8 | Python | false | false | 1,098 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.exceptions import ImproperlyConfigured
from django.utils.importlib import import_module
from .settings import CASCADE_PLUGINS
for module in CASCADE_PLUGINS:
try:
# if a module was specified, load all plugins in module setting... | [
"jacob.rief@gmail.com"
] | jacob.rief@gmail.com |
a36a97b7755caecb44009eb13acd970f356a1e1d | b5ef3b9da130f604f111bd469128b73e78d6ba9d | /bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_setTextContentFromNotificationMessage.py | f1a3d8ee8cc3c8743764af664b9b86970b517a98 | [] | no_license | soediro/erp5 | 154bb2057c4cd12c14018c1ab2a09a78b2d2386a | 3d1a8811007a363b7a43df4b295b5e0965c2d125 | refs/heads/master | 2021-01-11T00:31:05.445267 | 2016-10-05T09:28:05 | 2016-10-07T02:59:00 | 70,526,968 | 1 | 0 | null | 2016-10-10T20:40:41 | 2016-10-10T20:40:40 | null | UTF-8 | Python | false | false | 1,330 | py | portal = context.getPortalObject()
if not language:
language = context.getLanguage()
if not language:
language = portal.portal_preferences.getPreferredCustomerRelationLanguage()
notification_message = portal.portal_notifications.getDocumentValue(
language=language,
... | [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
a0dd12ad29f566a0c62075e3ac57d306a8d68e30 | b5811a11a7d22414a5690a681cdbb6ab95e08e06 | /backend/employee/admin.py | bed287a77df0de1ac2ec6fccebbe4036c36d5f07 | [] | no_license | kausko/PULSE-X | fa2d2fe913c0d091d807b245d4946922536c699c | 88a89d3fcd20289679e3b68aa36561b24ae9ea4e | refs/heads/master | 2023-05-09T12:47:44.860620 | 2021-04-21T14:07:43 | 2021-04-21T14:07:43 | 303,328,807 | 0 | 0 | null | 2021-06-05T00:10:07 | 2020-10-12T08:37:08 | Jupyter Notebook | UTF-8 | Python | false | false | 272 | py | from django.contrib import admin
from .models import Review
@admin.register(Review)
class ReviewAdmin(admin.ModelAdmin):
list_display = ['user', 'sentiment', 'flag', 'visited', 'sarcasm', 'helpfulness', 'is_twitter', ]
list_filter = ['visited', 'is_twitter', ]
| [
"tanmaypardeshi@gmail.com"
] | tanmaypardeshi@gmail.com |
63c96727ba5c7934d8f0c298575bb0199dc6bd74 | 5f10ca2439551040b0af336fd7e07dcc935fc77d | /Binary tree/二叉树性质相关题目/110. Balanced Binary Tree.py | b38c2eadc37c9e14c688c3837e5efefee9db1c50 | [] | no_license | catdog001/leetcode2.0 | 2715797a303907188943bf735320e976d574f11f | d7c96cd9a1baa543f9dab28750be96c3ac4dc731 | refs/heads/master | 2021-06-02T10:33:41.552786 | 2020-04-08T04:18:04 | 2020-04-08T04:18:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,477 | py | # -*- coding: utf-8 -*-
# @Time : 2/11/2020 8:28 PM
# @Author : LI Dongdong
# @FileName: 110. Balanced Binary Tree.py
''''''
'''
题目分析
1.要求:Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as:
a binary tree in which the left and right subtree... | [
"lidongdongbuaa@gmail.com"
] | lidongdongbuaa@gmail.com |
1289da36f9af10997b469d227d42e7e76c5f609a | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/insert_20200610210502.py | c8dce3ee0bda5a8dea0ebbfa3dee6e32c5927854 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # nums is a list
# find where n is to be inserted
# soo,you loop through the array
# the array is sorted
# to know the position you should check whethere n is greater than nums[i]
# continue the loop as you check
def Insert(nums,n):
i = 0
while i < len(nums):
if n != nums[i]:
if n > nu... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
00b249fc818e6a25ba0fe40b06a35ccf0a5fb550 | 237162607427106ae9564670d47427a62356861f | /core/migrations/0141_planitem_realize_every_time.py | 46c28c415ce382c8aa4bb459be31cda393ee0fd7 | [] | no_license | pitipund/basecore | 8648c1f4fa37b6e6075fd710ca422fe159ba930e | a0c20cec1e17dd0eb6abcaaa7d2623e38b60318b | refs/heads/master | 2020-09-13T20:16:02.622903 | 2019-11-20T09:07:15 | 2019-11-20T09:07:15 | 221,885,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-06-07 18:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0140_doctorgroup'),
]
operations = [
migrations.AddField(
... | [
"longman_694@hotmail.com"
] | longman_694@hotmail.com |
3c1ab0bac6360d881bc4117a080e38bb0d5ced9e | 19d1a808c9bb3dfcbd4a5b852962e6f19d18f112 | /python/multiprocessing_lock.py | eeaf149caf3dc777cc922aeada80352bfebff0f6 | [] | no_license | dataAlgorithms/data | 7e3aab011a9a2442c6d3d54d8d4bfd4d1ce0a6d3 | 49c95a0e0d0c23d63be2ef095afff76e55d80f5d | refs/heads/master | 2020-04-15T12:45:34.734363 | 2018-04-21T10:23:48 | 2018-04-21T10:23:48 | 61,755,627 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | from multiprocessing import Process, Lock
def worker_with(lock, f):
with lock:
fs = open(f, "a+")
fs.write("Lock acquired via with\n")
fs.close()
def worker_no_with(lock, f):
lock.acquire()
try:
fs = open(f, "a+")
fs.write("Lock acquired directly\n")
... | [
"noreply@github.com"
] | dataAlgorithms.noreply@github.com |
fbdf99d5569a466f8d2cc4657e6077b12baf4099 | 97884252481ff208519194ecd63dc3a79c250220 | /pyobs/events/roofopened.py | 35b412ca265e434dcd39f53c97dcd70ec21adcbf | [
"MIT"
] | permissive | pyobs/pyobs-core | a1f30137d7f991bad4e115de38f543e59a6e30d2 | 2d7a06e5485b61b6ca7e51d99b08651ea6021086 | refs/heads/master | 2023-09-01T20:49:07.610730 | 2023-08-29T09:20:05 | 2023-08-29T09:20:05 | 174,351,157 | 9 | 3 | NOASSERTION | 2023-09-14T20:39:48 | 2019-03-07T13:41:27 | Python | UTF-8 | Python | false | false | 185 | py | from .event import Event
class RoofOpenedEvent(Event):
"""Event to be sent when the roof has finished opening."""
__module__ = "pyobs.events"
__all__ = ["RoofOpenedEvent"]
| [
"thusser@uni-goettingen.de"
] | thusser@uni-goettingen.de |
b78fb673d40631f1eb4b0d2635d17b5e2ad390eb | 05032af4b4c522d4c3ee2d70e61ee1f30fa6abf3 | /12_Accepting_user_inputs_GUI.py | 288d5c19d7bd0aa4d05cdaf185b16feaa5489bf8 | [] | no_license | tayyabmalik4/python_GUI | c2db4bd6b4f2a153e5bced69073b17240126e7d0 | 608a7e43e17a27b90239a2ebae3338ce52d7b20d | refs/heads/main | 2023-07-28T01:31:41.840077 | 2021-09-11T17:45:23 | 2021-09-11T17:45:23 | 404,079,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | # (12)*************************Accepting User Inputs in new text file in tkinter form**************************
from tkinter import *
root = Tk()
root.geometry("644x344")
def getvals():
print(f"{namevalue.get(),phonevalue.get(),gendervalue.get(),contactvalue.get(),paymentvalue.get(),foodservicevalue.get()}")
... | [
"mtayyabmalik99@gmail.com"
] | mtayyabmalik99@gmail.com |
fc29b47a813bb30aeb84be26305c0dd6d6477bca | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/Python_Hand-on_Solve_200_Problems/Section 17 Recursion/sum_of_list_solution.py | d50c69d3d31130293893aaab17cbfa9b1112274f | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 320 | py | # # To add a new cell, type '# %%'
# # To add a new markdown cell, type '# %% [markdown]'
# # %%
# # Write a Python program to calculate the sum of a list of numbers. (in recursion fashion)
#
# ___ list_sum num_List
# __ le. ? __ 1
# r_ ? 0
# ____
# r_ ? 0 + ? ? 1|
#
# print ? 2, 4, 5, 6, 7
#
#
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
cd2467a1fdcd3909917783859542b8cf97f59f5b | ef6229d281edecbea3faad37830cb1d452d03e5b | /ucsmsdk/mometa/vm/VmSwitch.py | bcea418e58ba6b99d43c18c8a4e4364eee01b6ce | [
"Apache-2.0"
] | permissive | anoop1984/python_sdk | 0809be78de32350acc40701d6207631322851010 | c4a226bad5e10ad233eda62bc8f6d66a5a82b651 | refs/heads/master | 2020-12-31T00:18:57.415950 | 2016-04-26T17:39:38 | 2016-04-26T17:39:38 | 57,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,917 | py | """This module contains the general information for VmSwitch ManagedObject."""
import sys, os
from ...ucsmo import ManagedObject
from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class VmSwitchConsts():
ADMIN_STATE_DISABLE = "disable"
ADMIN_STATE_ENABLE = "enabl... | [
"test@cisco.com"
] | test@cisco.com |
f4f38c9c5d24372ddfff33125b42134aab81c2e2 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /QcswPnY2cAbrfwuWE_0.py | 7ec3b3b0c8567e7f036275c1cc969cd1b5fc4448 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | """
Create a function that filters out factorials from a list. A factorial is a
number that can be represented in the following manner:
n! = n * (n-1) * (n-2) * ... * 3 * 2 * 1
Recursively, this can be represented as:
n! = n * (n-1)!
### Examples
filter_factorials([1, 2, 3, 4, 5, 6, 7]) ➞ [1, 2, 6]
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
97e6d00f92412bbd534ab4503951218c1842d523 | 908b5e9f5246309b45cf14ea0f7f2cc39c3853f1 | /build/vrpn_client_ros/catkin_generated/pkg.installspace.context.pc.py | cab6a546b2ff257f05d4079c96aedd1f54e26bd6 | [] | no_license | crvogt/vicon_ws | 4a2cc0aa2d1403edcf9240b545a77ca9c1e038e8 | ab474b7eb127c12aefdde1d2055cc4cdce0db952 | refs/heads/master | 2021-07-15T11:43:31.987944 | 2018-03-05T17:35:25 | 2018-03-05T17:35:25 | 95,583,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/carson/vicon_ws/install/include;/opt/ros/indigo/include".split(';') if "/home/carson/vicon_ws/install/include;/opt/ros/indigo/include" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;tf2_ro... | [
"crvogt26@gmail.com"
] | crvogt26@gmail.com |
fe420ba34f5b3c6a319b46161e88ec9faaf9962f | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/scattergeo/marker/_colorscale.py | 0d3a158256a6b78a1a74b5260a7e1f03ecdff770 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 512 | py | import _plotly_utils.basevalidators
class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator):
def __init__(
self,
plotly_name='colorscale',
parent_name='scattergeo.marker',
**kwargs
):
super(ColorscaleValidator, self).__init__(
plotly_nam... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
14a3817962cd3561dba203d203fc978f818f205a | e8ae11e5017507da59e2e92d423b6a1994490de4 | /env/lib/python2.7/site-packages/azure/mgmt/commerce/models/usage_management_client_enums.py | d21d71ad515dbba392389fc344bfc79a31bdc8fe | [] | no_license | teopeurt/ansible-ubuntu-server | 613d00cea28bc6531acf4a39aeeb9cd0baa2a391 | b5b6127d2ee9723c5088443efe2ffb8ae30cfea7 | refs/heads/master | 2021-06-28T12:49:50.935753 | 2017-07-31T17:34:33 | 2017-07-31T17:34:33 | 98,912,808 | 0 | 1 | null | 2020-07-24T00:05:31 | 2017-07-31T17:32:56 | Makefile | UTF-8 | Python | false | false | 1,056 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 co... | [
"me@teopeurt.com"
] | me@teopeurt.com |
d6d7c0f0a9eaba7901aa642d5230cb6d2c6d8f1f | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2692/59018/260917.py | 470f6781ca1279f4085c9ea366a973489def6d5f | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | def shipWithinDays(self, weights):
n=len(weights)
left=max(weights)
right=sum(weights)
res=left
while left<=right:
mid=(left+right)//2
count=0
su=0
for i in range(n):
su+=weights[i]
if su>mid:
count+=1
su=weights... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
1e2ecbb223cef7769987b8657dce0290f53d0d56 | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/small-scale-multiobj/pod150_milp/connections/runsimu3_connections.py | 04598461721bb936e4e2ec41fdd27a4e6aa999ee | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,438 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
import csv
from gurobipy import *
import numpy as np
from arch4_decomposition import Arch4_decompose
from arch1 import ModelSDM_arch1
f... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
59cccb9b036905a4dcb9b90f777018c6b23081c2 | 0bde5f7f09aa537ed1f4828d4e5ebee66475918f | /h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oshow_progress.py | 9ff815774d5e57e9adbef2bcf8bb26e912fabca7 | [
"Apache-2.0"
] | permissive | Winfredemalx54/h2o-3 | d69f1c07e1f5d2540cb0ce5e6073415fa0780d32 | dfb163c82ff3bfa6f88cdf02465a9bb4c8189cb7 | refs/heads/master | 2022-12-14T08:59:04.109986 | 2020-09-23T08:36:59 | 2020-09-23T08:36:59 | 297,947,978 | 2 | 0 | Apache-2.0 | 2020-09-23T11:28:54 | 2020-09-23T11:28:54 | null | UTF-8 | Python | false | false | 1,905 | py | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
from tests import pyunit_utils
import h2o
try:
from StringIO import StringIO # for python 3
except ImportError:
from io import StringIO # for python 2
from h2o.estimators.glm import H2OGeneralizedLinearEstimator
from h2o.u... | [
"noreply@github.com"
] | Winfredemalx54.noreply@github.com |
ec91569702a15fcfcce3a0a53e0befcdb08371a1 | 7e54d5449b511d06158cfc0e2c928b8656e15ac7 | /sortedm2m_tests/models.py | aeb5846d6754d17787b4d7b7a34694466e9107dd | [
"BSD-3-Clause"
] | permissive | jonny5532/django-sortedm2m | 1f326271ef665c4c26f1f5b631bb9f0b70daf853 | bff0707efcc3257e47355cb2e77ab1abe3c48320 | refs/heads/master | 2021-01-15T18:45:55.789077 | 2012-01-19T10:50:15 | 2012-01-19T10:50:15 | 2,563,529 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | # -*- coding: utf-8 -*-
from django.db import models
from sortedm2m.fields import SortedManyToManyField
class Shelf(models.Model):
books = SortedManyToManyField('Book', related_name='shelves')
class Book(models.Model):
name = models.CharField(max_length=50)
def __unicode__(self):
return self.na... | [
"gregor@muellegger.de"
] | gregor@muellegger.de |
b249087047ebb31723edc290464c8960c892c52c | 4138be36f76f33815360ca74a3c80dd1b99bee19 | /tests/m2m_and_gfk_through/models.py | 867abb221851ea093a1ffe67f725cc6ad1db04ec | [
"MIT"
] | permissive | mikewolfd/django-gm2m | e385385b56fb2faa2277e270884f65f60e62ab0c | a8cecc4d6d56c83e8d9c623888f5d07cb6ad8771 | refs/heads/master | 2021-08-22T23:32:17.459805 | 2017-07-19T02:11:21 | 2017-07-19T02:11:21 | 112,767,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | """
Test case for issue #5
Django 1.8 migration problems with combined M2M and GM2M relations
"""
from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
import gm2m
class GM2MLinks(models.Model):
cla... | [
"thomas@ksytek.com"
] | thomas@ksytek.com |
397ea1f63ccc85b05f6d84497893b4ac7c16d5bd | 4fc1c45a7e570cc1204d4b5f21150f0771d34ea5 | /tools/benchmark/statistics.py | 46ee420c2e156cd62301b2d0da0e667f9a4ca590 | [] | no_license | CN1Ember/feathernet_mine | 77d29576e4ecb4f85626b94e6ff5884216af3098 | ac0351f59a1ed30abecd1088a46c7af01afa29d5 | refs/heads/main | 2023-05-28T17:19:06.624448 | 2021-06-17T04:39:09 | 2021-06-17T04:39:09 | 374,603,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,962 | py | import torch
import torch.nn as nn
from collections import OrderedDict
from .model_hook import ModelHook
from .stat_tree import StatTree, StatNode
from .reporter import report_format
def get_parent_node(root_node, stat_node_name):
assert isinstance(root_node, StatNode)
node = root_node
name... | [
"chenguo@gpu017.scut-smil.cn"
] | chenguo@gpu017.scut-smil.cn |
657299928bba96983fc8b5a5e462eea61359d6db | f4dd8aa4e5476ffde24e27273dd47913c7f9177a | /Dlv2_safe2/tests/parser/26-Hanoi-Tower.asp.test.py | 3ef549c01be148d1405e32e3ec93f938ad439a0b | [
"Apache-2.0"
] | permissive | dave90/Dlv_safe2 | e56071ec1b07c45defda571cb721852e2391abfb | f127f413e3f35d599554e64aaa918bc1629985bc | refs/heads/master | 2020-05-30T10:44:13.473537 | 2015-07-12T12:35:22 | 2015-07-12T12:35:22 | 38,256,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,009 | py | input = """
% The meaning of the time predicate is self-evident. As for the disk
% predicate, there are k disks 1,2,...,k. Disks 1, 2, 3, 4 denote pegs.
% Disks 5, ... are "movable". The larger the number of the disk,
% the "smaller" it is.
%
% The program uses additional predicates:
% on(T,N,M), which is true iff at... | [
"davide@davide-All-Series"
] | davide@davide-All-Series |
286a85a4bf2a2e961e3da5764726f6960e7aef3c | f8ad6963bfc851657ea50c6a036cfad29cdd7f60 | /Books/GodOfPython/P12_File/direct/num3.py | bb276e2864e6fd000091dd1be4546d3379e9146b | [] | no_license | foru120/PythonRepository | e1ab0265c0f50ef2e9acdf7447237c913560692b | db6b6be0f9fb91b0a81a3b6a2ec5631daab10f98 | refs/heads/master | 2021-01-01T06:53:11.728109 | 2019-04-25T13:52:50 | 2019-04-25T13:52:50 | 97,541,222 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | f = open('D:/02.Python/ch12/direct/num2.txt', 'r+')
item_list = []
for line in f:
item_list.append(line.strip().split('|'))
while True:
print('-------------------------------------')
print('-- 01. 전체 물품 출력(a) ------------')
print('-- 02. 기존 물품 수량 변경(b) -------')
print('-- 03. 새로운 물품 등록(c) --------... | [
"broodsky1122@hanmail.net"
] | broodsky1122@hanmail.net |
0539f68bfceaf9bc8ba55c42d82bfb718fbf5247 | 8578dca588f39923b6ca3af5419cc58d627cefd8 | /牛客企业真题/网易/网易2019实习生招聘编程题集合/牛牛找工作.py | 744ea44f8e482d9fb7720b8c2636fce0023b61e2 | [] | no_license | huhudaya/leetcode- | abc6eca463fc3ce0776218147c4bbed54e92f11f | cff397cb5202277a1ae85135e91051603debde09 | refs/heads/master | 2021-07-26T01:00:02.690250 | 2020-12-25T14:21:14 | 2020-12-25T14:21:14 | 233,403,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,604 | py | '''
为了找到自己满意的工作,牛牛收集了每种工作的难度和报酬。牛牛选工作的标准是在难度不超过自身能力值的情况下,牛牛选择报酬最高的工作。在牛牛选定了自己的工作后,牛牛的小伙伴们来找牛牛帮忙选工作,牛牛依然使用自己的标准来帮助小伙伴们。牛牛的小伙伴太多了,于是他只好把这个任务交给了你。
输入描述:
每个输入包含一个测试用例。
每个测试用例的第一行包含两个正整数,分别表示工作的数量N(N<=100000)和小伙伴的数量M(M<=100000)。
接下来的N行每行包含两个正整数,分别表示该项工作的难度Di(Di<=1000000000)和报酬Pi(Pi<=1000000000)。
接下来的一行包含M个正整数,分别表示M个小伙伴的能力值... | [
"457775600@qq.com"
] | 457775600@qq.com |
679c01dbd43a59d383ce9f52f744523310bd916a | 9ac405635f3ac9332e02d0c7803df757417b7fee | /cotizaciones_componentes/migrations/0021_auto_20200215_1600.py | 4b5458c6c75c7a29b644a6d2623a316422029522 | [] | no_license | odecsarrollo/07_intranet_proyectos | 80af5de8da5faeb40807dd7df3a4f55f432ff4c0 | 524aeebb140bda9b1bf7a09b60e54a02f56fec9f | refs/heads/master | 2023-01-08T04:59:57.617626 | 2020-09-25T18:01:09 | 2020-09-25T18:01:09 | 187,250,667 | 0 | 0 | null | 2022-12-30T09:36:37 | 2019-05-17T16:41:35 | JavaScript | UTF-8 | Python | false | false | 438 | py | # Generated by Django 2.2.6 on 2020-02-15 21:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cotizaciones_componentes', '0020_auto_20200215_0953'),
]
operations = [
migrations.AlterField(
model_name='itemcotizacioncompone... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
45f139875b7ada90c52391a4a0b587f14a01e96d | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4148/codes/1723_2506.py | 4c9fd872f99d5b04e510eba1c69d4e217871649e | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | q = int(input("quant.: "))
pc = int(input("percentual: "))
qvc = int(input("quant. de venda: "))
ano = 0
cap = 12000
while(q>0 and q<cap):
q = q + (q*(pc/100))-qvc
ano = ano +1
if (q<0):
print("EXTINCAO")
if(q>cap):
print("LIMITE")
print(ano)
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
1fd9fbd4ecbd63f40d60da6eeaad2a451a719921 | e2e39726195c7bc075b9bd56e757acd136527d5c | /typings/vtkmodules/vtkCommonExecutionModel/vtkMultiTimeStepAlgorithm.pyi | b8f276a14fcdccf562f6efabb3c16449399f1ca2 | [
"BSD-3-Clause"
] | permissive | gen4438/vtk-python-stubs | a652272183d2d1ee48d4639e86bcffc1ac454af0 | c9abd76362adf387af64ce5ddbd04c5d3bebe9da | refs/heads/main | 2023-04-04T02:13:15.459241 | 2021-04-15T10:47:28 | 2021-04-15T10:53:59 | 358,224,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,031 | pyi | """
This type stub file was generated by pyright.
"""
from .vtkAlgorithm import vtkAlgorithm
class vtkMultiTimeStepAlgorithm(vtkAlgorithm):
"""
vtkMultiTimeStepAlgorithm - Superclass for algorithms that would like
to
make multiple time requests
Superclass: vtkAlgorithm
This class ca... | [
"g1e2n04@gmail.com"
] | g1e2n04@gmail.com |
762bbef5680c83f8136ec7bbc152abafe40ac2e2 | 59f64b5cf799e31c97b11828dba4787afb8f3f17 | /hail/python/hailtop/aiocloud/aioazure/client/network_client.py | 495771bb1ead6b26ad134d1796f132e647ffc634 | [
"MIT"
] | permissive | hail-is/hail | 2089e6f3b38548f13fa5c2a8ab67f5cfdd67b4f1 | 07a483ae0f46c66f3ed6fd265b48f48c06298f98 | refs/heads/main | 2023-09-01T15:03:01.450365 | 2023-09-01T02:46:35 | 2023-09-01T02:46:35 | 45,069,467 | 913 | 262 | MIT | 2023-09-14T21:53:32 | 2015-10-27T20:55:42 | Python | UTF-8 | Python | false | false | 1,333 | py | from typing import Optional
import aiohttp
from ..session import AzureSession
from .base_client import AzureBaseClient
class AzureNetworkClient(AzureBaseClient):
def __init__(self, subscription_id, resource_group_name, session: Optional[AzureSession] = None, **kwargs):
if 'params' not in kwargs:
... | [
"noreply@github.com"
] | hail-is.noreply@github.com |
820951c82f77cecf7f891cf5a2edb0f60f69491b | 3e3bf98840d133e56f0d0eb16ba85678ddd6ca45 | /.history/iss_20200102123332.py | 97d3addabc223e3f815e8f462e6cae4fabebbc2d | [] | no_license | Imraj423/backend-iss-location-assessment | a05d3cc229a5fc4857483ae466348c1f8c23c234 | b0565c089a445ccffcb8d0aab3c0be3bb0c1d5b8 | refs/heads/master | 2020-12-03T17:04:58.512124 | 2020-06-24T16:02:02 | 2020-06-24T16:02:02 | 231,400,854 | 0 | 0 | null | 2020-06-24T16:02:04 | 2020-01-02T14:43:44 | null | UTF-8 | Python | false | false | 672 | py | import requests
import turtle
screen = turtle.Screen()
screen.bgpic("map.gif")
screen.screensize(800, 600)
screen.setup(720, 360)
screen.setworldcoordinates(-180, -90, 180, 90)
image = "iss.gif"
screen.addshape(image)
raf = turtle.Turtle()
raf.shape(image)
raf.setheading(45)
raf.penup()
screen.exitonclick()
def m... | [
"dahqniss@gmail.com"
] | dahqniss@gmail.com |
49ef9ae27e9207fdae7537265f3119a3db58a5c0 | ba744a96d4c8fbcbaa15bcdbc5c3efe3860578b7 | /apps/user_operation/migrations/0002_auto_20190613_1536.py | 64a928bf44052bc84aab7e8ccb0cd5c3952c3bca | [] | no_license | zhangliang852469/Mx_shop_afterend | d84107887936baf122ed489de766f5d22958865b | 9d04de806d6ec87778f2ebe002459ee6a854915e | refs/heads/master | 2022-12-17T21:03:21.315285 | 2019-06-18T09:49:51 | 2019-06-18T09:49:51 | 192,023,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2019-06-13 07:36
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('user_o... | [
"710567585@qq.com"
] | 710567585@qq.com |
a8045b4b3a67464f1ef11694c333a468a7a44896 | f608dbe94b6e05f63d9bfa030c8ca87725957b93 | /core/src/world/actions/inventory/inventory.py | 4568dbfe32d9d472cb85f44fb7376773d9b41eda | [] | no_license | ProjectMHQ/projectm | 3336c82cbd1e330e065cb178d476c72d552fbfaf | adcb42722354ea4929300e9a4597e734b431c6e5 | refs/heads/master | 2023-04-22T18:41:48.091889 | 2021-01-30T11:28:28 | 2021-01-30T11:28:28 | 216,660,020 | 0 | 0 | null | 2021-05-06T20:33:28 | 2019-10-21T20:32:21 | Python | UTF-8 | Python | false | false | 774 | py | from core.src.world.actions.inventory.inventory_messages import InventoryMessages
from core.src.world.components.inventory import InventoryComponent
from core.src.world.components.position import PositionComponent
from core.src.world.domain.entity import Entity
from core.src.world.utils.entity_utils import load_compone... | [
"guido.dassori@gmail.com"
] | guido.dassori@gmail.com |
f4977cc67d8e72649ab03139364065bcecbaaccb | 0ff2c6b1def739e687e7acd809567558bcecd660 | /data_fix/darknet_to_coco.py | 9d159c339a04d09f2adea4326c18abbc528c4ffd | [] | no_license | koalakid1/YOLOPose | 5e7b7cc8df343ad655d070831f0fd6aa1eb45685 | 0da31dfc3bcb216b19746af1e00e3a61b9671517 | refs/heads/master | 2022-04-24T10:04:35.758904 | 2020-04-19T11:45:33 | 2020-04-19T11:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | import os
import sys
import numpy as np
import pandas as pd
def dark_to_coco(text_dir, output_dir, output_name, img_dir):
sys.stdout = open(os.path.join(output_dir, output_name),"w")
for root, dir, files in os.walk(text_dir):
idx = 0
for f in [f for f in files if os.path.splitext(f)[-1] == ".t... | [
"comojin1994@gmail.com"
] | comojin1994@gmail.com |
1e593b825cab0a60fb5bff2f8ead37386a8a901b | 031b7927274f55e60d9ab004ce8ea39f34abbbca | /tensorflow_probability/python/bijectors/generalized_pareto.py | 6f4910589e1871a72124a32ef446fd0d61d187fe | [
"Apache-2.0"
] | permissive | brianwa84/probability | 8d87c96d7b8b1a885a7a7377a13978bd13ffa9c3 | 6f8e78d859ac41170be5147c8c7bde54cc5aa83e | refs/heads/master | 2021-06-19T08:58:40.276319 | 2021-05-14T21:43:14 | 2021-05-14T21:44:53 | 146,023,828 | 0 | 0 | Apache-2.0 | 2019-06-06T15:18:43 | 2018-08-24T18:00:25 | Jupyter Notebook | UTF-8 | Python | false | false | 5,582 | py | # Copyright 2019 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
19b6ed2b84c9efa20a3e5b0ba417374644185cee | 8668830f34ce260565217ea3b49e090778780b44 | /sms_gateway/tests/test_task_text_blast_coupon.py | e16bbece6a9871e7570065ff5e98477f81d5e0d4 | [] | no_license | wcirillo/ten | 72baf94da958b2ee6f34940c1fc3116660436762 | a780ccdc3350d4b5c7990c65d1af8d71060c62cc | refs/heads/master | 2016-09-06T13:39:03.966370 | 2015-07-02T12:37:36 | 2015-07-02T12:37:36 | 15,700,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | """
Tests of sms_gateway app tasks.
"""
from django.conf import settings
from coupon.models import Action, Coupon, CouponAction, SubscriberAction
from sms_gateway.tasks import text_blast_coupon
from sms_gateway.tests.sms_gateway_test_case import SMSGatewayTestCase
settings.CELERY_ALWAYS_EAGER = True
class TestTextBl... | [
"williamcirillo@gmail.com"
] | williamcirillo@gmail.com |
dbf5708023c1cd6e9fa27007bec608a1b0a11915 | 3b786d3854e830a4b46ee55851ca186becbfa650 | /SystemTesting/pylib/vmware/nsx/manager/csr/csr_facade.py | c748ebec7776c2f888198da7e0fcf182ec60e611 | [] | no_license | Cloudxtreme/MyProject | d81f8d38684333c22084b88141b712c78b140777 | 5b55817c050b637e2747084290f6206d2e622938 | refs/heads/master | 2021-05-31T10:26:42.951835 | 2015-12-10T09:57:04 | 2015-12-10T09:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | import vmware.common.base_facade as base_facade
import vmware.common.constants as constants
import vmware.common.global_config as global_config
import vmware.nsx.manager.csr.api.csr_api_client as csr_api_client
import vmware.nsx.manager.csr.cli.csr_cli_client as csr_cli_client
import vmware.nsx.manager.csr.csr as csr
... | [
"bpei@vmware.com"
] | bpei@vmware.com |
d794b2638f627cae92847c422f07455bd2e63473 | 93cc2b7590433228444a56daf9f6e0991728867e | /backend/courses/serializer.py | b9ecbba5790f4e7f95d7d8826b694ffda60a7f9d | [] | no_license | MisterLenivec/rating_app | b50fb5353634914a914ddf36831d0fa086d04530 | 65111424159fd730a89678386d9e422fddcdcde8 | refs/heads/master | 2022-12-07T07:25:23.748013 | 2020-08-30T12:04:06 | 2020-08-30T12:04:06 | 290,445,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from rest_framework.serializers import ModelSerializer
from .models import Courses
class CourseSerializer(ModelSerializer):
"""Добавление курсов"""
class Meta:
model = Courses
fields = ['id', 'name', 'url', 'rating']
| [
"wormsom@gmail.com"
] | wormsom@gmail.com |
98802694fabaaad3e27a3a6069d9a7d0df30f372 | 0c52fefc231db4ace1c483b8a6cfd6f716072c2a | /users/migrations/0003_auto_20200903_1234.py | d2b97f81a0a76faec3e8dfff719d00301bb5ca64 | [] | no_license | BrianC68/fam-recipes | 4161849133fe47bcd589b110e24e3e7e75c80527 | 413a943710ae338c922185aaca0aa46307a3ac18 | refs/heads/master | 2022-12-24T01:50:28.304372 | 2020-10-01T14:17:35 | 2020-10-01T14:17:35 | 295,018,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # Generated by Django 3.0.8 on 2020-09-03 17:34
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20200903_1232'),
]
operations = [
migrations.AlterField(
model_name='customu... | [
"brianc@wi.rr.com"
] | brianc@wi.rr.com |
e161d289aef29076b02deb3c136d91069320e6ad | c6a0862b687ff93cb593ba5a35008ebc701fdaa4 | /does_number_look_big.py | 6a2b5305ff4313ed2c34272b28a76c594be54af4 | [] | no_license | tytechortz/codewars | 77deb327cd9d9e8602228ccb246c93a5cec82fe7 | 8517c38e174fac0a8a81a0939f51a6d83ca0e355 | refs/heads/master | 2020-06-03T03:49:31.686202 | 2019-08-26T20:39:50 | 2019-08-26T20:39:50 | 191,425,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | def narcissistic( value ):
digits = [int(x) for x in str(value)]
length = len(digits)
if sum(i**length for i in digits) == value:
return True
else:
return False
narcissistic(153)
| [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
67bcf6ef75c8622c725316804886b1e3b0041970 | 3ee2b69a81c9193dd34fdf9c587469adb52c7a6e | /contrib/oscoap-plugtest/plugtest-server | c0e380e0e35530809d366bd407d1d8e0c16e723b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pruckebusch/aiocoap | cd2ef6da4f1925e8a477baa95cfcb5173465ed21 | 021915635d912137a1d05ec37486ed4432e0f52d | refs/heads/master | 2021-01-22T20:18:18.465840 | 2017-12-20T14:45:41 | 2017-12-20T14:45:41 | 85,305,911 | 0 | 0 | null | 2017-03-17T11:46:17 | 2017-03-17T11:46:17 | null | UTF-8 | Python | false | false | 7,454 | #!/usr/bin/env python3
# This file is part of the Python aiocoap library project.
#
# Copyright (c) 2012-2014 Maciej Wasilak <http://sixpinetrees.blogspot.com/>,
# 2013-2014 Christian Amsüss <c.amsuess@energyharvesting.at>
#
# aiocoap is free software, this file is published under the MIT license as
# de... | [
"chrysn@fsfe.org"
] | chrysn@fsfe.org | |
f456161888d1aada746c90888e1e578f7e93d9b4 | fefb1e9b0b736da4e49d7754f8d1dbaf37f2fa6a | /.history/6_1_20210201203845.py | ed5f98f17b9eaa43f22ca8a496997543f53e6c0b | [] | no_license | wh-debug/python | 5a78a2227874ebc400d075197de0adab9f55d187 | 1467eeda670f170e6e2d7c0a0550f713f1ee9d75 | refs/heads/master | 2023-03-12T22:08:12.608882 | 2021-02-17T09:49:52 | 2021-02-17T09:49:52 | 334,032,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | '''
Author: Daylight
Date: 2021-02-01 20:18:57
LastEditTime: 2021-02-01 20:38:45
LastEditors: Please set LastEditors
Description: Practice for dictionaries in python
FilePath: \python\6_1.py
'''
#todo 字典(简单的字典)
alien_0 = {'color': 'green', 'point': 5} #! 保存两个键值
alien_1 = {'colors': 'red'} #! 最简单的字典
print... | [
"1813763848@qq.com"
] | 1813763848@qq.com |
ad4694defb2d1595a05f17b2c1b017829fcb623f | 70b339d0b2638a7914d0d56c5edf8a2637c9f4b0 | /Facebook-printMergedTwoBST.py | 88d3a8456edc9ece29bc9e44b1cb5338bfaad7e6 | [] | no_license | pflun/advancedAlgorithms | 9991da7514024e18ba08de8688966b9220e12571 | 5520dbcd26999b98e1229bf03c2f62dd690a2ddc | refs/heads/master | 2023-02-19T12:05:26.902535 | 2023-02-14T06:08:54 | 2023-02-14T06:08:54 | 189,055,701 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,313 | py | # -*- coding: utf-8 -*-
# https://www.geeksforgeeks.org/merge-two-bsts-with-limited-extra-space/
# Given two Binary Search Trees(BST), print the elements of both BSTs in sorted
# form. The expected time complexity is O(m+n) where m is the number of nodes in
# first tree and n is the number of nodes in second tree. Maxi... | [
"zgao@gwu.edu"
] | zgao@gwu.edu |
59549cf9b5090c462054501984f18528b5eeecb8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2563/60771/286481.py | 6440860658ef460e394d3ddb3ec560656c52722f | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | #08
s = eval(input())
if s == "1000000000000000000":
print("999999999999999999")
exit(0)
ones = ["1","11","111","1111","11111"]
for i in range(2,11):
for item in ones:
if int(s) == int(item,i):
print(i)
exit(0)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
d22116543afbd061fe73aff46c090483128e53a9 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq220.py | ec7bc93bbdf4174fbf1914c1bd69aa6b569cdc19 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=9
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
11e929075f1dc33ce20b126bede66b9911fa154b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5686275109552128_1/Python/LooneyLarry/solution.py | 48f0fd31d05cb88218678b13fa6205aae48076c4 | [] | 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 | 4,246 | py | # Google Code Jam 2015 Qualifying B.
# Moving half of stack isn't optimal, right?
# Start: 9, make 4,5, total cost: 6
# make 3,3,3, total cost: 5
# Right, halving isn't optimal.
# Can't improve on 3.
# 1: 1
# 2: 2
# 3: 3
# 4: 3
# 5: 4
# 6: 1 + C(3) = 4
# 7?: 1 + C(4) = 4<= No, we can't split the 3 and the 4... | [
"root@debian"
] | root@debian |
77c43b89e4d98e184496a139bfe0ee501aac3077 | 4da462f01398e57f07532d09becbcb737278be6b | /tape/disasm/disasm.py | f1c16dedb37c92e200cfe9e509160dcdabef7389 | [
"BSD-2-Clause"
] | permissive | meawoppl/purgatory | d740bc30e547b6d8ef1e00353747ffae6701881f | 58abd57f7bf26457798f1d518c321ee52396fb3d | refs/heads/master | 2021-01-13T01:31:20.943177 | 2015-07-26T21:09:42 | 2015-07-26T21:09:42 | 37,833,544 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | from __future__ import print_function
# test1.py
from capstone import Cs, CS_ARCH_X86, CS_MODE_64, CS_MODE_32
CODE = b"\x8d\x44\x38\x02"
md = Cs(CS_ARCH_X86, CS_MODE_32)
md.detail = True
for i in md.disasm(CODE, 0):
# print(dir(i))
print("0x%x:\t%s\t%s" % (i.address, i.mnemonic, i.op_str))
if len(i.regs... | [
"meawoppl@gmail.com"
] | meawoppl@gmail.com |
e36693a654a9877c1004ae2e498dcd3df1c01fe5 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.0_rd=0.5_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=61/sched.py | 0f9be34a7f8ee395e190f23b91fd7672f0ff05c2 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | -X FMLP -Q 0 -L 4 71 250
-X FMLP -Q 0 -L 4 67 200
-X FMLP -Q 1 -L 3 58 300
-X FMLP -Q 1 -L 3 51 300
-X FMLP -Q 2 -L 2 42 300
-X FMLP -Q 3 -L 2 35 200
34 125
32 400
28 150
15 175
9 125
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
5659fac1f5b514ddd3691759dde6533c4cbf6b48 | 4eaab9327d25f851f9e9b2cf4e9687d5e16833f7 | /problems/add_binary/solution.py | af644f463bbed2e7d591ff215c7088ac01b99e58 | [] | no_license | kadhirash/leetcode | 42e372d5e77d7b3281e287189dcc1cd7ba820bc0 | 72aea7d43471e529ee757ff912b0267ca0ce015d | refs/heads/master | 2023-01-21T19:05:15.123012 | 2020-11-28T13:53:11 | 2020-11-28T13:53:11 | 250,115,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | class Solution:
def addBinary(self, a: str, b: str) -> str:
# 0 + 0 --> 0
# 0 + 1 --> 1
# 1 + 0 --> 0
# 1 + 1 --> 0, carry 1
# Loop through a
# Loop through b
# 4 if statements
x,y = int(a,2), int(b,2) # answer, carry, respec... | [
"kadhirash@gmail.com"
] | kadhirash@gmail.com |
f0811e61669d74bf1815b34a8639d8024adcf499 | b7fccda9944b25c5c9b5a91253eac24e1c4c9b23 | /tests/settings.py | 4003a9bf4dae22e89994804f2dcb8b53953c8fb0 | [
"BSD-3-Clause"
] | permissive | ouhouhsami/django-geoads | 96f47fd17496a13d611b6ed2462f32dfa81c4401 | bec8f9ce8b8744775aee26b14a884598a599d9af | refs/heads/master | 2021-01-01T16:51:23.715917 | 2013-11-16T23:13:52 | 2013-11-16T23:13:52 | 4,099,272 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,638 | py | # Django settings for localized_classified_ads project.
import os
import sys
DEBUG = True
TEMPLATE_DEBUG = DEBUG
GEOADS_ASYNC = False
#EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
EMAIL_FILE_PATH = 'tmp/email-messages/'
SITE_RO... | [
"samuel.goldszmidt@gmail.com"
] | samuel.goldszmidt@gmail.com |
2b01732f00eccf85447635c842aeea87107b29a2 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/dask-0.8.1-py27_0/lib/python2.7/site-packages/dask/diagnostics/progress.py | 42babc30a3fe0b3d4de1caae9af138a8e30b9c1a | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 4,169 | py | from __future__ import absolute_import, division, print_function
import sys
import threading
import time
from timeit import default_timer
from ..callbacks import Callback
from ..utils import ignoring
def format_time(t):
"""Format seconds into a human readable form.
>>> format_time(10.4)
'10.4s'
>>>... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
69f8539cd9c2a5ff7d1f58e302cc31eda63563b1 | 73b8aba05ee1424f38a8598a9f1305185588075f | /0x0B-python-input_output/9-student.py | 47edce80a94d4ef2c2595c7c27eabbf247e1dbce | [] | no_license | nicolasportela/holbertonschool-higher_level_programming | 0d176c0e56f4f703c1e9a98b430fc6120f22f675 | e1537b81f21118456e5cfa0e4ed89520b232adb6 | refs/heads/master | 2023-04-20T21:30:22.693434 | 2021-05-13T01:47:30 | 2021-05-13T01:47:30 | 319,397,633 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/python3
"""this module writes a class named Student"""
class Student:
"""class creation"""
def __init__(self, first_name, last_name, age):
"""instantiation"""
self.first_name = first_name
self.last_name = last_name
self.age = age
def to_json(self):
"""... | [
"2103@holbertonschool.com"
] | 2103@holbertonschool.com |
7245421fc62c4bc78c583bb78c878771fd612113 | 2626f6e6803c8c4341d01f57228a0fe117e3680b | /students/alexLaws/lesson06/Calculator/unit-test.py | 4aabc968ccbaa596943a18f7b0d8b90f8d88ec8d | [] | no_license | kmsnyde/SP_Online_Course2_2018 | 9e59362da253cdec558e1c2f39221c174d6216f3 | 7fe8635b47d4792a8575e589797260ad0a2b027e | refs/heads/master | 2020-03-19T17:15:03.945523 | 2018-09-05T22:28:55 | 2018-09-05T22:28:55 | 136,750,231 | 0 | 0 | null | 2018-06-09T19:01:52 | 2018-06-09T19:01:51 | null | UTF-8 | Python | false | false | 2,831 | py | from unittest import TestCase
from unittest.mock import MagicMock
from calculator.adder import Adder
from calculator.subtracter import Subtracter
from calculator.multiplier import Multiplier
from calculator.divider import Divider
from calculator.calculator import Calculator
from calculator.exceptions import In... | [
"kmsnyder2@verizon.net"
] | kmsnyder2@verizon.net |
e3402ab9f154e153963567c7195d6764d66c8b2b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6377668744314880_0/Python/hero777/15_3_1s.py | 6a14e7f31677be4fe6912de46c33060887d121b9 | [] | 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 | 962 | py | f = open('a.txt','r')
f0 = open('output.txt','w')
a0 = [int(x) for x in f.readline().split()]
for index in range (0,a0[0]):
x, = [int(x) for x in f.readline().split()]
f0.write('Case #')
f0.write(str(index+1))
f0.write(': ')
f0.write('\n')
x1 = [1]*x
y1 = [1]*x
for index2 in range (0,x):
x1[index2], y1[index2... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
78136ab0a5146745ae8d5ba53635c748b109beda | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00002/s705893489.py | 07943c2872474d02f692c0b66ec4f7740cc08380 | [] | 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 | 138 | py | while 1:
try:
a,b = map(int, raw_input().split())
n = a+b
print len(str(n))
except EOFError:
break | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cefd0697efe5cc2ff06a3562f310f1133c9a5da1 | a9e81c87022fdde86d47a4ec1e74791da8aa0e30 | /python-learning/libraries/pyqt5/base/animation/qeasingcurve-demo.py | 13c911e44108f0f823b9d5eab00fd31546f00ef0 | [
"Apache-2.0"
] | permissive | ymli1997/deeplearning-notes | c5c6926431b7efc1c6823d85e3eb470f3c986494 | f2317d80cd998305814f988e5000241797205b63 | refs/heads/master | 2020-07-29T11:15:43.689307 | 2018-05-05T10:58:18 | 2018-05-05T10:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | # -*- coding: utf-8 -*-
'''
属性控件
'''
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
import sys
class Form(QMainWindow):
def __init__(self,parent=None):
super().__init__(parent)
centerWidget = QWidget()
layout = QHBoxLayout()
# 添加控件代码
... | [
"kkoolerter@gmail.com"
] | kkoolerter@gmail.com |
508ba6f49b063a1b8f7951ed21108506687749d2 | b8e9dd6fd8f8b691cba5a3af2388467bcf6c90bb | /samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.pyi | c26397416a52ea3ee2cb8504d252698b9b42857c | [
"Apache-2.0"
] | permissive | FallenRiteMonk/openapi-generator | f8b98940219eecf14dc76dced4b0fbd394522aa3 | b6576d11733ecad6fa4a0a616e1a06d502a771b7 | refs/heads/master | 2023-03-16T05:23:36.501909 | 2022-09-02T01:46:56 | 2022-09-02T01:46:56 | 164,609,299 | 0 | 0 | Apache-2.0 | 2019-01-08T09:08:56 | 2019-01-08T09:08:56 | null | UTF-8 | Python | false | false | 2,550 | pyi | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"noreply@github.com"
] | FallenRiteMonk.noreply@github.com |
b3979984927341a8b493352e08d0e64e426032ae | 6ce856e7693c003a85f0e23a239907a87ecb7c89 | /cms/coltrane/models.py | 1b0f837e8209bb9eb3d22d369e6e0b5301f4886f | [] | no_license | wherby/DJango | 4776f0b92b69124be2d213f640fc12e5409f0ee2 | 2545fe7b908e5ef4f6aef2ecca78da77f4d7ccd0 | refs/heads/master | 2018-12-28T13:45:58.851730 | 2014-06-28T18:40:01 | 2014-06-28T18:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | import datetime
from django.db import models
from django.contrib.auth.models import User
from tagging.fields import TagField
from markdown import markdown
class Category(models.Model):
title = models.CharField(max_length=250,help_text='Maximum 250 characters.')
slug = models.SlugField(unique=True,help_text="S... | [
"187225577@qq.com"
] | 187225577@qq.com |
1e29a61d5f946cf138297066af08bcfa6884588c | 5e51625b5885f23a10213b373d46900eefd3312c | /torch_sparse/__init__.py | a4b3a38565aca774eb9ed9c0d1e43047d7d096d2 | [
"MIT"
] | permissive | ducptruong/pytorch_sparse | a84c7c8892dfce8a1c7e0048d1a83bea314bd1c1 | 46dac04fd29a9585ed67afe28eaa4c667eabf9e3 | refs/heads/master | 2023-02-19T06:17:50.252560 | 2021-01-19T11:21:52 | 2021-01-19T11:21:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,173 | py | import importlib
import os.path as osp
import torch
__version__ = '0.6.8'
for library in [
'_version', '_convert', '_diag', '_spmm', '_spspmm', '_metis', '_rw',
'_saint', '_sample', '_relabel'
]:
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
library, [osp.dirname(__fi... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
3c6d3a7309e480edacabe02dab04a8023d9c7a66 | 2979f5687b5d34b4885f41062b9b901eee217771 | /meiduo_mall/wc.py | 0dd52ff1ef1cfb39d00f4f75909f501865f38886 | [] | no_license | PierreCastor18/meiduo_mall | d9aa15fa4ec0957f079763a7eb7d2bea5c6aa765 | 8de99e6d232f24cdc8be947ccda8ed536597ec94 | refs/heads/master | 2020-04-17T03:08:30.405499 | 2019-02-25T07:27:11 | 2019-02-25T07:27:11 | 166,168,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # _*_ coding: utf-8 _*_
__author__ = '其实很简单'
__date__ = '19-1-29 下午8:53'
# 类装饰器
class logger(object):
def __init__(self, func):
self.func = func
def __call__(self, *args, **kwargs):
print('[INFO]: the function {func}() is running...'.format(func=self.func.__name__))
return self.func(*... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
8ac7a93c8efec3f919c47f1252986d33592d05af | a8769709aeb7299fa3757f0e7bba5c617eb8cfe3 | /lesson-3/k8s/lib/python2.7/site-packages/kubernetes/client/models/v1_volume_node_affinity.py | 1679a08b6ffd499a1bbd967aeb3fa5ae2910d3e8 | [
"Apache-2.0"
] | permissive | simox-83/workshop-k8s | 2ac5e8b282bb7c3337acc726a7d972717bf649cc | 04cb18e8b5925a3cfd84ca316952a6cb64960b31 | refs/heads/master | 2020-03-31T20:52:21.421995 | 2018-10-11T14:43:08 | 2018-10-11T14:43:08 | 152,558,678 | 0 | 0 | Apache-2.0 | 2018-10-11T08:37:20 | 2018-10-11T08:37:20 | null | UTF-8 | Python | false | false | 3,247 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.11.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"simone.dandreta@concur.com"
] | simone.dandreta@concur.com |
44924e9a5021295d2b49049fca70b2b8f8d2d91a | a0529a92f73c951bacfe69cc058c53394a9685d4 | /bingads/v12/bulk/entities/ad_extensions/bulk_action_ad_extensions.py | 2f884206ed01e4fa360a57370ec5cf9ec8ceac4a | [
"MIT"
] | permissive | joseftf/BingAds-Python-SDK | 06eda7d23e3141c9fcaee39a3424cf8317d472ed | 205ebf9bdd9701d5d05c5f9ac59702083754f553 | refs/heads/master | 2020-04-29T16:41:06.392989 | 2019-02-17T23:16:17 | 2019-02-17T23:16:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,825 | py | from bingads.v12.internal.bulk.mappings import _SimpleBulkMapping
from bingads.v12.internal.bulk.string_table import _StringTable
from bingads.service_client import _CAMPAIGN_OBJECT_FACTORY_V12
from .common import _BulkAdExtensionBase
from .common import _BulkAdGroupAdExtensionAssociation
from .common import _BulkCamp... | [
"qitia@microsoft.com"
] | qitia@microsoft.com |
33be986bba891a0a1751bb25973dd5564f906a7a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2850/60691/295113.py | 2dc388fb247c3a9fc4edd3c03a2977e028026556 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | def countone(l):
count = 0
for i in range(len(l)):
if l[i] == 1:
count += 1
return count
def convert(l, start, k):
for i in range(start, start+k):
if l[i] == 0:
l[i] = 1
else:
l[i] = 0
return countone(l)
def reverse(s, k):
num = []
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
6938bb062f1e075b98f9af371123bfd4137ec234 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2021_06_01_preview/aio/_configuration.py | da6ab06618bea61e3ca4a9404926ddd3eacad877 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 3,336 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.