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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7863d8927d006aaf6bb1f2450af7fe6550ab070 | e34d4bf879910b8f41068c1efb90915897e53d53 | /system_design_ladder/GeoHashII.py | b15bec1dd5ca21a631b684b5a96092a0772cec5f | [] | no_license | ZhouningMan/LeetCodePython | 6cfc30f0b76f6162502410fef5639fde4801bd74 | cad9585c440efb329c9321648f94c58ded198438 | refs/heads/master | 2020-12-10T03:53:48.824344 | 2020-01-13T02:29:02 | 2020-01-13T02:29:02 | 233,494,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | class GeoHash:
BASE32 = "0123456789bcdefghjkmnpqrstuvwxyz"
"""
@param: geohash: geohash a base32 string
@return: latitude and longitude a location coordinate pair
"""
def decode(self, geohash):
binary = self._to_bin(geohash)
lon_bin = [binary[i] for i in range(0, len(binary), 2)... | [
"linfenglee321@gmail.com"
] | linfenglee321@gmail.com |
f6b693f1370e3d80c736a6b08d507d671d4a8bc5 | 008c065391d766fec2f2af252dd8a5e9bf5cb815 | /Even Matrix.py | 7e545a6a78adeb1c5ec75a406ef4644cbe57e481 | [] | 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 | 890 | py | t = int(input())
for _ in range(t):
n = int(input())
arr = [[0 for i in range(n)] for j in range(n)]
sr = 0
er = n
sc = 0
ec = n
z = 0
num = 1
if n % 2 == 0:
x = n // 2
else:
x = 1 + (n // 2)
while z != x:
j = sc
while j < ec:
arr[s... | [
"rahulbhl22@gmail.com"
] | rahulbhl22@gmail.com |
30afeecf7a442f626392bcc9b54728254bb8a8be | 60d5ea4f007d49768d250ef394003f554003e4d0 | /python/Linked List/142.Linked List Cycle II.py | dec51f534aabccb931d8e8932d39d11aac643c6f | [] | no_license | EvanJamesMG/Leetcode | dd7771beb119ea1250dbb3b147a09053298cd63b | fa638c7fda3802e9f4e0751a2c4c084edf09a441 | refs/heads/master | 2021-01-10T17:11:10.896393 | 2017-12-01T16:04:44 | 2017-12-01T16:04:44 | 46,968,756 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | # coding=utf-8
'''
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Note: Do not modify the linked list.
'''
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
'''
使用快慢指针。若链表存在环,两指... | [
"Evan123mg@gmail.com"
] | Evan123mg@gmail.com |
6f54f5939a8fda03c24dfa9d9dbe33c08f498424 | 096ccaca86872b03a137edf58221413073d770cb | /helpers/24_web_apis_sources.py | 0a219f85661a944bd17fb1db67075e5cf05ea372 | [] | no_license | DH-heima/webscrapping | f142962b50deed2628052dd7a48098a4afbcbada | 1dc8f81f45db0d4366391c3052c5ab36f4d4bc5d | refs/heads/master | 2022-02-02T23:26:22.520064 | 2019-06-13T13:38:10 | 2019-06-13T13:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,587 | py | import os
# from ers import shops, COLLECTION_DATE, web_apis_traffic_sources_csv, web_apis_traffic_sources_aggregates_csv
import os.path as op
import numpy as np
import pandas as pd
BASE_DIR = "/code/mhers"
WAVE_NUMBER = 8
shops = pd.read_excel(op.join(BASE_DIR, "ressources/ERS-referential-shops.xlsx"), index_col=No... | [
"pierre.chevalier@epitech.eu"
] | pierre.chevalier@epitech.eu |
f7e2098e769e91b1838c62aee43d87264b9aa9cb | 052d6ac57f2026aba22249368149b18027c78342 | /frontstage_api/resources/register/confirm_organisation_survey.py | 6331b7150306a3ab3887cebaf9c1d5eb733780ca | [
"MIT"
] | permissive | ONSdigital/ras-frontstage-api | c34b41185cc825b49262c1879ad559778a54dbfc | 7bb32a85868e2a241b8a0331b884155a36450669 | refs/heads/master | 2018-07-15T00:35:22.130352 | 2018-06-01T14:09:13 | 2018-06-01T14:09:13 | 105,001,932 | 2 | 1 | MIT | 2018-06-01T14:09:14 | 2017-09-27T09:54:26 | Python | UTF-8 | Python | false | false | 1,917 | py | import logging
from flask import jsonify, make_response, request
from flask_restplus import Resource, fields
from structlog import wrap_logger
from frontstage_api import auth, register_api
from frontstage_api.controllers import case_controller, collection_exercise_controller, iac_controller, party_controller, survey_... | [
"noreply@github.com"
] | ONSdigital.noreply@github.com |
6dd47cf9abf6588f76b33b1300c80b06fe34f86b | 304e75224229786ba64c6ef2124007c305019b23 | /src/easy/test_build_array_from_permutation.py | 8fd8efbd03f279c3c5d2f1ed987d934e5687eadc | [] | no_license | Takuma-Ikeda/other-LeetCode | 9179a8100e07d56138fd3f3f626951195e285da2 | 499616d07011bee730b9967e9861e341e62d606d | refs/heads/master | 2023-04-14T06:09:35.341039 | 2023-04-10T02:29:18 | 2023-04-10T02:29:18 | 226,260,312 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | import unittest
from answer.build_array_from_permutation import Solution
class TestSolution(unittest.TestCase):
def setUp(self):
self.nums = [
[0, 2, 1, 5, 3, 4],
[5, 0, 1, 2, 3, 4],
]
self.answers = [
[0, 1, 2, 4, 5, 3],
[4, 5, 0, 1, 2, 3],... | [
"el.programdear@gmail.com"
] | el.programdear@gmail.com |
d8cb4d738e3fca2d4ddb17040fa4fe5a789e0334 | 63e2bed7329c79bf67279f9071194c9cba88a82c | /SevOneApi/python-client/test/test_flow_falcon_visualization.py | 51a57732e471078c158cccc29b73d4aae5586ecf | [] | no_license | jsthomason/LearningPython | 12422b969dbef89578ed326852dd65f65ab77496 | 2f71223250b6a198f2736bcb1b8681c51aa12c03 | refs/heads/master | 2021-01-21T01:05:46.208994 | 2019-06-27T13:40:37 | 2019-06-27T13:40:37 | 63,447,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | # coding: utf-8
"""
SevOne API Documentation
Supported endpoints by the new RESTful API # noqa: E501
OpenAPI spec version: 2.1.18, Hash: db562e6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
... | [
"johnsthomason@gmail.com"
] | johnsthomason@gmail.com |
652e8c01463ca031788666db93024bbc761ec75d | 14856ffe01c711af7a41af0b1abf0378ba4ffde6 | /Python/Fundamentals/Fun_with_Functions.py | 4db600213841d74d4382c1514cc6f369abdc29a8 | [] | no_license | sharonanchel/coding-dojo | 9a8db24eec17b0ae0c220592e6864510297371c3 | d6c4a7efd0804353b27a49e16255984c4f4b7f2a | refs/heads/master | 2021-05-05T18:17:48.101853 | 2017-06-23T23:53:51 | 2017-06-23T23:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Odd/Even
def odd_even():
for i in range(1,2001):
if i%2 == 0:
type = 'even'
else:
type = 'odd'
print 'Number is',i, 'This is an',type,'number.'
odd_even()
# Multiply
def multiply(arr, num):
for i in range(0,len(arr)):
arr[i] *= num
return arr
print multiply([2,4,10,16],5)
# Hacker Challenge
def l... | [
"jao.colin@gmail.com"
] | jao.colin@gmail.com |
b0a496a2adad7d4299f3c94ceb3f5651a373a629 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/manage.py | 436b9b54ecb5b87023cfad764e11bb94a803445a | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('manage', __name__, url_prefix='/manage')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('republi... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
79c1cfdd225efbe367313be720d75fd7941a44b2 | 4eebce0d0c1132aed8227325bd58faf61a4010c7 | /CONTEXT_178/d2.py | 7a83e4ac92f0948ab14911f4a674624665be9101 | [] | no_license | xu1718191411/AT_CODE_BEGINNER_SELECTION | 05836cfcc63dab2a0a82166c8f4c43c82b72686b | e4e412733d1a632ce6c33c739064fe036367899e | refs/heads/master | 2021-07-17T00:59:46.315645 | 2020-09-22T06:14:27 | 2020-09-22T06:14:27 | 214,153,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | def calculate(n):
arr = [0 for i in range(2000 + 1)]
arr[3] = 1
arr[4] = 1
arr[5] = 1
for i in range(6, n + 1):
arr[i] = (arr[i - 2] + arr[i - 3] + arr[i - 4]) % (1000000000 + 7)
print(arr[n])
calculate(int(input())) | [
"xu1718191411@gmail.com"
] | xu1718191411@gmail.com |
1d04d3d4f51fb6e30bcbf047d655a4f3121f14ce | 73dc6b3fdb07592f10b8e02b7ca053deb61a2dc9 | /msof_api/comments/admin.py | 4e3be735e10ca856e607a6d04ccf86bad757bf99 | [] | no_license | likelion-kookmin/msof_api | 4143c09f93b68d219aa20de3bd57ec544c2bdf32 | f9fec7d31ebdb465a8935711da715db6d87c0fce | refs/heads/develop | 2023-06-28T15:35:45.240871 | 2021-07-31T16:38:35 | 2021-07-31T16:38:35 | 347,298,658 | 3 | 1 | null | 2021-07-31T16:38:36 | 2021-03-13T07:02:56 | Python | UTF-8 | Python | false | false | 784 | py | """# comments admin
- CommentAdmin
"""
from django.contrib import admin
from .models import Comment
@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
"""## CommentAdmin
- admin에서 관리할 Comment 모델 설정
"""
list_display = [
'author',
'question',
'parent',
'... | [
"singun11@kookmin.ac.kr"
] | singun11@kookmin.ac.kr |
b089edef3519feb7f892bdd66d7ebb57fe321c27 | d214b72b3ae340d288c683afe356de6846a9b09d | /动态规划/最大矩形_85.py | d5fa9f35ee7dab90956eab9b4c2c0e9f34d1993c | [] | no_license | Xiaoctw/LeetCode1_python | 540af6402e82b3221dad8648bbdcce44954a9832 | b2228230c90d7c91b0a40399fa631520c290b61d | refs/heads/master | 2021-08-29T15:02:37.786181 | 2021-08-22T11:12:07 | 2021-08-22T11:12:07 | 168,444,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | from typing import *
class Solution:
def maximalRectangle(self, matrix: List[List[str]]) -> int:
m, n = len(matrix), len(matrix[0])
num_up = [[0] * n for _ in range(m)]
for i in range(n):
if matrix[0][i] == '1':
num_up[0][i] = 1
for i in range(1, m):
... | [
"m18846183092@163.com"
] | m18846183092@163.com |
19907e7cb61cd025d174242e51357e774a777801 | d257ddf7e6959d0989d76080a8a048e82393657f | /002_TemplateMatching/002_template_match_implemented.py | 112464bcd0690858ab97442b59d77b3d552eca7f | [
"MIT"
] | permissive | remichartier/027_selfDrivingCarND_ObjectDetectionExercises | d210f37b7baf306dd034c09f62e125b263f8270d | ccd853c975d35df5f31e1a445a1a8757b8bd13f5 | refs/heads/main | 2023-04-17T08:09:55.465143 | 2021-05-03T07:11:16 | 2021-05-03T07:11:16 | 362,013,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | import numpy as np
import cv2
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
image = mpimg.imread('bbox-example-image.jpg')
#image = mpimg.imread('temp-matching-example-2.jpg')
templist = ['cutout1.jpg', 'cutout2.jpg', 'cutout3.jpg',
'cutout4.jpg', 'cutout5.jpg', 'cutout6.jpg']
# Here is... | [
"remipr.chartier@gmail.com"
] | remipr.chartier@gmail.com |
76958178b7438bb05a58d4bf3edd04bf9ee28403 | cc212540f928a95fa56f4679e3eb58e2ad329ca5 | /annpy/training/trainer.py | c93d497850a77427e0a1ba0888254a24da4a10e7 | [
"LicenseRef-scancode-mit-taylor-variant",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | nirvguy/annpy | ec05e07316bddd4bc5fbbd3d9e73ec94dc52a4b9 | ea5f92048173d0ebd1ad134cf626fa623569905e | refs/heads/master | 2018-06-03T06:11:21.911758 | 2018-05-30T16:16:46 | 2018-05-30T16:16:48 | 118,555,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | # See LICENSE file for copyright and license details.
import torch
class Trainer(object):
def __init__(self, learning_rule):
self._learning_rule = learning_rule
self._epoch = 0
self._hooks = []
self._remaining_epochs = 0
@property
def epoch(self):
return self._epoch... | [
"nirvguy@gmail.com"
] | nirvguy@gmail.com |
f841e9e9170838ca8c2972ca807eedb0e4ecd954 | e905abd9bb7bd7017657d0a0c4d724d16e37044c | /.history/article/settings_20210208181317.py | 5959719e37fa4bb9dcbc2f1420a4a206f030284f | [] | no_license | tabdelbari/articles | a8b921841f84fb473f5ed1cdcda743863e6bc246 | f0e1dfdc9e818e43095933139b6379a232647898 | refs/heads/main | 2023-03-05T10:21:35.565767 | 2021-02-10T13:35:14 | 2021-02-10T13:35:14 | 325,654,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | # -*- coding: utf-8 -*-
# Scrapy settings for article project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/top... | [
"abdelbari1996@hotmail.com"
] | abdelbari1996@hotmail.com |
c42d909697d0db5a72ae51a3c5d635841a1787f8 | a8fca7b6bc1f0eeaba12b682a81d880dc71cc929 | /FlaskEndpoint/tests/system/test_home.py | 38225c4925d80136cac8cbc7e3a04b5a0ac7ca4e | [] | no_license | sineczek/Automated-Software-Testing-with-Python | cb74d8714ad5b2ec9a6ffc013a400f0181f8095b | 2e7c4ff4bb5acfd53afb43a4bfa7191eb58a899c | refs/heads/main | 2023-04-14T08:15:53.917614 | 2021-04-24T17:18:23 | 2021-04-24T17:18:23 | 345,342,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from tests.system.base_test import BaseTest
import json
class TestHome(BaseTest):
def test_home(self):
with self.app() as c:
resp = c.get('/')
self.assertEqual(
resp.status_code, 200
)
self.assertEqual(
json.loads(resp.get_dat... | [
"michalzaitz@gmail.com"
] | michalzaitz@gmail.com |
d8a49d368a82b0008bacdd568c57aa745bde3133 | d86ed2c37a55b4a3118131a04f9a68dbd3b51a7f | /sherpatest/lev3fft-bar.py | 384437c626b0fbb39addb9d1c5274f6e57b5fd62 | [] | no_license | hamogu/sherpa-test-data | f745cc907c2535a721d46472b33f7281bd6e6711 | 77d9fc563875c59a4acff2960d46180ee7a8ec14 | refs/heads/master | 2023-06-18T22:30:44.947033 | 2020-08-03T12:07:13 | 2020-08-03T12:07:13 | 275,202,255 | 0 | 0 | null | 2020-06-26T16:38:19 | 2020-06-26T16:38:19 | null | UTF-8 | Python | false | false | 1,244 | py | #!/usr/bin/env python
from sherpa.astro.ui import *
image_file = "acisf07999_000N001_r0035_regevt3_srcimg.fits"
psf_file = "acisf07999_000N001_r0035b_psf3.fits"
reg_file = "ellipse(3145.8947368421,4520.7894736842,37.0615234375,15.3881587982,92.2273254395)"
srcid = 1
load_data(srcid, image_file)
load_psf("psf%i" % sr... | [
"olaurino@cfa.harvard.edu"
] | olaurino@cfa.harvard.edu |
77c55d04b0a750c8b0c0dc571cf5927a6d78e179 | 356f3f1b7caf0ccb20cc830d40821dfb2cbda046 | /sfit/sfit/doctype/items/items.py | c1943c13dec9e21c63e99267eb3e87e7de102726 | [
"MIT"
] | permissive | vignesharumainayagam/sfit | f4b75b9a8b2de08d0eaa4eadbcd3d5e432ffba56 | a96afbf35b0e1635e44cb5f83d7f86c83abedb8f | refs/heads/master | 2021-09-05T18:22:43.494208 | 2018-01-30T07:23:02 | 2018-01-30T07:23:02 | 104,332,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Valiant Systems and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Items(Document):
pass
| [
"vigneshwaran@valiantsystems.com"
] | vigneshwaran@valiantsystems.com |
8f885274db507628a34e8f8f094526a25c935972 | cc9d1aeb8aefe3d4f86c94b4279a64e70bf5fd80 | /setup.py | be0365371238e8e2c7a86eb0bd4aa3c81f749446 | [
"MIT"
] | permissive | sdelquin/sendgrify | a520a2da7d6c6d7c4707c325f6d67523e53803eb | fe8ee1d0efd0c8d8034d1c57cfc07672f77d7e8e | refs/heads/main | 2023-06-11T15:49:27.284693 | 2023-05-28T12:54:34 | 2023-05-28T12:54:34 | 342,843,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # read the contents of your README file
from pathlib import Path
from setuptools import setup
this_directory = Path(__file__).parent
long_description = (this_directory / 'README.md').read_text()
REQUIREMENTS = (
'sendgrid==5.3.0',
'markdown',
)
setup(
name='sendgrify',
version='2.0.3',
url='http... | [
"sdelquin@gmail.com"
] | sdelquin@gmail.com |
39d7269798832e93cc7391c6516b8df87b50ca36 | 59c0669a38c4178f2f5cf8f9dca7553849c286a2 | /MyPro/pythonScript/QRCodeDetect/Invoice/hough_tansform_bad.py | 437f292bb460649c54b3fb981f99722309b81288 | [] | no_license | AUGUSTRUSH8/ImageProcess | f33ceaabaac67436df47fd1e1f115a8f44a6f556 | 46fc85b61dab52c3876dfacb4dfd22c962dc13bf | refs/heads/master | 2023-04-27T21:39:36.044320 | 2022-07-04T14:59:35 | 2022-07-04T14:59:35 | 174,789,186 | 31 | 17 | null | 2022-07-06T20:07:14 | 2019-03-10T07:01:13 | Java | UTF-8 | Python | false | false | 4,007 | py | # -*- coding: utf-8 -*-
import cv2
import numpy as np
from matplotlib import pyplot as plt
import math
def rotate_about_center2(src, radian, scale=1.):
#入参:弧度
w = src.shape[1]
h = src.shape[0]
angle = radian * 180 / np.pi
# now calculate new image width and height
nw = (abs(np.sin(radian)*h) + ... | [
"l"
] | l |
4080d41a60b85ff5500efacfc8fa63c51b33899f | 2d1ffb862ec65116f88b0986e4f36d36110cbfe5 | /app/views.py | ced21fb3eae0537fbf78312e2c9f3eb801e59a90 | [] | no_license | stkc282/wedding | c38afc7861119b8cf4490fa35007841d58e161c7 | 1799b72820787a59d0d5b7edf7748b1ab7af9a98 | refs/heads/master | 2021-06-18T04:15:20.293547 | 2019-08-19T10:17:13 | 2019-08-19T10:17:13 | 202,826,952 | 0 | 0 | null | 2021-06-10T21:52:12 | 2019-08-17T02:48:38 | JavaScript | UTF-8 | Python | false | false | 3,288 | py | # from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
from django.views.generic import DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django_filters.views import FilterView
from .filters import ItemFilter
from .forms import ItemForm
f... | [
"you@example.com"
] | you@example.com |
e396119de92c2a9d0442f560d6abcdd894436e17 | 484f111548e9d7192a5748eb202c08802484d747 | /fw/flash.py | 8361fc57a27f60367e21952493f6068dcb8a037a | [
"Apache-2.0"
] | permissive | cmcmurrough/moteus | dafb2e5224409aaf1d57b66f58965d298845678d | 6780967ec40ad7f1ab76cdbd7021f2d07b739efe | refs/heads/main | 2023-07-11T10:29:58.645291 | 2021-08-13T13:38:32 | 2021-08-13T13:38:32 | 396,627,837 | 2 | 0 | Apache-2.0 | 2021-08-16T05:07:08 | 2021-08-16T05:07:07 | null | UTF-8 | Python | false | false | 2,193 | py | #!/usr/bin/python3
# Copyright 2021 Josh Pieper, jjp@pobox.com.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"jjp@pobox.com"
] | jjp@pobox.com |
bb6e52fee441903389167e2b4292125b69cdb8b8 | ce3964c7195de67e07818b08a43286f7ec9fec3e | /dl_poly/get_pvt.py | 6fd5f7613ff6286470a47abe111c368b60d57ff7 | [] | no_license | zhuligs/physics | 82b601c856f12817c0cfedb17394b7b6ce6b843c | 7cbac1be7904612fd65b66b34edef453aac77973 | refs/heads/master | 2021-05-28T07:39:19.822692 | 2013-06-05T04:53:08 | 2013-06-05T04:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | #!/usr/bin/env python
# Try retrieving P,V,T, etc. from the STATIS file, may be easier than from OUTPUT...
import os, sys, commands
def readlines(FILE,n):
'''Read n lines from FILE'''
for i in range(n):
FILE.readline()
try:
s = open('STATIS','r')
header1 = s.readline()
header2 = ... | [
"boates@gmail.com"
] | boates@gmail.com |
fbb7c0b773c663b598397c813719054f055a6897 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/openpyxl/worksheet/pivot.py | b1905be6298ea1c57f774cae821fbc482b8bf25b | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 4,984 | py | from __future__ import absolute_import
# Copyright (c) 2010-2015 openpyxl
from openpyxl.descriptors import (
Bool,
Integer,
String,
Set,
NoneSet,
)
from openpyxl.descriptors.serialisable import Serialisable
class PivotSelection(Serialisable):
pane = Set(values=("bottomRight", "topRight", "bo... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
40b5a7f814ed68cbc12969cb867747a1687e0e1b | ac1e60fd4bb3b7cc04e413ae394836abad8947b1 | /email_verification_api/wsgi.py | e60483842d64ef833b28dfd12be0cfe5d6bf9eba | [] | no_license | Taycode/email-verification-api | 9c48642f34671232c388a7c763541f02ff9ae614 | f3abe35a010d5b2d3d2c269fa728eb40f26630a0 | refs/heads/master | 2020-08-04T11:00:29.103892 | 2019-10-01T14:49:14 | 2019-10-01T14:49:14 | 212,114,710 | 0 | 0 | null | 2019-10-01T14:16:59 | 2019-10-01T14:16:58 | null | UTF-8 | Python | false | false | 421 | py | """
WSGI config for email_verification_api project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"tay2druh@gmail.com"
] | tay2druh@gmail.com |
490df8c8807c725fdf915ccba2ff1496bd0ac937 | 60cb975f3e0251c73c457271bce8a7b2036e422b | /studysrc/mytest/websppider/transtest.py | 23c308fa3b1c83bba1c6cd379e0c29e746a2f19d | [] | no_license | 49257620/reboot | 0a2341f23bc1a6f3ae47b59f772919228c623544 | 86b348228d1a25d78c45b0e9022d7c773544373b | refs/heads/master | 2018-11-17T19:19:58.969710 | 2018-09-25T03:15:57 | 2018-09-25T03:15:57 | 125,727,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | # encoding: utf-8
# Author: LW
import urllib.request
import urllib.parse
import time
import random
import hashlib
content = 'what fuck'
url = 'http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule'
data = {}
'''
1523493384696
1523493371204
351ac046404e1bbcb9442615f964a96d
cb2731255a15489013919b3788953b... | [
"49257620@qq.com"
] | 49257620@qq.com |
08273d87152e339e41af2407ff4bbad8cc28e79c | f2b91692a434ee79ff5d68ed3111d60d90315f00 | /src/command_modules/azure-cli-servicebus/azure/cli/command_modules/servicebus/_validators.py | 6a4509e9f662b17fe8494f89fce3441aa9719205 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cal5barton/azure-cli | f883bc7d481b163d4c4af1fa154a990182e5de80 | 6ebc6f810f32b8fce30a360633a70fcfdea15e7b | refs/heads/dev | 2023-05-24T18:12:36.151238 | 2018-07-12T16:16:29 | 2018-07-12T16:16:29 | 140,749,210 | 0 | 0 | MIT | 2023-05-15T18:58:31 | 2018-07-12T18:13:18 | Python | UTF-8 | Python | false | false | 4,322 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"tjprescott@users.noreply.github.com"
] | tjprescott@users.noreply.github.com |
9ec5875503577bf114e6521a6174ca229c968b95 | c1e0874f55d05ee990ed2d637c2910701b32d246 | /soft_uni_OOP/Defining Classes/lab/scope_mess_3.py | 03d81f4774c92bdc435a7583da245e72d79f8461 | [] | no_license | borislavstoychev/Soft_Uni | 5d047bef402c50215e0abc825476326889ffd0be | ccc0b2fb18f8ad6809b475eb20e82a9e4eb4b0b0 | refs/heads/master | 2023-05-11T12:27:08.672058 | 2021-05-28T18:00:10 | 2021-05-28T18:00:10 | 277,556,731 | 3 | 2 | null | 2021-02-11T19:57:37 | 2020-07-06T13:58:23 | Python | UTF-8 | Python | false | false | 311 | py | x = "global"
def outer():
x = "local"
def inner():
nonlocal x
x = "nonlocal"
print("inner:", x)
def change_global():
global x
x = "global: changed!"
print("outer:", x)
inner()
print("outer:", x)
change_global()
print(x)
outer()
print(x) | [
"stoy4ew@gmail.com"
] | stoy4ew@gmail.com |
4d641b7b452b7e43378724205d8c5690b44cd11a | 5b9c50baaa3182868c9f4a744a7361abe422a510 | /tests/test_base.py | f7f5133f7951074f1287e3257df0b73b129805e8 | [
"MIT"
] | permissive | jasontangxf/geometer | 3307889c087a1f498d58b5ae6bbf1b037119ca46 | 931df0aff6c680ad13a6c5989f2a89c276370c5e | refs/heads/master | 2023-01-06T17:39:41.837342 | 2020-11-07T15:42:10 | 2020-11-07T15:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,251 | py | import numpy as np
from geometer.base import TensorDiagram, Tensor, TensorCollection, LeviCivitaTensor, KroneckerDelta
class TestTensor:
def test_arithmetic(self):
a = Tensor(2, 3)
b = Tensor(5, 4)
# vector operations
assert a + b == Tensor(7, 7)
assert a - b == Tensor(-3... | [
"jan.rv@t-online.de"
] | jan.rv@t-online.de |
4c10f5dbe66a1ecd6b2cb0e0d1cb6a3481ac2ca0 | 1b94c7cfd66804fe8d40b5def35e4b9b18d69ba2 | /old_py2/controllers/apiai_controller.py | dfff3930d0c210a7d0d4eb8c2af95d15d9d7e374 | [
"MIT"
] | permissive | the-blue-alliance/the-blue-alliance | 3dc210a9611ce9b240907ffd420f78040318dcdc | 6d42f3cdb2f785d192f2871419e58aaae3445029 | refs/heads/py3 | 2023-08-22T21:02:36.398100 | 2023-08-22T19:14:01 | 2023-08-22T19:14:01 | 888,427 | 344 | 263 | MIT | 2023-09-14T18:35:20 | 2010-09-04T20:34:11 | HTML | UTF-8 | Python | false | false | 635 | py | import json
from base_controller import LoggedInHandler
from helpers.apiai_helper import APIAIHelper
from models.sitevar import Sitevar
class APIAIHandler(LoggedInHandler):
def __init__(self, *args, **kw):
super(APIAIHandler, self).__init__(*args, **kw)
def post(self):
if self.request.headers... | [
"noreply@github.com"
] | the-blue-alliance.noreply@github.com |
d716a64d25d8ed53904876bd54c1a98a7b88deb5 | 9dab41a71bf19a9ad17ee3e9f77c0f58aebd1d6d | /python/uline/uline/uline/handlers/app/distributor/balance/distributorBalanceList.py | 4116d637e99da40fb08daa5c8fdc82a1bdbb023b | [] | no_license | apollowesley/Demo | f0ef8ec6c4ceb0aec76771da8dd9a62fb579eac8 | 471c4af95d3a7222d6933afc571a8e52e8fe4aee | refs/heads/master | 2021-02-15T04:01:51.590697 | 2018-01-29T01:44:29 | 2018-01-29T01:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | # -*- coding: utf-8 -*-
from __future__ import division
import tornado.web
import tornado.gen
from uline.handlers.baseHandlers import DtAdminHandler
from .form import DistributorBalanceList
from uline.public.constants import TO_PAY, PAY_CHANNEL
from datetime import timedelta, datetime
from uline.public.permit import ch... | [
"36821277@qq.com"
] | 36821277@qq.com |
8b37209b33d201b789d2658845aa87843ef7a8e0 | db144fdc9a1948cce066bed20912c32e1a18a8aa | /accounts/views.py | 49c0aa25bf7c13a2faa3ed61bf4acc3c6a75f458 | [] | no_license | masato932/django-blog3 | cd01101cbffdbaa33d2cb9bf696e5a5cdf8cd6fa | 769068ba356cf8e0cc0bbde76e82e116e58b8bab | refs/heads/main | 2023-05-13T20:14:43.706480 | 2021-06-05T14:03:13 | 2021-06-05T14:03:13 | 365,480,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from django.shortcuts import render, redirect
from allauth.account import views
class LoginView(views.LoginView):
template_name = 'accounts/login.html'
class LogoutView(views.LogoutView):
template_name = 'accounts/logout.html'
def post(self, *args, **kwargs):
if self.request.user.is_authenticate... | [
"masatowada66@gmail.com"
] | masatowada66@gmail.com |
b62893ee1712e3ddf4365071e6596e2d820ac5dc | cf57cd3355471f035ca429302742b4eb4baf1214 | /Comparações/SHI-TOMASI/SHI-TOMASI_sift.py | 7a91ba9cb2b4ae56f47b6d8069c64cbee54c797b | [] | no_license | RobotColony-UEFS/feature-match | c56d78230d86948e5612a9645c71a0647eb94604 | ac421989aa1ee3893243122a0cf041b30e038a28 | refs/heads/master | 2022-11-27T15:31:20.570505 | 2020-08-04T19:24:17 | 2020-08-04T19:24:17 | 285,063,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,365 | py | #coding: utf-8
import cv2
import numpy as np
import mysql.connector
import math
mydb = mysql.connector.connect(
host="localhost",
user="descritores",
passwd="12345678",
database="referencias"
)
def desvio (vetResult):
# Desvio padrão populacional
soma = float(sum(vetResult))
media = soma/len(vetResult)
r... | [
"samuelreboucas07@hotmail.com"
] | samuelreboucas07@hotmail.com |
24d38b1c79dc504b389b64276c398a8a39f2423d | d7016f69993570a1c55974582cda899ff70907ec | /sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2022_02_01_preview/aio/operations/_operations.py | 2a6e7c95997bb3ead85375c355f3241e726885e6 | [
"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 | 4,963 | 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 |
6430ad985b5c08e8f0e7f98428386d3713eb65b2 | c45c9e74ffafcceebf395cc1c5f5d31659988c19 | /answer_search.py | ff4bf3d7d7e148d57a000bb5cd58779991814eb8 | [] | no_license | tedrepo/QABasedOnMedicalKnowledgeGraph | f68ca297254218c72ef18a26c98f1910610f7154 | f690b80e2a7fb85455b45d3829b6998be9ebc739 | refs/heads/master | 2020-03-30T23:14:39.416415 | 2018-10-05T04:12:19 | 2018-10-05T04:12:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | #!/usr/bin/env python3
# coding: utf-8
# File: answer_search.py
# Author: lhy<lhy_in_blcu@126.com,https://huangyong.github.io>
# Date: 18-10-5
from py2neo import Graph,Node
class AnswerSearcher:
def __init__(self):
self.g = Graph(
host="127.0.0.1",
http_port=7474,
user=... | [
"lhy_in_blcu@126.com"
] | lhy_in_blcu@126.com |
b47c9a85013089dec45758e6489eb731972070ee | 4ece3041f2ed0cd312dc70fd3c7c240924dbb6ae | /pyathena/__init__.py | 8335fb21281d596d87e5bc8a90d091895483fde9 | [
"MIT"
] | permissive | ivssh/PyAthena | 175c5dfff0289a7ceccfe9a47ac490985535f669 | 156c51f19b46ea2f89612b3383937d78942bc990 | refs/heads/master | 2020-03-27T13:07:58.417397 | 2018-07-21T13:08:41 | 2018-07-21T13:08:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import datetime
from pyathena.error import * # noqa
__version__ = '1.3.0'
# Globals https://www.python.org/dev/peps/pep-0249/#globals
apilevel = '2.0'
threadsafety = 3
paramstyle = 'pyformat'
class DBAPITypeObj... | [
"laughingman7743@gmail.com"
] | laughingman7743@gmail.com |
2a012620dfe09c0f6c1c04320e49696991285bed | 8e6203db7383475f1c24a590f0456330b969bb4b | /optbinning/binning/distributed/plots.py | dba20f0cab79a00b42588937c020ed96d925680e | [
"Apache-2.0"
] | permissive | guillermo-navas-palencia/optbinning | 6fdfc764a214052b4d7d8e0b59114f0a63e6d5a8 | 73aee82008ebe88b732430e7c5764da57fb4d3ae | refs/heads/master | 2023-08-28T13:33:43.536143 | 2023-08-22T19:20:18 | 2023-08-22T19:20:18 | 231,076,826 | 377 | 91 | Apache-2.0 | 2023-09-05T20:14:14 | 2019-12-31T11:17:44 | Python | UTF-8 | Python | false | false | 1,370 | py | """
Binning sketch plots.
"""
# Guillermo Navas-Palencia <g.navas.palencia@gmail.com>
# Copyright (C) 2020
import matplotlib.pyplot as plt
import numpy as np
def plot_progress_divergence(df, divergence):
n = len(df)
n_add = df.n_add
n_records = df.n_records
div = df.divergence
mv_div_mean = div... | [
"g.navas.palencia@gmail.com"
] | g.navas.palencia@gmail.com |
142b4edaf5e0cb5022cd5869f8cbdf4542e77689 | a4df0ee67d0d56fc8595877470318aed20dd4511 | /vplexapi-6.2.0.3/vplexapi/models/health_state.py | 819d13f492a6fb68862c506a14264a4633267ac3 | [
"Apache-2.0"
] | permissive | QD888/python-vplex | b5a7de6766840a205583165c88480d446778e529 | e2c49faee3bfed343881c22e6595096c7f8d923d | refs/heads/main | 2022-12-26T17:11:43.625308 | 2020-10-07T09:40:04 | 2020-10-07T09:40:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,553 | py | # coding: utf-8
"""
VPlex REST API
A defnition for the next-gen VPlex API # noqa: E501
OpenAPI spec version: 0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class HealthState(object):
"""NOTE: This class is auto ... | [
"anil.degwekar@emc.com"
] | anil.degwekar@emc.com |
56b442f8b7bfc47ef533d1a9d1c90373518ecca3 | df7736726d5b041e46b490e409a1d4481ef8c7f1 | /tools/rosmaster/src/rosmaster/threadpool.py | 1261e2f5e4aa3947450c12ff477e0830735e537e | [] | no_license | strawlab/ros_comm | 62f5d2bc68d6cbe85c071eabb7487164d6c328be | 6f7ea2feeb3c890699518cb6eb3d33faa15c5306 | refs/heads/master | 2020-05-18T02:26:43.463444 | 2012-08-05T07:10:58 | 2012-08-05T07:10:58 | 5,301,610 | 13 | 31 | null | 2019-09-24T22:49:12 | 2012-08-05T07:10:44 | Python | UTF-8 | Python | false | false | 8,088 | py | # Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above... | [
"strawman@astraw.com"
] | strawman@astraw.com |
05f98c995114c13d415121f855678ae770c9123b | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /AtCoder/ABC-D/107probD.py | 261c5013ca5189665dd06803268802f1623a399f | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # 足す時は0~iまで一律に足し、返すのはi番目の値
class imosBIT():
def __init__(self, N):
self.N = N
self.bit = [0 for _ in range(self.N+1)]
def __str__(self):
ret = []
for i in range(1, self.N+1):
ret.append(self.__getitem__(i))
return "[" + ", ".join([str(a) for a in ret]) + ... | [
"wattaihei.rapyuta@gmail.com"
] | wattaihei.rapyuta@gmail.com |
16526d6d991321e879d46e8d8cd308ef7e4677b9 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Difference/trend_MovingMedian/cycle_5/ar_/test_artificial_1024_Difference_MovingMedian_5__20.py | f424dd4077963cad7c75f615bce42289c823621a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 274 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 5, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
2d9579c4f46e697e49c1ff2919d1f2e549706639 | 51305c54f8a316b6878a4462e1ba58a55c8e320f | /manager/thumbgen.py | 49950650252902242789d77d34a36ed34f1f3ad4 | [] | no_license | coinmenace/gck | 5b15b460335c0b52925f1875ccb4fecd416008e7 | fade84780cda218291cb2066808310c4871a06c8 | refs/heads/master | 2020-03-27T06:58:54.878353 | 2018-10-22T12:32:20 | 2018-10-22T12:32:20 | 146,153,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | from PIL import Image, ImageFile
import glob, os
from threading import *
ImageFile.LOAD_TRUNCATED_IMAGES = True
class Thumbgen:
def __init__(self,file,fullname,identifier):
sizes = [(32, 32),(64, 64),(128, 128),(256, 256),(512, 512),(1024, 1024),(2048, 2048)]
self.generateThumb(identifier,file,fulln... | [
"webframes@gmail.com"
] | webframes@gmail.com |
82a203f3a27ae3767dc8c58441b3f4644e5a1399 | a2e607593dcbe5feaeedd9e9bd4caeaf06e46733 | /tests/ui/menus/test_opmenu.py | 464f5422d23c0778525972d3ce32d53d5aa537af | [] | no_license | all-in-one-of/Houdini-Toolbox | dd05b2c869e663b185c1997d326bfe7548fbf55f | c10663c46c0f1249a9b3c6b32d4384a4399849ed | refs/heads/master | 2020-06-13T01:10:11.832715 | 2019-08-30T07:24:47 | 2019-08-30T07:24:47 | 194,484,242 | 0 | 0 | null | 2019-06-30T06:42:17 | 2019-06-30T06:42:17 | null | UTF-8 | Python | false | false | 1,738 | py | """Tests for ht.ui.menus.opmenu module."""
# =============================================================================
# IMPORTS
# =============================================================================
# Python Imports
from mock import MagicMock, patch
import unittest
# Houdini Toolbox Imports
import ht.u... | [
"captainhammy@gmail.com"
] | captainhammy@gmail.com |
cfbc0b358cbc8a73771ab602b38fe9a5b825e242 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/488/usersdata/341/112971/submittedfiles/AvF_Parte3.py | 25d6392521b197f54357fe6d625293d8a2655e93 | [] | 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 | 153 | py | # -*- coding: utf-8 -*-
n = int(input('Digite a quantidade de números: '))
a = []
for i in range (n):
a.append('Digite os respectivos números: ')) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b524fe5caa3d77e5a88deb2e1aca3844f930eedf | 40491d4649bc8f981cfd531657b0970e2577edd1 | /Policy_Gradient/Tank_1/params.py | 591b4c09a4383ccea277dcc219593c967ce568b8 | [] | no_license | emedd33/Reinforcement-Learning-in-Process-Control | d82ddab87dc6727a70ee38d53889aa8af87ade25 | 24bc1d9b72c0762bd92c215837347d6548099902 | refs/heads/master | 2022-07-12T02:53:52.208320 | 2022-04-05T15:23:48 | 2022-04-05T15:23:48 | 161,691,463 | 29 | 11 | null | 2022-06-21T21:39:15 | 2018-12-13T20:29:27 | Python | UTF-8 | Python | false | false | 1,408 | py | MAIN_PARAMS = {
"EPISODES": 20000,
"MEAN_EPISODE": 50,
"MAX_TIME": 200,
"RENDER": True,
"MAX_MEAN_REWARD": 200, # minimum reward before saving model
}
AGENT_PARAMS = {
"N_TANKS": 1,
"SS_POSITION": 0.5,
"VALVE_START_POSITION": 0.2,
"ACTION_DELAY": [5],
"INIT_ACTION": 0.3,
"V... | [
"eskild.emedd33@gmail.com"
] | eskild.emedd33@gmail.com |
c3a893c3d848b53fed2af2a0af5ef2a746813b2d | 352f7d1258e51d3b7e8cfcbb4b527c3e27a68fe5 | /tests/test_img_server.py | b8eca0fb172da1de0c121455a4bcb1751b25020c | [] | no_license | lidingke/fiberGeometry | 67b53535ca1060af1ab29de915f1190258d7986e | 1455fd815884a735d5b9e87aff07244ca9a95a23 | refs/heads/master | 2020-05-21T16:45:06.374649 | 2018-02-25T06:30:15 | 2018-02-25T06:30:15 | 62,809,512 | 1 | 1 | null | 2017-08-29T03:21:54 | 2016-07-07T13:37:45 | C | UTF-8 | Python | false | false | 2,947 | py | # coding:utf-8
from setting.config import SIMULATOR_IMG_SERVER_COFIG
from SDK.simulator.client import Client
from SDK.simulator.server import ImgServer, SeverMain, SharpSever
from threading import Thread
import multiprocessing
from tornado.ioloop import IOLoop
from functools import partial
from util.getimg import getIm... | [
"lidingke@hust.edu.cn"
] | lidingke@hust.edu.cn |
ccffdde7de02461543a3f4f909b19626b7520c9f | f516b7561b93f640bcb376766a7ecc3440dcbb99 | /leetcode/easy/add-binary.py | a7a66ad52358184d587c15dba4b509ef2bcc902c | [
"Apache-2.0"
] | permissive | vtemian/interviews-prep | c41e1399cdaac9653c76d09598612f7450e6d302 | ddef96b5ecc699a590376a892a804c143fe18034 | refs/heads/master | 2020-04-30T15:44:42.116286 | 2019-09-10T19:41:41 | 2019-09-10T19:41:41 | 176,928,167 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | class Solution(object):
def addBinary(self, a, b):
"""
:type a: str
:type b: str
:rtype: str
"""
if len(b) > len(a):
a, b = b, a
a = a[::-1]
b = b[::-1]
count = 0
remainder = 0
result = ""
while count < l... | [
"vladtemian@gmail.com"
] | vladtemian@gmail.com |
3bc801af96cf998efd961d2ff892da8cd5f95e93 | 3de11c5630cad4ca816ad17dd2f6c743b8799108 | /djangorestframework/tutorial/tutorial/settings.py | 57a3ef605fb5ea039f858ff6b08cc8fa7ff71296 | [] | no_license | greenfrog82/TIL_Python | a6f03b0ae6f2260310faa5ef59d4bd01dcf6a1ed | 015116c5ff4a14f531e3693f9cfd3a921a674b81 | refs/heads/master | 2022-12-09T22:34:49.485937 | 2021-05-11T10:59:41 | 2021-05-11T10:59:41 | 154,969,150 | 0 | 1 | null | 2022-12-08T01:20:11 | 2018-10-27T13:44:56 | Python | UTF-8 | Python | false | false | 4,216 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 2.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
i... | [
"greenfrog82@naver.com"
] | greenfrog82@naver.com |
01fa61b61414d147b0eea7f2609800fd9d303acb | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/codeabbey/_Python_Problem_Solving-master/Greatest Common Divisor.py | a5d6275ab69ff29ca8c3202f4e265872f942f71d | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 363 | py | a = int(input())
string = ''
for i in range(a):
temp1,temp2 = num1, num2 = [int(ele) for ele in input().split()]
while num1 != num2:
if num1 > num2:
num1 = num1 - num2
else:
num2 = num2 - num1
lcm = temp1 * temp2 / num1
string += '('+str(num1)+' '+str(int(... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
b85d7944f883d5fc1dae7e069f5d5cb234104815 | 0df124c41cbaa94750df79fc70bf911d298610a7 | /train_kFold.py | af272569fc2d9f5c6934814ab1624fffa7f18f92 | [] | no_license | bcaitech1/p2-klue-HYLee1008 | 7093a9245fe3ad9bf29251a4c12f12a801b9f4f5 | c22d1a1ba8e3aa89198d786845a0ad6efc69e27c | refs/heads/main | 2023-04-10T11:18:11.500052 | 2021-04-22T11:23:23 | 2021-04-22T11:23:23 | 360,466,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,318 | py | import argparse
import pickle as pickle
import os
import pandas as pd
import numpy as np
import torch
import random
import transformers
import glob
import time
import json
import wandb
from sklearn.metrics import accuracy_score
from transformers import AutoTokenizer, BertForSequenceClassification, Trainer,... | [
"discone1008@gmail.com"
] | discone1008@gmail.com |
b8e2120fcd66ff56ce5658f05e466269e248c642 | 99459cd11263f721155316164afddd1accf6419f | /stack.py | 7dd3b5ad53c0b158b87031a28ec838fc68eca0de | [] | no_license | dvmazuera/cs-data-structures-assessment | 5dc767241bb8a1821726c5b13a96140a59d0babf | 21082045955fa23cf26dd9dd52fdf9c22c0db31b | refs/heads/master | 2021-01-22T11:29:32.020412 | 2017-05-29T03:55:31 | 2017-05-29T03:55:31 | 92,704,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,950 | py | class StackEmptyError(IndexError):
"""Attempt to pop an empty stack."""
class Stack(object):
"""LIFO stack.
Implemented using a Python list; since stacks just need
to pop and push, a list is a good implementation, as
these are O(1) for native Python lists. However, in cases
where performance ... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
0a81afd1bccfde119b3571c2a5ba4395ebb7b44f | e5cd01fd620e8e746a20b883de7ac32bec4feb5c | /Ejercicios python/PE4/PE4E3.py | 53f599b8b515986576a6731ce8932f4c3575fac2 | [] | no_license | eazapata/python | 0f6a422032d8fb70d26f1055dc97eed83fcdc572 | 559aa4151093a120527c459a406abd8f2ff6a7d8 | refs/heads/master | 2020-08-27T09:19:29.395109 | 2019-11-23T20:11:14 | 2019-11-23T20:11:14 | 217,314,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #PE4E3 Eduardo Antonio Zapata Valero
#Pida al usuario si quiere calcular el área de un triángulo o un cuadrado,
#y pida los datos según que caso y muestre el resultado.
fig=(input("Quieres calcular el área de un triángulo (t) o de un cuadrado (c) "))
if (fig=="t"):
print ("Ha elegido triángulo, introduce base y alt... | [
"you@example.com"
] | you@example.com |
88f3a978e1ccdf33914b845f1988779d03433a82 | 3a2af7b4b801d9ba8d78713dcd1ed57ee35c0992 | /zerver/migrations/0051_realmalias_add_allow_subdomains.py | dec9cce79560fb47f11fae6a6962e964cc2a4a00 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | timabbott/zulip | 2b69bd3bb63539adbfc4c732a3ff9d52657f40ac | 42f239915526180a1a0cd6c3761c0efcd13ffe6f | refs/heads/master | 2023-08-30T21:45:39.197724 | 2020-02-13T23:09:22 | 2020-06-25T21:46:33 | 43,171,533 | 6 | 9 | Apache-2.0 | 2020-02-24T20:12:52 | 2015-09-25T19:34:16 | Python | UTF-8 | Python | false | false | 541 | py | # Generated by Django 1.10.5 on 2017-01-25 20:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0050_userprofile_avatar_version'),
]
operations = [
migrations.AddField(
model_name='realmalias',
name='al... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
1176757494ee948beb10dc386770bfbd2a823956 | a29310948867f5f07109fcd225a84282ad7eea16 | /design_models/template_method.py | c4f800913310ae0c850b9c6b745efc7ed06b179d | [] | no_license | likeweilikewei/Python-study-demo | 09b266c0756b6e340e8b8e3153a7e497be8ee1a9 | 7dd4bc851273a5815d8980f9857828abfa5364a7 | refs/heads/master | 2020-06-26T21:17:27.095532 | 2019-07-31T02:17:43 | 2019-07-31T02:17:43 | 199,760,324 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | #!/usr/bin/python
# coding:utf8
'''
Template Method
模板方法模式:
应用特性:重复做相同逻辑的事情,但是具体细节不同的场景
结构特性:相同逻辑抽取至父类,具体细节留置子类。可以说是对逻辑的抽象
'''
ingredients = "spam eggs apple"
line = '-' * 10
# Skeletons
def iter_elements(getter, action):
"""Template skeleton that iterates items"""
for element in getter():
action(ele... | [
"1293120583@qq,com"
] | 1293120583@qq,com |
3d58de779e6e9ce278cac6d0c11ec7646a8fb43e | 8f3336bbf7cd12485a4c52daa831b5d39749cf9b | /Python/maximum-average-subarray-i.py | a92f4789fc9c877e00d034b9d34aa0c4a577f269 | [] | no_license | black-shadows/LeetCode-Topicwise-Solutions | 9487de1f9a1da79558287b2bc2c6b28d3d27db07 | b1692583f7b710943ffb19b392b8bf64845b5d7a | refs/heads/master | 2022-05-30T22:16:38.536678 | 2022-05-18T09:18:32 | 2022-05-18T09:18:32 | 188,701,704 | 240 | 110 | null | 2020-05-08T13:04:36 | 2019-05-26T15:41:03 | C++ | UTF-8 | Python | false | false | 398 | py | # Time: O(n)
# Space: O(1)
class Solution(object):
def findMaxAverage(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: float
"""
result = total = sum(nums[:k])
for i in xrange(k, len(nums)):
total += nums[i] - nums[i-k]
... | [
"noreply@github.com"
] | black-shadows.noreply@github.com |
308bff52ce577ba49c9ba46d0fd7277f04669f7f | 0e94b21a64e01b992cdc0fff274af8d77b2ae430 | /spider/004_kekeenglish_daysentence.py | 35df50ab90f89a35b0fc40370d4b4fef02e20b22 | [] | no_license | yangnaGitHub/LearningProcess | 1aed2da306fd98f027dcca61309082f42b860975 | 250a8b791f7deda1e716f361a2f847f4d12846d3 | refs/heads/master | 2020-04-15T16:49:38.053846 | 2019-09-05T05:52:04 | 2019-09-05T05:52:04 | 164,852,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 11 13:18:16 2018
@author: Administrator
"""
import re
from lxml import etree
import urllib.request
import xlwt
response=urllib.request.urlopen('http://www.kekenet.com/kouyu/primary/chuji/')
html = response.read().decode("utf-8")
tr = etree.HTML(html)
#//div[@class="tb-b... | [
"ityangna0402@163.com"
] | ityangna0402@163.com |
3dbf3e87b4b004b83e913dd989ed2ab900c5eb16 | b9e9c89567894fd7e5ddfd27fe9068a074a92df7 | /pyramid_signup/tests/test_init.py | d1de398dc5429102f7465cb8ee45667f5212c697 | [] | no_license | AnneGilles/pyramid_signup | 8aeea113176dd64a326caa5f7704026e0538c94a | 0622d951e686f0926291d98559a6b4afa2c81241 | refs/heads/master | 2021-01-18T17:48:48.260300 | 2011-12-09T04:56:44 | 2011-12-09T04:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | from pyramid import testing
from pyramid_signup.models import User
from pyramid_signup.tests import UnitTestBase
from mock import patch
from mock import Mock
class TestInitCase(UnitTestBase):
def test_root_factory(self):
from pyramid_signup import RootFactory
from pyramid.security import Everyone... | [
"sontek@gmail.com"
] | sontek@gmail.com |
36d1cdb0cf14edfe05793a672c0556d8c5875baa | d1e4f29e583ee964d63bc48554eaa73d67d58eb2 | /zerver/migrations/0222_userprofile_fluid_layout_width.py | 3b5c232bee7088bb888cc76437ff9bc3df92ee7b | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | hygolei/zulip | 299f636f9238f50b0d2746f1c371748f182f1f4e | 39fe66ab0824bc439929debeb9883c3046c6ed70 | refs/heads/master | 2023-07-11T22:50:27.434398 | 2021-08-09T10:07:35 | 2021-08-09T10:07:35 | 375,401,165 | 1 | 1 | Apache-2.0 | 2021-08-09T10:07:36 | 2021-06-09T15:20:09 | Python | UTF-8 | Python | false | false | 428 | py | # Generated by Django 1.11.20 on 2019-04-15 17:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("zerver", "0221_subscription_notifications_data_migration"),
]
operations = [
migrations.AddField(
model_name="userprofile",
... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
590d2207a922188f883dab5476511635e22f0ab1 | 408f8c561a695ac20b792ba0c4a230c154dad347 | /scripts/slurm.py | 1526201ab8cdf66bbed803e8fe3ad1e4f9c182d0 | [] | no_license | andnp/acceleration-v2 | a407888c74a247e6d441259d50d77cf6194f728b | 52b8a42c3e315ddbb4549a3a941afda81e92be9b | refs/heads/master | 2022-11-26T05:42:17.680125 | 2020-08-02T23:25:01 | 2020-08-02T23:25:01 | 204,991,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | import time
import sys
import os
sys.path.append(os.getcwd())
from src.utils.model import loadExperiment
from PyExpUtils.runner import SlurmArgs
from PyExpUtils.results.paths import listResultsPaths
from PyExpUtils.utils.generator import group
from PyExpUtils.runner.Slurm import schedule, slurmOptionsFromFile
if len(... | [
"andnpatterson@gmail.com"
] | andnpatterson@gmail.com |
c9b9126eb7cfe8ea67cc1dd7bf1da71936a45f80 | 5f4adc8c51f9b7dd67a47f37eaf31e8ddb066f71 | /core/cp_plugins/systray.py | 9fc45cfcbb597ecc1d8dd71abfc8c312a66c380d | [
"Apache-2.0"
] | permissive | cryorooster/watcher | 1a4f186cb9d0a0c84f80e30073b313a0bd049995 | 0dd25241a01d7dcb9ffcd312cc2472b2c9cb2983 | refs/heads/master | 2021-01-23T04:45:09.272825 | 2017-02-05T23:36:39 | 2017-02-05T23:36:49 | 80,380,818 | 0 | 0 | null | 2017-01-29T23:39:16 | 2017-01-29T23:39:15 | null | UTF-8 | Python | false | false | 2,563 | py | import logging
import sys
import webbrowser
import cherrypy
import core
from cherrypy.process import plugins
from infi.systray import SysTrayIcon
logging = logging.getLogger(__name__)
class SysTrayPlugin(plugins.SimplePlugin):
'''
CherryPy plugin that creates a system tray icon for Windows.
Because Sys... | [
"nosmokingbandit@gmail.com"
] | nosmokingbandit@gmail.com |
f62998c30aabd3f2ae38cf6aa13b33f4456ef7e1 | d0fe389bae13abfc9d666dc880c50b894b7c212d | /software/tool/test_pipeline/move_file.py | 5fd75b3eebadef6c39cadc438cc9d2d6974eda57 | [] | no_license | ab3nd/TinyRobo | 965c060e95ef6446a609b4954dda042d1ff16311 | b86d2f716fea4bcc420f81e1903484554fb33b51 | refs/heads/master | 2020-04-12T08:49:45.086755 | 2019-07-11T01:59:05 | 2019-07-11T01:59:05 | 39,583,602 | 7 | 2 | null | 2018-07-10T20:05:36 | 2015-07-23T18:17:14 | Jupyter Notebook | UTF-8 | Python | false | false | 819 | py | #!/usr/bin/python
#Get a file that starts with "recognizer_test" in the ~/.ros/ directory, and move it to a new directory
import json
import rosbag
import rospy
import os
import fnmatch
import yaml
#From https://stackoverflow.com/questions/1724693/find-a-file-in-python
def find(pattern, path):
result = []
fo... | [
"orphrey@gmail.com"
] | orphrey@gmail.com |
c55812681bffcd67f705310e9d3133f402e043f6 | 9d8a3a2c0a15dbf1f90d801e6d705d1212cf09af | /services/web__morningstaronline_co_uk.py | ac5fc53d8d59be5e0045ca7297f649f07c83b74c | [] | no_license | rudolphos/NewsGrabber | f9bddc9a9b3a9e02f716133fd746f48cee635b36 | 86354fb769b2710ac7cdd5bd8795e43158b70ad2 | refs/heads/master | 2021-01-12T12:07:55.335079 | 2016-10-09T22:39:17 | 2016-10-09T22:39:17 | 72,316,773 | 0 | 0 | null | 2016-10-30T00:35:08 | 2016-10-30T00:35:08 | null | UTF-8 | Python | false | false | 417 | py | refresh = 5
version = 20160312.01
urls = ['https://www.morningstaronline.co.uk/britain',
'https://www.morningstaronline.co.uk/world',
'https://www.morningstaronline.co.uk/editorial',
'https://www.morningstaronline.co.uk/features',
'https://www.morningstaronline.co.uk/sport',
'https://www.morningstaronline.co.uk/a... | [
"Arkiver@hotmail.com"
] | Arkiver@hotmail.com |
207bee7e203e906fc119bb7df61d83adcdec1d35 | d49f28ea7867cf9ce9512c0521b136934e97b7d2 | /tests/backends/base/test_client.py | 4573bbe97bfb174d2998b800e8ce5e119a7d4da8 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"Python-2.0"
] | permissive | tamirverthim/django | cdbc198a055deeb526caff6b18ae874445f217c5 | 666b7048a0dc6b067c1e3f58653f3c7ca00371a2 | refs/heads/master | 2023-04-14T00:51:11.507226 | 2020-12-07T12:19:20 | 2020-12-07T12:19:20 | 319,310,225 | 0 | 0 | BSD-3-Clause | 2023-04-03T23:53:00 | 2020-12-07T12:17:41 | Python | UTF-8 | Python | false | false | 605 | py | from django.db import connection
from django.db.backends.base.client import BaseDatabaseClient
from django.test import SimpleTestCase
class SimpleDatabaseClientTests(SimpleTestCase):
def setUp(self):
self.client = BaseDatabaseClient(connection=connection)
def test_settings_to_cmd_args_env(self):
... | [
"felisiak.mariusz@gmail.com"
] | felisiak.mariusz@gmail.com |
760d04f4f37ec49446c5810324797d3ef73de59c | c947a71a16ed180c920d4b362347f980d93bd2fe | /src/Classes/MSDS400/Module 3/workout.py | c7f40dafdf59f5c1f52238d5010dc1fa5ddcbc10 | [
"MIT"
] | permissive | bmoretz/Python-Playground | b69cac015e95d97f46ebd678c4493a44befb556f | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | refs/heads/master | 2021-05-13T23:35:31.986884 | 2019-11-23T19:07:58 | 2019-11-23T19:07:58 | 116,520,816 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | # As part of a weight reduction program, a man designs a monthly exercise program consisting of bicycling, jogging, and swimming.
# He would like to
# exercise at most 28 hours,
# devote at most 6 hours to swimming,
# and jog for no more than the total number of hours bicycling and swimming.
# The calories bur... | [
"bmoretz@ionicsolutions.net"
] | bmoretz@ionicsolutions.net |
f0365d989dd7c876fa5c7fca77f76477b90906d6 | 44baa6621306c6b9810db48b3c1479cb8db294b3 | /test/test_summaries.py | 890a49aaf4ebb8b1bd8020b972c18679946c46be | [
"Apache-2.0"
] | permissive | codeninja/tensorforce | ecc216e2970194d086209fb726fc64b4b9cd8e93 | 212b115d10a21b8241e1d9df56c4851ffd370f34 | refs/heads/master | 2020-08-13T08:16:11.046478 | 2019-10-18T17:36:03 | 2019-10-18T17:36:03 | 214,937,969 | 2 | 0 | Apache-2.0 | 2019-10-18T17:36:04 | 2019-10-14T03:15:34 | Python | UTF-8 | Python | false | false | 2,058 | py | # Copyright 2018 Tensorforce Team. 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 applicable la... | [
"alexkuhnle@t-online.de"
] | alexkuhnle@t-online.de |
570d5e5d5fbd8600a45c78d01b6b02a8b09ce153 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_database_user_privilege_request.py | 150b872cab2546ae4611dfa32d9ac8d91350c989 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,906 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class SetDatabaseUserPrivilegeRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8cfd3c66b9a03394e87c6cbbac0e72ae02d96b6b | 77ae7c76d36009daa01b2317439c1f975f7932b2 | /exercicios/ex115/arquivo.py | dbcbd133583ca6ae2edba87857cfb65ef4e83003 | [] | no_license | MatheusOldAccount/Exerc-cios-de-Python-do-Curso-em-Video | 5f26b5a2867fa1a2e36b486a809dfbe8b107b8c2 | 5696c49d3caf5cae817217a2da0598d1cf794f5b | refs/heads/master | 2022-03-22T10:49:33.666660 | 2019-11-25T21:24:43 | 2019-11-25T21:24:43 | 224,052,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | def verPessoas():
print('-' * 30)
arq = open('lista.txt', 'r')
print(arq.read())
arq.close()
def adicionarPessoas():
print('-' * 30)
arq = open('lista.txt', 'a')
nome = str(input('Nome: ')).strip().capitalize()
válido = False
while True:
try:
idade = int(input('... | [
"matheustavares1165@gmail.com"
] | matheustavares1165@gmail.com |
a1900950b36a1a0eeada9e202f153c8985039b65 | e342abb1306e4b083f235a2992ffb863c96c9a86 | /examples/user/user_playlists.py | f71f755bceeeb2c38e3122cc3e6f50cb403624cb | [
"MIT"
] | permissive | LorenzoCavatorta/spotify.py | 102422e6588cb6c49cff026562e37f28cb0650eb | 7f375f030fbac4ef3dbbd577a898b4d72f37b72b | refs/heads/master | 2020-08-01T17:09:06.795264 | 2019-09-30T12:24:57 | 2019-09-30T12:24:57 | 211,055,943 | 0 | 0 | MIT | 2019-09-26T09:50:46 | 2019-09-26T09:50:46 | null | UTF-8 | Python | false | false | 453 | py | import asyncio
import spotify
client = spotify.Client('someid', 'somesecret')
async def main():
# You can use a user with a http presence
user = await client.user_from_token('sometoken')
# Or you can get a generic user
user = await client.get_user(user_id)
# returns a list of spotify.Playlist ob... | [
"m3nta1@yahoo.com"
] | m3nta1@yahoo.com |
b0e487b584903313154d9dd72e6c085f2b3b95d9 | 4664328482163fd927603d66f47209b28471cf0f | /venv/lib/python3.7/site-packages/datalad/metadata/extractors/tests/test_datacite_xml.py | 30ed2525d0915a74e0f941dc65be94d72cbe0d4c | [
"MIT"
] | permissive | emmetaobrien/dats-validator | 08706ddab795d272391b3611cd3ba0de8c4a91a1 | fb25f97a32119c2bce4eb50dc080a93d5ee77141 | refs/heads/master | 2020-12-19T05:03:17.179117 | 2020-01-22T17:28:38 | 2020-01-22T17:28:38 | 235,626,049 | 0 | 0 | MIT | 2020-01-22T17:24:56 | 2020-01-22T17:24:56 | null | UTF-8 | Python | false | false | 2,982 | py | # emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## #... | [
"giulia.ippoliti@mail.mcgill.ca"
] | giulia.ippoliti@mail.mcgill.ca |
59fbf899cb91638c4c208f659ae96a918d587461 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/nltk/cluster/__init__.py | 38a9111e2204c7174d3bfbd82559e79570513835 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:59aceae689404a10cc3a170d5442209edea3f051e4f50c800fa557e86d234639
size 4271
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
351b4eddb3f58e872e3497a9bea27b19aa4d720f | 4d89652acca24e0bc653e0b4cb5846ceb5b568e4 | /google-cloud-sdk/lib/surface/run/domain_mappings/list.py | ab9c9af7d8e8d0e25820072bf29df8501224e959 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | ibssasimon/LyricLingo | 410fcec94d2bd3ea75c975c55713f5b8fb913229 | 0dfc951b270912470b36ce0083afd9d4fe41b10a | refs/heads/master | 2021-06-25T10:00:18.215900 | 2020-01-09T00:35:46 | 2020-01-09T00:35:46 | 222,135,399 | 2 | 1 | null | 2021-04-30T20:54:14 | 2019-11-16T17:32:19 | Python | UTF-8 | Python | false | false | 3,061 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 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... | [
"ibssasimon@gmail.com"
] | ibssasimon@gmail.com |
657337bf90a24e453740657f6c0d434ef21313c9 | cf62f7a7f9e13205fe83957fb7bfcf1b097bf481 | /src/index.py | a2ae504efaedb021f53a79f53ead655fd59982c9 | [
"Apache-2.0"
] | permissive | biothings/mygene.info | 09bf19f481c066789a4ad02a0d2880f31dae28f6 | fe1bbdd81bc29b412ca4288d3af38e47c0602ab7 | refs/heads/master | 2023-08-22T21:34:43.540840 | 2023-08-08T23:25:15 | 2023-08-08T23:25:18 | 54,933,630 | 89 | 20 | NOASSERTION | 2023-07-18T23:53:49 | 2016-03-29T00:36:49 | Python | UTF-8 | Python | false | false | 757 | py | """
Mygene Web Server Entry Point
Examples:
>>> python index.py
>>> python index.py --debug
>>> python index.py --port=8000
"""
import os.path
import config
from biothings.web.launcher import main
ADDON_HANDLERS = [
(r"/demo/?(.*)", "tornado.web.StaticFileHandler",
{"path": "docs/demo", "default_fi... | [
"xzhou@scripps.edu"
] | xzhou@scripps.edu |
981f3b685443c1e8fabdc340684e1a4a52e41de2 | e15fb687990589783066669784912ea8ac5bacaf | /genome_designer/test_data/full_vcf_test_set/generate_full_vcf_test_set.py | 9dac81496c35a6bb2eaa6bc20477bb1f155f8606 | [
"MIT"
] | permissive | RubensZimbres/millstone | 74d32105fa54104d0597b6789fb2871cb4fbd854 | 898936072a716a799462c113286056690a7723d1 | refs/heads/master | 2020-03-16T18:57:55.174716 | 2018-03-07T16:40:14 | 2018-03-07T16:40:14 | 132,894,394 | 1 | 2 | null | 2018-05-10T12:01:34 | 2018-05-10T12:01:33 | null | UTF-8 | Python | false | false | 5,259 | py | """
Script for generating the test set.
This document describes how this test test was generated.
1) Select a region of the MG1655 genome to excise.
"""
import copy
import random
from Bio import SeqIO
import vcf
import simNGS_util
# Portion of MG1655 Genbank of size ~5.5 kB
EXCISED_GENBANK = 'mg1655_tolC_through... | [
"gleb.kuznetsov@gmail.com"
] | gleb.kuznetsov@gmail.com |
899c5f0098afd90b2bbd71e177e514e42fe973d5 | 36d4c9a57b53f5e14acb512759b49fe44d9990d8 | /hackerrank/30-days-of-code/day-8.py | d6527ddafbd6b3abc73b984d4cbb1c5fe239558e | [] | no_license | yosef8234/test | 4a280fa2b27563c055b54f2ed3dfbc7743dd9289 | 8bb58d12b2837c9f8c7b1877206a365ab9004758 | refs/heads/master | 2021-05-07T22:46:06.598921 | 2017-10-16T18:11:26 | 2017-10-16T18:11:26 | 107,286,907 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | # # -*- coding: utf-8 -*-
# Objective
# Today, we're learning about Key-Value pair mappings using a Map or Dictionary data structure. Check out the Tutorial tab for learning materials and an instructional video!
# Task
# Given NN names and phone numbers, assemble a phone book that maps friends' names to their respecti... | [
"ekoz@protonmail.com"
] | ekoz@protonmail.com |
8cdd0bd9d537ad94f769df4f3a1faf52e3fb8895 | 5760ff9bca037a2e85dde8ad4d583139ab8e128a | /migrations/versions/20150624090637_3606d4a47663_update_answercomment_model.py | c4dcdcc74edfefac69c1499b71d92697c7e86322 | [] | no_license | dianchang/dianchang | 5b58cbfcf6dfcd9c2c9d55c0612a9327086b8b54 | 3414cd5af0a66facd6ec4eb787e7646d04d8c96c | refs/heads/master | 2016-08-11T11:24:49.322330 | 2015-07-30T05:18:09 | 2015-07-30T05:18:09 | 36,111,229 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | """Update AnswerComment model.
Revision ID: 3606d4a47663
Revises: 2040a458fc8a
Create Date: 2015-06-24 09:06:37.957787
"""
# revision identifiers, used by Alembic.
revision = '3606d4a47663'
down_revision = '2040a458fc8a'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated... | [
"hustlzp@qq.com"
] | hustlzp@qq.com |
2fad265d11b5850de7947324b15cf3811b053d58 | 1b25efab9fd81f1c1b9cd484a13d530759809838 | /backend/dating/api/v1/serializers.py | 94acc95fb234b127aaf19304903f55ffff0256f5 | [] | no_license | crowdbotics-apps/test-31906 | 1728e7947b6cbd52dc123310647ec523914aa1aa | 2f6841d3ac3e4d335712fd11b3ee81166eec2f47 | refs/heads/master | 2023-08-30T11:31:54.409975 | 2021-11-10T07:26:53 | 2021-11-10T07:26:53 | 426,524,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | from rest_framework import serializers
from dating.models import Setting, Like, UserPhoto, Match, Dislike, Inbox, Profile
class InboxSerializer(serializers.ModelSerializer):
class Meta:
model = Inbox
fields = "__all__"
class LikeSerializer(serializers.ModelSerializer):
class Meta:
mo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b7af57cfe3b70002b84576ef64c5255279fa4d72 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/meta/TankmanOperationDialogMeta.py | e1d2fcccb7f4552ec5aef843bb1b493e8473c8d1 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 386 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/TankmanOperationDialogMeta.py
from gui.Scaleform.daapi.view.dialogs.SimpleDialog import SimpleDialog
class TankmanOperationDialogMeta(SimpleDialog):
def as_setDataS(self, data):
return sel... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
265522a7deada1360fac4df736f45501ac5024dc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_285/ch5_2019_06_03_01_06_29_598637.py | b4bfd46781ff35c49180a25a814cd9a7dfae311a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | def verifica_primo(n):
if n<0:
return -1
num=3
while num<n:
if n%2==0 or n%num==0:
return False
num+=2
if n==0 or n==1:
return False
else:
return True
def maior_primo_menor_que(n):
if verifica_primo(n)== True:
return n
elif ver... | [
"you@example.com"
] | you@example.com |
ecd1fe8a8b5678366ade3ae81684187a171f55f5 | 4c601eaa346e660c296e270cc2d79aea9a3721fe | /homeassistant/components/atag/__init__.py | 237a82f207a51306dfec01869827bd135973d15b | [
"Apache-2.0"
] | permissive | basnijholt/home-assistant | f55110af9ff602274c0a929c7298ef97a0ef282f | ba55b4b8338a2dc0ba3f1d750efea49d86571291 | refs/heads/dev | 2023-01-21T11:53:52.621353 | 2020-08-08T15:03:06 | 2020-08-08T15:03:06 | 220,313,680 | 5 | 1 | Apache-2.0 | 2023-01-13T06:04:49 | 2019-11-07T19:29:54 | Python | UTF-8 | Python | false | false | 4,345 | py | """The ATAG Integration."""
from datetime import timedelta
import logging
import async_timeout
from pyatag import AtagException, AtagOne
from homeassistant.components.climate import DOMAIN as CLIMATE
from homeassistant.components.sensor import DOMAIN as SENSOR
from homeassistant.components.water_heater import DOMAIN ... | [
"noreply@github.com"
] | basnijholt.noreply@github.com |
9902776c082c92c16c89cd39d922e4b461482b88 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2018_05_01_preview/models/__init__.py | b555500e3ca24979e6c5c02f7be553bf65fd61c7 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 3,815 | 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"
] | test-repo-billy.noreply@github.com |
155abd7d13912aa0987c80a0c964ad7d4fc7990e | 09b22d1bd1263e4082e6bba7afa2f2b7a66afd4a | /FaceDetection/Smile Detector.py | 5dfcb45bf4e354761a24d3842578b36decee18d7 | [] | no_license | yogeshkushwahait/Machine-Learning-Using-Python | b70bc5334c4178fecc175451b8b7e04e50a60917 | 8102ce7b0cba5d48e923f979ae0a8e71c25857b1 | refs/heads/master | 2022-03-28T05:21:24.332537 | 2019-11-05T06:34:00 | 2020-01-09T16:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py |
# coding: utf-8
# In[2]:
import cv2
# In[3]:
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml');
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml');
smile_cascade = cv2.CascadeClassifier('haarcascade_smile.xml');
# In[4]:
def detect(gray,frame):
faces = face_cascade.detec... | [
"rishav.jnit@gmail.com"
] | rishav.jnit@gmail.com |
4402400f9646593187e43c7982a4e61d0d01b033 | 786de89be635eb21295070a6a3452f3a7fe6712c | /pandas/tags/V00-00-02/SConscript | b42efd570012fd5fb90cb1ffb13d916266eb5ce8 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | #------------------------------------------------------------------------
# File and Version Information:
# $Id: SConscript 4651 2012-10-26 16:55:30Z salnikov@SLAC.STANFORD.EDU $
#
# Description:
# SConscript file for package pandas
#------------------------------------------------------------------------
# Do not d... | [
"gapon@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | gapon@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
e51fbe1d83fc18c0809ef65f62e0f7a148dfdd77 | a672f984782a1fa328069363671c328da3e4d8bd | /weatherdaily/views.py | 40d1077ff5095487d6bbd95bd1a79c2aceed8864 | [] | no_license | avs8/yourweather | 396a0b093cbc9fc9b501eb979418e10eecfadf2b | 2415769dad416c9fcf99d57cba93b455d30447fc | refs/heads/master | 2021-08-29T08:11:16.664340 | 2017-12-13T14:15:44 | 2017-12-13T14:15:44 | 112,365,929 | 0 | 0 | null | 2017-12-11T14:35:38 | 2017-11-28T17:20:17 | JavaScript | UTF-8 | Python | false | false | 558 | py | from django.shortcuts import render, render_to_response
from .forms import WeatherForm
from django.http import HttpResponse
from django.template import RequestContext
from .models import *
def index(request):
args = {}
if request.POST:
form = WeatherForm(request.POST)
if form.is_valid():
... | [
"ajitavsingh_8@yahoo.com"
] | ajitavsingh_8@yahoo.com |
22026862c4779187068f89cb47fe0e6b11a7c0f0 | 18a6b272d4c55b24d9c179ae1e58959674e53afe | /tf_rl/test/CartPole/CartPole_recording_test.py | b8d3760e15ebd4d0ca5d66f39bae6090d71f9a17 | [
"MIT"
] | permissive | Rowing0914/TF2_RL | 6cce916f409b3d4ef2a5a40a0611908f20d08b2c | c1b7f9b376cbecf01deb17f76f8e761035ed336a | refs/heads/master | 2022-12-10T09:58:57.456415 | 2021-05-23T02:43:21 | 2021-05-23T02:43:21 | 233,476,950 | 9 | 1 | MIT | 2022-12-08T07:02:42 | 2020-01-12T23:53:48 | Python | UTF-8 | Python | false | false | 503 | py | import gym
env = gym.make('CartPole-v0')
gym.wrappers.Monitor(env, './tmp/cartpole-experiment-1', force=True, video_callable=lambda episode_id: True)
for i_episode in range(20):
observation = env.reset()
for t in range(100):
env.render()
print(observation)
action = env.action_space.samp... | [
"kosakaboat@gmail.com"
] | kosakaboat@gmail.com |
21fe54b94c5e5b3cd05505d1e5b489b734e9a820 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/setuptools/setuptools/_distutils/archive_util.pyi | 38458fc0e00349e77ebf105fdf5a52e850bc9e25 | [
"Apache-2.0",
"MIT"
] | 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 | 548 | pyi | def make_archive(
base_name: str,
format: str,
root_dir: str | None = ...,
base_dir: str | None = ...,
verbose: int = ...,
dry_run: int = ...,
owner: str | None = ...,
group: str | None = ...,
) -> str: ...
def make_tarball(
base_name: str,
base_dir: str,
compress: str | None... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
26556f32fd856b8732227ea6ddcc48bd711e6877 | 4412fd856cfbdfab98122b11ea01e447a76851b3 | /rodentdb/querysets.py | 063568ed8e0276d9a070a898fd61d93c93f1a13b | [] | no_license | fchampalimaud/rodentdb | d8e8c0c7552de638d3a2fd57de287401997fdf3c | 4a970c09da78f22a8c57d8ea98d29a569f531613 | refs/heads/master | 2021-06-18T02:05:19.200858 | 2019-09-17T18:09:57 | 2019-09-17T18:09:57 | 185,334,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from django.db import models
from users.mixins import PyformsPermissionsMixin
# FIXME import this when users model is not present
# try:
# from users.mixins import PyformsPermissionsMixin
# except ImportError:
# PyformsPermissionsMixin = None
# # PyformsPermissionsMixin = object
class RodentQuerySet(Pyfo... | [
"hugo.cachitas@research.fchampalimaud.org"
] | hugo.cachitas@research.fchampalimaud.org |
b75806926dcb3bbbf4251fca79a3bd28f9300dab | 71b86fc54e811c3a06d6d2db32a65a212f642bac | /scripts/create_prod_optfreq_jobs.py | 298897a5ec19bd62538151015a4d4e84b1ae396f | [
"MIT"
] | permissive | yunsiechung/ard_gsm | c773f4454836b54f6bb788c8d038d60d628ffcf2 | 82826011b0edf7122e16063094b04ecd16bf1cf5 | refs/heads/master | 2021-05-20T12:01:32.981441 | 2020-01-20T17:08:31 | 2020-01-20T17:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import argparse
import glob
import os
import re
from ard_gsm.qchem import QChem
from ard_gsm.util import iter_sub_dirs, read_xyz_file
def main():
args = parse_args()
num_regex = re.compile(r'\d+')
maxnum = float('inf') if args.maxnum is None else args.maxnum
... | [
"cgrambow@mit.edu"
] | cgrambow@mit.edu |
5f2d1ac25562db38ab4a821c2566217b269f5519 | f8ab044c34f0d286195c8e5abfae6f451e6c8223 | /test_arg.py | 58c8a56dafab815d14bbf764635a534ade273ed5 | [] | no_license | liuyug/pytest | aa512e902cf4ba9afb91b6b5b5c5cb9dccdc6478 | ffc14dbee70ff6fd9c8ab63a1c771fddc8bf5491 | refs/heads/master | 2020-05-19T12:20:57.958939 | 2016-09-06T03:01:38 | 2016-09-06T03:01:38 | 15,447,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | #!/usr/bin/env python
# -*- encoding:utf-8 -*-
import argparse
import unittest
class testArgs(unittest.TestCase):
def setUp(self):
self.args = (
['--foo', 'abc', 'abcdefg.ext'],
['-a', 'abc', '-a', 'bcd', '-a', 'cde', 'def.def'],
['-vvvv', 'abc.ea'],
#['--v... | [
"liuyug@gmail.com"
] | liuyug@gmail.com |
6006a738df99a24e60f0d1202d8a0998e6f3c28b | 45f93a9d47204d76b8bf25a71dfb79403e75c33c | /CodeForces/yes-or-yes.py | cb4db3b37842abd3b41cac071b12adb1ab078941 | [] | no_license | tahmid-tanzim/problem-solving | 0173bce1973ac3e95441a76c10324c0e1b0a57c3 | 6ddb51de6772130f209474e76f39ca2938f444f0 | refs/heads/master | 2023-06-25T02:18:03.690263 | 2023-06-20T06:58:46 | 2023-06-20T06:58:46 | 137,173,850 | 4 | 1 | null | 2022-03-30T08:28:41 | 2018-06-13T06:44:25 | Python | UTF-8 | Python | false | false | 189 | py | # https://codeforces.com/problemset/problem/1703/A
# A. YES or YES?
if __name__ == "__main__":
for _ in range(int(input())):
print('YES' if input().lower() == 'yes' else 'NO')
| [
"tahmid.tanzim@gmail.com"
] | tahmid.tanzim@gmail.com |
660bc9b69bbe66c2d9ce7f4e54e3b4a1dcabcda8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/334/usersdata/294/100466/submittedfiles/listas.py | 90a4557636f7b45bccefc918ec87c0a87bd5ae66 | [] | 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 | 389 | py | # -*- coding: utf-8 -*-
n= int(input('Digite o número de elementos: '))
while n<2:
n= int(input('Digite o número de elementos: '))
a=[]
for i in range (0,n,1):
a.append(int(input('Digite o elemento%d: ' %(i+1))))
for i in range (0,n-1,1):
dif= a[i]-a[i+1]
if dif>0:
dif=dif*1
degrau=0
for i in ra... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ec14651799152533ae1afb6b7c4b39d5335c4ecb | 2e74cff6c9639f3903ccde662e79359d0724285e | /2019_late/20190829/swea_5105_미로의거리.py | a33cf516df96ab271637b2d73566c84324d7b61b | [] | no_license | dodonmountain/algorithm | e29988071f651e51ba65e3926302f94a3d4074a5 | ce33e0d74220839aed4b17a47fa0069458a4324e | refs/heads/master | 2022-11-05T05:14:01.527015 | 2022-11-01T04:29:37 | 2022-11-01T04:29:37 | 200,008,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | import sys
sys.stdin = open('5105.txt')
from pprint import pprint
from collections import deque
from collections import deque
def bfs(x, y):
global shortest
Q = deque()
visit[x][y] == True
Q.append((x, y))
dx = [0, 0, -1, 1]
dy = [-1, 1, 0, 0]
D = [[0] * N for _ in range(N)] # 최단 거리를 저장
... | [
"lkh151515@gmail.com"
] | lkh151515@gmail.com |
01d0c81a95e80f405f125fd99caa00848d8f6f63 | a86ca34e23afaf67fdf858df9e47847606b23e0c | /lib/temboo/Library/MailChimp/ListSubscribe.py | 1366bda24013c469dbaa94248b91bb53f0dbbfa1 | [] | no_license | miriammelnick/dont-get-mugged | 6026ad93c910baaecbc3f5477629b0322e116fa8 | 1613ee636c027ccc49c3f84a5f186e27de7f0f9d | refs/heads/master | 2021-01-13T02:18:39.599323 | 2012-08-12T23:25:47 | 2012-08-12T23:25:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,083 | py |
###############################################################################
#
# ListSubscribe
# Adds a subscriber to a MailChimp list.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
from temboo.core.choreog... | [
"miriam@famulus"
] | miriam@famulus |
445c6ff875319e02bf6c664717e3b20fcc1eeef2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_peters.py | 5c5535b7cf2fe2459518556a2fea0f4e76f710a9 | [
"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 | 218 | py |
#calss header
class _PETERS():
def __init__(self,):
self.name = "PETERS"
self.definitions = peter
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['peter']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
05dfdbb7f1fe32835a1c9b65abe2e372a8d9fad3 | 3eff0ac549dd24fbade02d63c3a541ab88db1e5b | /ultimate_python/pythonrefresh.py | 36dd68b468c98ac1e89ac271b58821745d51e6d4 | [] | no_license | lisaolson/udemy | 618410fb548db864b7878de5a2231e8293daa2ad | f40f947f6f79d692748f3efba02176fb360f0c4e | refs/heads/master | 2020-03-28T20:14:23.028759 | 2018-09-18T19:45:32 | 2018-09-18T19:45:32 | 149,051,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | # VARIABLE
age = 21
name="Lisa"
# print("Hello my name is {} and I am {} years old".format(name, age))
if age < 25:
print('You are young')
def hello(name, age):
return 'Hello {} you are {} years old'.format(name, age)
sentence = hello('Lisa', 21)
print(sentence)
# LIST
dognames = ["Fido", "Sean", "Sally", ... | [
"olson.lisa94@gmail.com"
] | olson.lisa94@gmail.com |
a6bec2e6e27892e9e71ddf65399e880ac78e4293 | f00ad57c98e554470a72511dda7a7bfd160aca19 | /linear_structure/stack/infix_expression_ui.py | 5a43f72bf018cb2935ef1500165bb647398f3437 | [] | no_license | fanzhangg/algorithm-problems | d60115210aaaffcd094b34b9db5b46dadf93fe9e | 43b111ad625f197ba0905abceab9ee4484284e08 | refs/heads/master | 2021-07-12T20:24:46.265700 | 2020-07-06T17:58:31 | 2020-07-06T17:58:31 | 171,220,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from infix_expression import *
def eval_infix_input():
while True:
infix = input(">>>")
if not infix:
print("Session ended. Thanks for using!")
break
try:
postfix = infix_to_postfix(infix)
answer = eval_postfix(postfix)
if int(ans... | [
"vanadiumzhang@gmail.com"
] | vanadiumzhang@gmail.com |
7ed072fa1524c95c0ada3f899e91a7dcbcfd91de | 9897061cfd34babf80616ff21a20c30db0212970 | /server/account/models.py | a01557b1bd74e7b11b8ff7b13401a7a631636ebe | [
"MIT"
] | permissive | Samhaina/mahjong-portal | f310553c5df13e122f3e89d05a9867d0f122d4f1 | 4cdbd8bd61655584c25a437b3d5cab053507b2f4 | refs/heads/master | 2020-03-16T22:10:20.864718 | 2018-10-11T00:45:22 | 2018-10-11T00:45:22 | 133,029,373 | 0 | 0 | null | 2018-05-11T11:05:41 | 2018-05-11T11:05:41 | null | UTF-8 | Python | false | false | 287 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from tournament.models import Tournament
class User(AbstractUser):
is_tournament_manager = models.BooleanField(default=False)
managed_tournaments = models.ManyToManyField(Tournament, blank=True)
| [
"lisikhin@gmail.com"
] | lisikhin@gmail.com |
6631cd057d686d0a0d7c910975132247c9c16828 | 4e30c855c253cc1d972d29e83edb9d5ef662d30a | /approval/models/returns.py | fc4920552b9ab0a32ad1d864ac946c3732809dab | [
"MIT"
] | permissive | rajeshr188/django-onex | 8b531fc2f519d004d1da64f87b10ffacbd0f2719 | 0a190ca9bcf96cf44f7773686205f2c1f83f3769 | refs/heads/master | 2023-08-21T22:36:43.898564 | 2023-08-15T12:08:24 | 2023-08-15T12:08:24 | 163,012,755 | 2 | 0 | NOASSERTION | 2023-07-22T09:47:28 | 2018-12-24T17:46:35 | Python | UTF-8 | Python | false | false | 3,919 | py | from django.contrib.contenttypes.fields import GenericRelation
from django.db import models, transaction
from django.db.models import Sum
from django.urls import reverse
from approval.models import ApprovalLine
from contact.models import Customer
from dea.models import Journal, JournalTypes
from product.models import ... | [
"rajeshrathodh@gmail.com"
] | rajeshrathodh@gmail.com |
b4e8b03b8387462c961ea36f580a145007ada11a | 38b68b2202726bcdea32271448fea22554db6121 | /BOJ/Silver/1992.py | 3b0a539d575b9951914cdb95f3dbd52b1b69e1cd | [] | no_license | Soohee410/Algorithm-in-Python | 42c4f02342dc922e44ee07e3a0e1d6c0a559e0bb | fbc859c092d86174387fe3dc11f16b616e6fdfab | refs/heads/master | 2023-05-06T13:07:19.179143 | 2021-05-14T14:32:44 | 2021-05-14T14:32:44 | 336,232,129 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | def QuadTree(n, cp, x, y):
if n == 1:
return cp[x][y]
cp1 = QuadTree(n // 2, cp, x, y)
cp2 = QuadTree(n // 2, cp, x, y + n // 2)
cp3 = QuadTree(n // 2, cp, x + n // 2, y)
cp4 = QuadTree(n // 2, cp, x + n // 2, y + n // 2)
if cp1 == cp2 == cp3 == cp4 and len(cp1) == 1:
return cp... | [
"ggohee0410@gmail.com"
] | ggohee0410@gmail.com |
0f3cc4a2087d8125cc761a1644c51c12e6c814d4 | d838bed08a00114c92b73982a74d96c15166a49e | /docs/data/learn/Bioinformatics/output/ch6_code/src/Stepik.6.9.CodeChallenge.2BreakDistance.py | a9ce5254b6d1201e2c2202e7b13a59eeda40ae42 | [] | no_license | offbynull/offbynull.github.io | 4911f53d77f6c59e7a453ee271b1e04e613862bc | 754a85f43159738b89dd2bde1ad6ba0d75f34b98 | refs/heads/master | 2023-07-04T00:39:50.013571 | 2023-06-17T20:27:05 | 2023-06-17T23:27:00 | 308,482,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from BreakpointGraph import BreakpointGraph
with open('/home/user/Downloads/dataset_240324_4.txt', mode='r', encoding='utf-8') as f:
data = f.read()
lines = data.split('\n')
p_list1 = [[int(x) for x in s.split(' ')] for s in lines[0][1:-1].split(')(')]
p_list2 = [[int(x) for x in s.split(' ')] for s in lines[1][1... | [
"offbynull@gmail.com"
] | offbynull@gmail.com |
35c792e078f9037cf38a3a3bd992d3b7bee00e0d | de17634e6b149d5828c1c78f7f5f5e1f6c17c4d0 | /nnvm/amalgamation/amalgamation.py | 310daa9d68e0e2cd33876364a3e4533f23cc45b5 | [
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | starimpact/mxnet_v1.0.0 | e135cc9e4c2711314d03cf1281a72b755f53144e | fcd6f7398ef811c3f8b01e7c9c16fb25c8d202bd | refs/heads/bv1.0.0 | 2022-11-10T09:09:11.966942 | 2018-07-13T04:59:30 | 2018-07-13T04:59:30 | 120,399,107 | 8 | 4 | Apache-2.0 | 2022-11-02T20:24:32 | 2018-02-06T03:54:35 | C++ | UTF-8 | Python | false | false | 2,628 | py | import sys
import os.path, re, StringIO
blacklist = [
'Windows.h',
'mach/clock.h', 'mach/mach.h',
'malloc.h',
'glog/logging.h', 'io/azure_filesys.h', 'io/hdfs_filesys.h', 'io/s3_filesys.h',
'sys/stat.h', 'sys/types.h',
'omp.h', 'execinfo.h', 'packet/sse-inl.h'
]
def get_sources(def_file):... | [
"mingzhang@deepglint.com"
] | mingzhang@deepglint.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.