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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a7041cf991e52b763f3cd3bc1245544d989aa779 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2014_11_06_composite_test/microstructure_function.py | 40648669fbe68bcc57b24375b06e393199591580 | [] | 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,441 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 23 14:25:50 2014
This script reads a set of microstructures designated by the set-ID and saves
the microstructure function in real and frequency space.
@author: nhpnp3
"""
import time
import numpy as np
import functions_composite as rr
import scipy.io as sio
def msf(el... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
3c15ad74bdae4f5394409a54f52da75f6dfa9934 | 6fff0893ef43f1018d65f2e8e1bf27d9f8accf5b | /pw_stm32cube_build/py/setup.py | 4a4f3b3318d0244b9e89d087778c77c813a96b56 | [
"Apache-2.0"
] | permissive | isabella232/pigweed | eeb68a4eda6f0a9b5ef0b8145d0204bc9f85bfdc | 53c2f3e2569d7e582d3dd3056ceb9b2c3b8197b2 | refs/heads/main | 2023-06-03T10:32:29.498066 | 2021-06-17T06:38:15 | 2021-06-17T20:44:55 | 378,165,913 | 0 | 0 | Apache-2.0 | 2021-06-18T13:54:37 | 2021-06-18T13:53:40 | null | UTF-8 | Python | false | false | 1,131 | py | # Copyright 2021 The Pigweed 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 law or agreed to in ... | [
"pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com |
de18343ee3eb88b08ceb551823642e31ba91135a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/1777.py | 0029905c5b8fadd6cd1b84c5cdcbc74c89c48176 | [] | 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 | 974 | py | # /usr/bin/python
import sys
import math
def dbg(s): sys.stderr.write(str(s) +"\n")
def reads(t): return map(t, input().split(" "))
def read(t) : return t(input())
palss = {
0: [],
1: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
2: [11, 22, 33, 44, 55, 66, 77, 88, 99],
}
pals = palss[1] + palss[2]
fsq = []
def gen_pals(n):... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
db41ab0764713f49b58abe113aa3b99dfbace9db | a3139097d228a89255422fbfc5ee9b10992aeca1 | /day_02/transcripts/trans_sets.py | 2dc2e76eabc38d3dec809e54772d4dd68d597b90 | [] | no_license | Code360In/07122020PYLVC | 4d8e88163a00c56004d3920d5802a6c945e4af89 | a0e4dd708c973ff333930191a77f289091969a3d | refs/heads/main | 2023-01-29T09:03:41.375978 | 2020-12-11T14:00:09 | 2020-12-11T14:00:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> s1 = {'a', 'a', 'b', 'b', 'c' ,'d', 'e', 'f', 'g' }
>>> type(s1)
<class 'set'>
>>> s1
{'f', 'c', 'a', 'g', 'b', 'd', 'e'}
>>> s1[2]
Traceback ... | [
"noreply@github.com"
] | Code360In.noreply@github.com |
82e64f85567565fee068b5888b54eba2a79ab18e | f569978afb27e72bf6a88438aa622b8c50cbc61b | /douyin_open/EnterpriseGrouponGrouponCodeCodeDeposit/models/inline_response200.py | 12e39d0314ab86197d71e68b691b7582b16b95da | [] | no_license | strangebank/swagger-petstore-perl | 4834409d6225b8a09b8195128d74a9b10ef1484a | 49dfc229e2e897cdb15cbf969121713162154f28 | refs/heads/master | 2023-01-05T10:21:33.518937 | 2020-11-05T04:33:16 | 2020-11-05T04:33:16 | 310,189,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,756 | py | # coding: utf-8
"""
自定义卷码预存
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
cl... | [
"strangebank@gmail.com"
] | strangebank@gmail.com |
eb99088385dfeba2cc4eaf7cfc1cec214ff6f8a1 | db4add5587fbcb24bd6147a5f2cc161743553429 | /venv/lib/python3.6/site-packages/sqlalchemy/dialects/mssql/pymssql.py | cfcfb4afc306ea8222d264b2f34b031b8c470614 | [
"MIT"
] | permissive | DiptoChakrabarty/FlaskKube-api | 38dedb5695f00f1fa0ee58af1f4b595c37f3ba0f | 50bf4c226ce2ed0d544cb2eb16f5279e0fe25ca1 | refs/heads/master | 2022-12-25T04:08:52.669305 | 2020-10-01T08:42:39 | 2020-10-01T08:42:39 | 259,813,586 | 4 | 5 | MIT | 2020-10-01T08:42:41 | 2020-04-29T03:20:59 | Python | UTF-8 | Python | false | false | 4,677 | py | # mssql/pymssql.py
# Copyright (C) 2005-2020 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
.. dialect:: mssql+pymssql
:name: pymssql
:dbapi: pymssql
:connects... | [
"diptochuck123@gmail.com"
] | diptochuck123@gmail.com |
976b1f612310075478e65e12b9776472bcf16ee0 | a6c48d5d697cd0ba48bc7c6bd64e871326ce6458 | /server/libs/pyticas_noaa/test/stations.py | 14a4d003b74a916682190216840fbd9e27984dac | [] | no_license | lakshmanamettu/tetres | 873a878cf06b313ee26537504e63f5efdecdc98f | 1acf985f378106953cbff34fb99147cac5104328 | refs/heads/master | 2020-06-30T19:33:44.044090 | 2019-08-06T16:21:18 | 2019-08-06T16:21:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | # -*- coding: utf-8 -*-
__author__ = 'Chongmyung Park (chongmyung.park@gmail.com)'
import csv
import datetime
class ISDStation(object):
def __init__(self, row):
"""
:type row: list[str]
"""
self.usaf = None
self.wban = None
self.station_name = None
... | [
"beau1eth@tmsdev5.dot.state.mn.us"
] | beau1eth@tmsdev5.dot.state.mn.us |
49582b8c6a9f659561e39a6385394b3b6f3d86f8 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /333_nuke/__exercises/Nuke_Scripting_for_Pipeline_TD/003_Dopolnitelnue_mareialu/module_nukescripts.py | 2f0806e2df8e5772e47a542b87ed98158954dad2 | [] | 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 | 624 | py | import nuke
import os
import nukescripts
nukescripts.autoBackdrop()
def clearNodeSelection():
for n in nuke.selectedNodes():
# n['selected'].setValue(False)
n.setSelected(False)
nukescripts.clear_selection_recursive()
nukescripts.declone(node)
nukescripts.declone(nuke.selectedNode())
nukescripts.swapAB(nu... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
33d7882c955e9858ee8e5d4ad0d2b2178ee13693 | 4c432a555bc3932880b201e0686d75bc2abd80b9 | /lib/core_preprocessor.py | 56b4d092df896b8852f2055515ceb0d566155b86 | [
"BSD-3-Clause"
] | permissive | lmdalessio/aTRAM | 3a14f08994d3ce7de692df3b90d5d7f99e8af9a8 | 807f43d83887dd80dea158b9a22ecb2a4e1aa220 | refs/heads/master | 2021-03-05T11:17:02.324817 | 2020-03-06T16:58:56 | 2020-03-06T16:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,987 | py | """
Format the data so that atram can use it later in atram itself.
It takes sequence read archive (SRA) files and converts them into coordinated
blast and sqlite3 databases.
"""
from os.path import join, basename, splitext
import sys
import multiprocessing
import numpy as np
from Bio.SeqIO.QualityIO import FastqGene... | [
"raphael.lafrance@gmail.com"
] | raphael.lafrance@gmail.com |
3092a3b0b103669277fb6168d38c7712550116c8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03611/s849629257.py | c22112651ffbef820aae30f404b80b8e6c08dc60 | [] | 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 | 282 | py | n = int(input())
a = list(map(int, input().split()))
count = [0]*(max(a)+1)
for i in a: count[i]+=1
if len(count) <= 2:
print(sum(count))
exit()
ans = 0
for i in range(2,max(a)):
if count[i-1]+count[i]+count[i+1] > ans:
ans = count[i-1]+count[i]+count[i+1]
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
dafbe5e66dfcb61cad1999bdba519ec439021ce9 | 8d2c37a19076690dbe0f1b6c64467eeb7475b4ae | /kikoha/apps/voting/models.py | d958372da246c1e1c1c78cc1adb74b981448be92 | [] | no_license | siolag161/kikoha | 39fbdbc6f27337b8b84661165448d0e4a23a79d4 | e8af8c7b0019faa6cc3a6821e2c04f6d8142fd08 | refs/heads/master | 2016-09-03T06:44:57.088649 | 2014-12-25T03:10:07 | 2014-12-25T03:10:07 | 25,884,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | # coding: utf-8
from __future__ import unicode_literals
from django.utils.encoding import python_2_unicode_compatible
from django.contrib.contenttypes import generic
from django.contrib.contenttypes.models import ContentType
from django.dispatch import receiver
from django.db import models
from core.models import O... | [
"thanh.phan@outlook.com"
] | thanh.phan@outlook.com |
a5c7e9f7952089395270e27d81634bb006a7830d | 0133d8d56ee611a0c65ef80693ae263692557b96 | /spira/yevon/filters/layer_filter.py | 4ff08772238a31e9cf4202378a362503d9cfb6d0 | [
"MIT"
] | permissive | JCoetzee123/spira | e77380df2e79333b0c48953faae2d3dae50a8d27 | dae08feba1578ecc8745b45109f4fb7bef374546 | refs/heads/master | 2021-06-25T23:32:52.289382 | 2019-07-17T13:25:50 | 2019-07-17T13:25:50 | 198,605,222 | 1 | 0 | MIT | 2019-07-24T09:42:07 | 2019-07-24T09:42:06 | null | UTF-8 | Python | false | false | 1,112 | py | from spira.log import SPIRA_LOG as LOG
from spira.yevon.filters.filter import Filter
# from spira.yevon.process.layer_list import LayerList, LayerListParameter
from spira.yevon.process.gdsii_layer import LayerList, LayerListParameter
__all__ = ['LayerFilterAllow', 'LayerFilterDelete']
class __LayerFilter__(Filter):... | [
"rubenvanstaden@gmail.com"
] | rubenvanstaden@gmail.com |
2b4c1b5b88e67aa6787b4704564067ebd2403069 | 938a496fe78d5538af94017c78a11615a8498682 | /SwordRefersToOffer/11.NumberOf1.py | 55ed4a03ad52b60ceb6e7472bafa3fd959ffa8fe | [] | no_license | huilizhou/Leetcode-pyhton | 261280044d15d0baeb227248ade675177efdb297 | 6ae85bf79c5a21735e3c245c0c256f29c1c60926 | refs/heads/master | 2020-03-28T15:57:52.762162 | 2019-11-26T06:14:13 | 2019-11-26T06:14:13 | 148,644,059 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | # -*- coding:utf-8 -*-
# 二进制中1的个数
class Solution:
def NumberOf1(self, n):
# write code here
count = 0
if n < 0:
n = n & 0xffffffff
while n:
count += 1
n = n & (n - 1)
return count
print(Solution().NumberOf1(3))
| [
"2540278344@qq.com"
] | 2540278344@qq.com |
34a7acd539aa930a26936a914f4e663c21da9000 | 73978c38ef18dd87b75d6af706de58f5633ee157 | /trunk/zkomm_multiserver/src/modelo_lista_nodos.py | 44435e9e08934dc9b4060a6c58be21ffdfa36e65 | [] | no_license | BGCX261/zkomm-multiserv-svn-to-git | 1702f2bc9ef8764dd9a35c301e9dbb362b4e2d12 | 830ccd1ec3a617f30450ad6d038107bf9aafa6a2 | refs/heads/master | 2021-01-19T08:53:11.428916 | 2015-08-25T15:43:46 | 2015-08-25T15:43:46 | 41,488,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | #ZKOMM Multiserver
#Modelos de vistas
from PyQt4 import *
class modelo_lista_nodos:
def __init__(self, padre, lista = []):
self.m = QtGui.QStandardItemModel(0, 5, padre)
encabezados = QtCore.QStringList()
encabezados << "Nodo (ID)" << "Nombre" << "IP" << "Puerto" << "Capacidad" << "Carga" << "Sobrecarga" << "P... | [
"you@example.com"
] | you@example.com |
9ba8b32ba254af1cf723aab25c9a85110c4f54b6 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/438/usersdata/348/94998/submittedfiles/pico.py | 8c6e09f062dd15ec153e26731839b488ba972b38 | [] | 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 | 617 | py | # -*- coding: utf-8 -*-
#funçoes
def crescente(lista):
for i in range (n,-1,-1):
if lista[0] > lista[1]:
return 'N'
elif (lista[i-1] < lista[i-2]) and (lista[0] < lista[1]) :
return 'S'
elif (lista[0] < lista[1]):
return 'S'
elif li... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0355e904e902fa6f33f696424157267e37861148 | 491235d50ab27bb871d58a5dfff74d6a4aa9bbe6 | /pong-client/gui/__init__.py | 4ac6e8ce43257509a2ebdc0c6c8e5d0bacc29e8f | [] | no_license | elgrandt/Pong-Network | 768bb861757d1fb98be3b761a66ad14e632f7932 | 204e1c5d9fbd53eece906d56df394602bdc269b6 | refs/heads/master | 2022-12-06T16:12:01.506699 | 2020-08-18T03:27:47 | 2020-08-18T03:27:47 | 288,315,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from add_border import *
from input_text import *
from moving_bar import *
from area_movil import *
from server_list import *
from server_connect_menu import *
from surface_gf import *
import add_border
import input_text
import moving_bar
import area_movil
from status_cur import * | [
"dylantasat11@gmail.com"
] | dylantasat11@gmail.com |
0d608ca99a5df062161a727ba15e6c5d0d860cfa | d55f3f715c00bcbd60badb3a31696a1a629600e2 | /students/maks/9/site2/page/migrations/0002_category.py | ee732793b384633ecbbe6c4b58bbd67a5b4d787d | [] | no_license | zdimon/wezom-python-course | ea0adaa54444f6deaca81ce54ee8334297f2cd1a | 5b87892102e4eb77a4c12924d2d71716b9cce721 | refs/heads/master | 2023-01-29T02:22:54.220880 | 2020-12-05T11:27:48 | 2020-12-05T11:27:48 | 302,864,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # Generated by Django 3.1.2 on 2020-11-14 10:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('page', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', mo... | [
"you@example.com"
] | you@example.com |
205794e0f345bd8c88dca18a2b82e9f5364d5430 | 168556624401cd884fe0bfdac5a312adf51286a1 | /CS1430/homework4_sceneclassification-Enmin/code/trial.py | ce43e58f440332e775d1492ab4a36598380a3a3c | [] | no_license | Enmin/Coursework | f39dc7b54a07b901491fbd809187fd54e96fa5a4 | a17d216c37e70a8073602389924af10019cfe7de | refs/heads/master | 2021-12-28T02:53:15.949547 | 2021-12-21T22:45:19 | 2021-12-21T22:45:19 | 179,909,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import numpy as np
import matplotlib
import time
from matplotlib import pyplot as plt
from helpers import progressbar
from skimage import io
from skimage.io import imread
from skimage.color import rgb2grey
from skimage.feature import hog
from skimage.transform import resize
from scipy.spatial.distance import cdist
def... | [
"zhouem14@gmail.com"
] | zhouem14@gmail.com |
8526bf590577cee22e9f84d173c847d4b9407e14 | 824f19d20cdfa26c607db1ff3cdc91f69509e590 | /Array-101/5-Merge-Sorted-Array.py | e028a6ec47e16b2bddb04b2c0dac066cac1c70c2 | [] | no_license | almamuncsit/LeetCode | 01d7e32300eebf92ab54c983de6e183242b3c985 | 17aa340649574c37067ec170ceea8d9326be2d6a | refs/heads/master | 2021-07-07T09:48:18.069020 | 2021-03-28T11:26:47 | 2021-03-28T11:26:47 | 230,956,634 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from typing import List
class Solution:
def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None:
i, j, k = m - 1, n - 1, m + n - 1
while j >= 0:
if nums1[i] >= nums2[j] and i >= 0:
nums1[k] = nums1[i]
i -= 1
else:
... | [
"msarkar.cse@gmail.com"
] | msarkar.cse@gmail.com |
9ab60f6818d611b38e5a018aab0b282e5e417ec6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bobbling.py | 5754a833bc3c73ef4d8503d781013e85cd1c3248 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
from xai.brain.wordbase.nouns._bobble import _BOBBLE
#calss header
class _BOBBLING(_BOBBLE, ):
def __init__(self,):
_BOBBLE.__init__(self)
self.name = "BOBBLING"
self.specie = 'nouns'
self.basic = "bobble"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
541ff8209cf419cbd7c780213cf1f0c62b91a4d7 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_313/ch75_2020_04_07_18_04_40_887750.py | 39e6ed3c06555b5fc1e686140dc5d782dadd9b6c | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | def verifica_primos(l1):
dicionario = {}
for i in l1:
if i == 0 or i == 1 or i == -1:
dicionario[i] = True
elif i == 2:
dicionario[i] = True
elif i % 2 == 0:
dicionario[i] = False
else:
a = 3
for a in range(3,17,2):
... | [
"you@example.com"
] | you@example.com |
04b60bf68bf3570d0bc85f8a5ffe962f4f658aa1 | 2635c2e2c31a7badb8b188306c3cdfc61dc1ecc8 | /ihm_add_fields_productos/models/add_fields_product.py | 71ba7678d0edaea18b210f7f577c718ee38a5872 | [] | no_license | rosalesdc/ihm_testing | ec4ebf26c3c7602267a04fd183de4064f9d16bc1 | d91ebeac5504c9f29a21b2b0f05bc16ed240ff48 | refs/heads/master | 2020-04-17T01:21:03.214595 | 2019-10-29T23:05:52 | 2019-10-29T23:05:52 | 166,088,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,791 | py | # -*- coding: utf-8 -*-
from odoo import api
from odoo import fields
from odoo import models
from odoo.exceptions import UserError
from odoo.exceptions import ValidationError
import smtplib
class AddProductFields(models.Model):
_inherit = 'product.template'
name = fields.Char('Name', index=True, required=True... | [
"rosales9146@gmail.com"
] | rosales9146@gmail.com |
3690de3d521be3542a0c4bafc7ca2f7cdc71a149 | 36bdbbf1be53ba5f09b9a2b1dd15e91f8f6b0da1 | /house/migrations/0004_auto_20180920_2003.py | 2c799c963093e1889c416fe8249beab35804299e | [] | no_license | phufoxy/fotourNew | 801ab2518424118020dc6e5f31a7ba90a654e56a | 6048c24f5256c8c5a0d18dc7b38c106a7c92a29c | refs/heads/master | 2023-04-13T01:34:22.510717 | 2018-12-26T03:46:09 | 2018-12-26T03:46:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | # Generated by Django 2.1 on 2018-09-20 13:03
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('house', '0003_auto_20180920_2002'),
]
operations = [
migrations.RenameField(
model_name='house',
old_n... | [
"vanphudhsp2015@gmail.com"
] | vanphudhsp2015@gmail.com |
2e2066e619ccc7d33ad5a3115a5f2d7b25804acc | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/1619.py | 627355a3f0c5448f6788990546a6563e13a4e9b3 | [] | 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 | 809 | py | for Pr in xrange(1, input()+1):
D, N=[int(x) for x in raw_input().split()]
d, v=[], []
for i in xrange(N):
c=[int(x) for x in raw_input().split()]
d.append(c[0])
v.append(c[1])
d_sort=[k for k in d]
d_sort.sort()
v_sort=[]
for k in d_sort:
v_sort.append(v[d.index(k)])
d,v=d_s... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
36890bb9f1effdf8395b81675dd2e0393e4a1f10 | a3b0e7acb6e0d7e73f5e369a17f367ac7caf83fb | /python/Udemy/Learn_Python_Programming_StepByStep/16_Database_SQLite/pulling data.py | a908c75deb59e48146df2835e10bc32a6420b7ed | [] | no_license | jadedocelot/Bin2rong | f9d35731ca7df50cfba36141d249db2858121826 | 314b509f7b3b3a6a5d6ce589dbc57a2c6212b3d7 | refs/heads/master | 2023-03-24T14:03:32.374633 | 2021-03-19T00:05:24 | 2021-03-19T00:05:24 | 285,387,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | import sqlite3
conct = sqlite3.connect("database/mydatabase.db")
try:
cur = conct.cursor()
for records in cur.execute("SELECT * FROM student"):
print(records)
# cur.execute("SELECT name FROM student")
# print(cur.fetchmany(3))
# print(cur.fetchall())
# print(cur.fetchone())
except Ex... | [
"eabelortega@gmail.com"
] | eabelortega@gmail.com |
b4cc31ff92eb9ed40614c2fd26c025ec9077120f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/387/usersdata/273/107669/submittedfiles/ep2.py | 33033fb09115fd60503b0008b74f07c92d2e70db | [] | 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 | 1,536 | py | # -*- coding: utf-8 -*-
'''
/**********************************************************/
/* Equipe: Fulano de Tal:Leandro Pedro de Freitas e Gustavo henrique */
/* N ́umero de matriculas:381420 e */
/* Exercicio-Programa 2 -- TEMA *Razao aurea
/* ECI0007 ou EM0006 (EC/EM... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
fbf3c62c164a93fa9c4828bcb8325e94ed813e75 | 9e65e409106aad6339424a1afac3e75e15b4f488 | /0x11-python-network_1/6-post_email.py | 69b2654e635444013e91f5cd6642ffd28af4f413 | [] | no_license | jfbm74/holbertonschool-higher_level_programming | 63fe8e35c94454896324791585fe7b8e01e1c67d | 609f18ef7a479fb5dcf1825333df542fc99cec7b | refs/heads/master | 2023-03-05T20:44:05.700354 | 2021-02-10T00:21:54 | 2021-02-10T00:21:54 | 259,452,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | #!/usr/bin/python3
"""
Python script that takes in a URL and an email address,
sends a POST request to the passed URL with the email as
a parameter
"""
import requests
from sys import argv
if __name__ == '__main__':
url = argv[1]
email = {'email': argv[2]}
req = requests.post(url, email)
print(req.... | [
"jfbm74@gmail.com"
] | jfbm74@gmail.com |
9151b1b46f2c5b5e9581951a8af9df5a3f4f1f95 | b844c72c394b13d9ed4f73222a934f962d6ff187 | /src/matching_counts.py | 118790fdedcd4c34ee60aad44942be3563c04bce | [] | no_license | curtisbright/sagesat | b9b4c9180c75ce8574217058ffa4e121163ccf36 | 8fe52609ab6479d9b98a1e6cf2199a4f12c27777 | refs/heads/master | 2021-01-01T17:52:01.288449 | 2015-08-19T18:14:26 | 2015-08-19T18:14:26 | 41,425,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | '''
Created on Sep 20, 2014
@author: ezulkosk
'''
from common.common import Options
from main import run
if __name__ == '__main__':
TEST_DIR = "../test/matching_counts/"
options = Options()
options.SHARPSAT=True
print("Obtaining counts for hypercube matchings.")
for d in range(2,6):
d_di... | [
"ezulkosk@gsd.uwaterloo.ca"
] | ezulkosk@gsd.uwaterloo.ca |
e598bbc2a1a04dda520a9ae42d5eb12de22c2eea | 78980891d3137810bf3a3c1bb229966b7f49f0dd | /interestings/asyncio_demos/coro10.py | 6c8cc07ed8e8518539a71a7fd1e9aa82e39641db | [] | no_license | miniyk2012/leetcode | 204927d3aefc9746070c1bf13abde517c6c16dc0 | 91ca9cd0df3c88fc7ef3c829dacd4d13f6b71ab1 | refs/heads/master | 2021-06-17T21:50:31.001111 | 2021-03-10T11:36:23 | 2021-03-10T11:36:23 | 185,042,818 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import asyncio
import time
from contextlib import contextmanager
async def a():
await asyncio.sleep(3)
return 'A'
async def b():
await asyncio.sleep(1)
return 'B'
async def s1():
return await asyncio.gather(a(), b())
@contextmanager
def timed(func):
start = time.perf_counter()
yield ... | [
"yk_ecust_2007@163.com"
] | yk_ecust_2007@163.com |
14cfc235ea57ad8c87158c3a105277b32dd89e0b | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L3FN/3FN-2I_wat_20Abox/set_1.py | a66fca767f59717be304bfaf4b0ba3facedc7df3 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L3FN/wat_20Abox/ti_one-step/3FN_2I/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_1.in'
temp_pbs = filesdir + 'temp_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
b964a72f0dbb3381a2b723bbe70654e1d5ab14b1 | 8ca19f1a31070738b376c0370c4bebf6b7efcb43 | /office365/directory/protection/riskyusers/activity.py | f84b5aacfd83351b65aacf60389d622975b7a493 | [
"MIT"
] | permissive | vgrem/Office365-REST-Python-Client | 2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3 | cbd245d1af8d69e013c469cfc2a9851f51c91417 | refs/heads/master | 2023-09-02T14:20:40.109462 | 2023-08-31T19:14:05 | 2023-08-31T19:14:05 | 51,305,798 | 1,006 | 326 | MIT | 2023-08-28T05:38:02 | 2016-02-08T15:24:51 | Python | UTF-8 | Python | false | false | 201 | py | from office365.runtime.client_value import ClientValue
class RiskUserActivity(ClientValue):
"""Represents the risk activites of an Azure AD user as determined by Azure AD Identity Protection."""
| [
"vvgrem@gmail.com"
] | vvgrem@gmail.com |
af6acf69a5f749171c212ccadb2286cebe501086 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /Examples/bokeh/plotting/file/bollinger.py | 95cb41a56fde8c6e8db94b100473937ab032ef56 | [
"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 | 591 | py | import numpy as np
from bokeh.plotting import figure, show, output_file
# Define Bollinger Bands.
upperband = np.random.random_integers(100, 150, size=100)
lowerband = upperband - 100
x_data = np.arange(1, 101)
# Bollinger shading glyph:
band_x = np.append(x_data, x_data[::-1])
band_y = np.append(lowerband, upperban... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
3dc9c0e03163ba648da6dd6492a03da3e5d66cb0 | 824ccee9f5c27f5b3fec0dff710e9c4a181a9747 | /atlas_coords/all_sky_phot.py | 71562becbd41c1ca68d871cc16caa871a6a2114f | [] | no_license | yoachim/ScratchStuff | 1450a2a785c28c209121600072e7ccb2ba47af08 | 10c490dd1f3c574738ff4ecb71e135180df4724e | refs/heads/master | 2020-04-04T07:31:17.017542 | 2019-07-02T16:51:12 | 2019-07-02T16:51:12 | 35,652,984 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,223 | py | import numpy as np
import astropy
from astropy.io import fits
import matplotlib.pylab as plt
from astropy.stats import sigma_clipped_stats
from photutils import DAOStarFinder, aperture_photometry, CircularAperture, CircularAnnulus
# Need to pick up photutils
# conda install -c astropy photutils
# Following example f... | [
"yoachim@uw.edu"
] | yoachim@uw.edu |
ce0c15a0ad0f852b7ae51ff9ad8119b7ad6c0b84 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2737/8160/259430.py | 84b3baed41127949fbe85e854b03ddcffde98b5d | [] | 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 | 183 | py | import collections
def majorityElement(nums):
return [key for key, val in collections.Counter(nums).items() if val > len(nums) // 3]
nums = input()
print(majorityElement(nums)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f895c9359552253b5b8147d97aa07c1c39c028c4 | fb28175748fdb497f23e71e9a11c89fdf41b8a11 | /level.py | 99b3afb2cfe14c3e237dd56e741ad2fd48a74604 | [] | no_license | daeken/ygritte | 40f571505a7a77769a98c18c45f8793cf87faa4d | 0f8bf75f761b40a6c863d589dfe44f189d22ea7e | refs/heads/master | 2020-05-20T02:08:31.671031 | 2011-04-10T21:45:42 | 2011-04-10T21:45:42 | 1,563,991 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | from asset import Asset
grid = Asset.load('layer0')
stars = Asset.load('layer1')
class Level(object):
levels = {}
def __init__(self, game):
self.game = game
self.bg = Asset.load('layer2_outline', mask='layer2_mask')# % self.levelNumber)
stars.maskOff(self.bg)
self.i = 0
@staticmethod
def spawn(game, num... | [
"cody.brocious@gmail.com"
] | cody.brocious@gmail.com |
7cd0a6131a02f20edef1352a07bec29cbd8a381e | 0c98ca0ca250d0dc815813287d732c48c70aa12a | /EXP/run_bar_framed_rectangle_from_scratch.py | becb6e7809018ef3e95c4275f7f7fd715685c547 | [] | no_license | AswinVasudevan21/perception | 8f00479870ee767963767fc621325c1a96249196 | 7a6522fdfbb26ec56a682a4cdf41102cbfd6731a | refs/heads/master | 2020-07-14T13:54:10.923781 | 2019-07-23T11:21:23 | 2019-07-23T11:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,937 | py | from keras import models
from keras import layers
from keras import optimizers
import keras.applications
import keras.callbacks
from keras import backend as K
from keras.utils.np_utils import to_categorical
import sklearn.metrics
import cPickle as pickle
import numpy as np
import os
import sys
import time
import Clev... | [
"haehn@seas.harvard.edu"
] | haehn@seas.harvard.edu |
ad8d2f89fbfbfa9db5342a0c79f661cc9644b2d1 | bbcaed21db23d08ebf11fabe0c6b8d0ee551a749 | /q2_dummy_types/__init__.py | ccc172e8439e27f14d38fa77465ecbed5345f16f | [] | no_license | ebolyen/q2-dummy-types | c34707e2a3e7ef1ad6abf76b1b9fabbf9c7d7222 | 3ac8f643e5f88a6de2413bebf8fb16c1b3168e4b | refs/heads/master | 2021-01-10T22:47:04.455265 | 2016-10-08T19:20:40 | 2016-10-08T19:20:40 | 70,352,411 | 0 | 0 | null | 2016-10-08T19:17:24 | 2016-10-08T19:17:23 | null | UTF-8 | Python | false | false | 667 | py | # ----------------------------------------------------------------------------
# Copyright (c) 2016--, QIIME development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------... | [
"jai.rideout@gmail.com"
] | jai.rideout@gmail.com |
d39b69be8e6d36394558c1b41133aa034318b78c | 9d735842aa4ae0d65b33cd71994142ea80792af5 | /scrape_ebi_iedb_input.py | 54acc58345dc44c5eb8ac2e69a7d2fc6e40df78b | [] | no_license | saketkc/scrape_ebi | 9b5179c9cc45f6e4519732feec9bfaa34126538c | ffe451453bedd9b1aced1bd515bfe3993283809a | refs/heads/master | 2021-01-15T12:16:09.599217 | 2012-05-25T09:13:03 | 2012-05-25T09:13:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,562 | py | from mechanize import Browser, _http
from BeautifulSoup import BeautifulSoup
import sys
import os
def get_data_from_ebi(*arg):
br = Browser()
args = arg[0]
filename = args[0]
br.set_handle_robots(False)
br.addheaders = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gec... | [
"saketkc@gmail.com"
] | saketkc@gmail.com |
ff4d51fae8a38111bc47df0a15cfa915e98ddaff | 02e23da0431623db86c8138bda350a1d526d4185 | /Archivos Python Documentos/Graficas/.history/TRABAJO_SPT_v3_20200223200731.py | e172ba3b981e7ffe2cd9bfa36a01f100e4a315d1 | [] | no_license | Jaamunozr/Archivos-python | d9996d3d10ff8429cd1b4c2b396016a3a5482889 | 1f0af9ba08f12ac27e111fcceed49bbcf3b39657 | refs/heads/master | 2022-08-05T14:49:45.178561 | 2022-07-13T13:44:39 | 2022-07-13T13:44:39 | 244,073,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,247 | py | import os
import pylab as pl
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import numpy as np
#------------
#from mpl_toolkits.mplot3d.axes3d import get_test_data
#-------------
os.system("clear")
fig = ... | [
"jaamunozr@gmail.com"
] | jaamunozr@gmail.com |
938f1654252a9fbc25a0c686035dd7efd7cbc660 | 2d4380518d9c591b6b6c09ea51e28a34381fc80c | /CIM16/IEC61970/Protection/RecloseSequence.py | 549c094a7cdff30fe983ecb50cfff2a768e9c918 | [
"MIT"
] | permissive | fran-jo/PyCIM | 355e36ae14d1b64b01e752c5acd5395bf88cd949 | de942633d966bdf2bd76d680ecb20517fc873281 | refs/heads/master | 2021-01-20T03:00:41.186556 | 2017-09-19T14:15:33 | 2017-09-19T14:15:33 | 89,480,767 | 0 | 1 | null | 2017-04-26T12:57:44 | 2017-04-26T12:57:44 | null | UTF-8 | Python | false | false | 3,250 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
0aa2a6a5d89aa348a47de4346965acb29112a90e | 0dcce6da7adc3df08038fba39ec663aa2d6d62ab | /ch2-library-app-and-api/api/views.py | 128114ffe645895bd9ad2f34635d9ae726974476 | [
"MIT"
] | permissive | anectto/apidjangostudy | 1e82e1dc8a7775ad18841372cfdad8d0408ad83f | c8636d54b65e3fbd74e4b3949951cc8a5d681870 | refs/heads/master | 2023-05-29T04:58:54.884817 | 2023-03-15T23:06:48 | 2023-03-15T23:06:48 | 167,802,649 | 0 | 0 | MIT | 2023-05-22T21:47:50 | 2019-01-27T11:47:31 | Python | UTF-8 | Python | false | false | 221 | py | from rest_framework import generics
from books.models import Book
from .serializers import BookSerializer
class BookAPIView(generics.ListAPIView):
queryset = Book.objects.all()
serializer_class = BookSerializer | [
"will@wsvincent.com"
] | will@wsvincent.com |
f4f635b18dc05411dfc2d9abc7e11b209f9c777c | ef998914b19f34f8f85cd784b6470147d73a93e0 | /job_task/Value_Pitch_Assingment/scrapy-selenium-splash-python/SCI/spiders/scrapy_sel.py | 95feaebe678a6566ab3909da624ae97e22af5941 | [] | no_license | dilipksahu/Web_Scraping_Using_Python | 9f586704a779fda551c5e3d15902591648663870 | e6d3031f89b1b5d4bfa0377c11e87037772c460d | refs/heads/master | 2023-01-30T14:36:00.702440 | 2020-12-17T16:10:25 | 2020-12-17T16:10:25 | 316,200,913 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.selector import Selector
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from shutil import which
class CoinSpiderSelenium(scrapy.Spider):
name = 'case_status'
allowed_domains = ['www.main.sci.gov.in']
start_urls = [
... | [
"sahud048@gmail.com"
] | sahud048@gmail.com |
ff10e9f2710cb3dc53121976e7b8d53856854d66 | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/nltk/ccg/logic.py | b89bea9d8a08b7fccd7c58dfcdcb431f27dcecea | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 1,806 | py | # Natural Language Toolkit: Combinatory Categorial Grammar
#
# Copyright (C) 2001-2019 NLTK Project
# Author: Tanin Na Nakorn (@tanin)
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
Helper functions for CCG semantics computation
"""
from nltk.sem.logic import *
def compute_type_raised_seman... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
c128b869ed0e8a8ddf5844d2ad95701ad963f881 | 8090fe014aad86878636a6d8a1ccc59a81d5d6d0 | /EPROM_Emulator/directory_node.py | 7ecec3164461e4eaf8db92ae08b089e586c381d8 | [
"MIT"
] | permissive | hubs2545/Adafruit_Learning_System_Guides | ad5593027a9403f48c3b9fc820ba73e7ea2bd5af | 1f743401b2dc18724d867a31aaf49273abd5ec0d | refs/heads/master | 2020-03-18T17:11:40.107775 | 2018-05-25T20:14:02 | 2018-05-25T20:14:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,330 | py | """
The MIT License (MIT)
Copyright (c) 2018 Dave Astels
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | [
"dastels@daveastels.com"
] | dastels@daveastels.com |
7ec35b7afd7de673969f2d0e09a32e4e2ed7e5be | ceead28beb1ea6cb56a2bb4472bc1d2396b39e6f | /gen_basis_helpers/lammps_interface/unit_tests/utests_misc_objs.py | 3b444bb7d9e73c210ba707c582f3bce01cb96999 | [] | no_license | RFogarty1/plato_gen_basis_helpers | 9df975d4198bff7bef80316527a8086b6819d8ab | 8469a51c1580b923ca35a56811e92c065b424d68 | refs/heads/master | 2022-06-02T11:01:37.759276 | 2022-05-11T12:57:40 | 2022-05-11T12:57:40 | 192,934,403 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,448 | py |
import collections
import unittest
import unittest.mock as mock
import gen_basis_helpers.lammps_interface.misc_objs as tCode
class TestNVTEnsemble(unittest.TestCase):
def setUp(self):
self.startTemp = 300
self.finalTemp = 500
self.dampTime = 200
self.thermostat = "Nose-Hoover"
self.numbFmt = "{:.1f}"
s... | [
"richard.m.fogarty@gmail.com"
] | richard.m.fogarty@gmail.com |
6aab3ee55ffd45abd7f2608eec839c1371b7d460 | a702fb476539272b78328f64a3a49c1012ac3ed4 | /django_slack/utils.py | ee02e313e45081ff2fab63a801ba9d3356d3ca78 | [
"BSD-3-Clause"
] | permissive | lamby/django-slack | 7f8dea40e5b3cad93f2e207b2815327993743774 | 5b92410fadc1a91b9415c0991f0ff2547cd633c7 | refs/heads/master | 2023-03-10T23:54:17.789584 | 2023-03-02T08:07:43 | 2023-03-02T08:07:43 | 27,838,503 | 250 | 88 | BSD-3-Clause | 2023-03-01T15:08:41 | 2014-12-10T20:34:18 | Python | UTF-8 | Python | false | false | 1,626 | py | import json
from django.utils.module_loading import import_string
from .exceptions import LABEL_TO_EXCEPTION, SlackException
from .app_settings import app_settings
class Backend(object):
def send(self, url, message_data):
raise NotImplementedError()
def validate(self, content_type, content, message... | [
"chris@chris-lamb.co.uk"
] | chris@chris-lamb.co.uk |
4b921124dd541cdc0e677d64df53898e563848b5 | 00fe1823bbadc9300e4fec42ca1d12dfbd4bcde9 | /Dictionary/11.py | d7986a4e30747730ee497810d2d9c9568de2029b | [] | no_license | monteua/Python | 6b36eb01959f34ccaa2bb9044e2e660383ed7695 | 64b6154d9f59e1e2dbe033e5b9f246734b7d4064 | refs/heads/master | 2020-07-05T07:29:51.250343 | 2018-02-09T11:09:51 | 2018-02-09T11:09:51 | 74,122,698 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | '''
Write a Python program to multiply all the items in a dictionary.
'''
dict1 = {1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49}
print ("Old dictionary:", dict1)
for key, value in dict1.items():
dict1[key] = value * 10
print ("New dictionary:", dict1) | [
"arximed.monte@gmail.com"
] | arximed.monte@gmail.com |
ce50ec568accdb678d6f38382a3e15cb9984e4ee | fc678a0a5ede80f593a29ea8f43911236ed1b862 | /380-InsertDeleteGetRandomO(1).py | 7f654b9e925fa8143a6b015241c31f51b8b8f50a | [] | no_license | dq-code/leetcode | 4be0b1b154f8467aa0c07e08b5e0b6bd93863e62 | 14dcf9029486283b5e4685d95ebfe9979ade03c3 | refs/heads/master | 2020-12-13T15:57:30.171516 | 2017-11-07T17:43:19 | 2017-11-07T17:43:19 | 35,846,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | import random
class RandomizedSet(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.map = dict()
self.size = 0
def insert(self, val):
"""
Inserts a value to the set. Returns true if the set did not already contain the specifi... | [
"dengqianwork@gmail.com"
] | dengqianwork@gmail.com |
766be0bacab93658e605892e12eb75d5ac244ee7 | 0c656371d4d38b435afb7e870c719fe8bed63764 | /levels/migrations/0003_space_variety.py | 1efda5ef876ba0f4c06e864425969a5e529e9b6e | [] | no_license | enias-oliveira/parking-lot | cfbe5ca91dcb949e60f04cd26137260f5a9dba36 | a54f5ca7b7d78bfc1a9b3c389729da14899d4048 | refs/heads/master | 2023-05-07T08:48:59.288672 | 2021-05-18T19:52:46 | 2021-05-18T19:52:46 | 369,363,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # Generated by Django 3.2.2 on 2021-05-13 21:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('levels', '0002_rename_motorcylce_spaces_level_motorcycle_spaces'),
]
operations = [
migrations.AddField(
model_name='space',
... | [
"eniasoliveira27@gmail.com"
] | eniasoliveira27@gmail.com |
424ca5b9877e60a4512eeca85195255714fa43eb | bc6b561958649c391c159d4dd3363c60eeabc7e4 | /mayan/apps/documents/migrations/0051_documentpage_enabled.py | 5835be769bcd26e022c28f01b95c5af6790dcfc5 | [
"Apache-2.0"
] | permissive | chrisranjana/Mayan-EDMS | 37deb105cda268768fea502491ae875ff905e0e9 | 34b414ce49a2eb156e27dc1a2915e52121c9d1b7 | refs/heads/master | 2020-12-22T13:50:41.263625 | 2020-01-28T18:45:24 | 2020-01-28T18:45:24 | 236,804,825 | 0 | 1 | NOASSERTION | 2020-01-28T18:12:53 | 2020-01-28T18:12:52 | null | UTF-8 | Python | false | false | 411 | py | from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('documents', '0050_auto_20190725_0451'),
]
operations = [
migrations.AddField(
model_name='documentpage',
name='enabled',
... | [
"roberto.rosario@mayan-edms.com"
] | roberto.rosario@mayan-edms.com |
277ea298bd69c7999327b07b0015aa1e11d93b0e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03402/s642521958.py | 7fcbd198121b2c295ef6f8a6e34080150121ad63 | [] | 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 | 372 | py | a,b = map(int, input().split())
ans = [['.' for i in range(50)]+['#' for i in range(50)]for j in range(100)]
x,y = 0,51
while a>1:
ans[x][y] = '.'
y+=2
if y>99:
x+=2
y=51
a-=1
x,y = 0,0
while b>1:
ans[x][y] = '#'
y+=2
if y>48:
x+=2
y=0
b-=1
print(100,10... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
840e0ebac008e76101216598b6ca7a9eb40a58eb | 76f59c245744e468577a293a0b9b078f064acf07 | /287.find-the-duplicate-number.py | 0d410826d8b60f50737d2b511468b0a6a9a88f79 | [] | no_license | satoshun-algorithm-example/leetcode | c3774f07e653cf58640a6e7239705e58c5abde82 | 16b39e903755dea86f9a4f16df187bb8bbf835c5 | refs/heads/master | 2020-07-01T10:24:05.343283 | 2020-01-13T03:27:27 | 2020-01-13T03:27:27 | 201,144,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | #
# @lc app=leetcode id=287 lang=python3
#
# [287] Find the Duplicate Number
#
from typing import List
class Solution:
def findDuplicate(self, nums: List[int]) -> int:
low = 0
high = len(nums) - 1
mid = (high + low) // 2
while high - low > 1:
count = 0
for n... | [
"shun.sato1@gmail.com"
] | shun.sato1@gmail.com |
05cd52ca349b42d73c8bb6552629c6c5a911bb15 | 20044db9ab2c773cc80caa4a5a1175ee8148269d | /test/test_rma_nb.py | 3498e98c2a687e11e0ac02e8076670280d7038cf | [] | no_license | senganal/mpi4py | a4e5dbf2d7e6cf9b6eb783f1e5f1c523326d667f | 28a2e95506844a32efb6b14238ca60173fe7c5a2 | refs/heads/master | 2021-01-13T08:02:43.439643 | 2017-06-16T15:03:44 | 2017-06-16T15:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,219 | py | from mpi4py import MPI
import mpiunittest as unittest
import arrayimpl
def mkzeros(n):
import sys
if not hasattr(sys, 'pypy_version_info'):
return bytearray(n)
return b'\0' * n
def memzero(m):
try:
m[:] = 0
except IndexError: # cffi buffer
m[0:len(m)] = b'\0'*len(m)
class ... | [
"dalcinl@gmail.com"
] | dalcinl@gmail.com |
df01f0fb63ebfc8068c07b21de2c887bd683c017 | d697c1d45e96bd440be9c17ab14243a5882b1f52 | /qianfeng/常用模块/urllib/4-goujianheader.py | 3b39a5b80031109ac0fc8fb0b27c5a333fcabcab | [] | no_license | ithjl521/python | 9eeda2e60dda97ee36e8764c06400eb12818689f | f4fe50799501c483cb64445fd05ee0f30f56576c | refs/heads/master | 2020-07-12T23:10:53.608276 | 2019-11-08T08:59:35 | 2019-11-08T08:59:35 | 204,931,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import urllib.request
import urllib.parse
url = 'http://www.baidu.com'
# response = urllib.request.urlopen(url)
# print(response.read().decode())
# 自己伪装头部
headers = {
"User-Agnet":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36"
}
# 构建请求对象
requ... | [
"it_hjl@163.com"
] | it_hjl@163.com |
c2e5409388839109b35e896d83768e706bc1fbb0 | 84c36e9067476a730d88f5ec799deabd5a46a44d | /XXXXXXXXX/PyQt5-Mini-Projects-master/TextBook/Checkboxes/mainUi.py | 5d2a7f141613b3abcba677e9b3e6e424e146addf | [] | no_license | AGou-ops/myPyQT5-StudyNote | 8bbce76b778a55c31773313d137682c77d246aad | 7e5eb426b6f30c301d040f6bc08f8a3c41d4a232 | refs/heads/master | 2022-11-06T00:05:25.603798 | 2020-06-20T01:59:45 | 2020-06-20T01:59:45 | 261,099,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,545 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectN... | [
"suofeiyaxx@gmail.com"
] | suofeiyaxx@gmail.com |
29919d9fb02730fee196407970876918996c26db | 5c94e032b2d43ac347f6383d0a8f0c03ec3a0485 | /MiniLab_mkII/__init__.py | 92e7d550c23bd2cf4b051b5bcc8d23df5cbf1906 | [] | no_license | Elton47/Ableton-MRS-10.1.13 | 997f99a51157bd2a2bd1d2dc303e76b45b1eb93d | 54bb64ba5e6be52dd6b9f87678ee3462cc224c8a | refs/heads/master | 2022-07-04T01:35:27.447979 | 2020-05-14T19:02:09 | 2020-05-14T19:02:09 | 263,990,585 | 0 | 0 | null | 2020-05-14T18:12:04 | 2020-05-14T18:12:03 | null | UTF-8 | Python | false | false | 916 | py | # uncompyle6 version 3.6.7
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.17 (default, Dec 23 2019, 21:25:33)
# [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.16)]
# Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/MiniLab_mkI... | [
"ahmed.emerah@icloud.com"
] | ahmed.emerah@icloud.com |
e488b3d086433aa8834313e177c946dd9b0641b3 | da2d53e8021b539db006fa31f02d1c2ae46bed3b | /March Long Challenge 2021/8. Consecutive Adding.py | e2e92af1f63e5d65d0a481da2b09867f3e03e022 | [] | no_license | srajsonu/CodeChef | 0723ee4975808e2f4d101d2034771d868ae3b7f7 | a39cd5886a5f108dcd46f70922d5637dd29849ce | refs/heads/main | 2023-04-22T08:33:06.376698 | 2021-05-16T05:48:17 | 2021-05-16T05:48:17 | 327,030,437 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,397 | py | from collections import deque
class Solution:
def isValid(self, A, i, j):
if i < 0 or i >= len(A) or j < 0 or j >= len(A[0]):
return False
return True
def dfs(self, A, B, i, j, vis):
vis.add(i, j)
row = [-1, 0, 1, 0]
col = [0, -1, 0, 1]
for r, c i... | [
"srajsonu02@gmail.com"
] | srajsonu02@gmail.com |
10cbdbc9540fe4bef60a125001d0fa4cbad72202 | 86393bd0d16c69363aa1afb4c4841fff6314493c | /examples/models/azure_aks_deep_mnist/DeepMnist.py | 0e45b33d8653c9f0dd43b7961eecc19e3f48cda6 | [
"Apache-2.0"
] | permissive | SeldonIO/seldon-core | 0179fc490c439dbc04f2b8e6157f39291cb11aac | 6652d080ea10cfca082be7090d12b9e776d96d7a | refs/heads/master | 2023-08-19T08:32:10.714354 | 2023-08-15T12:55:57 | 2023-08-15T12:55:57 | 114,898,943 | 3,947 | 885 | Apache-2.0 | 2023-09-13T11:29:37 | 2017-12-20T14:51:54 | HTML | UTF-8 | Python | false | false | 641 | py | import tensorflow as tf
import numpy as np
class DeepMnist(object):
def __init__(self):
self.class_names = ["class:{}".format(str(i)) for i in range(10)]
self.sess = tf.Session()
saver = tf.train.import_meta_graph("model/deep_mnist_model.meta")
saver.restore(self.sess,tf.train.lates... | [
"axsauze@gmail.com"
] | axsauze@gmail.com |
26327b7c71992dbaeac22e71ebb678a503d4dd13 | acff427a36d6340486ff747ae9e52f05a4b027f2 | /main/desktop/font/amiri-fonts/actions.py | 8bd7964bbed99a2bbd3ba4b3361b254a7b92e377 | [] | no_license | jeremie1112/pisilinux | 8f5a03212de0c1b2453132dd879d8c1556bb4ff7 | d0643b537d78208174a4eeb5effeb9cb63c2ef4f | refs/heads/master | 2020-03-31T10:12:21.253540 | 2018-10-08T18:53:50 | 2018-10-08T18:53:50 | 152,126,584 | 2 | 1 | null | 2018-10-08T18:24:17 | 2018-10-08T18:24:17 | null | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pisitools
def install():
pisitools.insinto("/usr/share/fonts/amiri", "Amiri*.ttf")
pisitools.dodoc("OFL.txt", "README-Arabic"... | [
"erkanisik@yahoo.com"
] | erkanisik@yahoo.com |
39b66b351172d94092faf826e4ea94d4c0bf074a | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/R/ronanmchugh/get_loc_relator_codes.py | 4c12ef47be97a8541377ce37e91bef4939da90fa | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | import scraperwiki
import lxml.html
# Blank Python
html = scraperwiki.scrape("http://www.loc.gov/marc/relators/relaterm.html")
root = lxml.html.fromstring(html)
authorizedList = root.find_class("authorized")
codeList = root.find_class('relator-code')
codeDict = dict()
for i in range(len(authorizedList)):
codeDi... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
eef7f6927ab37c17b81eb7c3eadc5d6378468186 | b1bf615bfa1ee2065e3adfe90310814c3b27c61d | /2020-12-24/maximum-size-subarray-sum-equals-k.py | 0a1d2dff638d1ae034e5195d35def2cc9ce245b9 | [] | no_license | Huajiecheng/leetcode | 73b09a88e61ea3b16ca3bf440fadd1470652ccf2 | 4becf814a2a06611ee909ec700380ab83ac8ab99 | refs/heads/main | 2023-03-19T21:54:20.952909 | 2021-03-06T03:34:52 | 2021-03-06T03:34:52 | 320,959,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | class Solution:
def maxSubArrayLen(self, nums: List[int], k: int) -> int:
pref = {0:-1}
result = 0
temp = 0
for i in range(len(nums)):
temp = temp + nums[i]
if (temp - k) in pref:
if result < (i - pref[temp - k]):
r... | [
"chenghuajie1998@gmail.com"
] | chenghuajie1998@gmail.com |
8a4135a1f95afd0a5df5a1771cda5e752d1d4c71 | bec68f492fbc6d08e16d1cfd3fb115b5e3348271 | /apps/core/utils.py | b5d48ef009d264528fe414a4609e1fc05c1a2516 | [
"Apache-2.0"
] | permissive | vitorh45/avaliacao | c6c88c31ed5a7d9ec7ca3d66c80735a0ec0a9774 | 0ea5405c559b657e1d8cd11d51455295993e1f99 | refs/heads/master | 2021-01-25T05:22:04.421851 | 2015-07-24T19:07:02 | 2015-07-24T19:07:02 | 39,533,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | __author__ = 'vitor'
from django.conf import settings
from django.core.mail import send_mail
from collections import defaultdict
import string
def enviar_email(obj):
email_assunto = settings.EMAIL_SUBJECT
habilidades = get_usuario_habilidades(obj)
if habilidades:
for habilidade in h... | [
"vitorh45@gmail.com"
] | vitorh45@gmail.com |
a09d4120f937f3d55f8f5d3b7dab9cc02428ff45 | 4b0f97f809d7126e9fb846c3182d978f7f9cf975 | /web_dynamic/2-hbnb.py | cabcee7a77eec28f2055f632e0bd769a6e9401c3 | [
"LicenseRef-scancode-public-domain"
] | permissive | sebastianchc/AirBnB_clone_v4 | 9778d09cfa96a722e94da4c3dd8037aeb5c9463b | ebc862eece3f3ee809e8ecf7c4f7057b5f819aed | refs/heads/master | 2022-08-14T17:54:31.326916 | 2020-05-22T18:21:42 | 2020-05-22T18:21:42 | 265,034,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | #!/usr/bin/python3
""" Starts a Flash Web Application """
from models import storage
from models.state import State
from models.city import City
from models.amenity import Amenity
from models.place import Place
from os import environ
from flask import Flask, render_template
from uuid import uuid4
app = Flask(__name__)... | [
"nicolico99@hotmail.com"
] | nicolico99@hotmail.com |
4b44111f4094084a912b33a69846ba0791ca3bf2 | 07d707328cd2a641a68bd508f3f4d2ca8fb7cdef | /games/connectx/util/base64_file.py | 63b97e575d5a79d741c82ef92587245540a215ee | [] | no_license | JamesMcGuigan/ai-games | 8ba8af30f58519081bef973d428694f1a40dfea2 | eac436d23e03624c2245838138e9608cb13d2f1f | refs/heads/master | 2023-07-17T11:02:02.062853 | 2021-02-01T23:03:45 | 2021-02-01T23:03:45 | 271,096,829 | 19 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,017 | py | import base64
import gzip
import os
import re
import time
from typing import Any
from typing import Union
import dill
import humanize
# _base64_file__test_base64_static_import = """
# H4sIAPx9LF8C/2tgri1k0IjgYGBgKCxNLS7JzM8rZIwtZNLwZvBm8mYEkjAI4jFB2KkRbED1iXnF
# 5alFhczeWqV6AEGfwmBHAAAA
# """
def base64_file_varna... | [
"james.mcguigan.github@gmail.com"
] | james.mcguigan.github@gmail.com |
242dd82bd73845a1ef827e319a1c6f19081e8c3e | 4a43dc3e8465c66dcce55027586f0b1fe1e74c99 | /service/generated_flatbuffers/tflite/LessEqualOptions.py | cbc0cce9823e58843efe49a3acf6d471818a5c11 | [
"Apache-2.0"
] | permissive | stewartmiles/falken | e1613d0d83edfd4485c1b78f54734e9b33b51fa5 | 26ab377a6853463b2efce40970e54d44b91e79ca | refs/heads/main | 2023-06-05T12:01:13.099531 | 2021-06-17T22:22:16 | 2021-06-17T22:22:16 | 377,912,626 | 1 | 0 | Apache-2.0 | 2021-06-17T17:34:21 | 2021-06-17T17:34:20 | null | UTF-8 | Python | false | false | 2,218 | py | # Copyright 2021 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, ... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d6961a6e25812611eee3434fa89c418a921d2b98 | 88ba19b3303c112a424720106a7f7fde615757b5 | /02-intermediate_python/3-logic,_control_flow_and_filtering/driving_right.py | bb18e3df827cb3ebe9735bc5cdc9b4b32fe54d56 | [] | no_license | mitchisrael88/Data_Camp | 4100f5904c62055f619281a424a580b5b2b0cbc1 | 14356e221f614424a332bbc46459917bb6f99d8a | refs/heads/master | 2022-10-22T18:35:39.163613 | 2020-06-16T23:37:41 | 2020-06-16T23:37:41 | 263,859,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | # Import cars data
import pandas as pd
cars = pd.read_csv('cars.csv', index_col = 0)
# Extract drives_right column as Series: dr
dr = cars["drives_right"]
# Use dr to subset cars: sel
sel = cars[dr]
# Print sel
print(sel)
| [
"noreply@github.com"
] | mitchisrael88.noreply@github.com |
f100f3909357cdaf2a274f0fea14ca8c993114f0 | f620403443b2c0affaed53505c002f35dc68020c | /DCTM/GetClusterNumber.py | 9de8d61d5fc44f32a00a8dfec12c3d9bfaf62ec5 | [] | no_license | ZhuJiahui/CTMTS | c552b3026deb47879f9aa5bde4b002cf6283858d | 9f8981f6e61900a68a38ae0392e01771beee9651 | refs/heads/master | 2021-01-12T10:18:27.579697 | 2016-12-14T02:23:29 | 2016-12-14T02:23:29 | 76,416,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | # -*- coding: utf-8 -*-
'''
Created on 2014年7月27日
@author: ZhuJiahui506
'''
import os
import numpy as np
import time
def get_cluster_number(X):
'''
估计聚类个数
:param X: 数据之间的相似度矩阵 维度小于1000
'''
D = np.zeros((len(X), len(X)))
for i in range(len(X)):
D[i, i] = 1.0 / np.sqrt(np.sum(X[i])... | [
"zhujiahui@outlook.com"
] | zhujiahui@outlook.com |
dfbdd01c48a73c2922ac083707b410cead8ef229 | 3bfa43cd86d1fb3780f594c181debc65708af2b8 | /algorithms/graph/dfs.py | f74044082f578bb19ff5cc62766b874fe92a2fb0 | [] | no_license | ninjaboynaru/my-python-demo | 2fdb6e75c88e07519d91ee8b0e650fed4a2f9a1d | d679a06a72e6dc18aed95c7e79e25de87e9c18c2 | refs/heads/master | 2022-11-06T14:05:14.848259 | 2020-06-21T20:10:05 | 2020-06-21T20:10:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | from graph import digraph_from_file
def dfs(g, order="post"):
marked = set()
def dfs_preorder(node):
marked.add(node)
print(node)
for child in g[node]:
if child not in marked:
dfs_preorder(child)
def dfs_postorder(node):
marked.add(node)
... | [
"wangxin19930411@163.com"
] | wangxin19930411@163.com |
d3a316737b9c8b52b38e553c6ea66c0df60eb492 | 2ef35e0cd06653435fea8ab27d0b7db475bdb6d9 | /serial_publish_local.py | 18bcfc79c27bc3bc8e8f80cf7ba7925034526239 | [] | no_license | navalkishoreb/Project_Mqtt | a9d438a2a1c79f662cb6b751f9c2c593989c58f2 | 989a491505a972a54eaf1599f95f6de9562b7e4c | refs/heads/master | 2021-01-23T16:35:38.765479 | 2016-09-16T10:28:52 | 2016-09-16T10:28:52 | 68,371,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | #!/usr/bin/python
import time
import serial
import sys
import paho.mqtt.client as mqtt
"""usb = serial.Serial(
port='/dev/ttyACM0',\
baudrate=115200,\
parity=serial.PARITY_NONE,\
stopbits=serial.STOPBITS_ONE,\
bytesize=serial.EIGHTBITS,\
timeout=0)
"""
ser = serial.Serial(
port='/dev/ttyAM... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
970362856f0861f077e65c4cb8ec252123e9f29a | aa7ba8ca76bc012d5d7418b0961208be72af71d0 | /glasses/models/classification/resnetxt/__init__.py | 3ff55e57f37fe798fc4d1bd9252deaa651481a18 | [
"MIT"
] | permissive | wiesmanyaroo/glasses | 3f8bc67021ad1e7abf84965847beebc6145b2fbb | 2e4bb979e3637d77f9dbec79462dc92f56d3bc27 | refs/heads/master | 2023-02-09T22:59:46.463233 | 2020-12-26T16:04:24 | 2020-12-26T16:04:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,607 | py | from __future__ import annotations
from torch import nn
from torch import Tensor
from glasses.nn.blocks.residuals import ResidualAdd
from glasses.nn.blocks import Conv2dPad
from collections import OrderedDict
from typing import List
from functools import partial
from ..resnet import ResNet, ResNetBottleneckBlock
from g... | [
"zuppif@usi.ch"
] | zuppif@usi.ch |
91be8127886dde63063fbf3920ba80ccc6c6a210 | c4b636a2fffbf8ef3096e4de9de61b30ea3df72a | /hackerrank/zeros_and_ones.py | f921a5eca2e28ee22afd295077ac7f7b55287364 | [
"MIT"
] | permissive | FelixTheC/hackerrank_exercises | f63fbbc55a783ee4cecfa04302301a0fb66d45fe | 24eedbedebd122c53fd2cb6018cc3535d0d4c6a0 | refs/heads/master | 2021-01-04T22:10:47.538372 | 2020-11-01T15:57:20 | 2020-11-01T15:57:20 | 240,779,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@created: 01.12.19
@author: felix
"""
import numpy as np
if __name__ == '__main__':
shape = tuple([int(i) for i in input() if i != ' '])
dtype = np.int
print(np.zeros((shape), dtype=dtype))
print(np.ones((shape), dtype=dtype))
| [
"felixeisenmenger@gmx.net"
] | felixeisenmenger@gmx.net |
9573e87de4ee288a11c0c1bbe28099c89eed4022 | e2bf489830e55a57945b8e696f8e2d6acefeb560 | /04-系统编程-1/test/33-带有返回值的函数.py | dce5eb1489db919c3f703b6cd4598d2a3f9af0aa | [] | no_license | taizilinger123/pythonjichu | e713de06fb050943a8a1e0256ccba8dea40a411d | 5ee896e92edbac55d02aa63965d896200b8c2623 | refs/heads/master | 2023-04-01T02:00:37.557667 | 2023-03-31T05:08:40 | 2023-03-31T05:08:40 | 148,663,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
def get_wendu():
wendu = 22
print("当前的室温是:%d"%wendu)
return wendu
def get_wendu_huashi(wendu):
print("--------4-------")
wendu = wendu + 3
print("--------5-------")
print("当前的温度(华氏)是:%d"%wendu)
print("--------6-------")
pr... | [
"837337164@qq.com"
] | 837337164@qq.com |
8e7daff6d28883da7ddcc1f86aaf973d0b0bcb0a | 5e73d9b32657539a680bad7269594f32fd1940b1 | /Basic Data Structures/week4_binary_search_trees/2_is_bst/is_bst.py | 82698ce5d8a6d075f2a2f42cec6ff691028925ff | [] | no_license | harshdonga/Data_Structures_Algorithms | c9b9f721996366b903182f519dd421bfbe599d3b | f3a94910e4d50ea29c906029bd0081d37cf25652 | refs/heads/master | 2022-11-05T08:33:00.340043 | 2020-06-13T18:13:52 | 2020-06-13T18:13:52 | 262,765,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | #!/usr/bin/python3
import sys, threading, math
sys.setrecursionlimit(10**7) # max depth of recursion
threading.stack_size(2**25) # new thread will get stack of such size
def inOrder(tree):
result = []
def inOrderRec(i,result):
if tree[i][1] != -1:
inOrderRec(tree[i][1], result)
r... | [
"harshdonga99@gmail.com"
] | harshdonga99@gmail.com |
00bc4046a8127e8a550dec3729cff87516823ed7 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /F64txHnfYj4e4MpAN_22.py | 990afa3ea17171f39d83618e1ee743fb5c150d57 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py |
def schoty(frame):
sum = 0
index = 0
conversion = [1000000, 100000, 10000, 1000, 100, 10, 1]
for line in frame:
sum = sum + conversion[index] * line.find("-")
index = index + 1
return sum
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1a7495f69555d27d90cb00ae511930e9f61dffd6 | 2fd627a9cfdf5c2190fa3018055cf1b643fc55a0 | /6. Union-Intersection/6. union-and-intersection.py | 54669d150694720e7d50cdbcc5ae184bc7947777 | [] | no_license | josancamon19/show-me-data-structures | d17981443abd12252555581909ff8bd904c582ea | 5e8b8135e113aec7424ab79040afc6ff1d71f3fc | refs/heads/master | 2020-08-29T02:38:36.731375 | 2019-11-04T19:37:32 | 2019-11-04T19:37:32 | 217,897,486 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,661 | py | class Node:
def __init__(self, value):
self.value = value
self.next = None
def __repr__(self):
return str(self.value)
class LinkedList:
def __init__(self):
self.head = None
def __str__(self):
cur_head = self.head
if cur_head is None:
return... | [
"joan.santiago.cabezas@gmail.com"
] | joan.santiago.cabezas@gmail.com |
6515a2df2bf4a4bd4429023d4103b0f228db4d78 | afba8aa70edb5cdfe3b38e451330deac72e4eee1 | /aldryn_installer/__init__.py | fbaee6c565f0968a47cd72a0c07b3cc7e54e188a | [] | no_license | jqb/aldryn-installer | b148c920866c86de9399b27a9d9c5e8118c31953 | e960a9f38a85886255f84379808c7495bd3e90b8 | refs/heads/master | 2021-01-15T09:37:44.006606 | 2013-11-04T12:52:37 | 2013-11-04T12:52:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Iacopo Spalletti'
__email__ = 'i.spalletti@nephila.it'
__version__ = '0.1.1'
| [
"i.spalletti@nephila.it"
] | i.spalletti@nephila.it |
5627eb5d6cb9e3ef58e936d11ea044945069c613 | 00f3f038313e4334ebab171e0133fce63fdba0f0 | /authentication/tests.py | 03bee37ed6b69c09333697c4b4ba788a8ccbf5c0 | [] | no_license | DarishkaAMS/Dj_Projects-Author_Blog | 57a94aaa16d87bfd19dc2ab99e37c5710abcfd0e | ae634c80107e96bba8e0ef6d8e56e83a588e9e0b | refs/heads/main | 2023-01-21T06:17:34.078609 | 2020-11-29T18:06:26 | 2020-11-29T18:06:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | from django.test import TestCase
from django.urls import reverse
# Create your tests here.
from authentication.models import UserManager, User
import requests
class TestUser(TestCase):
def setUp(self):
email = "d@gmail.com"
password = "abc"
username = "HELLO"
self.user = User.objec... | [
"d.nikolaienko@yahoo.co.uk"
] | d.nikolaienko@yahoo.co.uk |
c1208a7a966e17598df2c6f7d583240b0aa57882 | ae6f2b9d4c0cfd43411eadc942292439367e8bbc | /PYTHON/Teach_Your_Kids_to_Code_program_files/ch02_turtle/Challenge1_ColorSpiral10.py | ad792179745996a9ccec72d9ecb776bfd32cc884 | [] | no_license | rao003/StartProgramming | 6e68786b55adfad94d0601e516576bcedac290dd | 341739f99bf3684a57b84c8942b85dcfc2e6bc4b | refs/heads/master | 2022-11-20T22:14:10.447618 | 2022-11-04T07:07:33 | 2022-11-04T07:07:33 | 215,080,140 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # ColorSpiral10.py
import turtle
t=turtle.Pen()
turtle.bgcolor('black')
# You can change sides between 2 and 10 for some cool shapes!
sides=10
colors=['red', 'yellow', 'blue', 'orange', 'green', 'purple',
'gray', 'white', 'pink', 'light blue']
for x in range(360):
t.pencolor(colors[x%sides])
t.forward(x... | [
"49493736+rao003@users.noreply.github.com"
] | 49493736+rao003@users.noreply.github.com |
2c1a8a260380f4fbb5f4a6d579bbb14b54ab8431 | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/recipes/swig.py | cf9658b1333900ab306a92e5b5dd4a98914a2309 | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from .base import GnuRecipe
class SwigRecipe(GnuRecipe):
def __init__(self, *args, **kwargs):
super(SwigRecipe, self).__init__(*args, **kwargs)
self.sha256 = '7cf9f447ae7ed1c51722efc45e7f1441' \
'8d15d7a1e143ac9f09a668999f4fc94d'
self.name = 'swig'
self.depend... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
9c880d5f6dd983881bf0c236a6ec98537306e6a0 | a4d98e9422993b4f2d977eeaf78fcf6bc8c86c10 | /dfvfs/compression/zlib_decompressor.py | 3269e02ffc9538aff3613266951bac81a773f71b | [
"Apache-2.0"
] | permissive | dc3-plaso/dfvfs | c3fc80c28a5054f764979e024957c724f9b774e4 | 06b3625426dbf1cc2ac5a8ce09303d0822625937 | refs/heads/master | 2020-04-04T21:15:42.815618 | 2017-07-15T05:27:58 | 2017-07-15T05:27:58 | 39,035,966 | 0 | 0 | null | 2015-07-13T20:36:59 | 2015-07-13T20:36:59 | null | UTF-8 | Python | false | false | 2,038 | py | # -*- coding: utf-8 -*-
"""The zlib and DEFLATE decompressor object implementations."""
import zlib
from dfvfs.compression import decompressor
from dfvfs.compression import manager
from dfvfs.lib import definitions
from dfvfs.lib import errors
class ZlibDecompressor(decompressor.Decompressor):
"""Class that imple... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
48a50b6f83025bcf4428123353dd477bdc0e98c6 | 3bcc247a2bc1e0720f0344c96f17aa50d4bcdf2d | /第四阶段/爬虫/day03pm/gouliang.py | 64e4b1d4ff3399235f1cf55b272bbbf4f6d7ae33 | [] | no_license | qianpeng-shen/Study_notes | 6f77f21a53266476c3c81c9cf4762b2efbf821fa | 28fb9a1434899efc2d817ae47e94c31e40723d9c | refs/heads/master | 2021-08-16T19:12:57.926127 | 2021-07-06T03:22:05 | 2021-07-06T03:22:05 | 181,856,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | import requests
import re
import json
from multiprocessing import Pool
from multiprocessing import Manager
import time
import functools #函数的包装器
def get_one_page(url):
ua_header = {"User-Agent": "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SE 2.X MetaSr 1.0; SE 2.X MetaSr 1.0; .NET CLR 2.0.5072... | [
"shenqianpeng@chengfayun.com"
] | shenqianpeng@chengfayun.com |
040e7ecc3fdeb537a0cd06265eed1edd420344b0 | 85bad96f0c53edcda738f42b4afe742eed9865c3 | /TD/cliffwalking.py | 571983e0c03b35368ba3be22b2c4ce80e503f039 | [] | no_license | shirsho-12/RL | 9fc6e0d4de18cb68a15052d1aec28417e9215862 | ef94bffc80c0a5f83543cba170415d85c27ca0a9 | refs/heads/main | 2023-06-24T13:26:56.449898 | 2021-07-13T08:44:20 | 2021-07-13T08:44:20 | 368,197,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # If imports do not work, add a TD. to each of the files
import gym
from td_algos import q_learning
from helper import gen_eps_greedy_policy, plot_rate
env = gym.make("CliffWalking-v0")
num_states, num_actions = env.observation_space.n, env.action_space.n
print(num_states, num_actions)
gamma = 1
num_episodes = 500
al... | [
"shirshajit@gmail.com"
] | shirshajit@gmail.com |
a44d0e7c13bbd2a1c8970b880c482d88ea0b1c02 | 08d54785e1266b46912e64a51054fbef80d41629 | /Basic Python Programs/34.GetFileProperties.py | 0bc4d4ff2f529437d2abcc6b2072d21d2827b221 | [] | no_license | Wolvarun9295/BasicPython | 95231fa3b47a28129de69c56c3f7b02204487005 | 722d36692724d1e24022405269b3efb922630c0e | refs/heads/master | 2022-11-04T12:29:54.191632 | 2020-06-15T17:31:45 | 2020-06-15T17:31:45 | 272,414,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | # Imported path and time modules.
from os import path
import time
fileName = __file__
print(f'File: {fileName}')
print(f'Last access time: {time.ctime(path.getatime(fileName))}')
print(f'Last modified time: {time.ctime(path.getmtime(fileName))}')
print(f'Last changed time: {time.ctime(path.getctime(fileName))}')
print... | [
"varun.nagrare@gmail.com"
] | varun.nagrare@gmail.com |
e8ddc926d4457abb6650f3823d8b8df1fc9e24dd | 9a3803ba18a88a6a172ac3fb11411ee47adc2108 | /Object.py | 0db2728e02ac085aca36818b3f9257c59e4510da | [] | no_license | jeffreyzhang2012/Village_Simulator_Game | 6efe9197aef982da6008295e5a2b2acab51ebbdc | 9bffabfd8a84980612eab5d4dd18d13d018bc5ad | refs/heads/master | 2023-03-05T04:31:54.883003 | 2021-02-19T06:45:04 | 2021-02-19T06:45:04 | 340,277,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | class JK(object):
def __init__(self,x):
self.x = x
def fuck(self,d):
return d.y * 3
def calc(self,d):
return JK.fuck(self,d) * self.x | [
"--global"
] | --global |
93ba818fa2d05a5cd078637f250e3a78c6085fc1 | 097b2c588b4695f3ab96c85fd4cda1ce271a7cda | /models/ssd/layers/modules/multibox_loss.py | 591df6efed02fd540a39af14223c826fe2ec9238 | [
"Apache-2.0"
] | permissive | qinzhengmei/silco | 628422a05841287c2a5159772121e3e2b5c9b72d | 18872c4c31a79aa1bac489096fd8f5c99b4380cf | refs/heads/master | 2022-12-15T16:37:33.367354 | 2020-08-24T21:49:23 | 2020-08-24T21:49:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,225 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from data import v
from ..box_utils import match, log_sum_exp
class MultiBoxLoss(nn.Module):
"""SSD Weighted Loss Function
Compute Targets:
1) Produce Confidence Target Indices by matching ground tr... | [
"taohu620@gmail.com"
] | taohu620@gmail.com |
c622453419c1ddf1477163422f79dfcf2d99cf19 | 18b977dccd70e9e5a1b553b28ab0413fb3f54f4b | /SoftUni/Python Developmen/Python-Advanced/Multidimensional-Lists/Exercises/example.py | 963a83307987d5f35cf913dde2136caaa9b7d16e | [] | no_license | stevalang/Coding-Lessons | 7203e3a18b20e33e8d596e3dfb58d26c50b74530 | 2d0060c2268ad966efdcae4e6e994ac15e57243a | refs/heads/master | 2023-06-05T08:28:33.290530 | 2021-06-16T19:37:29 | 2021-06-16T19:37:29 | 284,852,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | rows, cols = tuple(map(int, input().split()))
matrix = []
player_position = []
for i in range(rows):
row = [x for x in list(input())]
matrix.append(row)
for c in row:
if 'P' == c:
player_position = [i, row.index('P')]
commands = list(input())
for command in commands:
next_player_... | [
"rbeecommerce@gmail.com"
] | rbeecommerce@gmail.com |
316f6adc9ec6ba64bd822c35e138ec8b81898db6 | d79c152d072edd6631e22f886c8beaafe45aab04 | /nicolock/products/migrations/0003_auto_20161207_0642.py | 843f5b50c6fa3ce6ec3d0db7e5dfa6cc8f2289ee | [] | no_license | kabroncelli/Nicolock | 764364de8aa146721b2678c14be808a452d7a363 | 4c4343a9117b7eba8cf1daf7241de549b9a1be3b | refs/heads/master | 2020-03-11T11:02:43.074373 | 2018-04-18T17:38:33 | 2018-04-18T17:38:33 | 129,959,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-07 06:42
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0002_initialize_categories'),
]
operations = [
migrations.AlterModelOpt... | [
"brennen@lightningkite.com"
] | brennen@lightningkite.com |
fb38d5f52a8030341505bcd5f75290e71fc7c05e | 2e935ca936976d2d2bd4e785e2f3f29c63771542 | /ExPy10301.py | 8da6aad45cc4ef8ef45343a9670f7847b3834cb8 | [] | no_license | zoro6908/PY_acamedy | 4a370e866fef19f6d2e7697eb809352b6ac703f5 | 460d26639f7bd8cf2486950dc70feae6a2959ca0 | refs/heads/master | 2023-04-26T18:10:44.691326 | 2021-05-25T00:11:02 | 2021-05-25T00:11:02 | 298,425,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # 파이썬 기초부터 활용까지 (2020.09)
# [3과] 연산문
# 1. 수치연산
print(398**2) #지수
a = 55.6; b = 7
c = a + b # 실수와 정수의 덧셈
print(c, type(c)) # 결과는 실수
s = int(c) # int() 함수 사용
print(s)
k = s - 900
print(k)
k2 = abs(k) # 절대치 함수
print(k2)
p = (10, 20, 90, 70, 8) # 튜플 자료형
print(p)
print(max(p)) ... | [
"zoro6908@naver.com"
] | zoro6908@naver.com |
ef8f956403d0202e9fb20059973bea3abe472964 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/beta/education_beta/azext_education_beta/vendored_sdks/education/aio/operations/_education_schools_users_operations.py | e8c69dfc0b8242740273af02b2c355cc271fe2cb | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 4,183 | 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 ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
b807d74a03dd5f1381c42a92a7cb6c9e30bac800 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03370/s840732194.py | 0eb0e9c767f212efcb5084f1fc3f3b2db6f627d9 | [] | 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 | 252 | py | [N,X] = list(map(int,input().split()))
m = []
for i in range(N):
m.append(int(input()))
# print('m:',m)
amari = X - sum(m)
# print('amari:',amari)
i=0
while True:
if amari<min(m)*i:
ans = len(m) + i-1
break
i+=1
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
30c14a07c174d1205e1cfe1466811eedb9f4a091 | e7df6d41d7e04dc1c4f4ed169bf530a8a89ff17c | /Bindings/Python/tests/test_simulation_utilities.py | cfc1e5913bbeb73b03ab8a056978b8cf24909949 | [
"Apache-2.0"
] | permissive | opensim-org/opensim-core | 2ba11c815df3072166644af2f34770162d8fc467 | aeaaf93b052d598247dd7d7922fdf8f2f2f4c0bb | refs/heads/main | 2023-09-04T05:50:54.783630 | 2023-09-01T22:44:04 | 2023-09-01T22:44:04 | 20,775,600 | 701 | 328 | Apache-2.0 | 2023-09-14T17:45:19 | 2014-06-12T16:57:56 | C++ | UTF-8 | Python | false | false | 598 | py |
import os
import unittest
import opensim as osim
test_dir = os.path.join(os.path.dirname(os.path.abspath(osim.__file__)),
'tests')
class TestSimulationUtilities(unittest.TestCase):
def test_update_kinematics(self):
model = osim.Model(
os.path.join(test_dir, 'gait1... | [
"cld72@cornell.edu"
] | cld72@cornell.edu |
a0ac77d6f01d6b6ed6363565b4d311164ca4e6a6 | 5d178ff8ae636123147b15fa530dba3aff0ff786 | /fsb/tariff/urls.py | 0154607fd51a330b569b2943ff03d0f91b991d3f | [] | no_license | grengojbo/fsb | 70d054388e75e2e3d62aa4dbf80679ccd7213c50 | 75a222dda323edb5a5407ffc89071a48ed0628aa | refs/heads/master | 2021-01-10T20:29:22.965848 | 2011-04-07T16:27:38 | 2011-04-07T16:27:38 | 561,853 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | # -*- mode: python; coding: utf-8; -*-
from django.conf.urls.defaults import *
from django.conf import settings
#from django.utils.translation import ugettext_lazy as _
__author__ = '$Author:$'
__revision__ = '$Revision:$'
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.... | [
"oleg.dolya@gmail.com"
] | oleg.dolya@gmail.com |
aeed7aa47de82741ebdc77756df68ce3e9a6f0d3 | 8993f017079fd4c8329b37ddb663b28b54be1586 | /LatitudeProfile.py | f013f2db4c433bcb565eabb110ec36f87452c5e6 | [
"MIT"
] | permissive | nithinsivadas/IRI2016 | 74f7ec3bb39b4b55c6368085dd1fcbfee8cab20c | 16f383e6666dfff2938019d49b411ec23b8f18c0 | refs/heads/master | 2020-07-15T01:13:34.167868 | 2019-08-29T19:53:59 | 2019-08-29T19:53:59 | 205,445,491 | 0 | 0 | MIT | 2019-08-30T19:33:21 | 2019-08-30T19:33:21 | null | UTF-8 | Python | false | false | 917 | py | #!/usr/bin/env python
import iri2016 as iri
from argparse import ArgumentParser
from matplotlib.pyplot import show
from pathlib import Path
import iri2016.plots as piri
def main():
p = ArgumentParser()
p.add_argument("glon", help="geodetic longitude (degrees)", type=float)
p.add_argument(
"-glat"... | [
"scivision@users.noreply.github.com"
] | scivision@users.noreply.github.com |
7c66b48eb66db52f012546f32ea940d5909ce431 | 4262dcafe190db05852c7e1cfafc687031d23367 | /src/Employee/migrations/0007_employee_emp_password.py | 6e60f91162e7e4865e7ee9cc97e6bc670c43ef68 | [] | no_license | ShunnoSaiful/JobPortal | b39930fcdb1bc30567f8a2c91d80786ab497afd5 | c8f3064b87c5d967b8f415fc5f080e167fc0c77d | refs/heads/main | 2023-01-07T02:44:33.831589 | 2020-11-11T11:47:46 | 2020-11-11T11:47:46 | 308,109,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # Generated by Django 2.2 on 2020-11-03 16:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Employee', '0006_employee_is_employee'),
]
operations = [
migrations.AddField(
model_name='employee',
name='emp_passwo... | [
"sunnosaiful@gmail.com"
] | sunnosaiful@gmail.com |
ec5b256968bdfc9555035c60dbbede31f0403251 | bdc10ba57424040129cc72ad018ff26bc8bca66a | /ConfigDefinitions/BranchAdditions/UserDefinedCollections/EScaleCollection_Embedded_2017.py | 1d12d35cc1372cf62acdb235a5cb627116ff5069 | [] | no_license | aloeliger/Jesterworks | 61e0ac38ca325fefbbd8ccedaa8eb02d8a76ebbe | 96a22bac4ce20b91aba5884eb0e5667fcea3bc9a | refs/heads/master | 2021-06-09T15:39:06.976110 | 2021-04-23T11:25:06 | 2021-04-23T11:25:06 | 157,698,363 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | import ConfigDefinitions.BranchAdditions.BranchDef as BranchDef
import ConfigDefinitions.BranchAdditions.UserDefinedBranches.EmbeddedTES as TES
import ConfigDefinitions.BranchAdditions.UserDefinedBranches.MES as MES
import ConfigDefinitions.BranchAdditions.UserDefinedBranches.LLFakeES as LLFakeES
EScaleCollection = Br... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
812bd562a8a088516188cbf8c3f613c20f3288ef | df29840e4adbc35f40d8a05d3d887359fc7a784b | /Git Result24bd/Result24bd/Result24bd/settings.py | 5b37549c35f0232f036b9cf8daca59111dcff05c | [] | no_license | mdarifulislamroni21/backupdtatahuifehi | ab796ff2b70a4614f586af29e786b085cb1ee6c1 | a26ab7373ad50cb0b563a2511a7788748002884c | refs/heads/main | 2023-08-17T04:53:50.262280 | 2021-10-06T18:10:46 | 2021-10-06T18:10:46 | 414,320,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,241 | py | from pathlib import Path
import os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
HTMLCODE_DIRS=os.path.join(BASE_DIR,'html_code')
STATIC_DIRS=os.path.join(BASE_DIR,'static')
MEDIA_DIRS=os.path.join(BASE_DIR,'media')
# Quick-start development settings... | [
"mdarifulislamroni21@gmail.com"
] | mdarifulislamroni21@gmail.com |
e001347036d4b1d0a8121284db7bbd21f629efb5 | 12a42054b156383ebbe3ccc5de4150633c66da5d | /problems/expression-add-operators/solution.py | 04767fe89317c99a372a898317a522b11ece6202 | [] | no_license | cfoust/leetcode-problems | 93c33029f74f32c64caf8294292226d199d6e272 | f5ad7866906d0a2cf2250e5972ce910bf35ce526 | refs/heads/master | 2020-03-16T23:05:45.123781 | 2018-05-11T16:41:09 | 2018-05-11T16:41:09 | 133,064,772 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | class Solution:
def addOperators(self, num, target):
"""
:type num: str
:type target: int
:rtype: List[str]
"""
"""
| [
"cfoust@sqweebloid.com"
] | cfoust@sqweebloid.com |
0fa671abe98808969076ce0fc835334e524494f5 | ed90fcbfd1112545fa742e07131159bb3a68246a | /smry/server-auth/ls/google-cloud-sdk/lib/googlecloudsdk/compute/subcommands/forwarding_rules/list.py | 420747d1e4cd001700ebe47795d47ba909b0cde5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wemanuel/smry | 2588f2a2a7b7639ebb6f60b9dc2833f1b4dee563 | b7f676ab7bd494d71dbb5bda1d6a9094dfaedc0a | refs/heads/master | 2021-01-10T21:56:55.226753 | 2015-08-01T13:37:06 | 2015-08-01T13:37:06 | 40,047,329 | 0 | 1 | Apache-2.0 | 2020-07-24T18:32:40 | 2015-08-01T13:26:17 | Python | UTF-8 | Python | false | false | 662 | py | # Copyright 2014 Google Inc. All Rights Reserved.
"""Command for listing forwarding rules."""
from googlecloudsdk.compute.lib import base_classes
class List(base_classes.GlobalRegionalLister):
"""List forwarding rules."""
@property
def global_service(self):
return self.compute.globalForwardingRules
@pro... | [
"wre@thenandchange.org"
] | wre@thenandchange.org |
37ce072cd49cfa75a020424ba47b3567ee618bf6 | 688c226e30e9d1a9ad7ddaaec75ad456d7b4981b | /other/mokuai/zidingyimodel3.py | bc149f83381545faf60dff8bcc137cc94508e8cc | [] | no_license | imklever/pay | a465e926330f5a804d3ef1deeba4353af00fd212 | 26bc73d40af33d8a47993ff37e0f0daec4d15e38 | refs/heads/master | 2021-10-08T21:36:15.398969 | 2018-12-18T02:41:05 | 2018-12-18T02:41:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | #coding:utf-8
#引入模块
#from ...... import * 语句
#作用:把一个模块中所有的内容全部导入当前命名空间
from sunck import *
#最好不要过多的使用
'''
程序内容的函数可以将模块中的同名函数覆盖
def sayGood():
print("*********")
'''
sayGood()
sayNice()
print(TT) | [
"yanghaotai@163.com"
] | yanghaotai@163.com |
9ef7aad2085be69c81499e3e2221ebfb956da801 | 09c87fe780df6d1f9eb33799ed516a0bbd7ab1e3 | /Research/wx doco/somelongthread1_main.py | cbb1357ac048bde246e5fe80e2ae4985131c26f3 | [] | no_license | abulka/pynsource | 8ad412b85dc1acaeb83d7d34af8cc033c6baba91 | 979436525c57fdaeaa832e960985e0406e123587 | refs/heads/master | 2023-04-13T12:58:02.911318 | 2023-04-11T09:56:32 | 2023-04-11T09:56:32 | 32,249,425 | 271 | 46 | null | 2022-10-10T04:36:57 | 2015-03-15T07:21:43 | Python | UTF-8 | Python | false | false | 2,698 | py | # simple front end to long running thread - so can have two frames at once
# which is what is problematic under linux and mac os x
import wx
import wx.lib.ogl as ogl
from somelongthread1 import MainFrame
class MainHost(wx.Frame):
def __init__(self, parent, id, title):
wx.Frame.__init__(self, parent, id,... | [
"abulka@gmail.com"
] | abulka@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.