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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7cef6d955fd4d1a75af3860ab27581432f225c11 | 7d096568677660790479d87c22b47aae838ef96b | /stubs-legacy/System/ComponentModel/__init___parts/DisplayNameAttribute.py | 6564ffaab714f51b11aa1f4215aabc8dcb0b85d1 | [
"MIT"
] | permissive | NISystemsEngineering/rfmx-pythonnet | 30adbdd5660b0d755957f35b68a4c2f60065800c | cd4f90a88a37ed043df880972cb55dfe18883bb7 | refs/heads/master | 2023-02-04T00:39:41.107043 | 2023-02-01T21:58:50 | 2023-02-01T21:58:50 | 191,603,578 | 7 | 5 | MIT | 2023-02-01T21:58:52 | 2019-06-12T16:02:32 | Python | UTF-8 | Python | false | false | 2,076 | py | class DisplayNameAttribute(Attribute,_Attribute):
"""
Specifies the display name for a property,event,or public void method which takes no arguments.
DisplayNameAttribute()
DisplayNameAttribute(displayName: str)
"""
def Equals(self,obj):
"""
Equals(self: DisplayNameAttribute,obj: object) -> b... | [
"sean.moore@ni.com"
] | sean.moore@ni.com |
c79f144acca2207d3e4d4d90e89aa916295f9227 | b53a84f6b0463cd8459e282b77cf3edc61735f61 | /jaraco/mongodb/service.py | 8c14e6c5be8de1b98928e8c672e98fd23982105d | [
"MIT"
] | permissive | jaraco/jaraco.mongodb | 6619f8019d474c7d419346b3a90faa66b6f43e81 | a852399c506c5d2ed71950ecd9b5f469ff4a4040 | refs/heads/main | 2023-08-31T16:42:20.542742 | 2023-08-31T13:26:45 | 2023-08-31T13:26:45 | 45,183,461 | 5 | 1 | MIT | 2023-09-01T20:06:43 | 2015-10-29T13:04:03 | Python | UTF-8 | Python | false | false | 7,994 | py | import os
import sys
import tempfile
import subprocess
import glob
import collections
import importlib
import shutil
import functools
import logging
import datetime
import pathlib
import contextlib
from typing import Dict, Any
import portend
from jaraco.services import paths
from jaraco import services
from tempora i... | [
"jaraco@jaraco.com"
] | jaraco@jaraco.com |
f66ddbefcac3491e18bd0349b504dd7153773ab6 | 286b6dc56323f982092ffafbfac8a32dbbaeb7ef | /training_assignments/Day01_Assignments/sample_script.py | 65a667fdae2ff91bbab32ae286a3098f284439d4 | [] | no_license | learndevops19/pythonTraining-CalsoftInc | ccee0d90aadc00bfdb17f9578620f6bf92f80a4c | c5f61516b835339b394876edd1c6f62e7cc6f0c3 | refs/heads/master | 2021-02-05T04:27:17.590913 | 2019-11-20T17:27:06 | 2019-11-20T17:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | #!usr/bin/env python
"""
This is module level docstring
"""
# import statement to import external lib in the current module
import sample_lib
# Function definition with argument `limit`
def get_all_prime(limit):
# This is a docstring of a function
"""
This is function level docstring
Args:
li... | [
"rajpratik71@gmail.com"
] | rajpratik71@gmail.com |
497387657e44a2b62a1cecc699a680722893a502 | 03e5f1fc05a65d6591964341bb90ca20ee9ae687 | /path_finder.py | 81680d22f3823108eb3319b80d4568c78f57d269 | [] | no_license | orenovadia/word_chains | 391ba7c603d20880830ef01fc0fc42b87dee9e1e | 2253c7f808b2d0978581e437232853f8d0eb58bb | refs/heads/master | 2020-06-22T09:38:25.460906 | 2019-07-19T03:34:18 | 2019-07-19T03:34:18 | 197,692,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | from typing import Optional, Dict, List
from oneedgraph import OneEdGraph
class PathFinder(object):
def __init__(self, graph: OneEdGraph) -> None:
super().__init__()
self._graph = graph
def shortest_path(self, source, destination) -> Optional[List[str]]:
if len(source) != len(destina... | [
"orenovad@gmail.com"
] | orenovad@gmail.com |
f3e0686647a601213f779653cb8e50d2cd76685a | 7a2ad6c274add0f88cab8f6f89de551ff86597c9 | /AOC2018/days/day4/tests/test_Day4Puzzle2.py | 15151e77987d77062fa679b325f6d1a71dc2718b | [] | no_license | Akivashi/AOC | 8b66cecc9c6cf32c318d5b605f7f9ee952aad373 | cbd3a766db1a4b6560c4adcf978ec79b30707032 | refs/heads/master | 2023-01-29T17:57:39.704089 | 2020-12-08T18:41:15 | 2020-12-09T18:55:10 | 318,249,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from unittest import TestCase
from Day4Puzzle2 import Day4Puzzle2
class Day4Puzzle2Test(TestCase):
def setUp(self):
self.puzzle = Day4Puzzle2()
def test_puzzle(self):
self.assertEqual(self.puzzle.solution("tests/Day4_test_input1.txt"), 4455)
| [
"rene@infi.nl"
] | rene@infi.nl |
46a9ffa4ccd9fe2bae9d06ccad77a6be1c64fab1 | c867b7d1b26547f76605676725367eee89a9c6bb | /appimagebuilder/context.py | ad0994d1daa39762a43b8aead53128cb2ca43e72 | [
"MIT"
] | permissive | jclab-joseph/appimage-builder | a6ceae075eb0e6d2e61df9e1fe38371606a0c4e7 | e757003a6c60ea72721c866758befa2dc6a50058 | refs/heads/master | 2023-08-24T06:20:51.154749 | 2021-09-21T02:15:09 | 2021-09-21T02:15:09 | 412,281,434 | 0 | 0 | MIT | 2021-10-01T08:48:38 | 2021-10-01T01:10:51 | null | UTF-8 | Python | false | false | 2,438 | py | # Copyright 2021 Alexis Lopez Zubieta
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publi... | [
"contact@azubieta.net"
] | contact@azubieta.net |
9ed19f3d4dcddbbdb88440d766807fbdb9b7ba36 | aab4acf5f144985ef0ba69fa122ecdb0973a61e3 | /python_experiments/algorithm_vis/pscan_algo_vis.py | 2a16fd7c491dbf95d0b2faacd32a4a9f8c8df1ff | [
"MIT"
] | permissive | zzerain/ppSCAN | 1f2e07fed7b7bb6ae40a7f5f6b7721d92f74eb0c | 691b39309da1c6b5df46b264b5a300a35d644f70 | refs/heads/master | 2023-03-19T06:41:15.712172 | 2020-06-04T03:24:55 | 2020-06-04T03:24:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,070 | py | import networkx as nx
import matplotlib.pyplot as plt
from pscan_algo_naive import to_csr_graph
from itertools import chain
def vis_input(graph, min_cn, similar_deg_lst, min_pts, graph_name):
"""
:type graph: nx.Graph
"""
# draw background graph
pos = nx.circular_layout(graph)
nx.draw_network... | [
"yche@cse.ust.hk"
] | yche@cse.ust.hk |
01e0c980fc1f652ee966283c3a6a783c0446f6fa | 2b85d16098aaae7c9aa0cc0e670b0a67df658d78 | /app/user/admin.py | 2d5d9594b3a908835a95ad51aee272ab59f8fe70 | [] | no_license | fuadaghazada/fampact-backend | 2c9ac7ba4b3e7efd5278f75ee32f7484a7409bcb | 6f0f9e3b7e2e544a4fe3a9bfa2451712e1dd1307 | refs/heads/master | 2023-03-08T09:21:33.728770 | 2021-02-21T13:09:14 | 2021-02-21T13:09:14 | 340,579,319 | 1 | 0 | null | 2021-02-20T06:43:59 | 2021-02-20T06:23:59 | null | UTF-8 | Python | false | false | 1,575 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.utils.translation import gettext_lazy as _
from scoring.models import Score
from .models import User, Family
class UserAdminInline(admin.StackedInline):
model = User
extra = 1
class UserAdmin(BaseU... | [
"fuad.aghazada98@gmail.com"
] | fuad.aghazada98@gmail.com |
be585520b660cff0acce377f5f031333de1360bc | 148ac8d601369aaae6918cf0a55a4d4f5afb5e75 | /decision_tree.py | 9a755464423d1acfd379b30272aafd32ac13f513 | [] | no_license | MrVersatile007/ML-with-Rishi | a7800e27f5cbac9b68d526469beb380ed59bb029 | db76aa26ef5d349237d0fa1f0bdd677352dfb392 | refs/heads/main | 2023-06-02T15:53:00.902907 | 2021-06-27T15:15:01 | 2021-06-27T15:15:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 26 20:44:13 2021
@author: RISHBANS
"""
import pandas as pd
dataset = pd.read_csv("Apply_Job.csv")
X = dataset.iloc[:, 0:2].values
y = dataset.iloc[:, 2].values
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y... | [
"rishibansal02@gmail.com"
] | rishibansal02@gmail.com |
43cb66f4ba8525d2f2ac814c63860c31289b6fec | 8d161515037cd42dcd6404a068620c11b2597ae8 | /LeetCode/__Contest__/Day6/n_unique_with_zero_sum.py | 8c46dd891297268ec0052581421805d84ade21e0 | [] | no_license | YiseBoge/CompetitiveProgramming | 433526d18a7bfe754f9e1c8d20b2b234d7b7568c | 26b720623bcc1afe054101a13ca37b65ff518ce1 | refs/heads/master | 2021-12-03T17:52:00.048476 | 2021-11-23T17:40:14 | 2021-11-23T17:40:14 | 225,392,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | class Solution:
def sumZero(self, n: int) -> list:
half = n // 2
result = []
for i in range(1, half + 1):
result.append(i)
result.append(-i)
if n % 2 != 0:
result.append(0)
return result
def solution(l1):
s = Solution()
return s... | [
"Ethiopia1!"
] | Ethiopia1! |
ab5a9fce2084bd6d7cef5bc3ab7c1ca5a3c03263 | d14193a5d565c4f8ad9d69a975ae24e62c26943a | /easystack_dashboard/dashboards/admin/volumes/panel.py | dce68793b44c8fbd1409a0af964fe708730b8fea | [
"Apache-2.0"
] | permissive | oksbsb/horizon-acc | b84783c5a81a2678195c45d31a24ca214b69562f | 9524f1952461c83db485d5d1702c350b158d7ce0 | refs/heads/master | 2020-03-19T03:20:52.007840 | 2017-11-14T09:17:04 | 2017-11-14T09:17:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from django.utils.translation import ugettext_lazy as _ # noqa
import horizon
from easystack_dashboard.dashboards.admin import dashboard
class Volumes(horizon.Panel):
name = _("Volumes")
slug = 'volumes'
permissions = ('openstack.services.volume',)
dashboard.EasyStack_Admin.register(Volumes)
| [
"zhoub1986@aliyun.com"
] | zhoub1986@aliyun.com |
daf6eb50c0ad9b90364b4f70c429ab710dba025b | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/1661.py | bf7150e7305f8acd5fc0af408e39ef0d48d99b88 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | import numpy as np
with open('in.txt') as f:
lines = f.readlines()
lines = [l.split('\n')[0] for l in lines]
t = int(lines[0])
def count_speed(d, horses):
d = float(d)
if len(horses) == 1:
horse = horses[0]
t = (d - horse[0]) / horse[1]
return d / t
else:
horses = sort... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
85e55310a98606e59016c33c42ad15b467158b08 | 5c0a253bf2fb83db01abc99097871c965f4cf565 | /spark/crm/PROC_O_LNA_XDXT_IND_EDUCATION.py | 1bea83ed976210cbffd85a9d0c063cf7a6807107 | [] | no_license | airuibel/python-1 | 3b16553ede9d069ec56efbb12a89a4de6917a447 | 94f387e2d406fab2128bcfffce6146da720b2ccc | refs/heads/master | 2020-07-05T15:43:00.957221 | 2017-09-17T14:05:48 | 2017-09-17T14:05:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,241 | py | #coding=UTF-8
from pyspark import SparkContext, SparkConf, SQLContext, Row, HiveContext
from pyspark.sql.types import *
from datetime import date, datetime, timedelta
import sys, re, os
st = datetime.now()
conf = SparkConf().setAppName('PROC_O_LNA_XDXT_IND_EDUCATION').setMaster(sys.argv[2])
sc = SparkContext(conf = co... | [
"cysuncn@126.com"
] | cysuncn@126.com |
b8e1f6454943395c9f5d4751831e30f28927d1b3 | 43e5657beca9836215e43f16da8f274e613ccb18 | /experiment_impact_tracker/emissions/common.py | d833313e4c68463176009a6397e92725ec32b41b | [
"MIT"
] | permissive | ml-lab/experiment-impact-tracker | eaa99b8ef7efec8c624ccc84e19602b7df8e8241 | 7017ed2c88526c2323603b254f8b81710db23ffa | refs/heads/master | 2022-04-01T20:03:19.736764 | 2020-02-14T02:16:16 | 2020-02-14T02:16:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | import experiment_impact_tracker.emissions.us_ca_parser as us_ca_parser
import numpy
REALTIME_REGIONS = {
"US-CA" : us_ca_parser
}
def is_capable_realtime_carbon_intensity(*args, region=None, **kwargs):
return region in list(REALTIME_REGIONS.keys())
def get_realtime_carbon_source(region):
return REAL... | [
"peter.henderson@mail.mcgill.ca"
] | peter.henderson@mail.mcgill.ca |
9d3754884cbbf3bb4fc1923201fceb1d8b22683c | adaa06e70db86a395c76fe9945c04381321ac127 | /neurokernel/routing_table.py | 6bf5a28e9cd5656d5632a3ad5576e1b51544e456 | [
"BSD-3-Clause"
] | permissive | hihihippp/neurokernel | d9a45dbc26ec1b307c8be696469a0e20db809fe2 | f25252a2a2a4443f16ad25b7c5b5eff943f36440 | refs/heads/master | 2020-12-25T23:47:10.899818 | 2014-03-30T18:07:58 | 2014-03-30T18:07:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,485 | py | #!/usr/bin/env python
"""
Routing table class.
"""
import numpy as np
import la
class RoutingTable(object):
"""
Routing table.
Parameters
----------
t : la.larry
Labeled array to use when initializing table.
Notes
-----
Inserting rows or columns of values is not currently sup... | [
"lev@columbia.edu"
] | lev@columbia.edu |
c4487150dcd4a86c20e4becad5574f8dd4551904 | a7587f813492163433202e244df2237c9993a1a1 | /Cart/context_processors.py | 06195e7f77f9cfb23960d2a52fa0e5c627c1280f | [] | no_license | kamran1231/E-COM-WEBSITE-2021 | 3a10bc0059f4d29fc52ee029e4919d4f965174c6 | 32214468cf716cc312a63f6346b8c844f720abda | refs/heads/master | 2023-06-01T03:18:03.137405 | 2021-07-04T14:20:16 | 2021-07-04T14:20:16 | 381,634,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from .models import CartItem,Carts
from .views import _cart_id
def cart_quantity(request):
cart_count = 0
if 'admin' in request.path:
return {}
else:
try:
cart = Carts.objects.filter(cart_id=_cart_id(request))
cart_items = CartItem.objects.all().filter(cart=cart[:1])
... | [
"khanbrother805@gmail.com"
] | khanbrother805@gmail.com |
44020a2430f1ee4d677ebf2e72f517311b4c61fc | a01fb7bb8e8738a3170083d84bc3fcfd40e7e44f | /python3/test/skip_test.py | a678856ad3b4261a4ba7525d1720c9bb602fa589 | [] | no_license | jk983294/CommonScript | f07acf603611b4691b176aa4a02791ef7d4d9370 | 774bcbbae9c146f37312c771c9e867fb93a0c452 | refs/heads/master | 2023-08-21T17:50:19.036159 | 2023-08-16T00:22:03 | 2023-08-16T00:22:03 | 42,732,160 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | import unittest
import os
import platform
class Tests(unittest.TestCase):
def test_0(self):
self.assertTrue(True)
@unittest.skip('skipped test')
def test_1(self):
self.fail('should have failed!')
@unittest.skipIf(os.name == 'posix', 'Not supported on Unix')
def test... | [
"jk983294@gmail.com"
] | jk983294@gmail.com |
37d6d2d4799abb3252b0037faeff26b63b15947e | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project/.history/product_20211026233548.py | 4c3e77961db96c2cb4baab24e8753d3719e59621 | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 6,893 | py | import data as list_product
import random
# def __init__(self, Id, Product_code, Product_name, Brand, Year, Size):
# self.Id = Id
# self.Product_code = Product_code
# self.Product_name = Product_name
# self.Brand = Brand
# self.Year = Year
# self.Size = Size
# Thêm sản phẩm
def AddProduct()... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
b4ab245bcbf76e57839fcc1722d1ddd565a89c78 | fe82835f39ec48daa8e9d425f66ededac0347d2a | /python全栈开发/网络爬虫/myscrapy/movie/movie/spiders/douban.py | c52070006e5218aad783dc97f510a089c396ec4e | [] | no_license | Abel-Fan/UAIF1907 | 3a43d7c93b71f64d76b4b7ea2e668a46c8fa10fa | dc53af8cbf3d15f356d52c032c62251fd2536222 | refs/heads/master | 2023-01-10T16:32:07.760465 | 2019-10-29T02:55:01 | 2019-10-29T02:55:01 | 199,558,420 | 2 | 3 | null | 2023-01-04T22:47:49 | 2019-07-30T02:20:57 | Python | UTF-8 | Python | false | false | 738 | py | # -*- coding: utf-8 -*-
import scrapy
class DoubanSpider(scrapy.Spider):
name = 'douban'
allowed_domains = ['movie.douban.com']
index = 0
url = 'https://movie.douban.com/top250?start='
start_urls = ['https://movie.douban.com/top250?start=0']
def parse(self, response):
for sel in respo... | [
"842615663@qq.com"
] | 842615663@qq.com |
25189a323700e225e6f96c440e680102061762f0 | 509823ea14f04d5791486b56a592d7e7499d7d51 | /parte05/ex5.09_suma_valores_diccionario.py | 618b2f2b3e475e6ab8a3018557ce2d1f48b3d8d1 | [] | no_license | Fhernd/Python-CursoV2 | 7613144cbed0410501b68bedd289a4d7fbefe291 | 1ce30162d4335945227f7cbb875f99bc5f682b98 | refs/heads/master | 2023-08-08T05:09:44.167755 | 2023-08-05T19:59:38 | 2023-08-05T19:59:38 | 239,033,656 | 64 | 38 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | # Ejercicio 5.9: Sumar todos los valores de un diccionario.
productos = {'Mouse': 29.9, 'Teclado': 119.9, 'Audífonos': 35.9, 'Monitor': 299}
total = sum(productos.values())
print('El total de los productos es:', total)
| [
"johnortizo@outlook.com"
] | johnortizo@outlook.com |
b0fa16737a686df72fd98cff9f7fd566d0d5e80a | 2ed0ab730b62665b3a36841ab006eea961116f87 | /Hash/MaximumSizeSubArray.py | 4c44f5c8ae5645363b1ad573c522e8e3413e73b1 | [] | no_license | scarlettlite/hackathon | 0f0a345d867b9e52823f10fe67c6ec210a40945f | 179ba9038bbed4d48cb2f044fd8430cf2be2bab3 | refs/heads/master | 2021-07-04T00:55:17.665292 | 2019-03-04T09:10:59 | 2019-03-04T09:10:59 | 141,269,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | class Solution:
def maxSubArrayLen(self, nums, k):
index, l, sm = {}, 0, 0
"""
if some subarray adds up to zero,
then include it
"""
index[0] = -1
for i, num in enumerate(nums):
sm += num
"""
sm - (sm - k) = k
"... | [
"shivanirathore496@gmail.com"
] | shivanirathore496@gmail.com |
c7bdf27bb365b6e35ca7896779eabc935dc9456e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02410/s129903146.py | f4bc923b5e62b74d7db52836dc67ef4179c3d122 | [] | 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 | 305 | py | n,m = map(int,input().split())
mat = list()
vec = list()
ans = [0 for _ in range(n)]
for _ in range(n):
mat.append(list(map(int,input().split())))
for _ in range(m):
vec.append(int(input()))
for i in range(n):
for j in range(m):
ans[i] += mat[i][j]*vec[j]
for k in ans :
print(k) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5c512f565ac92a4de97031a9ab515142b7a4c682 | 9a066d64eb81bd65fb51790579b7e9ea874beb3b | /seisma/conf/default.py | 05ffc3b4464d0bd1557433dc5584a97bcaacda7b | [] | no_license | crisscuola/seisma-server | 377e56ec6d636b056f95c6b425cbfebd62f8ec3e | 1ea66ac986e4e3bd6911d572e278daf7ff728c75 | refs/heads/master | 2021-06-12T08:26:16.442942 | 2017-03-17T20:14:16 | 2017-03-17T20:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | # -*- coding: utf-8 -*-
import sys
# Application settings
DEBUG = False
TESTING = False
# Database settings
DATABASE = {
'HOST': '127.0.0.1',
'PORT': 3306,
'USER': 'root',
'PASSWORD': '',
'NAME': 'seisma',
'POOL_SIZE': 10,
'POOL_TIMEOUT': 10,
'POOL_RECYCLE': 60 * 5,
'MAX_OVERF... | [
"mikhail.trifonov@corp.mail.ru"
] | mikhail.trifonov@corp.mail.ru |
aa5bd5a0f7c81ee9514591e0bfa78361be291fc8 | e75a40843a8738b84bd529a549c45776d09e70d9 | /samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/another_fake_api.py | 3ba5d212b863746d51bea35a12aa8f8ac687322d | [
"Apache-2.0"
] | permissive | OpenAPITools/openapi-generator | 3478dbf8e8319977269e2e84e0bf9960233146e3 | 8c2de11ac2f268836ac9bf0906b8bb6b4013c92d | refs/heads/master | 2023-09-02T11:26:28.189499 | 2023-09-02T02:21:04 | 2023-09-02T02:21:04 | 133,134,007 | 17,729 | 6,577 | Apache-2.0 | 2023-09-14T19:45:32 | 2018-05-12T09:57:56 | Java | UTF-8 | Python | false | false | 8,023 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
... | [
"noreply@github.com"
] | OpenAPITools.noreply@github.com |
d6cb7279f5266fe1ccfbfb7eab62fa9820400359 | 4af394289f00e654b5f1611d3acc11956ff40250 | /doc/samples/qdiipred.py | 212ca14acc9f14e692e177602bbf7c9ef6e67f1a | [
"MIT"
] | permissive | vensentzhou/xalpha | 159b6d4d325878f830abae1fcd8c8e27bbd41b4f | 03537dc009c4c15416bfe385a07c7068950d1152 | refs/heads/master | 2023-03-05T00:11:50.186495 | 2021-02-14T05:32:21 | 2021-02-14T05:32:21 | 319,993,901 | 0 | 0 | MIT | 2021-02-14T05:32:22 | 2020-12-09T15:11:13 | null | UTF-8 | Python | false | false | 3,672 | py | """
一个简单展示 qdii 实时净值预测的例子,最大限度的利用缓存而减少网络请求
"""
import pandas as pd
import xalpha as xa
import logging
xa.set_backend(backend="csv", path="../../../lof/data", precached="20200103")
logger = logging.getLogger("xalpha")
logger.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
logger.addHan... | [
"kcanamgal@foxmail.com"
] | kcanamgal@foxmail.com |
e383ea3229f57026689c505f94d5e91c01c69485 | 0f6db051f895b5f4621610c9f84eb678e83629bf | /src/learn/train_peak_model.py | 1ce3a6d64474cb7d8a8f37b07a708d41f97ffe86 | [
"MIT"
] | permissive | stonewell/learn-curve | 313b18c01b0acc208390bf8589c674c7e758cdba | ae787e2f84d3b91f59257b500b11b1dd8904430e | refs/heads/main | 2022-05-25T10:38:44.238297 | 2022-04-01T17:04:12 | 2022-04-01T17:04:12 | 61,493,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,335 | py | import os
import sys
import argparse
import datetime
import logging
import json
import pathlib
import pandas as pd
import numpy as np
from learn.peak_analyze import PeakAnalyze
sys.dont_write_bytecode = True
def valid_date(s):
try:
return datetime.datetime.strptime(s, "%Y%m%d").date()... | [
"jingnan.si@gmail.com"
] | jingnan.si@gmail.com |
23bf6fd9231c759ca6394cdab98810466382cf77 | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/surface/anthos/create_login_config_test.py | 455176b1ecbce0ed2d1131aa979b3d28b42a7223 | [
"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 | 2,107 | 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... | [
"code@bootstraponline.com"
] | code@bootstraponline.com |
4a4a579f82001e30dd5e40cfb88a7d41554d1279 | 74e3bf0160007fb1e6908879fe743b6cd74fd379 | /python/day09/weavo.py | b6dd802b26541e558a0d2cfaf6009b7dd593dce8 | [] | no_license | edutak/TIL-2 | 7a5586081af9172b1143dd4aaddef8954fe9fe81 | 4f736019883c5153b2afeb7b490014b9bd569b18 | refs/heads/master | 2023-05-08T16:48:26.283999 | 2021-06-04T06:40:39 | 2021-06-04T06:40:39 | 373,745,204 | 0 | 0 | null | 2021-06-04T06:37:17 | 2021-06-04T06:37:16 | null | UTF-8 | Python | false | false | 776 | py | class WeadbVO:
def __init__(self,city,province,tmn,tmx,date):
self.__city = city;
self.__province = province;
self.__tmn = tmn;
self.__tmx = tmx;
self.__date = date;
def __str__(self):
return '%s, %s, %.2f %.2f %s' % (self.__city,self.__province,self.__tmn,self.__... | [
"cjdauddl93@gmail.com"
] | cjdauddl93@gmail.com |
653ae4b5122947a39abcf9bcadca408111886667 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Pygame Tutorials/examples/steering/part06.py | bd8e17f8ca75e30f7b3554d7d92e86b3eb1b77c9 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:5048d8b9515d53a57667319a2cf5946943860bce3c9fe681264f90e123930e47
size 6107
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
c2d538bc309a95e5b9656e96ad3030ac4e03d3bc | fb881b00c607fbe9a2f29005965e2648958c608c | /dynamodb-boto3-backup-table.py | 718c86ee279af7fa6ad558854cb87445a1c65036 | [] | no_license | renauddahou/boto3_dynamodb_scripts | b7afd604893c3bc9f6f5b774ef4d88e356ae8d0d | 97a380b09a4488b5a8483547c70879711630964a | refs/heads/main | 2023-07-12T11:20:38.335497 | 2021-09-02T20:10:03 | 2021-09-02T20:10:03 | 416,806,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | import boto3
client = boto3.client('dynamodb')
response = client.create_backup(
TableName='Employees',
BackupName='Employees-Backup-01'
)
print(response) | [
"noreply@github.com"
] | renauddahou.noreply@github.com |
78b824aa0d72d6431c4d74492b5aee080e1290b6 | b005d794cfd8e3b063b08d6a266b1e07f0f0f5e9 | /src/webapp/appengine_admin/main.py | 250c885c61e10ae0f5ddfa5bbc954edd335fff42 | [] | no_license | GeoRemindMe/GeoRemindMe_Web | 593c957faa5babb3040da86d94a5d884ad4b2db3 | d441693eedb32c36fe853895110df808a9959941 | refs/heads/master | 2021-01-16T18:29:39.633445 | 2011-11-05T23:50:37 | 2011-11-05T23:50:37 | 1,841,418 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from google.appengine.dist import use_library
use_library('django', '1.2')
from django.conf import settings
_ = settings.TEMPLATE_DIRS
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from appengine_admin.view... | [
"jneight@gmail.com"
] | jneight@gmail.com |
911819b86225ec2196c19e866f1cae7ac2cbe89e | bee9d96912078d68877aa53e0c96537677ec3e6a | /peakpo/ds_powdiff/DiffractionPattern.py | b8b590a3372b5900968724dcec12c537c2c9d524 | [
"Apache-2.0"
] | permissive | SHDShim/PeakPo | ce0a637b6307787dd84fd3dcb3415e752d180c32 | 4c522e147e7715bceba218de58ee185cccd2055e | refs/heads/master | 2022-06-26T11:26:45.097828 | 2022-06-19T22:03:24 | 2022-06-19T22:03:24 | 94,345,216 | 17 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,673 | py | import numpy as np
import os
import time
import datetime
from utils import writechi, readchi, make_filename
from .background import fit_bg_cheb_auto
class Pattern(object):
"""
This modified from the same object in ds_* modules
"""
def __init__(self, filename=None):
if filename is None:
... | [
"SHDShim@gmail.com"
] | SHDShim@gmail.com |
f98de1eedd4d4c6fa28f8f76d28224574704c59b | 36959b56e506dbbe2d3c381cdccfe16965c14d24 | /Django/social/posts/migrations/0001_initial.py | e8fe75165e17e54f70de6e9f2a5a55528a6969fe | [] | no_license | Sathishkumar-M/Django | e2935fe0c69acb4cb39be2bc0504fd3d5619d002 | e54038ef70295274639b6207efe8e7e3939cbe36 | refs/heads/master | 2020-03-21T20:22:48.684770 | 2018-06-28T10:42:51 | 2018-06-28T10:42:51 | 139,003,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-11-28 15:20
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"sathishkumar.appiness@gmail.com"
] | sathishkumar.appiness@gmail.com |
50d0989520ba6a55b188773a135e56c496e1035a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2639/60636/252547.py | c0df1380f133df5be225f8d9e3d808ba7ff728ff | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import collections
def characterReplacement(s,k):
res=0
l=0
mf=0
a=list(s)
alls=[]
for i in a:
if(not i in alls):
alls.append(i)
count=[]
for i in alls:
count.append(0)
d = collections.defaultdict(int)
for r, c in enumerate(s):
d[a[r]]=d[a[r]]+... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
fd92e6b94e9cc2cef862406f623ad9a42b1ba1ff | 6e1407eb15c2003e8b62073b719dc676d8652366 | /aiodjango/routing.py | 00f1f431ec7ae22780028bd9b4478e9764bde86a | [
"BSD-2-Clause"
] | permissive | mlavin/aiodjango | 9f65155ac85de91ba14cb820b9c1d56849ffa05c | 9989f3160453088cd7bfdfde218da143ee9f93ee | refs/heads/master | 2021-07-16T07:56:29.658857 | 2015-12-22T14:54:31 | 2015-12-22T14:54:31 | 48,146,080 | 7 | 6 | BSD-2-Clause | 2021-02-26T02:13:06 | 2015-12-17T01:55:48 | Python | UTF-8 | Python | false | false | 1,570 | py | import asyncio
import inspect
import re
from importlib import import_module
from django.conf import settings
from django.contrib.admindocs.views import extract_views_from_urlpatterns
from django.core.urlresolvers import reverse
from aiohttp.web import DynamicRoute
class DjangoRegexRoute(DynamicRoute):
"""Compa... | [
"markdlavin@gmail.com"
] | markdlavin@gmail.com |
c48bc70ecb26b1f86f89404e10f91de9a4982f63 | e585c3a61b830d3c24a8cec8343d262c84c724e7 | /Figaro/page_objects/common/menu/locators.py | a64cf359cb42a79dd64da1b9e84261469740bec3 | [] | no_license | Valupiruiz/AutomationPHP | bb0728b2b6508b017c133a7d560a652033adeaf4 | 9a92634ac9f5b27e46723294f9a4cc83a1f99252 | refs/heads/master | 2023-01-18T17:27:57.819270 | 2020-11-27T15:04:49 | 2020-11-27T15:04:49 | 310,594,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | from selenium.webdriver.common.by import By
from page_objects.base_page import Locator
class MenuLocators:
SOLAPA_MENU_LBL = Locator(By.LINK_TEXT, "{solapa}")
# HOME_LBL = Locator(By.XPATH, "//a[contains(text(),'Home')]")
# MATERIAS_LBL = Locator(By.XPATH, "//a[contains(text(),'Materias')]")
# NOTICIA... | [
"tomasmoreira04@gmail.com"
] | tomasmoreira04@gmail.com |
0027b52908f754c4a3dd274b8b33492640656baa | 9f99485ac5479c1e6169e71d88a33c31ff591f4e | /tests/app/na_celery/test_stats_tasks.py | db6b7dcaaedad6fb138030fad167c6faa5da71c5 | [
"MIT"
] | permissive | NewAcropolis/api | b8c65554ca78ac0e87fbef46f5f2fbecb6d7700a | 34367f55d3c9ee5bf870956ffc90fd23da559b15 | refs/heads/master | 2023-08-31T09:27:02.125549 | 2023-08-26T22:15:10 | 2023-08-26T22:15:10 | 99,582,634 | 1 | 1 | MIT | 2023-08-26T22:15:11 | 2017-08-07T13:46:23 | Python | UTF-8 | Python | false | false | 4,282 | py | import werkzeug
werkzeug.cached_property = werkzeug.utils.cached_property
from flask import current_app
from freezegun import freeze_time
from mock import call
import requests_mock
from app.na_celery.stats_tasks import send_num_subscribers_and_social_stats
from tests.db import create_member
class WhenProcessingSend... | [
"kenlt.uk@gmail.com"
] | kenlt.uk@gmail.com |
1719e02eb066af7f9a41f3e1065f2b42d5223eb6 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/third_party/oauthlib/oauth1/rfc5849/endpoints/authorization.py | df211a199ad7c422aa7f8c84b0131a689a7228c2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 6,907 | py | # -*- coding: utf-8 -*-
"""oauthlib.oauth1.rfc5849.endpoints.authorization ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module is an implementation of various logic needed
for signing and checking OAuth 1.0 RFC 5849 requests.
"""
from __future__ import absolute_import, unicode_literals
from oauthlib.common im... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
5f50cc960cb9a4c2fba3b5674ec717c3cdccc980 | 670f4ba8ded99b420c3454c6ae35789667880cc8 | /tobiko/tests/functional/shell/sh/test_execute.py | 6a8685be113b2165a32e615e5bb5013e091188ba | [
"Apache-2.0"
] | permissive | FedericoRessi/tobiko | 892db522198ab48380892138459d801c4bd00efa | ce2a8734f8b4203ec38078207297062263c49f6f | refs/heads/master | 2022-07-26T22:52:10.273883 | 2022-07-20T20:04:43 | 2022-07-20T20:04:43 | 145,856,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,929 | py | # Copyright (c) 2019 Red Hat, Inc.
#
# 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 requi... | [
"fressi@redhat.com"
] | fressi@redhat.com |
2d294b34dda835cf074d3b465100db62976b0c34 | da7fd7d45140a244809b81fa7ede3cbe58b82c8b | /azure-kusto-data/azure/kusto/data/aio/_models.py | fab3892a573bd9cc9ffc289837928129719fce0d | [
"MIT"
] | permissive | Azure/azure-kusto-python | 61ba3a1e78de8b1872dc6cb7d2d3799913b2a154 | 59e263b17716b1499e596d667c1137598b98aac0 | refs/heads/master | 2023-08-31T13:52:27.628079 | 2023-08-31T06:41:06 | 2023-08-31T06:41:06 | 108,257,720 | 176 | 107 | MIT | 2023-09-06T18:14:56 | 2017-10-25T10:55:44 | Python | UTF-8 | Python | false | false | 590 | py | from typing import AsyncIterator
from azure.kusto.data._models import KustoResultRow, BaseStreamingKustoResultTable
class KustoStreamingResultTable(BaseStreamingKustoResultTable):
"""Async Iterator over a Kusto result table."""
async def __anext__(self) -> KustoResultRow:
try:
row = awai... | [
"noreply@github.com"
] | Azure.noreply@github.com |
3747d37e151d236d260c992a23eda35e08cf136e | 6a1070b89cd0342d0b6ca3a0bda86b538ce554d0 | /ibis/impala/tests/test_connection_pool.py | 043459754ce60a9bbc602df3b9224a3abddbb74a | [
"Apache-2.0"
] | permissive | deepfield/ibis | d115013f602378a808b8d2000c27e94d9f3eb115 | 1b4e276a9404ad5e8025918abd28bc04dc9ff1bb | refs/heads/master | 2021-07-10T02:31:59.900362 | 2019-05-21T14:25:31 | 2019-05-21T14:25:31 | 64,854,231 | 0 | 1 | Apache-2.0 | 2021-05-07T17:41:58 | 2016-08-03T14:51:03 | Python | UTF-8 | Python | false | false | 681 | py | import pytest
import ibis
pytest.importorskip('sqlalchemy')
pytest.importorskip('impala.dbapi')
pytestmark = pytest.mark.impala
def test_connection_pool_size(hdfs, env, test_data_db):
client = ibis.impala.connect(
port=env.impala_port,
hdfs_client=hdfs,
host=env.impala_host,
data... | [
"cpcloud@gmail.com"
] | cpcloud@gmail.com |
f38f48ad2b4f79421fb37be2f69f95435862c7d9 | 5e350a7f147a52a72ca3a859a1df5b3acd710952 | /service/migrations/0008_appointment_offset.py | 2c7f26a1ec1b300e952c114f0d09ae31c015b285 | [
"MIT"
] | permissive | jwoolnt/Opal-Health | 1330389f8698f85ead76e22aff094e5e1b482b90 | ebe0e4c88157ddbe8e56afcc43e4097ca8c4bd49 | refs/heads/master | 2023-07-05T22:07:28.119362 | 2021-03-17T13:27:33 | 2021-03-17T13:27:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 3.1.3 on 2020-11-12 19:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('service', '0007_auto_20201112_1800'),
]
operations = [
migrations.AddField(
model_name='appointment',
name='offset',... | [
"you@example.com"
] | you@example.com |
29d409c9d7bf4680ad1ee7ea08d6f17b97a1e0dc | b0814b43440a36c9998924c9fe05f335302a2717 | /venv/lib/python2.7/site-packages/traits/tests/test_special_event_handlers.py | ce1a437d5eed37021e10887ac40ed65986d7eed6 | [
"MIT"
] | permissive | nagyistge/electrode-gui | 0b47324ce8c61ffb54c24c400aee85f16fd79c7a | 6d89c78ea61935042ead5df5e1474101df3557eb | refs/heads/master | 2021-06-03T22:47:30.329355 | 2016-09-13T19:43:31 | 2016-09-13T19:43:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | from traits.testing.unittest_tools import unittest
from traits.api import Any, HasStrictTraits, Str
class TestSpecialEvent(unittest.TestCase):
""" Test demonstrating special change events using the 'event' metadata.
"""
def setUp(self):
self.change_events = []
self.foo = Foo(test=self)
... | [
"xavierislam@gmail.com"
] | xavierislam@gmail.com |
eaab8d8267b81b5a50c8a49ee7586f248350f51c | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /other_thing_and_part/last_week.py | 48024b96c47690f8612c0e49e007095cc1d25708 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py |
#! /usr/bin/env python
def last_hand(str_arg):
life_and_company(str_arg)
print('go_little_year_above_big_hand')
def life_and_company(str_arg):
print(str_arg)
if __name__ == '__main__':
last_hand('world')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
4c86f506f6232048e2aabfdd346c4a31df66ce7d | ddf7d8f996a0cf66b0e083e0557305b3be4619e5 | /myJunkYard/myTutorials/Python/ciscoPythonClass/day01/print.py | a43916e1aba4c253e31c25065882c796758be863 | [] | no_license | archerImagine/myNewJunk | 8fab3e6ada03eee3aebb5c712d50bcfb38bf48b0 | 42fff352f6057f84ab8c81f1debc149881c1e49f | refs/heads/master | 2020-06-16T12:22:30.590672 | 2016-11-29T17:07:23 | 2016-11-29T17:07:23 | 75,103,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | #!/usr/bin/env python
from sys import stderr
print "Hello World",10,20,"AnotherString"
print "This is second Line"
print >>stderr, "This is error"
#python print.py >out, redirects to stderr | [
"animeshbhadra@Animeshs-MacBook-Pro.local"
] | animeshbhadra@Animeshs-MacBook-Pro.local |
bf03021e93bee7e9aa1a4c276f8d7c6ac90b041f | 72a3f41a94202d6d378c222c5cfa9e68155109bb | /selfika/trunk/widgets/set_media.py | 58b393e841d30d9fe4f6aca49b42758442b5c28c | [] | no_license | vakhov/python-django-projects | c312b8bcd94aa448a2678c156ff4936e4a68f668 | 6f296aa75d7692eb5dcb68ef4ce20cadee9dc9e6 | refs/heads/master | 2021-01-17T12:12:56.730072 | 2012-07-25T16:40:45 | 2012-07-25T16:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | # -*- coding: utf-8 -*-
from django.db import models
from models import Widget
from grouping import create_group, add2group
create_group('media', 'Мультимедиа')
@add2group('Изображение', 'media')
class SimpleImage(Widget):
image = models.ImageField("Изображение", upload_to='media_widgets/image')
alt = models... | [
"succubi@succubi-Inspiron-1501.(none)"
] | succubi@succubi-Inspiron-1501.(none) |
407cb591686cc57f8fe85bcbe48db25a1b164985 | 90a2d0bed5d9eeb6b56c7ac96cc5fbee79dc4c5e | /.history/adding_20210405134642.py | b024a9f73366483777d1107dfb968b7b69e78d48 | [] | no_license | KustomApe/dev | 2d495e22363707b15a22860a773dac6c463903ee | a936f5c3b0928eaa2efaf28c6be8cacc17c3ecb3 | refs/heads/master | 2023-04-28T11:20:03.056953 | 2023-04-07T17:43:40 | 2023-04-07T17:43:40 | 138,429,111 | 1 | 0 | null | 2023-04-25T19:26:09 | 2018-06-23T19:47:23 | Python | UTF-8 | Python | false | false | 499 | py | n = 1
t = 0
# 1から5までの足し算をループを使って実装する
# while True:
# if n == 6:
# print(t)
# break
# else:
# t = t + n
# n = n + 1
# 1から10までの足し算をループを使って実装する
# while True:
# if n >= 11:
# print(t)
# break
# else:
# t = t + n
# n = n + 1
# 1から10までの奇数の合計値を... | [
"kustomape@gmail.com"
] | kustomape@gmail.com |
fa4d6cbfa01ca1eaa307be9dd1d48a72df5366c4 | f416ab3adfb5c641dc84022f918df43985c19a09 | /problems/kattis/squarepeg/sol.py | fe44506a9020cf78270930365d6833c556f2478b | [] | no_license | NicoKNL/coding-problems | a4656e8423e8c7f54be1b9015a9502864f0b13a5 | 4c8c8d5da3cdf74aefcfad4e82066c4a4beb8c06 | refs/heads/master | 2023-07-26T02:00:35.834440 | 2023-07-11T22:47:13 | 2023-07-11T22:47:13 | 160,269,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from math import sqrt
if __name__ == "__main__":
L, R = map(int, input().split())
diagonal = sqrt(L * L + L * L)
if diagonal <= 2 * R:
print("fits")
else:
print("nope")
| [
"klaassen.nico@gmail.com"
] | klaassen.nico@gmail.com |
8937a9f52041c3813031738685edc0154b898fff | 02e930875e95713a387c60b7de816a3a354ceb3d | /bids/variables/tests/test_variables.py | c45eae2e84128fd3b477b5ef3604f43a45ffa328 | [
"MIT"
] | permissive | Islast/pybids | 6a7899cbef03ec3579a21e1cbe85deb5d180ca1e | 3e80e617e6bd6258e027c9937ccedafe1c8e6b14 | refs/heads/master | 2020-03-23T22:00:14.970425 | 2018-07-24T14:14:08 | 2018-07-24T14:14:08 | 142,146,832 | 0 | 0 | MIT | 2018-07-24T11:06:51 | 2018-07-24T11:06:51 | null | UTF-8 | Python | false | false | 6,023 | py | from bids.grabbids import BIDSLayout
import pytest
from os.path import join
from bids.tests import get_test_data_path
from bids.variables import (merge_variables, DenseRunVariable, SimpleVariable,
load_variables)
from bids.variables.entities import RunInfo
import numpy as np
import pandas as... | [
"tyarkoni@gmail.com"
] | tyarkoni@gmail.com |
4a35e5d1186ac7712235416eb1cf34eb9202f1a6 | d274e22b1cc5d546855fe46b089b13cfe2f4047c | /may2020/solutions/day03_RansomNote.py | 5957935a487e8bfd84bc16b19821e49b9a0ab508 | [] | no_license | varunkumar032/lockdown-leetcode | ca6b7a8133033110680dd226c897dd8a1482682b | 15a72a53be9005eca816f018cb1b244f2aa4cdfb | refs/heads/master | 2023-06-30T08:31:54.323747 | 2021-07-12T11:29:59 | 2021-07-12T11:29:59 | 260,616,280 | 0 | 0 | null | 2021-05-06T10:24:48 | 2020-05-02T04:52:37 | Python | UTF-8 | Python | false | false | 910 | py | # Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom note can be constructed from the magazines ; otherwise, it will return false.
# Each letter in the magazine string can only be used once in your ransom note.
# Note... | [
"varunkumar032@gmail.com"
] | varunkumar032@gmail.com |
c8be73cd95d1fdc43b864eee4142eea6870b1356 | f7055e71c763d79abcef7283617df6d811375346 | /parlaskupine/utils_.py | 89134af1aa8bc921593cf9764abd7380d3de77b0 | [
"Unlicense"
] | permissive | VesterDe/parlalize | 8ec5aec20f3d2ae72e5485130031ba868554cdab | b725fe4b55b95f2ad3505aa70dac2474269ea3da | refs/heads/master | 2020-09-09T23:04:20.450691 | 2017-06-15T14:26:42 | 2017-06-15T14:26:42 | 94,447,286 | 1 | 0 | null | 2017-06-15T14:25:16 | 2017-06-15T14:25:16 | null | UTF-8 | Python | false | false | 611 | py | from operator import itemgetter
from .models import Organization
from datetime import datetime
from parlalize.settings import API_DATE_FORMAT
from django.http import JsonResponse
def getPgDataAPI(request, id_parladata, date_=None):
if not date_:
date_ = datetime.now().strftime(API_DATE_FORMAT)
org = O... | [
"tomazkunst@gmail.com"
] | tomazkunst@gmail.com |
3289ce4ce8028ae5827693a4a4d62674fdb8867e | a3af97d1110a7e60c53932e5cfbc0831ecb3ec78 | /projetos/urls.py | 35c61b22247a784fb59597c2470bfb48719eb06c | [] | no_license | guedesemerson/navedex | 7c33b291a72caeab29891138d3268702f7dc2dd7 | 0dc2fbaec4f7a7f7b9203a2bb11e5e0147355800 | refs/heads/master | 2022-12-03T12:49:55.490910 | 2020-08-16T20:43:13 | 2020-08-16T20:43:13 | 288,010,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | from django.urls import path
from .api.viewsets import (Index,
Store,
Delete,
Update,
Retrieve)
urlpatterns = [
path('index', Index.as_view()),
path('store', Store.as_view()),
path('show/<int:id>', R... | [
"guedes.emerson@hotmail.com"
] | guedes.emerson@hotmail.com |
c0e93c7a79a1902452e4c9ddcc8ce49f3d5f8f9a | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/b06f7eade2cb0285fb36ade60484d980cb6f2d68def364bdccaea8075ac242f5/xml/parsers/expat/model.py | 540a8828ad5f498d0fa72cf68e8e707fda7dd85d | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # encoding: utf-8
# module xml.parsers.expat.model calls itself pyexpat.model
# from C:\Users\Doly\Anaconda3\lib\site-packages\sklearn\linear_model\cd_fast.cp37-win_amd64.pyd
# by generator 1.147
""" Constants used to interpret content model information. """
# no imports
# Variables with simple values
XML_CQUANT_NONE... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
49a25dceb73a4332be16ac355cb8064b302b6927 | cb4e07b2a5dd30804ce428ec84d9e9f77709fcd5 | /swea/D4/5678. [Professional] 팰린드롬.py | 9a27a11b5210bc71a6372ee402db6ea3af5d54d6 | [] | no_license | jbsam2/algo_problem | 141c17003e88a69afdeea93a723e7f27c4626fdc | 18f2cab5a9af2dec57b7fd6f8218badd7de822e4 | refs/heads/master | 2023-05-18T10:03:00.408300 | 2021-06-02T10:36:50 | 2021-06-02T10:36:50 | 282,104,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | for t in range(int(input())):
s=input();r=1
for i in range(1,len(s)+1):
for j in range(len(s)-i+1):
p=s[j:j+i]
if p==p[::-1]:r=max(r,i)
print(f'#{t+1}',r) | [
"kbsam2@gmail.com"
] | kbsam2@gmail.com |
3bcca1c4065ab91c564c8c4f32a5519e832278be | fc72eba186256fa8b7f2f6b27b802af6bcd5c5c3 | /patterns/5.py | 422e82dad5bb7c5c5633c444796aca4647bfcda2 | [
"MIT"
] | permissive | OmnesRes/GRIMMER | 8d33878cf00d9e241cca4c52f603e4250478534f | 173c99ebdb6a9edb1242d24a791d0c5d778ff643 | refs/heads/master | 2021-01-21T17:10:23.159315 | 2017-04-15T16:38:09 | 2017-04-15T16:38:09 | 66,272,473 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | pattern_zero=[0.0, 0.16, 0.24, 0.4, 0.56, 0.64, 0.8, 0.96]
pattern_odd=[0.04, 0.2, 0.36, 0.44, 0.6, 0.76, 0.84]
pattern_even=[0.0, 0.16, 0.24, 0.4, 0.56, 0.64, 0.8, 0.96]
averages_even={0.0: [0.0], 0.8: [0.0], 0.4: [0.0], 0.96: [0.8, 0.2], 0.24: [0.6, 0.4], 0.16: [0.2, 0.8], 0.56: [0.8, 0.2], 0.64: [0.6, 0.4]}
averages... | [
"jordananaya@gmail.com"
] | jordananaya@gmail.com |
3aca9655153ffcd55b21dee39c568f740c904512 | 2827d7a837eb29c3cb07793ab6d3d5a753e18669 | /alipay/aop/api/request/KoubeiTradeItemorderBuyRequest.py | 037cc2e3a3272dc13f6b546ae46b7488e413434a | [
"Apache-2.0"
] | permissive | shaobenbin/alipay-sdk-python | 22e809b8f5096bec57d2bb25414f64bdc87fa8b3 | 5232ad74dff2e8a6e0e7646ab3318feefa07a37d | refs/heads/master | 2020-03-21T04:51:39.935692 | 2018-06-21T07:03:31 | 2018-06-21T07:03:31 | 138,131,022 | 0 | 0 | null | 2018-06-21T06:50:24 | 2018-06-21T06:50:24 | null | UTF-8 | Python | false | false | 3,936 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiTradeItemorderBuyModel import KoubeiTradeItemorderBuyModel
class KoubeiTradeItemorderBuyRequest(object):
def __init__(sel... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
de4ac45769abdafc96febca8486bb551b87659b0 | 412f4a6a5853486515136e1dc2fb2a98b1de8b78 | /flaskthreads.py | c05ead2c625c7877ef02c7a494e5a4c814a631e4 | [] | no_license | zwlyn/test | a43fca97af377e90fb0687c4dbf9f8e836365d5d | 91084cb42b959635c0071184222c4e0fdf077563 | refs/heads/master | 2020-08-21T13:45:47.323104 | 2019-10-22T10:03:35 | 2019-10-22T10:03:35 | 216,173,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #-*- encoding:utf_8 -*-
from flask import Flask
app = Flask(__name__)
@app.route('/', methods = ['GET'])
def demo():
return "gunicorn and flask demo"
if __name__ == '__main__':
app.run(debug=True,threaded=True)
| [
"1666013677@qq.com"
] | 1666013677@qq.com |
3ebf236d3782198f90f3912a4a7291f05d6af50a | 3cbf4a9d14cd487520f2bd05db10542705a37baf | /h2o-py/tests/testdir_algos/gbm/pyunit_mnist_manyCols_gbm_large.py | a1a2d84e7b47c80122b6ee0faa516ca2e442bdff | [
"Apache-2.0"
] | permissive | KendraFabric/h2o-3 | 733ff021553ff2c2d8f0c3336450d886d029cf15 | c75bc5d2dc644cc8c09df755185a4cc6e34e0d1a | refs/heads/master | 2023-03-15T12:32:02.852026 | 2016-08-26T14:01:07 | 2016-08-26T14:27:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
def mnist_many_cols_gbm_large():
train = h2o.import_file(path=pyunit_utils.locate("bigdata/laptop/mnist/train.csv.gz"))
train.tail()
from h2o.estimators.gbm import H2OGradientBoostingEstimator
gbm_mnist = H2OGradientBoostingE... | [
"spnrpa@gmail.com"
] | spnrpa@gmail.com |
bf8fe27306543b7b8e6f4c310bdaf5a2344ad562 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/abc/066d_2.py | 7ae18e84240a2c3ac692397a688c5f7d69c412a1 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | from collections import Counter, defaultdict
class Combination:
def __init__(self, size, mod=10**9 + 7):
self.size = size + 2
self.mod = mod
self.fact = [1, 1] + [0] * size
self.factInv = [1, 1] + [0] * size
self.inv = [0, 1] + [0] * size
for i in range(2, self.size... | [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
5f38af46ffc3dc1c89cce266942afc556be35569 | e4713c248c857b06a3cb0e9d0d15dd5513b1a8e9 | /phonenumbers/shortdata/region_GW.py | 9cb488fa9b2cafd1bbdb0857102120a418808bf6 | [
"Apache-2.0",
"MIT"
] | permissive | igushev/fase_lib | 8f081e0f6b956b186dc759906b21dc3fc449f045 | 182c626193193b196041b18b9974b5b2cbf15c67 | refs/heads/master | 2023-05-14T14:35:05.727202 | 2022-04-15T23:55:37 | 2022-04-15T23:55:37 | 107,228,694 | 10 | 0 | MIT | 2023-05-01T19:38:09 | 2017-10-17T06:47:07 | Python | UTF-8 | Python | false | false | 658 | py | """Auto-generated file, do not edit by hand. GW metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_GW = PhoneMetadata(id='GW', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2}', possible_number_pattern='\\d{... | [
"igushev@gmail.com"
] | igushev@gmail.com |
ea521aba29bdd5c7f046695777ae845f38e51f2d | d190750d6cb34e9d86ae96724cf4b56a2f57a74a | /tests/r/test_pntsprd.py | 7ae98fd1fc926c5de4f2ca0f970609c7bc661f1b | [
"Apache-2.0"
] | permissive | ROAD2018/observations | a119f61a48213d791de0620804adb8d21c2ad9fb | 2c8b1ac31025938cb17762e540f2f592e302d5de | refs/heads/master | 2021-09-24T04:28:02.725245 | 2018-09-16T23:06:30 | 2018-09-16T23:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.pntsprd import pntsprd
def test_pntsprd():
"""Test module pntsprd.py by downloading
pntsprd.csv and testing shape of
extracted data has 55... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
7da564ce249013583e2e383589c22437cbb733a9 | ffe4c155e228f1d3bcb3ff35265bb727c684ec1a | /UCL/Algorithms/Exercises/set_intersection.py | f9c84d7732de0af46c37f51969b8b12cbb821533 | [] | no_license | yuuee-www/Python-Learning | 848407aba39970e7e0058a4adb09dd35818c1d54 | 2964c9144844aed576ea527acedf1a465e9a8664 | refs/heads/master | 2023-03-12T00:55:06.034328 | 2021-02-28T13:43:14 | 2021-02-28T13:43:14 | 339,406,816 | 0 | 0 | null | 2021-02-28T11:27:40 | 2021-02-16T13:26:46 | Jupyter Notebook | UTF-8 | Python | false | false | 250 | py | def set_intersection(a, b):
intersection = [i for i in a if i in b] #O(nm)
intersection = list(set(a).intersection(set(b)))
intersection = list(set(a) & set(b))
intersection = list(filter(lambda x:x in a, b))
return intersection | [
"50982416+cyndereN@users.noreply.github.com"
] | 50982416+cyndereN@users.noreply.github.com |
80052d57664b2a589bf542dd229c9c48edc61736 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/fv/asiteconnp.py | bd7efa2b92e54a40a0cde06c8751451bea5afafe | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 4,379 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
6989372758828a2c53b0c7642fc6846fe7f79be8 | 1abc7d220beb38893dd8427428bc27d07e4b5ec9 | /lncrawl/core/downloader.py | a6f130b76f207df11074c94eedaba8a2b1451432 | [
"Apache-2.0"
] | permissive | huangmhao/lightnovel-crawler | 53448ec85faef4ec708af854e226f7f5f45e15d5 | d94a9a69c330999f03b5cd0da609f126a7136104 | refs/heads/master | 2020-05-23T11:24:59.513225 | 2019-05-14T16:52:25 | 2019-05-14T16:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
To download chapter bodies
"""
import json
import logging
import os
import traceback
from concurrent import futures
from urllib.parse import urlparse
from progress.bar import IncrementalBar
logger = logging.getLogger('DOWNLOADER')
def downlod_cover(app):
app.bo... | [
"dipu.sudipta@gmail.com"
] | dipu.sudipta@gmail.com |
3762dbc45fe80b9bda29d70e5924efe2586c0d09 | 2a0c2b3b682fdc7a49ff2ea107f53ac4b8fb5d20 | /pyLean/designMode/singletonPattern/SingleObject.py | 171a6a018d0ba94d002919f2289a12e5ce0a2e4a | [] | no_license | NoobsZero/DesignMode | 29f8327c09ecd8f26e9fc3c8618e5fba3de712b2 | 161997377020436491520a10fc3ac927469458f1 | refs/heads/master | 2023-07-08T04:24:59.776257 | 2021-08-17T05:55:46 | 2021-08-17T05:55:46 | 303,366,863 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,628 | py | # -*- encoding:utf-8 -*-
"""
@File :SingleObject.py
@Time :2020/10/12 15:29
@Author :Chen
@Software:PyCharm
单例模式(Singleton)---创建型
一、单例模式的使用场景
(1)、当创建一个对象所占用的资源很多,但同时又需要使用到该对象
(2)、当堆系统内的资源要求统一读写时,比如读写的配置信息,此时必须要求创建的实例信息相同
(3)、当有多个实例可能会引起程序错误时
总结:单例模式适用于只需要创建一个实例对象,程序全部使用同一个实例对象
二、实现方法
根据使用场景提炼出要点... | [
"870628995@qq.com"
] | 870628995@qq.com |
472834b4d7bf4d9680788d1d846bf3e5140eae51 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/3999/codes/1671_1105.py | 63959a8ddb44b8df9cb9991080829476eb2151b3 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | # Teste seu código aos poucos. Não teste tudo no final, pois fica mais difícil de identificar erros.
# Ao testar sua solução, não se limite ao caso de exemplo. Teste as diversas possibilidades de saída
X=input()
print("Entrada:",X)
if(X=="lobo"):
Y="Stark"
elif(X=="leao"):
Y="Lannister"
elif(X=="veado"):
Y="Baratheo... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
8569eaedce6a31b10c11a8aefda9b425e5200758 | bfda3af75d94767a5cb265bd68c17cfbf94e3ee1 | /euler/problem067.py | 44e0d08738522bf8639fb9237bda997501d62b89 | [] | no_license | orenlivne/euler | d0e5b956a46eacfe423fbd6c52918beb91eea140 | 2afdd8bccdc5789c233e955b1ca626cea618eb9b | refs/heads/master | 2020-12-29T02:24:36.479708 | 2016-12-15T21:27:33 | 2016-12-15T21:27:33 | 20,263,482 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | '''
============================================================
http://projecteuler.net/problem=67
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
Find the maximum total from t... | [
"oren.livne@gmail.com"
] | oren.livne@gmail.com |
fd7d6c7e681e3fd3e2c9f35e3d6d751638a4838b | d08802e22fd87494dce79f811439a7a19b6df1da | /src/sniffMyPackets/transforms/pcapture.py | e47d07f0b90c9652ff40aa71cd716a6470232a1b | [] | no_license | hcit/sniffMyPackets | e6c9597b9e237f0d45ef3242ee82e09ee5785f0e | 391c1f4707946d3a456a7d9b3e639bda6d88dff8 | refs/heads/master | 2021-01-19T05:24:44.476422 | 2013-04-18T12:53:03 | 2013-04-18T12:53:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | #!/usr/bin/env python
import logging, hashlib
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
from time import time
from common.entities import Interface, pcapFile
#from canari.maltego.utils import debug, progress
from canari.framework import configure #, superuser
__author__ = 'cat... | [
"catalyst256@gmail.com"
] | catalyst256@gmail.com |
9eb2dbbb86324a998b932f17626c77a7c4c9a350 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Clutter/Vertex.py | 5861047599940d3884e334b4a5c854d0dbff004d | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 6,063 | py | # encoding: utf-8
# module gi.repository.Clutter
# from /usr/lib64/girepository-1.0/Clutter-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
7761132b27a0670dcab85da3b9ff48acc7fbbf81 | c06cab774533cbbc3fdcd27b0e7ce825aa4984cf | /scripts/motif_training/ex_fimo.py | b21ca2bcca7d85b455b31f2c81747e238601f714 | [] | no_license | cbragdon93/compbio_project2016 | 4dbaf16a9d11d1216f7063e247bbf74e1c9b1aca | cc72fb3252b940b9fbcd92bf6839c388cbe28106 | refs/heads/master | 2021-06-08T21:12:13.819895 | 2016-12-02T21:57:36 | 2016-12-02T21:57:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | """Script to run fimo on the entire genome/sequences"""
from subprocess import call
from itertools import chain
def run_fimo(meme_path, motif_file, sequence_file, op_folder, options):
"""Run fimo with the given options"""
command = [meme_path + './fimo']
others = list(chain(*zip(options.keys(), options.va... | [
"k.dileep1994@gmail.com"
] | k.dileep1994@gmail.com |
e1416db5c7ebb0645e06c66131b32c7ad64a6c08 | ddb3cae0628dc37cac63ebc1b6ebedea58c7fc8f | /0x05-python-exceptions/1-safe_print_integer.py | f090b0a5fa4d22922d7f499da6905e8454639614 | [] | no_license | ikki2530/holbertonschool-higher_level_programming | 1df42d49d7b4cf985d53bd5d2a1e55a9b90a195c | f0649aae6f2d96ea7e7c9a6e2e05a96177abb40e | refs/heads/master | 2022-12-20T11:13:29.263591 | 2020-09-26T14:20:02 | 2020-09-26T14:20:02 | 259,413,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | #!/usr/bin/python3
def safe_print_integer(value):
try:
val = isinstance(value, int)
if val:
print("{:d}".format(value))
return True
raise ValueError
except ValueError:
return False
| [
"dagomez2530@gmail.com"
] | dagomez2530@gmail.com |
3b6e37d389894b053906c58a8a0628422c2ee636 | 994c1b533fe64265715231d6458a9f316ce82cbf | /posts/migrations/0004_auto_20200723_0024.py | 0fe68c0368a1f6983003954c66d29b11a52904fc | [] | no_license | zerobubus/hw05_final | 07320a8fcc1119f28cf3bd5e3285d381470f7f47 | ed89bdd5fa088c71bdb127a780fc2eac3bcda47c | refs/heads/master | 2022-11-24T23:09:29.335507 | 2020-07-29T16:49:10 | 2020-07-29T16:49:10 | 282,685,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | # Generated by Django 2.2.9 on 2020-07-23 00:24
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('posts', '0003_auto_20200702_1838'),
]
operations = [
migrations.AlterField... | [
"spb.etr@yandex.ru"
] | spb.etr@yandex.ru |
fb12c9895eecf78e4d6b1944e5c87b2610b09ca2 | 1bb6c157928441a7103ee42836c44657774049fe | /app1/utils/image_url.py | 05a2cfc9be6ca055526a25b85a14eac8b366fe88 | [
"MIT"
] | permissive | xieyu-aa/news | 525158dfdbee5fb5fc00a5a8d085f3ba61d3ec5e | 3c74fe43690fbfd7271a3f58c706ac722ecad619 | refs/heads/main | 2023-02-03T10:15:16.226983 | 2020-12-28T08:47:06 | 2020-12-28T08:47:06 | 319,926,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from qiniu import Auth, put_data
#需要填写你的 Access Key 和 Secret Key
access_key = 'QdYihoHdNftdfFtSdMr7ezeJb781HIh_FR-vxFdU'
secret_key = 'nLqJN9N3YR2NEx-Ngev3XMERt696ttpqA7SeM0lZ'
def image_url(image_data):
#构建鉴权对象
q = Auth(access_key, secret_key)
#要上传的空间
bucket_name = 'new3333'
#上传后保存的文件名
key ... | [
"you@example.com"
] | you@example.com |
8a3e125e2cdcc5e0e1da6a1bc5c0231997aa01c6 | de77d2ebb336a32149bd8a9a3d4d50018f264c3b | /melange/examples/doc_examples/tutorial/consume.py | 70e4190df7c578428a85bd102cf7bc3ba32d7cce | [
"MIT"
] | permissive | Rydra/melange | 34c87b3f9dc726a6463ffa9f886dd243193d9a9b | a313a956b3442d62887b8a5ec35fcc6cd5d1eca2 | refs/heads/main | 2023-02-04T20:40:54.551991 | 2023-01-29T18:39:09 | 2023-01-29T18:39:09 | 101,487,734 | 10 | 3 | MIT | 2022-05-21T20:53:46 | 2017-08-26T13:33:26 | Python | UTF-8 | Python | false | false | 1,017 | py | from simple_cqrs.domain_event import DomainEvent
from melange import SimpleMessageDispatcher, SingleDispatchConsumer, consumer
from melange.backends import LocalSQSBackend
from melange.examples.doc_examples.tutorial.publish import MyTestMessage
from melange.serializers import PickleSerializer, SerializerRegistry
cla... | [
"davigetto@gmail.com"
] | davigetto@gmail.com |
e3508f2b0525429d3b32209655d8a032b09963e0 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2521/60765/284939.py | ac29a1ddd9459bb309375c78dd57491cf7eaf91b | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import math
import sys
import re
import collections
def solve():
# =list(map(int,input().split()))
# =int(input())
# n =input()[2:-2].split('],[')
# target=int(input())
n=list(map(int,input()[1:-1].split(',')))
n=collections.Counter(n)
res=[]... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f97ebb63ac535601bd997690464c36249a17b102 | c3649aec8b628cf39f30c9440423ecbb8a9bc3aa | /src/bentoml/_internal/configuration/helpers.py | 24a1c6343fc793edd731cdecc837867a2e4bee88 | [
"Apache-2.0"
] | permissive | parano/BentoML | 2488ad1baa3f948f925edbe6b0eb2ea458bdad17 | eaa6218eb805acd6016eb140a4e3a9d6818dd995 | refs/heads/main | 2023-07-07T06:34:41.571577 | 2023-03-14T08:07:32 | 2023-03-14T08:07:32 | 178,978,356 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,657 | py | from __future__ import annotations
import os
import socket
import typing as t
import logging
from typing import TYPE_CHECKING
from functools import singledispatch
import yaml
import schema as s
from ..utils import LazyLoader
from ...exceptions import BentoMLConfigException
if TYPE_CHECKING:
from types import Mo... | [
"noreply@github.com"
] | parano.noreply@github.com |
c90cb2c8edee52cb8802a752aa9af21056bc7d27 | b7be7c13ccfee7bf0e06e391f1d71c75276810e0 | /posts/api_urls.py | 87bdf991d33ce3f5cfbfc5f8624b5519c4e0569c | [] | no_license | eshandas/django_project_template_mongo | 0d9ec53918abca30b7d08ec8897681c20f30dc13 | 6e5c1a255ccbf7498ddca9a10eca9cfe2c97c8a9 | refs/heads/master | 2020-05-21T19:05:46.837946 | 2017-04-05T10:50:52 | 2017-04-05T10:50:52 | 65,455,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from django.conf.urls import url
from .api_views import (
PostAPI,
PostsAPI,
)
urlpatterns = [
url(r'^$', PostsAPI.as_view(), name='posts'),
url(r'^(?P<post_id>[a-zA-Z0-9]+)/$', PostAPI.as_view(), name='post'),
]
| [
"eshandasnit@gmail.com"
] | eshandasnit@gmail.com |
1ac8cfca27b83bf2beb4c6a26a8872a4b9b2a825 | 1858c78932d3e6cfeb46021176cff172457ee8bb | /polonator/fluidics/src/testing/excel_test.py | e4cd32bfd5269f7f4a6e11e16c562556157edd37 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-secret-labs-2011"
] | permissive | grinner/Polonator | c5ddbc592afb022f9a2dfd4381560046fcac0371 | 512a30ca382d8cdcf8287488bdc70cb0f37a241c | refs/heads/master | 2021-05-15T01:47:00.506126 | 2019-04-19T01:41:59 | 2019-04-19T01:41:59 | 1,393,059 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,930 | py | """
---------------------------------------------------------------------------
Author: Mirko Palla.
Date: February 13, 2008.
For: G.007 polony sequencer design [fluidics software] at the Church Lab -
Genetics Department, Harvard Medical School.
Purpose: This program contains the complete code for module Bioche... | [
"a.grinner@gmail.com"
] | a.grinner@gmail.com |
9ddad79b454f8bbbcde4f02b07870ad2085c6658 | 4c83b4d7aca6bbcd15b922ad7314440fea7c9a70 | /2020-08-14_p3_idade/script_matriz1b_idade_2020-03-14.py | 84f86d5b5f3afb767b7a76567d19f46eaf04c2dc | [] | no_license | poloplanejamento/odmatrix-joinville | 63b60a85055700698cdb590c181e7c8a4d5c7361 | be7ce0814fb9dad2d289cd836dde51baa9c0850d | refs/heads/main | 2023-01-23T11:43:45.451126 | 2020-12-10T23:17:58 | 2020-12-10T23:17:58 | 320,402,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | #!/bin/env python3
from http.client import HTTPSConnection
from base64 import b64encode
import json
import csv
import pandas as pd
projectID = "42"
c = HTTPSConnection("api.odmatrix.app")
userAndPass = b64encode(b"fe6b53f0280443d5bd40d5d30694f356").decode("ascii")
headers = { 'Authorization' : 'Basic %s' % userAndPas... | [
"caiocco@gmail.com"
] | caiocco@gmail.com |
bc2f34a32d87fbd2859ab96dae35ff0fbaec3316 | 7bfb0fff9d833e53573c90f6ec58c215b4982d14 | /1081_smallest_subsequence_of_distinct_chars.py | fe3f41a7c1e3916fdd167b07def09b2d06e37a68 | [
"MIT"
] | permissive | claytonjwong/leetcode-py | 6619aa969649597a240e84bdb548718e754daa42 | 16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7 | refs/heads/master | 2023-07-14T23:40:26.569825 | 2021-08-22T17:23:20 | 2021-08-22T17:23:20 | 279,882,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #
# 1081. Smallest Subsequence of Distinct Characters
#
# Q: https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/
# A: https://leetcode.com/problems/smallest-subsequence-of-distinct-characters/discuss/891644/Kt-Js-Py3-C%2B%2B-Monotonic-Queue-%2B-Detailed-Explanation
#
class Solution:
def smal... | [
"claytonjwong@gmail.com"
] | claytonjwong@gmail.com |
c6fcfdd18cc8d5c82a78017317b30abaa333af6d | ff3727418c813ec475fd6cc53787de80497eaf1e | /bobo/direction/carte/test/nouvel_pos.py | cdb231a34c34681ccfb71d3e3a3c5631295fb9e3 | [] | no_license | pastrouveedespeudo/Final-Project | 7141133ea432543a32914f3eb28d497521e338ba | a41d04817b22bfa04d22d9fc0fcfcd0c3e8c679a | refs/heads/master | 2022-12-19T13:32:01.831673 | 2019-08-08T20:43:40 | 2019-08-08T20:43:40 | 193,540,979 | 0 | 0 | null | 2022-11-22T03:54:51 | 2019-06-24T16:27:33 | Python | UTF-8 | Python | false | false | 2,946 | py | """Here we calculate the new
direction. We have calculate
a one degree = 111.11 km
so we *0.009 the number of
km for have degrees to km and add it to lat
if direction isn't sud, nord
east or west we * by degrees
of circle trigo"""
from math import cos
from math import radians
def long... | [
"noreply@github.com"
] | pastrouveedespeudo.noreply@github.com |
1f49ef3154e7a7d1b7fbe152bd62734bf5a80eb1 | ea42986fbffb82b57df399fb90f3b962a63fef45 | /quiz/migrations/0001_initial.py | 3fa36a39cdc22bc3f128b566833b4548b476d700 | [] | no_license | akhad97/Quiz_API | 2d0b28ed3e7c6a7fc1cabc5b91d5b73d7173e10c | f45a99faf0f0109799c5506066e19d22dc4c201a | refs/heads/master | 2023-03-27T10:09:49.741610 | 2021-03-29T09:26:36 | 2021-03-29T09:26:36 | 352,585,216 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,729 | py | # Generated by Django 3.1.7 on 2021-03-10 11:26
from django.conf import settings
import django.contrib.auth.models
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '... | [
"ahadjon.abdullaev1997@gmail.com"
] | ahadjon.abdullaev1997@gmail.com |
9c8c7eff1b9ec6d1190a1964535c46aa88f98cfa | 93549eba4b184d79af808bd1e8846995553a1f92 | /dataMiningFrame_GammaLab/src/dependence.py | 30194a19db4b38ab2fc3fff49832a0e755507cd5 | [] | no_license | morindaz/audioEmotion_relative | 4d91e36f8716d5ba77eb7f170e5eac6b5a325a75 | 9ab298a37504dc6fb48e2ae9e34156ce8f78b8cf | refs/heads/master | 2021-04-27T00:08:58.069396 | 2018-03-04T05:11:22 | 2018-03-04T05:11:22 | 123,757,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | # coding=utf-8
'''
此文件中记录一些常用的配置文件,包含:
读入数据的位置csvPath
特征存放位置featurePath
模型位置modelPath+estimatorName
模型参数位置modelPath+paraName
'''
csvPath ='../data/selectedCombinedAllwithLabel.csv' #读入数据的位置
testPath = '../data/test.csv'
trainPath = '../data/train.csv'
featureBasic = '..//feature//'
featureName = 'cv0Clear30.csv' #特征的... | [
"morindaz.mao@ucloud.cn"
] | morindaz.mao@ucloud.cn |
29995561366f597a2dfee137c6d6b0c14f411424 | d820c9b02da27d54520ae7a0557a939ed4c1d04a | /Level_1/직사각형별찍기.py | 348bb6c28e552584598e193f9722f12d9397cf0c | [] | no_license | Parkyunhwan/Programmers | fc42f83a92cdc2800c5ef0d2d925ebe099caa427 | 39ea61674a5e5bb569e8831bfbf4ba64597088f8 | refs/heads/master | 2020-12-02T09:08:29.530002 | 2020-10-23T13:06:21 | 2020-10-23T13:06:21 | 230,956,911 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # 정석풀이
## print("", end='') end기능을 통해 뒤에 어떤 문자가 올지 지정해줄 수 있다.
a, b = map(int, input().strip().split(' '))
answer=""
ina = []
for i in range(b):
for j in range(a):
print("*", end='')
print()
# 연산자 풀이
a, b = map(int, input().strip().split(' '))
answer=("*"*a + "\n")*b
print(answer) | [
"pyh8618@gmail.com"
] | pyh8618@gmail.com |
05ee715c3472b1cb03f10effc47b4b0c9e0bb6b4 | df694423318926cf0cac2d8a293a232713d5fc69 | /ads/templatetags/contacted.py | 1a97fe0e386a3b9a314f068bf113505393ef1885 | [] | no_license | ouhouhsami/sanscom | 3e29da2dbbd3f3e9e094ed4546e879f9bf985404 | 23fe68be45649173841832361208ebdb65ffa599 | refs/heads/master | 2020-12-24T14:44:50.521981 | 2015-04-24T12:23:49 | 2015-04-24T12:23:49 | 32,098,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from ads.models import Ad, Search, AdSearchRelation
from django import template
register = template.Library()
@register.filter(name='contacted')
def contacted(user, obj):
if obj.__class__ == Ad:
asr = AdSearchRelation.objects.filter(ad=obj, search__user=user).values_list('ad_contacted', flat=True)
... | [
"samuel.goldszmidt@gmail.com"
] | samuel.goldszmidt@gmail.com |
526ade87755fc44b5fb54f1538fc465866bf5842 | 65f7e25aeff0c400e9d82a6b70d746f02ff58c61 | /openstackclient/tests/identity/v2_0/test_identity.py | 8a50a48a063ddd1b90ae171f87a4b2d611e7dada | [
"Apache-2.0"
] | permissive | pombredanne/python-openstackclient | 877255c5d0962a5a202133675ca3199c4d36ec62 | 6fe687fdf662a7495b20a1d94f27bf557525af58 | refs/heads/master | 2020-12-29T02:47:08.116982 | 2013-09-12T19:49:41 | 2013-09-12T21:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | # Copyright 2013 Nebula Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"dtroyer@gmail.com"
] | dtroyer@gmail.com |
db48951ba1c8b769d951e5206cf549f040cfc177 | 9f89fa328fa17eb86c19c7c44f2ec36a71e85a85 | /tests/test_video_upload.py | 007e69cef5c47b6befe3064f8731eb00167f52ce | [
"BSD-3-Clause"
] | permissive | bjoernh/django-cast | 5d7ca6e1a8ae0a364155716232fea663be44b977 | 89527f9c38ff04745c93f395c8111883210f0cf3 | refs/heads/master | 2020-05-01T06:05:52.679191 | 2019-03-23T08:15:19 | 2019-03-23T08:15:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | import pytest
from django.urls import reverse
from cast.models import Video
class TestVideoUpload:
@pytest.mark.django_db
def test_upload_video_not_authenticated(self, client, image_1px_io):
upload_url = reverse("cast:api:upload_video")
image_1px_io.seek(0)
r = client.post(upload_ur... | [
"jochen@wersdoerfer.de"
] | jochen@wersdoerfer.de |
228c06865e9face05da10ba72bf837de0c38b96b | cd1132c39b02e8997a4da832f9c2b760caba1801 | /napari/layers/image/experimental/octree_level.py | fa1f9a433482d77c522caf33c00ce62a90338d12 | [
"BSD-3-Clause"
] | permissive | HarshCasper/napari | 8c9f7051afc36d492f9e30760fe07758bb91e338 | 3ed7d2db678f4012753f53b2d40cff9d34a8011f | refs/heads/master | 2023-03-19T01:27:58.473927 | 2021-03-15T05:41:29 | 2021-03-15T05:41:29 | 347,844,575 | 0 | 0 | BSD-3-Clause | 2021-03-15T05:39:00 | 2021-03-15T05:11:44 | Python | UTF-8 | Python | false | false | 6,852 | py | """OctreeLevelInfo and OctreeLevel classes.
"""
import logging
import math
from typing import Dict, List, Optional
import numpy as np
from ....types import ArrayLike
from .octree_chunk import OctreeChunk, OctreeChunkGeom, OctreeLocation
from .octree_util import OctreeMetadata
LOGGER = logging.getLogger("napari.octre... | [
"noreply@github.com"
] | HarshCasper.noreply@github.com |
f553473cad4b347a8d994f981d9e3b036e3d894d | a9f4434d3b410886ffc10aa5aede3634692152b6 | /0219/ex9.py | 7338c30194e1471d7f625e24a070bbb39ba10eb9 | [] | no_license | parka01/python_ex | d3690dcd8753864c335bf7782553719a072bd01d | a5811487516eb9ef86d5ae93e9060cac267b87ce | refs/heads/main | 2023-03-13T08:35:03.837790 | 2021-02-26T03:40:41 | 2021-02-26T03:40:41 | 339,892,972 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | num1=input('1 번째 성적 입력: ')
num2=input('2 번째 성적 입력: ')
num3=input('3 번째 성적 입력: ')
num4=input('4 번째 성적 입력: ')
num5=input('5 번째 성적 입력: ')
if num1>0 or num1<100:
print('유효한 성적이 아닙니다.')
num2=input(2 번째 성적 입력: )
if num1>0 or num1<100:
print('유효한 성적이 아닙니다.')
else:
print(1 번째 성적:)
num3=input(3 번째 성적 입력: )
if num1... | [
"68191916+parka01@users.noreply.github.com"
] | 68191916+parka01@users.noreply.github.com |
0a7355f1e458c39857cd28e18a0a5d8508a9bf0c | 3ff1c245d945acf82e48f388d2457204e202275f | /desafio/migrations/0010_auto_20201020_0921.py | 5d4b58297cbbe8d0e9195a30c4618331810f70fb | [] | no_license | rauldosS/desafio_compiladores | 075e7dcb3a167d20d71928727db6c1cb500e23af | da01adf41c47dafd50b1487bb4ad8d27c4f2d199 | refs/heads/main | 2023-01-03T09:13:18.990618 | 2020-10-29T01:25:59 | 2020-10-29T01:25:59 | 305,174,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | # Generated by Django 3.1.2 on 2020-10-20 12:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('desafio', '0009_auto_20201020_0858'),
]
operations = [
migrations.AlterModelOptions(
name='caracteres',
options={'or... | [
"48498755+rauldosS@users.noreply.github.com"
] | 48498755+rauldosS@users.noreply.github.com |
40167e3cf9afb33c2cca023593a06ae0fd03b096 | 6809b17768d492866abf102318a5dcd2a03e8239 | /learnpythonthehardway/Binary-Search-Tree-to-Greater-Sum-Tree-5050.py | aa726b1e2475bad48db5c7abcd603bb4bcc3617d | [] | no_license | dgpllc/leetcode-python | 28428430a65d26d22f33d8c7e41089f6a783743a | 340ae58fb65b97aa6c6ab2daa8cbd82d1093deae | refs/heads/master | 2020-06-01T14:42:17.162579 | 2019-06-03T14:42:43 | 2019-06-03T14:42:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | # Given the root of a binary search tree with distinct values, modify it so that every node has a new value equal to
# the sum of the values of the original tree that are greater than or equal to node.val.
#
# As a reminder, a binary search tree is a tree that satisfies these constraints:
#
# The left subtree of a node... | [
"xin_wei@intuit.com"
] | xin_wei@intuit.com |
522f0be76de3348a09f76d4c24dce5e68bc11941 | 3ccd609f68016aad24829b8dd3cdbb535fb0ff6d | /python/bpy/types/CyclesLightSettings.py | b90e2afb63612b6f9fcee2bf33dd98e67c9fb350 | [] | no_license | katharostech/blender_externs | 79b2eed064fd927e3555aced3e2eb8a45840508e | fdf7f019a460de0fe7e62375c1c94f7ab0e9f68d | refs/heads/master | 2020-04-11T14:00:29.393478 | 2018-10-01T00:40:51 | 2018-10-01T00:40:51 | 161,838,212 | 1 | 1 | null | 2018-12-14T20:41:32 | 2018-12-14T20:41:32 | null | UTF-8 | Python | false | false | 160 | py | class CyclesLightSettings:
cast_shadow = None
is_portal = None
max_bounces = None
samples = None
use_multiple_importance_sampling = None
| [
"troyedwardsjr@gmail.com"
] | troyedwardsjr@gmail.com |
66714611f024ba03584d28323952e6ecab755f56 | d5d94c992d0596080ba694c518dfdb58d3490847 | /0017/my_answer.py | d10ac9df9d6c0541772faa4ae39cc960e14d9e31 | [] | no_license | calgagi/leetcode | 1bf24b750e44c2c893935983e5d88e0f071d9f2d | 431aba979d92e331f2f92a07eb80167a823a49bd | refs/heads/master | 2022-11-17T11:26:01.596496 | 2020-07-19T06:56:04 | 2020-07-19T06:56:04 | 276,207,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | class Solution:
def letterCombinations(self, digits: str) -> List[str]:
self.nums = ["", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"]
self.r = []
if len(digits) == 0:
return self.r
self.backtrack(digits, "")
return self.r
def backtrac... | [
"calgagi@gmail.com"
] | calgagi@gmail.com |
406be3af63c84a41d0e928882a6e6c507a54bd59 | 3b1242e49b72ecc5d7e80c2a0d833a5876affd29 | /src/crs_talker.py | 3f79150be2dedc84a0739e3acfd4766f845a4347 | [] | no_license | raysmith619/queen_bee_net | 09a29ffa11b9c12cc53506d9b7b7c3d7bad35854 | 6aaf8bf539271d57cb501d58a3ff41eabc0e89c7 | refs/heads/main | 2023-01-08T05:00:25.755818 | 2020-11-03T22:42:39 | 2020-11-03T22:42:39 | 303,788,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,631 | py | # crs_talker.py 06Oct2020 crs, Paired down from crs_drone_bee, drone_bee
"""
UDP - chat client (drone bee)
Usage: <pgm> [hostname/ip]
default: localhost
"our_name": uses gethostname()
Uses tkinter to graphically display talker with
messages from other talkers
Sends messages to host
"""
import soc... | [
"noreply@github.com"
] | raysmith619.noreply@github.com |
2e1cf3b0394156d2a894a0b65fc8e26942c7dcd1 | 58e0f9966c896e9559486e104246cb7b87814d4f | /server/src/uds/transports/SPICE/scripts/macosx/tunnel.py | fd402709740044d7ee414e9d2f500f3b9c6ca17c | [] | no_license | hanwoody/openuds | 53d02d9274663f05b2fbba532d5cd5ba0e63d229 | 6868e471c564b7153e0787fd9dcf67afa489472f | refs/heads/master | 2023-01-14T16:10:33.121913 | 2020-11-20T13:40:18 | 2020-11-20T13:40:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | # This is a template
# Saved as .py for easier editing
from __future__ import unicode_literals
# pylint: disable=import-error, no-name-in-module, undefined-variable
import os
import subprocess
from uds import tools # @UnresolvedImport
from uds.forward import forward # @UnresolvedImport
remoteViewer = '/Application... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
03a630af197f2b420553a89fa48f12c265d3e2c6 | a41e1498e3c080f47abd8e8e57157548df3ebbf1 | /pandas/_libs/json.pyi | bc4fe68573b94290cfba2e66950c1b6d45ccf0dc | [
"BSD-3-Clause"
] | permissive | pandas-dev/pandas | e7e639454a298bebc272622e66faa9829ea393bb | c7325d7e7e77ecb4a4e57b48bc25265277c75712 | refs/heads/main | 2023-09-01T12:42:07.927176 | 2023-09-01T11:14:10 | 2023-09-01T11:14:10 | 858,127 | 36,166 | 18,728 | BSD-3-Clause | 2023-09-14T21:18:41 | 2010-08-24T01:37:33 | Python | UTF-8 | Python | false | false | 496 | pyi | from typing import (
Any,
Callable,
)
def ujson_dumps(
obj: Any,
ensure_ascii: bool = ...,
double_precision: int = ...,
indent: int = ...,
orient: str = ...,
date_unit: str = ...,
iso_dates: bool = ...,
default_handler: None
| Callable[[Any], str | float | bool | list | dict... | [
"noreply@github.com"
] | pandas-dev.noreply@github.com |
4777ab6677fa53f20a528eeea798e0d34d0e52ce | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Jm4eKTENReSiQFw9t_2.py | 52ec433dfcf75a72f84bb522dfbafc075eb7e429 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | """
Create a function that takes a list of numbers `lst` and returns an **inverted
list**.
### Examples
invert_list([1, 2, 3, 4, 5]) ➞ [-1, -2, -3, -4, -5]
invert_list([1, -2, 3, -4, 5]) ➞ [-1, 2, -3, 4, -5]
invert_list([]) ➞ []
### Notes
* Don't forget to return the result.
* If you ge... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
87e445fdfb8e230b20e39d5730c4626dd30bbd3b | b2d06ad8145cbfe92835d62899f004dc207ad1b5 | /docs/releasenotes/_ext/extralinks.py | 0c1c134bcccd87a16677ddb27e7235acf1f70e69 | [
"MIT"
] | permissive | reviewboard/ReviewBot | 8027a9eb308b8c01f6d47e0372f543beff655014 | b59b566e127b5ef1b08f3189f1aa0194b7437d94 | refs/heads/master | 2023-06-10T00:25:11.506154 | 2023-05-31T22:36:34 | 2023-05-31T22:36:34 | 3,355,797 | 110 | 26 | MIT | 2020-11-05T08:56:37 | 2012-02-04T22:20:19 | Python | UTF-8 | Python | false | false | 1,536 | py | """Sphinx plugins for special links in the Release Notes."""
from __future__ import unicode_literals
from docutils import nodes, utils
def setup(app):
app.add_config_value('bugtracker_url', '', True)
app.add_role('bug', bug_role)
app.add_role('cve', cve_role)
def bug_role(role, rawtext, text, linenum,... | [
"trowbrds@gmail.com"
] | trowbrds@gmail.com |
30f6dedd0154090c998e834c8d4659c17018e4ee | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1/ME.py/A1.py | 1448c25b4be0d5ca606657bc0e3799fa716385d6 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 608 | py | ##
## PROBLEM SOLVING ALGORITHM
##
def solve(N):
if N==0:
return "INSOMNIA"
digits = [False for _ in range(10)]
n = N
while True:
for digit in str(n):
digits[int(digit)] = True
if not (False in digits):
return n
n += N
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
91e4b646687b8addbe5fbc3eef8e4b959ea6a397 | 11f473b6cf8aaf33152134f1862cdf2146980f92 | /fatiando/tests/mesher/test_tesseroid_mesh.py | bb53b6d6fd7cd0675dd8e4ae02b627077f427c24 | [
"BSD-3-Clause"
] | permissive | smudog/fatiando | 5856e061c15b066359b2ac5b2178d572b0f5ed3d | c4aec7a977be231217c23f4b767fea80171e1dd3 | refs/heads/master | 2021-01-20T09:42:29.594420 | 2016-12-19T10:46:11 | 2016-12-19T10:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | from ...mesher import TesseroidMesh
import numpy as np
def test_tesseroid_mesh_copy():
orig = TesseroidMesh((0, 1, 0, 2, 3, 0), (1, 2, 2))
cp = orig.copy()
assert cp is not orig
assert orig.celltype == cp.celltype
assert orig.bounds == cp.bounds
assert orig.dump == cp.dump
orig.addprop('d... | [
"leouieda@gmail.com"
] | leouieda@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.