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
2e8e22eccf577adb8f50383b8185e493ecca6916
eea70db78a214217ba41801d870aba127ba56c56
/Code/Tested TD Policy-Iteration/ARL_package/CodeFramework/main.py
713e3872ac1424be5f414871c9f0572523da5a91
[]
no_license
356255531/poppyProject
191b9a9e29817e3d6ce8c85dd5c0702982dd7157
678044afffa6390fac8cb402099bd32ae72d8a33
refs/heads/master
2021-01-21T14:32:47.373344
2016-07-12T19:42:25
2016-07-12T19:42:25
58,334,432
3
1
null
null
null
null
UTF-8
Python
false
false
2,842
py
__author__ = 'erik' from . import Actor, LearningAlgorithm, Reward, StateActionSpace, StateObserver def run_learning(actor, learning_algorithm, reward, state_observer): """Run the main loop!""" # Check that the variables given have the right superclasses # assert (isinstance(actor, Actor)) # assert (...
[ "hanzw356255531@icloud.com" ]
hanzw356255531@icloud.com
f8b3978cb753019e9ee6fec4c16e624de7034c9b
d047fed56a7d1de1d7c32ce83b8d62646fa7d19e
/leapyearQuestion.py
6b7641183cdad87321077e16411144ded6c16051
[]
no_license
shantinavgurukul/listQuestions
508b6bd489731d5b8a9ba1a27e5b88b1bb27341a
21f413f65b374e5fa63e0366591895757146d7c7
refs/heads/master
2022-11-23T07:56:15.392836
2020-08-02T03:51:46
2020-08-02T03:51:46
284,384,225
1
0
null
null
null
null
UTF-8
Python
false
false
199
py
year=int (input("enter the year=")) if(year%4==0 and year%100!=0): print(year,"it's leap year.") elif(year%400==0): print(year,"it's leap year-") else: print(year, "it's not leap year")
[ "you@example.com" ]
you@example.com
83a1fbfb23b45c442e115f2747f1d9c39fafda6f
86177bf66a3d4f6ffcd8972a1eb7305eb25d5301
/lesson_10_2.py
e919169a0b0c65293af3e625cb67b05a6f8bef07
[]
no_license
Mameluke8888/QA_Automation_Lesson_10_2
941dd99c5fb65d98407124514e146e6b51f528c1
175858d4b4d189926633d5323f4ac724e73f52c7
refs/heads/main
2023-05-07T01:36:35.742796
2021-05-24T12:15:35
2021-05-24T12:15:35
370,340,146
0
0
null
null
null
null
UTF-8
Python
false
false
4,236
py
from selenium.webdriver.common.by import By import time from browser import Browser from UIElement import UIElement as Element from dropdown import Dropdown from header import Header from right_menu import RightMenu from login_page import LoginPage from registration_page import RegistrationPage URL = "https://techsk...
[ "evgenyabdulin@Evgenys-Mac-mini.local" ]
evgenyabdulin@Evgenys-Mac-mini.local
1607d69f94ab941b55a795973d3de6ce2af8080b
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/mDuDhhMWrdHJSGdtm_11.py
d5fda998b13ee4c0e40bf595960ffe6cd51bc475
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
def is_exactly_three(n): sqrt = n**0.5 if sqrt.is_integer() and sqrt != 1: for i in range(2,int(sqrt)): if sqrt % i == 0: return False return True return False
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
78619db4bd98a279210cb7f4d217a84cfbeb1701
5d0fe4a9e026234fe15e6c4380355061bb4dac64
/tests/browser/pages/invest/hpo.py
d5ba9be3f4f278923f41b32b53e671e09ebc9516
[ "MIT" ]
permissive
uktrade/directory-tests
37e243862da8ac594cf1ea06ade714db5e1aba03
39ec6c26203580238e65566a472cbd80916e6726
refs/heads/master
2022-08-09T16:58:56.248982
2022-08-01T12:25:10
2022-08-01T12:25:10
71,367,747
4
3
MIT
2022-08-01T12:26:09
2016-10-19T14:48:57
Python
UTF-8
Python
false
false
8,015
py
# -*- coding: utf-8 -*- """Invest in Great - HPO Page Object.""" import logging from typing import List from selenium.webdriver.common.by import By from selenium.webdriver.remote.webdriver import WebDriver from directory_tests_shared import URLs from directory_tests_shared.enums import PageType, Service from pages im...
[ "kowalczykjanusz@gmail.com" ]
kowalczykjanusz@gmail.com
9d74f6b7a1e32fffedd71a210f2a9009d0e57aa4
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/D/drj/multi.py
f1d9aa4aa940a0aa681026328186957517059a79
[]
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
274
py
import scraperwiki import random import time n = random.choice(range(100)) i=0 while True: print n, i i += 1 time.sleep(1.4)import scraperwiki import random import time n = random.choice(range(100)) i=0 while True: print n, i i += 1 time.sleep(1.4)
[ "pallih@kaninka.net" ]
pallih@kaninka.net
8fe1a907db67146e05e04ef7aaa745788c55b202
5f25f45b7fac762b989563ca1270d37d31b749e8
/tests/regnet_tests/conftest.py
b654d49b7f598cb10f8e5d08de01ab4861cf089a
[ "MIT" ]
permissive
thomaseizinger/cryptonote-library
587c18d8e6662cc2920a896efbeab5fa49ee38b5
c39d956847e5ba2b46c2c4c90ab289ae1c04fe03
refs/heads/master
2023-04-02T21:29:39.423776
2021-04-02T17:51:40
2021-04-02T17:51:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,785
py
# Types. from typing import Dict, List, Tuple, Any # urandom standard function. from os import urandom # sleep standard function. from time import sleep # JSON standard lib. import json # pytest lib. import pytest # Transaction/Block classes. from cryptonote.classes.blockchain import OutputIndex # Crypto classes....
[ "lukeparker5132@gmail.com" ]
lukeparker5132@gmail.com
6ea8213e82dd3532a7da3312a90f6e1c64f353d4
63248ee10e29c11acebc9d3d977fe145cdfc156b
/tests/test_checker/test_noqa.py
53763cb8d3b8fb977b42a21944992f06bc461240
[ "MIT" ]
permissive
bekemaydin/wemake-python-styleguide
68e6517d6cb70ad34c11706760a7042b2b84877d
fad6a1d2b66012d623fe0e0bba9b5561622deeb0
refs/heads/master
2020-04-03T02:07:08.558327
2018-10-27T12:09:35
2018-10-27T12:09:35
154,947,414
0
0
MIT
2018-10-27T12:09:12
2018-10-27T09:31:34
Python
UTF-8
Python
false
false
1,919
py
# -*- coding: utf-8 -*- import re import subprocess from collections import Counter ERROR_PATTERN = re.compile(r'(Z\d{3})') def _assert_errors_count_in_output(output, errors): found_errors = Counter(( match.group(0) for match in ERROR_PATTERN.finditer(output) )) for found_error, found_count in ...
[ "mail@sobolevn.me" ]
mail@sobolevn.me
83da29e85a3f4fb8c21958106bea5955ac87b29c
03d99657f557e37694f7aa4eeb6dc90a918ea647
/Cyberbook/XBlocks/simstudent-xblock/simstudent/simstudent.py
fb1fd2cce4a51c0b2285d3599a2cd015f5602985
[]
no_license
pawans1994/QUADL
5c3c824f2c813fd287d7135e878f5f962797bc2e
3f03eabb54e295ceaa9d4add1329ddc5eeafdec3
refs/heads/master
2023-05-11T21:25:07.046794
2020-03-18T16:41:15
2020-03-18T16:41:15
248,282,752
1
0
null
2023-05-01T20:19:11
2020-03-18T16:20:11
JavaScript
UTF-8
Python
false
false
4,077
py
"""TO-DO: Write a description of what this XBlock is.""" import pkg_resources from web_fragments.fragment import Fragment from xblock.core import XBlock from xblock.fields import Integer, Scope, String class SimStudentXBlock(XBlock): """ TO-DO: document what your XBlock does. """ # Fields are define...
[ "nobody@ncsu.edu" ]
nobody@ncsu.edu
a04894d893ca8889368bac7bf6f3d839ea9fb93e
5ea1216c24b62c6beab3c6d9d2e2e06a9c58c796
/剑指Offer/39.数组中出现超过一半的数字.py
e639b88b4d8662393e9bf94769eb2228f051f053
[]
no_license
xiami2019/LeetCode
596de2f093d52b58cf80421f67de03757578cd5f
8d09a56672553ecee4af731796980b2c61c52df2
refs/heads/master
2021-01-02T15:15:13.984178
2020-07-08T01:20:15
2020-07-08T01:20:15
239,675,873
2
0
null
null
null
null
UTF-8
Python
false
false
365
py
class Solution: def majorityElement(self, nums: List[int]) -> int: preNum = nums[0] count = 1 for i in range(1, len(nums)): if nums[i] == preNum: count += 1 else: count -= 1 if count < 0: preNum = nums[i] ...
[ "435350193@qq.com" ]
435350193@qq.com
dffe57932f7e1c84cc32acf781fca7f7715216ff
84b05857cbe74d190bdbee18d442d0c720b1b84d
/Coderbyte_algorithms/Hard/OptimalAssignments/test_OptimalAssignments.py
c35bb39e583b90f4477373996093898a9f6f1e86
[]
no_license
JakubKazimierski/PythonPortfolio
1c8c7e7b0f1358fc42a2295b807d0afafd8e88a3
3aa62ad36c3b06b2a3b05f1f8e2a9e21d68b371f
refs/heads/master
2023-06-01T01:16:22.897097
2023-05-15T01:05:22
2023-05-15T01:05:22
311,473,524
9
1
null
null
null
null
UTF-8
Python
false
false
657
py
''' Unittests for OptimalAssignments.py December 2020 Jakub Kazimierski ''' import unittest import OptimalAssignments class test_OptimalAssignments(unittest.TestCase): ''' Class with unittests for OptimalAssignments.py ''' # region Unittests def test_ExpectedOutput(self): ...
[ "j.m.kazimierski@gmail.com" ]
j.m.kazimierski@gmail.com
961ada8bd15c4bbc33270ba8fdeae8e08efdfdff
15a739dc7f2f83d3b85d7b355a81d62a0c9386ad
/src/measure/07_calc_pale_para_time_cases.py
6cd253560e1a7f9adbf6de1082e92acbff671a52
[]
no_license
Allen517/half
4d232563cb85ec73b78c263b8e6df04549bcecac
18e6b5c2b69e1b90656328a6ae840fe7f7071398
refs/heads/master
2020-05-16T17:29:40.304766
2019-09-25T15:16:52
2019-09-25T15:16:52
183,195,625
2
0
null
null
null
null
UTF-8
Python
false
false
1,863
py
import sys,os import random import time import numpy as np from concurrent.futures import ThreadPoolExecutor from concurrent import futures def read_code(filename): code_map = dict() with open(filename, 'r') as fin: for ln in fin: elems = ln.strip().split('\t') if len(elems)<2: continue code_map[elems...
[ "wangyongqing.casia@gmail.com" ]
wangyongqing.casia@gmail.com
6973d3f90df8ecd1028285b111baa55b7a9d0f6b
2e3e064ec2388f7a57428c32b77207280a0a9be1
/Sect-A/source/sect04_control/s443.py
496623c5b1ff4cc2b7b813f48f232d8d1636308f
[]
no_license
bigpycraft/sba19-seoulit
1857a399d8f23c4fb8f98448139be8eb968d35ee
2cf11a1ce9a04043911006531470a3e523cbf5f0
refs/heads/master
2020-07-02T22:48:52.681018
2019-09-19T03:08:59
2019-09-19T03:08:59
201,693,283
5
7
null
null
null
null
UTF-8
Python
false
false
247
py
#pass 문 예시 signals = 'blue', 'yellow', 'red' for x in range(len(signals)): print(x, signals[x], '루프 시작!') if signals[x] == 'yellow': pass print(x, signals[x], '루프 종료!!') print('프로그램 종료!!!')
[ "bluenine52@gmail.com" ]
bluenine52@gmail.com
f2531dc8aa8f27aa3b6227b4feb0a00c64c8816d
52b5773617a1b972a905de4d692540d26ff74926
/.history/sets_20200609191039.py
8317547fb031c680266d7b47826445c4e751bb94
[]
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
944
py
import json def Strings(str): # values = {} newArray = [] keys = [] for i in str: newArray.append(i.split(":")) for j in range(0,len(newArray)): if newArray[j][0] in values: # if newArray[j][0] in values: # values[newArray...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
4dccf5e24c984abaa126f1ab46d14c24b4630c86
df19b2ff22f0b27685cdc72d0d50b6b9dfe3fa5a
/cpuApp/urls.py
0045b3558ce4f2b345a1a63fe6076491e4e97993
[]
no_license
fadiarmoush/LinuxProject
7ca01efe06f87bb13a0232327aa1a7d9d1c4bc0b
4a7a5330e3b2af97fc8bc58e3483fda6d3cee42f
refs/heads/master
2020-06-18T06:32:39.077572
2019-07-10T12:02:37
2019-07-10T12:02:37
196,196,032
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
from django.urls import path from django.conf.urls import url from .views import ListSongsView from .views import ListSongsView2 from .views import ListSongsView3 from . import views from .views import currentsView urlpatterns = [ path('cpu/', ListSongsView.as_view()), path('mem/', ListSongsView2.as_view()),...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
ec07f0da2e432113a1bac9c65ed9483a3c4b4cab
d3e31f6b8da5c1a7310b543bbf2adc76091b5571
/Day26/mini_prj1/app.py
ff17127e9abd7fbf909d7cb7e72a85916cbb5fa1
[]
no_license
pytutorial/py2103
224a5a7133dbe03fc4f798408694bf664be10613
adbd9eb5a32eb1d28b747dcfbe90ab8a3470e5de
refs/heads/main
2023-07-14T06:31:18.918778
2021-08-12T14:29:16
2021-08-12T14:29:16
355,163,185
1
0
null
null
null
null
UTF-8
Python
false
false
1,794
py
from pymongo import MongoClient from bson.objectid import ObjectId db_host = '34.70.69.231' db_user = 'mongo' db_pass = 'abc@123' client = MongoClient(db_host, username=db_user, password=db_pass) db = client.db0001 import time from flask import Flask, request, render_template, redirect, jsonify app = Flask(__name__) ...
[ "duongthanhtungvn01@gmail.com" ]
duongthanhtungvn01@gmail.com
f0d78e0407e9b493b7e09a592fbe281f65786de9
fe47a536f3938a8f0bf0e52fa6e3284d1b35e356
/backend/users/migrations/0002_auto_20200614_2037.py
5976489efb44e03f267c41dda3aa73207d6f4113
[]
no_license
crowdbotics-apps/i-do-weddings-18101
2d0e473b2b0f312c049c07c6e28d53c6c506ebea
aabc1b4d442378a32643365ce8a0eac30d2836b1
refs/heads/master
2022-10-17T02:13:55.759254
2020-06-14T20:38:14
2020-06-14T20:38:14
272,279,169
0
0
null
null
null
null
UTF-8
Python
false
false
569
py
# Generated by Django 2.2.13 on 2020-06-14 20:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='email', field...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
957b3ad7e784e2bb7d619623c8109f9100e498a2
64d1211404c89da4e09d77d859f2cdf6609a057e
/models/official/nlp/configs/bert.py
47c0b26e436a76c0b31492d5397149af5ab66172
[ "Apache-2.0" ]
permissive
Nerfertili/Deep_learning_learning_udemy
f375209e0675ab8f4da9551d8a5bdee4f2948ed8
0fe6c1f36019b29151acb17a1f248b34d6089aeb
refs/heads/master
2023-02-17T10:10:52.536426
2021-01-19T02:48:23
2021-01-19T02:48:23
330,823,730
0
1
null
null
null
null
UTF-8
Python
false
false
1,566
py
# Lint as: python3 # Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
[ "leal.afonso@outlook.com" ]
leal.afonso@outlook.com
8275002ef69810e28d7fee9ec873749fced30050
08f61d5432b6cf14bb6fc3448259a6c445b26780
/dapodik/sekolah/base.py
4da825ffab37d6c94b7bad8cb9f88d0073438da1
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
nainaidaa/dapodik
9ecfabc6f262c24a4cd0288b3b1a7116b3a09199
d89c0fb899c89e866527f6b7b57f741abd6444ea
refs/heads/master
2023-07-22T23:37:16.694675
2021-09-08T15:04:23
2021-09-08T15:04:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
from dapodik.base import BaseDapodik from typing import List from . import AkreditasiSp from . import BlockGrant from . import JurusanSp from . import Kepanitiaan from . import ProgramInklusi from . import Sanitasi from . import SekolahLongitudinal from . import SekolahPaud from . import Sekolah from . import Semester...
[ "revolusi147id@gmail.com" ]
revolusi147id@gmail.com
1de781d634fab52bcefa1bc7e3d2b231a9ea18d3
7013527a33a756c0f08a0672515e2c20df58faca
/clean_stripes.py
9b47390310d9b6bf5de62b3688848299b2e63441
[]
no_license
tukiains/stripe-filter-test
b1b88c9129f714c0e3cb47c6f62567a3b7eaec5a
069d8a480628c9b1ae79de648ceddeeb264a6bcc
refs/heads/main
2023-06-01T21:21:28.537687
2021-06-15T08:37:09
2021-06-15T08:37:09
369,167,886
0
0
null
null
null
null
UTF-8
Python
false
false
1,872
py
import os.path import requests from cloudnetpy.categorize import generate_categorize from cloudnetpy.plotting import generate_figure test_cases = { 'munich': ('2021-05-16', '2021-05-05', '2021-05-08'), 'hyytiala': ('2021-05-09', '2021-05-10'), 'palaiseau': ('2021-03-05', ), 'granada': ('2021-05-11', '2...
[ "simo.tukiainen@fmi.fi" ]
simo.tukiainen@fmi.fi
d099475d44c7f9479ce738eb7e71bd3820b37e50
8eab8ab725c2132bb8d090cdb2d23a5f71945249
/virt/Lib/site-packages/openpyxl/chart/print_settings.py
6a8fc2fab6ce1792aa3048c69834f29af9bb563d
[ "MIT" ]
permissive
JoaoSevergnini/metalpy
6c88a413a82bc25edd9308b8490a76fae8dd76ca
c2d0098a309b6ce8c756ff840bfb53fb291747b6
refs/heads/main
2023-04-18T17:25:26.474485
2022-09-18T20:44:45
2022-09-18T20:44:45
474,773,752
3
1
MIT
2022-11-03T20:07:50
2022-03-27T22:21:01
Python
UTF-8
Python
false
false
1,454
py
# Copyright (c) 2010-2022 openpyxl from openpyxl.descriptors.serialisable import Serialisable from openpyxl.descriptors import ( Float, Typed, Alias, ) from openpyxl.worksheet.page import PrintPageSetup from openpyxl.worksheet.header_footer import HeaderFooter class PageMargins(Serialisable): """ ...
[ "joao.a.severgnini@gmail.com" ]
joao.a.severgnini@gmail.com
5656a471d8a4d6fc40c39d07f5d22a52839f396b
65cc1193afeced475cec02184dbc8043738a5a2e
/src/uvc/content/__init__.py
125e0485fdbeb4068503d8f46244109a20d10daa
[]
no_license
novareto/uvc.content
e39b088b5d98b83f0e8836adc9c2188cbe501d50
dc1b28f8f755dee26eb7721ecb2651761db03c16
refs/heads/master
2021-01-21T10:13:18.943078
2014-10-02T16:17:43
2014-10-02T16:17:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
# -*- coding: utf-8 -*- from .interfaces import IContent, IDescriptiveSchema from .directives import schema, Fields from .utils import bootstrap_component, schematic_bootstrap
[ "trollfot@gmail.com" ]
trollfot@gmail.com
1f09508e58003a0f4fdffde95018f92964965c1a
fee4adc0f8a74801d728f1e3f1278110622a74be
/app/auth/views.py
33d7919d5c4c4f1fcf292985b741777a515ef57c
[]
no_license
HuuBaa/todolist
02957fef9c8690eaadf1f9e49f9505ae69c4c614
eef38a3e1aa26f0ff8f9112c34587b46e6752e8a
refs/heads/master
2021-09-13T03:19:17.414242
2018-04-24T13:15:04
2018-04-24T13:15:04
107,774,043
0
0
null
null
null
null
UTF-8
Python
false
false
1,978
py
#!/usr/bin/env python #-*- coding: utf-8 -*- from . import auth from ..models import User from flask import request,redirect,url_for,render_template,flash from flask_login import login_user,login_required,logout_user,current_user from .forms import RegisterForm,CPasswdForm from app import db @auth.route('/login',method...
[ "742790905@qq.com" ]
742790905@qq.com
633db023bda8914aa62fcc73e17d56ffcf002b45
107e62a03254c9ebe2e1830977a47861633b0d33
/TCPserver.py
7ca995beb699d6e30bf8c95905f51a341c16e072
[]
no_license
prasanna-ranganathan/mypython
bb798c0782cfb79a27b0730e924921b802da2a44
25fa93602e2465ec6ccb0c3ff30a2bbf90da96e4
refs/heads/master
2021-06-03T18:35:31.129399
2016-08-28T14:21:44
2016-08-28T14:22:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
#!/usr/bin/env python import SocketServer class EchoHandler(SocketServer serverAddr = ("0.0.0.0",90000) server = SocketServer.TCPServer(serverAddr,EchoHandler) server.serve_forver()
[ "prassanna.mit@gmail.com" ]
prassanna.mit@gmail.com
92d84d5e4a383d5e858345bc045ba5c2c7d536d2
353def93fa77384ee3a5e3de98cfed318c480634
/.history/week01/homework02/maoyanspiders/maoyanspiders/pipelines_20200628013036.py
0eefa73f2f51dc3dddf0fec4bc0d05238f5652f1
[]
no_license
ydbB/Python001-class01
d680abc3ea1ccaeb610751e3488421417d381156
ad80037ccfc68d39125fa94d2747ab7394ac1be8
refs/heads/master
2022-11-25T11:27:45.077139
2020-07-19T12:35:12
2020-07-19T12:35:12
272,783,233
0
0
null
2020-06-16T18:28:15
2020-06-16T18:28:15
null
UTF-8
Python
false
false
672
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html class MaoyanspidersPipeline(object): def process_item(self, item, spider): films_name = item['films_name'] ...
[ "31039587+ydbB@users.noreply.github.com" ]
31039587+ydbB@users.noreply.github.com
e84fbbd512417f983e287bc02ddae6f48acc8762
b55a8edf12b5298c63966de429b61e97c61c9d46
/src/generate_random_matrix.py
19a2a2d4e0ccd7c26dfa385d092676a51f9b0e5e
[]
no_license
tmoldwin/DBasisHDA
c9bb5ba9d90e2526de5c0a78fe3d6cf34031a2d7
00063da2c27fa12470aa54d9d0321f95e350de8a
refs/heads/master
2020-05-30T09:54:01.754277
2013-08-30T07:58:05
2013-08-30T07:58:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
867
py
#!/usr/bin/env python # """ Author: Ulrich Norbisrath This creates on stdout a matrix which can be fed to DBasisHDA """ import random import sys import getopt __doc__ = """call: generate_random_matrix height width number_of_ones""" def main(): # parse command line options options = sys.argv[1:] if l...
[ "devel@mail.ulno.net" ]
devel@mail.ulno.net
9af4d770117e900fdc4f395633ef86a68d710ca6
9bf7d7ace42a61991970fd967c19071a50609b9e
/ipython/Matplotlib(2f)UnfilledHistograms.py
be423b643ffae045db7075154fed13fc75d8295f
[]
no_license
ParsonsRD/SciPy-CookBook
29b68eace76962ae00735039bc3d488f31714e50
52f70a7aa4bd4fd11217a13fc8dd5e277f2388ea
refs/heads/master
2020-03-17T17:33:28.827269
2013-05-17T06:56:54
2013-05-17T06:56:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,599
py
# <markdowncell> # Here's some template code for plotting histograms that don't look like # bar charts, but instead have only outlines (like IDL creates). # # First define a function that does the bulk of the heavy lifting. # # <codecell> import numpy as np def histOutline(dataIn, *args, **kwargs): (histIn, b...
[ "matti.pastell@helsinki.fi" ]
matti.pastell@helsinki.fi
d809e87594386c61ac619c02129311ca823d2635
19af2e1dfe389afc71e26bebaadf7008251e04e2
/android_test/tensorflow-master/tensorflow/examples/saved_model/integration_tests/export_mnist_cnn.py
1d36bc234aea7c51e9f284c7ea92aad0b392f6fc
[ "Apache-2.0" ]
permissive
simi48/Ef-If_Jassen
6c4975216bb4ae4514fe94a8395a5da5c8e8fb2d
6076839492bff591cf9b457e949999e9167903e6
refs/heads/master
2022-10-15T15:36:35.023506
2020-12-02T10:38:13
2020-12-02T10:38:13
173,759,247
4
0
Apache-2.0
2022-10-04T23:51:35
2019-03-04T14:22:28
PureBasic
UTF-8
Python
false
false
8,104
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "TheSiebi@users.noreply.github.com" ]
TheSiebi@users.noreply.github.com
938bf1cf1edfa71a44cf21caf52bffa5190185a1
b77cc1448ae2c68589c5ee24e1a0b1e53499e606
/recruitment/models.py
d7d2e7e6ae37db258fa3fa7f13aad1e057ab63fb
[]
no_license
PregTech-c/Hrp_system
a5514cf6b4c778bf7cc58e8a6e8120ac7048a0a7
11d8dd3221497c536dd7df9028b9991632055b21
refs/heads/master
2022-10-09T07:54:49.538270
2018-08-21T11:12:04
2018-08-21T11:12:04
145,424,954
1
1
null
2022-10-01T09:48:53
2018-08-20T13:58:31
JavaScript
UTF-8
Python
false
false
4,915
py
from __future__ import unicode_literals from django.db import models from django.utils import timezone from payroll.models.employee_models import (ServiceLine, Position, EducationLevel, EmployeeProfile) GENDER_CHOICES = ( ('M', 'Male'), ('F', 'Female') ) class District(models.Model): short_name = mo...
[ "imugabi64@yahoo.com" ]
imugabi64@yahoo.com
75d0a5df0a742b764667caa2921eb78e951f0352
625a2b46caf94a8bfb1afdbc1b933cd19aaafc33
/googoo2.py
1d6ed3712b44ce201725c1f455955a635684e8da
[]
no_license
smilu97/SoftwareStartClass
4118e5c80d0f8253785aa2ecb72db0935c457fcb
df41a2e93a315ab155e0995132a66a9e4dc86ef4
refs/heads/master
2020-12-24T21:21:22.779636
2016-05-04T07:42:35
2016-05-04T07:42:35
58,031,445
0
0
null
null
null
null
UTF-8
Python
false
false
1,333
py
import random a_until = input() b_until = 10 if a_until == 123456 : print 'You found a easteregg' print 'Try to guess my number!' gn = random.randint(1,10000) un = -1 while gn != un : un = input('number? : ') if(un > gn) : print 'Too big' elif(un < gn) : print 'Too small' elif(un == gn) : print ...
[ "smilup2244@gmail.com" ]
smilup2244@gmail.com
54718fced5aa9042bbc2155ec342bb32c5c94923
a5e6ce10ff98539a94a5f29abbc053de9b957cc6
/competition/20191019/d.py
7532b8635b4abeaabced44c4e2eea7583d904bb3
[]
no_license
shimaw28/atcoder_practice
5097a8ec636a9c2e9d6c417dda5c6a515f1abd9c
808cdc0f2c1519036908118c418c8a6da7ae513e
refs/heads/master
2020-07-26T10:59:51.927217
2020-06-13T11:53:19
2020-06-13T11:53:19
208,622,939
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
N = int(input()) L = [int(i) for i in input().split()] import bisect L.sort() ans = 0 for i in range(N-2): for j in range(i+1, N-1): idx = bisect.bisect_left(L, L[i]+L[j]) ans += (idx-(j+1)) print(ans)
[ "shima.w28@gmail.com" ]
shima.w28@gmail.com
b923bd02e0ee500e12d3202dc483f6915cc19651
de4d88db6ea32d20020c169f734edd4b95c3092d
/aiotdlib/api/functions/get_login_url.py
56c3af78020b2f5c644a8f4e0f93ebbde87ab0d3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
thiagosm/aiotdlib
5cc790a5645f7e4cc61bbd0791433ed182d69062
4528fcfca7c5c69b54a878ce6ce60e934a2dcc73
refs/heads/main
2023-08-15T05:16:28.436803
2021-10-18T20:41:27
2021-10-18T20:41:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,574
py
# =============================================================================== # # # # This file has been generated automatically!! Do not change this manually! # # ...
[ "pylakey@protonmail.com" ]
pylakey@protonmail.com
ce2896ad06aa191757ad56558bbe1b5d4d665cbc
a9e60d0e5b3b5062a81da96be2d9c748a96ffca7
/configurations/lab44-config/scripts/BeamlineI06/Users/diffcalc_i06_4circle.py
3752a2e626b109217f99c1116b9d145d772f50f8
[]
no_license
openGDA/gda-diamond
3736718596f47607335ada470d06148d7b57526e
bbb64dcfd581c30eddb210c647db5b5864b59166
refs/heads/master
2023-08-16T08:01:11.075927
2023-08-15T16:01:52
2023-08-15T16:01:52
121,757,699
4
1
null
null
null
null
UTF-8
Python
false
false
1,373
py
# See notes in: http://wiki.diamond.ac.uk/Wiki/Wiki.jsp?page=I06_Diffcalc try: import diffcalc except ImportError: from gda.configuration.properties import LocalProperties import sys diffcalc_path = LocalProperties.get("gda.install.git.loc") + '/diffcalc.git' sys.path = [diffcalc_path] + sys.path ...
[ "fajin.yuan@diamond.ac.uk" ]
fajin.yuan@diamond.ac.uk
81c5de514378a57338ac86399710a2a2b9fa1e95
17331ee8285a1f19e4ca1abd89dac64da381959d
/03-accessing-web-data/extracting_data_xml.py
208cf4bf87e729149483bec35278bbab8946d4bc
[]
no_license
chaochaocodes/PY4E
3681367ce548fe9a423adb895fe76efda60521bb
09930f6187c3388b61903680bcd4a1533b0b4f82
refs/heads/main
2023-03-28T11:29:09.209120
2021-04-01T02:34:58
2021-04-01T02:34:58
333,506,525
0
0
null
null
null
null
UTF-8
Python
false
false
1,472
py
''' Extracting Data from XML In this assignment you will write a Python program somewhat similar to http://www.py4e.com/code3/geoxml.py. The program will prompt for a URL, read the XML data from that URL using urllib and then parse and extract the comment counts from the XML data, compute the sum of the numbers in the...
[ "57464564+chaochaocodes@users.noreply.github.com" ]
57464564+chaochaocodes@users.noreply.github.com
b2d570a63a13b28c4dd3ba8334a77947e844fd44
5492859d43da5a8e292777c31eace71e0a57dedf
/user/admin.py
f807881a567d5d1c59dc38216d12dd9d167794b3
[ "MIT" ]
permissive
akindele214/181hub_2
93ad21dc6d899b6c56fbe200354b1678bb843705
48b8814b5f66ad87f9a54721506076ddf70fe9bc
refs/heads/master
2022-12-13T01:15:07.925556
2020-05-19T09:39:57
2020-05-19T09:39:57
196,470,605
1
1
MIT
2022-12-08T01:22:55
2019-07-11T22:04:42
Python
UTF-8
Python
false
false
724
py
from django.contrib import admin from .models import Profile, Monetization, UserEmailRequest, Suggestion_Report # Register your models here. class UserAdmin(admin.ModelAdmin): list_display = ('user', 'id', 'user_id') class MonAdmin(admin.ModelAdmin): list_display = ('user', 'amount', 'views', 'status', 'acc...
[ "yaomingnakel@gmail.com" ]
yaomingnakel@gmail.com
2a9e0963993064c76e3f5f9de8b5a7bb88ef5f92
549270020f6c8724e2ef1b12e38d11b025579f8d
/recipes/logr/0.1.0/conanfile.py
967c8e88b68f965f50bf1e673113d8e6341a57de
[ "MIT" ]
permissive
conan-io/conan-center-index
1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43
3b17e69bb4e5601a850b6e006e44775e690bac33
refs/heads/master
2023-08-31T11:34:45.403978
2023-08-31T11:13:23
2023-08-31T11:13:23
204,671,232
844
1,820
MIT
2023-09-14T21:22:42
2019-08-27T09:43:58
Python
UTF-8
Python
false
false
4,011
py
from conan import ConanFile from conan.errors import ConanInvalidConfiguration from conan.tools.microsoft import check_min_vs, is_msvc_static_runtime, is_msvc from conan.tools.files import apply_conandata_patches, export_conandata_patches, get, copy, rmdir from conan.tools.build import check_min_cppstd from conan.tools...
[ "noreply@github.com" ]
conan-io.noreply@github.com
1636eedda11d84791b0a596bc3cca51a8acf751e
b5cc6d7b5f7ccea36fce4eab961979404414f8b0
/kent-report/py/matrix_scaling.py
5aec834ea62a3306e75f6bd37e8e54ef70ea1205
[]
no_license
MiroK/cutFEM-beam
adf0c925dbe64b370dab48e82335617450675f5d
2fb3686804e836d4031fbf231a36a0f9ac8a3012
refs/heads/master
2021-01-21T23:54:32.868307
2015-02-14T13:14:59
2015-02-14T13:14:59
25,625,143
0
0
null
null
null
null
UTF-8
Python
false
false
2,097
py
from eigen_poisson import mass_matrix as Meig1d from eigen_poisson import laplacian_matrix as Aeig1d from shen_poisson import mass_matrix as Mshen1d from shen_poisson import laplacian_matrix as Ashen1d import numpy as np from numpy.linalg import cond # Build 2d matrices def Meig2d(n): '2d mass matrix w.r.t Eigen b...
[ "miroslav.kuchta@gmail.com" ]
miroslav.kuchta@gmail.com
69c00bce760359ee971f98708caf1821b7d4f64d
81e6391b9db249296ec84f6524093cf41b581f31
/단계별로 풀어보기/16. 수학3/[2609] 최대공약수와 최소공배수.py
fb8c37e1e3d2c077f89732f90ea2d7ba29967031
[]
no_license
jaeehooon/baekjoon_python
e991be4b510d642f72f625b898d20451dc920d7c
295776309a883338bfbf51c33caf6dc6629493ca
refs/heads/master
2023-04-15T14:22:21.281930
2021-04-26T02:15:09
2021-04-26T02:15:09
294,137,750
1
0
null
null
null
null
UTF-8
Python
false
false
434
py
import sys # 최대공약수 찾기 with 유클리드 호제법 def gcd(a, b): while a != b: if a > b: a -= b else: b -= a return a def lcm(c, d): gcd_val = gcd(c, d) return gcd_val * (c // gcd_val) * (d // gcd_val) if __name__ == '__main__': num_a, num_b = map(int, sys.stdin.readl...
[ "qlenfr0922@gmail.com" ]
qlenfr0922@gmail.com
bff9007a8afa686e5c49c170d58711ff0baa3f89
0740320ac36a5943a96a8ff005a604c1ae354bed
/leave_serration/main3/main.py
aec1ca6d60d7f84244ec5ae03be8604c98d705f4
[]
no_license
dezhili/leaves-image-processing
0a4d4083b530bbb74b3f6d02c8370ccb61841127
62e2122e2aae39235c4e60b6526798270b1b1ed3
refs/heads/master
2021-01-21T12:31:19.568032
2017-09-01T06:01:48
2017-09-01T06:01:48
102,078,649
0
0
null
null
null
null
UTF-8
Python
false
false
2,120
py
import cv2 import matplotlib.pyplot as plt import get_leave_boundary from get_leave_top_bottom import get_leave_top_bottom from get_leave_top_bottom import search_points import math image = '14.jpg' # image = '442_100_1.jpg' img = cv2.imread(image, 0) contours = get_leave_boundary.get_leave_boundary(image) p1_t, p2...
[ "599709657@qq.com" ]
599709657@qq.com
99d8c7c2a932fc594c79ee725fbc898cb2e020c1
371f94ee0f44feeaf68d740f24bd9bb27f83c8aa
/app/migrations/0002_auto_20161110_1920.py
9061620da8349eb3f87829559618cfd001f3f03d
[]
no_license
cjredmond/final_proto
f69d62da97428af3d52020054e9a327abbff8d15
28d73c7f25a7e8fae07d78b12964cdefeb3103de
refs/heads/master
2020-09-12T04:57:59.279571
2016-11-11T22:44:47
2016-11-11T22:44:47
73,517,094
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-10 19:20 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0001_initial'), ] operations = [ mi...
[ "connor.redmond@gmail.com" ]
connor.redmond@gmail.com
8f143b6444dd282b2bd0c6c3b9dcf9efc2353a8a
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
/google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/services/batch_job_service/transports/base.py
7c0a5731d78ea08d03580092102147c29aebb834
[ "Apache-2.0" ]
permissive
oltoco/googleapis-gen
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
refs/heads/master
2023-07-17T22:11:47.848185
2021-08-29T20:39:47
2021-08-29T20:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,647
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
3fcd539d30d02cd5409abaeb8516fa34204dfe44
548c26cc8e68c3116cecaf7e5cd9aadca7608318
/feedback/migrations/0004_auto__add_field_feedback_type__chg_field_feedback_email__chg_field_fee.py
82b0d78830f50c8b2e808681d8cdc1c75dc68e31
[]
no_license
Morphnus-IT-Solutions/riba
b69ecebf110b91b699947b904873e9870385e481
90ff42dfe9c693265998d3182b0d672667de5123
refs/heads/master
2021-01-13T02:18:42.248642
2012-09-06T18:20:26
2012-09-06T18:20:26
4,067,896
0
1
null
null
null
null
UTF-8
Python
false
false
3,758
py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Feedback.type' db.add_column('feedback_feedback', 'type', self.gf('django.db.models.fields...
[ "dalal.saumil@gmail.com" ]
dalal.saumil@gmail.com
198bc43024f973401ae0dec802d22885249ca303
1a114943c92a5db40034470ff31a79bcf8ddfc37
/stdlib_exam/socketserver-example-1.py
bcde479b54c4867b59ab85012d4fe7549633e7e7
[]
no_license
renwl/mylinux
1924918599efd6766c266231d66b2a7ed6f6cdd1
0602fc6d2b0d254a8503e57310f848fc3e1a73b4
refs/heads/master
2020-07-10T22:12:03.259349
2017-01-02T12:32:04
2017-01-02T12:32:04
66,467,007
0
0
null
null
null
null
UTF-8
Python
false
false
594
py
import socketserver import time # user-accessible port PORT = 8037 # reference time TIME1970 = 2208988800 class TimeRequestHandler(socketserver.StreamRequestHandler): def handle(self): print("connection from", self.client_address) t = int(time.time()) + TIME1970 b = chr(t>>24&255) + chr(t...
[ "wenliang.ren@quanray.com" ]
wenliang.ren@quanray.com
6aaeb6f165fa71b2e82277ab1c4666f025d32a49
2772b58d09f3cc8fad2b4354dee7a06c481b7d23
/forum/forms.py
46319a0016cf611d0227b3061a330a88652e0231
[ "MIT" ]
permissive
shmilyoo/ggxxBBS
33cef10ac2284010028556c6d946566de05537da
cef6408e533bd0b0f57c3e2f5da4e93ea07c4331
refs/heads/master
2020-04-25T02:56:02.116161
2019-02-25T07:57:02
2019-02-25T07:57:02
172,458,753
0
0
null
null
null
null
UTF-8
Python
false
false
4,294
py
# -*- coding: utf-8 -*- import datetime from django import forms from django.core.exceptions import NON_FIELD_ERRORS from django.core.validators import RegexValidator from django.utils.html import strip_tags, remove_tags from django.utils.safestring import mark_safe from forum import models as forumModels from forum.h...
[ "fighter_yy@qq.com" ]
fighter_yy@qq.com
28362fceebf77532f2fe2a04d4d1ea54fd38a7e1
be50b4dd0b5b8c3813b8c3158332b1154fe8fe62
/Math/Python/FizzBuzz.py
7ba15c495b1f34a12eaa2eada55c1970b97ecf14
[]
no_license
Zimmermann25/InterviewBit
a8d89e090068d9644e28085625963c8ce75d3dff
6d2138e740bd5ba8eab992d9bf090977e077bfc5
refs/heads/main
2023-03-24T18:12:48.244950
2021-03-24T14:36:48
2021-03-24T14:36:48
350,835,917
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
class Solution: # @param A : integer # @return a list of strings def fizzBuzz(self, A): arr = [i+1 for i in range(A)] for i in range(1,A+1): if i % 5==0 and i %3==0: arr[i-1] = 'FizzBuzz' elif i % 5==0: arr[...
[ "noreply@github.com" ]
Zimmermann25.noreply@github.com
5dd937a052275fa1dbf2c1a3cb885c1a790e34ba
226b1c73a706f4734834196d18305d4d2c873589
/verification_libs/axiMaster.py
ec5de04702fc9521260d68cd88cb730c51288816
[]
no_license
ocakgun/vlsistuff
43b4b07ae186b8d2360d11c57cd10b861e96bcbe
776c07f5d0c40fe7d410b5c85e7381017d4dab64
refs/heads/master
2022-06-13T14:40:22.641310
2020-05-08T11:09:00
2020-05-08T11:09:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,722
py
DEMO = ''' axi = axiMaster.axiMasterClass('tb',Monitors) axi.makeRead(1,16,0x100,4) axi.makeWrite(1,16,0x100,4) axi.wait(100) ''' import os,sys,string,types import logs import veri class axiMasterClass: def __init__(self,Path,Monitors): self.Path = Path Monitors.append(self) self.Queue=...
[ "greenblat@mac.com" ]
greenblat@mac.com
6ce81949e3f2282a9f151be94fc7093a54818ac8
e1afe8d3f5d776c2d80be502de8380cd786a3fb9
/pointgate/__init__.py
d8b174c2f1e216b821605ea846e1d9708e473ad1
[]
no_license
mbr/pointgate
5566b1929d8f1a93a1a2183b78287173e41bf82b
44527722e797222b35ba92a6538ae72c4f980fc4
refs/heads/master
2023-06-06T20:42:22.766233
2014-04-18T13:21:34
2014-04-18T13:21:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
from flask import Flask from flask.ext.appconfig import HerokuConfig from pointgate.dyndnsapi import dyndnsapi def create_app(configfile=None): app = Flask(__name__) HerokuConfig(app, configfile) app.config.setdefault('POINTDNS_API_URL', 'https://pointhq.com') app.config.setdefault('POINTDNS_RECORD_T...
[ "git@marcbrinkmann.de" ]
git@marcbrinkmann.de
63d99f5a3aff98c8202c811567e3db5295057bbb
8126d1bc2afe0925a24fce039d0f02a3bd7acbae
/tests/test_grid.py
c48893de2ba516734e6e3f92675639e9c74bab2c
[ "BSD-2-Clause" ]
permissive
rafwiewiora/pytraj
54fb6fe07a754f65b865dd161f64c7af15fc3926
91a019ea406081ccf0043170cc64c48b4a5ea04a
refs/heads/master
2021-01-20T17:33:05.974254
2016-03-11T21:25:32
2016-03-11T21:25:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,992
py
#!/usr/bin/env python from __future__ import print_function import unittest import os import numpy as np import pytraj as pt from pytraj.utils import eq, aa_eq from pytraj.testing import cpptraj_test_dir class TestGrid(unittest.TestCase): def test_0(self): from pytraj.math import Grid import nump...
[ "hainm.comp@gmail.com" ]
hainm.comp@gmail.com
3a73b821bf69bc409fc73a51db492275552b09a3
1581f1d66d6835b2c271295e3251c2dde239fec8
/expense/admin.py
569aba91027a1072734efcf4d5e35e26be0b2b1e
[]
no_license
abinash-kumar/pythod
527659e3bdd161f9abcaaa9182dfe58044b3ff66
1469dc0cd9d6d72b2fe2e69f99542e470bea807b
refs/heads/master
2023-01-30T02:54:10.729606
2020-02-24T07:18:51
2020-02-24T07:18:51
242,670,715
0
0
null
2023-01-25T13:57:52
2020-02-24T07:16:02
Python
UTF-8
Python
false
false
902
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Channel from .models import ExpenceDetails from .models import ABDoc from django.contrib.auth.models import User admin.site.register(Channel) class ExpenceDetailsView(admin.ModelAdmin): list_displa...
[ "abinashlv@AbinashSymboMac.local" ]
abinashlv@AbinashSymboMac.local
6101ffbcf6bdcad6190dbf061d007a7f56793e4a
bfcd8f1f6ac8590df321f23a422eca0370a25b8f
/myenv/lib/python3.7/site-packages/layoutmargin/_margin_layout.py
3c7b7f4b634a6c45e59c56c7b890314835cd6c0d
[]
no_license
Stephen-Tipa-Augustine/KMC_ventilator
0567fa0b72d41fb0de11cd72c62567bed973d9f5
456e88ae4fff3984d5456517ba8787f9d5762745
refs/heads/master
2022-12-26T08:00:41.102890
2020-09-07T11:00:13
2020-09-07T11:00:13
293,500,282
0
1
null
2022-12-19T04:33:28
2020-09-07T10:49:08
Python
UTF-8
Python
false
false
5,591
py
from typing import NamedTuple from kivy.properties import ObjectProperty class AddMargin: margin = ObjectProperty() _last_X = None _last_Y = None _last_Width = None _last_Height = None _last_MarginX = None _last_MarginY = None def __init__(self, **kwargs): super().__init__(**...
[ "tipastep5@gmail.com" ]
tipastep5@gmail.com
a409824bbeb2bee142944ddfef80720e93e45871
ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1
/res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/lobby/components/CalendarComponent.py
468107eb74fdcf3dd1a24f4654b1b61c2cb03022
[]
no_license
webiumsk/WOT-0.9.20.0
de3d7441c5d442f085c47a89fa58a83f1cd783f2
811cb4e1bca271372a1d837a268b6e0e915368bc
refs/heads/master
2021-01-20T22:11:45.505844
2017-08-29T20:11:38
2017-08-29T20:11:38
101,803,045
0
1
null
null
null
null
WINDOWS-1250
Python
false
false
1,193
py
# 2017.08.29 21:46:49 Střední Evropa (letní čas) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/components/CalendarComponent.py from debug_utils import LOG_DEBUG import BigWorld from Event import Event, EventManager from gui.Scaleform.daapi.view.meta.CalendarMeta import CalendarMeta class Calendar...
[ "info@webium.sk" ]
info@webium.sk
9461eef63e4da2652e875cd5b3f59a30f042a584
b554dbc85ca470c4598d412ff34f516a8ab324dc
/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/virtual_machine_scale_set_py3.py
1db294839a1ba61549769cd0b97f6bbb0b5bbcc8
[ "MIT" ]
permissive
bgsky/azure-sdk-for-python
62bd7b12b0b407690707cbaf6ad4322ed58d1d3b
ec18d0b25be10fddbde416b901b905dfb0896430
refs/heads/master
2021-04-12T01:59:34.293330
2018-11-27T21:57:19
2018-11-27T21:57:19
125,912,205
0
0
MIT
2018-03-19T19:50:37
2018-03-19T19:50:37
null
UTF-8
Python
false
false
5,519
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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
1d3fe4cf1c880b8a628afd2b1e092450fb946243
7950c4faf15ec1dc217391d839ddc21efd174ede
/problems/0236.0_Lowest_Common_Ancestor_of_a_Binary_Tree.py
dd4df406dc9baf8ebc67905db08cce531e2aaf01
[]
no_license
lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
UTF-8
Python
false
false
1,135
py
''' DFS Runtime: 114 ms, faster than 46.58% of Python3 online submissions for Lowest Common Ancestor of a Binary Tree. Memory Usage: 26.3 MB, less than 30.85% of Python3 online submissions for Lowest Common Ancestor of a Binary Tree. ''' # Definition for a binary tree node. # class TreeNode: # def __init__(self, x...
[ "838255715@qq.com" ]
838255715@qq.com
6376fb9392d11160868a6f7f6fcd88553812000f
c1a7e00efbf7ebb2a60063c62eb2642631a49fd8
/backend/src/passwordreset/admin.py
f7e0157a57cddc8951fc543b9e6532b644466ad1
[]
no_license
rajesh241/GandhiCollectedWorks
a8557c3367a69be9e13606cef0bb74d11e8bc747
efb68310a1362791e4cda09e7bb54ae91e407db3
refs/heads/master
2023-01-21T10:19:19.465420
2021-02-21T11:10:33
2021-02-21T11:10:33
194,344,659
2
0
null
2023-01-07T15:00:15
2019-06-28T23:40:41
HTML
UTF-8
Python
false
false
299
py
""" contains basic admin views for MultiToken """ from django.contrib import admin from passwordreset.models import ResetPasswordToken @admin.register(ResetPasswordToken) class ResetPasswordTokenAdmin(admin.ModelAdmin): list_display = ('user', 'key', 'created_at', 'ip_address', 'user_agent')
[ "togoli@gmail.com" ]
togoli@gmail.com
01b29bd4c0ab79ad15650e94fa06bb276c2daa04
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5752104073297920_0/Python/festony/2014_r1A_C.py
6c2ad6f11d19adb3199ff6afe0482c43aab22da6
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
2,432
py
''' CodeJam Practice Created on 2012-12-20 @author: festony ''' from cj_lib import * from properties import * import math import fractions #curr_file_name = 'C-large' curr_file_name = 'C-small-attempt1' #curr_file_name = 'test' # map(int, input_lines.pop(0).split(' ')) def input_dividing_fun...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
009e681b99ae5412a43a6b8aaa5ec64851a1afb1
7030259044f2afd4164f2f0507bdb9f091708067
/project/settings/dev.py
f5a58a8568aa08a174cd82beca88bf9f92851863
[]
no_license
m2candre/django-vue-template
f64fa5c28e08abeab7f10dcb2d3a93132d5a969a
79517dbcaf740f07bad6fc19a18ba36e1e9fdd24
refs/heads/master
2020-03-25T23:35:29.759950
2018-08-10T06:19:21
2018-08-10T06:19:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,016
py
""" Django settings for project project. Generated by 'django-admin startproject' using Django 2.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # B...
[ "gtalarico@gmail.com" ]
gtalarico@gmail.com
8d8aff77d83973f585f201fd0852388ae2b83750
5077fc5d82caa3b3ed5ce0e062bfe75cd4037ebc
/杂项/豆瓣2.0.py
ca3069d5209891cdea35ff7b96a964dff22a719e
[]
no_license
asswecanfat/git_place
ee10e1057d8307d3c72f57291b5bcb6d0579017e
244ff0de11ffbe1aa9f20308e43af39486507f6f
refs/heads/master
2021-07-18T23:06:14.324164
2020-09-02T12:15:27
2020-09-02T12:15:27
210,833,462
1
2
null
null
null
null
UTF-8
Python
false
false
3,177
py
import requests from bs4 import BeautifulSoup import re class Douban_login: def login(self): def post_data(data):#发送data并判断是否登陆成功 reponse = s.post(url, data = data, headers = headers) if str(reponse.url) == final_url: print('登陆成功!') else: ...
[ "1024847824@qq.com" ]
1024847824@qq.com
998b1ddc40d9341734d6d53772d4c1c0015de1a3
876de904572c611b8cbad21f50877cdc812f2946
/Leetcode/103. 二叉树的锯齿形层次遍历.py
77492d7c29f409cbabe69df893d7f7c2079e571c
[ "MIT" ]
permissive
QDylan/Learning-
66a33de0e15f26672fb63c0b393866721def27ae
f09e0aa3de081883b4a7ebfe4d31b5f86f24b64f
refs/heads/master
2023-02-08T02:34:26.616116
2020-12-25T05:02:32
2020-12-25T05:02:32
263,805,536
0
0
null
null
null
null
UTF-8
Python
false
false
1,330
py
# -*- coding: utf-8 -*- """ @Time : 2020/7/14 8:28 @Author : QDY @FileName: 103. 二叉树的锯齿形层次遍历.py 给定一个二叉树,返回其节点值的锯齿形层次遍历。(即先从左往右,再从右往左进行下一层遍历,以此类推,层与层之间交替进行)。 例如: 给定二叉树 [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 返回锯齿形层次遍历如下: [ [3], [20,9]...
[ "qdy960411@outlook.com" ]
qdy960411@outlook.com
306a3bd19cae6afd4c07662217dfa4233cc55817
4e808ecca7a94a70a63c59b4c91a15cd61bada6e
/natuurpunt_imp_members/__init__.py
aa961a1fb03e95eeccdde06ef8b561394c9cab51
[]
no_license
smart-solution/natuurpunt-crm
79b98cfc8c69027dc82afa3779b65616141e6779
0bd247e78c01e79ec54b90c0d0bcaca38742f04d
refs/heads/master
2021-05-22T05:43:42.913854
2020-12-02T08:06:05
2020-12-02T08:06:05
39,186,027
0
0
null
2020-12-02T08:06:06
2015-07-16T08:36:27
Python
UTF-8
Python
false
false
228
py
# -*- encoding: utf-8 -*- ############################################################################## # # ############################################################################## import natuurpunt_imp_members
[ "fabian.semal@smartsolution.be" ]
fabian.semal@smartsolution.be
221069477e0d8b653578b817b9402d37916c81ea
2e5dd9e5c634c1c2163b96a3607f9806a9598d39
/rastervision2/pytorch_learner/semantic_segmentation_learner.py
38fec3f11bd120f09443b73f6423fae3662d50e7
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
jpolchlo/raster-vision
8fc60c8bfa2d6319810c3414606400abd63ff633
8aa9601d168de2c6bbc00d7f5ba2b70f1d5f7f13
refs/heads/master
2022-10-29T07:39:15.551708
2020-04-28T19:20:42
2020-04-28T19:20:42
259,924,470
0
0
null
null
null
null
UTF-8
Python
false
false
4,656
py
import warnings warnings.filterwarnings('ignore') # noqa from os.path import join, isdir, basename import logging import glob import numpy as np import matplotlib matplotlib.use('Agg') # noqa import torch from torch.utils.data import Dataset, ConcatDataset import torch.nn.functional as F from torchvision import mode...
[ "lewfish@gmail.com" ]
lewfish@gmail.com
16e691f5d9996ec589acc9303e1a1b44345a49f2
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03209/s412514584.py
8a91d7202b2f680aa7cfc95494723a5132f74cba
[]
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
1,472
py
from collections import defaultdict, deque, Counter from heapq import heappush, heappop, heapify from itertools import permutations, accumulate, combinations, combinations_with_replacement from math import sqrt, ceil, floor, factorial from bisect import bisect_left, bisect_right, insort_left, insort_right from copy imp...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
807db398dd1cd2e6f9f343554b314b6cf2edaaa3
21bbc3fbeb7a1616dbd6993b66dc44d9b30df3e7
/PycharmProjects/samp_proj1/day_201118/assign20_4.py
ae6872a76db98685e7dd0950125cf38c9062df25
[]
no_license
PoornimaDevii/python_training
6124640608d8bf14289ae61b2b28e0db3b473b6f
42b535590a6a244a91bd48b4451b74a29c1aaa80
refs/heads/master
2020-04-05T19:55:49.723114
2018-12-04T11:49:59
2018-12-04T11:49:59
157,157,063
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
# see expandtabs() def gen_f(fname): with open(fname) as file: file_lines = file.readlines() for each in file_lines: if each == '\n': a = each.strip() yield a j = 0 for i in gen_f('/home/cisco/PycharmProjects/samp_proj1/day_201118/para.txt'): ...
[ "poornimadevi.rama@gmail.com" ]
poornimadevi.rama@gmail.com
8495a3c6af74d2c3e28bea856fdf2fc0cbc300d6
50914176887f9f21a3489a9407195ba14831354c
/insert_delete_get_random.py
7d4822ccfec6abae0608b190b89b3b2f2688234c
[]
no_license
nkukarl/leetcode
e8cfc2a31e64b68222ad7af631277f1f66d277bc
b1dbe37e8ca1c88714f91643085625ccced76e07
refs/heads/master
2021-01-10T05:42:04.022807
2018-02-24T03:55:24
2018-02-24T03:55:24
43,725,072
0
0
null
null
null
null
UTF-8
Python
false
false
1,395
py
import random class RandomizedSet(object): def __init__(self): # Use self.vals to store all the elements self.vals = [] # Use element:index as key:value pairs to store position info self.pos = {} def insert(self, val): """ Inserts a value to the set. R...
[ "kai.wang.nankai@gmail.com" ]
kai.wang.nankai@gmail.com
9ab7d64d30b2d113f53f28daec9949ecff89d635
60f5b2e7916bfb2686f5e0da2a5d9031a097ce05
/test/hlt/pytest/python/com/huawei/iotplatform/client/dto/QueryDevicesInfoInDTO.py
651c76e969fba7bc6266b6f6f356c18de0700aae
[ "BSD-3-Clause" ]
permissive
SuYai/LiteOS_Lab
65f1a73026331f2a78567f07955e43ee82df265f
3c9a579cd17d730e21814efc15076351a365e5f8
refs/heads/iot_link
2020-11-28T18:39:02.989946
2020-03-02T02:09:51
2020-03-02T02:09:51
229,894,455
1
0
BSD-3-Clause
2020-03-05T07:49:17
2019-12-24T07:32:24
C
UTF-8
Python
false
false
498
py
class QueryDevicesInfoInDTO(object): def __init__(self): self.deviceId = None self.select = None self.appId = None def getDeviceId(self): return self.deviceId def setDeviceId(self, deviceId): self.deviceId = deviceId def getSelect(self): return self.se...
[ "xu_liqun@hoperun.com" ]
xu_liqun@hoperun.com
1488329995fbcb36ea381a45fa7fe9f6cb83e31d
ffd5e689f88c49ab7af3554c22dc0c36301084fa
/count_the_smiley_faces.py
d6531cdadb8fdc7555b1e23aa72d792f0cf282e4
[]
no_license
ellismckenzielee/codewars-python
1710e6f0499047139479de386927c7dbd5f1cdf6
af3f4b4534798a58115d0565730aae28ce87437e
refs/heads/master
2023-08-09T13:38:40.964141
2023-08-01T14:45:22
2023-08-01T14:45:22
168,981,376
45
18
null
null
null
null
UTF-8
Python
false
false
458
py
#Count the smiley faces! kata #https://www.codewars.com/kata/583203e6eb35d7980400002a def count_smileys(arr): total = 0 for face in arr: template = [[':',';'], ['-','~'], [')','D']] if len(face) == 2: template = template[0::2] elif len(face) != 3: continue ...
[ "ellismckenzielee@gmail.com" ]
ellismckenzielee@gmail.com
157b8295a211d8eb2ee9ad809fd14457e720b6fe
6c151b3952a0c84765b78d82f2db64de92dcbb71
/tests/test_save_multiple.py
7a856cb6ed8fd387768c90d677fb147f60779b1d
[ "MIT" ]
permissive
SmirkCao/jupytext
1e02daf54e24f600bef2ddd4f4d2b91f1c11aa79
3d8c5e8bffe35289dd46df04cd3529f0b8716383
refs/heads/master
2020-08-10T20:17:31.462179
2019-09-29T07:56:11
2019-09-29T07:56:11
214,413,393
1
0
MIT
2019-10-11T10:58:02
2019-10-11T10:58:02
null
UTF-8
Python
false
false
3,510
py
import os import pytest from nbformat.v4.nbbase import new_notebook from nbformat.validator import NotebookValidationError from tornado.web import HTTPError import jupytext from jupytext.contentsmanager import TextFileContentsManager from jupytext.compare import compare_notebooks from .utils import list_notebooks @py...
[ "marc.wouts@gmail.com" ]
marc.wouts@gmail.com
079f18d1faa74d780d07da79b90885ac6a046b56
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/sentry/2016/4/apikey.py
6815b0fec307ab6cbbaf52e803d90027c59c261b
[]
no_license
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
3,384
py
""" sentry.models.apikey ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2015 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function import six from bitfield import BitField from django.db import models from django.utils imp...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
07f0aff0ee04c49fe79e03dbf6a3da55ffd35cd2
7d096568677660790479d87c22b47aae838ef96b
/examples/RFSG/RFSGGettingStartedIQDevice.py
784cee721d32221af1028ea131db6d96d4acdb74
[ "MIT" ]
permissive
NISystemsEngineering/rfmx-pythonnet
30adbdd5660b0d755957f35b68a4c2f60065800c
cd4f90a88a37ed043df880972cb55dfe18883bb7
refs/heads/master
2023-02-04T00:39:41.107043
2023-02-01T21:58:50
2023-02-01T21:58:50
191,603,578
7
5
MIT
2023-02-01T21:58:52
2019-06-12T16:02:32
Python
UTF-8
Python
false
false
4,025
py
import clr import sys import time import os import argparse import csv import numpy as np # Argparse section parser = argparse.ArgumentParser() parser.add_argument('--resource', \ help="enter instrument resource name") parser.add_argument('--trigger', default="none", \ help="enable trigger on requested termin...
[ "sean.moore@ni.com" ]
sean.moore@ni.com
6fc1c089abc9dba76e6b8a4df05edc5f6e2817f3
a12bd9ee16dd864756829f2ff98f9e7ca59e322a
/07. raspberrypi/python/objectdetection-ex/tf/examples/obj-detect-api-ex/ex02.py
aa6248d3e51ee81ca5b24c2d31758f7650e2a698
[]
no_license
hongjy127/TIL
0bda9250f850a21dc27597a8b6288cf7ecb9e470
a1760aba50bb3b77ab6576f5b5dcb16f0d9f5c5a
refs/heads/master
2023-06-17T17:04:21.873930
2021-07-18T07:54:26
2021-07-18T07:54:26
325,415,046
0
0
null
null
null
null
UTF-8
Python
false
false
908
py
import cv2 from video import Video from objdetect import ObjDetectApi import time PATH_TO_LABELS = 'data/mscoco_label_map.pbtxt' MODEL_NAME = 'ssd_mobilenet_v1_coco_2017_11_17' api = ObjDetectApi(MODEL_NAME, PATH_TO_LABELS) def detect(frame): frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) # output_dict를 클...
[ "hhhong127@gmail.com" ]
hhhong127@gmail.com
4c4ee08f8d7ff033d096bc6f764a9a81fd99e6ce
f425902cfa5dba2058b0885ffa103f7156b6be08
/supervised_learning/0x0A-object_detection/5-yolo.py
53410b498a3dbc4ae2422f5c29928baaebc8730b
[]
no_license
PilarPinto/holbertonschool-machine_learning
2a23af14c851bd3e5d1926e644525bf0ab45df84
74213384b0998f65e123adc146ea5e91c4d77b37
refs/heads/master
2022-12-22T16:29:03.960474
2020-10-03T22:47:51
2020-10-03T22:47:51
279,387,070
0
0
null
null
null
null
UTF-8
Python
false
false
6,488
py
#!/usr/bin/env python3 ''' algorithm to perform object detection File in YOLO dataset ''' import tensorflow.keras as K import numpy as np import glob import cv2 class Yolo: ''' Initialize the class YOLO ''' def __init__(self, model_path, classes_path, class_t, nms_t, anchors): '''uses the Yolo...
[ "piapintoch@unal.edu.co" ]
piapintoch@unal.edu.co
88895b7e721bf818a7dc07867690fd85b1bb77e8
6eea60bcbf206dafc5fe578b996267ce2bc9ae6e
/UVA/11953 - Battleships.py
0d6e814baa4fed1595d51143f5b702dbd8328d1f
[]
no_license
SueAli/cs-problems
491fef79f3e352d7712cd622d3b80ec15d38642b
b321116d135f868d88bd849b5ea7172feb74fb4c
refs/heads/master
2023-08-31T10:46:30.374394
2023-08-24T20:14:04
2023-08-24T20:14:04
95,930,918
0
0
null
null
null
null
UTF-8
Python
false
false
1,073
py
# Time Complexity is O( n * n ) # Space Complexity is O( n * n ) dir_ = [(0,-1),(0,1),(-1,0),(1,0)] def dfsFloodFill(i,j,grid, x_cnt): if (i <0 or j <0 ) or (i == len(grid) or j == len(grid[0]) or grid[i][j]=='.' or grid[i][j] == '#' )...
[ "souad.hassanien@gmail.com" ]
souad.hassanien@gmail.com
9def12bb10c280f6d218ab0e4f4e022178c42c79
3c934c97bd5748237ac8963c8be779a7d77be629
/NumArray.py
7b83af17fd371ac49d4747ee093cd73e1eb4ba28
[]
no_license
Franktian/leetcode
2b0d0280d18e3401b9f337f027c5d70f26237f02
98e7852ba144cefbdb02f705651b1519155ee4d6
refs/heads/master
2021-06-12T15:23:09.733650
2020-06-17T23:09:18
2020-06-17T23:09:18
128,710,359
1
0
null
null
null
null
UTF-8
Python
false
false
166
py
def generateSumArray(lst): res = [0 for _ in range(len(lst) + 1)] for i in range(len(lst)): res[i + 1] = res[i] + lst[i] return res
[ "tianyawen201209@hotmail.com" ]
tianyawen201209@hotmail.com
43ec620f796bd7583adf61a5d35f884a7ed0a131
13c5b9fc590954a4a25b9d38e8140eb83a63c9a1
/src/bxutils/encoding/json_encoder.py
f19ef44071daf049b5ca02db5826cf4b49fe4c99
[ "MIT" ]
permissive
aspin/bxcommon
f746c405c693f4efb8af815cf4f9408284299e50
325a0844e3fc16176e90ea574eb45fff1177c527
refs/heads/master
2020-09-10T16:26:55.814270
2019-11-07T21:53:23
2019-11-07T21:53:23
221,758,675
0
0
null
2019-11-14T18:08:11
2019-11-14T18:08:10
null
UTF-8
Python
false
false
2,974
py
import json import os import traceback from datetime import date, time, datetime from enum import Enum from inspect import istraceback from typing import Union, Any, Iterable, Collection, Optional, Dict from bxutils import logging logger = logging.get_logger(__name__) SPECIAL_ITERABLE_TYPES = (type(dict().values()),...
[ "vc.shane@gmail.com" ]
vc.shane@gmail.com
d34717fa89b9334c16bbce45114f375f90df6212
5f86944bdf1b810a84c63adc6ed01bbb48d2c59a
/kubernetes/client/models/v1_host_path_volume_source.py
3c20e047e90416302ea98ba790825974c4a38243
[ "Apache-2.0" ]
permissive
m4ttshaw/client-python
384c721ba57b7ccc824d5eca25834d0288b211e2
4eac56a8b65d56eb23d738ceb90d3afb6dbd96c1
refs/heads/master
2021-01-13T06:05:51.564765
2017-06-21T08:31:03
2017-06-21T08:31:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,264
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.6.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
[ "mehdy@google.com" ]
mehdy@google.com
337555d0ffdb156debb715b400abbd43a9f4ed40
9c5f36b72323090b9f0254938923a04b436fd3be
/main/collect_data_X.py
a37f4e8d9f31c29e69b2f9b8a93a7076b5e83221
[]
no_license
mdlaskey/IL_ROS_HSR
7c7233905e6a1fc8388661236bade3862da0fc90
d12f8397249acea4fae71d12c74074314a8a005e
refs/heads/master
2021-01-20T18:30:11.815581
2018-04-07T01:14:41
2018-04-07T01:14:41
90,918,344
2
1
null
null
null
null
UTF-8
Python
false
false
3,777
py
from hsrb_interface import geometry import hsrb_interface from geometry_msgs.msg import PoseStamped, Point, WrenchStamped import geometry_msgs import controller_manager_msgs.srv import cv2 from cv_bridge import CvBridge, CvBridgeError import IPython from numpy.random import normal import time #import listener from geo...
[ "mdlaskey@umich.edu" ]
mdlaskey@umich.edu
a458fcba14a9b526fea72c863cbaf95925bb15fd
5c5b34f6f598a43ddfbd473228737a27c26d1d8e
/contest/第 16 场双周赛/5153. 层数最深叶子节点的和.py
9c625b10b34a8d937c7c013c9da14a932474e7f8
[]
no_license
lovehhf/LeetCode
34a1bc140b10dc83a32ef9a70f9c73176948a9c4
5d3574ccd282d0146c83c286ae28d8baaabd4910
refs/heads/master
2021-11-04T04:52:34.518621
2021-10-26T15:34:47
2021-10-26T15:34:47
173,673,492
0
0
null
2020-03-03T14:54:09
2019-03-04T04:26:15
Python
UTF-8
Python
false
false
2,252
py
# -*- coding:utf-8 -*- """ 给你一棵二叉树,请你返回层数最深的叶子节点的和。 示例: 输入:root = [1,2,3,4,5,null,6,7,null,null,null,null,8] 输出:15 提示: 树中节点数目在 1 到 10^4 之间。 每个节点的值在 1 到 100 之间。 mid dl的dfs解法: class Solution { public: int md, res; void dfs(TreeNode* x , int dep) { if (x == NULL) return; if (x->left =...
[ "853885165@qq.com" ]
853885165@qq.com
6ccb5f9dd768379c7dbc65f8f3782ebb2724ba65
ecd4b06d5d5368b71fd72a1c2191510a03b728fd
/10 - python-data-science-toolbox-part-2/13 - write your own generator expressions.py
d2c273692fdfcb03da16650e1b4cafb4b11fe05a
[ "MIT" ]
permissive
Baidaly/datacamp-samples
86055db5e326b59bfdce732729c80d76bf44629e
37b4f78a967a429e0abca4a568da0eb9d58e4dff
refs/heads/master
2022-07-27T01:18:00.700386
2022-07-18T19:27:23
2022-07-18T19:27:23
123,827,284
0
0
null
null
null
null
UTF-8
Python
false
false
1,029
py
''' You are familiar with what generators and generator expressions are, as well as its difference from list comprehensions. In this exercise, you will practice building generator expressions on your own. Recall that generator expressions basically have the same syntax as list comprehensions, except that it uses paren...
[ "daulet.urazalinov@uptake.com" ]
daulet.urazalinov@uptake.com
1f1c0fa57670131ce843fb8fd1fff22ae434970c
8cc862aa51d3fec95d094dc4bd3151e1155d240a
/PythonSpider/toutiao/jiepai.py
6112f808f2392f33cd7d22605d53420e6247c8a4
[]
no_license
activehuahua/python
bcbf3a2190025e2315399bfd0c725f598211632b
cc36a93c01c53f856426ccf2724848142524d9c0
refs/heads/master
2023-04-14T10:23:21.590765
2019-08-12T06:52:15
2019-08-12T06:52:15
160,277,647
0
0
null
null
null
null
UTF-8
Python
false
false
2,174
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- ''' @Author : zhaojianghua @File : jiepai.py @Time : 2019/1/2 10:45 @desc : 街拍网址: https://www.toutiao.com/search/?keyword=%E8%A1%97%E6%8B%8D ''' import requests from urllib.parse import urlencode import pprint,os from hashlib import md5 from multiprocessing import ...
[ "zhaojianghua@pretang.com" ]
zhaojianghua@pretang.com
8c77c556534fee53c2d8b3f8323b07fa4aa34f7a
17b9f098d783b58a65a2f4a2d51c7d1ae19285cf
/Mayordomo.py
88dc5fde4a0f1885bfec2efdae1dc685064bf827
[ "MIT" ]
permissive
elenajimenezm/Mayordomo
ea17a3168f25f4648910a71aece478155dffabd3
da5e8746ee41906eb60c8626b5de2db8e111ad83
refs/heads/master
2021-07-25T23:32:15.382348
2017-11-09T22:51:38
2017-11-09T22:51:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,650
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import paho.mqtt.client as paho import json import time import uuid import Queue import subprocess import unicodedata MQTT_SERVER = 'localhost' MAYORDOMO_TOPIC = 'rcr/Mayordomo' SPEAK_TOPIC = 'rcr/Speak' PLAYER_TOPIC = 'rcr/MusicPlay...
[ "titos.carrasco@gmail.com" ]
titos.carrasco@gmail.com
f8849681bf0f73b561cd28da56bec644274b35b2
0e99d2efff685a66869d5a7cd4a68de8955f498c
/baseproblems/maxSerise.py
59e500dd6acc33c4ffc189b1fcf29faf76b97e71
[]
no_license
supercp3/code_leetcode
f303109c70ccdd0baa711cf606d402158b212525
1dc6260e229a012111ec4d5e60071c2458ce5002
refs/heads/master
2020-03-26T11:33:28.741405
2018-10-15T02:18:24
2018-10-15T02:18:24
144,848,743
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
''' 最大连续子序列的和 ''' def maxlist(data): length=len(data) maxnum=0 for i in range(length): subnum=0 for j in range(i,length): subnum+=data[j] if subnum>maxnum: maxnum=subnum return maxnum if __name__=="__main__": data=[1,2,3,-2,3,-10,3] res=maxlist(data) print(res)
[ "13281099@bjtu.edu.cn" ]
13281099@bjtu.edu.cn
6ba0d69d629dad7ff9c362d2aaa88f0ed544dfe5
2fe1cc0cca927276a1f936e57c6427aa4210265a
/flasky/app/__init__.py
33d1d993450feb757a5d81cf9576e679b99e4a20
[]
no_license
D-Mbithi/flask-web-development-code
57b29488f87ff76a0775f16965f8df906d517b5f
98d24e498372be74a17b7451b46ed1bb22093a8d
refs/heads/master
2022-12-12T17:13:11.337107
2019-12-02T16:42:47
2019-12-02T16:42:47
225,421,531
0
0
null
2022-09-16T18:14:07
2019-12-02T16:36:23
JavaScript
UTF-8
Python
false
false
974
py
from flask import Flask from flask_bootstrap import Bootstrap from flask_mail import Mail from flask_moment import Moment from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_debugtoolbar import DebugToolbarExtension from config import config bootstrap = Bootstrap() login_manager ...
[ "jonas@devlieghere.com" ]
jonas@devlieghere.com
e47367f80b9ab84975e9b2f5f3ecdfcd1a28d9e8
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/562.py
3640e88ff78b2a491484cb555a0a0c269267b59a
[]
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,695
py
from sys import * from heapq import * from time import time from multiprocessing import Pool from collections import * import itertools from copy import deepcopy from bisect import * setrecursionlimit(10000) from math import * def readint(): return int(fi.readline()) def readints(): return [int...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
2f6984f86dbb761041f432d70be05ec86d3e84f6
d7016f69993570a1c55974582cda899ff70907ec
/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_12_01/aio/operations/_domain_registration_provider_operations.py
1c663f674b0cbfd5b8e1d5930de10fb86e0d22d9
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
5,710
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
de6926e063452533074ff6429ef970fc7829e000
035730cf12c43f59b76d9809e444b9070c3e5732
/BOJ_16197.py
8b217b46d4491a74e861471fd3f2c11ac628f378
[]
no_license
kimhaggie/Coding_practice
e18153838425874b80a683094369a6dfb8836c93
a4f2732e5d7a63adae990226073333b88324765a
refs/heads/master
2023-08-01T11:33:54.071564
2021-09-07T14:40:56
2021-09-07T14:40:56
310,264,349
1
0
null
null
null
null
UTF-8
Python
false
false
3,333
py
#16197 import sys from collections import deque import math dx = [1,-1,0,0] dy = [0,0,1,-1] def move(direction,ball1,ball2,m): N=len(m) M=len(m[0]) if direction==0:#오른쪽 y1,x1 = ball1[0],ball1[1]+1 y2,x2 = ball2[0],ball2[1]+1 flag1=False flag2=False if not(...
[ "kimhaggie@gmail.com" ]
kimhaggie@gmail.com
3f2d538e2a917016702fee2504b2099156eb05df
eeeb3e85de712e71417630035417e6cf0d3a1da4
/LSTM-GRU/gen-queries.py
df92915b1371e5e6b9078642d04d5215b7a98769
[]
no_license
VNGResearch/RNN---QA
21029647940cac97d628b8d5a25ae68dcbd226b7
dc54c5d99e2a56cc981d53d89e0fcdaf6804dba9
refs/heads/master
2020-04-05T10:39:58.896752
2017-07-21T01:27:24
2017-07-21T01:27:24
81,531,473
0
0
null
null
null
null
UTF-8
Python
false
false
776
py
from argparse import ArgumentParser import json import numpy as np parser = ArgumentParser() parser.add_argument('-l', '--length', help='The number of generated queries. Defaults to 100', dest='len', default=100, type=int) parser.add_argument('-o', help='The output file. Defaults to queries.txt', ...
[ "phan.ngoclan58@gmail.com" ]
phan.ngoclan58@gmail.com
462cf61c1760e9be0261bc1c37b152eabaa6e850
a66460a46611483dfbdc94c7996893f427e60d97
/ansible/my_env/lib/python2.7/site-packages/ansible/module_utils/network/onyx/onyx.py
ad667e74dfd188880633b7c22c46ebaf4554c496
[ "MIT" ]
permissive
otus-devops-2019-02/yyashkin_infra
06b57807dde26f94f501828c07503d6bf1d70816
0cd0c003884155ac922e3e301305ac202de7028c
refs/heads/master
2020-04-29T02:42:22.056724
2019-05-15T16:24:35
2019-05-15T16:24:35
175,780,718
0
0
MIT
2019-05-15T16:24:36
2019-03-15T08:37:35
HCL
UTF-8
Python
false
false
6,984
py
# -*- coding: utf-8 -*- # # (c) 2017, Ansible by Red Hat, inc # # This file is part of Ansible by Red Hat # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at y...
[ "theyashkins@gmail.com" ]
theyashkins@gmail.com
419490d9be79e02a31e8b3e89e0ac816c5f69f66
58141d7fc37854efad4ad64c74891a12908192ed
/setup/delete_queue.py
8061e4d967956926ae2cb113935d91110889b166
[]
no_license
stanleylio/fishie
b028a93b2093f59a8ceee4f78b55a91bb1f69506
0685045c07e4105934d713a0fd58c4bc28821ed6
refs/heads/master
2022-08-14T13:08:55.548830
2022-07-29T01:32:28
2022-07-29T01:32:28
30,433,819
8
1
null
null
null
null
UTF-8
Python
false
false
578
py
import sys,pika,argparse from os.path import expanduser sys.path.append(expanduser('~')) from cred import cred parser = argparse.ArgumentParser(description='') parser.add_argument('queue_name',metavar='daq',type=str, help='name of queue to be deleted') args = parser.parse_args() print(args.queue_n...
[ "stanleylio@gmail.com" ]
stanleylio@gmail.com
23f114695e9b28063697275cac18aad4d1d253a4
c0681769775e760d9ecf10e5803a26046bc7f45c
/Doctor/migrations/0011_remove_session_doctor.py
d7fa30395af0b3f7e22b3f7c8e70efc8a8d6ad5d
[]
no_license
enasmohmed/DoctorAPI
34545ea4c36308363d358a493356271ac9a316ba
2179f691243f418a48bc1d12d1a1dba7779dbcc2
refs/heads/main
2023-02-14T17:40:28.787673
2021-01-14T01:16:18
2021-01-14T01:16:18
329,144,825
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
# Generated by Django 3.1.5 on 2021-01-13 23:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Doctor', '0010_auto_20210113_2318'), ] operations = [ migrations.RemoveField( model_name='session', name='doctor', )...
[ "enasm2477@gmail.com" ]
enasm2477@gmail.com
22fac5fbea4918dcebbfee98f0d3cea8e13e2d5b
a54007706a09b387690f79fd7ffd889decad42f1
/day04/code/20_默认参数易错点.py
9a0ab1a389c3755a35c8877d74e819a5746b3dac
[]
no_license
lvah/201903python
d425534544a1f91e5b80b5ff0de5ca34037fe6e9
1415fcb7697dfa2884d94dcd8963477e12fe0624
refs/heads/master
2020-07-06T16:45:37.882819
2019-09-08T10:13:07
2019-09-08T10:13:07
203,082,401
5
0
null
null
null
null
UTF-8
Python
false
false
415
py
# 一定要注意: 默认参数的默认值一定是不可变参数; def listOperator(li=None): """ 对于原有的列表后面追加元素‘End’ :return: """ if li is None: # is, == li = [] li.append('End') return li # print(listOperator([1, 2, 3])) # print(listOperator([])) # print(listOperator([])) print(listOperator()) print(listOperator()) ...
[ "root@foundation0.ilt.example.com" ]
root@foundation0.ilt.example.com
d10c2dba1cb876d1b31f3b6cb6ede0f7fa374b75
e2c5dd7020b0613852bf16606d6de48159f56a7e
/ensemble/test/test_gbdt.py
ee73d36ba89bb65b78540a47b1a1c3e847d0603c
[]
no_license
bannima/MachineLearninginAction
7830cb6bcda43e62e937b86198e4e5bbeef28275
872a24e25f8ef7768b2f8b37c9d1ab39504f0c33
refs/heads/master
2021-08-08T08:15:43.403854
2021-07-25T09:37:37
2021-07-25T09:37:37
238,710,052
23
5
null
null
null
null
UTF-8
Python
false
false
907
py
#!/usr/bin/env python # -*- coding:utf-8 -*- """ FileName: test_gbdt.py Description: Author: Barry Chow Date: 2020/3/3 4:15 PM Version: 0.1 """ from numpy import * from sklearn.datasets import load_iris from ensemble import GradientBoostingClassifier from ensemble import GradientBoostingRegressor from utils import a...
[ "zhouenguo@163.com" ]
zhouenguo@163.com
829f59b5185126d6c05e5124829bd71de947201b
b661499ebc0d9102c6516cdb1fc9902858fc1a50
/src/core/parametrisable.py
184af0a2c7c2262cbc75b7f1c6cf6ee6a05b594c
[]
no_license
wesselb/cgpcm
5469239fd912f8d3a72ab1202a913ebaa3098960
d96263f6ad338759aadb178cf1b24bcbf0a738c5
refs/heads/master
2021-01-20T14:34:16.489945
2017-04-26T03:44:03
2017-04-26T03:44:03
82,757,924
1
0
null
null
null
null
UTF-8
Python
false
false
749
py
class Parametrisable(object): """ Class where keywords given to the constructor become attributes. Required parameters can be specified through overriding `_required_pars`. """ _required_pars = [] def __init__(self, **pars): # Verify that all required parameters are specified i...
[ "wessel.p.bruinsma@gmail.com" ]
wessel.p.bruinsma@gmail.com
54abfd415e752c13460f79a21713413b9ab14fcc
abc89af3d78537266421803072727561111a9b2f
/rename.py
9d4fab667a2c8f11f4e56f3abebe0b0414e633d6
[]
no_license
Iverance/leetcode
41b34ff847d77dfa84a0f8f656889b9d4bf125d7
0127190b27862ec7e7f4f2fcce5ce958d480cdac
refs/heads/master
2021-01-22T02:28:39.498315
2017-12-23T01:36:51
2017-12-23T01:36:51
102,247,395
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
import os for filename in os.listdir("."): if filename[0] in '0123456789': if '.' in filename[:2]: #print('00'+filename) os.rename(filename, '00'+filename) elif '.' in filename[:3]: #print('0'+filename) os.rename(filename, '0'+filename)
[ "jeremhh@gmail.com" ]
jeremhh@gmail.com
6bedc9f9b3637f1ae471d084de0b925ba9c41d68
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/dockerized-gists/35c3d539cd5a30aaf580/snippet.py
0cd09dc0b9c464eea7925d4248aad941e0a53623
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
2,720
py
# this is how to highlight code for powerpoint: `pbpaste | highlight --syntax=py -O rtf | pbcopy` # api_jsonify() from decimal import Decimal from uuid import UUID from datetime import datetime from flask import Response from json import JSONEncoder, dumps class JsonApiEncoder(JSONEncoder): def default(self, o): ...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
52512e9d370a51bcf092d65fc589ab94b7004799
51036d0ef641fc455eb643e3a6b942136b20e697
/rdmo/conditions/tests/test_commands.py
a41483e4986a3d63a27ed948f34598a93c75d051
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
ItsNotYou/rdmo
43ab02a340ae6c6f50e19cd728f5c1311117abfc
eba2056b376107e817a4080fc12245095a907429
refs/heads/master
2022-12-02T04:18:48.117562
2020-08-16T10:13:11
2020-08-16T10:13:11
287,918,765
0
0
Apache-2.0
2020-08-16T10:10:19
2020-08-16T10:10:18
null
UTF-8
Python
false
false
374
py
import io import os from django.core.management import call_command def test_import(db, settings): xml_file = os.path.join(settings.BASE_DIR, 'xml', 'conditions.xml') stdout, stderr = io.StringIO(), io.StringIO() call_command('import', xml_file, '--user=user', stdout=stdout, stderr=stderr) assert n...
[ "mail@jochenklar.de" ]
mail@jochenklar.de
67c201f4428c123d2ed9ddac81f5d2a0ab16168b
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2791/60688/288720.py
fc2b23ce74d5ae4260c05243b1fa88e6f9d45963
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
306
py
times=int(input()) numslist=input().split(" ") numslist=list(int(a) for a in numslist) first=0 second="" for i in range(0,times): if(numslist[i]==1): first=first+1 if(i!=0): second=second+str(numslist[i-1])+" " second=second+str(numslist[times-1]) print(first) print(second)
[ "1069583789@qq.com" ]
1069583789@qq.com
667a48100b02d4fc5b11046794c639f95c081a88
78537ca73fd61c5d8fd6cbb326d4ba95eadc7219
/CircuitPython_on_Linux_and_Raspberry_Pi/PWM_motor_servo_control.py
06f9a6ad4a2b9e7e04c7ee055bc8db5a116658ed
[ "MIT" ]
permissive
FoamyGuy/Adafruit_Learning_System_Guides
a31f7c5ef49125ad25e5bdc4d0e50aa43513ce82
6cb04635ce47d2292a2ea09d196fbffdad534168
refs/heads/master
2023-08-16T21:34:30.856046
2020-11-10T00:51:16
2020-11-10T00:51:16
254,224,051
1
0
MIT
2020-11-10T00:51:18
2020-04-08T23:32:18
C
UTF-8
Python
false
false
498
py
import time import board import pulseio from adafruit_motor import servo # create a PWMOut object on Pin D5. pwm = pulseio.PWMOut(board.D5, duty_cycle=2 ** 15, frequency=50) # Create a servo object. servo = servo.Servo(pwm) while True: for angle in range(0, 180, 5): # 0 - 180 degrees, 5 degrees at a time. ...
[ "kattni@adafruit.com" ]
kattni@adafruit.com
51c0bc39cdee200e82b120630c333d4307f1c756
61efd764ae4586b6b2ee5e6e2c255079e2b01cfc
/azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/virtual_network_peering.py
610944b9edf6986e9ce86ed411f1f8f342ddc79b
[ "MIT" ]
permissive
AutorestCI/azure-sdk-for-python
a3642f53b5bf79d1dbb77851ec56f4cc0c5b3b61
60b0726619ce9d7baca41f6cd38f741d74c4e54a
refs/heads/master
2021-01-21T02:23:59.207091
2018-01-31T21:31:27
2018-01-31T21:31:27
55,251,306
4
3
null
2017-11-13T17:57:46
2016-04-01T17:48:48
Python
UTF-8
Python
false
false
4,677
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 ...
[ "laurent.mazuel@gmail.com" ]
laurent.mazuel@gmail.com
b1b45fa60f7e0e003895684d3f195f184d53d6c8
aa1972e6978d5f983c48578bdf3b51e311cb4396
/nitro-python-1.0/nssrc/com/citrix/netscaler/nitro/resource/config/aaa/aaapreauthenticationpolicy_vpnvserver_binding.py
9d1d503c57d03e7c475d01047f132fe13a288def
[ "Python-2.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
MayankTahil/nitro-ide
3d7ddfd13ff6510d6709bdeaef37c187b9f22f38
50054929214a35a7bb19ed10c4905fffa37c3451
refs/heads/master
2020-12-03T02:27:03.672953
2017-07-05T18:09:09
2017-07-05T18:09:09
95,933,896
2
5
null
2017-07-05T16:51:29
2017-07-01T01:03:20
HTML
UTF-8
Python
false
false
5,608
py
# # Copyright (c) 2008-2016 Citrix Systems, Inc. # # 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 l...
[ "Mayank@Mandelbrot.local" ]
Mayank@Mandelbrot.local
54c6a7f4607a6c69890642eb976d35540a9e23ec
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=2.0_rd=0.5_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=74/sched.py
cc5e0ffd8b66aec58cf680cf03fc01953f535a07
[]
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
210
py
-X FMLP -Q 0 -L 3 116 400 -X FMLP -Q 0 -L 3 59 300 -X FMLP -Q 1 -L 2 49 300 -X FMLP -Q 1 -L 2 44 250 -X FMLP -Q 2 -L 2 44 250 -X FMLP -Q 3 -L 2 37 150 37 175 27 175 23 175 22 175 18 175 4 175
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
8188758945628ec846274bd177af33c4087ef8a3
d7ad696cd1b550bb41d20f87b83c984ec7f19aa7
/atcoder/python/_old/beginner/contest/201_300/212/b_Weak_Password.py
98882642828e1ac3790b880ab5ca4f94c7213b6a
[]
no_license
mida-hub/hobby
2947d10da7964d945e63d57b549c1dcb90ef7305
6e6f381e59fc2b0429fab36474d867aa3855af77
refs/heads/master
2022-12-21T23:33:14.857931
2022-12-19T16:30:34
2022-12-19T16:30:34
147,890,434
0
0
null
2021-03-20T04:31:58
2018-09-08T01:31:59
Jupyter Notebook
UTF-8
Python
false
false
236
py
x = input() x1, x2, x3, x4 = map(int, list(x)) # print(x1, x2, x3, x4) if x1 == x2 == x3 == x4: print('Weak') elif x4 == (x3+1)%10 and \ x3 == (x2+1)%10 and \ x2 == (x1+1)%10: print('Weak') else: print('Strong')
[ "rusuden0106@gmail.com" ]
rusuden0106@gmail.com