blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
195624fb20c54ced15a65be4c1af7cb329cc3b1c | 31f9333012fd7dad7b8b12c1568f59f33420b0a5 | /Alessandria/env/lib/python3.8/site-packages/django/contrib/staticfiles/testing.py | 754bd296574e9e20066c857e41043e1bb11bfcc3 | [] | no_license | jcmloiacono/Django | 0c69131fae569ef8cb72b135ab81c8e957d2a640 | 20b9a4a1b655ae4b8ff2a66d50314ed9732b5110 | refs/heads/master | 2022-11-15T22:18:57.610642 | 2020-07-14T14:43:16 | 2020-07-14T14:43:16 | 255,125,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | from django.contrib.staticfiles.handlers import StaticFilesHandler
from django.test import LiveServerTestCase
class StaticLiveServerTestCase(LiveServerTestCase):
"""
Extend django.test.LiveServerTestCase to transparently overlay at test
execution-time the assets provided by the staticfiles app2 finders. T... | [
"jcmloiacono@gmail.com"
] | jcmloiacono@gmail.com |
e02f4a0c5b78cca43171902e5b8212d0c9bf443a | 2fe18f4babd857381c2251f1c2437ccdae234dd8 | /bookmarks/bookmarks/settings.py | 273af7e947825b97a57cf7f7558397f12874a3f2 | [] | no_license | Akhtyrtsev/bookmarks | 62f23d87c9442aaa2f56c73dd52ddbf8e456f7e1 | c8c52f1a9d4674a7187ad2408af7c090424a9738 | refs/heads/master | 2020-07-03T23:17:44.547699 | 2019-08-15T12:27:04 | 2019-08-15T12:27:04 | 202,083,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | """
Django settings for bookmarks project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"akhtyrtsev@gmail.com"
] | akhtyrtsev@gmail.com |
440d156989c7d14212ee7acec2a615fa1d0d34cc | f75f9c0e7192170a5846c0b726b10e645d5812b7 | /tests/test_models.py | 845a6eaf73b1e3765e21211184bc835c50c73de7 | [
"MIT"
] | permissive | mzbotr/betfair.py | 6feff7250fec38c31ef9c89fc15a057c935d7274 | dca804a4eaf999af54c53589e9559409fae26d6f | refs/heads/master | 2021-01-21T06:02:35.902807 | 2015-06-15T04:05:51 | 2015-06-15T04:05:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | # -*- coding: utf-8 -*-
import pytest
from enum import Enum
from schematics.types import StringType
from betfair.meta.types import EnumType
from betfair.meta.types import ModelType
from betfair.meta.models import BetfairModel
def test_field_inflection():
class FakeModel(BetfairModel):
underscore_separa... | [
"jm.carp@gmail.com"
] | jm.carp@gmail.com |
61511f49964ca71e6a0f6d8c8c5023828b810084 | 55909fd5282ea210f2221fc467f71f9ed41b0bef | /Aula 13/ex056.py | 5a65082bf9d2352ec7ab655f7557494215f5ccf6 | [
"MIT"
] | permissive | alaanlimaa/Python_CVM1-2-3 | 163ecd8c9145f2d332e6574d8923373b87a2e1f5 | 6d9a9bd693580fd1679a1d0b23afd26841b962a6 | refs/heads/main | 2023-06-18T16:07:59.930804 | 2021-07-20T16:22:01 | 2021-07-20T16:22:01 | 387,841,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | midade = Hmaior = nomevelho = contM20 = 0
for p in range(1, 5):
print('-=-' * 10)
print(f'{p}º pessoa ')
nome = str(input('Nome: ')).strip()
idade = int(input('Idade: '))
sexo = str(input('Sexo [F/M]: ')).strip()[0]
midade += idade
if p == 1 and sexo in 'Mm':
Hmaior = idade
n... | [
"alanlimabusiness@outlook.com"
] | alanlimabusiness@outlook.com |
169d1b34052601f7372457060040c76fbb71fe6b | 498d65615aeba1f7399344a32a23514e057fb30e | /decode_verify_jwt.py | 224caf0f4e6b9ae7531dc23017880f0ac6b66eee | [] | no_license | gautamamber/Blog-Serverless-chalice | 54fd128f76a3e918a170225bb49ded0874089a61 | e1735c5bb617bdb9720b5ecf847ea32833d7e5bc | refs/heads/master | 2020-08-04T15:17:44.405145 | 2019-10-02T14:33:32 | 2019-10-02T14:33:32 | 212,181,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | from urllib.request import urlopen
import json
import os
import time
from constant import Constants
from jose import jwk, jwt
from jose.utils import base64url_decode
region = 'us-west-2'
userpool_id = Constants.COGNITO_POOL_ID
app_client_id = Constants.COGNITO_CLIENT
keys_url = 'https://cognito-idp.{}.amazonaws.com/{}... | [
"ambergautam1@gmail.com"
] | ambergautam1@gmail.com |
f135349869cce6877593dc177603adef88a8dd07 | 8eb2e7d0b82e26b8999c1e2f14b4fe0f7dfeab65 | /scripts/run_slim_bpr_cython_baesyan.py | 8262e9aefd632f8690b346aca92562dd0f270d73 | [
"Apache-2.0"
] | permissive | edervishaj/spotify-recsys-challenge | c8d66cec51495bef85809dbbff183705e53a7bd4 | 4077201ac7e4ed9da433bd10a92c183614182437 | refs/heads/master | 2021-06-28T14:59:02.619439 | 2020-10-03T09:53:50 | 2020-10-03T09:53:50 | 150,008,507 | 0 | 0 | Apache-2.0 | 2020-10-03T09:53:51 | 2018-09-23T17:31:20 | Jupyter Notebook | UTF-8 | Python | false | false | 7,642 | py | from personal.MaurizioFramework.ParameterTuning.BayesianSearch import BayesianSearch
from personal.MaurizioFramework.ParameterTuning.AbstractClassSearch import DictionaryKeys
from utils.definitions import ROOT_DIR
import pickle
from personal.MaurizioFramework.SLIM_BPR.Cython.SLIM_BPR_Cython import SLIM_BPR_Cython
from ... | [
"scarlattitommaso@gmail.com"
] | scarlattitommaso@gmail.com |
26d7c06f88ff8b77fb6eb704335b28197ac7b3ac | 49c2492d91789b3c2def7d654a7396e8c6ce6d9f | /ROS/vrep_ros_ws/build/vrep_skeleton_msg_and_srv/catkin_generated/generate_cached_setup.py | 063f8efb2e5b20ed1335dd677a45fae2675a3513 | [] | no_license | DavidHan008/lockdpwn | edd571165f9188e0ee93da7222c0155abb427927 | 5078a1b08916b84c5c3723fc61a1964d7fb9ae20 | refs/heads/master | 2021-01-23T14:10:53.209406 | 2017-09-02T18:02:50 | 2017-09-02T18:02:50 | 102,670,531 | 0 | 2 | null | 2017-09-07T00:11:33 | 2017-09-07T00:11:33 | null | UTF-8 | Python | false | false | 1,508 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.p... | [
"gyurse@gmail.com"
] | gyurse@gmail.com |
d82de8f764febc64cf530f2dc46b710cd433c73d | e05f8d36c70336a8714cc260c02fe85ecee2e62e | /subject/tests/functional/v1/test_api.py | cfca2ac0204a25f545c1ca0124f77b4b5b32a902 | [
"Apache-2.0"
] | permissive | laoyigrace/subject | eafa442b5d9ebf83c78a01ce3bb5d088d08d620d | e6ed989fdc250917a19788112b22322b73b3550f | refs/heads/master | 2021-01-11T00:06:54.790751 | 2016-10-24T02:13:32 | 2016-10-24T02:13:32 | 70,754,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,886 | py | # Copyright 2011 OpenStack Foundation
# 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 requ... | [
"yibo_grace@163.com"
] | yibo_grace@163.com |
9121aa7623fa31fd8cad9ac6cd3485cb1656a44d | a36501f44a09ca03dd1167e1d7965f782e159097 | /app/modules/auth/params.py | c7dd1d359b51eb056962e44c9b871c1d299d8c4b | [
"Apache-2.0"
] | permissive | ssfdust/full-stack-flask-smorest | 9429a2cdcaa3ff3538875cc74cff802765678d4b | 4f866b2264e224389c99bbbdb4521f4b0799b2a3 | refs/heads/master | 2023-08-05T08:48:03.474042 | 2023-05-07T01:08:20 | 2023-05-07T01:08:20 | 205,528,296 | 39 | 10 | Apache-2.0 | 2023-08-31T00:18:42 | 2019-08-31T10:12:25 | Python | UTF-8 | Python | false | false | 2,162 | py | # Copyright 2019 RedLotus <ssfdust@gmail.com>
# Author: RedLotus <ssfdust@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | [
"ssfdust@gmail.com"
] | ssfdust@gmail.com |
a42609d3d57b7e0f3298e6dee88c7531e8b4df7b | 32c915adc51bdb5d2deab2a592d9f3ca7b7dc375 | /Chapter_11_programming_tasks/task_2.py | 57291c7a43269738ae347bef625ced59459b1aa2 | [] | no_license | nervig/Starting_Out_With_Python | 603c2b8c9686edcf92c1a90596d552b873fe6229 | d617ee479c7c77038331b5f262e00f59e8e90070 | refs/heads/master | 2023-02-25T07:14:12.685417 | 2021-02-02T18:45:00 | 2021-02-02T18:45:00 | 335,391,362 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import employee
def main():
name_of_employee = input('Enter a name of employee: ')
number_of_employee = input('Enter a number of employee: ')
annual_salary = input('Enter an annual salary: ')
annual_bonus = input('Enter an annual bonus: ')
data_of_shift_supervisor = employee.ShiftSupervisor(name_... | [
"solide@yandex.ru"
] | solide@yandex.ru |
23e77f8d02e5d307347f08baca5d033626e01412 | 51b7b81cce1e8943926c531ad8763af8fd4074dc | /1260.py | 8280b9c478f211dddcdc27f39f47b057c9ca1dae | [] | no_license | goodsosbva/BOJ_Graph | f65598591b07ea2f637cba2644bdc81386afb36e | 34fe8bfec0543d9884869fe5ebbb536c6fcc3fbf | refs/heads/main | 2023-03-22T08:14:53.735351 | 2021-03-07T09:22:39 | 2021-03-07T09:22:39 | 338,587,428 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | N, M, V = map(int, input().split())
matrix = [[0] * (N + 1) for i in range(N + 1)]
for i in range(M):
a, b = map(int, input().split())
matrix[a][b] = matrix[b][a] = 1
visit_list = [0] * (N + 1)
def dfs(V):
visit_list[V] = 1 # 방문한 점 1로 표시
print(V, end=' ')
for i in range(1, N + 1):
... | [
"noreply@github.com"
] | goodsosbva.noreply@github.com |
ed1a80133b79485d1c7d0125da7309754e321eea | d922b02070c11c19ba6104daa3a1544e27a06e40 | /DSA_Project/venv/Scripts/easy_install-3.8-script.py | d71594c04a3b333adb75b4777054c951680c802e | [] | no_license | viharivnv/DSA | 2ca393a8e304ee7b4d540ff435e832d94ee4b2a7 | 777c7281999ad99a0359c44291dddaa868a2525c | refs/heads/master | 2022-10-15T15:26:59.045698 | 2020-06-17T15:55:33 | 2020-06-17T15:55:33 | 273,020,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!C:\Users\vihar\PycharmProjects\DSA_Project\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\... | [
"52350934+viharivnv@users.noreply.github.com"
] | 52350934+viharivnv@users.noreply.github.com |
ef40ec48bf2a0cb2ff75da74ffa77734efd92e46 | 7e34f45c4c046f01764583b6317f85200ddf2bcf | /tests/settings.py | 6b203371768fca78fd5a3bcd4c863f83fbb1ae04 | [
"BSD-3-Clause"
] | permissive | MarkusH/django-jellyglass | 3953de9fb840320db23a8b748df089da2aeb1013 | 2b7c8fcaac76f8833f2880b10f687552530a3ccb | refs/heads/master | 2021-01-18T15:09:08.904899 | 2018-12-03T16:41:06 | 2018-12-03T16:41:06 | 49,637,243 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | ALLOWED_HOSTS = []
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ":memory:",
}
}
DEBUG = True
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
c6866ffcb6663df60970fd0041ee61d604f921a5 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Differential_Pressure_Load_Shed_Status.py | 4f44b20dc9c3108fb3505cc8f10804105b148f22 | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Load_Shed_Status import Load_Shed_Status
class Differential_Pressure_Load_Shed_Status(Load_Shed_Status):
rdf... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
032be5db944974a1f32618e9395669e88e00c17e | 5dfbfa153f22b3f58f8138f62edaeef30bad46d3 | /old_ws/build/catkin_generated/order_packages.py | e6748be72199deb25e033f5d33a964cf1bf10700 | [] | no_license | adubredu/rascapp_robot | f09e67626bd5a617a569c9a049504285cecdee98 | 29ace46657dd3a0a6736e086ff09daa29e9cf10f | refs/heads/master | 2022-01-19T07:52:58.511741 | 2019-04-01T19:22:48 | 2019-04-01T19:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/bill/ros_ws/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/bill/ros_ws/devel;/opt/ros/kinetic".split(';') if "/home/bill/ros_w... | [
"alphonsusbq436@gmail.com"
] | alphonsusbq436@gmail.com |
74c1f4bbb34d65beac68174e7c7ab0e18c3f36e6 | f63c4eb29ce57319441f5469d1d049b63bc220de | /swu_cycle_variance/run333.py | 96b5bc1ea46f182e5b80cfcab1a1271e253d1f12 | [] | no_license | a-co/diversion_models | 0237642153668b16035699e9e734ff0538568582 | 69eed2687b1cd2b48f5717d15919eccd24a0eabc | refs/heads/main | 2023-05-02T19:04:26.333677 | 2020-06-18T20:50:18 | 2020-06-18T20:50:18 | 216,904,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,361 | py | SIMULATION = {'simulation': {'agent': [{'name': 'deployer_military', 'prototype': 'military_deployer'}, {'name': 'deployer_civilian', 'prototype': 'civilian_deployer'}, {'name': 'deployer_shared', 'prototype': 'shared_deployer'}], 'archetypes': {'spec': [{'lib': 'cycamore', 'name': 'DeployInst'}, {'lib': 'cycamore', 'n... | [
"acaldwel@wellesley.edu"
] | acaldwel@wellesley.edu |
d57bafa6b041e14b363221f5424fcc938e2a081a | 4d21da5a3d07f4d05b997e80119cd79692ac0d25 | /Leetcode/201-300/259. 3Sum Smaller.py | fc6828a904244248c20e44b9f93c23460bea2b66 | [] | no_license | ErinC123/Algorithm | 92b2789ec3b36c49f9e65f2e7a702bb4b732e8ba | 4544fee91e811a6625000921c32ad054df550f1e | refs/heads/master | 2021-06-17T14:03:33.955233 | 2017-06-18T21:20:55 | 2017-06-18T21:20:55 | 75,894,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | class Solution(object):
def threeSumSmaller(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
nums.sort()
ret = 0
for i in range(len(nums)):
j, k = i+1, len(nums)-1
while j < k:
if ... | [
"zhencao93@gmail.com"
] | zhencao93@gmail.com |
7935285b6302c1b7277f4c9d4939535c9636fe0d | 159da3fc63ccf20b80dc17bb44b53e9a5578bcfd | /arkav_is_api/arkavauth/migrations/0005_refactor_auth.py | f92058d0d724b71e6dab65b111c6f5e8e2a4a7d7 | [
"MIT"
] | permissive | arkavidia5/arkav-is | 4338829e7c0a9446393545316e46395e9df111fd | 6c6e8d091ead5bfff664d86f7903c62209800031 | refs/heads/master | 2021-07-16T03:49:15.900812 | 2019-02-08T18:08:32 | 2019-02-08T18:08:32 | 149,406,261 | 3 | 2 | MIT | 2018-11-09T16:49:17 | 2018-09-19T06:58:16 | Python | UTF-8 | Python | false | false | 2,458 | py | import arkav_is_api.arkavauth.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('arkavauth', '0004_user_email_confirmed'),
]
operations = [
migrations.RenameModel('Ema... | [
"jonathan.christopher@outlook.com"
] | jonathan.christopher@outlook.com |
32deaed41a4e6581445f42876563cf802299ebe7 | da7149f3182d2421e046828d30fc1c91c14d496d | /chapter16/coro_exc_demo.py | c9aa826582f4e4609e85504e132a7eb87f93559b | [] | no_license | tangkaiyang/fluent_python | 6db2825cfadccb70a886cb822026d69be4b03cc9 | 5f07072d8db5ddf43bfe913b3262b325a8f1ad35 | refs/heads/master | 2020-05-02T20:21:00.404872 | 2019-04-18T02:35:55 | 2019-04-18T02:35:55 | 178,188,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2019/4/12 16:18
# @Author : tangky
# @Site :
# @File : coro_exc_demo.py
# @Software : PyCharm
# 示例16-8 coro_exc_demo.py:学习在协程中处理异常的测试代码
class DemoException(Exception):
"""为这次演示定义的异常类型"""
def demo_exc_handling():
print('-> coroutine star... | [
"945541696@qq.com"
] | 945541696@qq.com |
05f1381ac472766b4cd06fbd8153c99cc502c0e1 | 84d891b6cb6e1e0d8c5f3e285933bf390e808946 | /Demo/PO_V6/TestCases/test_login_pytest.py | 174dcfab88ddcee38ccb2eb6b5ea51c6f4e0d99d | [] | no_license | zzlzy1989/web_auto_test | 4df71a274eb781e609de1067664264402c49737e | 3e20a55836144e806496e99870f5e8e13a85bb93 | refs/heads/master | 2020-05-24T10:37:29.709375 | 2019-10-28T06:14:31 | 2019-10-28T06:14:31 | 187,230,775 | 2 | 0 | null | 2019-06-20T11:06:32 | 2019-05-17T14:29:11 | null | UTF-8 | Python | false | false | 2,400 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Name: test_login_pytest
# Author: 简
# Time: 2019/6/20
from Demo.PO_V6.PageObjects.login_page import LoginPage
from Demo.PO_V6.PageObjects.index_page import IndexPage
from Demo.PO_V6.TestDatas import login_datas as ld
from Demo.PO_V6.TestDatas import Comm_Datas as cd
import... | [
"394845369@qq.com"
] | 394845369@qq.com |
cdd5a31a1454daea675c492521e6a22eed8d06bc | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /unistream_examples/get_agent_point_info.py | 0278d0f98ae5b4b9aca91d42c4b6f9d5fe4f01f8 | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
"""
Получение информации о точке предоставления услуги.
GET https://test.api.unistream.com/v1/agents/{agentId}/poses/{posId}
"""
if __name__ == '__main__':
from utils import get_today_RFC1123_date, get_authorization_header
from config ... | [
"gil9red@gmail.com"
] | gil9red@gmail.com |
fcdcbeba752542d4e128ddebf54c68d5df123be8 | 385c01f7337cf5031093147f6731251bfbf17430 | /lms/level/containers/get_by_id.py | d7e05c88e2f38349997208a7d052eb38bf54862a | [] | no_license | lucassimon/lmswebaula | 23a73d6d2d43c78a2f9e3b552113cf50a11a3587 | 671276426685968458f240faa93b313427fa32d9 | refs/heads/master | 2021-01-19T13:26:12.352308 | 2017-08-16T21:07:43 | 2017-08-16T21:07:43 | 88,088,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import six
class GetByIdRQ(object):
_level_id = None
_lms_level_id = None
def __init__(self, lms_level_id=None, level_id=None):
if lms_level_id:
if not isinstance(lms_level_id, six.integer_types):
rais... | [
"lucassrod@gmail.com"
] | lucassrod@gmail.com |
f68e80676e72be2e4597cabb98f6e8312c69fc60 | d9cd697f76565e8230a98909204a5c516437f977 | /tutorial/tutorial/settings.py | 7b7807db8743db25310455fe110dcac0eed68dba | [] | no_license | huazhicai/webspider | be20d0d3a248ef8cbfaab8e3d1fd0e8ac7551352 | a1defa3778956accbb7617c9a3798d02e0b175f6 | refs/heads/master | 2020-03-22T09:00:23.518744 | 2019-07-11T14:53:37 | 2019-07-11T14:53:37 | 139,807,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | # -*- coding: utf-8 -*-
# Scrapy settings for tutorial project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | [
"936844218@qq.com"
] | 936844218@qq.com |
01d3691dce55255c364bb881f05bb97a3c770ca9 | 5982cd8db693927e83cd99f8ea1acf4fc90b8b9b | /Configurations/ControlRegions/WgS/torqueBatch/configuration1.py | 7d9ce4b429ce76b6bac43226395ae897e4ab9636 | [] | no_license | cedricpri/PlotsConfigurations | 61fc78ce9f081fd910a25f8101ea8150a7312f25 | 5cb0a87a17f89ea89003508a87487f91736e06f4 | refs/heads/master | 2021-01-17T09:46:55.026779 | 2016-09-01T09:30:09 | 2016-09-01T09:30:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | # example of configuration file
tag = 'WgS'
# used by mkShape to define output directory for root files
outputDir = 'rootFile1'
# file with list of variables
variablesFile = '../variables.py'
# file with list of cuts
cutsFile = '../cuts.py'
# file with list of samples
samplesFile = 'samples1.py'
# file with l... | [
"d4space@gmail.com"
] | d4space@gmail.com |
ae734d529bcbe273e29551f3ccd8c250513c04ad | f0aba1aa9949cc6a8d3678c0b3ecb5503b470c17 | /dtc/__init__.py | d9f20e7ca90c628c2cccd70a6d6bceb53e2bd4f4 | [] | no_license | hugosenari/dtc | 788eafc1a92701332ae54e2f2d74491566d635dd | 9bb2e6f4f9180b7291a5daf6a35903e5c59e3fc4 | refs/heads/master | 2020-12-24T17:44:45.474422 | 2012-08-03T20:02:28 | 2012-08-03T20:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | '''
Created on Jun 30, 2012
@author: hugosenari
'''
import plugnplay
import logging
from os import path
from dtc.core import interfaces
from dtc.core.interfaces.module import _CoreModule
from dtc.core.interfaces.mainloop import MainLoop
from dtc import modules
class Dtc(object):
def __init__(self, dirs = []):
... | [
"hugosenari@gmail.com"
] | hugosenari@gmail.com |
6da75afc662601dd4bc0b2aaf0413dede6a4ac94 | 6df18031547b1fde808944b4c8f83d2766c95251 | /UoM_databases_with_python/assignment_2/tracks.py | 094f7bf6650220142fd1d777f5317ba3710277e3 | [] | no_license | skreynolds/UoM_data_science | 6edce9b3d3bf03b6dab6471346e40965464d6adb | 9636c0a784079445f585b830a1d093acea608d6a | refs/heads/master | 2020-05-20T23:06:36.560299 | 2019-06-01T02:30:09 | 2019-06-01T02:30:09 | 185,794,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | import xml.etree.ElementTree as ET
import sqlite3
conn = sqlite3.connect('../databases/sqldb_5.sqlite')
cur = conn.cursor()
# Make some fresh tables using executescript()
cur.executescript('''
DROP TABLE IF EXISTS Artist;
DROP TABLE IF EXISTS Genre;
DROP TABLE IF EXISTS Album;
DROP TABLE IF EXISTS Track;
CREATE TABL... | [
"shane.k.reynolds@gmail.com"
] | shane.k.reynolds@gmail.com |
3e108d215330ee3c14ab7f7957e3cbc55dfcb5f9 | aecad2b0e89d72aca6c80bf63c424ee7904257ce | /pending_deletes/named_entity_recognition/NER_co_occurrence.py | deeeaa377fae611e679786374f32a94ecd4dcd2c | [] | no_license | humlab/text_analytic_tools | fdf4ba814263672b05ec188aac9a059b55d085b6 | 32fc444ed11649a948a7bf59653ec792396f06e3 | refs/heads/master | 2022-03-02T06:56:29.223039 | 2019-10-28T13:06:49 | 2019-10-28T13:06:49 | 74,679,680 | 2 | 1 | null | 2019-10-26T21:33:23 | 2016-11-24T14:19:46 | Python | UTF-8 | Python | false | false | 2,705 | py |
import pandas as pd
# %%
writer = pd.ExcelWriter('C:\\TEMP\\papacy.xlsx')
# %%
#pope = 'benedict-xvi'
#pope = 'francesco'
pope = 'john-paul-ii'
#df = pd.read_excel('./Data/' + pope + '.xlsx', 'Data')
df = pd.read_excel('C:\\Users\\roma0050\\Documents\\Projects\\papacy_scraper\\data\\' + pope + '.xlsx', 'Data', dtype=... | [
"roger.mahler@hotmail.com"
] | roger.mahler@hotmail.com |
f1b9d705860e3e5f69e290b188025d10c52789f1 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/autograph/core/unsupported_features_checker.py | 9ecab32e6c5f01db35c77233cc55c757a9f80212 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d0644b74e1e6d4d41084b1c1d32d62fc2a1adb15cd7c6141bd2a62448c182854
size 1815
| [
"github@cuba12345"
] | github@cuba12345 |
f954afca286ead0f30eadda260fb7ed77017edd1 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FJZJJMM/YW_FJZJJMM_SZSJ_258.py | e1df1921dc57e77398bc293709c609467ced5724 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
bf342befc93f6e874f5a82c83db670ea0dcd7f9b | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/numpy/2016/8/system_info.py | 014223b745ac3bc735add615d462bac5093d83af | [] | 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 | 84,885 | py | #!/bin/env python
"""
This file defines a set of system_info classes for getting
information about various resources (libraries, library directories,
include directories, etc.) in the system. Currently, the following
classes are available:
atlas_info
atlas_threads_info
atlas_blas_info
atlas_blas_threads_info
... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
ca72163d672b64afaf83f1f5891e2c4f1c2d573c | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Shapely_numpy/source/numpy/doc/structured_arrays.py | 5289e6d0bd859f00231e416fc338c3c4d6e6ee3e | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 11,442 | py | """
=================
Structured Arrays
=================
Introduction
============
NumPy provides powerful capabilities to create arrays of structured datatype.
These arrays permit one to manipulate the data by named fields. A simple
example will show what is meant.: ::
>>> x = np.array([(1,2.,'Hello'), (2,3.,"Wo... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
7933e38da4d9057e66aacf8c9acc9ba0b3e8b4e3 | af61c369e3550643d47fba2445d9f279e412e15c | /basicSprite.py | 2f0bfb2df06b261977e9f782873c230385348b8d | [] | no_license | Rabidza/pygame_learningpython | 45e900b5a8458a14e7df317de16a9e7cd18737fa | ef58d9ca977e2ea1406200ce04c3a32a440be66a | refs/heads/master | 2020-06-03T15:13:38.419015 | 2015-02-18T16:16:30 | 2015-02-18T16:16:30 | 30,924,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import pygame
from helpers import *
class Sprite(pygame.sprite.Sprite):
def __init__(self, centerPoint, image):
pygame.sprite.Sprite.__init__(self)
# Set the image and the rect
self.image = image
self.rect = image.get_rect()
# Move the rect into the correct positio... | [
"neillhenning@gmail.com"
] | neillhenning@gmail.com |
67a20ce0e3e82ec860d6764209e162fd4fe77b4d | 00cb405170a6a9572bef0ec8f373813eada08c03 | /Game Structure/geometry/version5/myentitygroup.py | 48d7e8cdcb9636189cb9f36e9451420877bcb85d | [] | no_license | MarcPartensky/Python-Games | c0ad2857be5832d6029642bb0a96bc8e403a12e3 | ebfcaaf4a028eddb36bbc99184eb3f7a86eb24ed | refs/heads/master | 2022-09-03T00:04:16.402288 | 2022-08-12T17:10:22 | 2022-08-12T17:10:22 | 166,606,022 | 2 | 1 | null | 2021-03-07T16:20:15 | 2019-01-19T23:56:04 | Python | UTF-8 | Python | false | false | 11,746 | py | from mymanager import Manager
from myentity import Entity
from mymotion import Motion
from mygroup import Group
import numpy as np
import random
class EntityGroup(Group):
"""An entity group is a group of entities. Entity specific features are added."""
@staticmethod
def getCollided(group1, group2):
... | [
"marc.partensky@gmail.com"
] | marc.partensky@gmail.com |
a0b40c1e4cfc595d8bc11fa49ffb5e77e2d600c3 | 238ebc43c3d54d2842de75fd8ddf0b0b0261906e | /SimulateData.py | eb704550b17512faa02f5b718ec6ed67b6f373b5 | [] | no_license | johndowen/CrossMgr | 17c114ab80382b24ce0cdd228782bd000f513ea8 | fc9eaf8ae5d4919cef3f1a3680c169be70cf356b | refs/heads/master | 2021-06-28T03:14:41.682880 | 2017-09-17T00:35:26 | 2017-09-17T00:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,686 | py | import random
import bisect
from Names import GetNameTeam
def SimulateData( riders=200 ):
# Generate random rider events.
random.seed( 10101021 )
raceMinutes = 8
mean = 8*60.0 / 8 # Average lap time.
var = mean/20.0 # Variance between riders.
lapsTotal = int(raceMinutes * 60 / mean + 3)
raceTime = mean * laps... | [
"edward.sitarski@gmail.com"
] | edward.sitarski@gmail.com |
2ef45d0901e7aa9952c147ec2d1daccaef373028 | e5d130e183b5dea1b7aad23a047c703fa0d2b3bf | /lightbus/transports/pool.py | b680ac6858890624f59a6c14e96bddbe072a9cae | [
"Apache-2.0"
] | permissive | adamcharnock/lightbus | 4a86428b8203bfe98f77a32375ac961ef398ce16 | cf892779a9a9a8f69c789ffa83c24acfb7f9a336 | refs/heads/master | 2023-08-26T04:19:39.395735 | 2023-08-23T11:07:44 | 2023-08-23T11:07:44 | 94,617,214 | 193 | 22 | Apache-2.0 | 2023-08-10T21:21:51 | 2017-06-17T10:39:23 | Python | UTF-8 | Python | false | false | 7,438 | py | import threading
from inspect import iscoroutinefunction, isasyncgenfunction
from typing import NamedTuple, List, TypeVar, Type, Generic, TYPE_CHECKING
from lightbus.exceptions import (
TransportPoolIsClosed,
CannotShrinkEmptyPool,
CannotProxySynchronousMethod,
CannotProxyPrivateMethod,
CannotProxy... | [
"adam@adamcharnock.com"
] | adam@adamcharnock.com |
563dfccd2fd271a2ae0edc1613952e7947965a62 | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/global-and-local-inversions/288943653.py | 0f1c892c5fa61990ec2ad92c40c0f4af8ae7abd2 | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # title: global-and-local-inversions
# detail: https://leetcode.com/submissions/detail/288943653/
# datetime: Fri Dec 27 19:09:22 2019
# runtime: 388 ms
# memory: 13.4 MB
class Solution:
def isIdealPermutation(self, A: List[int]) -> bool:
N = len(A)
k = -1
i = 0
while i < N:
... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
3cb9259d4f4214fc9346777f14b80e8f08b66957 | e34dfe70b30e584d8b1992377b1b4f8a08235824 | /cloudmesh/common/console.py | 7042af40082ed1d6fcf2d07ae6ca9ec0509d795b | [
"Python-2.0",
"Apache-2.0"
] | permissive | juaco77/cloudmesh-common | 09efd91310f1d6fc5d34f60f4c34e63e8c6fc9ae | 0bb330da363b8edb9e509a8138a3054978a8a390 | refs/heads/master | 2020-06-08T05:04:18.070674 | 2019-05-17T10:33:13 | 2019-05-17T10:33:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,233 | py | """
Printing messages in a console
"""
from __future__ import print_function
import textwrap
import traceback
import colorama
from colorama import Fore, Back, Style
colorama.init()
def indent(text, indent=2, width=128):
"""
indents the given text by the indent specified and wrapping to the given width
... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
6f9cd1e5b7498d442628bca6592c84f90f1d02c0 | 82f993631da2871933edf83f7648deb6c59fd7e4 | /w1/L1/12.py | 4e40656a6ec9bba93b7855da255ff4c9ddd100ee | [] | no_license | bobur554396/PPII2021Summer | 298f26ea0e74c199af7b57a5d40f65e20049ecdd | 7ef38fb4ad4f606940d2ba3daaa47cbd9ca8bcd2 | refs/heads/master | 2023-06-26T05:42:08.523345 | 2021-07-24T12:40:05 | 2021-07-24T12:40:05 | 380,511,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # line = input()
# print(len(line))
'''
4
4 10 -1 100
'''
n = int(input())
# [<returning iter val> for <iter> in <list> condition ]
numbers = [int(n) for n in input().split()]
print(numbers)
# nums = []
# for n in numbers:
# nums.append(int(n))
# print(nums)
s = 0
for i in numbers:
if i > 0:
s += i
# pr... | [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
9304946f7f5ed9562d7a3dbb6c52486fd296a7a1 | 9ef502b92bd218e919c65513e835c15c32667e8f | /samsung_load_0113.py | 75e8319216cf77777569806bc31afb952c0b80c3 | [] | no_license | YoungriKIM/samsung_stock | 034bc586440ab04531bb8d0b951747377c340966 | f15b6a3ebc3db76f960fc8f138dba7e43e345ef4 | refs/heads/main | 2023-04-14T03:20:51.169497 | 2021-03-25T08:35:48 | 2021-03-25T08:35:48 | 351,362,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | import numpy as np
x_train = np.load('../data/npy/samsung_x_train.npy')
y_train = np.load('../data/npy/samsung_y_train.npy')
x_val = np.load('../data/npy/samsung_x_val.npy')
y_val = np.load('../data/npy/samsung_y_val.npy')
x_test = np.load('../data/npy/samsung_x_test.npy')
y_test = np.load('../data/npy/samsung_y_test.... | [
"lemontleo0311@gmail.com"
] | lemontleo0311@gmail.com |
e6ba2e66f4df8af86c5e31215b5c3d8973ecf055 | 81302ee42c1b3c25ce1566d70a782ab5525c7892 | /nr/nr_band_matching/autocorrelation_full_chain.py | aba89bd8971c7b2b106fb1a5a0ea7d38951568ae | [] | no_license | mdanthony17/neriX | 5dd8ce673cd340888d3d5e4d992f7296702c6407 | 2c4ddbb0b64e7ca54f30333ba4fb8f601bbcc32e | refs/heads/master | 2020-04-04T06:01:25.200835 | 2018-06-05T00:37:08 | 2018-06-05T00:46:11 | 49,095,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | #!/usr/bin/python
import sys, array, os
#sys.path.insert(0, '..')
import ROOT as root
from rootpy.plotting import Hist, Hist2D, Canvas, Legend
import nr_band_config
import numpy as np
import corner
import cPickle as pickle
import time, emcee
if len(sys.argv) != 5:
print 'Use is python perform_full_matching.py <filen... | [
"mda2149@columbia.edu"
] | mda2149@columbia.edu |
27f1d1e42412bfb3574bdec543ba0703469f2fce | 82f6a6c50a1fef2d7522a43cc4f60e5ff80b37a8 | /solutions/Missing Number/solution.py | 0bf89957ba6d64c0deea0d059f647ac75434429a | [
"MIT"
] | permissive | nilax97/leetcode-solutions | ca0f9545ce70975617738f053e0935fac00b04d4 | d3c12f2b289662d199510e0431e177bbf3cda121 | refs/heads/master | 2023-05-14T02:21:48.893716 | 2021-06-08T13:16:53 | 2021-06-08T13:16:53 | 374,466,870 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | class Solution:
def missingNumber(self, nums: List[int]) -> int:
return (len(nums) * (len(nums)+1))//2 - sum(nums)
| [
"agarwal.nilaksh@gmail.com"
] | agarwal.nilaksh@gmail.com |
173de47073bcfee2292415ce0e9b944d48e315cb | d912423117d96cd67d23bab87c0773a07d962cc1 | /backend/socket_chat/consumers/main.py | a923f06cb91d42b37282f3545803320df8b675de | [] | no_license | modekano/ChatApp | b98f9081235c976642d024d56d1531b5120a04cf | 22cca9f3d4c25a93ca255d6616f61773da757d18 | refs/heads/master | 2020-08-19T06:03:45.010063 | 2019-10-17T11:17:07 | 2019-10-17T11:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,557 | py | from backend.socket_chat.consumers.base import BaseConsumer
from channels.db import database_sync_to_async
from backend.profiles.models import Profile
from backend.socket_chat.consumers.dialog import DialogConsumer
class MainConsumer(DialogConsumer, BaseConsumer):
def __init__(self, *args, **kwargs):
sup... | [
"kostya.nik.3854@gmail.com"
] | kostya.nik.3854@gmail.com |
4d9b59df5f0fe4ca4796d0121a12dc0208a93d3e | f5b7b87d0de1459c284b6ebf3aa21c6a96e52207 | /broadgauge/views/auth.py | 8d91aca9aa0d2097097fb9062d97b809ab2611b1 | [] | no_license | iambibhas/broadgauge | cfbce9bbebdc5337918df7b378810a53c9a68f8b | 381816cb9c288b071b44f189d662611cdc57e58b | refs/heads/master | 2021-01-18T09:01:32.155941 | 2014-08-15T11:42:58 | 2014-08-15T11:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,323 | py | import web
import json
from .. import account
from .. import oauth
from .. import forms
from ..sendmail import sendmail
from ..flash import flash
from ..models import User, Organization
from ..template import render_template
urls = (
"/login", "login",
"/logout", "logout",
"/oauth/(github|google|facebook)... | [
"anandology@gmail.com"
] | anandology@gmail.com |
630c9af1fd5f87769d2cd87621e901ba2e383c7c | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn13 - objektni minobot/M-17021-1547.py | e7ab6dbf8eecabc84d9990edc02404615aaba381 | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,849 | py | class Minobot:
def __init__(self):
self.x=0
self.y=0
self.direction=90
self.tab=[]
def koordinate(self):
return self.x,self.y
def naprej(self, d):
self.tab.append(['naprej',d])
if self.direction == 0 or self.direction == 360:
... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
d4b371038a871ea6c4c51c8868534d2b5ff67817 | c333b3cfb05f4bc08a682ca5f4d70b212e9624ff | /punyty/objects.py | 45d95c22a7c1a12f50b8844fd42352e55fd3d51a | [
"MIT"
] | permissive | jsheedy/punyty | a450f7daaf9e8b2acf5d861ac258e07e762c46c6 | 34d5bffc4cf85985537e199567c5ba2aa9105a05 | refs/heads/master | 2020-05-09T19:58:37.665508 | 2019-12-25T18:22:00 | 2019-12-25T18:22:00 | 181,391,798 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,551 | py | from math import sqrt
import numpy as np
from .object3d import Object3D
class Tetrahedron(Object3D):
vertices = np.array([
[1, 1, 1],
[-1, -1, 1],
[1, -1, -1],
[-1, 1, -1],
], dtype=np.float64)
edges = (
(0, 1),
(1, 2),
(2, 3),
(1, 3),
... | [
"joseph.sheedy@gmail.com"
] | joseph.sheedy@gmail.com |
584f70937fd6dd88eaa1f8f64e86437ca7008d88 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc026/A/4566526.py | ac69b81f3ed3647b8383cbae78a92382afa0955c | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | n,a,b=map(int,input().split());print(min(n,5)*b+max(n-5,0)*a) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
8c958e900b806f0503625aae951c03d030a5cea1 | ebd6f68d47e192da7f81c528312358cfe8052c8d | /swig/Examples/test-suite/python/template_typedef_cplx4_runme.py | 25ac851fbff3855719300e610179db627047c152 | [
"Apache-2.0",
"LicenseRef-scancode-swig",
"GPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-only"
] | permissive | inishchith/DeepSpeech | 965ad34d69eb4d150ddf996d30d02a1b29c97d25 | dcb7c716bc794d7690d96ed40179ed1996968a41 | refs/heads/master | 2021-01-16T16:16:05.282278 | 2020-05-19T08:00:33 | 2020-05-19T08:00:33 | 243,180,319 | 1 | 0 | Apache-2.0 | 2020-02-26T05:54:51 | 2020-02-26T05:54:50 | null | UTF-8 | Python | false | false | 431 | py | import string
from template_typedef_cplx4 import *
#
# this is OK
#
s = Sin()
s.get_base_value()
s.get_value()
s.get_arith_value()
my_func_r(s)
make_Multiplies_double_double_double_double(s, s)
z = CSin()
z.get_base_value()
z.get_value()
z.get_arith_value()
my_func_c(z)
make_Multiplies_complex_complex_complex_compl... | [
"inishchith@gmail.com"
] | inishchith@gmail.com |
27ccdbea81862874e0b78a77232a7d471e5f184a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /Av2u6FKvzFvrtGEKS_18.py | 4e2d4cf4fdcb9ad90f1ec69e7cba9c1c762d567b | [] | 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 | 846 | py |
# Do not touch this starter code but implement the reverse function at the
# end of the LinkedList class
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
class LinkedList(object):
def __init__(self):
self.head = None
self.tail = None
def insert(self, data):
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
366e5b6c1921361a7577480414955fd30e18ee39 | 0547c3ebab814e3fdf2616ae63f8f6c87a0ff6c5 | /846.hand-of-straights.py | 1efee8792025199a30b3260fd14120bab6d55e5d | [] | no_license | livepo/lc | b8792d2b999780af5d5ef3b6050d71170a272ca6 | 605d19be15ece90aaf09b994098716f3dd84eb6a | refs/heads/master | 2020-05-15T03:57:15.367240 | 2019-07-30T03:11:46 | 2019-07-30T03:11:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | class Solution(object):
def isNStraightHand(self, hand, W):
"""
:type hand: List[int]
:type W: int
:rtype: bool
"""
| [
"qgmfky@gmail.com"
] | qgmfky@gmail.com |
b67b5e6d66ad477d22a129a6bb6faf2a37a69867 | ad846a63f010b808a72568c00de016fbe86d6c35 | /algotradingenv/lib/python3.8/site-packages/IPython/external/decorators/_numpy_testing_noseclasses.py | 9f8f382391de958a20ccb9a35664f5c7c66ba463 | [] | no_license | krishansinghal29/algotrade | 74ee8b1c9113812b1c7c00ded95d966791cf76f5 | 756bc2e3909558e9ae8b2243bb4dabc530f12dde | refs/heads/master | 2023-06-02T01:53:24.924672 | 2021-06-10T09:17:55 | 2021-06-10T09:17:55 | 375,641,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | # IPython: modified copy of numpy.testing.noseclasses, so
# IPython.external._decorators works without numpy being installed.
# These classes implement a "known failure" error class.
import os
from nose.plugins.errorclass import ErrorClass, ErrorClassPlugin
class KnownFailureTest(Exception):
"""Raise this exce... | [
"krishansinghal29@gmail.com"
] | krishansinghal29@gmail.com |
9a91b60c24903f61054fed747c3be85c66cb2793 | 256f817910dd698970fab89871c6ce66a3c416e7 | /1. solvedProblems/340. Longest Substring with At Most K Distinct Characters/340.py | e1fd7e173bc2c9b114189909699c70c7543f9303 | [] | no_license | tgaochn/leetcode | 5926c71c1555d2659f7db4eff9e8cb9054ea9b60 | 29f1bd681ae823ec6fe755c8f91bfe1ca80b6367 | refs/heads/master | 2023-02-25T16:12:42.724889 | 2021-02-04T21:05:34 | 2021-02-04T21:05:34 | 319,225,860 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,982 | py | # !/usr/bin/env python
# coding: utf-8
"""
Author:
Tian Gao (tgaochn@gmail.com)
CreationDate:
Sat, 11/28/2020, 20:48
# !! Description:
"""
import sys
from typing import List
sys.path.append('..')
from utils import binaryTree, nTree, singleLinkedList
from utils.utils import (
printMatrix,
printDict,
... | [
"tgaochn@gmail.com"
] | tgaochn@gmail.com |
ea693066e5c2cfa3a129e92b9162b3156c200ed6 | 60598454222bc1e6d352993f9c4cd164cd6cc9cd | /core/migrations/0014_auto_20200723_1127.py | f07013abc7d877cba2d16a2195b83a8886e01144 | [] | no_license | nicksonlangat/mychurch | 12be8911ce1497d7c6a595d06275f21ecf58b185 | e503828cab165c9edcde89b3ef6d7c06b5eb7fdb | refs/heads/master | 2023-08-10T15:36:06.208376 | 2020-07-23T09:52:19 | 2020-07-23T09:52:19 | 281,030,716 | 0 | 1 | null | 2021-09-22T19:35:09 | 2020-07-20T06:15:58 | Python | UTF-8 | Python | false | false | 498 | py | # Generated by Django 3.0.8 on 2020-07-23 08:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0013_attendance_status'),
]
operations = [
migrations.RemoveField(
model_name='service',
name='seat_capacity... | [
"nicksonlangat95@gmail.com"
] | nicksonlangat95@gmail.com |
78f3b9f5927206d15c77dd073f490b9202ab0fc2 | cac93d697f9b3a75f059d725dee0251a8a81bf61 | /robot/install/lib/python2.7/dist-packages/ur_dashboard_msgs/msg/_SetModeGoal.py | 7628590a2f33e2c657df2d3e8743b53b989e0882 | [
"BSD-3-Clause"
] | permissive | satvu/TeachBot | c1394f2833649fdd72aa5b32719fef4c04bc4f70 | 5888aea544fea952afa36c097a597c5d575c8d6d | refs/heads/master | 2020-07-25T12:21:34.240127 | 2020-03-09T20:51:54 | 2020-03-09T20:51:54 | 208,287,475 | 0 | 0 | BSD-3-Clause | 2019-09-13T15:00:35 | 2019-09-13T15:00:35 | null | UTF-8 | Python | false | false | 5,203 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_dashboard_msgs/SetModeGoal.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SetModeGoal(genpy.Message):
_md5sum = "6832df07338535cc06b3835f89ba9555"
_typ... | [
"sarahvu@mit.edu"
] | sarahvu@mit.edu |
e77b9bf7ab6d5437d6b040caef3e6915f04fffca | a71582e89e84a4fae2595f034d06af6d8ad2d43a | /tensorflow/python/data/experimental/kernel_tests/optimization/make_numa_aware_test.py | d79ae4387c868d4821ac65787ba0bc04d47cc7d3 | [
"Apache-2.0"
] | permissive | tfboyd/tensorflow | 5328b1cabb3e24cb9534480fe6a8d18c4beeffb8 | 865004e8aa9ba630864ecab18381354827efe217 | refs/heads/master | 2021-07-06T09:41:36.700837 | 2019-04-01T20:21:03 | 2019-04-01T20:26:09 | 91,494,603 | 3 | 0 | Apache-2.0 | 2018-07-17T22:45:10 | 2017-05-16T19:06:01 | C++ | UTF-8 | Python | false | false | 1,813 | py | # Copyright 2018 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
0430b585c6f5da83bef5507cb158267ac18d89c4 | 63b1a78452cb4204e501e023bd9f3c8a364b723c | /test_nbdev/_nbdev.py | 358f0ff246827f6c9ce7115b0bbb8ec347081e0d | [
"Apache-2.0"
] | permissive | teddyxiong53/test_nbdev | 03e22ef361a1768bc14f83cf617b8ab5fd172663 | 11d4ca82eedb45f4a3f687bd3e3d06336ebcbe9c | refs/heads/master | 2023-07-17T21:19:41.518320 | 2021-09-12T01:52:50 | 2021-09-12T01:52:50 | 405,512,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"say_hello": "00_core.ipynb"}
modules = ["core.py"]
doc_url = "https://teddyxiong53.github.io/test_nbdev/"
git_url = "https://github.com/teddyxiong53/test_nbdev/tree/master/"
def custom_doc_links(name): r... | [
"1073167306@qq.com"
] | 1073167306@qq.com |
241cafabc1786d18738a3dbb2c5762712ff8cf93 | 98ca37f5dd2751efaa060cca19e0b83f871d7765 | /sdk/translation/azure-ai-translation-document/tests/test_all_document_statuses.py | 57e1a2f437a4cfaf8be9034e89d309b760822451 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | jayhebe/azure-sdk-for-python | 5ea99732ebb9929d3f6f77c08cc640d5915970b1 | f4455f85d9fe747fa4de2fdc691b975c07bfeea5 | refs/heads/main | 2023-06-24T01:22:06.602194 | 2021-07-28T02:12:25 | 2021-07-28T02:12:25 | 390,290,984 | 1 | 0 | MIT | 2021-07-28T09:23:46 | 2021-07-28T09:23:46 | null | UTF-8 | Python | false | false | 8,190 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from datetime import datetime
import functools
from testcase import DocumentTranslationTest
from preparer import DocumentTranslationPreparer, DocumentTra... | [
"noreply@github.com"
] | jayhebe.noreply@github.com |
f06015cdef49de3c91fb4a6212eece1e0d38b437 | c0bc042e73825a89949c1df1daefc41796903ae1 | /youtube/urls.py | aac35fa9fa3fba7ce66c1b936fd40c853849efae | [] | no_license | Pennylele/pennyfang_portfolio | 389aa93f392701ef5fa4f1a129d98c0ddd373dbc | b29706123b860d2378d89f0daa462b33e4609a68 | refs/heads/master | 2023-09-05T11:33:29.847845 | 2021-11-24T19:32:15 | 2021-11-24T19:32:15 | 325,154,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | from .views import VideoListView, SearchResultsView, FilterByViews, VideoDetailView, Sync
from django.urls import path
app_name='youtube'
urlpatterns = [
path('', VideoListView.as_view(), name='home'),
path('search/', SearchResultsView.as_view(), name='search_results'),
path('sort-by-views/', FilterByView... | [
"fangle0121@gmail.com"
] | fangle0121@gmail.com |
5bd4b629e2c1439c220548e9247835c48992f28e | fac96b4c97150e02f1405f7430c89b115e4c27f7 | /ch08/ex8-20.printing_models.py | bfef927128761d040af4e85f8ced90253a583a32 | [] | no_license | gustavonvp/PYTHON-CRASH-COURSE | 37478990ff3c3c368da505eb9e5a35dee5d1960b | 8033e2eb84cf6d85fd4ff42ae0550f38dcd23f62 | refs/heads/master | 2023-04-03T00:42:20.333183 | 2017-10-24T05:47:01 | 2017-10-24T05:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # Start whith some designs that need to be printed.
unprinted_designs = ['iphone case', 'robot pendant', 'dodecahedron']
completed_models = []
# Simulate printing each design, until none are left.
# Move each design to completed_models after printing.
while unprinted_designs:
current_design = unprinted_designs.po... | [
"freebz@hananet.net"
] | freebz@hananet.net |
0a7e4ac3a6aa381a2be9b21e6ff39af814db7972 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/joblib/parallel.py | dff07a7420ad4d2662baa74a296be91ffc236c13 | [
"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 | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:10afb49d59c3778a8fd053bbec2d63b85f3b24f63a308df37f309126a62f3571
size 46534
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
439bbcad449efc5d0400e7a0ddcae109c2ef7bc2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02682/s885339008.py | 44ace31b98dd71329482c26565d401a8c6238465 | [] | 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 | 90 | py | a,b,c,k=list(map(int,input().split()))
if k<=a+b:
print(min(a,k))
else:
print(2*a-k+b) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5d8c2c21c425289bf070970045fc338486eb2e08 | 66f383fec502102bfec58ed8cb9c43a71e599c55 | /apps/accounts/events.py | f34b3398d34130125064588eeea3a67c4b10f9ab | [
"MIT"
] | permissive | hacktoolkit/django-htk | 0a984a28f7fbc7eed8e2b1975d210792ddbee829 | 935c4913e33d959f8c29583825f72b238f85b380 | refs/heads/master | 2023-08-08T11:52:54.298160 | 2023-07-21T19:08:37 | 2023-07-21T19:08:37 | 15,924,904 | 210 | 65 | MIT | 2023-09-08T23:59:28 | 2014-01-15T04:23:40 | Python | UTF-8 | Python | false | false | 1,082 | py | # Python Standard Library Imports
# Third Party (PyPI) Imports
import rollbar
# HTK Imports
from htk.utils import htk_setting
from htk.utils.notifications import slack_notify
def failed_recaptcha_on_login(user, request=None):
extra_data = {
'user' : {
'id': user.id,
'username': u... | [
"hello@jontsai.com"
] | hello@jontsai.com |
a70d21ed2a48720e2b9c9a258bcb1b746dda2e1a | 73e277935ef28fd05935c93a3f155c9cc6dc6de7 | /ctf/crypto/source/rbtree/rb2.py | 81ec357f0f8e932791d02d3999f89d0fbf068e95 | [] | no_license | ohmygodlin/snippet | 5ffe6b8fec99abd67dd5d7f819520e28112eae4b | 21d02015492fb441b2ad93b4a455dc4a145f9913 | refs/heads/master | 2023-01-08T14:59:38.618791 | 2022-12-28T11:23:23 | 2022-12-28T11:23:23 | 190,989,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,501 | py | # -*- coding: utf-8 -*-
BLACK = 0
RED = 1
#graphic elements of rbtree for printing
VC = '│'
HC = '─'
SIZE = 3
RIG = '┌' + HC * SIZE
LEF = '└' + HC * SIZE
SP = chr(32)
IND1 = SP * (SIZE + 1)
IND2 = VC + SP * SIZE
class rbnode(object):
def __init__(self, key=None, value=None, color=BLACK,left=None,right=None,p=None... | [
"laitaizong@gmail.com"
] | laitaizong@gmail.com |
cb662f3f1ec68283494e7dd6ab627411ce475ddd | 4bd818bc9bd83ed39c9d48b0e4e4821a2b8c45d9 | /src/etherollapp/etheroll/customtoolbar.py | d31f906fb38e24b9465769aeaa3b7894757e17a9 | [
"MIT"
] | permissive | AndreMiras/EtherollApp | 8ef158e9e5886922bb56a42d836daa392e5d5f2e | 2ccc30fad736a6fee0cba8b99c521bee6ad13087 | refs/heads/develop | 2021-09-11T14:41:04.753290 | 2021-09-01T07:28:44 | 2021-09-01T07:28:44 | 125,426,260 | 59 | 29 | MIT | 2021-06-08T20:29:42 | 2018-03-15T21:07:28 | Python | UTF-8 | Python | false | false | 846 | py | from kivy.app import App
from kivy.clock import Clock
from kivymd.toolbar import Toolbar
from etherollapp.etheroll.ui_utils import load_kv_from_py
load_kv_from_py(__file__)
class CustomToolbar(Toolbar):
"""Toolbar with helper method for loading default/back buttons."""
def __init__(self, **kwargs):
... | [
"andre.miras@gmail.com"
] | andre.miras@gmail.com |
b0fe4b6f20442f6ba76f885dbb49a445c8df729a | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/d59101416366fa8d50bd2d8218e772b2c6a8bd7f-<remove_from_device>-fix.py | 58894645341f61f607af0fa3f9de1bd569631b46 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | def remove_from_device(self):
name = self.want.name
if self.want.parent_policy:
uri = 'https://{0}:{1}/mgmt/tm/security/firewall/policy/{2}/rules/{3}'.format(self.client.provider['server'], self.client.provider['server_port'], transform_name(self.want.partition, self.want.parent_policy), name.replace('/... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
ac528187a330a1170469d7253b64bf4680d05ce3 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_evaporating.py | c26673a9d07507032d353945f4ce1d7da9ede1af | [
"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 | 261 | py |
from xai.brain.wordbase.verbs._evaporate import _EVAPORATE
#calss header
class _EVAPORATING(_EVAPORATE, ):
def __init__(self,):
_EVAPORATE.__init__(self)
self.name = "EVAPORATING"
self.specie = 'verbs'
self.basic = "evaporate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
04a50dc0e33be89b7e0b3dcf0a41fb02d629f963 | b0cdbad299f6174bfdb0fba173dbcf3889b82209 | /Object Oriented Programming/oops/exercise_4.py | 57620e40b0f7418b80594400b89402e36f343253 | [] | no_license | deesaw/PythonD-06 | a33e676f1e0cfc13b4ea645c8b60547b198239ac | 3c6f065d7be2e3e10cafb6cef79d6cae9d55a7fa | refs/heads/master | 2023-03-18T08:24:42.030935 | 2021-03-02T14:15:09 | 2021-03-02T14:15:09 | 343,797,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | class Dog(object):
def speak(self):
print( "bhou..bhou" )
def guard(self):
print( "I am guarding your home" )
class Cat(object):
def speak(self):
print( "meau..meau" )
def hunt(self):
print( "I am hunting mice" )
class Dd(Dog):
def hobby(self):
print( "Biti... | [
"69420960+deesaw@users.noreply.github.com"
] | 69420960+deesaw@users.noreply.github.com |
29a1a2c46aa99f941385f809339cfe85914cf4d6 | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/scrapy/utils/sitemap.py | c9f5b4ef42d0d29efc71b43d2c9e9ba8ded9a1a6 | [] | no_license | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | """
Module for processing Sitemaps.
Note: The main purpose of this module is to provide support for the
SitemapSpider, its API is subject to change without notice.
"""
from urllib.parse import urljoin
import lxml.etree
class Sitemap:
"""Class to parse Sitemap (type=urlset) and Sitemap Index
(... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
653e892c9b0e8d7676e7419a4cd8223861cf33d8 | 4912cbd47c19c58d142e6833911d70f5ea037357 | /question_bank/reverse-string/reverse-string.py | c47284c0fefc2d681bb7e99d7485ae06dcaf5e97 | [
"Apache-2.0"
] | permissive | yatengLG/leetcode-python | a09a17cd9e60cafd9ff8ca9c068f5b70719c436f | 5d48aecb578c86d69835368fad3d9cc21961c226 | refs/heads/master | 2023-07-13T16:10:01.920716 | 2021-09-06T02:51:46 | 2021-09-06T02:51:46 | 286,969,109 | 13 | 6 | null | 2021-02-16T10:19:44 | 2020-08-12T09:13:02 | Python | UTF-8 | Python | false | false | 643 | py | # -*- coding: utf-8 -*-
# @Author : LG
"""
执行用时:36 ms, 在所有 Python3 提交中击败了98.98% 的用户
内存消耗:14.4 MB, 在所有 Python3 提交中击败了19.40% 的用户
解题思路:
双指针。分别指向列表首尾,然后交换指针指向元素
"""
class Solution:
def reverseString(self, s: List[str]) -> None:
"""
Do not return anything, modify s in-place instead.
"""
... | [
"767624851@qq.com"
] | 767624851@qq.com |
d28f93833de104995b112c67f309aeca3665e1a5 | 8e75f2ba056e5bd75647f1e3f9773e1015c0dd0e | /628_maximum_product_of_three_numbers.py | 9df4c2022f676107d77fa0ca3142287a66e826c7 | [] | no_license | eazow/leetcode | 96cbcba143ce04c6e83c5c985e19320f48c60b0d | c1c5ee72b8fe608b278ca20a58bc240fdc62b599 | refs/heads/master | 2022-12-10T00:06:06.676066 | 2022-11-29T09:02:04 | 2022-11-29T09:02:04 | 46,109,860 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | class Solution(object):
def maximumProduct(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums = sorted(nums)
return max(nums[-3] * nums[-2] * nums[-1], nums[0] * nums[1] * nums[-1])
assert Solution().maximumProduct([1,2,3,4]) == 24
assert Solution().maximumP... | [
"eazow@163.com"
] | eazow@163.com |
9848cbcc79703b08c9c0e9ee9bbbd69fb4c86624 | b7add0d1b1effc50b27d3316fa5889a5227e5b19 | /Atlasbuggy/atlasbuggy/files/videofile.py | 205f824be3d6e10d3c1e8934bf447a376387c7fd | [] | no_license | Woz4tetra/Atlas | efb83a7c7b2698bf8b36b023f7aa573cc38284f6 | c7380868a9efef9d1594ed7aa87187f03a7e4612 | refs/heads/master | 2020-04-04T06:25:50.657631 | 2017-04-05T01:53:15 | 2017-04-05T01:53:15 | 50,269,756 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,588 | py | import cv2
import time
from atlasbuggy.files.atlasbuggyfile import AtlasWriteFile, AtlasReadFile
from atlasbuggy.files.logfile import default_log_dir_name, default_log_file_name
class VideoPlayer:
def __init__(self, video_name, video_dir, window_name, capture, width=None, height=None, frame_skip=0,
... | [
"woz4tetra@gmail.com"
] | woz4tetra@gmail.com |
08b3051adaf303a2d19d7736a97fbe771d06b6ae | 80760d4c8a6b2c45b4b529bdd98d33c9c5509438 | /Practice/atcoder/ABC/130/src/d2.py | 82230a1e0cc7c786640ababca689faaaffcd8866 | [] | no_license | prrn-pg/Shojin | f1f46f8df932df0be90082b475ec02b52ddd882e | 3a20f1122d8bf7d95d9ecd205a62fc36168953d2 | refs/heads/master | 2022-12-30T22:26:41.020473 | 2020-10-17T13:53:52 | 2020-10-17T13:53:52 | 93,830,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # 尺取の練習と聞いて
n, k = map(int, input().split())
arr = list(map(int, input().split()))
ans = 0
r = 0
tmp_sum = 0
for l in range(n):
# 条件を満たすまで右端を伸ばす
while r < n and tmp_sum < k:
tmp_sum += arr[r]
r += 1
# whileを抜けた時は条件を満たしている
if r == n:
while tmp_sum >= k and l <= n:
tmp_... | [
"h4l@yahoo.ne.jp"
] | h4l@yahoo.ne.jp |
c112d5ce3c5633ee755fd9211c360485d7c5e38f | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/surface/apigee/operations_describe_test.py | e7433df43a3aae0f564d4c7c695e60939f77816c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 1,920 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 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... | [
"actions@github.com"
] | actions@github.com |
7ac3108667a2fc73e496511aca4aa994b5413c18 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/bps_cs22950-10/sdB_bps_cs22950-10_coadd.py | e98ff4ffa0393f2b27e60d204c16b04f0ab364d4 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[304.840292,-15.674492], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_bps_cs22950-10/sdB_bps_cs22950-10_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
9d96d467699e2db6bbc9dacc1e91761aab92a6dc | 2d921bb03eade0763ddb3a9cc5cb637730ecbde1 | /python/plot/PlotStyle.py | 12d2ecb4732ab7424ed515bca8ebc8ce4145f6a4 | [] | no_license | rmanzoni/WTau3Mu | 10c57971b80f9769578284abd69009008901eea7 | 5ad336df976d5a1b39e4b516641661921b06ba20 | refs/heads/92X | 2021-01-18T15:10:41.887147 | 2019-05-09T12:48:00 | 2019-05-09T12:48:00 | 84,342,825 | 0 | 7 | null | 2018-07-19T09:08:19 | 2017-03-08T16:35:42 | Python | UTF-8 | Python | false | false | 5,537 | py | from ROOT import gROOT, gStyle, TFile, TH1F, TH2F, TCanvas, TLegend, TF1, TGraph, TVectorF, TGraphErrors, TObjArray, THStack, TStyle, TGaxis, kWhite
""" Initialises default ROOT plot style.
In order to support old instances of the PlotStyle that
depended on a given ntuple, it is setup as a class.
"""
class P... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
635bd4085a4fdd6fef954d62dc513a0220d56cfd | 04b494a2286e7d0ec3bbe8d25c15d575486a0f91 | /_exercises/exercise113/exercise113.py | b555ca05f49c798a2c6370f04eec96053da588c3 | [] | no_license | ViniciusGranado/_studies_Python | ea6adc35edccfbd81a67a613e8cd468fd8485856 | af645fa777a408a8ff1b8ed89911971f5b537ac7 | refs/heads/master | 2023-02-01T19:57:04.117047 | 2020-12-19T00:56:10 | 2020-12-19T00:56:10 | 258,855,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | def read_int(msg):
while True:
try:
number = int(input(msg))
except (ValueError, TypeError):
print('[ERRO] Digite um número inteiro válido.')
print()
except KeyboardInterrupt:
print('[ERRO] Entrada de dados interrompida.')
print('Co... | [
"vinicius.r.granado@gmail.com"
] | vinicius.r.granado@gmail.com |
de89526204340fed105a0efb1a4cfd7137b26f44 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/tenth/rank_2i26_I.py | 4c80ed792391aea378782cf42541231cd379011d | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
a65a90b47466d6936a96eccf140c06ee21b57225 | ddf1267a1a7cb01e70e3b12ad4a7bfaf291edb3e | /src/user/migrations/0023_action_read_date.py | d87e85c86569ba17531d435462e2b08d515436fd | [
"MIT"
] | permissive | Garinmckayl/researchhub-backend | 46a17513c2c9928e51db4b2ce5a5b62df453f066 | cd135076d9a3b49a08456f7ca3bb18ff35a78b95 | refs/heads/master | 2023-06-17T04:37:23.041787 | 2021-05-18T01:26:46 | 2021-05-18T01:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.2.9 on 2020-01-10 20:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0022_action'),
]
operations = [
migrations.AddField(
model_name='action',
name='read_date',
fiel... | [
"lightning.lu7@gmail.com"
] | lightning.lu7@gmail.com |
6b8fd04745c1d69c819cc2f7e2ca46f5d6b25e51 | de23310ac55a7e72e853ca43ebdbce28358a4bb9 | /models/residual_viz.py | 35bfe4f16c0edf9e74ad6977b2482c5ad2f72ede | [] | no_license | mehdidc/zoo | ea5f97b1402e9501db53cd418271614afe378dc0 | 194efb0098679c065de51b0f4d4864cb415b17f7 | refs/heads/master | 2020-04-28T02:28:37.576822 | 2016-10-31T06:06:21 | 2016-10-31T06:06:21 | 174,899,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,157 | py | #!/usr/bin/env python
"""
Lasagne implementation of CIFAR-10 examples from "Deep Residual Learning for Image Recognition" (http://arxiv.org/abs/1512.03385)
With n=5, i.e. 32-layer network from the paper, this achieves a validation error of 6.88% (vs 7.51% in the paper).
The accuracy has not yet been tested for the ot... | [
"mehdi@cherti.name"
] | mehdi@cherti.name |
03600cc8214045434b642323a45c09a881382679 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /syn_mem_corruption_3switch_fuzzer_mcs/intermcs_5_/replay_config.py | 7aef30971cd0c4b996594cb00d2313e431ebf28b | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import Replayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd='./pox.... | [
"b-github.com@wundsam.net"
] | b-github.com@wundsam.net |
1abd82cd32e985e35728a631c81c33ef0fe62b70 | 481ce69bd3611715fef0be99c655c95d67f16d5f | /riopy/tests/test_symops.py | a44f6bd76716d46e50bf17f299cbedb403e45b81 | [
"BSD-3-Clause"
] | permissive | fsimkovic/riopy | 0ffed18c72573e824affa97d5c17ca462c5f2031 | 5dc4083d1c0919d94ceeac802d3fb40748b947f3 | refs/heads/master | 2021-03-24T10:14:25.904758 | 2018-08-30T13:16:02 | 2018-08-30T13:16:02 | 117,836,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py |
import unittest
from riopy.symops import SymmetryOperator
class SymmetryOperatorTest(unittest.TestCase):
def test___init___1(self):
symops = SymmetryOperator.ops("P1")
self.assertTrue(len(symops) == 1)
self.assertTupleEqual((0.0, 0.0, 0.0), symops[0].t().as_double())
self.assertT... | [
"felixsimkovic@me.com"
] | felixsimkovic@me.com |
83a1bb3a2cdd1a52239b03c71eef467737b35324 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-4096.py | 8f4fbd00afb059796231d50db43e5910e4bdb267 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,757 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
59e1363d026e1cf5c641f40106aba606a342065e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_337/ch169_2020_06_21_16_48_03_433219.py | d50363959fd13d06ed505512e563e82d36dc80ab | [] | 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 | 390 | py | login = input('Login?')
lista = []
while login != 'fim':
if not login in lista:
lista.append(login)
else:
i = 1
k = True
while k:
login2 = login+str(i)
if not login2 in lista:
lista.append(login2)
k = False
i+=1
... | [
"you@example.com"
] | you@example.com |
c71e156f811307de345da807ee15cfe276b92a55 | f23c1741a63acd9d431077c4b2068e4072a72d51 | /permutation.py | a92b11d13ab718087d9f9ce651ba2472f6a711a6 | [] | no_license | Martin9527/LeetCodeTest | b188c997ab01a38201bd5ba792cdc104ca79d1d4 | 5f860c8fd2d7d7ff94eca6065d643cc4ea204abf | refs/heads/master | 2020-05-23T11:21:54.543063 | 2019-12-08T10:37:42 | 2019-12-08T10:37:42 | 186,735,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | class Solution(object):
def permute(self,nums):
size = len(nums)
if not size :
return []
result = []
curAns = []
usedNums = set()
self.backTrack(nums,size,curAns,usedNums,result)
return result
def backTrack(self,nums,size,curAns,usedNums,result):
if size == len(curAns):
import copy
ans = cop... | [
"="
] | = |
96aac0b4b4bb06d1a1361336110a66ef306f8784 | cbda89443b351bb2047180dad4e300c13dc3df7f | /Crystals/Morpurgo_sp_outer/Jobs/TIPS_Pc/TIPS_Pc_cation_neut_inner0_outer2/TIPS_Pc_cation_neut_inner0_outer2.py | a0c28b5d437cb4a23e82114742f6ee0128900f05 | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 6,693 | py | import sys
sys.path.append('../../../../../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
e5af3a05af1c55f4de514b9b82f99141101c9200 | 8aa0d1d407bb1c66d01261f7e2c4e9832e856a2d | /experiments/experiments_gdsc/hyperparameter/plots/plot_nmtf_gibbs_hyperparameter.py | dd3218e5fb59f547aca48d1125e82075eea0af28 | [] | no_license | garedaba/BNMTF_ARD | 59e3ec1dbfd2a9ab9f4ec61368ec06e3783c3ee4 | 0a89e4b4971ff66c25010bd53ee2622aeaf69ae9 | refs/heads/master | 2022-01-16T06:57:12.581285 | 2018-06-10T10:22:12 | 2018-06-10T10:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | """
Plot the performances of NMTF Gibbs for different hyperparameter values, for
three different sparsity levels.
"""
import matplotlib.pyplot as plt
import numpy
''' Plot settings. '''
MSE_min, MSE_max = 600, 1400
values_lambda = [0.0001, 0.001, 0.01, 0.1, 1., 10., 100.]
fractions_unknown = [0.2, 0.5, 0.8]
folde... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
94e70bf6deabed67dd9378651c4c5af909762b47 | 0d8486c1d55c40bebea7c5428930f18165d2d0e9 | /tests/asp/AllAnswerSets/tight/7-queens.asp.test.py | 58599c3c79d3455d9b87dcc51342b0dc08b3fe6f | [
"Apache-2.0"
] | permissive | bernardocuteri/wasp | 6f81bf6aa8fb273c91bbf68ecce4ecb195a55953 | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | refs/heads/master | 2021-06-08T11:58:25.080818 | 2020-10-05T16:57:37 | 2020-10-05T16:57:37 | 124,245,808 | 0 | 0 | Apache-2.0 | 2018-03-07T14:13:16 | 2018-03-07T14:13:16 | null | UTF-8 | Python | false | false | 11,082 | py | input = """
1 2 0 0
1 3 0 0
1 4 0 0
1 5 0 0
1 6 0 0
1 7 0 0
1 8 0 0
1 9 0 0
1 10 7 6 11 12 13 14 15 16 17
1 11 7 6 10 12 13 14 15 16 17
1 12 7 6 10 11 13 14 15 16 17
1 13 7 6 10 11 12 14 15 16 17
1 14 7 6 10 11 12 13 15 16 17
1 15 7 6 10 11 12 13 14 16 17
1 16 7 6 10 11 12 13 14 15 17
1 17 0 0
1 18 7 6 19 20 21 22 23 2... | [
"carminedodaro@gmail.com"
] | carminedodaro@gmail.com |
285b5d35eb6f94c89715ad4fe68307437cf9ffc0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/302/92006/submittedfiles/testes.py | 8d4dc26344d08e3707ea45e11e79240ce3625d53 | [] | 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 | 3,405 | py | lista1 = [1, 3, 4,]
lista1[len(lista1)-1]
print(len(lista1))
'''a = [8.0 , 5.0 , 10.0 , 5.0]
print(a)
print(len(a))
a.append(0.0)
print(len(a))
for i in range(len(a)-1, 0 , -1):
if i ==1:
a[1] = 2.0
else:
a[i] = a[i-1]
print(a)
print(len(a))
'''
'''
a = []
for i in range(1,5,1):
a.append(f... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7e74abaeb0078b3ee92242a7cc866c13d76bc37f | 81982a278946fab96d74e3f711c937647faec036 | /Trabalhos/a1.py | 32584fb6bf8a53c7a44f632933f6fc2cdb41d8aa | [] | no_license | juanengml/Prog1UTFPR | 3f1b71888a0883a4e12922a0c09cce622ca27458 | aca289ffece71b4ca4339fa8779a1d2a9076aecc | refs/heads/master | 2021-06-23T09:58:37.167188 | 2019-06-14T01:21:51 | 2019-06-14T01:21:51 | 145,451,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | #Escreva um programa que leia duas matrizes 3x3 e apresente na tela o resultado da multiplicacao destas matrizes.
import numpy as np
a = np.matrix('1 2 3 ; 4 5 6; 7 8 9')
b = np.matrix('1 2 3 ; 4 5 6; 7 8 9')
print np.dot(a,b)
| [
"juanengml@gmail.com"
] | juanengml@gmail.com |
4d56eaa289df490614282d92d296eda8adb8a58a | c43c88015f9498aed5f3b5a339d245c31781444e | /Free/plm/report/component_report.py | cbebbbcac4378084e142a272266da61b6cff36e8 | [] | no_license | mulaudzicalvin/perpul | 65106d41d5197fea17628ac1a7fa7e581d29d75e | 00e3a5ee1771d2e09a48460ca23c2e9c2ef507d6 | refs/heads/master | 2020-03-09T18:39:33.131420 | 2018-02-05T05:17:36 | 2018-02-05T05:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,346 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OmniaSolutions, Your own solutions
# Copyright (C) 2010 OmniaSolutions (<http://omniasolutions.eu>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
... | [
"daniel.podvesker@perpul.co"
] | daniel.podvesker@perpul.co |
7235263640152d56990e710466dad45c4b7f817f | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /mrex/metrics/tests/test_common.py | 27be6f705fd1d384f9a902c6518ff891fc0eb1e9 | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,155 | py |
from functools import partial
from itertools import product
from itertools import chain
from itertools import permutations
import numpy as np
import scipy.sparse as sp
import pytest
from mrex.datasets import make_multilabel_classification
from mrex.preprocessing import LabelBinarizer
from mrex.utils.multiclass impo... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
a5ea641c931a8768c01f47ceb5f09ed009af4204 | 633944f913050debf0764c2a29cf3e88f912670e | /v8/depot_tools/bootstrap-3.8.0b1.chromium.1_bin/python3/lib/python3.8/encodings/mbcs.py | 5f56e6e4b8e55e8e1447875202fe15cbdaa2a26d | [
"BSD-3-Clause",
"bzip2-1.0.6",
"SunPro",
"Apache-2.0"
] | permissive | bopopescu/V8-lgtm | 0474c2ff39baf754f556ef57619ceae93e7320fd | da307e2f7abfca5fa0e860a809de6cd07fd1b72b | refs/heads/master | 2022-02-16T19:10:54.008520 | 2019-09-25T07:51:13 | 2019-09-25T07:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | ../../../../.cipd/pkgs/2/_current/lib/python3.8/encodings/mbcs.py | [
"jundong.xjd@antfin.com"
] | jundong.xjd@antfin.com |
e4d38da92d86aa517c776e552be806858ea7e31e | 948d84d2e3fc04e353a11384d8570308174242f5 | /17-Numpy/numpy-indexing.py | 11653d3652d5b8b607738f0216cf7655bc401292 | [] | no_license | omerfarukcelenk/PythonMaster | a0084a800b8a41cd2ad538a7ca3687c26dc679ec | 0db8f8b0ea2e1c2d810c542068cfcf1a3615f581 | refs/heads/main | 2023-04-16T17:42:05.501904 | 2021-04-26T21:19:27 | 2021-04-26T21:19:27 | 361,896,109 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | import numpy as np
numbers = np.array([0,5,10,15,20,25,50,75])
result = numbers[5]
result = numbers[-1]
result = numbers[0:3]
result = numbers[:3]
result = numbers[3:]
result = numbers[::]
result = numbers[::-1]
numbers2 = np.array([[0,5,10],[15,20,25],[50,75,85]])
result = numbers2[0]
result = numbers2[2]
result = ... | [
"omerfar0133@gmail.com"
] | omerfar0133@gmail.com |
68d8399c5199cd6c1ac9a2c275edb439b8a5ab47 | c66955c6fc178955c2024e0318ec7a91a8386c2d | /programQuick/chapterEleven/mapIt.py | f66811ddbe725a952063e3f0d855d57f0bd18aa5 | [] | no_license | duheng18/python-study | a98642d6ee1b0043837c3e7c5b91bf1e28dfa588 | 13c0571ac5d1690bb9e615340482bdb2134ecf0e | refs/heads/master | 2022-11-30T17:36:57.060130 | 2019-11-18T07:31:40 | 2019-11-18T07:31:40 | 147,268,053 | 1 | 0 | null | 2022-11-22T03:36:51 | 2018-09-04T00:49:42 | Python | UTF-8 | Python | false | false | 353 | py | import webbrowser, sys, pyperclip
if len(sys.argv) > 1:
# Get address from command line.
address = ' '.join(sys.argv[1:])
else:
# Get address from clipboard.
pyperclip.copy('mapit 870 Valencia St, San Francisco, CA 94110')
address = pyperclip.paste()
print(address)
webbrowser.open('https://www.... | [
"emaildh@163.com"
] | emaildh@163.com |
a41fbaec0c7870b206597745a26e289cb91943e7 | 4c9c2940ef3a07e2756fcceddf01acd384ebde01 | /Python/[5 kyu] emirps.py | 4550d94ea211e128c3446713211ba9db63e83b25 | [
"MIT"
] | permissive | KonstantinosAng/CodeWars | 7d3501a605f7ffecb7f0b761b5ffe414e2f1983a | 157818ece648454e882c171a71b4c81245ab0214 | refs/heads/master | 2023-04-11T09:44:27.480064 | 2023-03-26T21:37:07 | 2023-03-26T21:37:07 | 245,296,762 | 6 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # see https://www.codewars.com/kata/55a29405bc7d2efaff00007c/train/python
from TestFunction import Test
def is_prime(num):
if num % 2 == 0: return False
for i in range(3, int(num**0.5+1), 2):
if (num % i) == 0:
return False
else:
return True
return False
def is_emrip(num):
s = int(''.... | [
"kwstantinos.agelopoulos@outlook.com"
] | kwstantinos.agelopoulos@outlook.com |
5d9ddcd5643b7d3a09a7a2df7d052784a9a314f5 | 30302d215a012a079edf05a4e14e932888385def | /ddht/v5_1/alexandria/typing.py | e73bd07c5b075b4ed6d6eac7f99be2677b7a8cae | [
"MIT"
] | permissive | NhlanhlaHasane/ddht | e54975a7fcf4e9bfa29771ee6b78c5e9a5991aff | 142911d134ff839f3f79ff8fe9e45d3fe5a58cd0 | refs/heads/master | 2023-05-31T05:09:06.371320 | 2021-06-03T22:31:22 | 2021-06-03T22:31:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from typing import NewType
ContentID = NewType("ContentID", bytes)
ContentKey = NewType("ContentKey", bytes)
| [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
da327466a9c5966169ed0e73790c57d204126c2b | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_74/244.py | 1aad3f70f9fbf37a7323274a79680d37008e458c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | #!/usr/bin/env python
# encoding: utf-8
import os
def parse_sequence(fileDescriptor):
# Returns a sequence to complete
f = fileDescriptor
sequence = f.readline()
sequence = sequence.split(' ')
n = int(sequence[0])
sequence_a = []
sequence_b = []
sequence_r = []
have_color = False... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
200a0c214acff2cccff7133ae68f381b0699de4b | d6265afea582ef9d0b282d0dbaf582ef2015a6f4 | /tests/satosa/metadata_creation/test_saml_metadata.py | 49cff97a4cadfb8c3cca7baeb70e08e9ac3e0e73 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | peppelinux/SATOSA | c94b0d2f7fa07b3b8a751f548b8166452e9e084f | 12d9f2532e334978e9a614946d77cc5b217b4383 | refs/heads/master | 2023-08-10T08:08:22.199322 | 2020-04-13T17:26:27 | 2020-04-13T17:26:27 | 180,346,947 | 3 | 0 | Apache-2.0 | 2021-08-24T08:23:33 | 2019-04-09T10:56:02 | Python | UTF-8 | Python | false | false | 18,113 | py | import copy
from base64 import urlsafe_b64encode
import pytest
from saml2.config import SPConfig, Config
from saml2.mdstore import InMemoryMetaData
from saml2.metadata import entity_descriptor
from saml2.sigver import security_context
from saml2.time_util import in_a_while
from satosa.metadata_creation.saml_metadata ... | [
"rebecka.gulliksson@umu.se"
] | rebecka.gulliksson@umu.se |
58bbcb0b913a6f6d65e9cc3f765cf80b1e6d8d8d | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/fabric/rssnmppol.py | 4738ca78412d8a6382b312d0f46b6ee434811e5c | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 8,086 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
4a7f9b779862e39bed7fde83a238b96e4b69f2f1 | fe4c3905ec0e2d8fa5100454c49a863bda3d05ab | /Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/IndirectResolution.py | 3fe3e42c49c3011afbab8d24a9adf8e2cf6fcb2b | [] | no_license | mkoennecke/mantid | 11f16fe573056d70c119c4d6fb6984b7008cb8e6 | c0a8e5d97cde6cc28abb8c7b1b5c056986a81fec | refs/heads/master | 2021-01-18T11:51:28.997458 | 2015-02-13T10:48:51 | 2015-02-13T10:48:51 | 11,472,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,587 | py | from mantid.simpleapi import *
from mantid.api import *
from mantid.kernel import *
from mantid import config, logger
class IndirectResolution(DataProcessorAlgorithm):
def category(self):
return 'Workflow\\Inelastic;PythonAlgorithms;Inelastic'
def summary(self):
return 'Creates a resolution ... | [
"dan@dan-nixon.com"
] | dan@dan-nixon.com |
435e90d2b0debc710dd2aca553b76e51ea39e688 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/operations/_big_data_pools_operations.py | 2b2366e730881713afa1086c0e769bf1a8d28656 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 6,664 | 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"
] | yunhaoling.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.