blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f851895535c8f43ebe64751ebaf22d82378cf452 | 1e0b77feea4aa08f2aa9ff63feddbc818428a350 | /script/dedecms/dedecms_win_find_manage.py | 77efcee0ec9487364ba143234992930c3a5232e7 | [] | no_license | cleanmgr112/Tentacle | 838b915430166429da3fe4ed290bef85d793fae4 | 175e143fc08d1a6884a126b7da019ef126e116fa | refs/heads/master | 2022-12-08T06:36:28.706843 | 2020-08-26T14:06:35 | 2020-08-26T14:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,769 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author: 'orleven'
import itertools
from lib.utils.connect import ClientSession
from lib.core.enums import VUL_LEVEL
from lib.core.enums import VUL_TYPE
from lib.core.enums import SERVICE_PORT_MAP
from script import Script
class POC(Script):
def __init__(self, targe... | [
"546577246@qq.com"
] | 546577246@qq.com |
fd665f4ee1a672d4be5eb93dc6f5a52a578af62d | cf297c3d66189d2bd9fd8bfdadaeff3ebe6eee05 | /WebBrickLibs/EventHandlers/tests/DummyRouter.py | aeb6ebe6d84716938a3c453ac113956c324b0805 | [
"BSD-3-Clause"
] | permissive | AndyThirtover/wb_gateway | 0cb68a1f2caf7f06942f94b867ea02f4f8695492 | 69f9c870369085f4440033201e2fb263a463a523 | refs/heads/master | 2022-01-19T00:07:20.456346 | 2022-01-05T21:08:16 | 2022-01-05T21:08:16 | 14,687,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # Copyright L.P.Klyne 2013
# Licenced under 3 clause BSD licence
# $Id: DummyRouter.py 2612 2008-08-11 20:08:49Z graham.klyne $
#
# Some test helpers for testing event handlers. Uses a SuperGlobal to save state.
#
import logging
import sys
import unittest
from EventLib.Event import Event, makeEvent
from EventHandle... | [
"github@lklyne.co.uk"
] | github@lklyne.co.uk |
5c22c50092409f049081caf5752155a483abf51f | 6656c2acc607d269870d04d310e8a35ebbad8d3f | /lib/python2.7/dist-packages/pr2_mechanism_controllers/msg/_Odometer.py | 3a8c8d7ac9f8a3aacb42386f5ce327b54bf4e2bf | [] | no_license | uml-comp4510-5490/install | 97bd8b643773e34f3956e40ac169729a45e34bbe | 2897bf668177aced2e58cac18e86b109716c01df | refs/heads/master | 2020-04-01T05:59:56.541628 | 2018-10-14T01:52:57 | 2018-10-14T01:52:57 | 152,929,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,835 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from pr2_mechanism_controllers/Odometer.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class Odometer(genpy.Message):
_md5sum = "1f1d53743f4592ee455aa3eaf9019457"
_t... | [
"james.perl12@gmail.com"
] | james.perl12@gmail.com |
463634d045761a2bc6089838b2810c79f55472c6 | e519a3134e5242eff29a95a05b02f8ae0bfde232 | /services/control-tower/vendor/riffyn-sdk/swagger_client/models/apply_config_body_manual_data.py | aa75dfca4effe3afe375954d8a1513babe352a82 | [] | no_license | zoltuz/lab-automation-playground | ba7bc08f5d4687a6daa64de04c6d9b36ee71bd3e | 7a21f59b30af6922470ee2b20651918605914cfe | refs/heads/master | 2023-01-28T10:21:51.427650 | 2020-12-04T14:13:13 | 2020-12-05T03:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,229 | py | # coding: utf-8
"""
Riffyn REST API
### Vocabulary Before you begin, please familiarize yourself with our [Glossary of Terms](https://help.riffyn.com/hc/en-us/articles/360045503694). ### Getting Started If you'd like to play around with the API, there are several free GUI tools that will allow you to send req... | [
"jaceys.tan@gmail.com"
] | jaceys.tan@gmail.com |
61f7e1110562904492dddc8c101dfdb04a9f0b79 | 2009735d19318a3ffe8e56687efb8e7688ebaf5a | /models/final_experiment_scripts/MIMIC/LoS/channel_wise_lstm.py | 672a261444acf134a165a8bd320b316b08fb5d3f | [
"MIT"
] | permissive | weikunzz/TPC-LoS-prediction | 7bb9865e2f0fa3b461cb6fc23ed49996bfba59c1 | 30770f3e75d6a2a725c422b837f7ec864708f5d9 | refs/heads/master | 2023-04-06T10:19:12.284137 | 2021-04-08T14:06:53 | 2021-04-08T14:06:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | from eICU_preprocessing.split_train_test import create_folder
from models.run_lstm import BaselineLSTM
from models.initialise_arguments import initialise_lstm_arguments
from models.final_experiment_scripts.best_hyperparameters import best_cw_lstm
if __name__=='__main__':
c = initialise_lstm_arguments()
c['ex... | [
"ecr38@cam.ac.uk"
] | ecr38@cam.ac.uk |
0d7102130db2739bb99c1c008e466724c33ed4b7 | 583d03a6337df9f1e28f4ef6208491cf5fb18136 | /dev4qx/messagepush/task/subscribe.py | be4fdbc0be1cdda9998b0a83fc02a876b7637185 | [] | no_license | lescpsn/lescpsn | ece4362a328f009931c9e4980f150d93c4916b32 | ef83523ea1618b7e543553edd480389741e54bc4 | refs/heads/master | 2020-04-03T14:02:06.590299 | 2018-11-01T03:00:17 | 2018-11-01T03:00:17 | 155,309,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | # -*- coding: utf-8 -*-
import logging
import tornado
from core.subscribe import subscrible_direct
request_log = logging.getLogger("ms.request")
class SubscribeTask(tornado.ioloop.PeriodicCallback):
def __init__(self, application, callback_time):
super(SubscribeTask, self).__init__(self.run, call... | [
"lescpsn@aliyun.com"
] | lescpsn@aliyun.com |
fbefcb0112cca43cc7b8a399c2dde0d4ca329f56 | 182c651a9b00b9b4d80e6d51ae574cb793958cd6 | /widgets/stylesheet/stylesheet.py | f9c37d6886961ae308ad487c3780ee79e8573ba3 | [] | no_license | eudu/pyqt-examples | c61a7108e1fbfcf2cd918a0f99e9a5a90a3f305c | 8e533b7b3c5e9bbe0617ef1ecb9b169dd216c181 | refs/heads/master | 2020-03-16T01:23:19.573347 | 2018-05-06T20:20:57 | 2018-05-06T20:20:57 | 132,438,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,546 | py | #!/usr/bin/python3
#############################################################################
##
## Copyright (C) 2013 Riverbank Computing Limited
## Copyright (C) 2010 Hans-Peter Jansen <hpj@urpla.net>.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## This file is... | [
"dukalow@gmail.com"
] | dukalow@gmail.com |
1f77afe28d0cb282cba9d56049db486e0e6d1c6f | d39bf3e0141f39752b40ca420ec7d90204ad4219 | /tests/test_day_02.py | 213be9a1bfceacdaa6696775d1b77d416bee4eb0 | [] | no_license | jasonbrackman/advent_of_code_2017 | 33260d98e1c348b8d249eabe425783568c3db494 | a50e0cf9b628da96cb365744027d1a800557d1c9 | refs/heads/master | 2022-02-18T18:06:58.119383 | 2019-09-12T05:00:02 | 2019-09-12T05:00:02 | 112,784,403 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | """
5 1 9 5
7 5 3
2 4 6 8
The first row's largest and smallest values are 9 and 1, and their difference is 8.
The second row's largest and smallest values are 7 and 3, and their difference is 4.
The third row's difference is 6.
In this example, the spreadsheet's checksum would be 8 + 4 + 6 = 18.
What is ... | [
"brackman@gmail.com"
] | brackman@gmail.com |
9e8347f3ee2a079d974e2bdbee6c34880736fe6e | d8a9b88f4087ebfe97b462e589071222e2261e47 | /520. Detect Capital.py | 05ac6786a14cb0b3bec7c1c660096e885cf8269c | [] | no_license | rohitpatwa/leetcode | a7a4e8a109ace53a38d613b5f898dd81d4771b1b | f4826763e8f154cac9134d53b154b8299acd39a8 | refs/heads/master | 2021-07-07T12:40:30.424243 | 2021-03-31T00:21:30 | 2021-03-31T00:21:30 | 235,003,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # Check if word is all upper or all lower. elif check if word is one capital and all lower. Else return False.
class Solution:
def detectCapitalUse(self, word: str) -> bool:
if word==word.upper() or word==word.lower():
return True
if word[0] == word[0].upper() and word[1:]==wor... | [
"rohitpatwa@gmail.com"
] | rohitpatwa@gmail.com |
871132389561d6b5b48a9d5e7d876bc1654d5ee6 | f2889a13368b59d8b82f7def1a31a6277b6518b7 | /30.py | 75414b4d6be012ed0fdb069967fc9cd91daa06d6 | [] | no_license | htl1126/leetcode | dacde03de5c9c967e527c4c3b29a4547154e11b3 | c33559dc5e0bf6879bb3462ab65a9446a66d19f6 | refs/heads/master | 2023-09-01T14:57:57.302544 | 2023-08-25T15:50:56 | 2023-08-25T15:50:56 | 29,514,867 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | # ref: https://discuss.leetcode.com/topic/10665/concise-python-code-using
# -defaultdict
import collections
import copy
class Solution(object):
def findSubstring(self, s, words):
"""
:type s: str
:type words: List[str]
:rtype: List[int]
"""
if not words... | [
"b93902098@ntu.edu.tw"
] | b93902098@ntu.edu.tw |
ef8b694de6c2ac6d30f02461ff1ca3cdcf3cd010 | 837377dc4df28263a61ee4af32514b52f3beb976 | /scripts/inverse_reinforcement_learning/envs/gridworld.py | a35a714dc92bf33cb95d8012cb7d6d70b952727c | [] | no_license | aoyan27/reinforcement_learning | 2279a36c1ba0cec1f4e254af71ebb6e6431b5636 | 9170e9e720e0e1a541b586465e01bd89555d27f2 | refs/heads/master | 2021-09-08T01:21:53.630653 | 2018-03-05T03:19:59 | 2018-03-05T03:19:59 | 100,631,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,341 | py | #!/usr/bin.env python
#coding:utf-8
import numpy as np
class Gridworld:
def __init__(self, rows, cols, R_max, noise):
self.rows = rows
self.cols = cols
self.n_state = self.rows * self.cols
self.R_max = R_max
self.noise = noise
self.grid = np.zeros((self.rows, sel... | [
"ce62001@meiji.ac.jp"
] | ce62001@meiji.ac.jp |
6c8ac1427f142513c13bd7794b07ab96a6f4c884 | 751cf52d62dba7d88387fc5734d6ee3954054fc2 | /opencv/experiments_raw/contourExperiments/contourExperiment.py | 25321959930231caf2a2607e82fe2c8687768cfe | [
"MIT"
] | permissive | nooralight/lab-computer-vision | 70a4d84a47a14dc8f5e9796ff6ccb59d4451ff27 | 0c3d89b35d0468d4d3cc5ce2653b3f0ac82652a9 | refs/heads/master | 2023-03-17T12:45:22.700237 | 2017-07-11T22:17:09 | 2017-07-11T22:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | """
Display three views:
original frame
mask
resultant frame
whenever user clicks in original frame, color is specified
this color becomes the new mask color
The system then creates a contour around the largest object of that color on the screen, and a crosshair follows after that object
"""
import cv2
imp... | [
"danbudanov@gmail.com"
] | danbudanov@gmail.com |
76c88c378f30434c23ff53230551d62966e81f4c | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Dazzle/SettingsSandwich.py | 4bf884a1566ec11046ea8ac3aff429377d644bff | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 18,357 | py | # encoding: utf-8
# module gi.repository.Dazzle
# from /usr/lib64/girepository-1.0/Dazzle-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of th... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
8dc31ef220e3a12803bb906e33892e6ea9a93a18 | b00873d36e44128ce30623da0ee3b556e4e3d7e7 | /solutions/solution725.py | 534be36c9402b8115b72bfe0c67a417dff55304b | [
"MIT"
] | permissive | Satily/leetcode_python_solution | b4aadfd1998877b5086b5423c670750bb422b2c8 | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | refs/heads/master | 2021-07-18T07:53:10.387182 | 2021-07-17T06:30:09 | 2021-07-17T06:30:09 | 155,074,789 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | from data_structure import ListNode, build_link_list, flatten_link_list
class Solution:
def splitListToParts(self, root, k):
"""
:type root: ListNode
:type k: int
:rtype: List[ListNode]
"""
def split(h, lh):
if h is not None:
p = h
... | [
"houjiaxu@xiaomi.com"
] | houjiaxu@xiaomi.com |
c3784b117e770c6c6948e80849e5bd8cf0457254 | 7727187a009e4b9c46c2fe06609372ec8814cd23 | /test/test_augment_data.py | d83bec586121132d679dc61a95c78929cece6eea | [] | no_license | govtmirror/freemix-akara | ebf204554f4effc0543e60083698f2ea012413b8 | 1d10c3f02afbd4268852e2c52afdf77809176bdd | refs/heads/master | 2021-01-12T07:47:08.183429 | 2014-06-05T18:53:56 | 2014-06-05T18:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | import os
import urllib, urllib2
from urllib2 import urlopen
from freemix_akara import __version__
from server_support import server
RESOURCE_DIR = os.path.join(os.path.dirname(__file__), "resource")
def test_augment():
import simplejson
url = server() + "augment.freemix.json"
req = urllib2.Request(url)
... | [
"dfeeney@gmail.com"
] | dfeeney@gmail.com |
f1f4be0600c0a96312d2b00339681c2c5efff41b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_cackles.py | b56545b1c6dceb5e279e87bc0ba44c4f57263de2 | [
"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 | 222 | py |
#calss header
class _CACKLES():
def __init__(self,):
self.name = "CACKLES"
self.definitions = cackle
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['cackle']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0f7ddbc55809f101e6c51e745fc682ec6439b74a | edbf8601ae771031ad8ab27b19c2bf450ca7df76 | /283-Move-Zeroes/MoveZeroes.py | b7e24b42230eae378975aceeeb96569feb6628fa | [] | no_license | gxwangdi/Leetcode | ec619fba272a29ebf8b8c7f0038aefd747ccf44a | 29c4c703d18c6ff2e16b9f912210399be427c1e8 | refs/heads/master | 2022-07-02T22:08:32.556252 | 2022-06-21T16:58:28 | 2022-06-21T16:58:28 | 54,813,467 | 3 | 2 | null | 2022-06-21T16:58:29 | 2016-03-27T05:02:36 | Java | UTF-8 | Python | false | false | 548 | py | class Solution(object):
def moveZeroes(self, nums):
"""
:type nums: List[int]
:rtype: None Do not return anything, modify nums in-place instead.
"""
if not nums or len(nums)<2:
return
slow=0
fast=0
size=len(nums)
while fast < size:
... | [
"gxwangdi@gmail.com"
] | gxwangdi@gmail.com |
f8ba0392696152c9b0153c42e7340ebb511a2e0a | 32bfc07c9661b0820e525158ef9a03c1d3256ecd | /Week 2/mysite-link1/django-polls/polls/migrations/0001_initial.py | 8f55db1363fc94de11712f49c0f9b7f97cca9bdc | [] | no_license | Aktoty00/BFDjango | c4d42d0f8d11a14813dbf2d67830531193b81417 | 95e28e9c56b1c1a3a286a1919b942512efdd585a | refs/heads/master | 2021-09-25T15:35:16.722971 | 2020-04-19T11:43:27 | 2020-04-19T11:43:27 | 234,919,812 | 0 | 0 | null | 2021-09-22T18:39:00 | 2020-01-19T15:16:34 | Python | UTF-8 | Python | false | false | 1,178 | py | # Generated by Django 2.1.7 on 2020-01-22 15:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Choice',
fields=[
... | [
"aktoty.rysdaulet@gmail.com"
] | aktoty.rysdaulet@gmail.com |
a789ad6f90b611c1ab8c53baa204e144607c2690 | e7dfccc8136776443461b6580752c7f0f50556b3 | /matrix_webhook/__main__.py | 18d4fccae9584210927760e0ca5fa6e165449fa1 | [
"BSD-2-Clause"
] | permissive | nim65s/matrix-webhook | f223e404922860dfae711b3017664b976fd9d4e2 | ad74f632c630a748577ba201c5e89dfa02eece4d | refs/heads/master | 2023-09-01T01:02:28.097429 | 2023-08-01T11:09:14 | 2023-08-01T11:09:14 | 171,114,171 | 97 | 32 | NOASSERTION | 2023-09-06T13:53:04 | 2019-02-17T11:29:31 | Python | UTF-8 | Python | false | false | 334 | py | """Matrix Webhook module entrypoint."""
import logging
from . import app, conf
def main():
"""Start everything."""
log_format = "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s"
logging.basicConfig(level=50 - 10 * conf.VERBOSE, format=log_format)
app.run()
if __name__ == "__main__... | [
"guilhem.saurel@laas.fr"
] | guilhem.saurel@laas.fr |
15c83f62c9fd56c469799186fc20478de46552d4 | 054eefaa17157b32869ea986347b3e539d2bf06b | /big_o_coding/Blue_13/Homework/day_12_eko_spoj.py | 23dcd5c8db290cfe538fb92b5da5ca59e51c778e | [] | no_license | baocogn/self-learning | f2cb2f45f05575b6d195fc3c407daf4edcfe7d0e | f50a3946966354c793cac6b28d09cb5dba2ec57a | refs/heads/master | 2021-07-12T23:32:14.728163 | 2019-02-10T14:24:46 | 2019-02-10T14:24:46 | 143,170,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import sys
input = sys.stdin.readline
N, M = map(int, input().split())
heights = list(map(int, input().split()))
def getCutted(height):
return sum(max(0, h - height) for h in heights)
left = 0
right = max(heights)
res = 0
while (left <= right):
mid = left + (right - left) // 2
if getCutted(mid) >= M:
... | [
"baocogn123@gmail.com"
] | baocogn123@gmail.com |
064bb76c7c62f304ae205b982893d13f9243fac9 | 1c4110a0bdbb888fd7a82579810cda2c73b52dba | /20210715 Pycharm/Pycharm/venv/Lib/site-packages/bamboo/common/colours.py | 389df001c9cd8b21e7310bebdda8bb08960fbeee | [] | no_license | DrillND/python | d09786e2937a10c9c67170826131b8ee204e0b37 | f6aa1d4d29e4519f89a63af4c3c8f83ed60630ea | refs/heads/main | 2023-06-19T11:51:14.307597 | 2021-07-16T07:18:52 | 2021-07-16T07:18:52 | 355,095,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py |
class bcolours:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
| [
"gornhub13@gmail.com"
] | gornhub13@gmail.com |
caae4574f3a9d4ee99d07f1fe8a8fa13f4a68803 | dea56c4d044a55ccbbc63224e99cdf5c0a37fd8a | /python/ccxt/probit.py | 3fa95319921ee39c8030da45e246abf27193cb2a | [
"MIT"
] | permissive | Biboxcom/ccxt | ece93a53e6dc3b402f068a5aa39bbf9a47b88e47 | a82a15718aa2fe430dbc09fe10cc99575e5d2b35 | refs/heads/master | 2023-04-12T12:56:25.782008 | 2020-12-24T00:08:07 | 2020-12-24T00:08:07 | 324,118,781 | 2 | 0 | MIT | 2023-03-21T09:05:59 | 2020-12-24T09:31:56 | null | UTF-8 | Python | false | false | 48,425 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationE... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
a44a8301d9cf018c0b5ff5bc64748a1262eda343 | b9eb496c4551fd091954675a61382636fc68e715 | /src/ABC1xx/ABC14x/ABC140/ABC140B.py | 8357fa46e4c56c5d78f10b2adcc2a1f6074cfb70 | [] | no_license | kttaroha/AtCoder | af4c5783d89a61bc6a40f59be5e0992980cc8467 | dc65ce640954da8c2ad0d1b97580da50fba98a55 | refs/heads/master | 2021-04-17T16:52:09.508706 | 2020-11-22T05:45:08 | 2020-11-22T05:45:08 | 249,460,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | def main():
_ = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = list(map(int, input().split()))
prev = -100
s = 0
for a in A:
s += B[a-1]
if a - prev == 1:
s += C[prev-1]
prev = a
print(s)
if __name__ == '__m... | [
"kthamano1994@gmail.com"
] | kthamano1994@gmail.com |
2b67e235a3490fd768faa695ff32d76ed01f6f61 | a6bd25c3508d45134436bc3a39345e2565debec0 | /Assignment1/urls.py | 1fec19327932a4d972c8807b1a1ec09c09df8b86 | [] | no_license | gitNikhilsahu/Django-Business-Employee-Management | 2a869dbf9c0aac078662b09db708b7c03b372c5c | e1c6d1588561abf193d70ca4cb91c912c3ea66d1 | refs/heads/master | 2022-12-17T07:58:25.655611 | 2020-09-25T08:43:18 | 2020-09-25T08:43:18 | 298,517,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', include('business.urls')),
path('employee/', include('employee.urls')),
path('admin/', admin.site.urls),
]
if settings.DEBUG:
ur... | [
"Nikhilsahu.in@gmail.com"
] | Nikhilsahu.in@gmail.com |
bf63fe697c539ec382672dc75ea18cf93dae240b | 71d4cc88c68f957a37a2db8234f8178ad2c1c769 | /graphgallery/data/npz_dataset.py | 8e769181796d82f0fa694a5ba370dd41a5b82c3e | [
"MIT"
] | permissive | MLDL/GraphGallery | 3159e0b8ddb1d2fa6b7cea4a27ba075f97db0a03 | 2474622286f135ca693c62981f5a4c4b31bcd2e6 | refs/heads/master | 2022-12-28T03:03:48.516408 | 2020-09-26T16:08:05 | 2020-09-26T16:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py | import os
import zipfile
import os.path as osp
import numpy as np
from graphgallery.data import Dataset
from graphgallery.data.io import makedirs, files_exist, download_file
from graphgallery.data.graph import Graph, load_dataset
_DATASETS = ('citeseer', 'cora', 'cora_ml', 'cora_full', 'amazon_cs', 'amazon_photo',
... | [
"cnljt@outlook.com"
] | cnljt@outlook.com |
2f3dc9b1091c9ce8bf8b3f455db007cea527544b | f55ed49e77f2983f9118a5228a0f6d777c4eac97 | /apps/beeswax/gen-py/TCLIService/ttypes.py | 78d1609bf3c6ecb2180d62fcf47162e7936e3d04 | [
"Apache-2.0"
] | permissive | mravi/hue | feb8543e1490fdbfdaff069c021ae168f72b28c6 | 1190bc41c560edf239c5dfc9689d25f3b4b3ab95 | refs/heads/master | 2020-12-25T21:55:41.294305 | 2013-11-07T11:49:05 | 2013-11-08T01:36:42 | 14,227,040 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | true | 169,041 | py | #
# Autogenerated by Thrift Compiler (0.9.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py:new_style
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TP... | [
"romain@cloudera.com"
] | romain@cloudera.com |
59c65295bbf233c1466985d1aa33bafac20aa3fe | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/1152.py | a5a2f7fcec24d2ae43109115e3074698189fdd34 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from string import ascii_lowercase
from pprint import pprint
import sys, os
sample_googlerese = """ejp mysljylc kd kxveddknmc re jsicpdrysi
rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd
de kr kd eoya kw aej tysr re ujdr lkgc jv
"""
sample_answer = """our language is impossibl... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
77dcd58897fa39cc6326e1fc2178a0adc30ff87b | cbdef2e8ed259adc4653ade34db12d8bcc0cea9f | /dominion/cards/Wizard_Student.py | fa8a42e3234ec5e594f4503326b3c3dd61788893 | [] | no_license | dwagon/pydominion | 8dd5afef8ec89c63ade74c4ae6c7473cd676799f | 545709f0a41529de74f33aa83b106c456900fa5b | refs/heads/main | 2023-08-29T10:02:26.652032 | 2023-08-23T02:25:00 | 2023-08-23T02:25:00 | 18,776,204 | 1 | 0 | null | 2023-08-23T02:25:02 | 2014-04-14T20:49:28 | Python | UTF-8 | Python | false | false | 3,568 | py | #!/usr/bin/env python
import unittest
from dominion import Game, Card, Piles
###############################################################################
class Card_Student(Card.Card):
def __init__(self):
Card.Card.__init__(self)
self.cardtype = [
Card.CardType.ACTION,
... | [
"dougal.scott@gmail.com"
] | dougal.scott@gmail.com |
01f32c1f857b3e6cb6206443d4778d3411fa38fa | 85de10a9467b3cd88ce83227bee0d71706e2c2b0 | /c15/point1.py | bcd93dd9a81cdd42b3999ae7c53212cba3aa9078 | [] | no_license | sreejithev/thinkpythonsolutions | f0bbfc0951e57e9b81f50aabf968860484081524 | 59481fd3d2976e73691a3fff97e083c336070cea | refs/heads/master | 2019-07-22T14:08:54.890004 | 2017-09-15T05:06:26 | 2017-09-15T05:06:26 | 94,759,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | """
Code example from Think Python, by Allen B. Downey.
Available from http://thinkpython.com
Copyright 2012 Allen B. Downey.
Distributed under the GNU General Public License at gnu.org/licenses/gpl.html.
"""
class Point(object):
"""Represents a point in 2-D space."""
def print_point(p):
"""Print a Point ... | [
"sreejithevwyd@gmail.com"
] | sreejithevwyd@gmail.com |
d7a3715564bf502e8f7675515f39437fd16aea6d | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/recipes/libsecret.py | b42a31342843ec94f44a8536408092b7348707ab | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | from .base import GnuRecipe
class LibSecretRecipe(GnuRecipe):
def __init__(self, *args, **kwargs):
super(LibSecretRecipe, self).__init__(*args, **kwargs)
self.sha256 = '9ce7bd8dd5831f2786c935d82638ac42' \
'8fa085057cc6780aba0e39375887ccb3'
self.name = 'libsecret'
... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
da3f14eb4676c866d47a2784491765e6f5abcac8 | 0bbeb0bbe788ec5a8ba15acf159e4b913985bba4 | /tests/testsuite/a_basic/tests_03_networking.py | 5173cf96368f92efba523e5f790107970eeb035a | [
"Apache-2.0"
] | permissive | GlenDC/0-core | 629bd9836ab4ff2fe0c40628419b58205bb64648 | 807fa1939199fa3aa3b3e57679f61bb6c72cc57f | refs/heads/master | 2021-06-17T19:52:40.405225 | 2017-06-14T16:42:39 | 2017-06-14T16:42:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | from utils.utils import BaseTest
import time
import unittest
class BasicNetworking(BaseTest):
def setUp(self):
super(BasicNetworking, self).setUp()
self.check_g8os_connection(BasicNetworking)
def test001_join_leave_list_zerotier(self):
""" g8os-012
*Test case for testing join... | [
"deboeck.jo@gmail.com"
] | deboeck.jo@gmail.com |
52d164c079e7024407ee033d66648507ebb48c67 | 99052370591eadf44264dbe09022d4aa5cd9687d | /install/lib/python2.7/dist-packages/cwru_msgs/msg/_NavSatFix.py | 7fc5ec0e156d178ec0e03f7841197d2a80f8b5d4 | [] | no_license | brucemingxinliu/ros_ws | 11b1a3e142132925d35b3adf929f1000392c5bdc | 45f7e553ea20b79e3e93af5f77a1b14b64184875 | refs/heads/master | 2021-01-24T03:36:47.043040 | 2018-02-26T00:53:37 | 2018-02-26T00:53:37 | 122,892,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,328 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from cwru_msgs/NavSatFix.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import cwru_msgs.msg
import std_msgs.msg
class NavSatFix(genpy.Message):
_md5sum = "2d3a8cd499b... | [
"mxl592@case.edu"
] | mxl592@case.edu |
456dccc0d0b058daea30a5811b67c32f327eaad5 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/breadcrumbs/exceptAs.py | 98450c359de443a2f944b026192782eee6f6b9cc | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 61 | py | try:
print "abc"
except KeyError as e:
print "d<caret>ef" | [
"Semyon.Proshev@jetbrains.com"
] | Semyon.Proshev@jetbrains.com |
6b3e10704b67a05bbd5fc73fe408618d870f0728 | 262311e60529868e38c2c57ee3db573f8e11c458 | /qa-automated/runner.py | c841c2e6d2e393b0fa9c3ef97393f624bae447f1 | [] | no_license | huileizhan227/untitled | 1c5604736d9ffcce6f7cb7e308cdc0ebd07e116a | 07df74c89291b1664a28e3c8dcba51a917f1835f | refs/heads/master | 2023-01-27T11:51:37.609210 | 2020-04-16T11:49:59 | 2020-04-16T11:49:59 | 150,606,504 | 1 | 0 | null | 2023-01-09T12:00:12 | 2018-09-27T15:12:18 | HTML | UTF-8 | Python | false | false | 2,700 | py | import os
import sys
import time
import qasite
import pytest
import config
from multiprocessing import Pool
from performance import Report as Perf
from common import devicectl
from common import serverctl
from common import utils
def run(project_name=None, build_id=None, test_name_filter=None):
# before
if (n... | [
"374826581@qq.com"
] | 374826581@qq.com |
4926ffe92721d5b449773c2caff35eabfbef1e6a | b410490f4249b4075eab92e3a16000a8b839e18c | /object_detection/YOLOv3/dataset.py | 835b5b26d48edf15af90e53cc530340dfc619848 | [] | no_license | TaeYeon-kim-ai/Pytorch | 5936145643a2b36b5c52e43f735bda81264ed6d5 | 452e5543a959f2b280b088635953985e1101041d | refs/heads/master | 2023-07-01T17:29:30.558774 | 2021-08-12T19:01:36 | 2021-08-12T19:01:36 | 387,499,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | #import config
import numpy as np
import os
import pandas as pd
import torch
from PIL import Image, ImageFile
from torch.utils.data import Dataset, DataLoader
from utils import (
iou_width_height as iou,
non_max_suppression_as_nms,
)
ImageFile.LOAD_TRUNCATED_IMAGES = True
class YOLODataset(Dataset) :
de... | [
"lovehjty@gmail.com"
] | lovehjty@gmail.com |
c0f054d4e60c35d007c3451890947d020565fbc5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02783/s809384037.py | b1bac9c9f8363c745905fad4ee60b29b26e6e608 | [] | 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 | 87 | py | n,d=list(map(int,input().split()))
if n%d==0:
print(n//d)
else:
print((n//d)+1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fa653f9c0963489e50b7ebe54873f2359c9252e1 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/P/pere/postliste-ruter.py | 6868c570393c7a8e844c70e499b5f1ed041bc480 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | py | # -*- coding: UTF-8 -*-
import scraperwiki
import json
from BeautifulSoup import BeautifulSoup
import datetime
import dateutil.parser
import lxml.html
import resource
import sys
import urlparse
import re
scraperwiki.scrape('http://www2.ruter.no/verdt-a-vite/presse/offentlig-journal/')
lazycache=scraperwiki.swimport('l... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
274db1c7e4366ef5d355c5f0b6718f4d5f41f569 | 33524b5c049f934ce27fbf046db95799ac003385 | /Дистанционная_подготовка/Программирование_на_python/9_списки/zadache_N.py | bb6732945983d5ab8c93702cbfcc871d84f63cc6 | [] | no_license | mgbo/My_Exercise | 07b5f696d383b3b160262c5978ad645b46244b70 | 53fb175836717493e2c813ecb45c5d5e9d28dd23 | refs/heads/master | 2022-12-24T14:11:02.271443 | 2020-10-04T04:44:38 | 2020-10-04T04:44:38 | 291,413,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py |
l = list(map(int, input().split()))
i = 0
for _ in range(len(l)//2):
l[i], l[i+1] = l[i+1], l[i]
i +=2
print (*l) | [
"mgbo433@gmail.com"
] | mgbo433@gmail.com |
c151f1cb971c5514c93deb2d3355846a22aa6971 | 6f21068b31084e81f38db304a51a2609d8af37cd | /2_Scientific_Libraries/plotsine.py | 13f08b42e470e8a434e801048a9ba254ea8288aa | [] | no_license | vickyf/eurocontrol_datascience | 374b889cac7b8d377caa78079fb57098e73bba0a | 0a7c09002e3b5f22ad563b05a6b4afe4cb6791d7 | refs/heads/master | 2020-03-19T06:03:14.864839 | 2018-06-04T07:24:25 | 2018-06-04T07:24:25 | 135,986,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | %matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0,2*np.pi, 100)
y = np.sin(x)
plt.plot(x,y)
plt.show() | [
"vicky.froyen@infofarm.be"
] | vicky.froyen@infofarm.be |
07bac4b0659c7151d22ec455cb5bbb340db2a1c5 | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /common/util_vietnamese_test.py | 3fa3dfa1e91ecf9cc5553850f8be6ef7c293dfd5 | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | #!/usr/bin/env python
# encoding: utf-8
import unittest
from common import util_vietnamese as uv
class TestUtilVietnamese(unittest.TestCase):
def testConvert2Unsign(self):
self.assertEquals(uv.convert2Unsign(u'Dĩ độc trị độc'), u'Di doc tri doc')
self.assertEquals(uv.convert2Unsign... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
abffbf28fffc2cff9a3165f8a00e57f2989d81b9 | 3b219f97d6ad54b8d061c3d7776dad064777ba0a | /matplotlayers/backends/tk/stack_settings.py | 0a2bb5ae0664a6f831bae21c7905a590ab68b033 | [
"MIT"
] | permissive | friedrichromstedt/matplotlayers | f03e94d99d6550e1657023889ad4defe7f1eb64f | a0c883476ac5b0f457e32e8831d87f7a0ca0bb80 | refs/heads/master | 2021-01-10T21:31:36.012401 | 2011-05-24T14:38:36 | 2011-05-24T14:38:36 | 1,793,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,303 | py | # Copyright (c) 2010 Friedrich Romstedt <friedrichromstedt@gmail.com>
# See also <www.friedrichromstedt.org> (if e-mail has changed)
#
# 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... | [
"friedrichromstedt@gmail.com"
] | friedrichromstedt@gmail.com |
47114303d4036a4aeb4733f34ef927d7095bb970 | ac2c3e8c278d0aac250d31fd023c645fa3984a1b | /saleor/saleor/core/payments.py | 777cdcf229f3af0436638628319a4ed5f6c33a12 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | permissive | jonndoe/saleor-test-shop | 152bc8bef615382a45ca5f4f86f3527398bd1ef9 | 1e83176684f418a96260c276f6a0d72adf7dcbe6 | refs/heads/master | 2023-01-21T16:54:36.372313 | 2020-12-02T10:19:13 | 2020-12-02T10:19:13 | 316,514,489 | 1 | 1 | BSD-3-Clause | 2020-11-27T23:29:20 | 2020-11-27T13:52:33 | TypeScript | UTF-8 | Python | false | false | 1,983 | py | from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, List, Optional
if TYPE_CHECKING:
# flake8: noqa
from ..checkout.models import Checkout, CheckoutLine
from ..discount import DiscountInfo
from ..payment.interface import (
PaymentData,
GatewayResponse,
TokenCon... | [
"testuser@151-248-122-3.cloudvps.regruhosting.ru"
] | testuser@151-248-122-3.cloudvps.regruhosting.ru |
09e35450b6520f6def9cc7c4b3196fd617f912dc | f7b3c098db4dcea347eac5ee18fc19b84cbf2059 | /scrubadub/scrubbers.py | fa06a388bb3e10f0b9bdd5a8bc93ad220ffe8f15 | [
"MIT"
] | permissive | jb08/scrubadub | f625a4bc265dfb743ab91f0a1449629392233cb2 | 7e7b6acc3938ded1e596960b6f095b7e79ae503e | refs/heads/master | 2021-01-16T22:03:02.271663 | 2016-01-14T20:25:32 | 2016-01-14T20:25:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,748 | py | import re
import operator
import textblob
import nltk
from . import exceptions
from . import detectors
from .filth import Filth, MergedFilth
class Scrubber(object):
"""The Scrubber class is used to clean personal information out of dirty
dirty text. It manages a set of ``Detector``'s that are each responsib... | [
"dean.malmgren@datascopeanalytics.com"
] | dean.malmgren@datascopeanalytics.com |
a50ab7354bd04c8263af34a4f7c90352a755304e | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/scipy/sparse/lil.py | c70f816d9a9118c4cec72b2b2917dca5086450f2 | [
"MIT",
"BSD-3-Clause-Open-MPI",
"BSD-3-Clause",
"GPL-3.0-or-later",
"Apache-2.0",
"Qhull",
"BSD-2-Clause",
"GCC-exception-3.1",
"Python-2.0",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 17,782 | py | """LInked List sparse matrix class
"""
from __future__ import division, print_function, absolute_import
__docformat__ = "restructuredtext en"
__all__ = ['lil_matrix','isspmatrix_lil']
from bisect import bisect_left
import numpy as np
from scipy._lib.six import xrange, zip
from .base import spmatrix, isspmatrix
fr... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
9e8d55b19f819bc5d3bd1235d4e62225b2271730 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyedit/pyedit-032/pyedlib/pedync.py | 0ba8b937ecb2f51e498cc3516a5f9b0a422ebcc7 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,693 | py | #!/usr/bin/env python
# Prompt Handler for pyedit
import os, string, gtk, gobject
import pyedlib.pedconfig
# ------------------------------------------------------------------------
def yes_no_cancel(title, message, cancel = True):
dialog = gtk.Dialog(title,
None,
gtk.DIALO... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
a58a9d7303bef7ea14954d5a6376cf8f18b14d02 | fe91ffa11707887e4cdddde8f386a8c8e724aa58 | /chrome/test/enterprise/e2e/policy/safe_browsing/safe_browsing_ui_test.py | 296faf0623b41a371544722ac0962d719d89d5de | [
"BSD-3-Clause"
] | permissive | akshaymarch7/chromium | 78baac2b45526031846ccbaeca96c639d1d60ace | d273c844a313b1e527dec0d59ce70c95fd2bd458 | refs/heads/master | 2023-02-26T23:48:03.686055 | 2020-04-15T01:20:07 | 2020-04-15T01:20:07 | 255,778,651 | 2 | 1 | BSD-3-Clause | 2020-04-15T02:04:56 | 2020-04-15T02:04:55 | null | UTF-8 | Python | false | false | 2,371 | py | # Copyright 2019 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.
import re
import test_util
import time
from absl import app
from selenium import webdriver
from pywinauto.application import Application
UnsafePageLink = "h... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
61a13c91993c787854fd3d4282aba7d225cc06e8 | 4b32cbc767e8cc0d61e7771b8a6d5c7c9b324a97 | /Python/1676 (팩토리얼 0의 개수,수학).py | 1f1b2191894cf9d0e4754ced7350cb220d5c75dc | [] | no_license | Jongminfire/Baekjoon | 45e554c983fa583ca7a1709e1ac435e1a38e075b | 8dc0ec58ddc43de2dd44b3b1af9346f708c1208e | refs/heads/master | 2023-07-29T10:35:52.648825 | 2021-09-14T15:12:22 | 2021-09-14T15:12:22 | 247,514,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | n = int(input())
print(n//5+n//25+n//125)
# 팩토리얼 0의 개수는 5의 x제곱일 때 x만큼 늘어난다
| [
"51112542+Jongminfire@users.noreply.github.com"
] | 51112542+Jongminfire@users.noreply.github.com |
a8b6f5e111d6183e5069a6819cb3177032881f29 | 672c454454cc62a49d0caf74558c265c7db4228f | /Model.py | 428fe5396ea2642e37d6dd7c1f008ff649c0a003 | [] | no_license | nmaypeter/project_nw_200505 | cd0ce01ce07c41683ca96b0dac3960bfac6b8ffd | f0871506f8ed4dbdd8e1b1a0dcbfa20196a652b7 | refs/heads/master | 2022-07-29T23:16:10.271862 | 2020-05-17T16:37:07 | 2020-05-17T16:37:07 | 261,580,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,600 | py | from SeedSelection import *
from Evaluation import *
import time
import copy
import math
class Model:
def __init__(self, mn_list, data_key, prod_key, cas_key, wallet_key=0):
self.model_name = get_model_name(mn_list)
self.r_flag = mn_list[1]
self.mn_list = mn_list
self.data_name = d... | [
"37822464+nmaypeter@users.noreply.github.com"
] | 37822464+nmaypeter@users.noreply.github.com |
b1a541ae2823325189c5b0f803ec117c9df66d07 | de69d99db8be567d97060149481091c25907d4ef | /src/trees/binary_trees.py | 84f2bcde422555256b4619c0ba4e877f5b7f152d | [] | no_license | chalam/Pynaconda | 0dd5acdb19c38352ee5d4b92c002d05bd75e452d | e24600d26afbc685e3853a6037f50dfc3fe077d2 | refs/heads/master | 2021-01-10T13:37:54.811250 | 2018-10-13T20:48:44 | 2018-10-13T20:48:44 | 36,340,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,556 | py | class Node:
"""
Class Node
"""
def __init__(self, value):
self.left = None # No self-referential Node in python
self.data = value
self.right = None
class Tree:
"""
Class tree will provide a tree as well as utility functions.
"""
def createNode(self, data):
... | [
"dim2dip@gmail.com"
] | dim2dip@gmail.com |
c9d62cd28eb6a98c113b079864bf0553c983be35 | 284f4f56aed56573eb5516aa67c99bf41e595522 | /Leetcode/Arrays/p3574.py | 4261a42c73d1469fdff5a35d33f807e57238da87 | [] | no_license | rohangoli/PythonAdvanced | 537a05eff9ec305a6ec32fa2d0962a64976cd097 | 6448a5f0d82c7e951b5e476638e15a3c34966cd9 | refs/heads/develop | 2023-07-20T04:33:50.764104 | 2023-07-14T04:04:18 | 2023-07-14T04:04:18 | 126,811,520 | 0 | 0 | null | 2022-06-10T23:07:10 | 2018-03-26T10:20:16 | Jupyter Notebook | UTF-8 | Python | false | false | 514 | py | ## Squares of a Sorted Array
# Example 1:
# Input: nums = [-4,-1,0,3,10]
# Output: [0,1,9,16,100]
# Explanation: After squaring, the array becomes [16,1,0,9,100].
# After sorting, it becomes [0,1,9,16,100].
# Example 2:
# Input: nums = [-7,-3,2,3,11]
# Output: [4,9,9,49,121]
class Solution:
def sortedSquares(sel... | [
"rohanr27@gmail.com"
] | rohanr27@gmail.com |
cf12b9fec72682fc2aa7ad9307da65aab512a315 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01/operations/_virtual_network_gateway_nat_rules_operations.py | 8cc37a0f84e06af9a668517eea78cd7432103909 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 22,954 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
1525fa01ca88e86a1491f6968ca7daf25bda962c | c086a38a366b0724d7339ae94d6bfb489413d2f4 | /PythonEnv/Lib/site-packages/win32com/server/exception.py | f84cccdf5e349025e91ae2f9bdf4e87a0bb9e8d9 | [] | no_license | FlowkoHinti/Dionysos | 2dc06651a4fc9b4c8c90d264b2f820f34d736650 | d9f8fbf3bb0713527dc33383a7f3e135b2041638 | refs/heads/master | 2021-03-02T01:14:18.622703 | 2020-06-09T08:28:44 | 2020-06-09T08:28:44 | 245,826,041 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,452 | py | """Exception Handling
Exceptions
To better support COM exceptions, the framework allows for an instance to be
raised. This instance may have a certain number of known attributes, which are
translated into COM exception details.
This means, for example, that Python could raise a COM exception that includes... | [
"="
] | = |
f1de4f284f6ae6dcbf0e216dae4bd4020b7fe948 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Mastering-Machine-Learning-scikit-learn/NumPy-Cookbook/NumPy Cookbook 2nd Edition_CodeBundle/Final Code/0945OS_05_Final Code/ch5code/sobel.py | 7a60c93500bba9e0a6d9825f564f9b66bfa7ba43 | [] | 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 | 623 | py | import scipy
import scipy.ndimage
import matplotlib.pyplot as plt
lena = scipy.misc.lena()
plt.subplot(221)
plt.imshow(lena)
plt.title('Original')
plt.axis('off')
# Sobel X filter
sobelx = scipy.ndimage.sobel(lena, axis=0, mode='constant')
plt.subplot(222)
plt.imshow(sobelx)
plt.title('Sobel X')
plt.axis('off')
# ... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
3f2079b1e4c24c815959e7a54257986eb1c35628 | 82199bfad7b77d62aa265c8ea463e20df6901801 | /global_variables.py | 0349063285f925772377b500255d2fdee5a359ce | [] | no_license | hyzcn/interactive-behaviour-design | 6119f8685b91226916f06678735fcfea5e6c27ab | 26faa63f0d1494dedd7dd9c3757ab08ec6473119 | refs/heads/master | 2020-05-16T09:04:42.342957 | 2019-04-22T19:26:27 | 2019-04-22T19:38:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # ALE is generally safe to use from multiple threads, but we do need to be careful about
# two threads creating environments at the same time:
# https://github.com/mgbellemare/Arcade-Learning-Environment/issues/86
# Any thread which creates environments (which includes restoring from a reset state)
# should acquire thi... | [
"matthew.rahtz@gmail.com"
] | matthew.rahtz@gmail.com |
9b43ee53672fb7b8aa059524c4d04d2b92fd2289 | 689a557b32161faafeb0b68076bca96b65c320ce | /restourant/migrations/0003_auto_20170726_1525.py | 3156e7bad15655147d6acc6853903542146c11b9 | [] | no_license | FNSalimov/new | 5d957a5e2543bcecece2fa88e4ff61030eb58203 | e2b15e5e83dbc22d776112fc5859219d7f625e4f | refs/heads/master | 2021-01-01T18:36:54.171096 | 2017-07-27T06:27:24 | 2017-07-27T06:27:24 | 98,386,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-07-26 12:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('restourant', '0002_order_orderdish'),
]
operations = [
migrations.RemoveField(... | [
"you@example.com"
] | you@example.com |
8519508e4603dd2e130c752354be03bd1e5116b5 | 6cb32cc2ee3ced7ea1a710283633d2cd76c42232 | /commercialoperator/components/organisations/emails.py | cc8911455d416c0462204f47e0455ba75fcf812b | [
"Apache-2.0"
] | permissive | dbca-wa/commercialoperator | 913889973066a5e8bd399835cfbaf948af4ea596 | e29306b1c6213f0f37a6a190e439745965ee3e32 | refs/heads/master | 2023-08-31T01:19:06.803451 | 2023-07-28T01:40:38 | 2023-07-28T01:40:38 | 239,469,350 | 0 | 10 | NOASSERTION | 2023-09-07T07:25:58 | 2020-02-10T09:07:54 | Python | UTF-8 | Python | false | false | 16,300 | py | import logging
from django.core.mail import EmailMultiAlternatives, EmailMessage
from django.utils.encoding import smart_text
from django.core.urlresolvers import reverse
from django.conf import settings
from commercialoperator.components.emails.emails import TemplateEmailBase
logger = logging.getLogger(__name__)
S... | [
"asi@dpaw.wa.gov.au"
] | asi@dpaw.wa.gov.au |
7263a68d87f21b4ea91d391b6d4f9ed8b297e855 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Clutter/TextPrivate.py | b4fbac1eab470075b4b2e86eeac89087a5a7d5ff | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,373 | py | # encoding: utf-8
# module gi.repository.Clutter
# from /usr/lib64/girepository-1.0/Clutter-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
f44499d267dd8e234c6c753a888ab64ee817e509 | d63c4b9e05638d6abb68333edf43936134b97570 | /tests/core/models/test_template.py | 981933fcd9a8e20f4d54ca7c320469541ac33f2a | [
"Apache-2.0",
"Python-2.0"
] | permissive | SwissDataScienceCenter/renku-python | 316dc83646e9014803dff268438d34e844ba0b54 | e0ff587f507d049eeeb873e8488ba8bb10ac1a15 | refs/heads/develop | 2023-08-31T20:33:09.342385 | 2023-08-24T08:15:46 | 2023-08-24T08:15:46 | 100,947,017 | 30 | 25 | Apache-2.0 | 2023-09-12T21:52:34 | 2017-08-21T11:49:21 | Python | UTF-8 | Python | false | false | 9,532 | py | #
# Copyright 2019-2023 - Swiss Data Science Center (SDSC)
# A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
# Eidgenössische Technische Hochschule Zürich (ETHZ).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licen... | [
"noreply@github.com"
] | SwissDataScienceCenter.noreply@github.com |
87db130e21a172d48ce24cd1480dd27f518ba1f0 | 8313b823a755694cfd71e57ad63760ba1c7009d4 | /Classification/kernal_SVM.py | adcd73f8c99e84b0ddc56f69991b888dba8e9c20 | [] | no_license | KRBhavaniSankar/Machine-Learning | 49063374a8b243563212cf52a933da03b41bb576 | 339f146362aa5960794d8ddcef50d502955c24c4 | refs/heads/master | 2021-06-07T17:09:57.259971 | 2020-02-18T13:40:03 | 2020-02-18T13:40:03 | 143,809,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,638 | py | # Kernal-SVM Classification
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, 4].values
# Splitting the dataset into the Training set and Test ... | [
"krbhavanisankar@gmail.com"
] | krbhavanisankar@gmail.com |
5feaa7de4cb28d27aa5cf50cc0daa4d89a2fed56 | a590cb0c9b232ad98d17a9917a36930c6a2c03f8 | /8kyu/8kyu interpreters HQ9.py | b0236dc360274759dbaabb6e495a1fd40a998e01 | [] | no_license | AbbyGeek/CodeWars | 6e10c10cbdb11f2df17a657d11ff5ffa79a5fb0b | 64dddda9f2a14a0592cc946b35302c4bd9bc569e | refs/heads/master | 2020-12-21T00:14:53.665879 | 2020-01-26T01:16:41 | 2020-01-26T01:16:41 | 236,252,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,148 | py | def HQ9(code):
if "9" in code:
return "99 bottles of beer on the wall, 99 bottles of beer.\nTake one down and pass it around, 98 bottles of beer on the wall.\n98 bottles of beer on the wall, 98 bottles of beer.\nTake one down and pass it around, 97 bottles of beer on the wall.\n97 bottles of beer on the wal... | [
"abbyrosewest@gmail.com"
] | abbyrosewest@gmail.com |
0dad5e1d305a873fa56187c074313e2abafcd989 | a57a79bd2cb2397c6d879751e7041e9142390acc | /apps/tags/management/commands/migrate_tags.py | ba82af97368ac66dbcffd52844782f5c57617454 | [] | no_license | cephey/country | b41e85bfd5df20caec5d6f54b409ffe4f1b11ac3 | 774800e79417122876119246bb5b6e9b2e186891 | refs/heads/master | 2021-01-22T23:15:46.934125 | 2017-09-10T21:53:16 | 2017-09-10T21:53:16 | 85,618,298 | 0 | 0 | null | 2017-05-11T11:34:16 | 2017-03-20T19:36:45 | Python | UTF-8 | Python | false | false | 911 | py | import csv
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from apps.tags.models import Tag
class Command(BaseCommand):
help = 'Migrate tags from csv'
def add_arguments(self, parser):
parser.add_argument('--path', help='/path/to/file.csv')
def... | [
"andrey.ptitsyn86@gmail.com"
] | andrey.ptitsyn86@gmail.com |
65f5d2a5f15722582ddbc314d4a85e0b2b534645 | 99ea33e3b36d3da52d3817c28fd60696e4d36c91 | /config/settings.py | e7d355059e8274925475bf1ab8ef560a7afa450e | [] | no_license | ghostnoop/WhatToWatch-ml-telegram | 2628c97a62f24ac149f540386d0d14a2091d97d9 | da7bb1386dab789641d9245544e89cf5d983fb50 | refs/heads/main | 2023-03-09T07:15:15.707105 | 2021-02-22T19:00:13 | 2021-02-22T19:00:13 | 341,305,969 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import tmdbsimple as tmdb
class BotSettings:
API_TOKEN = "1083477387:AAHtlo1ngC61ZFA8rVadPut15CUjX92h79U"
ADMIN_ID = 153621836
tmdb.API_KEY = 'ad11be6ccbdb27f9a1f4530c5848891f'
| [
"giliyazovmarat@gmail.com"
] | giliyazovmarat@gmail.com |
ed4170fd87c23a603adf961d9030d73d0b004cf1 | 2b1448085c5ad44e78772dde1dcc2fae9cc4c3cc | /botorch/sampling/__init__.py | d27b244ea432efe02fe8a14dadd028d62b99e381 | [
"MIT"
] | permissive | leelasd/botorch | 47fa0ff9c5f6c534ecfcba59f5b1bf52eea0d62e | c48bfc822940ee8a6e5e2604d4ff282033dbe892 | refs/heads/master | 2022-12-17T04:42:41.591444 | 2020-09-10T23:45:05 | 2020-09-10T23:46:41 | 294,561,185 | 1 | 0 | MIT | 2020-09-11T01:19:36 | 2020-09-11T01:19:35 | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from botorch.sampling.pairwise_samplers import (
PairwiseIIDNormalSampler,
PairwiseMCSampler,
PairwiseSobol... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
884dd2e27584897fc76bd41c4be519872d0ebcf0 | 07a42b46fe9f154c32c1cfe4e7ef878d5c653ae7 | /simple_skeleton/urls.py | 9d3acfd8f816549f4662656cda55eb48a7def3ea | [
"MIT"
] | permissive | Mamacitapunto/simple-django-skeleton | 0d2fe60616a2df7829f1fdf05b57754f464d6e9f | 0babb4aa6bfcf6b9a803caed3a4167cbf4d9113f | refs/heads/master | 2021-01-19T04:25:03.444748 | 2015-11-30T20:16:02 | 2015-11-30T20:16:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from django.conf.urls import include, url
from django.contrib import admin
from simple_skeleton.apps.core import views as core_views
urlpatterns = [
url(r'^$', core_views.home, name='home'),
url(r'^admin/', include(admin.site.urls)),
]
| [
"vitorfs@gmail.com"
] | vitorfs@gmail.com |
46b616bb437858d13cdcf1b05ea6e7262bb7899c | 0a530e71f248f0f731c6a3f28f090d1bb26b55e3 | /apps/testdatas/adminx.py | 4b18c25724826878478f7f85cf1f487e75812bb2 | [] | no_license | wawj901124/fuwuqi | cca9935f7b110dfdf38c93d59602a596ecac0d58 | e388fd10cf4fdb889d6566b7a30702b7c7351750 | refs/heads/master | 2022-12-13T13:12:10.854319 | 2020-01-18T00:42:52 | 2020-01-18T00:42:52 | 209,901,486 | 0 | 0 | null | 2022-11-22T02:40:33 | 2019-09-21T00:23:51 | Python | UTF-8 | Python | false | false | 63,303 | py | import xadmin
from .models import ClickAndBack,User,NewAddAndCheck,SearchAndCheck,DeleteAndCheck,EditAndCheck
from .models import InputTapInputText,InputTapInputFile,InputTapInputDateTime,SelectTapSelectOption,AssertTipText
from .models import IframeBodyInputText
from .models import RadioAndReelectionLabel
from .model... | [
"wawj900805"
] | wawj900805 |
61c120b8fd81352b68514fa25a7440b9e07c6d13 | 7807d8d9d109a3e272fffed91bf841201da39256 | /trans_NTL_1_C/aaa119_NTL_1_C_kotonoha.py | b982f55f4bfddd7e6698b1ac8f94bef517d3ba62 | [] | no_license | y-akinobu/AOJ_to_Kotonoha | 0e8df43393964fcdd5df06c75545091bd6c0c2e2 | 5a694a55a3d85e3fbc4a07b57edc4374556db9a1 | refs/heads/main | 2023-02-05T15:33:16.581177 | 2020-12-30T16:14:44 | 2020-12-30T16:14:44 | 325,524,216 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | [#Document [# 'coding: utf-8']][#Document [# '76']]
# fractionsモジュールを用いる
import fractions
# 入力された文字列の整数値をnとする
n = int(input())
# 'map(整数,{{入力された文字列を空白で分割した列}})のリストをaとする
a = list(map(int,input().split()))
# aの最初値をansとする
ans = a[0]
# '1からn未満までの数列の各要素を順にiとして、繰り返す
for i in range(1,n) :
# ansにa(i)を掛けた値をfractions.gcd(ans,... | [
"sx2_vn_yuka@outlook.jp"
] | sx2_vn_yuka@outlook.jp |
8f8f3812524da3845410fcca49e1304a214732b9 | 33421188df7d7dcf2ee9be0771b0f2fe1ffad4f5 | /2014/Codemotion/celery/examples/canvas/tasks.py | 852cca47ec68a4b448671ea1b3a13cf41af94abc | [
"CC-BY-4.0"
] | permissive | Gustavo17/ponencias | c0482fc7a72d7d4d829a54b94775e77c81ca5d97 | effb002b0300fe57d26776654b61a2396010da40 | refs/heads/master | 2021-01-13T09:18:13.837313 | 2014-11-21T04:58:11 | 2014-11-21T04:58:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from celery import Celery, group, chain, chord
import time
app = Celery('tasks', backend='amqp', broker='amqp://guest@localhost//')
@app.task
def fetch_url(url):
return "CONTENT DATA"
@app.task
def lowcase(content):
return content.lower()
@app.task
def split(content):
return content.split()
@app.task
d... | [
"jesus.espino@kaleidos.net"
] | jesus.espino@kaleidos.net |
66e9fcb90504ec32f0a70a93da82359f2ac7ebb4 | a96033c99f6dc8994c09928153d51ac249f4d4ff | /barf/barf/core/reil/reilemulator.py | 178284edce38528fd8192a5d317b0ac2ec660f9a | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ignaeche/barf-project | 0a1d8c77086fb7fc13d3b8282aac63dc84f58b85 | 075782045f52924fbb1312140b4c525f75e85e82 | refs/heads/master | 2021-01-15T09:19:01.103284 | 2015-09-22T18:08:12 | 2015-09-22T18:08:12 | 43,160,150 | 0 | 0 | null | 2015-09-25T16:29:18 | 2015-09-25T16:29:18 | null | UTF-8 | Python | false | false | 35,549 | py | # Copyright (c) 2014, Fundacion Dr. Manuel Sadosky
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this
# list of condit... | [
"cnheitman@fundacionsadosky.org.ar"
] | cnheitman@fundacionsadosky.org.ar |
be8a44a141a5d792643c73427964c8088de152e4 | 448756d7ff6c9cbdf0a8b3b4ff8309207a6bb504 | /scripts/howtofit/chapter_database/profiles.py | 7621d81f9dc7090851b2ab1977513de4f4476fbc | [] | no_license | jonathanfrawley/autofit_workspace_copy | f84c8ed8d8106cbd0735601b54d35104976219cf | 4631ac452f62cd9c3d5257b4d0b2a64630c51ecf | refs/heads/master | 2023-04-21T04:06:20.140963 | 2021-05-13T16:02:59 | 2021-05-13T16:02:59 | 367,427,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,552 | py | import numpy as np
"""
In tutorial 5, we perform modeling using multiple profiles, in particular the `Gaussian` profile from the previous
tutorials and an Exponential profile. In analysis.py, we will edit how model-data is generated from profiles such
that it is the sum of all profiles in our model.
In this mo... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
6a2a59d480d7535ce9790d74f76a9ff441a76d8a | 8c5c74f6f0d19111f2873fcf7763ad1529110cb7 | /Examples/game4.py | a514e08d8424e79f30572b4f0255928ac58bc963 | [] | no_license | lostboy1/cps-108 | 44ba4e4aa6e224f73b8b82ab91c2216bdb821026 | 4264567557ba772f1b5e62ce380cf540af40d5d3 | refs/heads/master | 2023-01-19T13:19:10.469778 | 2020-12-01T07:39:29 | 2020-12-01T07:39:29 | 288,768,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py |
from tkinter import Tk, Canvas, mainloop
SPEED = 10
root = Tk()
c = Canvas(root, width=500, height=500)
c.pack()
# Put drawing here!
c.create_rectangle(0, 0, 500, 300, fill='blue')
c.create_rectangle(0, 300, 500, 500, fill='yellow')
c.create_rectangle(347, 380, 353, 450, fill='white')
c.create_polygon(350, 360, 400... | [
"brandon@rhodesmill.org"
] | brandon@rhodesmill.org |
798b7d8a6302939a34469359265942e49b7adc81 | 9839b73a6c09ac8a110feb692ef0c001d93f8cbf | /examples/advanced/preprocessGapFill.py | fddd2531aa700c42c6ca76aff7b6d658df654398 | [
"MIT"
] | permissive | GeoMTMan/resistics | c253caa9a70295a462756625261f93349475908f | 942afe45456f63657267020749d723f7eee89934 | refs/heads/master | 2020-08-01T10:25:12.535890 | 2019-09-25T23:36:39 | 2019-09-25T23:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | py | from pathlib import Path
from resistics.project.projectIO import loadProject
projectPath = Path("preprocessProject")
proj = loadProject(projectPath)
proj.printInfo()
from resistics.utilities.utilsPlotter import plotOptionsTime, getPresentationFonts
plotOptions = plotOptionsTime(plotfonts=getPresentationFonts())
fro... | [
"nss350@gmail.com"
] | nss350@gmail.com |
55a42b6ae85147bc6d3fec90d6653672efb28b4e | 3ae38471ca4ff70e30d8eeb0508b9b0aab5e19a2 | /web/models.py | c7e701ae4777b6eeb1dcdcbf6d7c130c9268d9b0 | [] | no_license | Hamidnet220/Chapar | 5596d6b703aa4c01c1010f0067cde5a57c33e336 | 3654601f34f0c58a17813851448889ccbf2c1c90 | refs/heads/master | 2020-05-03T04:22:51.140098 | 2019-04-02T05:15:50 | 2019-04-02T05:15:50 | 178,419,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | from django.db import models
from django.core.exceptions import ValidationError
from django.contrib.auth.admin import User
# Create your models here.
def empty_validate_event(value):
if len(value)<=2:
raise ValidationError(("You can not leave this field empty!"),params={'value':value},)
class Organization... | [
"kiani.hamidreza@gmail.com"
] | kiani.hamidreza@gmail.com |
187fddd67774c914ce223c7045ba7f5c7c4549d1 | 86cc17a69213569af670faed7ad531cb599b960d | /playeer38.py | 429d4c4e3d64f9d3acb3095ca8e5794d9b54fa00 | [] | no_license | LakshmikanthRavi/guvi-lux | ed1c389e27a9ec62e0fd75c140322563f68d311a | 5c29f73903aa9adb6484c76103edf18ac165259e | refs/heads/master | 2020-04-15T05:07:19.743874 | 2019-08-13T08:53:00 | 2019-08-13T08:53:00 | 164,409,489 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | v=int(input())
li=[]
for i in range(1,v+1):
if v%i==0 and i%2==0:
li.append(i)
print(*li)
| [
"noreply@github.com"
] | LakshmikanthRavi.noreply@github.com |
9a18da4e47bb28850eb94b19cf46de0c7858bff1 | 008c065391d766fec2f2af252dd8a5e9bf5cb815 | /Compress the Lis.py | 177600548b994ba7e7b61511e9f4aed3f2340214 | [] | no_license | 22Rahul22/Codechef | b261ab43ff5ff64648a75ad1195e33cac2cfec52 | 1f645c779a250a71d75598e1eabad7e52dd6b031 | refs/heads/master | 2022-11-29T21:51:09.578798 | 2020-08-19T06:20:23 | 2020-08-19T06:20:23 | 288,650,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | t = int(input())
for _ in range(t):
n = int(input())
arr = list(map(int, input().split()))
c = 0
a = []
k = 0
s = ""
j = 0
arr.append(0)
for i in range(n):
if arr[i] + 1 == arr[i + 1]:
c += 1
else:
if c >= 2:
a.append(i - c)
... | [
"rahulbhl22@gmail.com"
] | rahulbhl22@gmail.com |
afec6ff7cb948c37315e39f43f5cc45300ea961e | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/builds/worker_pools/update.py | 903d79a17921d38c35943f2dfa7934dd354f2143 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 12,000 | py | # -*- coding: utf-8 -*- #
# Copyright 2018 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
2af7d3345e7878e5745045fa9d0cc15efba802d3 | 8e7e9aaf06fed4e5be52f61462a40539c55d0f76 | /Chapter03/wifi_lookup.py | 191b4060e6064134d820b48c18240f5a011382c0 | [] | no_license | CodedQuen/Python-Digital-Forensics-Cookbookk | 2809ed1680958250a139c22f8a33b5512b608d98 | f69e56d4f2f88e71a74dc538c7b3a934ee014369 | refs/heads/master | 2022-06-06T10:10:36.288517 | 2020-05-04T03:06:39 | 2020-05-04T03:06:39 | 261,067,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,612 | py | from __future__ import print_function
import argparse
import csv
import os
import sys
import xml.etree.ElementTree as ET
import requests
"""
MIT License
Copyright (c) 2017 Chapin Bryce, Preston Miller
Please share comments and questions at:
https://github.com/PythonForensics/PythonForensicsCookbook... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
0445ea582c61d35c6eefd8882991e0c018529aec | 1e987bd8b8be0dc1c139fa6bf92e8229eb51da27 | /deeplearning/ml4pl/models/lstm/lstm_base.py | fa9d858d66086a49b8e14f77d5252d3ef5008e2b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tszdanger/phd | c97091b4f1d7712a836f0c8e3c6f819d53bd0dd5 | aab7f16bd1f3546f81e349fc6e2325fb17beb851 | refs/heads/master | 2023-01-01T00:54:20.136122 | 2020-10-21T18:07:42 | 2020-10-21T18:09:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,806 | py | # Copyright 2019-2020 the ProGraML authors.
#
# Contact Chris Cummins <chrisc.101@gmail.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... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
be166e9147de70c62d3f58a25394cfa3dbf8ba87 | 6469e5689c5888481a5eb1c2d37e057c42e2afc3 | /biolink/api/link/endpoints/associations_from.py | 068338308ebe6c4ba78cebb9d5f045be2ad9c4f7 | [] | no_license | othreecodes/biolink-api | 66e2b171da0f112f124c5adc8bf2a3a23d78ce1a | 37761acba24ff5045fb65b16b009fdaa0fafa03e | refs/heads/master | 2021-05-09T00:34:32.199397 | 2018-01-31T22:10:08 | 2018-01-31T22:10:08 | 119,743,095 | 2 | 0 | null | 2018-01-31T21:03:53 | 2018-01-31T21:03:52 | null | UTF-8 | Python | false | false | 3,655 | py | import logging
from flask import request
from flask_restplus import Resource
from biolink.datamodel.serializers import association, association_results
from biolink.api.restplus import api
from ontobio.golr.golr_associations import get_association, search_associations
import pysolr
log = logging.getLogger(__name__)
... | [
"cjm@berkeleybop.org"
] | cjm@berkeleybop.org |
92f8fb6e5871b18adc000d139f6b985917318f5a | 89afb47648305068fa7ca75164052da20c7c7eb4 | /core/participant.py | 3f2f4852cd44bae79844df23cdf6c20c329d3133 | [] | no_license | cclague/RaceDB | a0bc21c750049a0bf0d2f79fc1e9f88c60775b01 | e760138436d1f9ee0745bf58e10b68ebc99dc8a9 | refs/heads/master | 2023-01-30T12:49:34.707725 | 2020-12-08T21:37:28 | 2020-12-08T21:37:28 | 319,435,453 | 0 | 0 | null | 2020-12-08T21:37:29 | 2020-12-07T20:24:27 | null | UTF-8 | Python | false | false | 73,673 | py | import uuid
from subprocess import Popen, PIPE
import traceback
import operator
from django.utils.translation import ugettext_lazy as _
from django.utils.safestring import mark_safe
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from .views_common import *
from .views import BarcodeScanForm,... | [
"edward.sitarski@gmail.com"
] | edward.sitarski@gmail.com |
d6e53802abe18fd58b79466f4e5b581f8311cc8f | b864b992187e2e1c5c8da6fdabeeab5040058fe9 | /Python Example/python 100 examples/064.py | 5d0b0242ccab80007fa668c36eec6b037ee30270 | [] | no_license | Mr-Phoebe/ProgramLanguage | 5384afeef20c8a12cd89cf3720beb0337bd38fc9 | 1588aea62e15304339efb73d55653be1b4e57156 | refs/heads/master | 2023-02-06T11:59:06.272680 | 2023-02-06T04:00:14 | 2023-02-06T04:00:14 | 65,252,634 | 52 | 37 | null | null | null | null | GB18030 | Python | false | false | 630 | py | # -*- coding: UTF-8 -*-
'''
题目:利用ellipse and rectangle 画图。
1.程序分析:
2.程序源代码:
'''
if __name__ == '__main__':
from Tkinter import *
canvas = Canvas(width = 400,height = 600,bg = 'white')
left = 20
right = 50
top = 50
num = 15
for i in range(num):
canvas.create_oval(250 - right,250 - lef... | [
"whn289467822@outlook.com"
] | whn289467822@outlook.com |
84d1b66a1d65710dbf72630462b771d0caabbd2d | 5a1e5603a42ff27e648fad307d60957cb95f0185 | /dask/dataframe/tests/test_csv.py | 5e6550be7b23c583897a4f98ca267e45c276d05a | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | jseabold/dask | 1937931e7951f776b253432f6b5beedee90892a0 | f6332dec1ead4034540bc2c3c1010a9783099752 | refs/heads/master | 2021-01-23T04:23:10.852740 | 2016-04-29T00:14:34 | 2016-04-29T00:14:34 | 57,442,996 | 0 | 0 | null | 2016-04-30T13:29:31 | 2016-04-30T13:29:30 | Python | UTF-8 | Python | false | false | 6,358 | py | from __future__ import print_function, division, absolute_import
from io import BytesIO
import pytest
pd = pytest.importorskip('pandas')
dd = pytest.importorskip('dask.dataframe')
from toolz import partition_all, valmap, partial
from dask import compute
from dask.async import get_sync
from dask.dataframe.csv import... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
8c69b04818eb1c529b6ad11ac1a9de153b213ba5 | 68747ba592c252c952823ff4973c9508b7c8c5e9 | /Ensemble/BeamVelocity.py | dfcd6b48965024dc062ad756bb54688fbce1a739 | [] | no_license | ricorx7/rti_python-1 | 50ce01e7acf60ad6d57c26cfe5d79ecd1fc84563 | 384edef9c14ae5296d7e123eec473b29905a8a58 | refs/heads/master | 2023-02-01T04:33:48.585793 | 2020-12-16T23:25:22 | 2020-12-16T23:25:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,649 | py | from rti_python.Ensemble.Ensemble import Ensemble
import logging
class BeamVelocity:
"""
Beam Velocity DataSet.
[Bin x Beam] data.
"""
def __init__(self, num_elements, element_multiplier):
"""
Beam Velocity data.
:param num_elements: Number of bins
:p... | [
"rcastelo@rowetechinc.com"
] | rcastelo@rowetechinc.com |
b35b6265d2f87725bbf04c7a1a015b18573508d8 | db7b618e7d9f7c2af001678e7bc7dd703cb86e61 | /TelegramBot/settings.py | 5bcca8b1e223f39bd5a3ac86c3f826827b3c5348 | [] | no_license | abdullakn/impress.ai | 6f24403b70130d8b6440ceab22931cd1cdcb9aeb | c9033970d33304a306fd6dd5e8cc9c1e39ddf1d8 | refs/heads/master | 2023-08-10T18:07:19.462283 | 2021-09-29T17:27:52 | 2021-09-29T17:27:52 | 411,642,025 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,388 | py | """
Django settings for TelegramBot project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import ... | [
"abdudebanjazz@gmail.com"
] | abdudebanjazz@gmail.com |
4a28f0deec15c745ccc4aa180c151746c3d8af36 | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/network/v20181001/load_balancer.py | 0a7b74a91059e38d8ca28b8ffa74b27e5b17a0d9 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,538 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
3b7e7606078cd3ed5a6bce29f7891a86294ca375 | fb4473a0c00d89f55fb2d07bad3d62302a715f5b | /sidpy/__version__.py | 2fde28695a3068688f07069ca37f51f4ac4cf919 | [
"MIT"
] | permissive | ziatdinovmax/sidpy | b700535014b78eeddf3aff4b57f5110e220d9a2e | 299147bfc22741b5170aa00e92b34159dfc910c5 | refs/heads/master | 2022-12-19T07:28:39.509116 | 2020-10-03T00:31:20 | 2020-10-03T00:31:20 | 292,929,545 | 0 | 0 | MIT | 2020-09-04T19:23:14 | 2020-09-04T19:23:13 | null | UTF-8 | Python | false | false | 47 | py | version = '0.0.3'
time = '2020-09-18 10:00:25'
| [
"14300780+ssomnath@users.noreply.github.com"
] | 14300780+ssomnath@users.noreply.github.com |
a5056688c64509504bfa9c7a6d05f17f4545a6f5 | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /plotly/graph_objs/isosurface/__init__.py | 641825ef79e0665708cf71c4b63a4d978f9ad605 | [
"MIT"
] | permissive | Jonathan-MW/plotly.py | 9674b90b5de11fd9089e6afefd04b57bc4587829 | 7528c00772f44dee24c0df7e15d70a4852f171a8 | refs/heads/master | 2020-05-30T06:04:13.621478 | 2019-05-31T10:34:15 | 2019-05-31T10:34:15 | 189,571,988 | 2 | 0 | MIT | 2019-05-31T09:59:53 | 2019-05-31T09:59:53 | null | UTF-8 | Python | false | false | 137,729 | py |
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Surface(_BaseTraceHierarchyType):
# count
# -----
@property
def count(self):
"""
Sets the number of iso-surfaces between minimum and maximum
iso-values. By default t... | [
"noreply@github.com"
] | Jonathan-MW.noreply@github.com |
e4542b8b5cbb4bef96ff785702f56111f3fe58f4 | 768058e7f347231e06a28879922690c0b6870ed4 | /venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_internal/commands/help.py | 386278cf5f1461bd429c082c29df90b3b868a0cf | [] | no_license | jciech/HeisenbergSpinChains | 58b4238281d8c158b11c6c22dd0da82025fd7284 | e43942bbd09f6675e7e2ff277f8930dc0518d08e | refs/heads/master | 2022-12-18T08:04:08.052966 | 2020-09-29T12:55:00 | 2020-09-29T12:55:00 | 258,476,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | from __future__ import absolute_import
from pip._internal.basecommand import SUCCESS, Command
from pip._internal.exceptions import CommandError
class HelpCommand(Command):
"""Show help for commands"""
name = "help"
usage = """
%prog <command>"""
summary = "Show help for commands."
ignore_r... | [
"jan@multiply.ai"
] | jan@multiply.ai |
6383c420b4d765598ded8fa8b7e09a41780ee859 | 5761eca23af5ad071a9b15e2052958f2c9de60c0 | /generated-stubs/allauth/socialaccount/providers/weixin/views.pyi | ab4087168efbf7f077d1dc53cf0dcb35eb434d7a | [] | no_license | d-kimuson/drf-iframe-token-example | 3ed68aa4463531f0bc416fa66d22ee2aaf72b199 | dd4a1ce8e38de9e2bf90455e3d0842a6760ce05b | refs/heads/master | 2023-03-16T13:52:45.596818 | 2021-03-09T22:09:49 | 2021-03-09T22:09:49 | 346,156,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | pyi | from .client import WeixinOAuth2Client as WeixinOAuth2Client
from .provider import WeixinProvider as WeixinProvider
from allauth.account import app_settings as app_settings
from allauth.socialaccount.providers.oauth2.views import OAuth2Adapter as OAuth2Adapter, OAuth2CallbackView as OAuth2CallbackView, OAuth2LoginView ... | [
"d-kimuson@gmail.com"
] | d-kimuson@gmail.com |
5ac9b4d7308eaba4eff0b9657389f4c3652b5b94 | ebdeaa70f6e30abab03a1589bcdd56d1339151ef | /day14Python对象3/02-添加子类属性.py | e7ac08d531ca166a266198f0171a8931da24f600 | [] | no_license | gilgameshzzz/learn | 490d8eb408d064473fdbfa3f1f854c2f163a7ef6 | d476af77a6163ef4f273087582cbecd7f2ec15e6 | refs/heads/master | 2020-03-31T11:32:42.909453 | 2018-11-22T03:34:45 | 2018-11-22T03:34:45 | 152,181,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | # Filename : 02-添加子类属性.py
# Date : 2018/8/2
"""
对象属性的继承:是通过继承init方法来继承的对象属性
给当前类添加对象属性:重写init方法,如果需要保留父类的对象属性,需要使用
super()去调用父类的init方法
多态:同一个事物有多种形态,子类继承父类的方法,可以对方法进行重写,
一个方法就有多种形态(多态的表现)
类的多态:继承产生多态
"""
class Person:
def __init__(self, name='', age=2):
self.name = name
self.age = age
class Sta... | [
"619959856@qq.com"
] | 619959856@qq.com |
2d1003eb12e4578cbb09e2a2b23226e356bffd3e | 80c8d4e84f2ea188a375ff920a4adbd9edaed3a1 | /bigdata_study/pyflink1.x/pyflink_learn/examples/4_window/sink_monitor.py | f9435ee7aaed197828b8fafad6f66d9fa6cace97 | [
"MIT"
] | permissive | Birkid/penter | 3a4b67801d366db15ca887c31f545c8cda2b0766 | 0200f40c9d01a84c758ddcb6a9c84871d6f628c0 | refs/heads/master | 2023-08-22T14:05:43.106499 | 2021-10-20T07:10:10 | 2021-10-20T07:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | """
读取 kafka 的用户操作数据并打印
"""
from kafka import KafkaConsumer
from reprint import output
import json
topic = 'click_rank'
bootstrap_servers = ['localhost:9092']
group_id = 'group7'
consumer = KafkaConsumer(
topic, # topic的名称
group_id=group_id, # 指定此消费者实例属于的组名,可以不指定
bootstrap_servers=bootstrap_servers, # ... | [
"350840291@qq.com"
] | 350840291@qq.com |
25a39bfe0961decc5e8a5665dfe83a66b05dbd27 | 18430833920b3193d2f26ed526ca8f6d7e3df4c8 | /src/notifications/context_processors.py | f80de60ee43e53ffde101052edf945953ac0c19e | [
"MIT"
] | permissive | providenz/phase | ed8b48ea51d4b359f8012e603b328adf13d5e535 | b0c46a5468eda6d4eae7b2b959c6210c8d1bbc60 | refs/heads/master | 2021-01-17T06:56:07.842719 | 2016-06-28T11:17:53 | 2016-06-28T11:17:53 | 47,676,508 | 0 | 0 | null | 2015-12-09T07:45:19 | 2015-12-09T07:45:18 | null | UTF-8 | Python | false | false | 991 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import AnonymousUser
from django.conf import settings
from notifications.models import Notification
def notifications(request):
"""Fetches data required to render navigation menu.
The main menu contains the lis... | [
"thibault@miximum.fr"
] | thibault@miximum.fr |
e270360c2e7314eb2a69a82872043984e52ce1b4 | 70ba2c6f45bf036cf8e2860003ee03ef2de7842c | /apps/registro_hora_extra/models.py | c2e70f1ef58c47a87e4baec3d3f2f58225e2e7a5 | [] | no_license | Izaiasjun1Dev/gestao_rh | b99d0ba767ad136ba596c8da388ec184e19b5aae | 29830e5d7e1eed5eec93548ee31b19a4c6d62797 | refs/heads/master | 2022-01-26T00:57:10.561760 | 2019-07-31T17:56:25 | 2019-07-31T17:56:25 | 199,683,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from django.db import models
class Registro_Hora_Extra(models.Model):
motivo = models.CharField(max_length=100)
def __str__(self):
return self.motivo | [
"solucaoprogramer@gmail.com"
] | solucaoprogramer@gmail.com |
db5fc913c50c24d9c3bb985ff8799f82103afce3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/454/usersdata/302/106280/submittedfiles/programa.py | ca76871b6b4cba21f2e253a7a5ef79930a322905 | [] | 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 | 164 | py | # -*- coding: utf-8 -*-
c = int(input('Digite o número de consultas:'))
for i in range(c):
c.append(int(input('Digite a consulta %d: %(i+1))))
print(c)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
20a5737230bac56977780a12595c131b8523268d | 9fa8c280571c099c5264960ab2e93255d20b3186 | /system/scientist/panel/control/stop_criterion/view.py | 76a6fe614d545726fcac47b3131dbcdefb304689 | [
"MIT"
] | permissive | thuchula6792/AutoOED | 8dc97191a758200dbd39cd850309b0250ac77cdb | 272d88be7ab617a58d3f241d10f4f9fd17b91cbc | refs/heads/master | 2023-07-23T16:06:13.820272 | 2021-09-08T14:22:18 | 2021-09-08T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,417 | py | import tkinter as tk
from system.gui.widgets.factory import create_widget
class StopCriterionView:
def __init__(self, root_view):
self.root_view = root_view
self.window = create_widget('toplevel', master=self.root_view.root_view.root, title='Stopping Criterion')
self.widget = {
... | [
"yunsheng@mit.edu"
] | yunsheng@mit.edu |
0e1c84c3ad5515132006c028d0ce7d87bdfbc4e2 | c8c77f6cc6c032daf179ea2138e4dda5473b426b | /pinpoint-email/pinpoint_send_email_message_email_api.py | c607d8762534d68c7b98210c7dd0bc37ba9ccd58 | [] | no_license | arunmastermind/AWS-examples-using-BOTO3 | b411a6c96011ab58a66952a53fa2938cb58d5135 | e8390094374c10902bab016a21caba75ea179b5a | refs/heads/master | 2020-09-30T13:34:33.657621 | 2019-12-11T12:37:44 | 2019-12-11T12:37:44 | 227,297,211 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,698 | py | import boto3
from botocore.exceptions import ClientError
# The AWS Region that you want to use to send the email.
AWS_REGION = "us-west-2"
# The "From" address. This address has to be verified in
# Amazon Pinpoint in the region you're using to send email.
SENDER = "Mary Major <sender@example.com>"
# The addresses on... | [
"arunmastermind.sci@gmail.com"
] | arunmastermind.sci@gmail.com |
89aadd7f9dd9e91da3e1da7db4d4e2395ffb8883 | 93b495b3624399c81b7edb39d1f6c5cebb2cd987 | /vyper/ast.py | 445bdf16b1ecb9ebfb855d44e98e25836353f5e9 | [
"Apache-2.0"
] | permissive | fubuloubu/vyper-redux | bf4b91d00290e5ed063ce74b44b740af6c3afae7 | a190c69083a968136ce10d1ceb68e42e41ff9de1 | refs/heads/master | 2020-12-20T16:29:44.390444 | 2020-01-25T07:53:23 | 2020-01-25T07:53:23 | 236,137,024 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,683 | py | import ast as py_ast
import inspect
import sys
from typing import (
Any,
Dict,
List,
Tuple,
Type,
Union,
)
import lark
import stringcase
class Ast(py_ast.AST):
_fields = ()
class Module(Ast):
_fields = ('methods',)
def __init__(self, children: List[Union[lark.Tree, lark.Token]])... | [
"fubuloubu@gmail.com"
] | fubuloubu@gmail.com |
890fd3b5525d78b3bddbc5f55ff21303da111d0b | b4f203f487c0425fc2996079829715f48f06689b | /test2.py | 80d5b14539e4dddde2c4233542974efd336b1d4f | [] | no_license | seunggue/AI-school-project | 1232a6bb91a5e492289dcff1dec3c12d747e53a1 | ceaad7808a86b09062203845cab603fe71ea15c5 | refs/heads/master | 2022-12-12T08:37:51.067589 | 2020-08-30T16:33:08 | 2020-08-30T16:33:08 | 290,980,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | a = '12345'
print(a[:-3]) | [
"seungue1687@gmail.com"
] | seungue1687@gmail.com |
adcc7a4f456face62e0edc4a15503cb7ef48c86e | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/XjShRightSide/YW_GGQQ_QLFXJHA_086.py | 6a72b553056082e63709d5549fef6af05775698c | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,894 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import json
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/option/service")
from OptMainService import *
from OptQueryStkPriceQty import *
sys.path.append("/home/yhl2/workspace/xt... | [
"418033945@qq.com"
] | 418033945@qq.com |
a8d1a0375bce03ca9605bc955a1bef231c78a0bd | 0e638cd11c1ac64dcd1672936a1b0d7d545ee29f | /src/required_arg_after_optional_arg.py | f25f359628beedb42bfa80b56273c8056eba4778 | [] | no_license | simon-ritchie/python-novice-book | 2557d397a8f6025b63f3173c24bd4dcdb48aef8c | 1492adf603ba4dd1e9fadb48b74e49887c917dc6 | refs/heads/master | 2020-12-26T16:47:36.945581 | 2020-08-04T12:16:10 | 2020-08-04T12:16:10 | 237,569,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | def multiply_x_by_y(x=10, y):
multiplied_value = x * y
print(multiplied_value) | [
"antisocial.sid2@gmail.com"
] | antisocial.sid2@gmail.com |
2d5241ff37c81e87fe5dde76480448e82b1a8bf5 | 2bacd64bd2679bbcc19379947a7285e7ecba35c6 | /1-notebook-examples/keras-udemy-course/ann_class2/mxnet_example.py | 9ea745fce7cb6e4c583659c52a0dfbfe86e6fcb1 | [
"MIT"
] | permissive | vicb1/deep-learning | cc6b6d50ae5083c89f22512663d06b777ff8d881 | 23d6ef672ef0b3d13cea6a99984bbc299d620a73 | refs/heads/master | 2022-12-12T15:56:55.565836 | 2020-03-06T01:55:55 | 2020-03-06T01:55:55 | 230,293,726 | 0 | 0 | MIT | 2022-12-08T05:27:43 | 2019-12-26T16:23:18 | Jupyter Notebook | UTF-8 | Python | false | false | 2,621 | py | # https://deeplearningcourses.com/c/data-science-deep-learning-in-theano-tensorflow
# https://www.udemy.com/data-science-deep-learning-in-theano-tensorflow
from __future__ import print_function, division
from builtins import range
# Note: you may need to update your version of future
# sudo pip install -U future
# in... | [
"vbajenaru@gmail.com"
] | vbajenaru@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.