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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f8e650b4108f33a5a304944caf20ee25f045cba5 | 8747375a4c6442a5bc317baad36ba41f5de4512e | /personal/migrations/0007_auto_20150226_0351.py | ca2beb584b49a1f858048462ec0f5e23cf67c068 | [] | no_license | raultr/perBackend | 40f73199cb722133d79d76b4389d4f613764560b | f22542f79f293de444e29ac7183a0ee9c5b86889 | refs/heads/master | 2022-12-06T10:17:29.400434 | 2017-02-14T03:23:13 | 2017-02-14T03:23:13 | 30,055,264 | 0 | 0 | null | 2022-11-22T00:26:36 | 2015-01-30T03:57:03 | JavaScript | UTF-8 | Python | false | false | 888 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('personal', '0006_personal_imagen'),
]
operations = [
migrations.AlterField(
model_name='personal',
n... | [
"raultr@gmail.com"
] | raultr@gmail.com |
24f91adc550d123a98239a57ae27ac6345f382ab | cd44f9f6d97e54886352353da9c45d9e6c291928 | /newspaper/admin.py | d347faa1a852e2b8fbe3b1fd52357e2b88adaebb | [] | no_license | MaksimFelchuck/Felnews | c480f045dc21d6f40e10d233a011fb05522f53f9 | a3411f10230b7cecdac4a49cb7e83c03d1c89444 | refs/heads/master | 2023-02-17T08:13:21.413801 | 2021-01-16T14:55:03 | 2021-01-16T14:55:03 | 330,102,149 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.contrib import admin
from newspaper.models import *
# Register your models here.
@admin.register(News, Image)
class PersonAdmin(admin.ModelAdmin):
pass
| [
"felchuck@yandex.ru"
] | felchuck@yandex.ru |
fa870428c18812b9d152127aa4df6cc4092bdbff | e967290f67437c0afcbb4597e9ba6020761f2a45 | /github.com/ceph/ceph-deploy/ceph_deploy/util/wrappers.py | 4bff77b5657b6ea0ac484359fb93d3a804362451 | [
"MIT"
] | permissive | mp-rheinrich/mp-fs-sandbox | 77bf40a27a0d6c2b38cbc7562023a92fca8751c0 | 35c38ac9d4d7ad941facfd24ab0a068630c57bdf | refs/heads/master | 2020-05-31T11:13:13.474102 | 2013-08-21T12:59:11 | 2013-08-21T12:59:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | """
In a lot of places we need to make system calls, mainly through subprocess.
Here we define them and reuse them with the added functionality of getting
logging and remote execution.
This allows us to only remote-execute the actual calls, not whole functions.
"""
from ceph_deploy.util.decorators import remote_compil... | [
"roman.heinrich@gmail.com"
] | roman.heinrich@gmail.com |
59ab3b8c00e340f686e72893e1533b2c4bc80c26 | 14ec9fc9aee69d54701168c069df4fe46a27b811 | /makeDigikeyBOM.py | 67fa76a4e374de9b7f2442ed9f00517b1d4886b5 | [] | no_license | BitKnitting/MakeDigikeyBOM | 1af6e79b9c9bb86590425ec06bbacc63fa2cbb60 | ef12a92dec3abbd86571b40d6ea7ea72fa6e60b1 | refs/heads/master | 2021-01-13T00:59:15.063713 | 2017-02-20T18:30:42 | 2017-02-20T18:30:42 | 53,728,672 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | #
# The main entry point to making a digikey Bom CSV file from the output of bom2csv
# as discussed in the bitknitting blog post: https://bitknitting.wordpress.com/2016/03/05/from-kicad-to-digikey-generating-a-bom-based-on-esteem-overview/
#
import logging
logger = logging.getLogger(__name__)
from replaceJellyBeanParts... | [
"farmerrobbie@freshsalad.today"
] | farmerrobbie@freshsalad.today |
8ebd576a5c0651eb84ceff4de6e7daa1b0798574 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_adobe_granite_repository_hc_impl_authorizable_node_name_health_check_properties.py | 3a604357918c8edc66ecdea80b46d7424d41f966 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,487 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
1a164b7d02c2408775c790313f51483c12f60fa3 | 0124528676ee3bbaec60df5d6950b408e6da37c8 | /Projects/QTPy/adafruit-circuitpython-bundle-7.x-mpy-20220601/examples/pct2075_high_temp_alert_example.py | 2ec4e88196a8c47dfe88b6d038fdaac9fc2e1030 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | land-boards/lb-boards | 8127658dc537dcfde0bb59a5018ab75c3f0087f6 | eeb98cc2003dac1924845d949f6f5bd387376568 | refs/heads/master | 2023-06-07T15:44:46.110742 | 2023-06-02T22:53:24 | 2023-06-02T22:53:24 | 4,847,305 | 10 | 12 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import time
import board
import adafruit_pct2075
i2c = board.I2C() # uses board.SCL and board.SDA
pct = adafruit_pct2075.PCT2075(i2c)
pct.high_temperature_threshold = 35.5
pct.temperature_hysteresis = 30.0
pct.high_temp_ac... | [
"doug@douglasgilliland.com"
] | doug@douglasgilliland.com |
893ef9476b1476a4529208a0c1475e6749d452e7 | 6d1728bf105a7d6481d0bbca2b88f4478e0632d9 | /beautifulsoup/start/sibling.py | e0e1b3167becdb2101cb9e5f656394b366a1fa76 | [] | no_license | Phantomn/Python | 00c63aceb2d4aa0db71fe5e33fe8b5159b41aadd | 12808adf4b52c60cfe94befb6daa1e8187224beb | refs/heads/Python | 2022-11-09T16:49:49.165884 | 2019-08-05T07:30:07 | 2019-08-05T07:30:07 | 44,149,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from urllib import urlopen
from bs4 import BeautifulSoup
html = urlopen("http://www.pythonscraping.com/pages/page3.html")
bsObj = BeautifulSoup(html, "html.parser")
for sibling in bsObj.find("table", {"id":"giftList"}).tr.next_siblings:
print(sibling) | [
"tmdvyr123@naver.com"
] | tmdvyr123@naver.com |
09b3a389b1084df14d4c4a8c2f0930a95a481b25 | 44a7330dfa4fe321eb432ee57a32328578dec109 | /milk/tests/test_pca.py | e543aff8ebdf2506e861097e21e31271cf4bb07d | [
"MIT"
] | permissive | tzuryby/milk | 7cb6760fad600e9e0d0c9216dc749db289b596fb | a7159b748414d4d095741978fb994c4affcf6b9b | refs/heads/master | 2020-12-29T02:45:33.044864 | 2011-03-15T20:23:29 | 2011-03-15T20:25:11 | 1,485,748 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import numpy.random
import milk.unsupervised.pca
import numpy as np
def test_pca():
numpy.random.seed(123)
X = numpy.random.rand(10,4)
X[:,1] += numpy.random.rand(10)**2*X[:,0]
X[:,1] += numpy.random.rand(10)**2*X[:,0]
X[:,2] += numpy.random.rand(10)**2*X[:,0]
Y,V = milk.unsupervised.pca(X)
... | [
"lpc@cmu.edu"
] | lpc@cmu.edu |
76d1807da6e30de90b7fc8d7ae5c3f2be4b808a3 | c10f20abec372f81dbd6468ead208543f60940f1 | /learning/20.BayesianNetwork/20.1.Iris_GaussianNB.py | 8cd96f72d7add1efc07bd0c634a76cf4b1150c0f | [] | no_license | alenzhd/meachineLearning | 64876e7a6c0b8b39a63a9eb586d306a3489b4447 | 1b66ce2f73b226548f07e45c8537b8286635a048 | refs/heads/master | 2021-08-24T10:55:52.056439 | 2017-12-09T10:26:37 | 2017-12-09T10:26:37 | 112,688,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,854 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
from sklearn.preprocessing import StandardScaler, MinMaxScaler, PolynomialFeatures
from sklearn.naive_bayes import GaussianNB, MultinomialNB
from sklearn.pipeline import Pipeline
fro... | [
"zhanghd@asiainfo-mixdata.com"
] | zhanghd@asiainfo-mixdata.com |
c63fff8d99a3dc4b7fc547ac13a5fde5ce61b21f | 8a25ada37271acd5ea96d4a4e4e57f81bec221ac | /home/pi/GrovePi/Software/Python/others/temboo/Library/Fitbit/Social/CreateInvite.py | ad0fa7c6517b0cc3e0e04b248b8071b8d35346b8 | [
"MIT",
"Apache-2.0"
] | permissive | lupyuen/RaspberryPiImage | 65cebead6a480c772ed7f0c4d0d4e08572860f08 | 664e8a74b4628d710feab5582ef59b344b9ffddd | refs/heads/master | 2021-01-20T02:12:27.897902 | 2016-11-17T17:32:30 | 2016-11-17T17:32:30 | 42,438,362 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 5,095 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# CreateInvite
# Invites a user to become friends with authorized user.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you m... | [
"lupyuen@gmail.com"
] | lupyuen@gmail.com |
0b130d34300f0d54fda9186249d00d2196464eda | d2ada8e9dea0a59476dbbdcfdebc3b8eed951271 | /CH02/bh_sshserver.py | 5046e3f12011c7357d50aa4e84956dbebd0307ea | [] | no_license | sadavoya/bhp | dccf211f4bd95f5eaf69e44c3bfee8f7d07af688 | 6fbf1be8ca0f83363234d9c95170bdd770716c28 | refs/heads/master | 2021-01-13T14:51:13.347114 | 2017-02-21T01:39:57 | 2017-02-21T01:39:57 | 76,486,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | #!/usr/bin/env python
'''SSH'''
import socket
import threading
import paramiko
import sys
# using the demo keys in the paramiko demo files
host_key = paramiko.RSAKey(filename='test_rsa.key')
#print host_key.get_base64()
class Server(paramiko.ServerInterface):
def __init__(self):
self.event = threading.Eve... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
e89d6dc70ef70ba87520aa3295eb41f07cb4aaa9 | 2a3606551a4d850a7b4d6a4e08089c51108ef7be | /plugin.video.mrknow/resources/lib/crypto/keyedHash/pbkdf2.py | cf79523b747c13cbeb4fb110e54813a48c123a41 | [
"Apache-2.0"
] | permissive | rrosajp/filmkodi | a6bb1823f4ed45453c8b8e54ffbd6a7b49f44450 | 0162cde9ae25ddbf4a69330948714833ff2f78c9 | refs/heads/master | 2021-09-18T06:03:17.561062 | 2018-06-22T23:28:53 | 2018-06-22T23:28:53 | 234,768,781 | 1 | 0 | Apache-2.0 | 2021-06-03T20:33:07 | 2020-01-18T17:11:57 | null | WINDOWS-1252 | Python | false | false | 1,571 | py | # -*- coding: iso-8859-1 -*-
""" crypto.keyedHash.pbkdf2
Password Based Key Derivation Function 2
References: RFC2898, B. Kaliski, September 2000, PKCS #5
This function is used for IEEE 802.11/WPA passphrase to key hashing
Copyright © (c) 2002 by Paul A. Lambert
Read LICENSE.txt for license information.
"""
fr... | [
"mrknow@interia.pl"
] | mrknow@interia.pl |
91956ba4d19b41720a01993ac3acbd491ad295d4 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/PythonTesting-BeginnersGuide/code/tests/test_chapter5/test_pid.py | 72b93cd1bcd67c97b5266912ef867908e2d9e800 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 2,718 | py | from unittest import TestCase, main
from mocker import Mocker
import pid
class test_pid_constructor(TestCase):
def test_without_when(self):
mocker = Mocker()
mock_time = mocker.replace('time.time')
mock_time()
mocker.result(1.0)
mocker.replay()
controller = pid.PI... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
0e00d7b9dfd12f62cf14341e65cd37786e0b1482 | f687b45b061a0a4ed849d5d56e265a3423c95f56 | /mime_gen_both.py | 9f8121e8b8ff5edba0344a98ab758923591037af | [] | no_license | wwwlwscom/python | 45e52529fffccf161a0cff8aaf2d19a149ac2056 | 5478329f068f9a4eff5c07eee8005318b41b6440 | refs/heads/master | 2021-01-20T10:06:17.251976 | 2015-10-20T20:03:34 | 2015-10-20T20:03:34 | 41,769,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | #!/usr/bin/env python
from email.MIMEText import MIMEText
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email import Utils, Encoders
import mimetypes, sys
def genpart(data, contenttype):
maintype, subtype = contenttype.split('/')
if maintype == 'text':
retval = MIMEText(da... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7da317e87cb08431320105068322690d71269402 | a1092fecf5057e45f1df4e738a14be210dadbc83 | /gen.py | 3d26eb5062cedb3108e425576485a5c6bc7d741c | [] | no_license | robert-giaquinto/baum-welch | ba45b3c80e839ae7fd5b8b5a00ee07dd9228b61a | b57fb2bd64ed3fdfed1552a6ea5afd9c7c120cfc | refs/heads/master | 2021-01-15T09:09:29.267399 | 2014-05-31T21:17:42 | 2014-05-31T21:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | import random
import numpy as np
N_SEQ = 10
START = 0
BEFORE = 1
AFTER = 2
END = 3
def gen_seq():
seq = []
state = START
while state != END:
if state == START:
state = BEFORE
seq.append('S')
if state == BEFORE:
n, l, r = np.random.multinomial(1, [0.9... | [
"piotrek.kaleta@gmail.com"
] | piotrek.kaleta@gmail.com |
6ee7e72ba92ecde352fbe7130382ee1d2873e524 | d5f080543d3004f560c1ae636900080f1c7e8b31 | /configs/D2Det/D2Det_detection_r101_fpn_2x.py | 4e184d8220699043f302581714e52140c0c3b0ba | [
"MIT"
] | permissive | Randl/D2Det | dc7bd395b8c538e96f390d7ce5c396f87ee89bd8 | 5e35b218d9de824e73e0a49953af25a0c6984e74 | refs/heads/master | 2022-09-25T13:52:21.141590 | 2020-06-11T09:08:47 | 2020-06-11T09:08:47 | 271,498,684 | 0 | 0 | MIT | 2020-06-11T08:56:15 | 2020-06-11T08:56:15 | null | UTF-8 | Python | false | false | 5,685 | py | # model settings
model = dict(
type='D2Det',
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
neck=dict(
type='FPN',
in_channels=[256, ... | [
"connor@tju.edu.cn"
] | connor@tju.edu.cn |
7d812592e10d2a0d003e3156aef68f26c0796648 | 601adbb343313e7cce71b9b8d06620f541f349e5 | /tests/test_ci/test_runners/test_BaseRunner.py | 4545078bf38683e3c939099329a8ad2f0d27d15f | [] | no_license | jgsogo/conan-sword-and-sorcery | f3ff2c9b739410a7fb6eb97c49470d585fd1ab4c | 143f05d8b469a3afc9c807ec87fbe2dcbe63dab3 | refs/heads/master | 2021-04-06T06:23:40.584031 | 2018-08-15T16:50:43 | 2018-08-15T16:50:43 | 124,441,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,120 | py | # -*- coding: utf-8 -*-
import os
import unittest
try:
from unittest import mock
except ImportError:
import mock
from conan_sword_and_sorcery.ci.runners import AppveyorRunner
from conan_sword_and_sorcery.ci.runners.base_runner import SUCCESS, FAIL, DRY_RUN, BaseRunner
from conan_sword_and_sorcery.parsers.sett... | [
"jgsogo@gmail.com"
] | jgsogo@gmail.com |
602ecb7bb83ddd5c367c45eeaec4531e135d6824 | f87dc2227f9539ce9f87b8eb417d28f487ea2eac | /이진탐색/부품찾기.py | b3627efacbce4f210bf7ebc9dc2784e06dd4977a | [] | no_license | jjangsungwon/python-for-coding-test | fb1e019a2e68e426bb4f6770bffdc6289a647b4a | 8d9bf8de5de2a9724f75b35ea04dd9bcc40dec86 | refs/heads/master | 2022-12-16T02:53:55.967070 | 2020-08-26T08:41:14 | 2020-08-26T08:41:14 | 285,842,867 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | def binary_search(target, start, end):
if start > end:
return None
while start <= end:
mid = (start + end) // 2
if array[mid] == target: # 일치
return "yes"
elif array[mid] > target: # 중간값이 찾고자 하는 값보다 클 때
end = mid - 1
else:
start = mid... | [
"dnjs2113@gmail.com"
] | dnjs2113@gmail.com |
d8ca730c49e849faef22bb61d6e7c1ea1853c890 | 694d57c3e512ce916269411b51adef23532420cd | /python/chapter-1/lab4-exec1.2.py | 00e1dd5356363c18fb8e1045f63f53286f0a515a | [] | no_license | clovery410/mycode | 5541c3a99962d7949832a0859f18819f118edfba | e12025e754547d18d5bb50a9dbe5e725fd03fd9c | refs/heads/master | 2021-05-16T02:46:47.996748 | 2017-05-10T23:43:50 | 2017-05-10T23:43:50 | 39,235,141 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | def gcb_recur(a, b):
smaller_para = min(a, b)
larger_para = max(a, b)
remainder = larger_para % smaller_para
if smaller_para % remainder == 0:
return remainder
return gcb_recur(smaller_para, remainder)
print(gcb_recur(50, 35))
def gcb_itera(a, b):
smaller_para = min(a, b)
larger_p... | [
"admin@admins-MacBook-Air.local"
] | admin@admins-MacBook-Air.local |
3b98e43e2f3dc2377b74432e9fe99c572da37f2a | 4904acd900496b4883c2f5b4aa6b45d1ef6654c0 | /graphgallery/gallery/nodeclas/tensorflow/__init__.py | 1cf21d123e086ed846bcb034e8d4271c9735498d | [
"MIT"
] | permissive | blindSpoter01/GraphGallery | aee039edd759be9272d123463b0ad73a57e561c7 | e41caeb32a07da95364f15b85cad527a67763255 | refs/heads/master | 2023-06-17T11:42:27.169751 | 2021-07-15T03:07:39 | 2021-07-15T03:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | from .gcn import GCN
from .gat import GAT
from .clustergcn import ClusterGCN
from .sgc import SGC
from .gwnn import GWNN
from .robustgcn import RobustGCN
from .graphsage import GraphSAGE
from .fastgcn import FastGCN
from .chebynet import ChebyNet
from .densegcn import DenseGCN
from .lgcn import LGCN
from .BVAT.obvat im... | [
"cnljt@outlook.com"
] | cnljt@outlook.com |
7d6e7442b32fe58141787e6063cf7b0ae35a74b7 | d49fbd7874b70a93cbc551afed1b87e3e47617a8 | /django/example/repositories/__init__.py | 1efb28043ae95783f5bde83b3415bcedaf028594 | [] | no_license | gitter-badger/tutorials-4 | bbdbb673e978118f9fec3212baa13f6f99226be0 | 3ce1cdb7c6d26f6df4d6bb94e82f83e8cab9389b | refs/heads/master | 2020-04-04T20:52:28.181616 | 2018-10-28T22:05:17 | 2018-10-28T22:05:17 | 156,264,177 | 0 | 0 | null | 2018-11-05T18:32:17 | 2018-11-05T18:32:16 | null | UTF-8 | Python | false | false | 528 | py | from .category import load_categories, load_category # noqa
from .entry import load_entries # noqa
from .notification import create_notification, load_notifications # noqa
from .price import ( # noqa
cheapest_price_by_category,
load_price,
prices_for_category,
)
from .profile import ( # noqa
add_ba... | [
"proofit404@gmail.com"
] | proofit404@gmail.com |
ff3e75465d6bc74082977d0011083bd7cb9d2fa1 | 8dc745854d73e362aa60747b3ab1b5a0dd975902 | /demo/funs/varying_args.py | 95be35fceef5366dfe3c457b3dac4f7b9e356ad3 | [] | no_license | srikanthpragada/PYTHON_27_AUG_2020 | 08a5898fe1a0ae110b74897ce6cce6595bdfce45 | af2aebbb0d83c5e8f381cdda844ab66d2362019c | refs/heads/master | 2022-12-30T10:12:56.688671 | 2020-10-09T14:20:43 | 2020-10-09T14:20:43 | 291,730,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | def wish(*names, message="Hi"):
for n in names:
print(message, n)
wish("Bill", "Steve", message="Hello")
wish("Bill", "Steve", "Mike")
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
560ff9f3f493317e04240dcf5f75f3fb3c0b41e7 | 500bca3e22bd0c30c79b74918e9847742b3c428e | /sdk/python/endpoints/online/mlflow/sklearn-diabetes/src/score.py | 4e2c269f5cb447804f693d12932e283e9219e83f | [
"MIT"
] | permissive | Azure/azureml-examples | 2304c862fd2e36e6640ecc4d09f69c5ed93b48ab | e5f7b247d4753f115a8f7da30cbe25294f71f9d7 | refs/heads/main | 2023-08-31T00:10:14.107509 | 2023-08-30T17:29:22 | 2023-08-30T17:29:22 | 289,334,021 | 1,219 | 1,074 | MIT | 2023-09-14T16:00:55 | 2020-08-21T18:04:26 | Jupyter Notebook | UTF-8 | Python | false | false | 979 | py | import logging
import os
import json
import mlflow
from io import StringIO
from mlflow.pyfunc.scoring_server import infer_and_parse_json_input, predictions_to_json
def init():
global model
global input_schema
# "model" is the path of the mlflow artifacts when the model was registered. For automl
# mod... | [
"noreply@github.com"
] | Azure.noreply@github.com |
0dec940c8d9ee73e47f55d49a771aebb21beec6d | 55d560fe6678a3edc9232ef14de8fafd7b7ece12 | /tools/build/test/rescan_header.py | 36a007eb406fa403704cb5091d42f2606d7901ce | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | stardog-union/boost | ec3abeeef1b45389228df031bf25b470d3d123c5 | caa4a540db892caa92e5346e0094c63dea51cbfb | refs/heads/stardog/develop | 2021-06-25T02:15:10.697006 | 2020-11-17T19:50:35 | 2020-11-17T19:50:35 | 148,681,713 | 0 | 0 | BSL-1.0 | 2020-11-17T19:50:36 | 2018-09-13T18:38:54 | C++ | UTF-8 | Python | false | false | 5,653 | py | #!/usr/bin/python
# Copyright 2012 Steven Watanabe
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
import BoostBuild
t = BoostBuild.Tester(use_test_config=False)
# Test a header loop that depends on (but does no... | [
"james.pack@stardog.com"
] | james.pack@stardog.com |
87329ac75e0a03161d9c4ec7e50671e1a8c5b0d0 | 22299195d67f887d8de9f8764e8a85680cd3416c | /class7 (Color Filtering - OpenCV with Python for Image and Video Analysis 7)/main.py | e4430a318df1dc716db227d2a786414f7b6eb3ff | [] | no_license | EnggQasim/PythonOpenCV | 71268cb9bfa603b9aec1e239756f515f9693f74c | 2f1cd61df0fd520dbdc0e41a52ebfc4da410c771 | refs/heads/master | 2021-01-01T15:29:14.768477 | 2017-07-18T18:11:19 | 2017-07-18T18:11:19 | 97,629,494 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import cv2
import numpy as np
cap = cv2.VideoCapture(1)
while True:
_, frame = cap.read()
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
#hsv hue sat value
lower_red = np.array([150,150,50])
upper_red = np.array([180, 255, 150])
mask = cv2.inRange(hsv, lower_red, upper_red)
res = cv2.bitwise_and(frame, frame, ... | [
"m.qasim077@gmail.com"
] | m.qasim077@gmail.com |
51fe296f9a06966e6e243a907c4209236b1137e9 | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/ebooks/migrations/0007_auto_20190429_1732.py | 3b567492131adb79f3e21d1f851220e0b4b14f01 | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 1,340 | py | # Generated by Django 2.1.7 on 2019-04-29 15:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ebooks', '0006_auto_20190429_1727'),
]
operations = [
migrations.AddField(
model_name='chapter',
name='description_e... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
a4c78496e3e6c0ca7c8343f03b0e455be84de413 | 585fcfd09bcc37ad73c6f301cb8b16261a93df7e | /projects/pyDOE-master/pyDOE/build_regression_matrix.py | 5ea2c2f53342a023823a115a04a403407c9ccc3d | [
"MIT",
"BSD-3-Clause"
] | permissive | louisXW/Surrogate-Model | e9e8de3ab892eed2f8ed424e09b770e67126c1f3 | 65ec8a89c1b7a19d4c04c62e2c988340c96c69f8 | refs/heads/master | 2021-07-21T09:37:41.045898 | 2017-10-30T11:49:35 | 2017-10-30T11:49:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | """
This code was originally published by the following individuals for use with
Scilab:
Copyright (C) 2012 - 2013 - Michael Baudin
Copyright (C) 2012 - Maria Christopoulou
Copyright (C) 2010 - 2011 - INRIA - Michael Baudin
Copyright (C) 2009 - Yann Collette
Copyright (C) 2009 - CEA - Jean-Marc Mart... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
21258aa7598c5f930fe4eaed3af4d0a499b648d9 | 98efe1aee73bd9fbec640132e6fb2e54ff444904 | /loldib/getratings/models/NA/na_ornn/na_ornn_top.py | 2ca0d07a4824d85d8de49a6105daf5c1b67f4de7 | [
"Apache-2.0"
] | permissive | koliupy/loldib | be4a1702c26546d6ae1b4a14943a416f73171718 | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | refs/heads/master | 2021-07-04T03:34:43.615423 | 2017-09-21T15:44:10 | 2017-09-21T15:44:10 | 104,359,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,269 | py | from getratings.models.ratings import Ratings
class NA_Ornn_Top_Aatrox(Ratings):
pass
class NA_Ornn_Top_Ahri(Ratings):
pass
class NA_Ornn_Top_Akali(Ratings):
pass
class NA_Ornn_Top_Alistar(Ratings):
pass
class NA_Ornn_Top_Amumu(Ratings):
pass
class NA_Ornn_Top_Anivia(Ratings):
pass
clas... | [
"noreply@github.com"
] | koliupy.noreply@github.com |
9b1a400d3281860f99c1cb1c0f0a9b1c2006bf90 | 2d191eb46ed804c9029801832ff4016aeaf8d31c | /configs/_base_/models/deeplabv3_sep_r50-d8.py | bb8c92051e538c75132eb8666ccb1d1cc8698ffc | [
"Apache-2.0"
] | permissive | openseg-group/mmsegmentation | df99ac2c3510b7f2dff92405aae25026d1023d98 | 23939f09d2b0bd30fc26eb7f8af974f1f5441210 | refs/heads/master | 2023-03-02T07:49:23.652558 | 2021-02-15T04:16:28 | 2021-02-15T04:16:28 | 278,537,243 | 2 | 2 | null | 2020-07-10T04:24:16 | 2020-07-10T04:24:15 | null | UTF-8 | Python | false | false | 1,330 | py | # model settings
norm_cfg = dict(type='SyncBN', requires_grad=True)
model = dict(
type='EncoderDecoder',
pretrained='open-mmlab://resnet50_v1c',
backbone=dict(
type='ResNetV1c',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
dilations=(1, 1, 2, 4),
strides=... | [
"yhyuan@pku.edu.cn"
] | yhyuan@pku.edu.cn |
ad77f04ce6810e07fd8407db9354c5b4139ab67e | 17dca703eed28a859bba4984eba5b039b900e3d7 | /.history/nomina/views_20200227181321.py | a9f9c322cb015feead3955c66ebab05f4727ad27 | [] | no_license | alexogch1/SistemaOperaciones | 1a34872daf0e151672edd202a5089ee754805203 | ac72f6e3284061e240aebec6a3300ff463a3544c | refs/heads/master | 2021-01-03T15:32:45.470642 | 2020-03-03T07:47:27 | 2020-03-03T07:47:27 | 240,133,319 | 0 | 1 | null | 2020-02-28T05:21:57 | 2020-02-12T23:02:36 | Python | UTF-8 | Python | false | false | 5,733 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse_lazy
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.messages.views import SuccessMessageMixin
#from .filters import NominaFiltro
from dateutil.parser import pars... | [
"alexogch@hotmail.com"
] | alexogch@hotmail.com |
5a0772e1a8a55625488fe06642e451fb792dad75 | b0129214b1d493bdec6fc4658727775fb4066a5e | /addons/todo_user/__manifest__.py | 373e3f23f73a060a7b0267b94f628db4cc01f954 | [] | no_license | gitstalker/docker_odoo | 9875636e4f1bf60a8e55c7a66e8c85abf5f61661 | c049d93586f1c35300563fc77685da22d9cc4e14 | refs/heads/master | 2020-05-02T01:10:45.705337 | 2018-10-20T12:03:20 | 2018-10-20T12:03:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | {
'name':'Multiuser To-Do',
'description': 'Extend the To-Do app to multiuser.',
'depends': ['website'],
'data':['views/templates.xml'],
'author': 'hdwolf'
} | [
"spacegoing@gmail.com"
] | spacegoing@gmail.com |
8d2db0e03577849c03ffa9b296d5a266ea0fb0d7 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/operations/_replicas_operations.py | ed2a170e523af5c4bd570d0b9b817e6a9a04d6ce | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 5,650 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
05ccf6e2d5d1a9e66261f6829dcff9f2468cbea3 | 124bdbf417117fe23168f043dd265f88b3bd6e70 | /lib/datasets/__init__.py | e62bcd2b434d9f62ee2b19a9875c4c64db1d00e6 | [] | no_license | tonyonifo/anytime | 943f56ebd4759f0f5181607d8030d50eabb8d38b | 86bba7a334fc65899da01b30d925437163c1dede | refs/heads/master | 2023-08-02T21:32:42.977184 | 2021-10-05T16:58:35 | 2021-10-05T16:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .cityscapes import Cityscapes as cityscapes | [
"email@email.com"
] | email@email.com |
192513b2ebb9f2f9c07d84b4cdb0e2c0f10f8099 | 2db7597686f33a0d700f7082e15fa41f830a45f0 | /Python/coding/longestPalindromicSubstring.py | 5b5cc4e5f9239e189fda40d29fb79084b668ae13 | [] | no_license | Leahxuliu/Data-Structure-And-Algorithm | 04e0fc80cd3bb742348fd521a62bc2126879a70e | 56047a5058c6a20b356ab20e52eacb425ad45762 | refs/heads/master | 2021-07-12T23:54:17.785533 | 2021-05-17T02:04:41 | 2021-05-17T02:04:41 | 246,514,421 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | '''
5. Longest Palindromic Substring
注意题目的return是什么
'''
def longestPalindrome(self, s: str) -> str:
if s == '':
return ''
n = len(s)
dp = [[False] * n for _ in range(n)]
max_len = 1
start = 0
for i in range(n - 1, -1, -1):
for j in range(i, n):
if i ==... | [
"leahxuliu@gmail.com"
] | leahxuliu@gmail.com |
79926eb4ed7b1cb24b624dd9df42ddf2c75ac463 | 6188f8ef474da80c9e407e8040de877273f6ce20 | /examples/docs_snippets/docs_snippets/concepts/assets/asset_input_managers_numpy.py | 41c6a5aa55fde72067e0e687ff7d0816f51b530f | [
"Apache-2.0"
] | permissive | iKintosh/dagster | 99f2a1211de1f3b52f8bcf895dafaf832b999de2 | 932a5ba35263deb7d223750f211c2ddfa71e6f48 | refs/heads/master | 2023-01-24T15:58:28.497042 | 2023-01-20T21:51:35 | 2023-01-20T21:51:35 | 276,410,978 | 1 | 0 | Apache-2.0 | 2020-07-01T15:19:47 | 2020-07-01T15:13:56 | null | UTF-8 | Python | false | false | 1,511 | py | import os
import pandas as pd
from dagster import AssetIn, Definitions, IOManager, asset, io_manager
from .asset_input_managers import (
load_numpy_array,
load_pandas_dataframe,
store_pandas_dataframe,
)
# start_numpy_example
class PandasAssetIOManager(IOManager):
def handle_output(self, context, ... | [
"noreply@github.com"
] | iKintosh.noreply@github.com |
f69d5a2c855b376f97d582465cd8c179d5452fa9 | ad570312a736a84e96c5178bc1af91c6c0b898fb | /pyth/linkedListCoppy.py | 4c1a565b380f1db25973401fb73c746e6d86da3f | [] | no_license | pritamSarkar123/Compitative20_21 | ad813d189b7388ea2179bb96f64eaa88ba75db32 | d5474b02487dc759c47e3da1047154533dc7b641 | refs/heads/master | 2023-01-14T12:04:51.756085 | 2020-11-26T09:31:02 | 2020-11-26T09:31:02 | 296,670,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | #problem description
#https://www.youtube.com/watch?v=xbpUHSKoALg&t=784s
# algorithm:
# #create intermediate nodes
# p=head
# q=NULL
# while p!=NULL:
# q=p
# p=p->next
# t=copy(q)
# q->next=t
# t->next=p
# #connecting new linked list
# p=head
# q=NULL
# while p!=NULL:
# q=p
# p=p->next->next
# ... | [
"pritamsarkar84208220@gmail.com"
] | pritamsarkar84208220@gmail.com |
68e264f1175e4500758f875b6b021e66b4625bc8 | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - Homework1/HW1 - Alex/index_nested_list.py | bbb999230c523e6e8d132b64459550cc015955c5 | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # Alexis Thompson-Klemish
#
q = [['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h']]
# print the letter a
print q[0][0]
# print the list ['d', 'e', 'f']
print q[1]
# print the last element h
print q[-1][-1]
#print the d element
print q[1][0]
#explain why q[-1][-2] has the value g
print "negative indexes count from the ... | [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
cf4b67c14d7a1b9856437ecb6e313e98a2c15a74 | 30c23852ae41a7808e2a202280e973ff1a4bbe2b | /OP/op.py | 9217ca651fa7b0366b9ae90cc341da5a83482f7b | [] | no_license | rohe/oidc-oob-federation | 050ce05a1bd373795bc74c63287edeccbf1c3129 | 53517decc43f4d58aa7b825feb8c97704de8822f | refs/heads/master | 2020-03-18T04:04:10.383031 | 2018-06-07T12:15:55 | 2018-06-07T12:15:55 | 134,267,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,153 | py | import logging
import cherrypy
from cryptojwt import as_bytes
from oidcmsg.oauth2 import is_error_message
from oidcmsg.oauth2 import AuthorizationRequest
from oidcendpoint.sdb import AuthnEvent
logger = logging.getLogger(__name__)
class OpenIDProvider(object):
def __init__(self, config, endpoint_context):
... | [
"roland@catalogix.se"
] | roland@catalogix.se |
1e5810523ea93878d26b6ef00317399d8e25aa25 | 1005a4290bca16dcf4c6b3415662e134044305bd | /python/Sources/gensource_Z2Jets_muhad_cfi.py | 1d71fe0e0d4998bc6ab78e9176740d7f2eb3bcf3 | [] | no_license | cms-analysis/TauAnalysis-GenSimTools | 2652bb713107bb1d459882581237662d229d3906 | b787b784ee3598c4428c4883c04cdc525eb54eb6 | refs/heads/master | 2020-12-24T15:58:14.392883 | 2013-06-28T20:10:42 | 2013-06-28T20:10:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | import FWCore.ParameterSet.Config as cms
# The Alpgen Source. It reads unweighted alpgen files
source = cms.Source("AlpgenSource",
# use an input file name without extension unw
fileNames = cms.untracked.vstring(
'file:/home/cbernet/ALPGEN/v213/zjetwork/z2j'
)
)
# The Alpgen Producer.
from GeneratorI... | [
"sha1-5c72da6f595cce9b6b48aff6d56f01e9beb4aad1@cern.ch"
] | sha1-5c72da6f595cce9b6b48aff6d56f01e9beb4aad1@cern.ch |
f50fbf295e7c63db3184c8adcae01d3500afaf12 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /tools/grit/grit/format/policy_templates/writers/ios_plist_writer_unittest.py | 0fdecb1d1ef33336fc052bf6c32b3b97d6f1800a | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"MIT"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 6,923 | py | #!/usr/bin/env python
# Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''Unit tests for grit.format.policy_templates.writers.ios_plist_writer'''
import base64
import functools
import os
import plistl... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
17182f5cae79f76332304a2abd4a7f9acf5a1442 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/layout/ternary/aaxis/_showticksuffix.py | 2a1b061ea73eecf6d8c074e3d8662b7cb67f3748 | [
"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 | 533 | py | import _plotly_utils.basevalidators
class ShowticksuffixValidator(
_plotly_utils.basevalidators.EnumeratedValidator
):
def __init__(
self,
plotly_name='showticksuffix',
parent_name='layout.ternary.aaxis',
**kwargs
):
super(ShowticksuffixValidator, self).__init__(
... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
9bf714a6abbcdb0385038e4cdee96b601cece13d | 06a7dc7cc93d019e4a9cbcf672b23a0bbacf8e8b | /2013_adni/MMSE-AD-CTL/01_build_dataset.py | f9049d7b28f1fc1da3d70f12b740317ca04ad28d | [] | no_license | neurospin/scripts | 6c06cd218a5f32de9c3c2b7d1d8bda3f3d107458 | f14a2c9cf2cd7f5fbea767b017c3faf36d170bdb | refs/heads/master | 2021-07-11T22:55:46.567791 | 2021-07-02T13:08:02 | 2021-07-02T13:08:02 | 10,549,286 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,376 | py | # -*- coding: utf-8 -*-
"""
@author: edouard.Duchesnay@cea.fr
Compute mask, concatenate masked non-smoothed images for all the subjects.
Build X, y, and mask
INPUT:
- subject_list.txt:
- population.csv
OUTPUT:
- mask.nii.gz
- y.npy
- X.npy = intercept + Age + Gender + Voxel
"""
import os
import numpy as np
import g... | [
"edouard.duchesnay@gmail.com"
] | edouard.duchesnay@gmail.com |
2bb5e9136817920f0a118765a28bf286b13b41be | c86277d74266b90b64774bc924b041009d697b2e | /source/nextdoor/wsgi.py | 2ae744a10344445edcd3ffe9adf052710f84605a | [] | no_license | rakeshsukla53/facebook-for-neighbours | dcd0c564530404e5415fa08b184398d10b1170ba | 3d6c1430ab4f7ac8f668626c82705552da9f6566 | refs/heads/master | 2021-01-10T04:54:00.962831 | 2015-12-25T17:32:45 | 2015-12-25T17:32:45 | 46,942,279 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for nextdoor project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"rakesh.sukla53@gmail.com"
] | rakesh.sukla53@gmail.com |
7a78bab1a7c668a9b26dfe834a4c903b5273b3e3 | d833e1643f799d8979ae385992be9f3012af23a5 | /examples/c60_find_submit.py | 848dd0dd9378059f4770fd68b09de99329f047ff | [
"BSD-3-Clause"
] | permissive | ZhouHUB/simdb | 05906505d549cbf584dcdcc91c9cebe95c2d349b | 33fa21ddcc683e1618dfb337f5f928363c902a1e | refs/heads/master | 2020-04-01T22:32:36.665260 | 2016-04-15T19:20:46 | 2016-04-15T19:20:46 | 36,950,426 | 0 | 0 | null | 2018-07-24T19:56:44 | 2015-06-05T19:06:15 | Python | UTF-8 | Python | false | false | 1,051 | py | __author__ = 'christopher'
import ase
from simdb.insert import *
from simdb.search import *
from pyiid.utils import build_sphere_np
from copy import deepcopy as dc
target_config, = find_atomic_config_document(name='C60 DFT')
parent_atoms = target_config.file_payload[-1]
# find the combined Potential Energy Surface (P... | [
"cjwright4242@gmail.com"
] | cjwright4242@gmail.com |
e2886ddba4caf4503f5d0cf9cf97f91e5c76cd44 | 3d0bb8d94a69237bf3c6ba6b2ccfdd0bc9cc162c | /addons/asterisk/agi-bin/states/get_fast_dial_destination_from_ibs.py | 4521e2804bce47ffccda4b3c9723ff47c347a06f | [] | no_license | ha8sh/IBSng | 69727a7c5476ecb8efa45b7393ffe51de37a8a10 | 596aa468f8264ab0129431e3ede6cc1282b1ebbd | refs/heads/main | 2023-08-25T18:21:28.081153 | 2021-10-02T05:03:52 | 2021-10-02T05:03:52 | 412,687,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | import xmlrpclib
import ibs_agi
from lib import request
from lib.error import *
def init():
ibs_agi.getStateMachine().registerState("GET_FAST_DIAL_DESTINATION_FROM_IBS",getFastDialIndexFromIBS)
def getFastDialIndexFromIBS(_index):
"""
get fast dial index destination from ibs
may raise an IBSEx... | [
"hassanshaikhi@gmail.com"
] | hassanshaikhi@gmail.com |
73c1cb0d4aa4a86afefeb3fd74e8241edec6456a | 7620893c7d253a4d8c6f5aef2cfda6c72b777d49 | /src/Camera/DisplayImage.py | 8d1b1ee14891406071b40da9d5bf7f304a4aa7ad | [] | no_license | garridoH/cameraGUI | cacc549a9da0bcb6c3b9be04ef9783c653300118 | cb6ac1d54dd8651da974ed058990c8212d145415 | refs/heads/master | 2021-01-17T22:38:53.398306 | 2012-06-12T20:41:44 | 2012-06-12T20:41:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | '''
Adapted from online sources, including http://www.blog.pythonlibrary.org/2010/03/26/creating-a-simple-photo-viewer-with-wxpython/
'''
import wx
class displayImage(wx.App):
def __init__(self, redirect=False):
wx.App.__init__(self, redirect)
self.frame = wx.Frame(None, title='Prosilica Viewer... | [
"raedwards@gmail.com"
] | raedwards@gmail.com |
0c3d842557c9376a3e85eb48319735d211b4170d | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1/Naca/main.py | 5645aca52186859c629e2d833d00d1e431940170 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 432 | py | T = int(input());
data = [];
for i in range(T) :
data.append(int(input()));
for i in range(T) :
if (data[i] == 0) :
print("Case #" + str(i + 1) + ": INSOMNIA");
else :
digits = [];
sumN = data[i];
while (len(digits) < 10) :
tmp = sumN;
while (tmp > 0) :
if (tmp % 10 not in digits) :
digits.ap... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
5c373349176db66ba2f7617dfca9fa2c18ee4d78 | 94724578994ab1438dcefb51b7ef4d8570da5d4c | /calibre/draveness.recipe | 361ce64106650ddf8643557d49369ebfec882386 | [] | no_license | PegasusWang/collection_python | 6648d83203634abf44fd42c0b37b0bf7cc406d8f | 9ef019a737a0817860d3184924c67a0833bd1252 | refs/heads/master | 2023-09-01T23:15:39.813635 | 2023-08-24T06:46:12 | 2023-08-24T06:46:12 | 43,693,872 | 130 | 90 | null | 2021-04-26T15:12:55 | 2015-10-05T15:28:15 | JavaScript | UTF-8 | Python | false | false | 2,028 | recipe | #!/usr/bin/python
# encoding: utf-8
from calibre.web.feeds.recipes import BasicNewsRecipe # 引入 Recipe 基础类
"""
教程:
- https://bookfere.com/tools#calibre
- https://www.jianshu.com/p/0bcb92509309
- https://snowdreams1006.github.io/myGitbook/advance/export.html
命令:
ebook-convert draveness.recipe draveness.mobi --output-... | [
"291374108@qq.com"
] | 291374108@qq.com |
eec8efa198fdd6ce3ad3070fc8265762caf05d1c | 58141d7fc37854efad4ad64c74891a12908192ed | /tests/test_storage2.py | b09918d1388d18d6fb7fb62fa653799306d5de22 | [] | no_license | stanleylio/fishie | b028a93b2093f59a8ceee4f78b55a91bb1f69506 | 0685045c07e4105934d713a0fd58c4bc28821ed6 | refs/heads/master | 2022-08-14T13:08:55.548830 | 2022-07-29T01:32:28 | 2022-07-29T01:32:28 | 30,433,819 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | import unittest,sys
from os.path import expanduser
sys.path.append(expanduser('~'))
from node.storage.storage2 import storage
class TestStorage2(unittest.TestCase):
def test_read_latest_non_null(self):
s = storage()
self.assertTrue(s.read_latest_non_null('node-008', 'ReceptionTime', 'idx'))
... | [
"stanleylio@gmail.com"
] | stanleylio@gmail.com |
7f06aa3882b4fc1e0e5f3f8bc66e51bcb16b8038 | 5730e8d500a65992bb21094ffed26e21ccc7c0fd | /augment_dnase_pipeline_outputs/metadata/aggregate_ataqc.py | 2963e434753969d97146b33d89c1eb86a8843a62 | [] | no_license | kundajelab/atlas_resources | 35f1df4c09356d7256a6667700b88020396d5642 | 89bcde11921526b9956be48bf367617db4974d31 | refs/heads/master | 2021-10-25T07:01:30.127405 | 2021-10-25T00:55:25 | 2021-10-25T00:55:25 | 160,546,622 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,942 | py | import argparse
import collections
import json
import pdb
def parse_args():
parser=argparse.ArgumentParser(description="aggregate ataqc metrics for all samples in a single report")
parser.add_argument("--ataqc_files",default="/oak/stanford/groups/akundaje/projects/atlas/dnase_processed/aggregate_outputs/qc... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
58950f55ea5a2b7fae6b323bfc181434c02aaaee | 305d25e1d2084761e889057077706b1ba3f9122d | /nmigen_boards/arty_z7.py | ba432b642cc9588c44c7e5037b12b600668f5a6b | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | nicolas-robin/nmigen-boards | d7d8fe29d788f8b1fdcf8da0cf7202a1f0fa741a | 6fc91b491214b80c56b2b2d031da1a50c7254c56 | refs/heads/master | 2020-12-10T15:43:43.358008 | 2020-01-17T21:54:48 | 2020-01-17T21:54:48 | 233,314,458 | 0 | 0 | NOASSERTION | 2020-01-12T00:01:57 | 2020-01-12T00:01:57 | null | UTF-8 | Python | false | false | 5,359 | py | import os
import subprocess
from nmigen.build import *
from nmigen.vendor.xilinx_7series import *
from .resources import *
__all__ = ["ArtyZ720Platform"]
class ArtyZ720Platform(Xilinx7SeriesPlatform):
device = "xc7z020"
package = "clg400"
speed = "1"
default_clk = "clk125"
resour... | [
"whitequark@whitequark.org"
] | whitequark@whitequark.org |
c5c7c9fa51eaaec171b3b32e2cb18f6d63866966 | 8a82a83655f118208692e55d7804d9fa480ad4b6 | /book/apress/Beginning.Python.Visualization.Crafting.Visual.Transformation.Scripts/Chapter04/src/read_ini.py | bf4374d1f2c6de9b410eea7d36a061bd6b2c38a7 | [] | no_license | xenron/sandbox-da-python | 0814159da9a91923e4b66c5e40057e381f765e96 | ab8f1c0d57fdc6006355f613012b84165068c315 | refs/heads/master | 2020-04-12T05:41:33.182110 | 2016-12-14T22:57:33 | 2016-12-14T22:57:33 | 60,324,979 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # read an INI (config) file
import ConfigParser
read_opts=ConfigParser.ConfigParser()
read_opts.read('../data/options.ini')
# print parameters and values
for section in read_opts.sections():
print "[%s]" % section
for param in read_opts.items(section):
print param
| [
"xenron@outlook.com"
] | xenron@outlook.com |
db3596b8480850b3718c2c9d08671fd49db81831 | 0543faeee9f493260e8cbd8a9155a96a8cbb0df2 | /main_app/migrations/0018_profile.py | 9f188815d07ced745fd5193ceebf36edd8813264 | [] | no_license | tanveerahmad1517/Treasuregram | 134853f298628c161ebe741864cdb581ce80db8f | 797e0ff1460eb50d90aa385f6fb25990ed7766fa | refs/heads/master | 2020-03-10T13:58:43.912795 | 2018-04-13T14:32:31 | 2018-04-13T14:32:31 | 129,413,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-02-13 13:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_app', '0017_remove_treasure_date'),
]
operations = [
migrations.CreateMo... | [
"tanveerobjects@gmail.com"
] | tanveerobjects@gmail.com |
53171e07178a012d3d4820a34f4a4926dbf039f9 | 909afe0216a37bdc19683d81e533fa6c094329c1 | /python/fluent_python/17-futures/flags_threadpool.py | 06c33a7643ddd6282576bba9507f4a1c595c79bf | [] | no_license | wxnacy/study | af7fdcd9915d668be73c6db81bdc961247e24c73 | 7bca9dc8ec211be15c12f89bffbb680d639f87bf | refs/heads/master | 2023-04-08T17:57:40.801687 | 2023-03-29T08:02:20 | 2023-03-29T08:02:20 | 118,090,886 | 18 | 22 | null | 2022-12-16T03:11:43 | 2018-01-19T07:14:02 | HTML | UTF-8 | Python | false | false | 481 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: wxnacy(wxnacy@gmail.com)
# Description: 使用多线程下载
from concurrent.futures import ThreadPoolExecutor
from flags import download_one, main
MAX_WORKERS = 20
def download_many(suffixs):
workers = min(MAX_WORKERS, len(suffixs))
with ThreadPoolExecutor(workers)... | [
"371032668@qq.com"
] | 371032668@qq.com |
1998f40d200a554665e76178c4a6f06101755f94 | 74d11e4000d99e43dc4c53c93ac59782ebbe1802 | /portrait/deeplab/model_test.py | c586ccd0ea5c6626ab32562bec21e041fdf8b7cc | [
"Apache-2.0"
] | permissive | hiepgaf/portrait | f450971e8881e9bcd1f386966651a9a01c1d11ce | 930a167cbb368cdc2cf906b06b70c035d87e6938 | refs/heads/master | 2020-03-19T00:14:06.916160 | 2018-05-14T05:57:29 | 2018-05-14T05:57:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | """Tests for encoder"""
import numpy as np
import tensorflow as tf
from model import deeplab_v3_plus_model
def create_test_inputs(batch, height, width, channels):
"""Create mock Images """
if None in [batch, height, width, channels]:
return tf.placeholder(tf.float32, (batch, height, width, channels))
else:... | [
"tdat.nguyen93@gmail.com"
] | tdat.nguyen93@gmail.com |
3091099fee02328c00c32ce85434caa6c2918a00 | d2fdd6b10b0467913971d1408a9a4053f0be9ffb | /datahub/investment/project/migrations/0033_add_investment_document_permission.py | 87a514117458d20c8bf84bc4f1155a3ce0c0b8eb | [] | no_license | jakub-kozlowski/data-hub-leeloo | fc5ecebb5e4d885c824fc7c85acad8837fcc5c76 | 7f033fcbcfb2f7c1c0e10bec51620742d3d929df | refs/heads/master | 2020-05-18T13:29:14.145251 | 2019-04-30T12:12:50 | 2019-04-30T12:12:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | # Generated by Django 2.0.1 on 2018-01-09 16:32
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('investment', '0032_investmentproject_comments'),
]
operations = [
migrations.AlterModelOptions(
name='investmentproject',
op... | [
"reupen@users.noreply.github.com"
] | reupen@users.noreply.github.com |
3e5b76060a8d08eb9c454a93b5bf91d108e6268c | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg_old/scg_obj_shell_2nd/test_c40343.py | 3c334ff2e3e9d1098cbb335f5426d69ef272f5d0 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | import pytest
import time
import sys
from page_obj.scg.scg_def import *
from page_obj.scg.scg_def_obj import *
from page_obj.scg.scg_def_log import *
from page_obj.common.rail import *
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
test_id = 40343
# 修改以subnet方式添... | [
"15501866985@163.com"
] | 15501866985@163.com |
dc3f80de3fed77fc2506bf296b04f63ce5dd996c | f19c5436c7173835a3f1d064541ee742178e213a | /mah/divide and conquer/[BOJ]1920_수 찾기.py | 9bdd791f8797941a03f185c9f847b8104e5e9e83 | [] | no_license | hongsungheejin/Algo-Study | f1c521d01147a6f74320dbc8efe3c1037e970e73 | d6cb8a2cc6495ccfcfb3477330a3af95895fae32 | refs/heads/main | 2023-07-06T10:58:27.258128 | 2021-07-29T02:11:13 | 2021-07-29T02:11:13 | 379,269,918 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | N = int(input())
nums = list(map(int, input().split()))
nums.sort()
M = int(input())
tars = list(map(int, input().split()))
def binary_serach(tar):
l, r = 0, len(nums) - 1
while l<=r:
m = (l+r)//2
if nums[m] == tar: return 1
elif nums[m] < tar: l=m+1
else: r=m-1
... | [
"mai.hong0924@gmail.com"
] | mai.hong0924@gmail.com |
39e2d9dbdc83ea68defe4b575e5d0bee237f89bc | 205be8d429df36e27cdfc048bfca9212c5a62a87 | /icu/urls.py | ed2cf073014ebef72cfb33b59762ed1241b9df93 | [] | no_license | KennyChrisUmurundi/HOsto | 16c8f926282fc48c981532447f1685fbbc2b457c | 33fa31524a08934f3deb8f622a1b1554d8ef1af4 | refs/heads/master | 2022-04-01T02:42:39.146227 | 2020-01-07T11:44:08 | 2020-01-07T11:44:08 | 193,458,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from django.urls import path
from django.contrib.auth import views as auth_views
from . import views as icu_views
from django.conf.urls.static import static
from django.conf import settings
app_name = 'icu'
urlpatterns = [
path('Medical Update/',icu_views.update_list,name="add-medical"),
path('scan/',icu_views.ScanCod... | [
"ndayikennysmuusic@gmail.com"
] | ndayikennysmuusic@gmail.com |
13daadc403ee347a1877bef70ef64461737e38cc | 5a71ca1f5c964f803350e3c1238cb48986db565c | /coinlibbitfinex/coinlibbitfinex/streamapi.py | d6eb6285f6a324d0a46d8cc40959a345f9c959cd | [] | no_license | tetocode/coinliball | fd644cbc16039ecad7e43228ea4e287ead5c8e5f | 41ebbac13c1fbba98aedaa766b9a505cb157f374 | refs/heads/master | 2022-09-28T21:58:08.130006 | 2020-06-04T03:00:56 | 2020-06-04T03:00:56 | 269,247,318 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,624 | py | import json
import logging
from typing import Hashable, Dict
from websocket import WebSocket
from coinlib.datatypes.streamdata import StreamData
from coinlib.trade.websocketstreamapi import WebSocketStreamApi
logger = logging.getLogger(__name__)
class StreamApi(WebSocketStreamApi):
URL = 'wss://api.bitfinex.co... | [
"_"
] | _ |
8af84a01d80c776522cf1031d8232f43427a9540 | 66bb3f65f0157a2b5475903c90a54d5173bc4f0a | /djthia/core/views.py | 702cc124bdbc259bc6fdc7f8295d8de0cd43d8fa | [
"MIT"
] | permissive | carthage-college/django-djthia | 691233049bcb05391fd82e390edb717f3bc0588a | 52401592291a980c7226c0573d415e7cdb8c20d3 | refs/heads/master | 2023-03-04T08:22:03.055448 | 2023-02-24T18:33:12 | 2023-02-24T18:33:12 | 249,989,382 | 0 | 0 | MIT | 2023-02-24T18:33:56 | 2020-03-25T13:43:24 | Python | UTF-8 | Python | false | false | 1,886 | py | # -*- coding: utf-8 -*-
import json
import requests
from datetime import datetime
from django.conf import settings
from django.core.cache import cache
from django.http import HttpResponse
from django.shortcuts import render
from django.urls import reverse_lazy
from django.utils.safestring import mark_safe
from django... | [
"plungerman@gmail.com"
] | plungerman@gmail.com |
15964455a90498f40c1b5832baba1979f60603a1 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_stanm_coin-jam.py | d03fbeb3caa801b73d052e9fa018ecc9ef309635 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 945 | py | #! /usr/bin/python
import sys
def rinp():
one = input()
_ = input().split(' ')
N = int(_[0])
J = int(_[1])
return (N, J)
def get_binary(num):
return "{0:b}".format(num)
def in_base(stng, base):
return int(stng, base)
def get_div(x):
for d in range(2, x):
if d * d > x:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
49876f9f114cb015c6ec0352ca7ce0cdded1edee | 0393e64ac4ed8e3d745b31d44836b58571faaabb | /aefingar_forritun/daemi21-while.py | 62b274d4f84b333ad325bb3863b604122476a8e9 | [] | no_license | danielthorr18/forritun_git | c3647e1e6dd35cd55287bb2d51066d8ab55ea931 | b544371664a15dd0660aef83cdf474e506e1b412 | refs/heads/master | 2020-03-28T00:04:50.700712 | 2018-11-15T15:26:42 | 2018-11-15T15:26:42 | 147,368,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | turns = int(input("Sláðu inn tölu: "))
counter = 0
while counter < turns:
pick = int(input("Sláðu inn tölu: "))
if pick % 2 == 1:
print("þú valdir", pick)
counter += 1 | [
"danielr18@ru.is"
] | danielr18@ru.is |
235bea81a7895dc78c4ca7bd704cd9fc6093faec | 7c5fb33929116bb77b438de3ead93b3978b5af71 | /alf/networks/action_encoder.py | 16792ab6d227f26716c18cf61406688f1e6c33a0 | [
"Apache-2.0"
] | permissive | HorizonRobotics/alf | d6dac891322a81ccb7e2a9749139627b1eda28cb | b00ff2fa5e660de31020338ba340263183fbeaa4 | refs/heads/pytorch | 2023-08-21T18:51:41.370566 | 2023-08-16T00:07:22 | 2023-08-16T00:07:22 | 178,459,453 | 288 | 57 | Apache-2.0 | 2023-09-14T20:40:20 | 2019-03-29T18:44:07 | Python | UTF-8 | Python | false | false | 2,719 | py | # Copyright (c) 2019 Horizon Robotics. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"noreply@github.com"
] | HorizonRobotics.noreply@github.com |
4c4e27e45b34e9331a3ec84ac79cfdf43b698848 | f2543f7266cc6f6bebee3d14081daaa676a6f80a | /tensorflow_federated/python/research/optimization/emnist_ae/dataset_test.py | aa4b7a71a5ea7055bce4f6d2649dd8c65cb6a93a | [
"Apache-2.0"
] | permissive | matech96/federated | d497d24e64399f6b1da673a8457e88a18bc29473 | b30a26d66162bd02a89a12f119e17925d161a26b | refs/heads/master | 2022-11-12T10:20:34.483506 | 2020-06-11T21:13:02 | 2020-06-11T21:13:30 | 271,650,529 | 0 | 0 | Apache-2.0 | 2020-06-11T21:31:51 | 2020-06-11T21:31:50 | null | UTF-8 | Python | false | false | 1,962 | py | # Copyright 2019, The TensorFlow Federated 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... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
caf01fee84b8f19a586c8dadd8b3aa0ec0be2030 | be3f8a09a5b8859fffa07673cdfd17723e843b86 | /src/Socket_Control/coordinate_collation_interface.py | 61179a2af41d390603fb1d43dad2348078877ed4 | [
"MIT"
] | permissive | SamKaiYang/2019_Hiwin_Shaking | 88646a0a9ff87dfe96a3fb90ede44602bd413d53 | d599f8c87dc4da89eae266990d12eb3a8b0f3e16 | refs/heads/master | 2020-07-22T13:25:21.063822 | 2019-09-09T03:29:11 | 2019-09-09T03:29:11 | 207,216,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,413 | py | #!/usr/bin/env python3
# license removed for brevity
#encoding:utf-8
import tkinter as tk
import shake_strategy_trigger as shake_trig
import shake_strategy_content as shake_cont
# interface for collation
# =======================================================================
# =23/07/2019:add above pos_collation ... | [
"tt00621212@gmail.com"
] | tt00621212@gmail.com |
7f824ee40e811bbb0b10b06bebe9de412a97a178 | 65e07d1e35598e5686e743e9bdefcdd5e1269a0d | /archiveit_redirect.py | 51440f3afb3374425033df8ef6d544f7754a5e5a | [] | no_license | ale-gaeta/bentley_scripts | 94dbf3e120c218ec0af8ed235bc304ca45b3518e | 2ad4b986212715a495036697d78952dc53dad74c | refs/heads/master | 2023-03-15T14:12:12.595590 | 2016-06-30T19:02:55 | 2016-06-30T19:02:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,501 | py | import os
from os.path import join
import requests
from lxml import etree
import csv
import re
import HTMLParser
def get_redirect_metadata(redirect_dict, collection_id, redirect_dir):
skip = ['createdDate','lastUpdatedDate','active','public','note','url']
starting_seeds = {}
for seed in redirect_dict:
... | [
"djpillen@umich.edu"
] | djpillen@umich.edu |
310c8ae150190d6740b6121ace9773d0a661e430 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/11/32/13.py | c3ba2816bd0c1116751668d1ffb42f0e53b1d0e5 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | filename = "B-large.in"
outputname = filename + "out.txt"
inFile = open(filename, 'r')
outFile = open(outputname, 'w')
numCases = int(inFile.readline())
def getTime(fullGapList, ttb, numStations):
currTime = 0
counter = 0
while currTime < ttb and counter < len(fullGapList):
currTime +... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
d521724116b490a6181f5b3f286c4bc901268838 | 93ff3a214354128910c5c77824c64678d78e556d | /downloads/views.py | cd885baeb2cf1ca88ff849bf9cbe45dc2e079bad | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | samoKrajci/roots | 1fc2c7f205ba9dc0d9026026253c7349c3a551aa | 9c6bf6ed30e8e6ff9099e9dca6d56a2df2ef10b0 | refs/heads/master | 2021-09-23T02:20:17.927687 | 2017-01-01T19:05:22 | 2017-01-01T19:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | from sendfile import sendfile
from django.conf import settings
from django.core.exceptions import PermissionDenied
from django.contrib.auth.decorators import login_required
@login_required
def download_protected_file(request, model_class, path_prefix, path):
"""
This view allows download of the file at the sp... | [
"tomasbabej@gmail.com"
] | tomasbabej@gmail.com |
2578e88ce408cf417424eda2136335cf2eb1c5d0 | a851830dbfd27d850e887d1cbc56c906512585d2 | /AS0/ps0-4-code.py | 7c37625f2438b193a9384e90e5fc0fc757b603e6 | [] | no_license | AlexisDrch/Computer-Vision | d6861f1e11401b6c0b131026bc22a76433b74025 | dc2687d53af73dd4e973bf969c48ae9f343bd49d | refs/heads/master | 2021-01-25T11:55:47.316194 | 2018-04-06T06:15:49 | 2018-04-06T06:15:49 | 123,440,935 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | # ### 4. Arithmetic and Geometric operations
from scipy import misc
from scipy import ndimage
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
# ### a.
# input 2 pictures as numpy ndarray
picture_1 = misc.imread('./pictures/ps0-1-a-1.jpg')
picture_2 = misc.imread('./pictures/ps0-1... | [
"aleksi.durocher@wanadoo.fr"
] | aleksi.durocher@wanadoo.fr |
3bb95ced81396f906f7822e77e1d040cd8901b31 | d33b2ce08591d23b06ab466f5dd6e302e3d4af2f | /fgcz_biobeamer.py.bak | 36ca192e64d75ab8a4deb5d3140b2ca66875ef94 | [] | no_license | Python3pkg/BioBeamer | 8b5fceb94664dbe7ce15603276f9628bbe6d25ca | 61dc1299fb47ece91ff9a7d333149cb2bfd500f3 | refs/heads/master | 2021-01-21T09:28:49.967511 | 2017-05-18T06:10:05 | 2017-05-18T06:10:05 | 91,655,529 | 0 | 0 | null | 2017-05-18T06:10:03 | 2017-05-18T06:10:03 | null | UTF-8 | Python | false | false | 1,595 | bak | #!/usr/bin/python
# -*- coding: latin1 -*-
"""
Copyright 2006-2015 Functional Genomics Center Zurich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your opti... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
7a024d0157cfc178d4f1771c56c94ee8a96ad515 | fd41984178ffba0846fa7ab1f67c1a0843a5e3ff | /自动化办公与鼠标键盘模拟/2.读取PDF文件/读取PDF文件.py | f2f9dc6056b35277a8a88b16d765a546092ed2d4 | [] | no_license | LasterSmithKim/Python-Base | 23f17472ee80f7224e96a4185775c9cd05ac7a98 | 27756126d999ddabf53b6bdc7114903a297464a0 | refs/heads/master | 2020-03-28T08:00:11.156911 | 2018-11-28T09:54:51 | 2018-11-28T09:54:51 | 147,939,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | import sys
import importlib
importlib.reload(sys)
from pdfminer.pdfparser import PDFParser,PDFDocument
from pdfminer.pdfinterp import PDFResourceManager,PDFPageInterpreter
from pdfminer.converter import PDFPageAggregator
from pdfminer.layout import LTTextBoxHorizontal,LAParams
from pdfminer.pdfinterp import PDFTextEx... | [
"kingone@yeah.net"
] | kingone@yeah.net |
7b684337197c473ca2fbb5bd628978519553e9fb | 2f07911e75ded21b80cae89ded82ce38f03a7931 | /example.py | 95c0f6863c126d023a70847fc9d9b552a45d593c | [] | no_license | benmaier/radial-distance-layout | 2b1571c34dd167301bfb8ea9750a177ac420cda9 | 9be12e2906138e239e72eeb6082ebcd3d569b3dc | refs/heads/master | 2022-02-23T08:09:58.174365 | 2022-02-12T21:44:41 | 2022-02-12T21:44:41 | 50,359,905 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | from radial_distance_layout import radial_distance_layout
import matplotlib.pyplot as pl
import networkx as nx
paths = [ [ 'a','b','c'] ]
paths += [ [ 'a','b','d'] ]
paths += [ [ 'a','e','f','g'] ]
paths += [ [ 'a','e','f','h'] ]
paths += [ [ 'a','e','i'] ]
paths += [ [ 'a','j','k'] ]
paths += [ [ 'a','j','l'] ]
di... | [
"benjaminfrankmaier@gmail.com"
] | benjaminfrankmaier@gmail.com |
3d4f973e6319ac02322d9c9e19a44bb5e11c4a74 | 360c777a2b77be466b1cf7c8fd74d6fd04f56b55 | /nexus_auth/models/ping.py | 7afa266c0b95f5154844d34bf4d67367e1726a27 | [
"MIT"
] | permissive | hreeder/nexus-auth | 790a3b2623ddf443138a4b0f0af1380dbc4db8ae | 8d51aef01647e32ba4a284f02de73a2caad7cf49 | refs/heads/master | 2021-01-10T10:08:37.190558 | 2016-02-29T12:27:21 | 2016-02-29T12:27:21 | 52,789,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | from nexus_auth import db
from nexus_auth.models.groups import Group
TYPE_SERVER = 0
TYPE_GROUP = 1
class PingServer(db.Model):
id = db.Column(db.Integer, primary_key=True)
servers = db.Column(db.Text)
display_name = db.Column(db.String(64))
class PingTarget(db.Model):
id = db.Column(db.Integer, prim... | [
"harry@harryreeder.co.uk"
] | harry@harryreeder.co.uk |
42e0edb633c9498ca865bd735ff7de4fec5a8333 | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /hr_payroll_account/models/hr_payroll_account.py | 8b32bbc1e6f2d79fb1556864a63d4f9623022933 | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,589 | py | #-*- coding:utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, _
from odoo.exceptions import UserError
from odoo.tools import float_compare, float_is_zero
class HrPayslipLine(models.Model):
_inherit = 'hr.payslip.line'
def _get_partne... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
8692c4889582e9c8f425306d8b5ac70d4ee7090e | e8cb5f716b064043708293f924ed1ba84005e417 | /examples/Redfish/ex09_find_ilo_mac_address.py | d05e42bb446a1e7359fb7eeacd4a665968932786 | [
"Apache-2.0"
] | permissive | injan0913/python-ilorest-library | 9207caeab89038f7e6ae803c55de183bda02edb3 | 8507d96cf7b9604a30ae6548cafc0003d1098b72 | refs/heads/master | 2020-12-24T22:20:13.135325 | 2016-06-23T18:26:33 | 2016-06-23T18:26:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | # Copyright 2016 Hewlett Packard Enterprise Development LP
#
# 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 requ... | [
"jackgarcia77@gmail.com"
] | jackgarcia77@gmail.com |
08dde7520a5cc6318c6ea6a3daea7417cf1e7d49 | 8050168c08d5bb26f0da6784ca3d536950d43810 | /activity/migrations/0009_auto_20190305_1508.py | b246aa4d037ae5a5422101d5dacb29818286457f | [] | no_license | qoutland/docent | 043f945d8a3016fdc54ee113a108a608e58456dc | f4dffaa3b72d922dfb99e40e7f73155ad25a2509 | refs/heads/master | 2022-12-15T00:13:24.940849 | 2019-05-02T17:55:43 | 2019-05-02T17:55:43 | 164,701,946 | 1 | 0 | null | 2022-11-22T03:31:43 | 2019-01-08T17:41:28 | Python | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.1.3 on 2019-03-05 23:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('activity', '0008_auto_20190305_1507'),
]
operations = [
migrations.AlterField(
model_name='activity',
name='pic_url'... | [
"="
] | = |
5a2ebd58eb237a8079aa77a1e5023bf20e50f182 | 4659f206098fdcaa72b059f1c5e4afe4c5fad3d5 | /planemo-de/xenv/lib/python3.7/site-packages/galaxy/__init__.py | 7653e9a409809c7918eef0427eacfbc2d38e427d | [] | no_license | Slugger70/galaxy-metabolomics | e1ef083316394ace66c1f69c313db0a0fc8c3dec | 0cbee8fe9e7cf1cc37832751ffdd9f88ff363136 | refs/heads/master | 2020-09-19T21:51:16.177730 | 2019-11-26T23:54:43 | 2019-11-26T23:54:43 | 224,306,539 | 0 | 0 | null | 2019-11-26T23:45:53 | 2019-11-26T23:45:52 | null | UTF-8 | Python | false | false | 370 | py | # -*- coding: utf-8 -*-
__version__ = '19.5.2'
PROJECT_NAME = "galaxy-lib"
PROJECT_OWNER = PROJECT_USERAME = "galaxyproject"
PROJECT_URL = "https://github.com/galaxyproject/galaxy-lib"
PROJECT_AUTHOR = 'Galaxy Project and Community'
PROJECT_EMAIL = 'jmchilton@gmail.com'
RAW_CONTENT_URL = "https://raw.github.com/%s/%s... | [
"ma.bioinformatics@gmail.com"
] | ma.bioinformatics@gmail.com |
8e3355f79679a4b37fc3d64860a4ce31c5548fa8 | de8cfb5a1d39b40543e8e9d3f960f4b675781a08 | /dask/dataframe/shuffle.py | 4e85c7ce2194acd2302fb1ddeb476a43d0f86fd6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JDWarner/dask | 8b5c676d9078ecc498deb8fd47a54e1676c00a5f | 3dec8e3526520459668ced05f8e144fd7605d5ec | refs/heads/master | 2021-01-18T21:02:18.344193 | 2015-07-15T20:00:51 | 2015-07-15T20:00:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,141 | py | from itertools import count
from collections import Iterator
from math import ceil
from toolz import merge, accumulate, merge_sorted
import toolz
from operator import getitem, setitem
import pandas as pd
import numpy as np
from .. import threaded
from ..optimize import cull
from .core import DataFrame, Series, get, _F... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
6284288aa94622d03c3f24e10f3eb63df2e27dd0 | 22bcb68759d516eea70d18116cd434fcd0a9d842 | /scrap/infibeam_books_scrap1.py | 0fbafc3b59b8a0f06df21d43016818f71ac9c0f6 | [] | no_license | lovesh/abhiabhi-web-scrapper | 1f5da38c873fea74870d59f61c3c4f52b50f1886 | b66fcadc56377276f625530bdf8e739a01cbe16b | refs/heads/master | 2021-01-01T17:16:51.577914 | 2014-10-18T15:56:42 | 2014-10-18T15:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,183 | py | import downloader
import dom
import urllib2
import re
import time
import math
import pymongo
from collections import defaultdict
import datetime
siteurl='http://www.infibeam.com'
category_browser='http://www.infibeam.com/Books/BrowseCategories.action'
subcategory_browser='http://www.infibeam.com/Books/BrowseCategories... | [
"lovesh.bond@gmail.com"
] | lovesh.bond@gmail.com |
676a8d4121ad27fd5bfa82844f08c833b388178c | ffab02cf7e1213f91923cb1343cef4616a7de5a7 | /venv/bin/isort | 6d23f4819e78f95b81f0dc605acf081309c42fe5 | [] | no_license | mornville/flask_blog | 4e50d6c3f835274589b278ce14f2f445b691b087 | bf66060f3f519170e3d4865e6d85b6543359e9b0 | refs/heads/master | 2021-12-28T08:27:04.556959 | 2019-10-01T14:57:09 | 2019-10-01T14:57:09 | 203,522,537 | 0 | 0 | null | 2021-12-13T20:16:58 | 2019-08-21T06:37:56 | Python | UTF-8 | Python | false | false | 251 | #!/Users/ashutoshjha/Desktop/flask_blog/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"aj97389@gmail.com"
] | aj97389@gmail.com | |
1dffe5f62462692c17b0917a0d9f33174704c851 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/1215.py | 2727d86b5e032b798fe4ae7360d004c88b3cc807 | [] | 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 | 757 | py | def tidy(n):
a = list(str(n))
if len(a)>=2:
for i in range(len(a)-1):
if a[i]>a[i+1]:
a[i] = str(int(a[i])-1)
for j in range(i+1, len(a)):
a[j] = '9'
a = ''.join(a)
out = int(a)
return out
def check_tidy(n):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
93149bb3a6b9892081504d75a719a82d1a7fa2e1 | f0a44b63a385e1c0f1f5a15160b446c2a2ddd6fc | /examples/transform_cube.py | f9f45274bed9265c28b79a03dfd4e3ccccfa5ad1 | [
"MIT"
] | permissive | triroakenshield/ezdxf | 5652326710f2a24652605cdeae9dd6fc58e4f2eb | 82e964a574bcb86febc677bd63f1626318f51caf | refs/heads/master | 2023-08-17T12:17:02.583094 | 2021-10-09T08:23:36 | 2021-10-09T08:23:36 | 415,426,069 | 1 | 0 | MIT | 2021-10-09T21:31:25 | 2021-10-09T21:31:25 | null | UTF-8 | Python | false | false | 1,407 | py | # Copyright (c) 2020-2021 Manfred Moitzi
# License: MIT License
from pathlib import Path
import math
import ezdxf
from ezdxf import zoom
from ezdxf.math import UCS
DIR = Path("~/Desktop/Outbox").expanduser()
p = [
(0, 0, 0),
(1, 0, 0),
(1, 1, 0),
(0, 1, 0),
(0, 0, 1),
(1, 0, 1),
(1, 1, 1)... | [
"me@mozman.at"
] | me@mozman.at |
40c80298125d22d148038ffefb051f1a267a1a50 | 6e3b8a04a074c30cf4fc43abe7a208f772df795b | /Mid-Exam/2-task.py | 58c67fe8bae90b41f94cde4ab24bb1499bf056e6 | [] | no_license | majurski/Softuni_Fundamentals | dc0808fdaab942896eebfb208fb6b291df797752 | bf53a9efdcb45eb911624ab86d762a6281391fb8 | refs/heads/master | 2022-11-29T06:06:06.287984 | 2020-08-10T19:36:18 | 2020-08-10T19:36:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | arr = input().split()
new_arr = list(map(int, arr))
result = []
line = input()
while line != "end":
value = line.split()
command = value[0]
if command == "swap":
index_1 = int(value[1])
index_2 = int(value[2])
new_arr[index_1], new_arr[index_2] = new_arr[index_2], new_arr[index_1]
... | [
"noreply@github.com"
] | majurski.noreply@github.com |
72791e17e71456aade20cc9cc4e32de6523e144b | 34f5146e25144d4ceced8af38b5de2f8fff53fdd | /ui/mainwindow.py | 158a3002e7c464033c18697b89cd33491f8128a1 | [] | no_license | fadiga/mstock | 3271eeb0b8339b27347bbb70b96bc1f161ed6901 | a5f621ed58bd881d9a232498ef23762a5f9c186f | refs/heads/master | 2021-05-25T11:56:28.430965 | 2017-09-25T19:08:27 | 2017-09-25T19:08:27 | 39,653,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
# maintainer: Fad
from __future__ import (
unicode_literals, absolute_import, division, print_function)
from PyQt4.QtGui import QIcon
from PyQt4.QtCore import Qt
from Common.ui.common import FMainWindow, QToolBadgeButton
from ui.menut... | [
"ibfadiga@gmail.com"
] | ibfadiga@gmail.com |
1e97caa9740ddd276af8721952d53c64e6237066 | de8b832a3c804837300b9974dc0151d9294fa573 | /code/experiment/GenderSoundNet/ex18_1_1_1_1_1_1_1_1_1_1_1_1_1_1/genderSoundNet.py | d318188bf1b8d63c08f77854ab0b089a4eff19a9 | [] | no_license | YuanGongND/Deep_Speech_Visualization | fcff2ac93e5adffd707b98eb7591f50fe77c1274 | 73a79e3596d9a5ee338eafb9a87b227696de25d1 | refs/heads/master | 2021-07-19T23:00:36.294817 | 2017-10-28T01:04:59 | 2017-10-28T01:04:59 | 105,332,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,377 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 26 21:03:04 2017
Conduct erxperiment on IEMOCAP, three labels:
96001: emotion(0-4, 5 = other emotions)
96002: speaker(0-9)
96003: gender(male=0, female=1)
@author: Kyle
"""
import os
from sys import argv
_, newFolderName, gpuI = argv
os.environ["... | [
"ygong1@nd.edu"
] | ygong1@nd.edu |
4e98cba026ffbfa488d602586ed1fb56b70a4b3e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/117/usersdata/168/26292/submittedfiles/al2.py | 2636de789a2d58357263296f2d1affdab045e0ff | [] | 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 | 136 | py | from __future__ import division
#INICIE SEU CDIGO AQUI
n=float(input('Digite n'))
n1=int(n)
n2=n-int
print('%.2f'%n1)
print('%.2f'%n2)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1872c2b02787510ea089a882647d262201237e43 | e7f708af4b599ec6763e0d3b311e2cb47cc155d8 | /payments/admin.py | f69953885eba02d24436b82c8477468a8e0d0cfd | [] | no_license | dmontoya1/tu-licencia | d48bc8779d8cda50c7a382cb1c14e2ae3668ebc8 | d436d665ba797d7b90fcdcc58bcef3e79b917682 | refs/heads/master | 2023-05-14T16:38:52.408066 | 2020-06-08T20:24:39 | 2020-06-08T20:24:39 | 371,433,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# from .models import Invoice
# class InvoiceAdmin(admin.ModelAdmin):
# list_display = ('__unicode__', 'user', 'release_date', 'is_discharged', 'payment_status')
# readonly_fields = ('release_date', )
# sea... | [
"dmontoya@apptitud.com.co"
] | dmontoya@apptitud.com.co |
015f94220909b436deb31345160eebc80132c586 | 3ab1f37b4372d0796c85ef24343dd8c03accb6ef | /OddEvenLinkedList.py | 5004fdb3d7cf1ccbd577d641dc11c9e1fe6a488c | [] | no_license | Blossomyyh/leetcode | 2be6a99534801fc59fe9551317ca49c3704b1c3d | 38615779eb43d147587467e11dc22761ac0726cb | refs/heads/master | 2023-01-22T16:56:26.624677 | 2020-11-20T13:47:43 | 2020-11-20T13:47:43 | 266,845,278 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def oddEvenList(self, head: ListNode) -> ListNode:
if not head or head.next == None: return head
odd, even, second = head, head.next, head.... | [
"blossomyyh@163.com"
] | blossomyyh@163.com |
4e69526e2f22b9e6ead9e0673d893c9460e3b570 | fc1cc515a65e844705cc6262a70cd0a12ce1d1df | /math/0x00-linear_algebra/2-size_me_please.py | f9800d2c3bc375d8df09bd35e4d0cfd25402da82 | [] | no_license | yulyzulu/holbertonschool-machine_learning | 4f379a4d58da201e8125bd8d74e3c9a4dfcf8a57 | d078d9c1c5bd96730a08d52e4520eb380467fb48 | refs/heads/master | 2022-12-26T12:01:25.345332 | 2020-10-03T03:19:05 | 2020-10-03T03:19:05 | 279,392,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | #!/usr/bin/env python3
""" Module to execute function """
def matrix_shape(matrix):
"""Function that calculates the shape of a matrix"""
shape = []
shape.append(len(matrix))
while type(matrix[0]) == list:
matrix = matrix[0]
shape.append(len(matrix))
return shape
| [
"yulyzulu05@gmail.com"
] | yulyzulu05@gmail.com |
9ca06377d8cd9fbe39082bfb3d7983c1eb7ddd2c | 6b27c39edc10b1353104043b7a523f4981c99ef2 | /pytype/tools/merge_pyi/test_data/stars.pep484.py | 56d6529efedb9cc54e761bdb5952bafc66cde7b3 | [
"Apache-2.0",
"MIT"
] | permissive | google/pytype | ad0ff0b6c1083b4f0a1af1747869d422f2b5f4d8 | bda0b9547af9a084bb2bd1427f58dcde968e48b5 | refs/heads/main | 2023-08-26T17:52:23.546035 | 2023-08-24T22:48:00 | 2023-08-24T22:48:00 | 32,483,713 | 4,595 | 367 | NOASSERTION | 2023-09-13T04:40:45 | 2015-03-18T20:52:08 | Python | UTF-8 | Python | false | false | 288 | py | def f1(*a):
pass
def f2(**a):
pass
def f3(a, *b):
pass
def f4(a, **b):
pass
## arg with default after *args is valid python3, not python2
def f5(*a, b=1):
pass
def f6(*a, b=1, **c):
pass
def f7(x=1, *a, b=1, **c):
pass
def f8(#asd
*a):
pass
| [
"rechen@google.com"
] | rechen@google.com |
eacef7a09f8311f33624a9f5acb965d5ec877336 | 7d8022661a756f77f715ee4d099fb17cb9da671a | /engine/data_loader.py | 6e92e9d69aff6df248ddbe721e11db9904459073 | [] | no_license | lxj0276/Quant-Util | a7d70d88fc47eb16a08149faefa7b128c01c670e | 2706ecba72a293ee01105ad22508a8d6b20e1394 | refs/heads/master | 2020-04-25T13:40:36.700892 | 2018-10-15T04:35:54 | 2018-10-15T04:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | import os
from collections import OrderedDict
import pandas as pd
from engine.cons import *
from engine.utils import get_calendar
from feature.time import TimeRange
from mongoapi.get_data import get_day_trade_data
from redis_cache.rediscache import cache_it_pickle
class pricing_data_loader:
def __init__(self, lo... | [
"zhangzc@pku.edu.cn"
] | zhangzc@pku.edu.cn |
7c38dda3f18562b3df7eecb78e86f2712b212369 | b5d72e68c3976766a7adfd1fa33f778a5268c84a | /Regex/ex1.py | 35628e29ded201a4fa05a049420dc39525ee29d4 | [] | no_license | LizinczykKarolina/Python | 4a2fb0e7fb130c86239b2666fb346bf35a8e655b | 7f4a3a9cba15fd2b4c7a104667461b3c49f8b757 | refs/heads/master | 2021-06-18T21:43:52.983557 | 2017-06-17T21:24:01 | 2017-06-17T21:24:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #1. Write a Python program to check that a string contains only a certain set of characters (in this case a-z, A-Z and 0-9).
import re
email_address = 'wieczorek.karolina1@o2.pl'
searchObj = re.search(r'[a-zA-Z0-9.]', email_address, re.M | re.I)
if searchObj:
print True
else:
print False
"sxdupa1" -match ... | [
"wieczorek.karolina1@o2.pl"
] | wieczorek.karolina1@o2.pl |
f3ae22f885b78d753d9dbc851fea38a065e80d88 | 9fc768c541145c1996f2bdb8a5d62d523f24215f | /code/HomeWork/ch5/H_5_4.py | a92df699ef2667ea9bcb8c973b7297b29db61309 | [] | no_license | jumbokh/pyclass | 3b624101a8e43361458130047b87865852f72734 | bf2d5bcca4fff87cb695c8cec17fa2b1bbdf2ce5 | refs/heads/master | 2022-12-25T12:15:38.262468 | 2020-09-26T09:08:46 | 2020-09-26T09:08:46 | 283,708,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # H_5_4.py 功能:輸入數字後判斷是否為11的倍數
num_even = 0 # 儲存偶數位數字暫存
num_odd = 0 # 儲存奇數位數字暫存
number = str(input('請輸入數字 : '))
l = len(number) # 判斷輸入數字之長度
x = int(number) # 轉換成數值型態
for n in range(l,0,-1):
y = x//(10**(n-1)) # 計算奇偶位數字
x = x - (y*(10**(n-1)))
if n%2 == 0: # 判斷若是偶數位數字則儲存在偶數位暫存,反之存奇數位暫存
num_even = nu... | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
6eeb30afedb9faf5956630200d67199cef30815d | 2a4a17a67b9069c19396c0f8eabc8b7c4b6ff703 | /BGP3D/Chapter11/WorldClass_00.py | 2cd366287c64b1790280d87dd425c04951cc0271 | [] | no_license | kaz101/panda-book | 0fa273cc2df5849507ecc949b4dde626241ffa5e | 859a759c769d9c2db0d11140b0d04506611c2b7b | refs/heads/master | 2022-12-19T09:36:05.794731 | 2020-09-16T19:04:10 | 2020-09-16T19:04:10 | 295,784,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | ''' World Class
This class is the launching point for the game.
This is the file that needs to run to start the game,
and this class creates all the pieces of the game.
'''
import direct.directbase.DirectStart
from direct.filter.CommonFilters import CommonFilters
from HUDClass_00 import HUD
from RaceClass_0... | [
"kaz101130@gmail.com"
] | kaz101130@gmail.com |
93770b04b06cc4bee60b772d822f418ad8a272c9 | faca8866b3c8aca30a915d8cb2748766557ed808 | /object_detection_updata/metrics/tf_example_parser.py | 510e6917fa9838e9282ec6f561e50cb77a7b5ff9 | [] | no_license | yongqis/proposal_joint_retireval | 6899d80f8fb94569c7b60764f6e7de74bcfa9cc8 | 97b086c62473ab1a5baf45743535fce70c3f8c20 | refs/heads/master | 2020-05-25T19:07:22.946008 | 2019-06-03T07:09:04 | 2019-06-03T07:09:09 | 187,943,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,294 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"syq132@live.com"
] | syq132@live.com |
d83ff9d35756aa203096778316d1f1840a266b4c | d9f6f439300d298246c37ccfb881e8e8af4fda22 | /cfp/migrations/0021_profile_name.py | 814cb2ed2021c677ece96c65e1671b44cb2a0824 | [
"MIT"
] | permissive | ajlozier/speakers | e62b8d346a58a034998860d1b42a38b00cbdbd23 | d7d87c99b1cfa5f9df5455f737385115d9d5279c | refs/heads/master | 2021-09-08T19:33:08.894305 | 2018-03-12T00:54:10 | 2018-03-12T00:54:10 | 122,101,157 | 0 | 0 | null | 2018-02-19T18:08:18 | 2018-02-19T18:08:18 | null | UTF-8 | Python | false | false | 444 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cfp', '0020_auto_20150218_0802'),
]
operations = [
migrations.AddField(
model_name='profile',
name='... | [
"kyle@kyleconroy.com"
] | kyle@kyleconroy.com |
e5d51b840f9d3e61bbf612efe4cb4e6c26e84ce6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_actor.py | 04e32c50a329bba627e107500de9e8bd1c6b493f | [
"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 | 386 | py |
#calss header
class _ACTOR():
def __init__(self,):
self.name = "ACTOR"
self.definitions = [u'someone who pretends to be someone else while performing in a film, play, or television or radio programme: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'noun... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
75af3c206ddd4f8e25574cabd71067f19214176c | 4170ed62059b6898cc8914e7f23744234fc2f637 | /CD zum Buch "Einstieg in Python"/Programmbeispiele/GUI/gui_check.py | 5f2ffb98025c0f74ac7ab1c38d5a0295e3aeec43 | [] | no_license | Kirchenprogrammierer/Cheats | 9633debd31ab1df78dc639d1aef90d3ac4c1f069 | 0b71c150f48ad1f16d7b47a8532b1f94d26e148e | refs/heads/master | 2021-05-08T10:42:39.927811 | 2018-02-01T17:29:11 | 2018-02-01T17:29:11 | 119,858,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import tkinter
def ende():
main.destroy()
def anzeigen():
lb["text"] = "Zimmer " + du.get() + " " + mb.get()
main = tkinter.Tk()
# Anzeigelabel
lb = tkinter.Label(main, text = "Zimmer ", width=40)
lb.pack()
# Widget-Variablen
du = tkinter.StringVar()
du.set("ohne Dusche")
mb = tkinter.Stri... | [
"noreply@github.com"
] | Kirchenprogrammierer.noreply@github.com |
8f95dcb9c22025b63932cb30e24ae18203a9dc38 | ce48d74eb28ec153573cd42fe58d39adc784c85c | /jdcloud_sdk/services/xdata/models/DwDatabaseInfo.py | bedf36eee3a80637f1aaf4c87b6493744b5f6c2c | [
"Apache-2.0"
] | permissive | oulinbao/jdcloud-sdk-python | 4c886cb5b851707d98232ca9d76a85d54c8ff8a8 | 660e48ec3bc8125da1dbd576f7868ea61ea21c1d | refs/heads/master | 2020-03-16T22:22:15.922184 | 2018-05-11T10:45:34 | 2018-05-11T10:45:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # coding=utf8
# Copyright 2018-2025 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:#www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.