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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
669f35e2b5d1caafa0b18d4b8d19c348c798a800 | 17c380fe1fee2d6dd7a249c506a6b8827c3d0417 | /17/t17.py | c85a1e58f740f2eb5c35f08f7bc73f68a8cff619 | [] | no_license | LubosKolouch/adventofcode_2019 | b80f0603ee2a642c56def502b1575dde6e1f02b2 | 84d381f3ad416940de6c891ee095e1770f44c0bf | refs/heads/master | 2023-02-06T14:08:30.962125 | 2020-12-28T08:04:54 | 2020-12-28T08:04:54 | 225,130,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,692 | py | #! python3
import sys
from pprint import pprint
import numpy as np
from itertools import permutations
import csv
from collections import deque,defaultdict
import networkx as nx
# keep grid state in grid
# x,y for robot
# deque for steps taken
# look around, can find uknown field => try to move to it
# if oxygen found... | [
"lubos@kolouch.net"
] | lubos@kolouch.net |
d0edae97f3234f98ea514da1b69ccddf03d41cf2 | c37b599dc08153dd72436c69933243ce60048391 | /homeassistant/components/zha/core/group.py | 4fc86012d1afe716bcbec797dcb134d40b506620 | [
"Apache-2.0"
] | permissive | perara/home-assistant | 2abb44b88ae248e086c4d4e568d79a993152f1ab | dee557872bfbc759555bd73e006e46f9ecb16063 | refs/heads/dev | 2020-04-01T19:06:37.239471 | 2020-03-30T23:06:53 | 2020-03-30T23:06:53 | 153,535,277 | 2 | 1 | Apache-2.0 | 2018-10-18T23:30:09 | 2018-10-17T23:14:37 | Python | UTF-8 | Python | false | false | 4,339 | py | """Group for Zigbee Home Automation."""
import asyncio
import logging
from typing import Any, Dict, List
from zigpy.types.named import EUI64
from homeassistant.core import callback
from homeassistant.helpers.entity_registry import async_entries_for_device
from homeassistant.helpers.typing import HomeAssistantType
fr... | [
"noreply@github.com"
] | perara.noreply@github.com |
071d32d9a9a8ba1012ae4db1213484abe6b375b5 | ba1e90ae6ea9f8f74d9b542e159825341c717712 | /2015/cook6232.py | b4aa472148bcc52eb13144faa267af64c4dccb14 | [] | no_license | sailesh2/CompetitiveCode | b384687a7caa8980ab9b9c9deef2488b0bfe9cd9 | 5671dac08216f4ce75d5992e6af8208fa2324d12 | refs/heads/master | 2021-06-24T22:39:11.396049 | 2020-11-27T05:22:17 | 2020-11-27T05:22:17 | 161,877,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | import math
t=input()
i=0
while i<t:
x=raw_input().split(' ')
a=int(x[0])
r=int(x[1])
val=math.log(a,2)
valu=math.log(r,2)
ctr=0
if val==int(val):
ctr=ctr+int(valu)-int(val)+1
else:
ctr=ctr+int(valu)-int(val)
#print ctr
#print ... | [
"sailesh.ku.upadhyaya@gmail.com"
] | sailesh.ku.upadhyaya@gmail.com |
02f1982f52977dba2f119174a1cc41267af901d1 | 955b968d46b4c436be55daf8aa1b8fc8fe402610 | /ch07/test_project/runtest.py | 691edc3494a2b355896bb7d736cabd8e750a041d | [] | no_license | han-huang/python_selenium | 1c8159fd1421b1f0e87cb0df20ae4fe82450f879 | 56f9f5e5687cf533c678a1c12e1ecaa4c50a7795 | refs/heads/master | 2020-03-09T02:24:48.882279 | 2018-04-07T15:06:18 | 2018-04-07T15:06:18 | 128,535,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
if __name__ == '__main__':
test_dir = './test_project/test_case'
# use the following command according to your position
# (C:\Users\Han\Anaconda3) C:\Users\Han\selenium_test\ch07>python test_project\runtest.py
# test_baidu
# .test_youda... | [
"vagrant@LaravelDemoSite"
] | vagrant@LaravelDemoSite |
a1514ec6cf256948f5a05abe38392dc1b3d6988b | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /1.2.1/examples/old_animation/animate_decay_tk_blit.py | cae4c4a2b9738ef36bfa60dbb049891fc4748c57 | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 1,362 | py | from __future__ import print_function
import time, sys
import numpy as np
import matplotlib.pyplot as plt
def data_gen():
t = data_gen.t
data_gen.t += 0.05
return np.sin(2*np.pi*t) * np.exp(-t/10.)
data_gen.t = 0
fig = plt.figure()
ax = fig.add_subplot(111)
line, = ax.plot([], [], animated=True, lw=2)
ax... | [
"mdboom@gmail.com"
] | mdboom@gmail.com |
aa265207ea29c09f527c34c01a1bcab2fb2f2c29 | 79acd6922037d309857d95fb4a633788525a0535 | /traffic_ops/testing/api_contract/v4/test_cdn_notifications.py | ffbde0cfc67d3d2aa72b3b9a3600860b1e70b144 | [
"Apache-2.0",
"MPL-2.0",
"BSD-3-Clause",
"CC0-1.0",
"Artistic-2.0",
"CC-BY-SA-4.0",
"MIT",
"ISC",
"BSD-2-Clause",
"OFL-1.1",
"JSON",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"WTFPL",
"LGPL-2.0-or-later",
"X11"
] | permissive | apache/trafficcontrol | 86da3a526e5e0d533547969274cd30d74636d922 | e835435e47175f84a04234d15183ab7b61cc2825 | refs/heads/master | 2023-08-31T08:02:25.363164 | 2023-08-30T23:00:43 | 2023-08-30T23:00:43 | 67,198,520 | 811 | 438 | Apache-2.0 | 2023-09-14T18:12:55 | 2016-09-02T07:00:06 | Go | UTF-8 | Python | false | false | 3,421 | py | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | [
"noreply@github.com"
] | apache.noreply@github.com |
2858574beee37ead615d1ec149cde8c23c960521 | 83b242997a1560214285fd38ab4d39a0b1210ddc | /opencv/GridLayoutOpenCVImageView.py | d7ea3d0a5847c6a1f77ca525b5dc4b9262973cae | [] | no_license | ivartz/vid2fft | 0a25d853e178b43fd0a5f765934887963f5c37f9 | 1b6ec82de04f86819ab4c1056d4f9d9bde1ed9c8 | refs/heads/master | 2020-08-07T21:44:28.745553 | 2019-10-08T09:18:41 | 2019-10-08T09:18:41 | 213,594,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | #/******************************************************************************
#
# Copyright (c) 2018 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
#
# 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 ... | [
"djloek@gmail.com"
] | djloek@gmail.com |
fa95bfcf77fa09a23c7924c3a286ce78947100cb | 3603f8f76ff81ea75bfc916888bdcfa55b7f12e4 | /alds/alds1_14_d.py | 975679140adc5dbd6eefa01c4723c51ecfa045a1 | [] | no_license | kimotot/aizu | 4de0319959a3b166b8c2c4940ab7b701b6ee3395 | 315be1240cff733e1c6a7cd98942a95b3bd7ec96 | refs/heads/master | 2021-07-24T12:37:41.935302 | 2021-03-10T09:05:05 | 2021-03-10T09:05:05 | 91,927,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | BASE = 127
MASK = (1 << 32) - 1
BASE_D = {}
def calc_hash(t, tl, pl):
res = set()
tmp = 0
for i in range(pl):
tmp = (tmp * BASE + t[i]) & MASK
res.add(tmp)
if pl - 1 in BASE_D:
BASE_K = BASE_D[pl - 1]
else:
BASE_K = 1
for _ in range(pl - 1):
BASE_K ... | [
"god4bid@hear.to"
] | god4bid@hear.to |
43335228d802178391f31941a9e0fa159ce87500 | 909afe0216a37bdc19683d81e533fa6c094329c1 | /python/sorts/shell_sort.py | 67299c1495d6b4639ee791f37cc6da5544dc356b | [] | 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 | 976 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: wxnacy(wxnacy@gmail.com)
# Description: 希尔排序
import time
import random
import utils
def shell_sort(nums: list):
gap = 1
while gap < len(nums) // 3:
gap = gap * 3 + 1
while gap > 0:
for i in range(gap, len(nums)):
tmp = num... | [
"371032668@qq.com"
] | 371032668@qq.com |
fbad24f82cc33754aabee50875a18d984d94fa03 | dbe9d697b3ec48c6561a39f16912fd1dc5f56e9a | /BuildSimHubAPI/measures/cooling_all_cop.py | 48ee96a7b00ec2c8498b12b2ca903881f87ad752 | [
"MIT"
] | permissive | mostaphaRoudsari/buildsimhub_python_api | 0e0cff43415e4e6d2833cd6519841ab0cdd2b5be | 4a562a678fc2f9671f9fc62faae46b79c448a922 | refs/heads/master | 2020-03-08T23:29:37.855206 | 2018-04-23T14:21:24 | 2018-04-23T14:21:24 | 128,465,836 | 0 | 0 | MIT | 2018-04-23T00:46:04 | 2018-04-06T20:11:40 | HTML | UTF-8 | Python | false | false | 354 | py | from .model_action import ModelAction
class CoolingCOP(ModelAction):
def __init__(self):
ModelAction.__init__(self, 'cooling_all_equip')
def get_num_value(self):
return ModelAction.num_of_value(self)
def set_datalist(self, datalist):
# this is just a on off option
ModelAc... | [
"weilix@alumni.cmu.edu"
] | weilix@alumni.cmu.edu |
6fbc71491ef7242a8f62c4233a3cdcb118750c8e | 45e8c30fbcd754e780230c3afd8a587f0833f4b0 | /blender_2.03_tree/lib/Python/Tools/Scripts/ifdef.py | c90c5714934e7aa240bf92c9207723b5dfb87669 | [] | no_license | daar/bare-blender | 2fdfb312a1d8f3048346bfa504aa863a61cfe814 | 3306d88a2ac9f78bcc7830c4bcafb4f2c7db7897 | refs/heads/master | 2021-01-16T17:47:42.303184 | 2015-05-19T21:33:46 | 2015-05-19T21:33:46 | 32,135,666 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,257 | py | #! /usr/bin/env python
# Selectively preprocess #ifdef / #ifndef statements.
# Usage:
# ifdef [-Dname] ... [-Uname] ... [file] ...
#
# This scans the file(s), looking for #ifdef and #ifndef preprocessor
# commands that test for one of the names mentioned in the -D and -U
# options. On standard output it writ... | [
"dhkblaszyk@zeelandnet.nl"
] | dhkblaszyk@zeelandnet.nl |
e0155ee40ac561e9dbef92f98a18c26f788b0444 | b6e6060b2d5df98436b78b21e61e82a5e2a25aed | /neurolib/tests/models/test_dkf_build.py | 9e76a20ff5e46596fd791ac787ff8fcbe60e6899 | [] | no_license | gumpfly/neurolib | f7ba01d6539baf760eb10585e3cfa5cb1a077b8f | 12ee60e78f384a9fa9b780a614fae7b72d9b5b19 | refs/heads/master | 2020-12-02T14:55:10.829786 | 2019-03-22T20:11:03 | 2019-03-28T23:42:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | # Copyright 2018 Daniel Hernandez Diaz, Columbia University
#
# 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 applicabl... | [
"dh2832@columbia.edu"
] | dh2832@columbia.edu |
4f04e500a77f74aaea687b7c9d11fcceb12a9dd8 | 3dedff16fa0cbabbd3972189d7a47cbf7ef5a700 | /regex/book-collect-proj.py | 7256f5fef5ea4e73ac874cc04815a5ad8ca9b109 | [] | no_license | khmahmud101/python-practice-code | 5abb146dab4ff94e142a6f0836a831502afc206c | 58dd863e233a1901f9b36a1eacb16e7ac6298aff | refs/heads/master | 2020-08-04T10:21:21.860710 | 2020-01-14T06:15:44 | 2020-01-14T06:15:44 | 212,105,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | import re
import requests
import os
import sys
def create_directory(name):
print("Creating directory",name)
try:
os.mkdir(name)
except FileExistsError:
print(name, "Already exists")
def download_image(img_url, file_name):
print("downloading image",img_url)
r = requests.get(img_url)
... | [
"kmahmud1991@gmail.com"
] | kmahmud1991@gmail.com |
594538e0c3fa474cea75a814a7965e74957ab8d8 | d12b59b33df5c467abf081d48e043dac70cc5a9c | /ixnetwork_restpy/testplatform/sessions/ixnetwork/statistics/view/availabletrafficitemfilter/availabletrafficitemfilter.py | a351f7cdbbfe2bc8b176041a808380bb7b6e0f3a | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,017 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
84bb5135cae15455cc01115155784b904470b373 | 58db5cdab90e34107018892b69c6b4ed63fc2604 | /heap_experimenting.py | d375b12a0a06e123a87547175bf7708ab94cc682 | [] | no_license | jamiejamiebobamie/pythonPlayground | 2b329d0a8741146f7a715b15b33c4e2f24a9a677 | b622eeb78b22760d2570cc085716f74b344072e8 | refs/heads/master | 2020-04-14T15:03:01.127800 | 2019-10-03T23:34:32 | 2019-10-03T23:34:32 | 163,914,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py |
"""
Given an unsorted array, return the 2nd largest element.
"""
import heapq
A = [1001,22,3,45,56,666,75,8,90,100,11]
my_first_heap = heapq.heapify(A) #time complexity? O(n) or O(nlogn)
print(A) #checking to see if it worked... heapify is in place, apparently.
for i, item in enumerate(A):
if 2*i+2 < len(A):
... | [
"jmccrory@vt.edu"
] | jmccrory@vt.edu |
3a098e438624b9b860bd1cd8b95c15a5de68ea1c | fe84a4b596b66cfbd9136df434fc650cba88a381 | /linked_list.py | fa03abc55be4684faabde4f05fcc9435682c5281 | [] | no_license | halida/book_admin | 7cd31a8291074eaef4a5e307b2d3d8730d8cc3de | 691bda72399d33a779f9db3305f5f9aef7a52308 | refs/heads/master | 2021-01-10T20:45:04.305940 | 2011-10-20T08:20:51 | 2011-10-20T08:20:51 | 2,611,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,154 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
"""
module: linked_list
"""
class LinkedList():
def __init__(self, *args):
self.data = [None, None]
self.tail = self.data
self.length = 0
if len(args) > 0:
for v in args:
self.append(v)
def appand(self, v):
... | [
"linjunhalida@gmail.com"
] | linjunhalida@gmail.com |
0714fd3809c8332196ade2710ae7d365ff4fa9d5 | 8ffd55d70d14664d3486b60d401730248bbbaea7 | /lesson_1/var3.py | cb59e1b19a9a964b0a7a68aec6b249fa3eec4a6b | [] | no_license | MeSmoker/epixx | ef63b00cd5cce4288f1b4818b48e9a196bb8727f | d3c06c070789ce0aaace1d2b715841ed811349ab | refs/heads/master | 2020-03-31T16:43:30.848827 | 2018-10-09T16:45:26 | 2018-10-09T16:45:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | # var3.py
a = 5
b = 7
def add(x, y):
return x + y
def sub(x, y):
return x - y
def fun(x, y):
return add(sub(x,y), sub(y, x))
print(fun(a, b))
| [
"dmitriy.fedoroff@gmail.com"
] | dmitriy.fedoroff@gmail.com |
3ccdbe8cfed608c5bb94351a5881f8417368deef | b1f0c6ba53ba6638e7c7bf60a6da7603408489f4 | /SPD-2.31-Testing-and-Architecture/lab/refactoring/replace_temp_with_query.py | bac0c87dc00cd1272f6c7577802f845bacf0a33c | [
"MIT"
] | permissive | kbigdelysh/SPD-2.31-Testing-and-Architecture- | 67cb833931a0902bd8b5927de4aed3af413f4d27 | 2f7a72fe4c409aa65d6647686b7bbd554f393c21 | refs/heads/main | 2023-03-13T06:16:43.024518 | 2021-03-05T00:31:52 | 2021-03-05T00:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | # By Kamran Bigdely Nov. 2020
# Replace temp variable with query
"""
MOD DOCSTRING
"""
class Employer:
"""
CLASS DOCSTRING
"""
def __init__(self, name):
self.name = name
def send(self):
"""
FUNC DOCSTRING
"""
print("Students' contact info were sent to", self.n... | [
"tyler.holland@students.makeschool.com"
] | tyler.holland@students.makeschool.com |
e535159d501b985c5ea12430a34514dc0f4ae2e2 | 5ae4744786ee01a0df792a44c656bc69e6e4b02c | /tier3/exceptionpackage/operatorerror.py | 5af7c24fe02b68810c7bedb0cb7bf05a80551abc | [
"MIT"
] | permissive | Otumian-empire/Pydoc-Tutorial | d50a031176c2ae79ea8cee7c9807031057499c8b | 0535d7589432075b13c6899c4567f555d9a2bc9f | refs/heads/master | 2020-07-13T23:30:05.041675 | 2020-01-22T16:48:54 | 2020-01-22T16:48:54 | 205,178,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # user defined-exceptions
# an exception handler class for the operator error
# and extend or inherits CalculatorError
from calculatorerror import CalculatorError
class OperatorError(CalculatorError):
""" exception handler for operator error """
def __init__(self, operator):
self.operator = operator
... | [
"popecan1000@gmail.com"
] | popecan1000@gmail.com |
7bfe2781fe27722f94d270631c0a5f0ba9fc4b1f | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/DeliveryItemInfoVO.py | d6bdd1646cd361b974bb8d785cf8b07ccec057ec | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,407 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class DeliveryItemInfoVO(object):
def __init__(self):
self._out_item_id = None
self._out_sku_id = None
@property
def out_item_id(self):
return self._out_item_id
@o... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
756427620d33437ce90a3d9e28df84fcc4b527b1 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4013/codes/1590_2049.py | 7b91444bf1c8d78467b6d64eb2a681c0aa8ae2a9 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # Teste seu codigo aos poucos.
# Nao teste tudo no final, pois fica mais dificil de identificar erros.
# Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo.
x = int(input("dividendo:"))
y = int(input("divisor:"))
r = x // y
s = x % y
print(x)
print(y)
print(r)
print(s) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
5e35d0d3f8c2c109c1dc6fdbd19f33b538e7a1a4 | 72dc7d124cdac8f2dcab3f72e95e9a646154a6a0 | /byceps/services/shop/sequence/transfer/models.py | 7d19d0ec3b6a5a42ec5a8b699aadfb1fd3cdefb4 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | m-ober/byceps | e6569802ee76e8d81b892f1f547881010359e416 | 4d0d43446f3f86a7888ed55395bc2aba58eb52d5 | refs/heads/master | 2020-11-30T23:31:33.944870 | 2020-02-12T23:53:55 | 2020-02-12T23:56:04 | 40,315,983 | 0 | 0 | null | 2015-08-06T16:41:36 | 2015-08-06T16:41:36 | null | UTF-8 | Python | false | false | 464 | py | """
byceps.services.shop.sequence.transfer.models
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from dataclasses import dataclass
from enum import Enum
from ...shop.transfer.models import ShopID
Purpose = Enum('Purpose'... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
4cb268755dca952abb752dde62c114213b50e43d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03711/s193171197.py | 1f512c58f6da315fbc6955376a215e60d67bd3cb | [] | 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 | 218 | py | f = [1,3,5,7,8,10,12]
g = [4,6,9,11]
x,y = map(int,input().split())
if x == 2 and y == 2:
print('Yes')
elif x in f and y in f:
print('Yes')
elif x in g and y in g:
print('Yes')
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
95f04876e82bf8d63c46039a8fd3128db935beb6 | e47b8be7bb06376d0d9d28845aa453877ff3655f | /05. Choinka jednostronna/venv/Scripts/pip3-script.py | 9683e7e5969f3203139a80c33c624e94f98cdd64 | [] | no_license | mrcszk/Python | eaf60ccfda4ebebdd67db3944e4ac248208f1a1e | 5e733b5bc1bd09904e48662c8542c8db60097ab5 | refs/heads/master | 2022-11-15T14:07:34.131042 | 2020-07-15T09:41:05 | 2020-07-15T09:41:05 | 169,444,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!"C:\Users\marci\Desktop\Programy\5.Choinka jednostronna\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"marcin.sawczuk99@gmail.com"
] | marcin.sawczuk99@gmail.com |
c1cc33e3c5461fd11f9d316138f7d2f1a55b95d2 | 783bda14ef99024acea3584bc19130375fec2508 | /inetdata_start.py | f372913717ff536b4569f563635cfb452b050ff8 | [] | no_license | liberbell/opendata01 | 75d4ed22f54fb42112b02244c9bf2cfad08935ca | f1b7c33e6f61d7ca4f01cc96c4ce05c4f6fb78bf | refs/heads/master | 2020-03-21T10:25:08.678066 | 2018-08-21T00:21:09 | 2018-08-21T00:21:09 | 138,449,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | #
# Example file for retrieving data from the internet
#
import urllib.request
def main():
webUrl = urllib.request.urlopen("https://google.com")
print("Result code is " + str(webUrl.getcode()))
data = webUrl.read()
print(data)
if __name__ == "__main__":
main()
| [
"liberbell@gmail.com"
] | liberbell@gmail.com |
aa660071e7ed52750314188af616bd4173cc3da2 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/BuildLinks1.10/test_input/CJ_16_2/16_2_1_insamniac_A.py | 3548e7bf92e32221559fc57bc35717827765e621 | [] | 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 | 1,890 | py | #!/usr/bin/python
import sys
from sets import Set
ifile=sys.argv[1]
lines=open(ifile).read().split("\n")
tc=lines[0]
lines=lines[1:]
case=1
debugLevel=0
def debug(lvl,msg):
if debugLevel >= lvl:
print(msg)
numMap={0:"ZERO",1:"ONE",2:"TWO",3:"THREE",4:"FOUR",5:"FIVE",6:"SIX",7:"SEVEN",8:"EIGHT",9:"NINE"}
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
19860625f005ccfad733e444615fd572bd90f6b7 | baa4ff451618bd8791c2e3ead587f6faff3356f4 | /WHILE_PARADA/Simlador_Caixa2.0.py | d77d9c8f2b47704c2adf6a27f5377c00dd166897 | [] | no_license | kamibarreto/Python_Exercicios | 3d8aed88b73ec4be2f4d860537c350ee62d01f10 | eb6b5981aa2aee62c4818578120e4de4dcd38f77 | refs/heads/master | 2023-05-05T10:42:02.419412 | 2021-05-24T02:58:02 | 2021-05-24T02:58:02 | 370,210,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | print("=" * 30)
print("{:^30}".format("BANCO CEV"))
print("=" * 30)
valor = int(input("Que valor você quer sacar? R$"))
total = valor
céd = 50
totcéd = 0
while True:
if total >= céd:
total -= céd
totcéd +=1
else:
if totcéd > 0:
print(f"Total de {totcéd} cédulas d... | [
"fabinhobarreto9928@gmail.com"
] | fabinhobarreto9928@gmail.com |
ebc1ca4b9d702ae616fab8672ad959aa6e3dabc4 | e86f40099817f4bf16f695040ef6096bc026b4a5 | /card_project/cards/trading/migrations/0006_transaction.py | 757141b80a07bae1b2caf8e2a9ded5a3e1d82363 | [] | no_license | idosarue/DI_django | 7474e38c8b8cd668df3af5a0d88c021ada8da887 | cd3f91e51458941a5834fb65d6b8d6698770fc6c | refs/heads/main | 2023-07-16T12:10:07.549009 | 2021-09-02T17:42:30 | 2021-09-02T17:42:30 | 396,374,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | # Generated by Django 3.2.6 on 2021-08-30 16:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_alter_topic_topic'),
('trading', '0005_auto_20210830_1202'),
]
operations = [
migr... | [
"dodojoker67@gmail.com"
] | dodojoker67@gmail.com |
02669c63508e761565cbea88f708d86c0b573a73 | 594f60b6a536b831d0df38abea7f0ffc0a2fd3cb | /misc/rot_n.py | 5105b4001321948448d8fd86c228578d416a5e60 | [] | no_license | mh70cz/py | 1478439fe939076cca3a30be2f2d29fb4e8a3cd9 | 7fc23f2133624c787e1dd4856322d48251cc6f0e | refs/heads/master | 2022-08-12T06:08:30.720164 | 2022-08-08T23:16:19 | 2022-08-08T23:16:19 | 95,386,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | '''rot n'''
def haf():
'''Challenge 1'''
orig = '''g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc
dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyrq ufw rfgq rcvr gq
qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj. maps'''
n = 24
assert (orig == rotN(rotN... | [
"mh70@mh70.cz"
] | mh70@mh70.cz |
6f8a313730b64fe516a6e53795d3294dcd76f601 | c824722d02a36f888f74bf60455361a2a1fe5212 | /rnacentral_pipeline/databases/ensembl/pseudogenes.py | d985fea26a9c729f6ad5c608d40622f10db4547a | [
"GPL-1.0-or-later",
"Apache-2.0",
"Artistic-1.0-Perl",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | RNAcentral/rnacentral-import-pipeline | d1b52291fc083470d75cf400b10792e1613662db | 4505f748f9a932ffe4663c16b6c81574e4c04178 | refs/heads/master | 2023-08-31T23:37:29.744476 | 2023-04-11T11:10:48 | 2023-04-11T11:10:48 | 29,351,993 | 5 | 0 | Apache-2.0 | 2023-07-12T13:58:10 | 2015-01-16T14:34:15 | Python | UTF-8 | Python | false | false | 1,577 | py | # -*- coding: utf-8 -*-
"""
Copyright [2009-2021] EMBL-European Bioinformatics Institute
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... | [
"bsweeney@ebi.ac.uk"
] | bsweeney@ebi.ac.uk |
af61c06f497a85cd520a8c0e61b75260bfc21258 | c846a5217adf1f21999bffa7a32a8b7bdb3102ec | /gold/level4/치즈.py | 0ae4f470fb540fc62fa4e022bbb5c5d064710e6e | [] | no_license | 123qpq/Beakjoon | c833433bb5e4237014ac0b84862aa7e15ec16ee8 | fc191fc81c0d312bc306abd1a3b98c2a990223e5 | refs/heads/main | 2023-06-27T18:46:38.746673 | 2021-07-19T13:56:45 | 2021-07-19T13:56:45 | 343,278,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | #2638
import sys
from collections import deque
n, m = map(int, sys.stdin.readline().split())
table = [list(map(int, sys.stdin.readline().split())) for _ in range(n)]
visited = [[False]*m for _ in range(n)]
dq = deque([(0, 0)])
answer = 0
dx = [0, 1, 0, -1]
dy = [1, 0, -1, 0]
def sol():
while dq:
x, y = dq.... | [
"45002168+123qpq@users.noreply.github.com"
] | 45002168+123qpq@users.noreply.github.com |
c341eb87fd5174c19ae18615b93641901b04642c | eac52a8ae7c539acedaedf8744bd8e20172f0af6 | /epi_solutions/strings/text_justification.py | 62d35a1d41f2e624daa42b9246aebcd7a59b4f5b | [] | no_license | mshekhar/random-algs | 3a0a0f6e6b21f6a59ed5e1970b7a2bc2044e191f | 7c9a8455f49027a754038b23aaa2df61fe5397ca | refs/heads/master | 2020-03-26T16:29:42.694785 | 2019-07-18T20:57:55 | 2019-07-18T20:57:55 | 145,105,593 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | class Solution(object):
def get_spaces_dist(self, chunk, chunk_word_count, max_len):
spaces_count = max_len - chunk_word_count
remaining_spaces = spaces_count
spaces = [0] * (len(chunk) - 1)
# print 'remaining_spaces', remaining_spaces, chunk, chunk_word_count, max_len, spaces
... | [
"mayank@moengage.com"
] | mayank@moengage.com |
6d98105b49a9b71caaeab20bfa35b10f09312417 | 59ddcd01f1609496446eb901f02ff2845d48bedf | /demo/akbtrade201402/generate_json.py | 344eb816a6515ca87f69c9b8662d709f8b86a61d | [] | no_license | yosukesuzuki/d3MapDemo | c4b5f243920eb0fc83e4927eb3537acc89882d21 | 663a9168741c6db59794c5bbddc56fa934a20f7f | refs/heads/master | 2020-05-31T00:39:37.635264 | 2014-03-08T12:19:19 | 2014-03-08T12:19:19 | 9,837,097 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | # -*- coding: utf-8 -*-
import json
def main():
teams = open('teams.txt').readlines()
nodes = []
from_teams = []
to_teams = []
for i,v in enumerate(teams):
cells = v.split('\t')
temp_from = {'id':i,'name':cells[0].strip(),'color':cells[1].strip()}
temp_to = {'id':i+len(teams... | [
"yosuke.suzuki@gmail.com"
] | yosuke.suzuki@gmail.com |
2b7518f928a86ef714ad86d63c6ce37da71762ea | f865fdd970f8e37ea2aa5157374af8c4d6ced987 | /swagger_client/models/vehicle_country.py | 40c9a128165d9c7ffe8b2083b5b47d070346d4ac | [] | no_license | gkeep-openapi/python-sdk | 7e809448355bff535b3d64e013f001e9196c5e19 | 7c4f3785b47a110386ef10109619654522c95de5 | refs/heads/master | 2022-05-28T16:13:06.643958 | 2022-05-13T14:58:39 | 2022-05-13T14:58:39 | 235,536,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | # coding: utf-8
"""
Gkeep API
Gkeep API # 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
class VehicleCountry(object):
"""NOTE: This class is auto generated by the swagger code ... | [
"gkeep-ci-jenkins"
] | gkeep-ci-jenkins |
5452fc01194a8f8b949c6b4f0a19ba05527afdc1 | 6f2d5600b65b062151bab88c592796b878de7465 | /InterfaceTest/testcase/test_login.py | f94453d2a1a35696984e1ccd893202559e46f35a | [] | no_license | zhouyanmeng/python_api_test | 1e6549321c20ee9a71beffac2533c917b5ecc157 | 7303352c9b5baacba5296b088f89ba4c702fb485 | refs/heads/master | 2022-12-17T14:34:26.351566 | 2019-03-01T13:02:06 | 2019-03-01T13:02:06 | 185,185,856 | 0 | 0 | null | 2022-12-08T01:45:15 | 2019-05-06T11:45:55 | Python | UTF-8 | Python | false | false | 2,094 | py | import unittest
from InterfaceTest.common.http_requests import HTTPRequest2
from InterfaceTest.common import do_excel
from InterfaceTest.common import contants
from InterfaceTest import data
from ddt import ddt,data
from InterfaceTest.common import logger
logger=logger.get_logger(__name__)
@ddt
class LoginTest(unitt... | [
"2440269710@qq.com"
] | 2440269710@qq.com |
9bd7431f39b87e78f726d2b028725f16210b0c77 | 842e3cd1266d18752a3baf2b90232ed4ce41eb4f | /grako/_version.py | 7fcb242439cf1afe87c2d26760da98563eca14e1 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | apalala/grako | 2786d85eef9799bf614c46c92f19ff183a435d46 | efb373d89e6805930e661758c2cff2b26da4658a | refs/heads/master | 2020-12-25T17:37:05.353167 | 2017-05-02T02:53:11 | 2017-05-02T02:53:11 | 65,163,853 | 16 | 6 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2017 by Juancarlo Añez
# Copyright (C) 2012-2016 by Juancarlo Añez and Thomas Bragg
from grako._config import __version__ # noqa
| [
"apalala@gmail.com"
] | apalala@gmail.com |
c6957167af4d0cadca23b030031d0b94925b9b56 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/contrib/sparsemax/__init__.pyi | eff94a8df0a6ac498835f1ce6b07736edf161e6a | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | pyi | # Stubs for tensorflow.contrib.sparsemax (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.contrib.sparsemax.python.ops.sparsemax import sparsemax as sparsemax
from tensorflow.contrib.sparsemax.python.ops.sparsemax_loss import sparsemax_loss as sparsemax_loss
from... | [
"matangover@gmail.com"
] | matangover@gmail.com |
5b3074e0a8e3a0968c2208e817af3452eb66f6c3 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_each9.py | 1a4e9ddff567219cf9270bb83dfe5eb5e0c7d464 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | from xcp2k.inputsection import InputSection
class _each9(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Just_energy = None
self.Powell_opt = None
self.Qs_scf = None
self.Xas_scf = None
self.Md = None
self.Pint = None
self.Metadyn... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
dcda08a1561ef54788e11d3fb2c979ede1a3b6d6 | f62fd455e593a7ad203a5c268e23129473d968b6 | /vitrage-1.5.2/vitrage/datasources/zabbix/auxiliary/zabbix_vitrage.py | 8ea599263398b140f626977ff87deeaeddda8a03 | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 3,490 | py | #!/usr/bin/env python
# coding: utf-8
# Copyright 2016 - Nokia
#
# 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 app... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
8e89d911e312b13af82ef870afeefb974d9f5c2e | cfd93c9d0a39c1f1a2778a23977e7b3bd5fd9b84 | /baseline2018a-doc/baseline-doc/configs/astro-lsst-01_2022/telescope.py | a614458273e3cd1a33a59c2b9ae5cd6aafbf5b69 | [
"CC-BY-4.0"
] | permissive | lsst-pst/survey_strategy | ec3f7a277b60559c6d7f0fad4a837e22255565ea | 47aa3e00576172bfeec264e2b594c99355b875ea | refs/heads/main | 2023-06-11T17:36:24.000124 | 2023-05-25T23:07:29 | 2023-05-25T23:07:29 | 102,892,062 | 10 | 6 | null | 2022-09-23T21:08:27 | 2017-09-08T18:24:28 | Jupyter Notebook | UTF-8 | Python | false | false | 1,398 | py | import lsst.sims.ocs.configuration.instrument.telescope
assert type(config)==lsst.sims.ocs.configuration.instrument.telescope.Telescope, 'config is of type %s.%s instead of lsst.sims.ocs.configuration.instrument.telescope.Telescope' % (type(config).__module__, type(config).__name__)
# Maximum speed (units=degrees/secon... | [
"lynnej@uw.edu"
] | lynnej@uw.edu |
09c7223b6e3878e8b479125c77960c8fe523cab0 | 09c836f817ba2228a87d32eae53b3204e8b4ecd9 | /initsys/migrations/0003_auto_20181022_2318.py | 1a63b9ad1d2fab808ed6168a9a3b69ce9295bf44 | [] | no_license | imagilex/bmhaus | 6c6b4ccc0053970f555e4c3c3f6978b37c457d2c | 208f8af7056233ab1f29a79d0c813a269374945e | refs/heads/master | 2020-04-03T14:31:32.476267 | 2019-02-16T04:11:26 | 2019-02-16T04:11:26 | 155,324,809 | 0 | 1 | null | 2019-02-16T04:11:29 | 2018-10-30T04:33:41 | CSS | UTF-8 | Python | false | false | 764 | py | # Generated by Django 2.0.7 on 2018-10-23 04:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('initsys', '0002_auto_20181014_1947'),
]
operations = [
migrations.AlterField(
model_name='permi... | [
"rramirez@junkyard.mx"
] | rramirez@junkyard.mx |
7119314ef0f9ca75e28a1dbe5394f8168e03e2e2 | e3376c04ecca6eaf0186f8a38eef245e03ddbe92 | /Modulo1/04_Cuarta_semana.py/Tarea_reto_funciones_2_map_04.py | 70b1bfee5e6218ea2cf9e448dd44589278707919 | [] | no_license | lamorenove/Ejercicios-Python | d0b31810ba5d0e6d4ab922b5e325ed76cc57e324 | ee26d1dd30db8c7e088a668e11dc635b779d933a | refs/heads/master | 2023-06-24T05:46:33.383620 | 2021-07-22T17:20:23 | 2021-07-22T17:20:23 | 385,313,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | '''
Crear un programa en Python que muestre en pantalla el desempeño
académico de un alumno en dos asignaturas (Español y Matemática)
al finalizar el segundo periodo del año lectivo 2021. Se aprueba la
asignatura si se obtiene una calificación mayor o igual a 3. Se
debe calcular e imprimir la calificación final de ca... | [
"lamorenove@gmail.com"
] | lamorenove@gmail.com |
1692cefb11bbae3aefa27fe7b4eac343ec59165c | 98e370620ae43be1eee53f1c46253f5e2bf779be | /app/app/spiders/ip_cn.py | b8c3573843d5060f6b617c6d360568a382a10f8e | [] | no_license | songhao8080/scrapy_project | a6610aa8d9845f85a0d7c4bca061da52582a628d | e17cb0eb6d161d85e8623f316dfd94468b016d16 | refs/heads/master | 2022-03-28T17:23:24.743514 | 2017-07-31T03:54:25 | 2017-07-31T03:54:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | # -*- coding: utf-8 -*-
import scrapy
import json
import time
class IpCnSpider(scrapy.Spider):
name = "ip_cn"
allowed_domains = ["ip.cn"]
# start_urls = ['http://ip.cn/']
start_urls = (
'http://ip.cn/index.php?k=1',
'http://ip.cn/index.php?k=2',
'http://ip.cn/index.php?k=3',
... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
c0ba0c1c4a7e610091accae47b439c392c31c270 | c3f7b8be5cac3114a4677595eea18d6c348dc1a0 | /python/src/main/dec05/main.py | 31b245b24877b76e1399bd05de36e1a67308df3a | [] | no_license | andersberggren/AdventOfCode2017 | c3f051258009909ecadfd1c2694cbfcc3e0155d2 | dcd992caa02ffe3efcee524dbe699e79779dd540 | refs/heads/master | 2021-05-06T03:38:30.965484 | 2019-02-14T15:40:45 | 2019-02-14T15:40:45 | 114,907,937 | 0 | 0 | null | 2017-12-20T17:42:48 | 2017-12-20T16:24:20 | Java | UTF-8 | Python | false | false | 1,381 | py | from aoclib.filereader import get_file_as_string
class CPU:
def __init__(self, instructions, get_instruction_increment):
"""
Arguments:
instructions A list of integers
get_instruction_increment A function that takes one argument (value at cursor),
and returns ... | [
"anders.berggren@acino.se"
] | anders.berggren@acino.se |
58e8049b4308e47c9da4d3b5d8369565004a7317 | cc353e162aba76b3af7204b4d40612fad88c8e96 | /demo/LogSig_demo.py | 023f0894c8f47c71bf79ac333cbc20bc42be0a04 | [
"MIT"
] | permissive | Wapiti08/logparser | 42f63bddc5d7da197f528053efc9d45b6188be7f | c342c7e688b51f9c214a64e22316f63f5575583c | refs/heads/master | 2020-09-05T08:22:24.898375 | 2020-05-13T04:54:26 | 2020-05-13T04:54:26 | 220,039,739 | 2 | 0 | MIT | 2019-11-06T16:19:51 | 2019-11-06T16:19:51 | null | UTF-8 | Python | false | false | 640 | py | #!/usr/bin/env python
import sys
sys.path.append('../')
from logparser import LogSig
input_dir = '../logs/HDFS/' # The input directory of log file
output_dir = 'LogSig_result/' # The output directory of parsing results
log_file = 'HDFS_2k.log' # The input log file name
log_format = '<Date> <Time> ... | [
"liujy725@gmail.com"
] | liujy725@gmail.com |
53bf3260554c29162aa61af5529780b35c8ffee8 | f4b79529109fbb4055f334d0d9c7c96cb0710447 | /colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | 2d80f2d525c388027db767f80b4ff68490f35bfb | [
"BSD-3-Clause"
] | permissive | trevorandersen/colour | 167381b3d03e506a270a8d2a519a164808995437 | 02b595b26313c4b4f55adc41d599f90c4c9edbcd | refs/heads/develop | 2021-07-15T04:48:19.585586 | 2021-01-23T23:51:44 | 2021-01-23T23:51:44 | 230,421,054 | 0 | 0 | BSD-3-Clause | 2019-12-28T12:54:20 | 2019-12-27T10:10:30 | null | UTF-8 | Python | false | false | 5,056 | py | # -*- coding: utf-8 -*-
"""
Defines unit tests for :mod:`colour.models.rgb.transfer_functions.smpte_240m`
module.
"""
import numpy as np
import unittest
from colour.models.rgb.transfer_functions import oetf_SMPTE240M, eotf_SMPTE240M
from colour.utilities import domain_range_scale, ignore_numpy_errors
__author__ = 'C... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
0a02883d1dfc0ab8468e3aab4a52d301969dbc7b | 608bc4314c5d91744c0731b91882e124fd44fb9a | /protomol-test/MDLTests/data/SCPISMForceTest.py | f271521fa472a7dd0b7aa78f3731bcd893d969e1 | [] | no_license | kuangchen/ProtoMolAddon | bfd1a4f10e7d732b8ed22d38bfa3c7d1f0b228c0 | 78c96b72204e301d36f8cbe03397f2a02377279f | refs/heads/master | 2021-01-10T19:55:40.467574 | 2015-06-09T21:18:51 | 2015-06-09T21:18:51 | 19,328,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | # USING THE NEW STRUCTURE
from MDL import *
# PHYSICAL
phys = Physical()
io = IO()
io.readPDBPos(phys, "data/alanine.pdb")
io.readPSF(phys, "data/alanine.psf")
io.readPAR(phys, "data/alanine.par")
phys.bc = "Vacuum"
phys.cellsize = 5
phys.exclude = "scaled1-4"
phys.temperature = 310
# FORCES
forces = Forces()
ff = f... | [
"kuangchen@ucla.edu"
] | kuangchen@ucla.edu |
d5ec7f84751b309de086c836853f9c437e490a43 | 96f32051b1fcd322534fdf1f590704b7f48e08e3 | /otx_review/migrations/0005_auto_20170111_0241.py | cbee2729a35595fad76e240ff15a6c438399205e | [
"Apache-2.0"
] | permissive | NYULibraries/dlts-enm-tct-backend | 0f1ebad7d7334d41b4f24b2243639314c6ed1353 | 07455a660fb2cb8bc91a54f7f12d150923678157 | refs/heads/master | 2020-05-18T14:36:31.041830 | 2017-09-30T17:51:16 | 2017-09-30T17:51:16 | 84,251,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-11 07:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('otx_review', '0004_report'),
]
operations = [
migrations.AlterField(
... | [
"go.for.dover@gmail.com"
] | go.for.dover@gmail.com |
4b06f0847781176e24c0d6adae443650657057e9 | 4315836a3a360c646839c88452dadbb3b3cbdf60 | /Level 1/ProTwo/AppTwo/views.py | 361f7489408e58bfa1dd35742d769af13a07f3ce | [] | no_license | hyungtaecf/Bootcamp-Django | 77449c3a6487030d0951aa58ec20c225427b3034 | 4fe0daaa385f9eca686ba7ea4631ae34b9ba1d8b | refs/heads/master | 2021-02-13T03:16:41.824959 | 2020-03-19T15:59:15 | 2020-03-19T15:59:15 | 244,656,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("<em>My Second App</em>")
def help(request):
help_dict = {'insert_help':"I am in help view!"}
return render(request,'AppTwo/help.html', context = help_dict)
| [
"hyu_03@hotmail.com"
] | hyu_03@hotmail.com |
7a6c5edbc602dffad9fda4183effeb4c5292a747 | 684dfafe6aa74546864150f969165f8239273137 | /funcx/tests/test_status.py | 6de15148dfc46085164097606390e45f27eb9083 | [
"Apache-2.0"
] | permissive | basilw/funcX | af668e55c147af75f1426839e5fefffaa13b717f | 65f887e76af0a8c80fef064c1654caf9eacfb750 | refs/heads/master | 2023-02-27T00:13:21.946707 | 2020-08-20T14:39:55 | 2020-08-20T14:39:55 | 300,139,035 | 0 | 1 | Apache-2.0 | 2020-10-01T04:14:58 | 2020-10-01T04:14:57 | null | UTF-8 | Python | false | false | 2,270 | py | import json
import sys
import argparse
import time
import funcx
from funcx import FuncXClient
from funcx.serialize import FuncXSerializer
fxs = FuncXSerializer()
funcx.set_stream_logger()
def sum_yadu_new01(event):
return sum(event)
"""
@funcx.register(description="...")
def sum_yadu_new01(event):
return sum... | [
"yadudoc1729@gmail.com"
] | yadudoc1729@gmail.com |
a2a966ccd34c0dd2959c746494fc28f7ae58eee5 | 184b4f3d4f20f001a8c00db6f5eaab96a9c5cf48 | /setup.py | 9cccb614eaa93193b2fcf020ef6f80ae9de3062e | [] | no_license | reinbach/scales_example | bd4371a84b348b42fb8c1b0af1a3669ac719a6a2 | d25132c6a08ee46c5b3d8f6cc13be93ef47caf5b | refs/heads/master | 2016-09-10T12:06:22.123471 | 2012-12-10T14:02:00 | 2012-12-10T14:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | #!/usr/bin/env python
from setuptools import setup
requires = [
'Flask==0.9',
'scales==1.0.2',
'gevent==0.13.8',
]
setup(
name='Scales Example',
version='0.1',
description='Example of scales in action',
author='Greg Reinbach',
author_email='greg@reinbach.com',
install_requires=requ... | [
"greg@reinbach.com"
] | greg@reinbach.com |
1da62a42330e310c09248640c8a0ee7c77c4090d | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/countingValley_20200625161222.py | a98bbe555ded8353e153754cbd50952291413b4f | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | def countingValleys(str):
# no need to split cause you can traverse throught a str
# how to differentiate between mountain and valley
# mountain you go up then down
# valley you go down then up
valley = 0
seaLevel = 0
mountain = 0
journey = 0
i = 0
while i < len(str)... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
d02dba4390971d6e98f9398db57324a80234df73 | f6ddf2e228483227cfb53549cee9cb5094443a77 | /vmchatinput/compress.py | dd73d761d0ac0f1baf6baa39073a28a59e455869 | [
"MIT"
] | permissive | chfoo/vmchatinput | 0b28fd8a778947c88ea8d3c100f0c0c6a26722ab | f48cea879c9a989eb1a358b532f4dda934ba521b | refs/heads/master | 2021-01-25T10:39:01.554513 | 2015-10-11T20:51:08 | 2015-10-11T20:51:08 | 40,464,299 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,236 | py | import datetime
import glob
import logging
import os
import re
import subprocess
import threading
import time
_logger = logging.getLogger(__name__)
LOG_GLOB = '/log.*-*-*[0-9]'
INPUT_LOG_GLOB = '/[0-9]*-*-*[0-9].csv'
IMAGES_GLOB = '/[0-9]*-*-*[0-9]/[0-9]*T*[0-9].png'
class CompressThread(threading.Thread):
def... | [
"chris.foo@gmail.com"
] | chris.foo@gmail.com |
7f5ea105f7d7190699273e5c8867966837eb6c9a | 3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2 | /src/Week9/Sets and Maps(Dictionaries)/Dictionaries/Creating Dictionaries.py | c5b6f0bf34fe674f0fdd45fceee69518382d116d | [] | no_license | theguyoverthere/CMU15-112-Spring17 | b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8 | b8287092b14e82d2a3aeac6c27bffbc95382eb34 | refs/heads/master | 2021-04-27T08:52:45.237631 | 2018-10-02T15:38:18 | 2018-10-02T15:38:18 | 107,882,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | # Create an empty dictionary
d = dict()
print(d)
# Create an empty dictionary with braces syntax
d = {}
print(d)
# Create a dictionary from a list of key value pairs
pairs = [("cows", 5), ("dog", 98), ("cat", 1)]
d = dict(pairs)
print(d)
# Statically allocate a dictionary
d = {"cows": 5, "dog":98, "cat":1}
print(d)
| [
"tariqueanwer@outlook.com"
] | tariqueanwer@outlook.com |
d07e5396d2c8156e4cb8985d72fc2c3fb9085113 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /output/StudentProblem/10.21.12.26/3/1569572588.py | a9caf7e389fdb32e6d39506616cae152d6098fea | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | ============================= test session starts ==============================
platform darwin -- Python 3.7.4, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
rootdir: /tmp
collected 0 items / 1 error
==================================== ERRORS ====================================
________________________ ERROR collecting te... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
fa597abe107d19b37a1ce16436ad64305004835a | 491f9c9b618242953329a8e633fd9bf0bb1cb3fe | /learn_pytest/python_examination/test_r03_1.py | c5c591bfd2ae43ac6bb80b00a277662cb653c70c | [] | no_license | xshen1122/Scripts | 656d599e47a70a3b3e89e4f95cf97ee391ff9a7e | c1ed60abc7885d4a86ba077efc8bcf0fbdbafd75 | refs/heads/master | 2021-06-28T04:46:31.370809 | 2020-10-21T07:52:15 | 2020-10-21T07:52:15 | 172,480,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | # test_r03_1.py
# coding:utf-8
'''
find 100 - 200 all zhishu , output 10 numbers per line
主要难点是在于每10个数字输出一行,如何进行切片。
No2:
给定的二维数组中是否有重复的数。
已知该数组中保存了正整数
没有重复,返回真。不大于O(n)
将二维数组转换为1维数组,然后用set()
'''
def print_num():
def check_zhishu(num):
for i in range(2,num):
if num%i ==0:
return False
return True
zhishu_l... | [
"xueqin.shen@outlook.com"
] | xueqin.shen@outlook.com |
744dffba593837842f58c293f6c774b0dde199c2 | 23292aca06ebdd9b1f083290dd15ac37a146d7ad | /chat/consumers.py | 16f1198b057c849fef6365dfc529c04d28599a3c | [] | no_license | akashjadhav3/django-channels-chat-eg1 | f5dd264f09410d10e0b60fc3ad60adff95169dba | 63b8461f46d7809f02cbdd2cfb2cded44d348231 | refs/heads/master | 2022-11-24T01:33:44.411087 | 2020-07-29T09:30:25 | 2020-07-29T09:30:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | # chat/consumers.py
# Asynchronous code
import json
from channels.generic.websocket import AsyncWebsocketConsumer
class ChatConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.room_name = self.scope['url_route']['kwargs']['room_name']
self.room_group_name = 'chat_%s' % self.room_name
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f30da4ff404b72777310583d5c1245d3ff93af5b | 77548da871b686a7c1cbf2ca4e574ba0b886376c | /create_policy.py | 7a4e5ed0ce021b0b278ba3d35f9584991717a6df | [] | no_license | ravi-ojha/func-encr-py-gui | 2714ee776544ac2140f86175d79d89e9f377f21d | 886e9c63d51e3f85a75a395010a8d8e8b42229d9 | refs/heads/master | 2020-06-04T13:23:24.459395 | 2015-03-16T16:30:02 | 2015-03-16T16:30:02 | 31,597,139 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | #! /usr/bin/env python
# GUI was generated using PAGE v4.5 in conjuction with Tcl v8.6
from Tkinter import *
import sys
import ttk
import policy_builder
import boolean_logic_builder
import create_policy_support
def vp_start_gui():
'''Starting point when module is the main routine.'''
global val, w, root
... | [
"raviojha2105@gmail.com"
] | raviojha2105@gmail.com |
70d09c259f45cbc8ba7607d8950cfd84d2a7539a | 06e0c89781ae9c07a55090c43d8609e9dfefbb6f | /Hospital5/Hospital5/wsgi.py | 325911d26fe80403282528ba83162d5d98fb3efe | [] | no_license | mfarzamalam/django | d6d4302910301ae3e135a95a9982f3bd01218260 | 935a60d3ac874b7adb4287b4c2d172b89c6551b9 | refs/heads/master | 2023-04-10T21:06:11.601436 | 2021-04-27T21:31:47 | 2021-04-27T21:31:47 | 345,129,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for Hospital5 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"mfarzamalam@gmail.com"
] | mfarzamalam@gmail.com |
3f8fb82beb78b0f0fb4d8b71cd2a756d8362866d | 842488e7875440a83eb87759c39feefa1d59e1e4 | /ext_helm_convg_test.py | c52f30ba1b47ebe0febf5f3462ff56d9f5b3dfc8 | [
"MIT"
] | permissive | bhosale2/2d_helmholtz_solver_CFIE | 3285b288b75a555975054541a4f3645e641648d6 | 5b12e7d83aa37bee5b302b3a2f0e6ca8948cc656 | refs/heads/master | 2020-11-24T10:09:20.638576 | 2019-12-14T22:52:44 | 2019-12-14T22:52:44 | 228,100,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | from quad import QuadratureInfo
import matplotlib.pyplot as plt
import numpy as np
import numpy.linalg as la
from kernels import eval_sp_dp_QBX, eval_target, bvp
from plotset import plotset
from scipy import stats
def ext_helmholtz_convg(qbx_order, k):
"""
Tests external Helmholtz solution by placing monopole... | [
"bhosale2@illinois.edu"
] | bhosale2@illinois.edu |
47ab8d84f512e5f35639dd98c48a550bde0a338a | d71661f3799085894074609fa506d509fada34d4 | /pbase/day09/code/star_args.py | a4b2495ab7c79ac7d55f1f3741e3a5fa33a20bf1 | [] | no_license | vincentlyc/Learn-Path | fb84320610902dece007fb7d67038b751808f60a | 4208312b60c44876307c8770d96a35cc3d087c75 | refs/heads/master | 2020-03-24T18:49:39.424312 | 2018-08-09T14:41:59 | 2018-08-09T14:41:59 | 142,900,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | # star_args.py
def myfun(*args):
print("實參個數是", len(args))
print(args)
i = 1
for x in args:
print("第",i ,"個參數是:", x)
i += 1
myfun(1,2)
print('-----------------------------')
myfun("100",200,"Three", 4.4)
| [
"vincent11028@gmail.com"
] | vincent11028@gmail.com |
05495e49c349e184fdde4882816b7d3022a8df28 | 7234e6c72eb3f09c4a66dbe91f00fdf7742f010f | /algo/string/backspaceStringCompare.py | c3c5a36a2b2bc04d483b137c7dac6cddefb34523 | [] | no_license | srinathalla/python | 718ac603473e7bed060ba66aa3d39a90cf7ef69d | b6c546070b1738350303df3939888d1b0e90e89b | refs/heads/master | 2021-06-13T06:11:42.653311 | 2021-02-19T06:01:41 | 2021-02-19T06:01:41 | 150,374,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | class Solution:
def backspaceCompare(self, S: str, T: str) -> bool:
sp = len(S) - 1
tp = len(T) - 1
sskip = 0
tskip = 0
while sp >= 0 or tp >= 0:
while sp >= 0:
if S[sp] == '#':
sp -= 1
sskip += 1
... | [
"srinathb10j.ik@gmail.com"
] | srinathb10j.ik@gmail.com |
72b68d16a64d167dc4237e3e2fc2757f6092d086 | f428e913527744e8386f4b804be5e9d4183bba81 | /DcsUi/MainToolBarClass.py | e9ff6f78f6f467fdedeeadd9f0829c44c73dc5ca | [] | no_license | a452669850/DCSBJ | b6940b13bab583811322393c720863cb64ab9cd4 | b03b1c98982f94847d97abca3051f1ef1c5cc178 | refs/heads/master | 2023-01-02T00:47:36.457822 | 2020-10-20T13:03:50 | 2020-10-20T13:03:50 | 305,708,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,212 | py | from PyQt5.QtWidgets import *
from PyQt5.QtCore import Qt, QSize
from PyQt5.QtGui import QIcon
import os
import collections
from static.Png import *
from utils.AcountModels import getPermission
class ToolBarSetting():
def __init__(self, MainWindow):
super().__init__()
if MainWindow.__class__.__nam... | [
"a452669850@outlook.com"
] | a452669850@outlook.com |
eaeb618fc189effaa91e046ba95265c279813601 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_44/run_cfg.py | ef2031fffebb8a081c6538188aaea49042bdc191 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
0e37d8fc42b621bf523c217335cd64e976bcb779 | 036c69a0c27cfdc0b0d9d6169caf027635b66325 | /leetcode407.py | ed63c5d3cab1f82400dbbb47f2d1138661184de6 | [] | no_license | Marco2018/leetcode | 19b6b2c19452babf0198f8705e0dd1f31c321017 | c7dc709a7a9b83ef85fbc2d0aad7a8829f1035d1 | refs/heads/master | 2020-03-23T17:34:09.637831 | 2020-01-18T11:00:36 | 2020-01-18T11:00:36 | 141,865,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | class Solution:
def trapRainWater(self, grid):
"""
:type heightMap: List[List[int]]
:rtype: int
"""
if len(grid) == 0:
return 0
m = len(grid)
n = len(grid[0])
heap = []
visit = set()
# init , put surrounding in... | [
"513045631@qq.com"
] | 513045631@qq.com |
64086008d6959366de5f151a7d8f0e7191a0241f | c6d84655a8424c8ade139fd79ae1bbb1514f8c88 | /06multi_task/process_pool.py | 21a6d1133e5b4e05949b63fe74878aac4ef039d6 | [] | no_license | eryeer/pythonStudy | 64240934ce463e7e9714fc7f0d7a6608cefab837 | 5c6a69ef10c0df38f89aee7e5d5cc9802a2b424b | refs/heads/master | 2020-04-08T15:16:19.579466 | 2019-04-15T06:13:41 | 2019-04-15T06:13:41 | 159,472,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | from multiprocessing import Pool
import os, time, random
def worker(msg):
t_start = time.time()
print("%s开始执行,进程号为%d" % (msg, os.getpid()))
# random.random()随机生成0~1之间的浮点数
time.sleep(random.random() * 2)
t_stop = time.time()
print(msg, "执行完毕,耗时%0.2f" % (t_stop - t_start))
if __name__ == '__ma... | [
"eryeer@163.com"
] | eryeer@163.com |
33147cbdaf2aed49dc049e271227ab245e33ed5c | 24bc4990e9d0bef6a42a6f86dc783785b10dbd42 | /ios/chrome/browser/ui/browser_view/DEPS | c2df8930fc674e64226a2ff6967f5d884787b049 | [
"BSD-3-Clause"
] | permissive | nwjs/chromium.src | 7736ce86a9a0b810449a3b80a4af15de9ef9115d | 454f26d09b2f6204c096b47f778705eab1e3ba46 | refs/heads/nw75 | 2023-08-31T08:01:39.796085 | 2023-04-19T17:25:53 | 2023-04-19T17:25:53 | 50,512,158 | 161 | 201 | BSD-3-Clause | 2023-05-08T03:19:09 | 2016-01-27T14:17:03 | null | UTF-8 | Python | false | false | 207 | include_rules = [
"+ios/chrome/browser/ui/browser_view",
]
specific_include_rules = {
"key_commands_provider_unittest\.mm": [
"+ios/web/find_in_page/java_script_find_in_page_manager_impl.h",
],
}
| [
"roger@nwjs.io"
] | roger@nwjs.io | |
2ba086c85485c5316c284662398d6f513b965b94 | f71967d1b0c1359df652e5f096c60170f0c57074 | /app.py | 420f720b71e1cb7867611250c8d90be2b9a874b3 | [] | no_license | aliwo/HelloFlask | 44a6cf09597a0c070fb0c6e9a7952a84d38bc68a | dada8792107c9f2635524521591fc79233fd317d | refs/heads/master | 2021-06-22T16:32:23.165889 | 2019-08-14T01:28:07 | 2019-08-14T01:28:07 | 202,249,105 | 1 | 0 | null | 2021-03-20T01:30:06 | 2019-08-14T01:23:31 | Python | UTF-8 | Python | false | false | 167 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
if __name__ == '__main__':
app.run(host='0.0.0.0')
| [
"aliwo@naver.com"
] | aliwo@naver.com |
c10e903310967d04930aa9f31243ac026395a707 | af43615e07f2bfaa908d6d96b4c90f98ce3ad47b | /rdr_service/alembic/versions/4318d20e8422_create_genomic_manifest_file_and_.py | cac1b105e21dd14c7ece5df7a61da268fbe79de4 | [
"BSD-3-Clause"
] | permissive | all-of-us/raw-data-repository | 11aa25385543f5f8ef706663b79ce181775c1c9a | 461ae46aeda21d54de8a91aa5ef677676d5db541 | refs/heads/devel | 2023-09-01T06:47:25.710651 | 2023-09-01T01:18:56 | 2023-09-01T01:18:56 | 66,000,771 | 46 | 22 | BSD-3-Clause | 2023-09-14T21:06:38 | 2016-08-18T13:47:08 | Python | UTF-8 | Python | false | false | 3,503 | py | """create genomic_manifest_file and genomic_manifest_feedback
Revision ID: 4318d20e8422
Revises: ba05cd337cdc
Create Date: 2020-11-19 11:34:35.688360
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
# revision identifiers, used by Alembic.
from rdr_service.genomic_enums import Genomi... | [
"noreply@github.com"
] | all-of-us.noreply@github.com |
6273668ec587376420d2f496850063459b144bfe | 49a46ab847bfe1b6c67d8acad6b511c577f8d05d | /bin/abspath | 0ec9bf515dd6bec445dde7e4d810ef62f704c21f | [] | no_license | bmustiata/dotfiles | f5dd22cadfefca9ad0ca3c7c80756bb11de4b25c | d4f012caffb972a1c86e700c92222a441c1ddf3d | refs/heads/master | 2023-09-06T06:24:59.919300 | 2023-09-05T06:12:43 | 2023-09-05T06:12:46 | 69,585,142 | 0 | 0 | null | 2023-05-01T20:37:24 | 2016-09-29T16:15:38 | Vim Snippet | UTF-8 | Python | false | false | 297 | #!/usr/bin/env python3
# resolves the relative path, and prints the absolute path,
# without resolving the links.
import sys
import os
if len(sys.argv) < 2:
print("you need to pass the relative path to the file")
sys.exit(1)
file_name = sys.argv[1]
print(os.path.abspath(file_name))
| [
"bogdan.mustiata@gmail.com"
] | bogdan.mustiata@gmail.com | |
44736bb60d8d7c0e537a8cff78fecc3b4fa8b29f | 753938feae47c1ce8edeaa35099c634fbafa3b99 | /test_functions/test_functions_results.py | 3f99e961029db9c2ebfc59611e5f43b9e29328d9 | [
"MIT"
] | permissive | dayoladejo/SwarmOptimization | c11cc799ec5a16a3a341ea0f2b5b9df1ea5f65d9 | 5445b6f90ab49339ca0fdb71e98d44e6827c95a8 | refs/heads/main | 2023-07-17T09:14:16.266657 | 2021-09-10T17:10:56 | 2021-09-10T17:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | #
# file: test_functions_results.py
#
# Summarize the test function by algorithm type and dimensions
#
# RTK, 08-Aug-2020
# Last update: 08-Aug-2020
#
################################################################
import numpy as np
import pickle
import sys
fname = sys.argv[1]
d = pickle.load(open(fname,"rb")... | [
"oneelkruns@hotmail.com"
] | oneelkruns@hotmail.com |
fb8fb15d5adb00186cc09e2b56f2462bd0e8781e | 597859a9438d0b4271cf82ff7639af03692fcd68 | /eatery_app/migrations/0005_user.py | b3ceec03f44819d7647ca7bf114aaa7b2a1d2b28 | [] | no_license | deerenae/eatery_app | 2a4a4c928c378eeae7c17a57059a3383b6f1cc91 | 70a3aff79193c88630a13c78d41cb0ef186ca7eb | refs/heads/master | 2022-08-14T01:11:15.769769 | 2020-05-27T15:49:00 | 2020-05-27T15:49:00 | 264,508,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | # Generated by Django 3.0.6 on 2020-05-24 23:17
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('auth', '0011_update_proxy_permissions'),
('eater... | [
"github email address"
] | github email address |
207de3261560c5dbc9ab48ccc1d046b41d414235 | d256e7a0124d7fe7a1051e5caa9f452fd88f80af | /remand/contrib/nginx/__init__.py | 8f3241d59185f85ca50972251beca4b83b920c85 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | mbr/remand | 2f94f96ec1f93781e3923e27236265fb9e7dc735 | 7cb08e8e0d3322825f2f964158a80f5ff3727fcc | refs/heads/master | 2023-08-22T23:32:05.066363 | 2019-01-30T18:30:35 | 2019-01-30T18:30:35 | 41,018,972 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | import os
from remand.lib import fs, proc, systemd
from remand import Plan, operation, Changed, Unchanged, info
from remand.util import any_changed
nginx = Plan(__name__, os.path.dirname(__file__))
@operation()
def enable_letsencrypt(auto_reload=True, remove_default=True):
changed = any_changed(
fs.upl... | [
"git@marcbrinkmann.de"
] | git@marcbrinkmann.de |
3beb6d221bed4589bbb561ed687aa9df2a7d6f68 | e96cc817c768915eeff46027ded14e759e8042ff | /数据结构/栈和队列/stack.py | 8a41a360813362e637c791b5ca63f5c8e8ec4afb | [] | no_license | fovegage/learn-python | e22a32207cf513ba0f8c3428e9c00138987c2359 | 93b8d3513769a0b7d492a7b515f289fe3f1efc4a | refs/heads/master | 2023-06-08T13:44:57.274677 | 2023-05-29T05:52:35 | 2023-05-29T05:52:35 | 148,493,932 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # -*- coding: utf-8 -*-
# @Time : 2018/11/16 15:39
# @Author : fovegage
# @Email : fovegage@gmail.com
# @File : stack.py
# @Software: PyCharm
class Stack():
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def length(self):
re... | [
"fovegage@gmail.com"
] | fovegage@gmail.com |
e3dee18dddd94f172dacc6c7ea7d7cfb6e6e52fa | 28ebfd5b44c4b60b385e43080c58e664d4bbbb6f | /wagtail/tests/testapp/migrations/0021_hidden_form_field.py | 5f246fa4819b9724f41904109fdc9f50e40fc43c | [
"BSD-3-Clause"
] | permissive | elsahu96/wagtail | 949571e2690e7b4cd840fd3d0b427f529f80e722 | e1fc584f1c00bc093cd41a82a0e42bd6516198e0 | refs/heads/master | 2021-07-21T11:38:02.074432 | 2017-10-30T10:34:31 | 2017-10-30T10:34:31 | 108,878,135 | 1 | 0 | null | 2017-10-30T16:30:27 | 2017-10-30T16:30:27 | null | UTF-8 | Python | false | false | 1,951 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-13 16:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tests', '0020_customdocument'),
]
operations = [
migrations.AlterField(
... | [
"matt@west.co.tt"
] | matt@west.co.tt |
c4cbcc6c6ff33fc8a0ce2a2c4f0425f41f0d9651 | c0e939260f6007966bcf5743e55e618ab1684569 | /recipe/collect_licenses.py | c7cd8f94675530afd008fa70142373d00ad116ed | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | conda-forge/pydata-sphinx-theme-feedstock | 96f1a629fd2c0a222b6b10baf7ef2dcb76ac2254 | 3711fb9ef4507cbabf9b7bc2fdfe73c827db5388 | refs/heads/main | 2023-04-09T07:27:34.353321 | 2023-03-30T21:28:24 | 2023-03-30T21:28:24 | 248,710,998 | 0 | 7 | BSD-3-Clause | 2023-03-30T21:28:25 | 2020-03-20T09:01:36 | Python | UTF-8 | Python | false | false | 741 | py | import shutil
from pathlib import Path
import os
import tempfile
SRC_DIR = Path(os.environ["SRC_DIR"])
PKG_VERSION = os.environ["PKG_VERSION"]
WHL = SRC_DIR / f"pydata_sphinx_theme-{PKG_VERSION}-py3-none-any.whl"
LICENSE_DIR = SRC_DIR / "third-party-licenses"
LICENSE_DIR.mkdir()
LICENSES = {
"font-awesome-LICEN... | [
"nick.bollweg@gmail.com"
] | nick.bollweg@gmail.com |
18f057da57612c57fb198cdfd7a8e685dac98355 | 5332fef91e044555e605bb37cbef7c4afeaaadb0 | /hy-data-analysis-with-python-spring-2019-OLD/part01-e04_multiplication_table/test/test_multiplication_table.py | c66fd19b068ce859287b7f77ad1be72ba2e48ed8 | [] | no_license | nopomi/hy-data-analysis-python-2019 | f3baa96bbe9b6ee7f0b3e6f6b8b0f3adfc3b6cc8 | 464685cb377cfdeee890a008fbfbd9ed6e3bcfd0 | refs/heads/master | 2021-07-10T16:16:56.592448 | 2020-08-16T18:27:38 | 2020-08-16T18:27:38 | 185,044,621 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | #!/usr/bin/env python3
import unittest
from unittest.mock import patch
from tmc import points
from tmc.utils import load, get_out
module_name="src.multiplication_table"
main = load(module_name, "main")
@points('p01-04.1')
class MultiplicationTable(unittest.TestCase):
def test_lines(self):
main()
... | [
"miska.noponen@gmail.com"
] | miska.noponen@gmail.com |
d42849300b095b48a7befc2f88e35239dafdffb6 | 20674c17d815214bf66b75be686bb8a45c0f5914 | /version1/468_Validate_IP_Address.py | 9f08848d28fdc67911e5632a8e8f566e56acccd0 | [] | no_license | moontree/leetcode | e7b670969fe20785b15aae82996875fd66de1b08 | f2bf9b13508cd01c8f383789569e55a438f77202 | refs/heads/master | 2021-05-20T20:36:45.615420 | 2020-04-02T09:15:26 | 2020-04-02T09:15:26 | 252,408,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | """
Write a function to check whether an input string is a valid IPv4 address or IPv6 address or neither.
IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers,
each ranging from 0 to 255, separated by dots ("."), e.g.,172.16.254.1;
Besides, leading zeros in the IP... | [
"zhangchao@zhangchaodeMacBook-Pro.local"
] | zhangchao@zhangchaodeMacBook-Pro.local |
7b539cdf5e3c7a10e5c16fa7e98dcf78d7a51a6b | 8b05c857bf0db4bf1bd794c7ad93ec28118bad08 | /main.py | 9aa096e392c3cb2a4e3cfd73bb5577bb79e9854f | [] | no_license | idelfrides/POC_python_RegEx | e745a77f72bf33c80b46bedc939b3370de566486 | 1e36cdce4a2e532f5148bd47b8000c4168c19f0e | refs/heads/master | 2020-08-12T20:51:44.720432 | 2019-10-14T18:47:08 | 2019-10-14T18:47:08 | 214,839,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | """ Main method
This is a proof of concept made
to Regular Expressions in Python
-------------------------------------
"""
from python_RegEx import reg_ex
def main():
""" Main method
This is a proof of concept made
to Regular Expressions in Python
"""
reo = reg_ex.RegE... | [
"idelfridesjorgepapai@gmail.com"
] | idelfridesjorgepapai@gmail.com |
2a9f28f48ef64cc66888abd6842d8ad2f23a35ff | 35fc084d330e62575c12bc714cbf414c082e9f8a | /ramdisk/target/common/usr/lib/python3.7/site-packages/pytablereader/factory/_file.py | 5112c2459001efadc3d7b181711d7a44db9debad | [
"Python-2.0"
] | permissive | BM1880-BIRD/bm1880-system-sdk | 8de97c6c0985b3bee8b06fb5fd2ee8daec693665 | eff2d6f5442676c04a221a62139864658208f57e | refs/heads/master | 2022-04-08T09:20:47.919696 | 2020-03-09T02:43:08 | 2020-03-09T02:43:08 | 159,283,885 | 29 | 9 | null | null | null | null | UTF-8 | Python | false | false | 5,284 | py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
from __future__ import unicode_literals
from .._common import get_extension
from .._logger import logger
from ..csv.core import CsvTableFileLoader
from ..html.core import HtmlTableFileLoad... | [
"haitao.suo@bitmain.com"
] | haitao.suo@bitmain.com |
7e351d010b37a067a995d414345a5effbe2f7269 | 074e2815a0c3dbb03cae346560c27e409a4444e4 | /gui/demos/tbox.py | 0427874dc0c7a7f3cd713a5ac8f0c3e7a7b98256 | [
"MIT"
] | permissive | maysrp/micropython-nano-gui | 9127e1cbb024810ac2920c8227a448d6cf4678b1 | 5dbcc65828106cfb15c544bb86cc7380a9a83c47 | refs/heads/master | 2023-01-19T18:06:52.286059 | 2020-11-29T10:26:11 | 2020-11-29T10:26:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | # tbox.py Test/demo of Textbox widget for nano-gui
# Released under the MIT License (MIT). See LICENSE.
# Copyright (c) 2020 Peter Hinch
# Usage:
# import gui.demos.tbox
# Initialise hardware and framebuf before importing modules.
from color_setup import ssd # Create a display instance
from gui.core.nanogui import... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
3ebd6def0a8dfab5055b7a8d9de37e1f6d5e579d | 19c47064e35c89cecd20b02ba31d418f719237b8 | /tests/test_cli/test_oyinit.py | ac3d3be3a7bdb81c8c14f2b19661ed9c9917ddc8 | [
"MIT"
] | permissive | leelu/oy-cms | 65f111a06e5cf7b6d5a69fdee884cb900f4d9f0f | 66f2490be7eab9a692a68bb635099ba21d5944ae | refs/heads/master | 2022-11-24T17:42:34.636350 | 2020-03-14T08:54:34 | 2020-03-14T08:54:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import os
import pytest
from click.testing import CliRunner
from oy.cli.oyinit import init_oy_project
runner = CliRunner()
def test_oyinit_basic(app):
project_name = "test_project"
with runner.isolated_filesystem():
result = runner.invoke(init_oy_project, [project_name])
assert os.path.exist... | [
"musharraf.omer@gmail.com"
] | musharraf.omer@gmail.com |
d27f7888fcd169aaf2e987fd9668b2c4e55a64af | a9dc42e9f54b549fcdd695817e347abfd8f2869f | /old/old_bin/alfresco_cmip5_crop_mask_resample_non_tem.py | 14ab0e9b94edfee94a4a95ed9ff77baa498f8ab2 | [
"MIT"
] | permissive | yusheng-wang/downscale | 2e77d070115ead3034c154d29f1c533976228f13 | 3fe8ea1774cf82149d19561ce5f19b25e6cba6fb | refs/heads/master | 2023-04-10T03:25:08.806859 | 2019-09-21T17:34:35 | 2019-09-21T17:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,823 | py | def resample_to_1km( x ):
'''
template_raster_mask should be a mask in in the res/extent/origin/crs of the
existing TEM IEM products.
'''
fn, output_filename, template_raster_mask_fn = x
import rasterio, os
from rasterio.warp import RESAMPLING, reproject
import numpy as np
rst = rasterio.open( fn )
rst_arr ... | [
"lindgren.mike@gmail.com"
] | lindgren.mike@gmail.com |
7624b5c8444f6b9232869af10014d32cf596633a | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/cr-buildbucket/test/tokens_test.py | 320043bf03502d954f08758fd3bbdc3ba0b83008 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 677 | py | # Copyright 2018 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.
from testing_utils import testing
import tokens
class BuildTokenTests(testing.AppengineTestCase):
def test_roundtrip_simple(self):
build_id = 12345... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
c2fb042b25eec301d38342eb885cebcc0488257a | 51d65cbed3df1e9e3a0d51f79590ee12f88291d1 | /position_classification/reporting/sklearn_reporting.py | 76058849cd94f16c83d0c4d50417dcccebbd3d86 | [
"MIT"
] | permissive | apacha/Mensural-Detector | f9332c23854263c6a3f89e8b92f3f666f8377ed8 | 05c91204cf268feaae84cd079dbe7a1852fba216 | refs/heads/master | 2022-09-23T21:20:53.376367 | 2022-08-31T08:36:35 | 2022-08-31T08:36:35 | 137,372,669 | 12 | 6 | null | null | null | null | UTF-8 | Python | false | false | 6,301 | py | import warnings
import numpy as np
import sklearn
from sklearn.metrics import precision_recall_fscore_support
from sklearn.utils.multiclass import unique_labels
def classification_report(y_true, y_pred, labels=None, target_names=None,
sample_weight=None, digits=2, average='weighted'):
""... | [
"alexander.pacha@gmail.com"
] | alexander.pacha@gmail.com |
3e0ed07670c2351f0201c84faaef621064583c51 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/2762.py | ed2c5bceca6513edc267a4600f053dcc2f08cfdf | [] | 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 | 2,324 | py | '''
Created on Mar 19, 2016
@author: elmoatasem
'''
int2Str = lambda x:str(x) # map(int2Str,[1,2]) : [1,2] > ['1', '2']
intList2StringList = lambda x: map(str,x) #map(intList2StringList, [[1,3,4],[4,5,4]]) : [[1, 3, 4], [4, 5, 4]] > [['1', '3', '4'], ['4', '5', '4']]
strList2IntList = lambda x: map(int,x)#map(str... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
27d984e44ca80804b0772231b9e12ba67317480e | 5ca7d629622128ecc389f87ec20f784ffa458b2c | /screens/MainScreen.py | b62a43146dd6736458da6af9e4c1e9df49dc3b49 | [] | no_license | P4SSER8Y/lcdproc-client | a4ebf9deff75765dbcc00679f7e2036c8157e8b2 | 8028115e6418566dcbb0f0c12d31da3b23e9c776 | refs/heads/master | 2021-05-31T07:30:13.716572 | 2016-04-23T08:52:08 | 2016-04-23T08:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | #!/usr/bin/python
from ScreenBase import ScreenBase
import subprocess
import re
import psutil
from datetime import datetime
now = datetime.now
from time import sleep
class MainScreen(ScreenBase):
def getCPUTemp(self):
temp_raw = subprocess.check_output(["vcgencmd", "measure_temp"]).decode("utf8")
... | [
"beobachter70@163.com"
] | beobachter70@163.com |
12ec069bf3a56deb5104aa9902f775f2a08a3718 | 25404f4cfb9be3e6f1b3fe31a1554459eb200813 | /my_test/my_pytest/fixture/test_app.py | 7dd55d1e6ff8c470ec2b32fe1348d151f1b855cd | [] | no_license | nightimero/annal_report_test | 1c6eb4b71482f870c753f5084212afd071929f57 | 7bbc76ba703527ba8f4b84fbdb94fd57b37b9887 | refs/heads/master | 2021-09-06T21:18:59.534963 | 2018-02-11T15:31:21 | 2018-02-11T15:31:21 | 103,259,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # -*- coding: utf-8 -*-
import pytest
class App(object):
a = 1
b = 2
@pytest.fixture(scope='module')
def app():
return App()
def test_smtp_exists(app):
print app.a
app.a = 3
print app.b
app.b = 4
assert app.a
def test_smtp_exists2(app):
print app.a
print app.b
assert ... | [
"chenxiang@aiknown.com"
] | chenxiang@aiknown.com |
82d25ef5c20787f7b4df8eca5dd31e62e4af1466 | 05f9601d3cc9c9cf4c4d877047082cc8ada22c66 | /Veiligheid/lib/python2.7/site-packages/pylint-0.15.2-py2.7.egg/pylint/test/rpythoninput/func_nobuiltin_map.py | d2c42b7d33c296227da6bec39c49268b4286d4a8 | [] | no_license | bmcharek/opendata101-workshops | 1c33491bce4a6bb4be358a7ca8fc23a9b729255b | 941cc193fa2d137d80149a906a503adc80888a40 | refs/heads/master | 2020-06-01T04:31:18.768851 | 2014-04-24T00:36:08 | 2014-04-24T00:36:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py |
import os
def function():
retval = map(function, [])
os.write(2, str(retval) + '\n')
def entry_point(argv):
function()
return 0
def target(*args):
return entry_point, None
| [
"bmcharek@gmail.com"
] | bmcharek@gmail.com |
59f3b98d76e0002576e5fa87f7b1b13044ea5203 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/spaCy/2018/12/jsonl2json.py | 796208c1a9a4d84f55e6b781812cf59e0d773d0a | [
"MIT"
] | permissive | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 671 | py | # coding: utf8
from __future__ import unicode_literals
import srsly
from ...util import get_lang_class
def ner_jsonl2json(input_data, lang=None, n_sents=10, use_morphology=False):
if lang is None:
raise ValueError("No --lang specified, but tokenization required")
json_docs = []
input_tuples = [s... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
655c91013f35ecd8600d90f3f470f9ace60201e8 | 31e9ae0b5431fdb643f228713001d052e93b303d | /tests/bundles/security/_bundles/security/serializers/user_serializer.py | 498e9b0ee08c04cfedb9518e9364307001e07686 | [
"MIT"
] | permissive | briancappello/flask-unchained | b35215b6e150febf8d00fd0164b49d355eae66e6 | a1f1323f63f59760e430001efef43af9b829ebed | refs/heads/master | 2023-05-13T09:11:14.745523 | 2022-04-03T00:27:09 | 2022-04-03T00:27:09 | 115,440,840 | 77 | 9 | MIT | 2023-05-01T23:40:25 | 2017-12-26T17:13:24 | Python | UTF-8 | Python | false | false | 865 | py | import re
from flask_unchained.bundles.api import ma
from flask_unchained.bundles.security.serializers import (
UserSerializer as BaseUserSerializer)
NON_ALPHANUMERIC_RE = re.compile(r'[^\w]')
class UserSerializer(BaseUserSerializer):
username = ma.String(required=True)
first_name = ma.String(required=... | [
"briancappello@gmail.com"
] | briancappello@gmail.com |
89ec8a2a697eec4ebe046661608c9722aa28b63d | d9da59459b0800711dd105fee21467345c67ddd3 | /Python/Console/Check_loop.py | 2240b9cf8a40601dbfc384fcd23a0018910a852e | [] | no_license | alex6446/ProgrammingStuff | fa61415c742967df4a30fbfe993e6ebb15b0f2e8 | 61b73095396fded3740b783edf9408269873a312 | refs/heads/master | 2022-12-04T02:14:27.962459 | 2021-06-29T14:48:59 | 2021-06-29T14:48:59 | 197,647,269 | 1 | 0 | null | 2022-11-22T03:56:19 | 2019-07-18T19:44:44 | Python | UTF-8 | Python | false | false | 181 | py | import sys
n = int(input())
matrix = []
for i in range(n):
matrix.append(input().split())
for i in range(n):
if int(matrix[i][i]) == 1:
print("YES")
sys.exit()
print("NO") | [
"alexeymedenitskiy@gmail.com"
] | alexeymedenitskiy@gmail.com |
845de4339c1c6e22a84186b5ebdd27c9618ed4c8 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /07_Machine_Learning_Mastery_with_Python/08/loocv.py | 0e37448878a92014d3d5a83d8ccbacd664ed13e4 | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | # Evaluate using Leave One Out Cross Validation
from pandas import read_csv
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import LeaveOneOut
from sklearn.model_selection import cross_val_score
filename = 'pima-indians-diabetes.data.csv'
names = ['preg', 'plas', 'pres', 'skin', 'test'... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
72d0b4d2f525fb1e962d9d157d6a70dee3198f72 | 0049832c5cbee4b96189b88b51653f48decde596 | /from server/code/download_cropping_reprojection/GK2A/L1/VI006/download.py | 22ea71f35b8e337b960a42b6f1ef39640d4ca199 | [] | no_license | henockmamo54/ImageFusion | 18cf27ec4a066456c0d575696fc986814d10a7e6 | 07e88b5cb1925f54b3b3659caa2abda2bf4f3a72 | refs/heads/master | 2023-06-16T12:38:07.352623 | 2021-07-19T00:52:02 | 2021-07-19T00:52:02 | 355,720,494 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 13 12:04:56 2021
@author: Henock
"""
import os
os.system('nohup python downloadscript.py 2019-08-01 2020-01-01 > log_VI006.txt &')
| [
"henockmamo54@gmail.com"
] | henockmamo54@gmail.com |
284c844ca2c1042dc936f8ba9403935f6727aa81 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=79/sched.py | 658292d39fdb0123b29fe29852d374c4b85fde48 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | -S 1 -X RUN -Q 0 -L 2 130 400
-S 0 -X RUN -Q 0 -L 2 126 400
-S 0 -X RUN -Q 0 -L 2 72 250
-S 0 -X RUN -Q 0 -L 2 55 175
-S 4 -X RUN -Q 1 -L 1 52 200
-S 4 -X RUN -Q 1 -L 1 37 150
-S 4 -X RUN -Q 1 -L 1 35 175
-S 4 -X RUN -Q 1 -L 1 30 125
-S 3 -X RUN -Q 2 -L 1 29 100
-S 3 -X RUN -Q 2 -L... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
86e917298333fb5e97e91a8faf8f6fd34fe394e2 | 9439925a86711b6397e1cc4c537fd8693e03e6c2 | /alumni_network_api/messages.py | 98cda83f78638dd45ad36913c5fc403996d77c91 | [] | no_license | kartsridhar/Alumni-Network-Orchid | 31b7c7b7a1681dd4ef67ae9af2beafb80826b28d | 34ba67f7f1ed25c85d04cb3fe036c6860db5b9c6 | refs/heads/master | 2022-11-27T05:27:28.805214 | 2020-08-02T22:42:28 | 2020-08-02T22:42:28 | 274,255,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | from flask import Blueprint
from flask import Flask,request,jsonify
import mongoconfig
from bson.objectid import ObjectId
from bson import json_util
import json
messages_route=Blueprint('messages_route',__name__)
@messages_route.route('/getconvo',methods=['POST'])
def getconvo():
payload=request.json
q1={}
... | [
"contactkarthik34@gmail.com"
] | contactkarthik34@gmail.com |
7674a5d7a0a50b1ed02e4f7081b7aa283efe3521 | 17318ced0568a79002fac9f2c9a393a7ad1b56d6 | /pettingzoo/atari/mario_bros_v0.py | 1bfa72b744a83d2130082fee9803a77a9856cca7 | [
"MIT",
"Apache-2.0"
] | permissive | KonstantinKlepikov/PettingZoo | 16aaac48b20e5e266c7485c41026281fbaad8046 | 34c4d38e8fbc1cd6ecbebe58176e6d39ba1645de | refs/heads/master | 2022-11-30T04:41:33.616944 | 2020-08-12T17:24:47 | 2020-08-12T17:24:47 | 287,140,769 | 1 | 0 | NOASSERTION | 2020-08-13T00:09:46 | 2020-08-13T00:09:45 | null | UTF-8 | Python | false | false | 207 | py | from .base_atari_env import BaseAtariEnv, base_env_wrapper_fn
def raw_env(**kwargs):
return BaseAtariEnv(game="mario_bros", num_players=2, mode_num=None, **kwargs)
env = base_env_wrapper_fn(raw_env)
| [
"weepingwillowben@gmail.com"
] | weepingwillowben@gmail.com |
c99d3d4e9968aafc8927abe6b162e684ab08d1ec | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/qichamao_cmpInfo_20210202184219.py | d2a7a023d6f7ea7f4089aee5de3eb2b024004efc | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,657 | py | import requests
from bs4 import BeautifulSoup
import time
import csv
import pandas as pd
import numpy as np
# login = {'user':'13710149700',
# 'password':'123456'}
# 使用的网站是企查查
# requests.post('https://www.qichamao.com',data=login,headers=afterLogin_headers)
afterLogin_headers = {'Cookie':'qznewsite.uid=y4es... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
b9d92221b6d4728bcf54c137bdb1c17797b62bc4 | f94b8b3202c3e6d8f5e0ba42bb36d6bf4c6be681 | /ur10_moveit_ws/build/ur_msgs/catkin_generated/generate_cached_setup.py | 3ac91e843eb97abd94b5da6a43ab3ea2eb237c46 | [] | no_license | mrinmoysarkar/ariac_competition | 7a478967373db39b336a42c38ffc32956d15fa71 | c4feb36a2b67b5c667a80f3fe6b4b1a017f62f02 | refs/heads/master | 2020-06-14T11:09:17.830409 | 2016-12-09T11:38:30 | 2016-12-09T11:38:30 | 75,191,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.p... | [
"mrinmoy.pol@gmail.com"
] | mrinmoy.pol@gmail.com |
93073cca9b6f84e1589ef44d581c137f5a10f43d | 8f48d12b88048e424ebb0d72ca6dfab5cf12ae0f | /0001_0599/228.py | 4d8423a6d6ce45661da51982f1d59fffc7061277 | [] | no_license | renjieliu/leetcode | e1caf13c18a8107ed9252588b339fb76bcb1b246 | 4668b64fcb9320b6c316d8608fc61911ce43b6c7 | refs/heads/master | 2023-03-18T18:16:06.187741 | 2023-03-14T20:31:59 | 2023-03-14T20:31:59 | 128,823,819 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | class Solution:
def summaryRanges(self, nums: 'List[int]') -> 'List[str]':
if nums == []:
return []
output = []
start = nums[0]
end = nums[0]
for i in range(1, len(nums)): # each number, compare with the previous. If it's not prev+1, add previous segment
... | [
"anlrj@qq.com"
] | anlrj@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.