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
f599455bfa6a6917667f8cd0f4f5803feac0b30f
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_209/385.py
f836480f26f961b7cde467068ea0dfd1cb70da9b
[]
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,270
py
from collections import namedtuple from math import pi Pancake = namedtuple('Pancacke', ['radius', 'height']) def top(pcake): return pi * pcake.radius ** 2 def side(pcake): return pi * pcake.radius * 2 * pcake.height def solve(data): k = data['k'] pancakes = sorted(data['pancakes']) guess = [pa...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
9a3576ae1653abe3cb8225bca9432e87ebd1127b
b6d8049568e8068422bc4ac2b957972dc1ee0ab7
/blueprints/azure_queue/cit/azure_storage_queues_test.py
14234b15bb7cfb8155670aab31420d74862f81c9
[ "Apache-2.0" ]
permissive
CloudBoltSoftware/cloudbolt-forge
a6dffd52bd074ad48a61527502fcddf8113508ff
a5584a84841be49bea69df506a91d18cb3f215d8
refs/heads/master
2023-08-11T08:08:07.730807
2023-08-10T11:40:07
2023-08-10T11:40:07
39,207,603
37
44
Apache-2.0
2023-09-14T20:06:44
2015-07-16T16:18:02
Python
UTF-8
Python
false
false
4,971
py
"""Verify that the Azure Queue BP is working as expected. """ import json import logging import re import uuid from api.api_samples.python_client.api_client import CloudBoltAPIClient from api.api_samples.python_client.samples.api_helpers import wait_for_order_completion from common.methods import set_progress from a...
[ "klaratta@cloudboltsoftware.com" ]
klaratta@cloudboltsoftware.com
7c438496032f1ace7df866061cae1d10ef6d9901
0f710bcb33761f230d5b368437efb529f29a2d00
/portfolio/portfolio/settings.py
00665b33016b35aae2736c0a3f61c707ecbcf156
[]
no_license
liberbell/dj01
e46f623b684655be59568e9b57ee3787f5d0aa87
a98cc7f37685807d56d5bae4d561c4ba3a6c7719
refs/heads/master
2020-07-12T11:15:20.513865
2019-09-02T22:49:12
2019-09-02T22:49:12
204,803,540
0
0
null
null
null
null
UTF-8
Python
false
false
3,294
py
""" Django settings for portfolio 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 ...
[ "liberbell@gmail.com" ]
liberbell@gmail.com
b6c8cd25a36425109c89a5a92f7b54217509900a
e4ba3ca5ca2faaa8d0762f70429f553ce9f00abe
/creme/__version__.py
5513654aafd5c842e16e56bd8aa239aec910cabd
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
KonstantinKlepikov/creme
99f1864179fbc2828b643aecb804a9570dc6b890
71bab5b38617e31b7cbf650162022251cec8816b
refs/heads/master
2020-12-20T20:18:33.432395
2020-01-22T10:12:22
2020-01-22T10:12:22
236,199,390
1
0
NOASSERTION
2020-01-25T16:54:41
2020-01-25T16:54:40
null
UTF-8
Python
false
false
63
py
VERSION = (0, 4, 4) __version__ = '.'.join(map(str, VERSION))
[ "maxhalford25@gmail.com" ]
maxhalford25@gmail.com
dd8693e32f613ad27c1e239dc7992579bd39b5d6
d851e959ed58900e0382b85c064922604d5243ac
/doc/admin.py
00904f211b5965297de55a607044ce7ccd856118
[]
no_license
htlcnn/docman
8ca5c99fa3372fb7d9806cec962f6a1e82f992fd
9a88d4a4e58fd546a140c0d76b5ce398af2cc9a8
refs/heads/master
2021-01-23T01:18:34.304293
2017-03-26T11:25:45
2017-03-26T11:25:45
85,898,562
0
0
null
null
null
null
UTF-8
Python
false
false
3,324
py
from django.contrib import admin from import_export import resources from import_export.admin import ImportExportModelAdmin from django.contrib.admin.helpers import ActionForm from django import forms from .models import Document, SaveLocation, Project, Collection from django.db import IntegrityError # Register your mo...
[ "hoangthanhlong@gmail.com" ]
hoangthanhlong@gmail.com
a4d1d1ff75baec303cde5e2ccb6803645647dd25
caf135d264c4c1fdd320b42bf0d019e350938b2d
/04_Algorithms/Leetcode/L752. Open the Lock.py
11ec47ab804c076a2acec0ad7ab014a058ea40b4
[]
no_license
coolxv/DL-Prep
4243c51103bdc38972b8a7cbe3db4efa93851342
3e6565527ee8479e178852fffc4ccd0e44166e48
refs/heads/master
2022-12-31T22:42:20.806208
2020-10-23T10:19:19
2020-10-23T10:19:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,209
py
from collections import deque class Solution: def openLock(self, deadends, target: str) -> int: start = '0000' deadends = set(deadends) if start in deadends: return -1 def neighbors(numstr): for i in range(4): yield numstr[:i] + str((int(num...
[ "1574572981@qq.com" ]
1574572981@qq.com
63be5f3bc0c6887403755ff1294f040fd33a4890
6bb45c5892b4c9692dcc44116fb73dc9e7ab90ff
/sagemaker-jumpstart/multimodal_tabtext/code/inference.py
6d34c6191f43b1460b3df67cde97497532a2b4f8
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
aws/amazon-sagemaker-examples
8359afe544e873662bda5b8d2b07399c437213c9
43dae4b28531cde167598f104f582168b0a4141f
refs/heads/main
2023-08-26T04:42:52.342776
2023-08-25T14:37:19
2023-08-25T14:37:19
107,937,815
4,797
3,519
Apache-2.0
2023-09-14T19:47:03
2017-10-23T05:55:22
Jupyter Notebook
UTF-8
Python
false
false
2,072
py
import csv import json import numpy as np import pandas as pd import sys from autogluon.tabular import TabularPredictor csv.field_size_limit(int(sys.maxsize/10)) # Avoid csv.Error: field larger than field limit (131072) def model_fn(model_dir): """Load the AutoGluon model. Called when the hosting service start...
[ "noreply@github.com" ]
aws.noreply@github.com
39a7992897c9f11198a05fb4cf75d2d848d34e44
524591f2c4f760bc01c12fea3061833847a4ff9a
/arm/opt/ros/kinetic/lib/python2.7/dist-packages/shape_msgs/msg/_MeshTriangle.py
8de15109177d8f052417dc60b6e39b77394cdf33
[ "BSD-3-Clause" ]
permissive
Roboy/roboy_plexus
6f78d45c52055d97159fd4d0ca8e0f32f1fbd07e
1f3039edd24c059459563cb81d194326fe824905
refs/heads/roboy3
2023-03-10T15:01:34.703853
2021-08-16T13:42:54
2021-08-16T13:42:54
101,666,005
2
4
BSD-3-Clause
2022-10-22T13:43:45
2017-08-28T16:53:52
C++
UTF-8
Python
false
false
3,664
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from shape_msgs/MeshTriangle.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class MeshTriangle(genpy.Message): _md5sum = "23688b2e6d2de3d32fe8af104a903253" _type = "...
[ "simon.trendel@tum.de" ]
simon.trendel@tum.de
93e5daffe4eb41acba3f95563b85984677f198e9
4562c825c45ddf8d5dd27f827ebc9fe2871c92f9
/properties/models.py
ff19025f31ae0ecafd6751285c490a8ace5d9107
[]
no_license
naeem23/To-let
88a6112b1958caa6346623f3e82fe38dc5623991
3e6b92791e6c0b4ccd6df63afc6ae910adc391bd
refs/heads/master
2020-07-01T05:14:53.687253
2019-08-07T13:42:27
2019-08-07T13:42:27
201,058,366
0
0
null
null
null
null
UTF-8
Python
false
false
4,079
py
from django.db import models from django.utils.text import slugify from django.urls import reverse from django.utils.timezone import now class Category(models.Model): name = models.CharField(max_length=25, default='', blank=True) slug = models.SlugField(unique=True) class Meta: verbose_name = 'Category' ver...
[ "sddqnaeem@gmail.com" ]
sddqnaeem@gmail.com
2c4f946feabcd6ef13fc6ac1abf1d7683020389e
61ba1d073fdbb34ad2ae4e9d0ae1b88083faeb02
/Sem I/Programarea Algoritmilor/tutoriat/71.py
40c7a1a1082848c7f75a9335e136af0cec6eca99
[]
no_license
CosminHorjea/fmi
d899b639a085203963413918d2c508307cb9ba60
6b4911cdec64929710d984223385c1e8e36d5c7c
refs/heads/master
2023-07-09T01:04:24.418286
2023-06-22T21:50:00
2023-06-22T21:50:00
213,064,779
7
1
null
null
null
null
UTF-8
Python
false
false
274
py
def lungime(s): if len(s)<=10: return s else : s2="" s2+=s[0] s2+=str(len(s)-2) s2+=s[-1] return s2 n=int(input()) stringuri=[] for i in range(n): stringuri.append(input()) for s in stringuri: print(lungime(s))
[ "horjeacosmin@yahoo.com" ]
horjeacosmin@yahoo.com
f9c32d7e0bce699fc00844c0d7b6d1e06c2e09d9
d537a6d0fe814eef94234b915a4dd892d8ede863
/authors/apps/notifications/renderers.py
c333065c0917f0bc2f4574481258a0bbbbf91a02
[ "BSD-3-Clause" ]
permissive
Jajabenit250/ah-backend-summer
d58189b291bce48e4091c78bf2ec50aabdf96920
f842a3e02f8418f123dc5de36809ad67557b1c1d
refs/heads/develop
2022-12-12T15:28:30.836688
2019-03-27T20:17:22
2019-03-27T20:17:22
253,634,800
1
0
BSD-3-Clause
2022-11-19T04:01:49
2020-04-06T23:00:08
null
UTF-8
Python
false
false
1,202
py
from rest_framework.renderers import JSONRenderer from rest_framework.utils import json class NotificationSettingsRenderer(JSONRenderer): """The ArticleJSONRenderer returns a Json object of notifications """ charset = "utf-8" def render(self, data, media_type=None, renderer_context=None): ...
[ "ephraim.malinga@gmail.com" ]
ephraim.malinga@gmail.com
69d71543bace28ad562132d51ce9b7e737dc9947
f1e9f557c5d724dcabbfa17903de93bb82767e35
/py_ffmpeg_video_2.py
049583dfeb4d1fb239307747b3ef00e3b9f03e69
[]
no_license
gregsheu/python
e5e9ff83dc0ce90541591e726c940e8a1f71a3d4
4a77295d58a522974ee85b201ab99cdbe410fd08
refs/heads/master
2023-08-18T08:30:15.611727
2023-08-08T06:55:44
2023-08-08T06:55:44
181,270,205
0
0
null
null
null
null
UTF-8
Python
false
false
1,338
py
import requests import ffmpeg import os import json from PIL import Image from requests.auth import HTTPDigestAuth import boto3 img = Image.new('RGB', (1920, 1080), (255, 255, 255)) img.save('blank.jpg', 'JPEG') in1 = None in2 = None in3 = None in4 = None try: #r1 = ffmpeg.input('rtsp://admin:admin12345@166.167.6....
[ "greg@mymacpro.bluefinops.io" ]
greg@mymacpro.bluefinops.io
0166c17d4433d238c693aec7326e757a938ac991
3a891a79be468621aae43defd9a5516f9763f36e
/desktop/core/ext-py/PyYAML-3.12/tests/lib3/test_appliance.py
b6f956dbfbc9d108422885d11b1b2e725ab6b889
[ "Apache-2.0", "MIT" ]
permissive
oyorooms/hue
b53eb87f805063a90f957fd2e1733f21406269aa
4082346ef8d5e6a8365b05752be41186840dc868
refs/heads/master
2020-04-15T20:31:56.931218
2019-01-09T19:02:21
2019-01-09T19:05:36
164,998,117
4
2
Apache-2.0
2019-01-10T05:47:36
2019-01-10T05:47:36
null
UTF-8
Python
false
false
5,182
py
import sys, os, os.path, types, traceback, pprint DATA = 'tests/data' def find_test_functions(collections): if not isinstance(collections, list): collections = [collections] functions = [] for collection in collections: if not isinstance(collection, dict): collection = vars(co...
[ "ranade@cloudera.com" ]
ranade@cloudera.com
104dffa56cd6aa71b7927850450a76b5d678d593
da0c8e14a2979c5e997a2d28c1baed426d30010f
/py3.6/multiprocess/spawn.py
7d0727549d25358211061c8c41add3e12399cdae
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
JayDeng2837/multiprocess
0bbd0a0197068ddea90a370effcd50ffd43fad4c
56a6aad861563982ef26f04fbb36f2828024a8ec
refs/heads/master
2020-12-02T06:39:59.729043
2017-07-07T00:30:27
2017-07-07T00:30:27
96,874,445
1
0
null
2017-07-11T09:14:15
2017-07-11T09:14:14
null
UTF-8
Python
false
false
8,848
py
# # Code used to start processes when using the spawn or forkserver # start methods. # # multiprocessing/spawn.py # # Copyright (c) 2006-2008, R Oudkerk # Licensed to PSF under a Contributor Agreement. # import os import sys import runpy import types from . import get_start_method, set_start_method from . import proc...
[ "mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df" ]
mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df
62d5907c051812e27bb45d359853f52e046c44e7
1a2ca64839723ede3134a0781128b0dc0b5f6ab8
/ExtractFeatures/Data/kracekumar/SnakeBite.py
f0f39202c8fa68bce96539264a0400d116a0b21e
[]
no_license
vivekaxl/LexisNexis
bc8ee0b92ae95a200c41bd077082212243ee248c
5fa3a818c3d41bd9c3eb25122e1d376c8910269c
refs/heads/master
2021-01-13T01:44:41.814348
2015-07-08T15:42:35
2015-07-08T15:42:35
29,705,371
9
3
null
null
null
null
UTF-8
Python
false
false
3,962
py
#! /usr/bin/env python """ SnakeBite - by PyMike Released to the Public Domain Created and documented on September 2nd, 2008 in 50 minutes. """ #import standard python modules import os, random #import uber cool pygame module import pygame from pygame.locals import * #I'm hunnnnngry I neeeed ssssssome fruitsssss cl...
[ "vivekaxl@gmail.com" ]
vivekaxl@gmail.com
76888f84d2c59a55ab1addeac57ef9dc42dfc519
ef5fc89fdbe27b493e8b0750ddebdf59508eb933
/zerver/migrations/0263_stream_stream_post_policy.py
b7644ad737ef55c16128d7259a43b4580ca5c769
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
Szhixiang/zulip
ed6ddb8664a22fad254fa61f90c91ad00a1a8558
f250293d5afa7947ca95211518a402521f5d719b
refs/heads/master
2021-03-10T00:09:26.573881
2020-03-10T20:53:40
2020-03-10T20:53:40
246,396,764
1
0
Apache-2.0
2020-03-10T20:04:59
2020-03-10T20:04:58
null
UTF-8
Python
false
false
476
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.26 on 2020-01-27 22:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('zerver', '0262_mutedtopic_date_muted'), ] operations = [ migrations.AddFie...
[ "tabbott@zulipchat.com" ]
tabbott@zulipchat.com
3583206aa17d52474e4969b96a388fcd6a3de9ea
be55991401aef504c42625c5201c8a9f14ca7c3b
/leetcode/tree/easy/range_sum_of_bst/tests/__init__.py
3c33cb4749086c0cd8791113f57147017b359c87
[ "Apache-2.0" ]
permissive
BillionsRichard/pycharmWorkspace
adc1f8bb15b58ded489fc8dec0df397601823d2c
709e2681fc6d85ff52fb25717215a365f51073aa
refs/heads/master
2021-09-14T21:12:59.839963
2021-08-08T09:05:37
2021-08-08T09:05:37
143,610,481
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
# encoding: utf-8 """ @version: v1.0 @author: Richard @license: Apache Licence @contact: billions.richard@qq.com @site: @software: PyCharm @time: 2019/10/1 14:43 """ from pprint import pprint as pp
[ "295292802@qq.com" ]
295292802@qq.com
2307075ca4e05e68c53b5cfe54663185b1376916
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-646.py
03758def434e900ffec7815e051b03a88fe704ef
[]
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,755
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
868e1b839013850b9f3f77fcfbf96af44109f8bd
9cc6721acb439db2e7cff8eb4dbff4b6e14040d5
/programmers/level2/24.다음큰숫자.py
e7dee2c44a3b3e4a3171c350fa6d168a6a7d337a
[]
no_license
young31/Algorithm
35c6ec6b6d9b192f9d0e6e6f6484f33c92100232
bfcccfa798d031a930490efa24d9b2263bd4b984
refs/heads/master
2021-11-04T14:01:53.827508
2021-10-25T06:35:24
2021-10-25T06:35:24
196,034,851
0
3
null
null
null
null
UTF-8
Python
false
false
860
py
n = 15 def binarize(n): res = [] i = 1 while n > 0: k = n%(2**i) res.append(k//(2**(i-1))) n -= res[-1]*(2**(i-1)) i += 1 return res def rev_bin(arr): ans = 0 for i, n in enumerate(arr): ans += n*(2**i) return ans # print(rev_bin(binarize(15))) # ...
[ "migael38317@gmail.com" ]
migael38317@gmail.com
4fdcaf11146811e1733a1d82a36cdfc21c42516c
01733042e84a768b77f64ec24118d0242b2f13b8
/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/instruction_2ea701c64dd7c771b8df298ca6f96902.py
8883b389261f188e2255a1052092c49d38fd4c4c
[ "MIT" ]
permissive
slieberth/ixnetwork_restpy
e95673905854bc57e56177911cb3853c7e4c5e26
23eeb24b21568a23d3f31bbd72814ff55eb1af44
refs/heads/master
2023-01-04T06:57:17.513612
2020-10-16T22:30:55
2020-10-16T22:30:55
311,959,027
0
0
NOASSERTION
2020-11-11T12:15:34
2020-11-11T12:06:00
null
UTF-8
Python
false
false
4,905
py
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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, ...
[ "andy.balogh@keysight.com" ]
andy.balogh@keysight.com
c706bb4f12bede9cc5ff203089be039559ed73f1
1f32e7e26bd26bdd2cf4a19faa59c140ad07469e
/jackknife/jk_stats.py
d99134209b0bf4e8e3261ebab47aa317412997e0
[ "MIT" ]
permissive
kmedian/jackknife
a96d1477cc24e9a8a76c81676aab8af8404bd6ec
5edf2704b2b4aca10fc5e73fa7f82a704200f5d3
refs/heads/master
2020-04-04T17:17:39.845597
2019-09-16T07:42:29
2019-09-16T07:42:29
156,114,887
2
1
null
null
null
null
UTF-8
Python
false
false
3,231
py
import scipy.stats import numpy as np def jk_stats(theta_subs, theta_full, N=None, d=1): """Compute Jackknife Estimates, SE, Bias, t-scores, p-values Parameters: ----------- theta_subs : ndarray The metrics, estimates, parameters, etc. of the model (see "func") for each subsample. ...
[ "554c46@gmail.com" ]
554c46@gmail.com
b5150ae08b1de88cb09b8649d5af96f088bb3e91
98a7b8c539d17946e361495ebb5eed3d83727e38
/variation/trunk/src/AddPopulationInfo.py
09f5d36476a6af2b9eb90675f55ab85ea2ca4646
[]
no_license
polyactis/repos
8a6a9703ca9ec2f9b75fb5bda06d4d29aace19c1
7b402496aae81665e6a915b5021b94d56e034c9d
refs/heads/master
2020-12-08T16:30:24.175800
2013-02-27T19:45:20
2013-02-27T19:45:20
8,463,267
1
1
null
null
null
null
UTF-8
Python
false
false
2,486
py
#!/usr/bin/env python """ Examples: AddPopulationInfo.py -i /Network/Data/250k/db/reference_dataset/149SNP -l popid2ecotypeid_50 -o bin/structure_test/149_popid2ecotypeid_50.csv Description: Replace 2nd column with population info. If no population info, the row is removed. """ from __init__ import * class AddP...
[ "yh@c5b91a9c-90b7-4db6-b2ac-9ef0fe68db40" ]
yh@c5b91a9c-90b7-4db6-b2ac-9ef0fe68db40
0a99b871d92eb09b257142f079ae14e451207fd7
ab0fdb8c87437ad74562d0cd47fc8345acf68fbe
/OPEINROB/opeinrobduino.py
a4d4f7120fa485cf2992aac0896f753ec142b95f
[]
no_license
FredThx/OPEINROB
0988017dbad25bc758c372a185f3c6cd9b841843
ed3663151d0e0c03b99e27be308503c22281da19
refs/heads/master
2023-01-23T01:37:52.692403
2020-12-06T15:28:57
2020-12-06T15:28:57
316,773,183
0
0
null
null
null
null
UTF-8
Python
false
false
4,952
py
#!/usr/bin/env python # -*- coding:utf-8 -* import logging, serial, time from bitarray import bitarray from threading import RLock class OPeinRobDuino(): '''Un arduino sur lequel est connecté - commande pistolets de peinture - capteur monte&baisse - fin de course monte&baisse - capt...
[ "fredthx@gmail.com" ]
fredthx@gmail.com
277d8cad8335e0337aeed02219d5c2c538889988
772562e0adff366596e771d15251f5be2a5ef97f
/Utils/confusion_matrix.py
b42fe887283b79492f7923481ea3bdac1cd69799
[]
no_license
awhitbeck/ldmx_analysis
0ae74106226d9b24e45b518e3557923068403864
aa0c26059953e8af9fa5eba80ab23139b892b375
refs/heads/master
2020-03-24T09:39:29.146878
2019-12-19T21:37:11
2019-12-19T21:37:11
142,634,516
0
0
null
null
null
null
UTF-8
Python
false
false
4,771
py
import ROOT as r from ldmx_container import * import pandas as pd r.gStyle.SetOptStat(0) r.gROOT.ProcessLine(".L ~/tdrstyle.C") r.gROOT.ProcessLine("setTDRStyle()") import numpy as np #import pandas as pd r.gROOT.SetBatch(True) def print_hits(electrons, hits): colored_print=["\033[91m{0}\033[00m", ...
[ "whitbeck.andrew@gmail.com" ]
whitbeck.andrew@gmail.com
1d56d0ba1a8ea402b3d5f2dbdd3e798977806a92
628cb25f3439a267c835c128e682e9852440e083
/problem-120.py
fa162c21e805bae9fedefb9adb4b4498d3b3cac5
[]
no_license
hghimanshu/Project-Euler
57d4add27ecc1c81e24c8c14d4d158db445ebe57
fabcc6e603d98483c3b132f3417be9ca7824a079
refs/heads/master
2020-07-31T15:18:32.992381
2019-11-26T06:11:41
2019-11-26T06:11:41
210,651,271
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
def expression(A, rem): if A %2 ==0: rem += A*(A - 2) else: rem += A*(A - 1) return rem if __name__ == "__main__": rem = 0 for i in range(3, 1001): rem = expression(i, rem) print(rem)
[ "hghimanshu81@gmail.com" ]
hghimanshu81@gmail.com
1d404c62b68c157450c0ebef29ee89b1f3b0396c
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/saddle-points/d2db878ee5d64deeae1ee393f794b300.py
8f811e3a1ec385387bcaec310c83b752c352f3dc
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
853
py
from itertools import product def saddle_points(matrix): # Just renaming rows = matrix # Raise a ValueError on irregular matrices validate_matrix(matrix) # Grab the columns of the matrix columns = [list(column) for column in zip(*rows)] # Iterate over the rows and columns, checking to ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
2e84ce89cfd81e41325f1088d5989cacdee9f262
a7748b3984155450d17cb05a79ef736a228e4b71
/app/models/orders.py
0d3bd9a9323c48992ad7d169488235137760df8d
[]
no_license
tomekmatuszewski/Food_Delivery_API
b01247faadc9c90b548fda45a95d25c5728ebf6f
e8fbb2f707c0da038efd341d2527b8ecad275412
refs/heads/master
2023-01-08T02:49:27.865274
2020-11-14T12:41:09
2020-11-14T12:41:09
307,487,339
0
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
from sqlalchemy import Column, Date, Float, ForeignKey, Integer, String, Text from sqlalchemy.orm import relationship from app.database import Base class Order(Base): __tablename__ = "order" id = Column(Integer, primary_key=True, index=True) employee_id = Column(Integer, ForeignKey("employee.id")) c...
[ "tomasz_matuszewski@o2.pl" ]
tomasz_matuszewski@o2.pl
d3e80722b8d290042e4970140312d2af128b6a21
476c989bfda64cbb23d36d7056aabe6474f49361
/glazier/lib/title.py
e52e986a4ebbb4818e1fcd47da38885f4fb366db
[ "Apache-2.0" ]
permissive
google/glazier
77f41697a449708490252a4831f7e87a3f4bb2bd
ec44cb163f54d1393b0a2c2730d5d0d9d0fc8515
refs/heads/master
2023-09-03T22:23:55.657479
2023-08-30T16:37:43
2023-08-30T16:38:16
79,817,356
1,311
116
Apache-2.0
2023-09-12T20:14:24
2017-01-23T15:30:21
Python
UTF-8
Python
false
false
2,987
py
# Copyright 2019 Google 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 required by applicable law or ag...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
0f00559968cb78c87f278f8e6141a6e1f48ed2ca
d13bed6cdfc2ab867b6bb7750593581c96815857
/venv/Lib/site-packages/pip/_vendor/distlib/resources.py
4939542ac633e20347eb477d9757bdac625404f2
[ "MIT" ]
permissive
kennywam/arenadreamblog
fbf0531fc62aaa3339fbd02d702eb8e2783dd519
7ddf7da4b40bf871879a4edfdcf5dcac4fd78266
refs/heads/master
2023-07-06T04:32:47.800553
2021-08-09T16:35:45
2021-08-09T16:35:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,821
py
# -*- coding: utf-8 -*- # # Copyright (C) 2013-2017 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # from __future__ import unicode_literals import bisect import io import logging import os import pkgutil import sys import types import z...
[ "titusowuor30@gmail.com" ]
titusowuor30@gmail.com
3e4049b25c7d17df028ab1970a25f5dcd257e42d
5aa27e52058d014bf4fb784d63a70c7d1f565330
/Final/Proto1.py
d439320af11aefa1fee8731c22a9e0fd8af76e08
[]
no_license
a5vh/AdPro
2e5c5f952bb917d3b98c277a512670b67ce0718f
595c1c3e5088ae3cfb85078282dffceb44c1901e
refs/heads/master
2020-04-11T00:16:37.088549
2019-05-05T19:24:53
2019-05-05T19:24:53
161,381,037
0
0
null
null
null
null
UTF-8
Python
false
false
3,954
py
''' Created on Feb 10, 2017 @author: 19augusthummert ''' import sys, pygame, math, time, random from pygame import * def print_text(font, x, y, text, color=(255,255,255)): imgText = font.render(text, True, color) screen.blit(imgText, (x,y)) pygame.init() screen = pygame.display.set_mode((1280, 720)) pygame....
[ "august.hummert5@gmail.com" ]
august.hummert5@gmail.com
0a06a0926506519ca505e92eaf9e779cd5610e90
67d436ae8a88ebc0b0110d712759453be695a6b8
/src/formatters/base.py
366866e924388bb02ac16ecfac26b4b2454fe051
[ "BSD-3-Clause" ]
permissive
v-legoff/pa-poc3
906ccfda7fdb50e0daa97e967545685a0b5e0121
f459733c9307c2f843dd9ad5d1d82feafc065816
refs/heads/master
2016-08-06T08:38:15.825794
2013-07-09T13:22:40
2013-07-09T13:22:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,176
py
# Copyright (c) 2012 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and ...
[ "vincent.legoff.srs@gmail.com" ]
vincent.legoff.srs@gmail.com
3e673b9c6646afcace59fb82874ccfd9b1aca600
b8518f30ab48d1dc1d538ba0ff0f31e3c3747a56
/tests/estimator/classifier/SVC/SVCJavaTest.py
5ce1b43612dfff05ecd61b08dc03cb3160d9cbe2
[ "MIT" ]
permissive
zhangqiking/sklearn-porter
cca7210f42572171c28852c5a8d30b3ac2726d62
d0cff98080d02b0f30d74cc0c3ca6047748d3de3
refs/heads/master
2021-08-26T06:41:31.664658
2017-11-21T23:32:44
2017-11-21T23:32:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,895
py
# -*- coding: utf-8 -*- import unittest import numpy as np from sklearn.svm.classes import SVC from tests.estimator.classifier.Classifier import Classifier from tests.language.Java import Java class SVCJavaTest(Java, Classifier, unittest.TestCase): def setUp(self): super(SVCJavaTest, self).setUp() ...
[ "darius.morawiec@nok.onl" ]
darius.morawiec@nok.onl
8ef087c52f362c2f712f62888661aef39b38b030
eae20f9c051467c402cb2db76382071c3bf61029
/adbts/usb/libusb.py
06960a9e0758b4a0860e0e1be8e68b93bb90a9f8
[ "Apache-2.0" ]
permissive
adbpy/transports
d43185c80f456819030d97a08a6506c419ffa354
913f6df4c042b91c9e161aaeb6499e609d52e379
refs/heads/master
2023-01-06T11:33:34.447792
2021-04-21T18:30:47
2021-04-21T18:30:47
96,717,904
6
1
Apache-2.0
2022-12-27T15:57:14
2017-07-09T23:38:20
Python
UTF-8
Python
false
false
17,331
py
""" adbts.usb.libusb ~~~~~~~~~~~~~~~~ Functional wrapper around the `usb1` and `libusb` packages. """ import contextlib import functools import typing import usb1 from adbts import exceptions, hints #: Type hint alias for libusb :class:`~usb1.USBContext`. Context = usb1.USBContext # pylint: disable=inv...
[ "andrew.r.hawker@gmail.com" ]
andrew.r.hawker@gmail.com
25b274dacae667733d0458fc6a18235601afb51a
fe59a93906febde6eeb9d86a235faa74f35fb62b
/blog/views.py
a98ee026955cff66b46271ad81f6bfc93162c256
[]
no_license
blacktyger/epicentral_lab
b4812a31b26be07d84bb4c4f71bc30bac1e8edff
24dbea90755af906cf94ff38be5d2af35f9093ee
refs/heads/master
2023-03-07T09:19:45.547692
2021-02-17T18:00:48
2021-02-17T18:00:48
332,540,239
0
0
null
null
null
null
UTF-8
Python
false
false
3,279
py
from django.shortcuts import render, get_object_or_404, redirect from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.contrib.auth.models import User from django.views.generic import ( ListView, DetailView, CreateView, UpdateView, DeleteView ) from .forms i...
[ "blacktyg3r@gmail.com" ]
blacktyg3r@gmail.com
cd0ab3419ee69672c3d483194742c5a390c2c481
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/detection/FSAF_for_Pytorch/mmdetection/tests/test_models/test_dense_heads/test_corner_head.py
0c43e01f1ef115ba3e47ce7b5e4b17799258e88e
[ "Apache-2.0", "GPL-1.0-or-later", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
7,301
py
# Copyright 2021 Huawei Technologies Co., Ltd # # 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 ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
4d0602caa9373cfd48c8a5c506686070c7b3b783
41c824ce983c2a400ca6484b365d6f7ee077c8a3
/tools/dlrobot/common/dl_robot_round.py
960cf3ec510b1955ef1d4cc49796c0ff33e6094e
[]
no_license
TI-Russia/smart_parser
2c84c12906e308229037c2bc75299a4b227e795e
7428904975b2cf88cb329b8da11017cdebe8fa03
refs/heads/master
2022-12-10T06:40:43.852974
2022-08-05T11:06:18
2022-08-05T11:06:18
129,266,366
16
4
null
2022-12-08T11:18:29
2018-04-12T14:44:23
HTML
UTF-8
Python
false
false
1,467
py
import datetime import json import os class BadFormat(Exception): def __init__(self, message="bad format"): """Initializer.""" self.message = message def __str__(self): return self.message class TDeclarationRounds: default_dlrobot_round_path = os.path.join(os.path.dirname(__file...
[ "sokirko@yandex.ru" ]
sokirko@yandex.ru
4c1dd253f63ed260e05644b350c1997cbcbba181
e2992e19ebc728387125a70c72a702a076de7a12
/Python/01_My_Programs_Hv/14_Decorator/170_closures_practice.py
574b19e54ec0dcdbbddedfdbe03fcd584f6d40d7
[]
no_license
harsh1915/Machine_Learning
c9c32ed07df3b2648f7796f004ebb38726f13ae4
c68a973cfbc6c60eeb94e253c6f2ce34baa3686e
refs/heads/main
2023-08-27T15:01:16.430869
2021-11-15T07:53:36
2021-11-15T07:53:36
377,694,941
0
1
null
null
null
null
UTF-8
Python
false
false
137
py
def power(p): def number(n): return n** p return number square= power(2) print(square(3)) cube= power(3) print(cube(3))
[ "“hdjethva6@gmail.com”" ]
“hdjethva6@gmail.com”
8e5252106c15fc7905c14628d4ae96a1b67ca48d
9600445d43ed32ee103214485e3d5a9ad854610d
/FMcommands/copy.py
8fc83cb1452538d8ebfd021ff8069161f2f8b87f
[ "MIT" ]
permissive
themilkman/FileManager
276e0b36bcdef2c18f7c1b4b2b6d4ee674f34aff
1c28c3dba6d8afb4382432beb45b3ae1f4433ea7
refs/heads/master
2020-12-08T13:32:09.479380
2020-01-09T01:08:23
2020-01-09T01:12:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
866
py
# -*- encoding: utf-8 -*- from ..sublimefunctions import * from .appcommand import AppCommand class FmCopyCommand(AppCommand): def run(self, which, paths=None): self.view = get_view() self.window = get_window() if paths is None: paths = [self.view.file_name()] text = ...
[ "australie.p@gmail.com" ]
australie.p@gmail.com
ace506e1ad0894cabe2c763c20a83e46c5aa74ad
802a6090711ac37f29acbe9e9a1a8861b435e421
/find_a_supplier/migrations/0062_auto_20180817_1630_squashed_0065_auto_20180829_1027.py
f23d60edfd322ad3e1b5d51d59e4a32cc89cc0bb
[ "MIT" ]
permissive
thibaudcolas/directory-cms
9dc74b0e5b1c1e179102e5a91b35e97bf2984be6
d958360fe5491a92977d754cfd0d7f8a4695639e
refs/heads/develop
2020-04-30T17:21:21.506753
2019-03-21T09:18:48
2019-03-21T09:18:48
176,976,880
0
0
MIT
2019-03-21T16:00:33
2019-03-21T15:46:31
Python
UTF-8
Python
false
false
2,155
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-10-09 13:53 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('find_a_supplier', '0061_auto_20180604_1344'), ] operations = [ migrations....
[ "alessandro.denoia@digital.trade.gov.uk" ]
alessandro.denoia@digital.trade.gov.uk
56187229bbbe606edbad4767db3722eb61576287
0961c5d7010f3316b339e36282a51241ae119ae8
/train/transformers/models/speech_to_text/configuration_speech_to_text.py
c6eb1394da352b53e8b7aaf41e558d2957ccec78
[]
no_license
JunnYu/paddle_reformer
68357e41c5388db709c8907266474dd1fd1b6064
7e89e6e09378515c484d25e9e9f7f2070a25bf98
refs/heads/main
2023-08-07T23:37:38.976366
2021-09-27T12:37:15
2021-09-27T12:37:15
392,733,086
5
0
null
null
null
null
UTF-8
Python
false
false
9,952
py
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
[ "573009727@qq.com" ]
573009727@qq.com
453efbc9ad9d5bf04ec010cb5246918e77466a6d
05805ab879654cdcf61df3653847f435b624dc77
/Dictator_service/Simple_Logger.py
9e40676cf149eaaec0161842dae7f85dfe5a740d
[]
no_license
Wuwqhnsya/Dictator
3d57db6bc0138464884ddc9fe7378907ab86e3ef
45388fec03a4acdac3620611b3bccfa3c991d65f
refs/heads/master
2020-04-28T21:57:39.309165
2019-01-28T19:10:28
2019-01-28T19:10:28
175,600,478
1
0
null
2019-03-14T10:34:02
2019-03-14T10:34:02
null
UTF-8
Python
false
false
545
py
""" @Author :Furqan Khan @Email :furqankhan08@gmail.com @Date :1/2/2017 Objective : The purpose of this file /module /Class is to log the execution flow in a text file in unformatted way """ import time class SimpleLogger: def __init__(self): self.logger=None self.Log_file=None self.loggerInfo=None def l...
[ "furqankhan08@gmail.com" ]
furqankhan08@gmail.com
8d96425185b29a2b5ac8c3d33022bd939b4e1369
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_016/ch10_2020_03_09_19_28_25_951043.py
c31ea1320ebcb6034b543cf00801a9c36c7e9c1e
[]
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
75
py
import math del volume_da_pizza(z,a): v=(math.sin*(z^2))*a return v
[ "you@example.com" ]
you@example.com
3cd0e65a763e0dcbb6b8cf8ab17cc6684f9b8482
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/logic/azure-mgmt-logic/generated_samples/get_partners_by_integration_account_name.py
82c61f3c14b2333a69973ce315198d850046f898
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,645
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" ]
Azure.noreply@github.com
3704c2003b4bf2c3197bb637d11b8f84172d1ef7
1b48b3980abbe11691310a7f35efef62bc0ae831
/_msic/py/ZODB/tuturoial/class/class.py
8fbafed6bba79c38127eea3b1c748a1a226862a3
[]
no_license
FXTD-ODYSSEY/MayaScript
7619b1ebbd664988a553167262c082cd01ab80d5
095d6587d6620469e0f1803d59a506682714da17
refs/heads/master
2022-11-05T08:37:16.417181
2022-10-31T11:50:26
2022-10-31T11:50:26
224,664,871
45
11
null
null
null
null
UTF-8
Python
false
false
1,963
py
from ZODB import DB from ZODB.FileStorage import FileStorage from ZODB.PersistentMapping import PersistentMapping from persistent import Persistent import transaction class Employee(Persistent): """An employee""" def __init__(self, name, manager=None): self.name = name self.manager = manager...
[ "timmyliang@tencent.com" ]
timmyliang@tencent.com
8d68404c790773914895237e78424f45eb3f387d
cea019c25a4644acfbbe96bb1e5737aab8b7b156
/apps/client_projects/urls.py
bbcc3f26b8792fef05a1d7885477855aee53816a
[]
no_license
nielschristiank/verbose-chainsaw
103ff4565b9f6099a14a8ef973cd1804d913ba7e
b1e5b13415636a42d46d585a2cdab8bcae648048
refs/heads/master
2021-01-23T01:56:20.088666
2017-05-31T03:39:58
2017-05-31T03:39:58
92,901,413
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name="index"), url(r'^client/add$', views.show_add_client, name="show_add_client"), url(r'^client/add/add_client$', views.add_client, name="add_client"), url(r'^client/(?P<client_id>\d+)$', views.show_client, n...
[ "nielschristiankielland@gmail.com" ]
nielschristiankielland@gmail.com
63a388035baebdcf96610a9a92d3fe8730afa4f1
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2020_09_01_preview/aio/operations/_storage_accounts_operations.py
1849231c08dee49e6fd240d0af1c1cf3ae6f5b79
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
27,322
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
Azure.noreply@github.com
91d8928272e3fb1fb123c8a35e02e59aa876f284
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/111/usersdata/197/63966/submittedfiles/av2_p3_m2.py
cf59b36418d6791376f1ebd8162ee6989b12c547
[]
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
1,313
py
# -*- coding: utf-8 -*- import numpy as np n=int(input('Digite o numero de linhas e colunas:')) a=np.zeros((n,n)) for i in range (0,a.shape[0],1): for j in range (0,a.shape[1],1): a[i,j]=int(input('Digite o valor de um numero da matriz:')) def somalinha(b): soma=0 lista=[] for i in range (0,b.s...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
0a8e7854a8a8536af306876c5311b1877b3ebd80
e081eebc37aef48084fa62a1b36443f03b9e2abe
/Cut the Board.py
f515d8efa5300092214dcd30d9981decaaba9bb2
[]
no_license
S-C-U-B-E/CodeChef-Practise-Beginner-Python
93fa202eede83cf4f58177bffb4ecc4ddb7f19bc
78a02303b3cdd7eb7b0c45be59a1c282234f8719
refs/heads/master
2021-03-24T01:10:43.913150
2020-03-16T12:49:12
2020-03-16T12:49:12
247,501,633
16
8
null
null
null
null
UTF-8
Python
false
false
85
py
for _ in range(int(input())): n,m=map(int,input().split()) print((n-1)*(m-1))
[ "sssanyal10@gmail.com" ]
sssanyal10@gmail.com
0d2de21b70737289cfd6a15ca92d5c2a231213c9
7eeae8e8c39f09b4c95a72574e6bba722358d4a6
/scripts/ifconfig.py
ae137fb4829a76cef6feffdbc510c1c5a1b762ab
[ "BSD-3-Clause" ]
permissive
maxsu/psutil
3227e8a69ce6612eac2e1ff5b0bbc9c0611b4d41
e7ce5ecf63ba00e9b0be6752a0f3b78c2a1782b3
refs/heads/master
2023-01-24T14:06:05.480267
2020-11-20T15:14:17
2020-11-20T15:14:17
314,588,855
1
0
BSD-3-Clause
2020-11-20T15:14:19
2020-11-20T15:10:42
null
UTF-8
Python
false
false
3,328
py
#!/usr/bin/env python3 # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ A clone of 'ifconfig' on UNIX. $ python3 scripts/ifconfig.py lo: stats : speed=0MB, duplex=?, mtu=65536, up=yes ...
[ "g.rodola@gmail.com" ]
g.rodola@gmail.com
f6055fc219190d06f5a1b48679692152a28802f2
879c36c98dc1f385032eefd2584247d35a1a6b79
/script/agg_zip.py
a829f3d6fe3c78ff07289ea793646e47583935cc
[]
no_license
danbikle/fx411
fe0493a572897b14437a93308b72bedc68c1ae5a
b16a9793d82f6d5d9e5b6dffe3f3ddbdc13ec36a
refs/heads/master
2021-01-12T10:59:46.266714
2017-02-07T03:48:50
2017-02-07T03:48:50
72,785,021
0
0
null
null
null
null
UTF-8
Python
false
false
995
py
# agg_zip.py # This script should read zip files. # For each file it should compute current price from (bid+ask)/2. # Next, it should groupby timestamps truncated to 5 minute boundries. # Finally it should output a CSV file with mean of current_price for each 5 minute boundry. import pandas as pd import glob fn_l = s...
[ "bikle@bikle.com" ]
bikle@bikle.com
f8de1a847dfabfdbda205e6f492356d62f4a6d58
81fe7f2faea91785ee13cb0297ef9228d832be93
/HackerRank/Contests/AdInfinitum15/k-element_sequences.py
6c9128935f3b25345c9cb3f7dd3e919114f9bfd9
[]
no_license
blegloannec/CodeProblems
92349c36e1a35cfc1c48206943d9c2686ea526f8
77fd0fa1f1a519d4d55265b9a7abf12f1bd7d19e
refs/heads/master
2022-05-16T20:20:40.578760
2021-12-30T11:10:25
2022-04-22T08:11:07
54,330,243
5
1
null
null
null
null
UTF-8
Python
false
false
1,558
py
#!/usr/bin/env python import sys # P(n,k) = nb de listes de taille k dont la somme vaut n # P(n,k) = sum(P(n-i,k-1), i=1..n) # par choix du dernier element # ce que l'on peut reformuler : # P(n,k) = P(n-1,k-1)+P(n-1,k) # on retrouve la formule du binom et on remarque que # P(n,k) = k-1 parmi n-1 ## Justification dire...
[ "blg@gmx.com" ]
blg@gmx.com
def63653a2b539653154a64072a279a983fcc9bd
c78ce4f66cc964c230ad60fbf2ced6b4811eab89
/0x11-python-network_1/6-post_email.py
e202a0bbcfde2f723ad20c25ff183770373f30cf
[]
no_license
jebichii/holbertonschool-higher_level_programming-1
89026557909851dd775ae355f036db89ebd9adb9
741953aa479af90e8eac6f1315415eff4a20224f
refs/heads/master
2023-03-15T14:58:27.062528
2020-06-11T07:21:23
2020-06-11T07:21:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
#!/usr/bin/python3 ''' Send an email to a URL using a POST request and display the response body ''' import sys import requests if __name__ == '__main__': if len(sys.argv) != 3: print('Usage: ', __file__, 'URL', 'email', file=sys.stderr) sys.exit(1) resp = requests.post(sys.argv[1], data={'...
[ "pdeyoreo@gmail.com" ]
pdeyoreo@gmail.com
8ca5c141a5e4787d957906a9b1e4a13a0ac65284
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2535/58822/246489.py
b1bfaf0817e8e8ae1d2ae6eef9c0c9b0cf8e2c3d
[]
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
144
py
n=input() n=n[1:len(n)-1] list=n.split(',') res=len(list) for i in range(0,len(list)-1): if(list[i]>list[i+1]): res=res-1 print(res)
[ "1069583789@qq.com" ]
1069583789@qq.com
1d82775bb3dff0c94649bf67bd1e37e4bb1c6722
b68fea9d645de59ee31da970d3dc435460fde9de
/projectgroupemailitem/views_edit.py
65b00fd5482dd5fa5b114957dda74bcc300c5870
[ "BSD-3-Clause" ]
permissive
shagun30/djambala-2
03fde4d1a5b2a17fce1b44f63a489c30d0d9c028
06f14e3dd237d7ebf535c62172cfe238c3934f4d
refs/heads/master
2021-01-10T04:20:30.735479
2008-05-22T05:02:08
2008-05-22T05:02:08
54,959,603
0
0
null
null
null
null
UTF-8
Python
false
false
4,595
py
# -*- coding: utf-8 -*- """ /dms/projectgroupemailitem/views_edit.py .. enthaelt den View zum Aendern der Eigenschaften eines Rundschreibens Django content Management System Hans Rauch hans.rauch@gmx.net Die Programme des dms-Systems koennen frei genutzt und den spezifischen Beduerfnissen entsprechend angep...
[ "hans.rauch@gmx.net" ]
hans.rauch@gmx.net
c193bb4f800597128e7486177f4ae95c3ebdf4b2
5db0fab37c2b8a618d85d3b60fab9f806c416474
/src/python/pants/jvm/resolve/coursier_setup.py
50f1517b567d400b1435c874968c021db758e77f
[ "Apache-2.0" ]
permissive
pantsbuild/pants
4988d1ac5474ec95f94ce2218aeb759401e4b011
98cbda8545f0d58c586ed2daa76fefd729d5e0d5
refs/heads/main
2023-09-05T03:44:17.646899
2023-09-01T19:52:09
2023-09-01T19:52:09
7,209,075
2,708
593
Apache-2.0
2023-09-14T19:33:33
2012-12-17T17:39:04
Python
UTF-8
Python
false
false
11,283
py
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import os import shlex import textwrap from dataclasses import dataclass from hashlib import sha256 from typing import ClassVar, Iterable, Tuple from p...
[ "noreply@github.com" ]
pantsbuild.noreply@github.com
aef124fe0bb2a72084970b869538e208e7f96111
c5a8f6dd4e5ebc43f02923704325620f0787b2f4
/textival/storan_continents_sweden.py
47d1e6ba314e0da2c6461deed3665934295c6e8f
[]
no_license
alex-berman/tforms
50098501d19de75632426423d02025162bbc94e6
046476001609dfa8192c2e373a040d4129975ab6
refs/heads/master
2021-01-01T20:00:00.381901
2014-03-16T13:44:09
2014-03-16T13:44:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
#!/usr/bin/env python import subprocess L_MARGIN = R_MARGIN = 0.05 subprocess.call('./sequencer.py --locate-peers --visualizer="python visual-experiments/waves_and_heat_map.py -width 1920 -height 1080 -left 0 -top 0 --map-margin=0.7,%f,0,%f --waves-margin=0,%f,0.3,%f --hscope=0.3:0.8 --vscope=0.07:0.4 --continents --te...
[ "alex@nimations.com" ]
alex@nimations.com
1757df740d5019c181779274f0cd08e290d65989
7ec44a7d6a061931c0c82e2ffd8a691010b77208
/plot_simulation_convergence_num_obs.py
d36f826e9a665bde7558cc0e8716a38ebf2d7548
[]
no_license
jingxuanyang/spinn
70e96b768187b3e86c50fe0e3aac2e9d38197232
4abab78bd86830988ae30e0e165d374cd029f273
refs/heads/master
2023-07-20T07:40:21.377713
2020-07-29T17:51:30
2020-07-29T17:51:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,773
py
import sys import os import argparse import pickle import numpy as np import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt import seaborn as sns import pandas as pd import statsmodels.api as sm from plot_simulation_general import read_method_result from common import process_params, make_params...
[ "jean.feng@gmail.com" ]
jean.feng@gmail.com
45950e622fb74efb238142bae985781b33fcf5f8
55764d1ba14c324662efe2f37dcd0c45bca8bc56
/bartpy/diagnostics/sampling.py
9caef1b6de7a5eae1f7a333632885dce79de8c9b
[ "MIT" ]
permissive
trivialfis/bartpy
02de7201341d1b099a468e0cc8f3a3719b98b512
3aa678405dadbe392df2c24dc258ffc72f175dbb
refs/heads/master
2020-05-15T21:28:01.944291
2019-04-20T06:07:41
2019-04-20T06:07:41
182,499,485
1
0
MIT
2019-04-21T06:42:50
2019-04-21T06:42:50
null
UTF-8
Python
false
false
427
py
from matplotlib import pyplot as plt from bartpy.sklearnmodel import SklearnModel def plot_tree_mutation_acceptance_rate(model: SklearnModel, ax=None): if ax is None: fig, ax = plt.subplots(1, 1) ax.plot([x["Tree"] for x in model.acceptance_trace]) ax.set_title("Tree Mutation Acceptance Rate") ...
[ "jakecoltman@sky.com" ]
jakecoltman@sky.com
c2074e5899b511196d3dab7cd934f270c7b59736
fa4f3cc156a2f77eeb6699b2501f2de2a27d4b8b
/common_configs/logging/stdlib.py
9d7e317f7d0de24f500008f7cdb0340e7f190a57
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
nigma/django-common-configs
3bdaa1d36fdf1ad3762dccb8188aee37b2a07618
b4499415c71ffd317f395896f97b0fc96b1ad7bd
refs/heads/master
2021-01-15T12:25:57.218877
2014-01-23T15:50:42
2014-01-23T15:50:42
16,013,235
5
0
null
null
null
null
UTF-8
Python
false
false
6,503
py
#-*- coding: utf-8 -*- """ Django logging configuration Defined loggers: - <catch all> - django - django.startup - django.request - django.db.backends - django.commands - django.security.DisallowedHost - app.* - for project app loggers - boto - celery - requests - rave...
[ "en@ig.ma" ]
en@ig.ma
8d94c9acc44e604b37003f89fc4814d603e29b70
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2020_12_01/aio/operations/_roles_operations.py
4308a8be196383cf1d93f5166d4b0996acfec8c6
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
25,120
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
Azure.noreply@github.com
88ac3716930b4563f701c6097877abd1a1f093f9
73bb9d0d50b96b3d7ee48e2d97b1d8128a5f2b1e
/backjoon/34/4354.py
c5b0efa04798354d10b6156a26b2b1c2a26b8bc7
[]
no_license
Hoon94/Algorithm
a0ef211d72a2b78e08249501d197875065392084
6f6969214bbb6bacd165313b6d8c0feb1caa8963
refs/heads/master
2023-05-11T13:12:11.585285
2023-05-08T14:38:47
2023-05-08T14:38:47
244,936,260
0
0
null
null
null
null
UTF-8
Python
false
false
509
py
import sys def getPi(P): pi = [0 for _ in range(0, len(P))] j = 0 for i in range(1, len(P)): while j > 0 and P[i] != P[j]: j = pi[j - 1] if (P[i] == P[j]): j += 1 pi[i] = j return pi[-1] while True: S = sys.stdin.readline().rstrip('\n') ...
[ "dleognsdl1@naver.com" ]
dleognsdl1@naver.com
91658a27c8a0dd98b31e26fa48ddcaac64baed78
6c5c6871fc5c37247b4059c956f3ac9d7cdeb714
/.venv/bin/python-config
f59da01a546e74da1c3c7d8001513830edf0d4e9
[]
no_license
masa48326/homework_c
6596f91849b86ab4655712e4dddf2805231d5df3
86c9b83476ee5b18c5edef473f483a4336428d3c
refs/heads/master
2020-09-05T16:12:09.051967
2019-11-07T04:39:47
2019-11-07T04:39:47
220,152,904
0
0
null
null
null
null
UTF-8
Python
false
false
2,373
#!/Users/shibatamasayuki/PycharmProjects/classrevia/.venv/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abif...
[ "masayuki.shibata.0831@gmail.com" ]
masayuki.shibata.0831@gmail.com
0e219d1a3a16bbc59fc8515634e402147f5f3988
14d8418ca5990217be67aee89fdaa310db03fbba
/models/generate_report_result.py
5fb76026b99f639572a7a3b460d23851b913d21e
[ "Apache-2.0" ]
permissive
sachanta/lm-sdk-python
3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0
e476d415c7279457f79b5d032a73d950af2fe96b
refs/heads/master
2023-08-03T08:39:42.842790
2021-09-13T07:20:56
2021-09-13T07:20:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,517
py
# coding: utf-8 """ LogicMonitor REST API LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account...
[ "bamboo@build01.us-west-1.logicmonitor.net" ]
bamboo@build01.us-west-1.logicmonitor.net
56181c2c69dba72a33139b8b8a2af349ce5b361c
833850c97455fd3599cd4fa3eba79a1ba9c163a1
/test/_testdata/System/Job/echo_stderr.py
05f6b7dd1696f075646b7f5252bb8051b466cfd4
[ "MIT" ]
permissive
rhysd/vital-System-Job
3124acde054863bddf6a6fd16b5a9033da69e7df
ae0b50482a5e55905b8ac9d17eee5e8c03172b7f
refs/heads/master
2021-01-23T18:23:55.386998
2017-02-18T11:59:48
2017-02-18T11:59:48
83,000,083
0
0
null
2017-02-24T04:09:00
2017-02-24T04:09:00
null
UTF-8
Python
false
false
46
py
import sys sys.stderr.write('Hello World\n')
[ "lambdalisue@hashnote.net" ]
lambdalisue@hashnote.net
399b9eca614d164284b0319c1dceb590d9b6acfd
c53d57b6ea5b117d8fa260a29942cf9422a46063
/examples/DeepBlueAI/AutoSpeech/PASA_NJU/models/model_LR.py
1c6e1f872eb3570b0a4439999ab39dfd2692ffa7
[ "Apache-2.0" ]
permissive
zichuan-scott-xu/automl-workflow
c52ee6c7c01347274a6b1d6801a7889daa35a40d
d108e55da943775953b9f1801311a86ac07e58a0
refs/heads/main
2023-04-01T16:20:10.885273
2021-04-14T05:44:48
2021-04-14T05:44:48
327,514,705
0
0
Apache-2.0
2021-01-07T05:41:38
2021-01-07T05:41:38
null
UTF-8
Python
false
false
1,318
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time: 2019/9/24 15:12 # @Author: Mecthew from sklearn.linear_model import logistic import numpy as np import abc class ModelBase(object): @abc.abstractmethod def init_model(self, **kwargs): pass @abc.abstractmethod def fit(self, ...
[ "zhengying.liu@polytechnique.edu" ]
zhengying.liu@polytechnique.edu
6ee7099a8967c307dbeb014fa437b151b87e31c9
14f4d045750f7cf45252838d625b2a761d5dee38
/argo/argo/models/io_k8s_api_coordination_v1beta1_lease_spec.py
4b070bc3d68ddf9751e39d53eccf64f3698d95b9
[]
no_license
nfillot/argo_client
cf8d7413d728edb4623de403e03d119fe3699ee9
c8cf80842f9eebbf4569f3d67b9d8eff4ba405fa
refs/heads/master
2020-07-11T13:06:35.518331
2019-08-26T20:54:07
2019-08-26T20:54:07
204,546,868
1
0
null
null
null
null
UTF-8
Python
false
false
8,093
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.14.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six...
[ "nfillot@weborama.com" ]
nfillot@weborama.com
454ae422e35aab4072a4b1af55b1112ac1fdf903
1c6283303ceb883add8de4ee07c5ffcfc2e93fab
/Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/statistics/view/formulacatalog/formulacatalog.py
800c3f884fb2aee3ad7d7d7dc699e90b495a2f50
[]
no_license
pdobrinskiy/devcore
0f5b3dfc2f3bf1e44abd716f008a01c443e14f18
580c7df6f5db8c118990cf01bc2b986285b9718b
refs/heads/main
2023-07-29T20:28:49.035475
2021-09-14T10:02:16
2021-09-14T10:02:16
405,919,390
0
0
null
null
null
null
UTF-8
Python
false
false
2,497
py
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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, ...
[ "pdobrinskiy@yahoo.com" ]
pdobrinskiy@yahoo.com
fa06bde60852b0386c92c729b217339de643eb13
edd67024a5cc523f89627068d48a6bb8909341f4
/server/catssports/settings/dev.py
4102cf5b2e2f2041bdeba7854f05653383c137c7
[]
no_license
Matvey-Kuk/junction_2018
22d9ee93bf6bbad2d3375df8bf16db4221955b26
f7b9359e4d2dc825c2793f9eacd0739a92e36f55
refs/heads/master
2020-04-08T00:55:57.613757
2018-11-25T05:46:45
2018-11-25T05:46:45
158,874,280
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
from .base import * ALLOWED_HOSTS = ["localhost:8000", "localhost"]
[ "motakuk@gmail.com" ]
motakuk@gmail.com
b050f298f3366d4ef3f7c9e2c8387b96ceed0f80
2d6003c2a8bccc85e1e197b82efb84de344e973b
/wiki_learner_lr.py
e9752f9bf134c51ac1beacf0bfef22a5a9cf2c34
[]
no_license
ddlricardo/Image_Retrieval
c2208ccba2d70c8f8dd3a945673c161d6b2d4a61
72e26065e309708aca90de1bae391714a578b51d
refs/heads/master
2016-09-14T06:49:03.759259
2016-05-22T03:03:03
2016-05-22T03:03:03
59,392,150
2
0
null
null
null
null
UTF-8
Python
false
false
2,164
py
import numpy as np from sklearn import svm from sklearn import linear_model from sklearn import metrics from sklearn import preprocessing from sklearn import ensemble import threading as td import pickle import copy import wiki_trainer def trainerb(traindata, trainlabel): clf = ensemble.BaggingClassifier( ...
[ "randonlang@gmail.com" ]
randonlang@gmail.com
c2a486a99c0d9b0ebec9dd0265320ae9c7ad706b
a462a24ff937e151e8151f3a1bdc9c3714b12c0e
/ssoloFUZZIEE14.py
d6cef26fe0a494d6feaf9761b49fdbaa22f2a1a9
[]
no_license
noeliarico/kemeny
b4cbcac57203237769252de2c50ce959aa4ca50e
50819f8bf0d19fb29a0b5c6d2ee031e8a811497d
refs/heads/main
2023-03-29T14:36:37.931286
2023-03-16T09:04:12
2023-03-16T09:04:12
330,797,494
0
0
null
null
null
null
UTF-8
Python
false
false
10,010
py
import numpy as np import pandas as pd import time import kemeny.azzinimunda.azzinimunda3 as am3 rep = 1 results14 = np.zeros(0).reshape(0,7+rep) ############################################################## om = np.array([ [0,2,6,3,3,5,6,3,7,2,6,2,4,4], [8,0,8,6,6,5,6,5,7,5,8,2,2,4], [4,2,0,2,5,7,5,5,4,4,5,4,4,4],...
[ "noeliarico@uniovi.es" ]
noeliarico@uniovi.es
16e0e66cf912be13b93cc61c08171579923972c6
b332e9e5b63db27b23250ddbbb85b470ceaf92a1
/List/restoreString.py
81b03e78c0ce141b31069d4611b724d7bc69a032
[]
no_license
huangketsudou/leetcode_python
66fcc695b0a4f94a35cc52e161ae4bfdb1138dc2
e983f42d245b69f9bddd9855f51ee59648a2039e
refs/heads/master
2021-08-07T23:25:45.532458
2020-08-23T06:15:22
2020-08-23T06:15:22
214,324,229
2
0
null
2020-04-12T14:40:47
2019-10-11T02:16:43
Python
UTF-8
Python
false
false
297
py
from typing import List class Solution: def restoreString(self, s: str, indices: List[int]) -> str: n = len(s) l = [0] * n for c, i in zip(s, indices): l[i] = c return "".join(l) k = Solution() print(k.restoreString(s="art", indices=[1, 0, 2]))
[ "1941161938@qq.com" ]
1941161938@qq.com
97c93885cb90a347b9f08204aab7c5032841dbfa
74816b6afef2f57d59432b184d068e072fc68dea
/config/trafficlight.py
1184c2c0dd2eba0f7eb0441df1434b4e142dbe6d
[]
no_license
shanto268/comprehensive_simulation_traffic_analysis_software
a087e56d775e218941efc6c619ff09df8c313c29
f5454763faf2bfdf9a6520336dcb1b49c566bdf2
refs/heads/master
2022-11-07T13:08:39.845053
2020-06-22T18:46:15
2020-06-22T18:46:15
257,077,402
20
4
null
null
null
null
UTF-8
Python
false
false
1,947
py
import random from simulation.speedLimits import * from simulation.trafficGenerators import * import pygame import sys data = ["test_trial.txt", 24, 5, 5, 4, 2, 1, 0.6, 0, 0.4, 7, 50]# low density aware and oppo maxFps= 40 size = width, heigth = 500 , 800 # in miliseconds updateFrame = 500 seed = None lanes = 3 le...
[ "sadman-ahmed.shanto@ttu.edu" ]
sadman-ahmed.shanto@ttu.edu
a5dabc1b1569d83d5483efb310cf625783042883
db2f6cd878e787fdb2bf27e8f2c151a6ce723217
/exam_prep/exam_19_12_2020/project/medicine/salve.py
f6db768877a2156dfc8246abf4b0f7ae026f2100
[]
no_license
beats4myvan/py_oop
f56930911cdcbf508ed667a42b0c84691a41c9e5
a0186b3d601bd9b98fea018ee652e0ef79492703
refs/heads/main
2023-04-12T20:34:41.019503
2021-05-16T08:36:39
2021-05-16T08:36:39
341,820,277
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
from project.medicine.medicine import Medicine class Salve(Medicine): HEALTH_INCREASE = 50 def __init__(self): super().__init__(Salve.HEALTH_INCREASE)
[ "georgidimitrov90@yahoo.bg" ]
georgidimitrov90@yahoo.bg
88b9f0735a47801afa7e7a9810c2d375ad9698a1
61388527cb5e8782a0e7af2ad47ec2524b475c96
/first_code.py
586f984b6b02b4ed7d6e5fed9d65640bcb012af1
[]
no_license
domspad/hello_world
463076ce3fb5ab348d9320cd460b070e02f63ff0
98110906b229f5fcff29055a7ba925dc257c1fa5
refs/heads/master
2021-01-19T14:33:56.423463
2014-11-08T02:55:51
2014-11-08T02:55:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
17
py
#import SHTUFFFFF
[ "domspad@umich.edu" ]
domspad@umich.edu
25cddacde27594562f64e327d5325661ef4367f3
4111c9d14daacf19826c6021b25f990cb005d607
/evodynamic/connection/random_boolean_net.py
7870ebada9813f6232a095d3516ee20ee647f69b
[ "Apache-2.0" ]
permissive
shahrokhx/EvoDynamic
6b348c6ade1157d38c41da6b11676907ae2bcf69
c69419e49632ca0fecc6e8a1a53ea00e457b0dbe
refs/heads/master
2022-12-13T09:20:44.114494
2020-04-27T18:57:57
2020-04-27T18:57:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,104
py
""" Connections for random Boolean network """ import tensorflow as tf import numpy as np import random def create_pattern_neighbors(width, n_states=2): return [n_states**p for p in range(width)[::-1]] def create_conn_matrix(name, width, n_neighbors=3, n_states=2, is_sparse = True): pattern_neighbors = create_pa...
[ "sidneypontesf@gmail.com" ]
sidneypontesf@gmail.com
8bda564afe7243bc4b6e48b401ecc76020e5fe2a
2f55c3474042c0f46efee0799209be0691f64d96
/semana4/dia1/venv/Scripts/django-admin.py
8d84084a629f8555024b9fb73841bf93766955d0
[]
no_license
FabioMenacho/backend
5244fcb0ccb0c95ddd9b710efbeeb2fbe07d0a61
df735ce9c85872135c0c8a5dc23bc56ac02d1ba8
refs/heads/master
2023-08-20T02:09:52.416018
2021-09-23T03:26:08
2021-09-23T03:26:08
388,661,406
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
#!d:\fabio\tecsup\clases\backend\semana4\dia1\venv\scripts\python.exe # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( 'django-ad...
[ "fmenacho@uni.pe" ]
fmenacho@uni.pe
5d4e6e880fa777fee1116c1fe0cb3a672d2d6bb3
83003007b7bc12493e2bca2b5c78be5ea86df56c
/Day16-Day30/Day23/05.py
30adc40f900e5a165016ce1f2a4c2250b86a24bc
[]
no_license
a6361117/code
fa7fe2f33c522ad38d92e6c429b50ef8a271bb1e
bd8bf877416acc5400dbda90212b7e83020ff643
refs/heads/master
2022-09-07T22:22:24.765271
2020-05-26T14:27:47
2020-05-26T14:27:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,235
py
#python 中定义实例方法 class Person(object): def __init__(self,name): self.__name = name def get__name(self): return self.__name p1 = Person('Bob') print(p1.get__name()) #self不需要显示传入 #给Person,增加一个私有属性__score class Person(object): def __init__(self,name,score): self.name = name ...
[ "46365521+Becky-nuo@users.noreply.github.com" ]
46365521+Becky-nuo@users.noreply.github.com
f6fc3811e0edfb672c8dd493690478f861128d11
03dfcd4bd41ff9ba76e67895e96a9794ad003a31
/tutorial/9-classes/class2.py
2333480ae2958914ab1b3f5d0ead5b1e584dc805
[]
no_license
gittygitgit/python-sandbox
71ca68fcc90745931737f7aeb61306ac3417ce60
3b3e0eaf4edad13aabe51eb3258ebe9e6b951c67
refs/heads/master
2021-01-19T02:41:17.047711
2018-11-22T18:07:15
2018-11-22T18:07:15
39,742,770
0
0
null
null
null
null
UTF-8
Python
false
false
98
py
#!/usr/bin/python f="help" # what type is f? print "the instance f is of type " + f.__class__
[ "grudkowm@Michaels-Air-2.fios-router.home" ]
grudkowm@Michaels-Air-2.fios-router.home
1a142073a5066d57986baa37462bd4f392127584
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/I_w_M_to_Wxyz_focus_Z_ok_to_Cxy_focus/Pyr_wiDiv_ch032/pyr_6s/L3/step09_6side_L3.py
4bff83702b8a6bb67b805a84ce5b49740e6eadfb
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
44,587
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
ca9a64f8fa76011de7866449818197f4f43bdd7d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03095/s604864096.py
2b8ec372703d916a1a8c09ec1c4985f0bc01d054
[]
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
156
py
from collections import Counter N=int(input()) S=input() mod = 10**9+7 d = Counter(S) ans = 1 for v in d.values(): ans *= v+1 ans %=mod print(ans-1)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
25772ffdd99216724736a5ee7a931452651d8754
e3b42e43555cb34e9a7f44c5e1e42b06c89e2b49
/envi/tests/msp430/iclrz.py
90ec1f1aae4b20a502f69d5f570bf8d73515d240
[ "Apache-2.0" ]
permissive
bat-serjo/vivisect-py3
77eed20e8e78ff0f5bbde57eb7709c68617aeb1d
75d58115b09c209a042713736181888fad31482c
refs/heads/master
2021-01-11T21:54:42.853791
2019-01-08T20:15:57
2019-01-08T20:15:57
78,873,268
12
2
null
null
null
null
UTF-8
Python
false
false
266
py
checks = [ # CLRZ ( 'CLRZ', { 'regs': [], 'flags': [(SR_N, 1), (SR_Z, 1), (SR_C, 1), (SR_V, 1)], 'code': "22c3", 'data': "" }, { 'regs': [], 'flags': [(SR_N, 1), (SR_Z, 0), (SR_C, 1), (SR_V, 1)], 'code': "22c3", 'data': "" } ), ]
[ "jroi.martin@gmail.com" ]
jroi.martin@gmail.com
55ac3c75388fc100bbbc7bfcff1cc35b8dfe7fb4
e867517068ade1572691ac86c6f2ad6596c0d559
/film20/showtimes/migrations/0012_auto__add_field_filmonchannel_is_tv_series.py
b46398709030c79d9adfad1e82d4383dbf2544dd
[]
no_license
manlan2/filmaster
044ec124d91da0b6dcf2eb5b8af5aec6f0fffd53
90b2bb72c2bab9dfea0c0837971a625bc6880630
refs/heads/master
2021-05-26T22:24:55.012908
2012-05-27T09:30:37
2012-05-27T09:30:37
107,661,541
1
0
null
2017-10-20T09:51:53
2017-10-20T09:51:53
null
UTF-8
Python
false
false
23,275
py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'FilmOnChannel.is_tv_series' db.add_column('showtimes_filmonchannel', 'is_tv_series', self....
[ "young.jiandong@gmail.com" ]
young.jiandong@gmail.com
b6dcf70944811b4dad5b78e226a22970b0214cd4
5a7a3447d434a458a7bb63f2aa11b64c284d5492
/min_test/min.py
7a75f774cd739523c07d47a383f2f4a4f67a6ab8
[]
no_license
woshimayi/mypython
35792e12036a7a05f12d3ef7006637b2b03f0e2e
7f1eb38e8585bf6d2f21d3ad0f64dace61425875
refs/heads/master
2023-09-01T08:59:12.301836
2023-08-30T05:30:54
2023-08-30T05:30:54
130,017,052
4
0
null
2018-12-02T16:18:14
2018-04-18T06:50:36
HTML
UTF-8
Python
false
false
369
py
# coding=utf-8 # print(' I am ', __name__) def minmax(test, *args): res = args[0] for arg in args[1:]: if test(arg, res): res = arg return res def lessthan(x, y): return x < y def grtrthan(x, y): return x > y if __name__ == '__main__': print(minmax(lessthan, 4, 2, 1, 5, 6, 3...
[ "woshidamayi@Gmail.com" ]
woshidamayi@Gmail.com
f685c5fc3dc016f02e8c77fd413883d97b1b7dcc
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03062/s815934213.py
4da49a8a9c191611838d968fa1ecc7e4b16ae06b
[]
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
316
py
N = int(input()) A = list(map(int, input().split())) A_tmp = sorted(A, key=abs, reverse=True,) total = 0 for i,v in enumerate(A_tmp): if (v <= 0) and (i < len(A_tmp)-1): A_tmp[i] = (-1) * A_tmp[i] A_tmp[i+1] = (-1) * A_tmp[i+1] total += A_tmp[i] else: total += v print(total)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b9a681d5217a366e92eb360656ca0cdce1986446
087f431fefdc79e9da86d703c9c782d73db0cee7
/ex02.py
a6d780523208fa37f42eea469d7c598221270189
[]
no_license
ajaybhatia/programming-in-python-session-2020
1fd5a79c601856a1a462c91cd038988b08f23052
8c02e437e24c8d482703a57e6be0a176635ebf12
refs/heads/master
2023-01-03T11:18:16.775032
2020-10-26T03:47:13
2020-10-26T03:47:13
284,872,939
1
0
null
null
null
null
UTF-8
Python
false
false
198
py
''' Write a script in python to find all multiples of 3, 5 and 7 upto 1 million ''' for num in range(1, 1000001): if num % 3 == 0 and num % 5 == 0 and num % 7 == 0: print(num, end=",")
[ "prof.ajaybhatia@gmail.com" ]
prof.ajaybhatia@gmail.com
7eebfd79e9067eb295a32e18875d23571e37f406
08296e4f0139bd23ec73836996e3637eda666a68
/templatesDemo/templateApp/views.py
405c34dbe85f290015ddf246c5683d575b339ee1
[]
no_license
146789/projects
4589efd8f2f11a1beb487ef06a7556d49ed95c72
a288e39cd088ea2717017285fd68d8b42cf4d493
refs/heads/main
2023-02-02T13:54:34.360222
2020-12-19T08:16:11
2020-12-19T08:16:11
322,798,535
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
from django.shortcuts import render # Create your views here. def renderTemplate(request): mydict = {"name": "naveen"} return render(request, 'templatesApp/firsttemplate.html', context=mydict) def renderEmployee(request): mydict1 = {"id": 123, "name": "naveen", "salary": 10000} return render(reques...
[ "34913079+146789@users.noreply.github.com" ]
34913079+146789@users.noreply.github.com
3f930fe08a31f6f8693371b544417d911cd2afff
bbea9b1f64284c9ca95d9f72f35e06aa39522c67
/Scripts/plot_LRPMaps_ExperimentData_v1-HistoricalTwinNoiseSINGLE-MODDIFsmoother.py
2828ee7f5705d3c24b87138b6355b5d4f7eb90ee
[ "MIT" ]
permissive
zmlabe/ModelBiasesANN
1e70c150bd8897fa5fb822daf8ffad0ee581c5f1
cece4a4b01ca1950f73c4d23fb379458778c221e
refs/heads/main
2023-05-23T06:05:23.826345
2022-07-22T18:36:27
2022-07-22T18:36:27
339,145,668
7
0
null
null
null
null
UTF-8
Python
false
false
30,547
py
""" ANN for evaluating model biases, differences, and other thresholds using explainable AI for historical data Author : Zachary M. Labe Date : 29 April 2021 Version : 1 - adds extra class (#8), but tries the MMean """ ### Import packages import matplotlib.pyplot as plt import numpy as np import sys fro...
[ "zmlabe@rams.colostate.edu" ]
zmlabe@rams.colostate.edu
3134f7ec5f8fc93440224af9cc2beb39a5af9b83
ebc85193594527dcd6701f2e86d834ce0b92bb77
/hipercam/scripts/arith.py
fc3a746f7c565d595a6f64bac600f5381b1f2a91
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
HiPERCAM/hipercam
4c6d1a90c2bdeb908ccc75110ebbb08bf209f7ee
46ff411bbd4d4a6847060e024491fa9afb766a3e
refs/heads/master
2023-07-07T09:17:01.430143
2023-06-26T10:00:29
2023-06-26T10:00:29
102,471,835
5
5
null
2023-06-26T09:55:58
2017-09-05T11:15:15
Python
UTF-8
Python
false
false
10,030
py
import sys import os import numpy as np from trm import cline from trm.cline import Cline import hipercam as hcam __all__ = ["add", "div", "mul", "sub"] ############################################# # # arith -- arithematic with multi-CCD images # ############################################# def arith(args=None...
[ "t.r.marsh@warwick.ac.uk" ]
t.r.marsh@warwick.ac.uk
3e3ed7f60ab1727d13f10be57fccd46aab9b8870
941cbcc815da9927c16291fd0cf341fdf26d4b4b
/Web網頁框架/框架(Django)/200427_全局上下文/mysite/mysite/urls.py
f800945fda61b332ba24bc5e7b61a0ba63749a42
[]
no_license
narru888/PythonWork-py37-
27de004157efdf42972f66b20872e17de8bc676c
f9cb1670fb84b9eb8aaaf7cd5cf9139ab4ef4053
refs/heads/master
2022-12-09T04:58:06.068302
2020-09-23T09:47:40
2020-09-23T09:47:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
from django.contrib import admin from django.urls import path, re_path from app01 import views urlpatterns = [ path('admin/', admin.site.urls), re_path(r'^index/', views.Index_View.as_view()), ]
[ "as124122323@gmail.com" ]
as124122323@gmail.com
81ca87a225319ecd5c57d17c0f93d35ad7b92a1e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02755/s287335041.py
d5b352ed2cfa3a182302d8780446b190949d7885
[]
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
326
py
a,b = map(int,input().split()) # 8% -> [a,a+1) # 10% -> [b,b+1) # max(a*100/8, b*10) <= 元の価格 < min((a+1)*100/8, (b+1)*10) min8 = a*(100/8) max8 = (a+1)*(100/8) min10 = b*10 max10 = (b+1)*10 mi = int(max(min8, min10) - 0.001) + 1 ma = int(min(max8, max10) - 0.001) if mi > ma: ans = -1 else: ans = mi print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
c8882a471f34cc21550c962626476826d07e8c1b
e437d5ff9990f51f45e14aebffefd37d4fca9241
/marchCOMMENTS/admin.py
a1c40386e5be1047f06c20921644aa1f64342205
[]
no_license
siavashMehran/MarchMedical-OnlineShop
fea10bfe0e0a649676a011f6cd38fb1983b6ad4c
57b87204cd047ae6637ed4ad60e9ebc7fdd69b9b
refs/heads/main
2023-05-30T12:51:30.565529
2021-06-02T12:38:27
2021-06-02T12:38:27
360,004,120
0
0
null
2021-06-01T11:22:59
2021-04-21T02:03:10
JavaScript
UTF-8
Python
false
false
133
py
from marchCOMMENTS.models import Comment from django.contrib import admin # Register your models here. admin.site.register(Comment)
[ "sia.dev.acc@gmail.com" ]
sia.dev.acc@gmail.com
d98cb3276700b0619b55a52fd01b4bde3ac26b0a
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_supervened.py
63d83774f76adad3b9f81467aaf63f60d0ae4dfd
[ "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
234
py
#calss header class _SUPERVENED(): def __init__(self,): self.name = "SUPERVENED" self.definitions = supervene self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['supervene']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
84a3cfba54746da4c76ea8e59883e2e4e489dba3
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r8/Gen/DecFiles/options/18212253.py
9fd63b0d48dc4dfe782fe97a4561370f1c4b89db
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,272
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/18212253.py generated: Fri, 27 Mar 2015 15:48:15 # # Event Type: 18212253 # # ASCII decay Descriptor: chi_b0(3P) -> (Upsilon -> mu+ mu-) gamma # from Gaudi.Configuration import * importOptions( "$DECFILESROOT/options/Upsilon.py" ) from Configurables impor...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
e7b31cbd178f19c99dc8538cc5ed7790a3213572
4f4ab46092c73b1cfb0a7730bb3ed59b829552a9
/src/utf8_check.py
e65530bd225efba21326e608d476ef9a2505f19e
[ "Unlicense" ]
permissive
kemingy/daily-coding-problem
ab3dcab662593fa9ce15ef49a9105cf962514189
0839311ec0848f8f0b4a9edba817ecceb8f944a0
refs/heads/master
2020-03-27T06:05:52.028030
2019-08-07T03:32:33
2019-08-07T03:32:33
146,078,162
3
0
null
null
null
null
UTF-8
Python
false
false
1,651
py
# UTF-8 is a character encoding that maps each symbol to one, two, three, # or four bytes. # For example, the Euro sign, €, corresponds to the three bytes # 11100010 10000010 10101100. The rules for mapping characters are as follows: # • For a single-byte character, the first bit must be zero. # • For an n-byte chara...
[ "kemingy94@gmail.com" ]
kemingy94@gmail.com
f1a77447961b51a2535ea323f014d0bf469e2e2b
b84504601d4fc44020f243ad3c2bdb702e721306
/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/create_instance_request_body.py
e0bcd116e127faef8e6f6c79e92780c517392587
[ "Apache-2.0" ]
permissive
yancheng9/huaweicloud-sdk-python-v3
ec716568ed1dec9fa5b117316e663b4a05c59d4b
c2d5738c76a6ac9cab4bd3f8812993743ef68871
refs/heads/master
2022-12-14T11:05:20.886094
2020-09-19T09:49:31
2020-09-19T09:49:31
296,835,121
0
1
null
null
null
null
UTF-8
Python
false
false
15,912
py
# coding: utf-8 import pprint import re import six class CreateInstanceRequestBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and th...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
415471a5343c19f74e4deecf39013fda1d985f06
2dadc071440a236c32645e5af81d0aa72d68050f
/artificial_intelligence/flocking.py
694203e140a398970527f52012945aacbe5b9851
[]
no_license
sunary/data-science
a58d572d05c7c14b7ab5d281889d7206838d97ab
ac5d2af680948e76cf21248797a7014b27e96703
refs/heads/master
2023-04-12T08:42:13.950495
2023-03-28T01:05:32
2023-03-28T01:05:32
43,934,997
4
3
null
2023-03-31T14:29:53
2015-10-09T05:31:13
Python
UTF-8
Python
false
false
4,637
py
__author__ = 'sunary' import Tkinter import math import random CANVAS_SIZE = (700, 500) MOVE_SIZE = 1.5 COHENSION_SIZE = 30 SEPARATION_SIZE = 15 class Boid(object): def __init__(self, loc=[0, 0], vec=[0, 0], radius=0): self.loc = loc self.vec = vec self.radius = radius def distan...
[ "v2nhat@gmail.com" ]
v2nhat@gmail.com
81749c3be98af1acce87654827678a6600ff3a76
6375b9a795966ce18c426b95ea578f477acb9509
/abc/abc154/a.py
b1e3a2f677ca831e52f574c1c91d3c64872448f4
[]
no_license
katryo/AtCoder
d67cb44025d456429f87f15c0e0e52b4e45a56df
3df6ca302a8328f7f018b9a59e5b065323e47dbc
refs/heads/master
2021-02-11T17:52:21.239775
2020-03-28T14:38:23
2020-03-28T14:38:23
244,516,895
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
import sys def main(): s = sys.stdin.readline().strip() a = [] for _ in s: a.append('x') print(''.join(a)) if __name__ == '__main__': main()
[ "katoryo55@gmail.com" ]
katoryo55@gmail.com
ab6e57e1947c880b301a36022cdb016ce8dbc140
3db9ef78b62b01bf79dff6671b02c24192cd4648
/13/5.py
995e2a233233bcbab5471a7f0e8cd9536b03c431
[]
no_license
rheehot/python-for-coding-test
401f5655af1a8cf20bc86edb1635bdc4a9e88e52
be95a0d0b3191bb21eab1075953fa472f4102351
refs/heads/master
2022-11-11T19:35:56.680749
2020-06-24T02:19:48
2020-06-24T02:19:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
960
py
n = int(input()) # 연산을 수행하고자 하는 수 리스트 data = list(map(int, input().split())) # 더하기, 빼기, 곱하기, 나누기 연산자 개수 add, sub, mul, div = map(int, input().split()) min_value = 1e9 max_value = -1e9 def dfs(i, now): global min_value, max_value, add, sub, mul, div if i == n: min_value = min(min_value, now) ma...
[ "noreply@github.com" ]
rheehot.noreply@github.com
7505421416e062b7544d99e24604aa7e7c49b691
1302a788aa73d8da772c6431b083ddd76eef937f
/WORKING_DIRECTORY/system/extras/tests/net_test/neighbour_test.py
1e7739e419556774e928b4cc0e577b6fa2d4f71d
[ "Apache-2.0" ]
permissive
rockduan/androidN-android-7.1.1_r28
b3c1bcb734225aa7813ab70639af60c06d658bf6
10bab435cd61ffa2e93a20c082624954c757999d
refs/heads/master
2021-01-23T03:54:32.510867
2017-03-30T07:17:08
2017-03-30T07:17:08
86,135,431
2
1
null
null
null
null
UTF-8
Python
false
false
10,517
py
#!/usr/bin/python # # Copyright 2015 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
[ "duanliangsilence@gmail.com" ]
duanliangsilence@gmail.com
75227f853bc3f151b62621dc93ac35f76abfdd72
62e58c051128baef9452e7e0eb0b5a83367add26
/edifact/D00A/CODENOD00AUN.py
56f7b31a1f2750740bc759a4b6bc01849cef0714
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
1,108
py
#Generated by bots open source edi translator from UN-docs. from bots.botsconfig import * from edifact import syntax from recordsD00AUN import recorddefs structure = [ {ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGM', MIN: 1, MAX: 1}, {ID: 'DTM', MIN: 0, MAX: 9}, {ID: 'FTX', MIN: 0, MAX: 9}, {ID: 'RFF'...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com