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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
41ccba0bac47fc1a2880eccf4cd69dcf9867580d | c42a085521cec895fac0021eb1638d6f077eadf7 | /PYTHON_FUNDAMENTALS_May_August_2020/Exam_Preparation_29_07_20_Python_Fundamentals/02. Registration.py | 30888da99efa5b5a9e2aafbbc8a56bc9b8c8d6ed | [] | no_license | vasil-panoff/Python_Fundamentals_SoftUni_May_2020 | f645ce85efa6db047b52a8b63d411d2e5bd5bd9a | daf1a27ff1a4684d51cf875ee0a4c0706a1a4404 | refs/heads/main | 2023-01-06T22:20:30.151249 | 2020-11-03T22:56:24 | 2020-11-03T22:56:24 | 309,818,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import re
username_pattern = r'U\$([A-Z][a-z]{2,})U\$'
password_pattern = r'P@\$([a-z]{5,}\d+)P@\$'
regex = fr'{username_pattern}{password_pattern}'
n = int(input())
total_count = 0
for i in range(n):
registration = input()
match = re.match(regex, registration)
if match is None:
print("Invalid us... | [
"vasil.panov@gmail.com"
] | vasil.panov@gmail.com |
b6ef00ae2eebd8c444b26cbe6dda215cb3a4043c | 2f36ee70b1224c5700eb9fd4d5b6d568a1c9fe9f | /dec.py | 7c8d7795bfc91e4682d4d875ad613b7bff00ef42 | [
"MIT"
] | permissive | laurelkeys/intimo | d70b4621f49937127c8ea9a72ff23495ba151a1e | f5c8200e52e4aeb9c04b4988a61dbc66c04f8255 | refs/heads/master | 2020-09-03T21:42:12.142312 | 2019-11-24T21:39:44 | 2019-11-24T21:39:44 | 219,578,931 | 0 | 0 | MIT | 2019-11-24T21:37:47 | 2019-11-04T19:22:15 | Python | UTF-8 | Python | false | false | 3,735 | py | import os, sys
import argparse
import warnings
import cv2
import numpy as np
import sounddevice as sd
from scipy.io import wavfile
from codec import decode
from converter import convert
def get_parser():
parser = argparse.ArgumentParser(
description="Retrieve WAV audio data from an image bit plane.")
... | [
"tiagoloureirochaves@gmail.com"
] | tiagoloureirochaves@gmail.com |
705a6e762c4b0a8c8ffcf7d70018b1b1cca90cc3 | d5f4b09c38cef1ae6ea22c70bd13316661fa1fcb | /Workspace/TestTxt.py | 2da291715b852521b603af99913a1607f0b41aa1 | [
"MIT"
] | permissive | ExtensiveAutomation/extensiveautomation-appclient | fa4ec42c762c0941c104b679374113b9eac8d0a0 | 66f65dd6e4a48909120f63239f630147c733df3f | refs/heads/master | 2023-08-31T00:04:03.766489 | 2023-08-18T08:30:01 | 2023-08-18T08:30:01 | 168,972,301 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,706 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------
# Copyright (c) 2010-2020 Denis Machard
# This file is part of the extensive automation project
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Le... | [
"d.machard@gmail.com"
] | d.machard@gmail.com |
0e7b38386ab690b9218ba8a713e93c88f1be4acf | 6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5 | /katas/kyu_7/sorted_yes_no_how.py | 42671da2fe9a26ca20c19645cb1f6d79ec5555f4 | [
"MIT"
] | permissive | mveselov/CodeWars | e4259194bfa018299906f42cd02b8ef4e5ab6caa | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | refs/heads/master | 2021-06-09T04:17:10.053324 | 2017-01-08T06:36:17 | 2017-01-08T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | def is_sorted_and_how(nums):
a_or_d = {'a': 'ascending', 'd': 'descending'}
diffs = {'d' if b - a < 0 else 'a' for a, b in zip(nums, nums[1:])}
return 'yes, {}'.format(a_or_d[diffs.pop()]) if len(diffs) == 1 else 'no'
| [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
7b3b80fb2fc11b92f63feacf8246e4800fda39ae | e78ce85bac254f720e021f5f0ad172189da3ab77 | /banco_de_dados/migrations/0002_exame_alt_anatomia.py | 6b51029e3f25268d8689fa4b2950356fd1de1666 | [] | no_license | lldenisll/backend_papaiz | 4d1a0a0b427e708551d57381591614b9c8bf9c55 | 71f1eceafadbaf120f8ef9c87741fa8e431d192a | refs/heads/master | 2023-07-29T10:28:09.634047 | 2021-09-10T13:01:50 | 2021-09-10T13:01:50 | 405,077,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # Generated by Django 3.2.5 on 2021-08-11 17:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('banco_de_dados', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Exame_alt_anatomia',
fields=[
... | [
"namorado@TFGcos-MacBook-Pro.local"
] | namorado@TFGcos-MacBook-Pro.local |
a7ae83cdc676a6fee62b948a17dfcb27194dca8a | 32809f6f425bf5665fc19de2bc929bacc3eeb469 | /src/1297-Maximum-Number-of-Occurrences-of-a-Substring/1297.py | aee0221f3b7df218ccd20e3d5a2801d51b640b42 | [] | no_license | luliyucoordinate/Leetcode | 9f6bf01f79aa680e2dff11e73e4d10993467f113 | bcc04d49969654cb44f79218a7ef2fd5c1e5449a | refs/heads/master | 2023-05-25T04:58:45.046772 | 2023-05-24T11:57:20 | 2023-05-24T11:57:20 | 132,753,892 | 1,575 | 569 | null | 2023-05-24T11:57:22 | 2018-05-09T12:30:59 | C++ | UTF-8 | Python | false | false | 312 | py | class Solution:
def maxFreq(self, s: str, maxLetters: int, minSize: int, maxSize: int) -> int:
cnt = collections.Counter([s[i:i + minSize] for i in range(len(s) - minSize + 1)])
for k, v in cnt.most_common():
if len(set(k)) <= maxLetters:
return v
return 0 | [
"luliyucoordinate@outlook.com"
] | luliyucoordinate@outlook.com |
fb96fd36ffe7f093778aed80d23b8f51c8119a10 | d8d6cb5563a71de354072096a5cabfa7a3748dda | /packages/vaex-arrow/vaex_arrow/convert.py | 333d0a7568453cc83f62f5c5093a03bdbc52b769 | [
"MIT"
] | permissive | tpoterba/vaex | f061ad443a1c8ed3f1c90e7206be316f87ab12df | a24e9c4cedc19753e8c7bacede9de37dfcee3c81 | refs/heads/master | 2020-04-11T08:42:52.703154 | 2018-12-13T10:03:13 | 2018-12-13T10:03:13 | 161,653,094 | 0 | 0 | MIT | 2018-12-13T14:48:19 | 2018-12-13T14:48:19 | null | UTF-8 | Python | false | false | 2,682 | py | import pyarrow
import numpy as np
def arrow_array_from_numpy_array(array):
dtype = array.dtype
mask = None
if np.ma.isMaskedArray(array):
mask = array.mask
if dtype.kind == 'S':
type = pyarrow.binary(dtype.itemsize)
arrow_array = pyarrow.array(array, type, mask=mask)
else:
... | [
"maartenbreddels@gmail.com"
] | maartenbreddels@gmail.com |
ea5bf03da06892d8e97f87a9e30552535d42d37a | 6baeb1bcf18a442faa53a73000aa7cbfccffb0ce | /newv/Lib/site-packages/django/template/response.py | d06017c5209e7af0e21dbcc836d94a145bc4129d | [] | no_license | bipinmilan/HouseRental | 22502b2c796f083751f10a7b1724e2566343fbc6 | c047d0d20ad4255edcc493b3ae9d75d7819d73b6 | refs/heads/master | 2022-12-09T05:43:17.588485 | 2019-12-04T06:43:36 | 2019-12-04T06:43:36 | 225,795,647 | 0 | 0 | null | 2022-12-08T05:24:44 | 2019-12-04T06:28:27 | Python | UTF-8 | Python | false | false | 5,425 | py | from django.http import HttpResponse
from .loader import get_template, select_template
class ContentNotRenderedError(Exception):
pass
class SimpleTemplateResponse(HttpResponse):
rendering_attrs = ['template_name', 'context_data', '_post_render_callbacks']
def __init__(self, template, context=None, con... | [
"bipinseo62@gmail.com"
] | bipinseo62@gmail.com |
638577ab2dbc394a7aacba4ef64f0e646d9b26e6 | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/Aerodynamics/Aerodynamics_20210714153638.py | 9d8de4e6619d3956f350d237612b12fe713a8aee | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,839 | py | # author: Bao Li #
# Georgia Institute of Technology #
"""Reference:
1: (2.3.1) Mattingly, Jack D., William H. Heiser, and David T. Pratt. Aircraft engine design. American Institute of Aeronautics and Astronautics, 2002.
2. Wedderspoon, J. R. "The high lift development of the A320 aircraft." International Congre... | [
"libao@gatech.edu"
] | libao@gatech.edu |
62b7554daa56c6497a148072ef4e2ba0e2acb777 | 56b4d00870af18752b4414495b08e2ec3adf3ae4 | /tests/clims/models/test_substance_visualize.py | 00928f5bc205cc98eb747892cc05a823427582ae | [
"BSD-2-Clause"
] | permissive | commonlims/commonlims | 26c3f937eaa18e6935c5d3fcec823053ab7fefd9 | 36a02ed244c7b59ee1f2523e64e4749e404ab0f7 | refs/heads/develop | 2021-07-01T17:20:46.586630 | 2021-02-02T08:53:22 | 2021-02-02T08:53:22 | 185,200,241 | 4 | 1 | NOASSERTION | 2021-02-02T08:53:23 | 2019-05-06T13:16:37 | Python | UTF-8 | Python | false | false | 1,206 | py | from __future__ import absolute_import
from tests.clims.models.test_substance import SubstanceTestCase
class TestSubstance(SubstanceTestCase):
def setUp(self):
self.has_context()
def test_can_render_substance_graph(self):
sample1 = self.create_gemstone() # sample1.v1
original_id = s... | [
"costeinar@gmail.com"
] | costeinar@gmail.com |
b7eeb1f523e69ef574283ab11434784584907c21 | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/ipv6.py | aee77725a61a6f8228b403f3188140817c106249 | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 33,184 | py |
# Copyright 1997 - 2018 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, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
d29fc2511d456085db14c97843725d23a1057313 | b2c0517a0421c32f6782d76e4df842875d6ffce5 | /Algorithms/Tree/637. Average of Levels in Binary Tree.py | dc59a5deed5812ed84ce07c82b0f4ad35cf9ec86 | [] | no_license | SuYuxi/yuxi | e875b1536dc4b363194d0bef7f9a5aecb5d6199a | 45ad23a47592172101072a80a90de17772491e04 | refs/heads/master | 2022-10-04T21:29:42.017462 | 2022-09-30T04:00:48 | 2022-09-30T04:00:48 | 66,703,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def averageOfLevels(self, root):
res = list()
if(not root):
return res
stack = list()
stack.append(root)
while(s... | [
"soration2099@gmail.com"
] | soration2099@gmail.com |
a9c01d49f035fa98e11a770a4c38558c0ae757c1 | 2023cc7a0680af1758c0f667a1eae215c58a806b | /list_comprehension/list_comprehensions_test.py | b9355a9769baaa091f774f56ede82ba9443da35c | [] | no_license | EmpowerSecurityAcademy/master_repo | cc157be6441755903cbd7694e321c44a22d342aa | a2b189fe480e02fc9e83dcbbd3a6c84d480cf2b7 | refs/heads/master | 2021-05-01T12:30:05.921207 | 2016-08-31T22:56:13 | 2016-08-31T22:56:13 | 66,875,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | import unittest
from list_comprehensions import *
class TestNumbers(unittest.TestCase):
def test_even_numbers(self):
result = even_numbers([1, 2, 4, 5, 7, 8])
self.assertEqual(result, [2, 4, 8])
# def test_start_with_a(self):
# result = start_with_a(["apple", "orange", "carrot"])
# self.assertEqual(result... | [
"sheltowt@gmail.com"
] | sheltowt@gmail.com |
a554c517ba038a44869c29b36c0359276d048910 | 16b389c8dcace7f7d010c1fcf57ae0b3f10f88d3 | /docs/jnpr_healthbot_swagger/test/test_rule_schema_byoi_plugin_parameters.py | 26cd3b883961f232096d84c0eb6c999897aa28b2 | [
"Apache-2.0"
] | permissive | Juniper/healthbot-py-client | e4e376b074920d745f68f19e9309ede0a4173064 | 0390dc5d194df19c5845b73cb1d6a54441a263bc | refs/heads/master | 2023-08-22T03:48:10.506847 | 2022-02-16T12:21:04 | 2022-02-16T12:21:04 | 210,760,509 | 10 | 5 | Apache-2.0 | 2022-05-25T05:48:55 | 2019-09-25T05:12:35 | Python | UTF-8 | Python | false | false | 1,046 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 1.0.0
Contact: healthbot-hackers@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagge... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
f221c808e80e79fbf7f47d9405fc2c19189e9814 | dec703232249a5b4b3c8c3ecac5e369cb9ed3b3e | /project/urls.py | 85a74567a92a4c7002a7a193a16f76e85509f87c | [] | no_license | mmasterenko/ricod | 4ab8a8bfd84095ee31021ca660b7d37a64f52d91 | 8b98a4393906ad1533266aa3d5c974916e49e0cc | refs/heads/master | 2021-01-12T08:57:08.807616 | 2016-09-04T07:09:22 | 2016-09-04T07:09:22 | 76,731,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"mmasterenko@gmail.com"
] | mmasterenko@gmail.com |
c5dba810e00817877a884148ffdbb50430204751 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /6CGomPbu3dK536PH2_19.py | 2e493421cb511fa5ca0f2bec4664db39a3154aeb | [] | 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 | 556 | py | """
Create a function that takes in a list and returns a list of the accumulating
sum.
### Examples
accumulating_list([1, 2, 3, 4]) ➞ [1, 3, 6, 10]
# [1, 3, 6, 10] can be written as [1, 1 + 2, 1 + 2 + 3, 1 + 2 + 3 + 4]
accumulating_list([1, 5, 7]) ➞ [1, 6, 13]
accumulating_list([1, 0, 1, 0... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7f311b4afa86c8ca906e108d6d07a2e08cb12f38 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2214/60627/300861.py | 243f233a14661085464368b8fe5f50eb1b4e3ef2 | [] | 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 | 234 | py | a = input()[:-1].split('+')
b = input()[:-1].split('+')
print(a,b)
a[0] = int(a[0])
a[1] = int(a[1])
b[0] = int(b[0])
b[1] = int(b[1])
x = a[0]*b[0] + a[1]*b[1]
y = a[1]*b[0] + a[0]*b[1]
print(a,b)
print(str(x) + '+' + str(y) + 'i') | [
"1069583789@qq.com"
] | 1069583789@qq.com |
20960e289520fe9cc0888be07971cf62745d8cf5 | 0c6024603ec197e66b759d006c7e8c8ddd8c6a27 | /tests/test_docker.py | fdaf5c2d3eb7d325503b0b9c81285ccb2f92e636 | [
"Apache-2.0"
] | permissive | cloudmesh/docker-url-provider | 31f374b19b260564283d5771f319a7ebdf743598 | 95703378962e6a3aef027c11a5a94401b3f14776 | refs/heads/main | 2023-01-19T09:24:33.393770 | 2014-12-24T05:32:16 | 2014-12-24T05:32:16 | 25,997,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """ run with
nosetests -v --nocapture
"""
from __future__ import print_function
from cloudmesh_common.util import HEADING
from cloudmesh_common.logger import LOGGER, LOGGING_ON, LOGGING_OFF
log = LOGGER(__file__)
class Test:
def setup(self):
pass
def tearDown(self):
pass
def test_01_... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
4ba2261f15df0084b6779fbded58e3a84937c7f5 | e9bb31bf22eb1edcd890d3117dc3b1e5fa929644 | /keras.3-3.0.py | e6e50017a7cc32ac975fcdffe3866373903c3c3e | [] | no_license | paulcwlin/tf.keras-test | c6de79ca3ed49997269510ec85619974f583ed82 | 9914d4e67d1c0dbe5065676c3e25a8afd710f93b | refs/heads/main | 2023-04-29T13:42:38.065355 | 2021-05-21T02:10:44 | 2021-05-21T02:10:44 | 369,390,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Conv2D, MaxPooling2D, Flatten
cnn = Sequential()
cnn.add(Conv2D(filters=8,
kernel_size=[3,3],
padding='same',
input_shape=[100,100,1]))
cnn.add(MaxPooling2D(pool_size=[2,2],
... | [
"bauroad@gmail.com"
] | bauroad@gmail.com |
0f4179f6a499762113ccfe90e72cff07a66e38bf | a31c21bcc4486fd44dd2c5b7f364e8f0320f7dd3 | /synth_controller/synth_controller/mujoco/wrapper/core_test.py | 269565967c0a4809814b3a53e7cf903e8b14740f | [
"Apache-2.0"
] | permissive | SynthAI/SynthAI | 0cb409a4f5eb309dfc6a22d21ac78447af075a33 | 4e28fdf2ffd0eaefc0d23049106609421c9290b0 | refs/heads/master | 2020-03-19T12:49:07.246339 | 2018-06-07T23:27:51 | 2018-06-07T23:27:51 | 136,542,297 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,003 | py | # Copyright 2017 The synth_controller Authors.
#
# 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 agree... | [
"foxxymoxxy@secmail.pro"
] | foxxymoxxy@secmail.pro |
01905e300f6adc6e85e2b45520152fcab72bb167 | 4a27c69443bbbc44b8a826e059fcbb0ae38e0b09 | /src/apps/plant/api/serializers.py | adcf8b3b25e6ac48d37473cac21743f61b8aff69 | [] | no_license | amir-khakshour/3meg | 3b102e694fb9e07221e106ada4e51083ef97738f | 9573797c252480dca266d320ea2e97372c2c2b7a | refs/heads/master | 2022-12-11T12:54:15.340521 | 2020-02-19T09:21:16 | 2020-02-19T09:21:16 | 240,120,884 | 0 | 0 | null | 2022-12-08T03:36:48 | 2020-02-12T21:39:46 | Python | UTF-8 | Python | false | false | 927 | py | from django.conf import settings
from rest_framework import serializers
from ..models import DataPoint, Plant
class PlantSerializer(serializers.ModelSerializer):
class Meta:
model = Plant
fields = '__all__'
class DataPointSerializer(serializers.ModelSerializer):
date_created = serializers.D... | [
"khakshour.amir@gmail.com"
] | khakshour.amir@gmail.com |
466bcae133a79639ffac7ea43c69d6dddece5cc3 | 1764780f3bd3cc23b537cb5c59efa08725495c73 | /pjt-back/accounts/migrations/0001_initial.py | de77de9945891d66010ccf66f5cde05117a07fbd | [] | no_license | GaYoung87/GEEG | c048c420a266ed621d66bcd74070953f7e56e12d | 6e31d86e8165e611d16f21cb0ac10ae8c2081f5b | refs/heads/master | 2020-09-15T05:46:13.464753 | 2019-11-29T06:31:35 | 2019-11-29T06:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | # Generated by Django 2.2.7 on 2019-11-28 06:48
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permission... | [
"gyyoon4u@naver.com"
] | gyyoon4u@naver.com |
904d4ab48a948edeb19066e5b38eef81900b58bc | 78d23de227a4c9f2ee6eb422e379b913c06dfcb8 | /LeetCode/963.py | 505d68a6549dbbab3bb2fa8d985f20898927548e | [] | no_license | siddharthcurious/Pythonic3-Feel | df145293a3f1a7627d08c4bedd7e22dfed9892c0 | 898b402b7a65073d58c280589342fc8c156a5cb1 | refs/heads/master | 2020-03-25T05:07:42.372477 | 2019-09-12T06:26:45 | 2019-09-12T06:26:45 | 143,430,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | from itertools import combinations
class Solution(object):
def findArea(self, points):
x1, y1 = points[0]
x2, y2 = points[1]
x3, y3 = points[2]
x4, y4 = points[3]
a = (x1*y2 - x2*y1) + (x2*y3 - x3*y2) + (x3*y4 - x4*y3) + (x4*y1-y4*x1)
print(a)
if a < 0:
... | [
"sandhyalalkumar@gmail.com"
] | sandhyalalkumar@gmail.com |
375e9fa42abf66b0ce774aa92bfab88473ddbff4 | 21963071945c7bb54a7f126da536da3c2ff40cbe | /Lesson05/binaryTree.py | 8d9b632d330ef46fba9f1bbe6d99dd55096c4eb4 | [] | no_license | SaretMagnoslove/Data_structures_and_Algorithms_python-Udacity | f05770c112b91206b798305da3dd5f3e2a93a7d9 | 640c30bd39645bbddad10ac50823434ab82b4354 | refs/heads/master | 2020-03-21T08:03:41.210949 | 2018-06-29T17:43:42 | 2018-06-29T17:43:42 | 138,317,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | class Node(object):
def __init__(self, value):
self.value = value
self.left = None
self.right = None
class BinaryTree(object):
def __init__(self, root):
self.root = Node(root)
def search(self, find_val):
"""Return True if the value
is in the tree, return
... | [
"magnoslove@gmail.com"
] | magnoslove@gmail.com |
1f89fc3c868206f312b83b1732337ece61d67b5a | 8813b9e9894ead566efc0ea192a88cd6546ae29e | /ninjag/tk/ioTK/save_text.py | 26cae83c4e3b3846fb06a20ec983e3eb86400daf | [
"MIT"
] | permissive | yuhangwang/ninjag-python | 1638f396711533c2b540dee2d70240fa25009c86 | b42b447260eebdd6909246a5f7bb4098bfa3c0e1 | refs/heads/master | 2021-01-12T04:04:13.395305 | 2017-02-20T19:12:52 | 2017-02-20T19:12:52 | 77,489,214 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | def save_text(f_out, *text):
"""Save text to file
Args:
f_out (str): output file name
text (str): variable number of strings of
file content
"""
with open(f_out, 'w') as OUT:
OUT.write("\n".join(text) + "\n")
| [
"stevenaura@live.com"
] | stevenaura@live.com |
c780f7566c732bdec5336ac8598da93c5a0a1b5b | 87bae60470bbe5316d7da8bc4a8709e33b40e2b5 | /setup.py | e5bd575e22fb71ebd994629da6b018f29618bf9b | [] | no_license | saxix/django-whatsnew | c11f0d5fa87e5e1c5c7648e8162bd39c64e69302 | 68b33e5e2599a858e00eda53e1c13a503e1b3856 | refs/heads/develop | 2021-01-19T12:39:41.876635 | 2015-01-28T16:18:29 | 2015-01-28T16:18:29 | 18,416,313 | 0 | 2 | null | 2015-01-28T16:18:30 | 2014-04-03T20:00:33 | Python | UTF-8 | Python | false | false | 689 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
dirname = 'whatsnew'
app = __import__(dirname)
setup(
name=app.NAME,
version=app.get_version(),
url='https://github.com/saxix/django-whatsnew',
description="Simple application to manage `what's new` screen.",
author='sax',
auth... | [
"s.apostolico@gmail.com"
] | s.apostolico@gmail.com |
8fd2b111a6bb6157ab8fc2e2c901b7dcf47cbf51 | ad129f7fc03f10ef2b4734fa2c2b9cb9367c84fa | /Aula 15 - BREAK/Exe070.py | 574b69c6195435654ca96c47aef7bde33477767d | [] | no_license | LucasDatilioCarderelli/Exercises_CursoemVideo | c6dc287d7c08a0349867a17185474744513dbaac | 67c2d572a4817a52dababbca80513e4b977de670 | refs/heads/master | 2022-03-31T20:20:52.827370 | 2020-01-27T13:15:19 | 2020-01-27T13:15:19 | 236,491,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | # Exe070 - Digite o nome e valor de varios produtos e tenha:
# O total da compra, quantos produtos acima de R$1.000,00 e qual o menor produto.
cont = contn = soma = menor = 0
menorn = ' '
print(f'{"LOJINHA":-^40}')
while True:
nome = str(input('Nome: '))
preço = float(input('Preço: R$').strip())
soma += pre... | [
"noreply@github.com"
] | LucasDatilioCarderelli.noreply@github.com |
177ace6fc3932a9be8e88516fc4952b327b9c170 | 68a0a4a92b6d609dbc6da04798e66209cc48a3c3 | /tqdm-auto-recommended.py | 91c24db3fd3751930bd82f96a6b7df2743f7305c | [] | no_license | bertcuyugan/loading_bar | 639ff55927fe06cbec7697510933f68c06a6f15e | ace86d757cb5115caf0b366801d03f764d59246b | refs/heads/main | 2023-07-03T12:01:27.255687 | 2021-08-09T06:06:44 | 2021-08-09T06:06:44 | 311,962,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | #!/usr/bin/python3
from tqdm.auto import tqdm
for i in tqdm(range(100001)):
print(" ", end='\r')
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a8e051e4166dba43f6cc50ba51c3b0cf0686feb4 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /HLTrigger/Configuration/python/HLT_75e33/modules/hltDiEG3023IsoCaloIdHcalIsoL1SeededFilter_cfi.py | aabfec4938f1f470ccd88a2dc9ca5286f84e2174 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 1,303 | py | import FWCore.ParameterSet.Config as cms
hltDiEG3023IsoCaloIdHcalIsoL1SeededFilter = cms.EDFilter("HLTEgammaGenericQuadraticEtaFilter",
absEtaLowEdges = cms.vdouble(0.0, 0.8, 1.479, 2.0),
candTag = cms.InputTag("hltDiEG3023IsoCaloIdHgcalIsoL1SeededFilter"),
doRhoCorrection = cms.bool(False),
effectiveA... | [
"Thiago.Tomei@cern.ch"
] | Thiago.Tomei@cern.ch |
8e47efee6b734ae3afc39185eb157680455e8b0f | def78b4f5764e77a12c2ba01cbeb0d41ec7dbc2b | /tests/test_wsgi_interface.py | 98e4b3cf3e98f1d65eaf7c2d03d770d939990d2d | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | aelol/falcon | e7e789cb92c75146eea4a1c627fdda278655594b | 14a9c056542a7e4a99663ee0fe298c81c27a8cdd | refs/heads/master | 2021-01-20T01:13:29.044522 | 2017-04-21T21:49:30 | 2017-04-21T21:49:30 | 89,238,339 | 2 | 0 | null | 2017-04-24T12:36:37 | 2017-04-24T12:36:37 | null | UTF-8 | Python | false | false | 1,478 | py | import re
import sys
import falcon
import falcon.testing as testing
class TestWSGIInterface(object):
def test_srmock(self):
mock = testing.StartResponseMock()
mock(falcon.HTTP_200, ())
assert mock.status == falcon.HTTP_200
assert mock.exc_info is None
mock = testing.Sta... | [
"john.vrbanac@linux.com"
] | john.vrbanac@linux.com |
91d7a854f623fbb87725ebf17db1832f05482334 | 1207e317fa2837fa4cdb49150b9b2ca99dada2f3 | /sdfs/newReporting/agriculture/migrations/0001_initial.py | 71ede2ca969b0bbe65e49dd7042d57aebba46622 | [] | no_license | ericniyon/all_in_one_repo | d14cb715776f5c23851d23930145fcb707aaca1d | 9080315fbe9e8226a21bf35c49ff7662b4b095b4 | refs/heads/master | 2022-12-16T17:04:48.602534 | 2020-01-12T00:40:54 | 2020-01-12T00:40:54 | 233,317,032 | 0 | 0 | null | 2022-12-08T01:50:51 | 2020-01-12T00:30:03 | Python | UTF-8 | Python | false | false | 10,835 | py | # Generated by Django 2.2.2 on 2019-12-14 23:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('dashboard', '0001_initial'),
]
operations = [
migrations.CreateModel(
name=... | [
"niyoeri6@gmail.com"
] | niyoeri6@gmail.com |
a21f4e0d8bc75227d7a7e081134be283a036133b | 4766d241bbc736e070f79a6ae6a919a8b8bb442d | /20200215Python-China/0392. Is Subsequence.py | 772e0d436bb37843470e51a166049300a942b2c3 | [] | no_license | yangzongwu/leetcode | f7a747668b0b5606050e8a8778cc25902dd9509b | 01f2edd79a1e922bfefecad69e5f2e1ff3a479e5 | refs/heads/master | 2021-07-08T06:45:16.218954 | 2020-07-18T10:20:24 | 2020-07-18T10:20:24 | 165,957,437 | 10 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | '''Given a string s and a string t, check if s is subsequence of t.
You may assume that there is only lower case English letters in both s and t. t is potentially a very long (length ~= 500,000) string, and s is a short string (<=100).
A subsequence of a string is a new string which is formed from the original string... | [
"noreply@github.com"
] | yangzongwu.noreply@github.com |
125a74be48b8ad0a0ee346339d421c491c8a8abb | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/6b4d8efbe16141d1b280e11117525144.py | 57e2f3eea9084a568523dbd855b76d0242f6a9e3 | [] | 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 | 262 | py | #
# Skeleton file for the Python "Leap" exercise.
#
def is_leap_year(year):
year = int(year)
cond_1 = (year % 4 == 0) and (year % 100 == 0) and (year % 400 == 0)
cond_2 = (year % 4 == 0) and (not year % 100 == 0 )
return cond_1 or cond_2
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
fe94db721f7597ce5e2e998690ce8d136cefda09 | c2e15137cd3ddfe574d06ed313f4c4039835a48b | /ACA/update_slot_stat_table.py | 970189c228d04aa09f6b271e0f0dfa3ea2ecfc89 | [] | no_license | chandra-mta/MTA | df57845577ac50f21c4b1775a441804d78060e97 | 60015d4fbbcc7e00595152fb21a8c55e2366a982 | refs/heads/master | 2023-08-18T13:05:33.397195 | 2023-08-11T14:28:40 | 2023-08-11T14:28:40 | 4,586,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,244 | py | #!/usr/bin/env /data/mta/Script/Python3.8/envs/ska3-shiny/bin/python
#############################################################################################
# #
# update_slot_stat_table.py: update slotrelated stat tabl... | [
"bspitzbart@cfa.harvard.edu"
] | bspitzbart@cfa.harvard.edu |
81ecc501d76374282b768dd904e912cc7b87eda4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_34/782.py | 314631cc964f6be8ced98e9b41079f0b36341c92 | [] | 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,031 | py | #! /usr/bin/python
import os
import sys
import glob
from math import sqrt
if len(sys.argv) != 2:
print 'USAGE: q1.py input.in'
sys.exit()
fIn = open(sys.argv[1], 'r')
param = fIn.readline().split()
L = int(param[0])
D = int(param[1])
N = int(param[2])
#print str(L)+str(D)+str(N)
dict = []
for i in range(D):
dict.a... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c91e3350c5dd6e4d67b9b480a11112fe1ec6d399 | 190f56bb215311c293e2c07e40be3d7cc3a5e189 | /addresses/migrations/0012_auto_20201005_2323.py | 3535fdcd5265d806be49d98d077cb8380602e716 | [] | no_license | Omsinha017/Ecommerce | 457dec1c5dcc313d4fae6dff0b1d7c7f43874655 | d4e57576eef18626d458f0c06b186d0b8a6bc753 | refs/heads/master | 2023-06-21T11:21:46.495736 | 2021-07-24T09:09:16 | 2021-07-24T09:09:16 | 305,804,444 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # Generated by Django 3.1 on 2020-10-05 17:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('addresses', '0011_auto_20201005_2317'),
]
operations = [
migrations.AlterField(
model_name='address',
name='address_ty... | [
"omsinha017@gmail.com"
] | omsinha017@gmail.com |
05d56ee57fb8108d00d0c956207892d6f5fd29ce | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/409/usersdata/317/79303/submittedfiles/av1_programa1.py | 3f2948ad76a641790398b54e2d495c53608bdaf4 | [] | 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 | 164 | py | # ENTRADA
n = int(input('ditige o número'))
if (n/2)%0:
print=int(input('o numero é par')
else:
print=int(input('o numero é impar')
print('----FIM----')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4b7bc8f4343f81177c562ce45bd65b4be418f47f | c2758f58b29917e5f00cdf19389a0f55b2975eae | /examples/analysis_md2.py | d720cbf028ecc04f0d1914b4b2ce5424d136a8a5 | [] | no_license | rdemaria/pyoptics | 4cf0b59e3524996de84c38a98a1444509246e9d4 | 6679a7589c751285757b8166c76aeaa1359742da | refs/heads/master | 2023-07-08T19:55:50.364373 | 2023-06-30T09:50:12 | 2023-06-30T09:50:12 | 25,566,323 | 6 | 11 | null | 2023-06-14T12:31:15 | 2014-10-22T06:47:52 | Python | UTF-8 | Python | false | false | 1,538 | py |
t_start='2011-05-07 10:00:00.000'
t_end='2011-05-07 20:00:00.000'
data=cernlogdb.dbget('RPTE.UA23.RB.A12:I_MEAS',t1=t_start,t2=t_end,conf='ldb.conf')
data1=cernlogdb.dbget(bctdc,t1=t_start,t2=t_end,conf='ldb.conf')
data2=cernlogdb.dbget(bctfr,t1=t_start,t2=t_end,conf='ldb.conf')
data3=cernlogdb.dbget(rffreq,t1=t_st... | [
"riccardodemaria@gmail.com"
] | riccardodemaria@gmail.com |
66a874aeab5071d8d192da698ca71a914f216eed | 1a642f40e88f05075c64da1256901d1b796f33fd | /06. Dictionaries/person.py | 34b14cd3b24a14714daa6f94de222abd56a7eb41 | [] | no_license | Mart1nDimtrov/Python-Crash-Course | 357ca4a015929b455395807dfeb260191342e360 | 326fdedc96e3d3e2ae9597349b54dd9e31a8fb4f | refs/heads/master | 2021-01-26T07:07:53.844047 | 2020-09-27T20:59:17 | 2020-09-27T20:59:17 | 243,358,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #6-1. Person: Use a dictionary to store information about a person you know.
#Store their first name, last name, age, and the city in which they live. You
#should have keys such as first_name, last_name, age, and city. Print each
#piece of information stored in your dictionary.
person = {
'first_name':'stoyan',
'... | [
"giggly@abv.bg"
] | giggly@abv.bg |
1a14569986273f76fc063f439ab0fb87663f2adf | 47aa27752421393451ebed3389b5f3a52a57577c | /src/Lib/test/test_json/test_recursion.py | 72bccd31ccd7ec23fed0c9ab2c62a5c435638ec7 | [
"MIT"
] | permissive | NUS-ALSET/ace-react-redux-brython | e66db31046a6a3cd621e981977ed0ca9a8dddba9 | d009490263c5716a145d9691cd59bfcd5aff837a | refs/heads/master | 2021-08-08T08:59:27.632017 | 2017-11-10T01:34:18 | 2017-11-10T01:34:18 | 110,187,226 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | from test.test_json import PyTest, CTest
class JSONTestObject:
pass
class TestRecursion:
def test_listrecursion(self):
x = []
x.append(x)
try:
self.dumps(x)
except ValueError:
pass
else:
self.fail("didn't raise Value... | [
"chrisboesch@nus.edu.sg"
] | chrisboesch@nus.edu.sg |
7061e0aabffe58d1301cd83d5b44595f4f605b73 | 2aa21b0d818397d5299bee411aa4df9058c6369e | /atcoder/abc130_c.py | f2db33e09de9a6f10eda0fc8a7f7dcdd7fe5cdca | [] | no_license | YuheiNakasaka/leetcode | ef4a0c04c44c9e9a727773b7d4a1bed0cbc17cba | 9109f35a20b5a36e1bd611dbe5ad56ad724e0c96 | refs/heads/master | 2020-05-16T08:04:34.523056 | 2020-04-21T00:55:33 | 2020-04-21T00:55:33 | 182,897,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | W, H, x, y = list(map(int, input().split()))
square = (W * H) / 2
cnt = '0'
if x + x == W and y + y == H:
cnt = '1'
print(square, cnt) | [
"yuhei.nakasaka@gmail.com"
] | yuhei.nakasaka@gmail.com |
41b8308911f0359ad34e366f655fdeeddf5b3ed0 | cca5ceb42b09e567d79fcb46f298757c1ff04447 | /Async/Async_4.py | cdf82e563fb9572cf18c1dc4350d6062eba95012 | [] | no_license | NishantGhanate/PythonScripts | 92933237720e624a0f672729743a98557bea79d6 | 60b92984d21394002c0d3920bc448c698e0402ca | refs/heads/master | 2022-12-13T11:56:14.442286 | 2022-11-18T14:26:33 | 2022-11-18T14:26:33 | 132,910,530 | 25 | 15 | null | 2022-12-09T09:03:58 | 2018-05-10T14:18:33 | Python | UTF-8 | Python | false | false | 377 | py | import asyncio
import time
class A:
async def fucn_1(self):
await asyncio.sleep(3)
print('hello')
async def fucn_2(self):
await asyncio.sleep(1)
print('yellow')
a = A()
loop = asyncio.get_event_loop()
task1 = loop.create_task(a.fucn_1())
task2 = loop.create_task(a.fucn_2()... | [
"nishant7.ng@gmail.com"
] | nishant7.ng@gmail.com |
a0a448f4f413e67c688e869495f5dd1e476d5794 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03623/s414511746.py | 255735db787058e6f8122bb55e8033b5d199aa1e | [] | 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 | 170 | py | def solve():
x, a, b = map(int, input().split())
if abs(x-a) > abs(x-b):
print('B')
else:
print('A')
if __name__ == "__main__":
solve()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
54498748abaf38e7ebcd28ac38c33e0bbd96b11c | 70f2fa6eaf1843ea8fc5351c4951babea27f1b77 | /bin/django-admin.py | 59517a60bf2585fa43584bfcd81961175fcd8977 | [] | no_license | zalun/FlightDeck-lib | 223d69cccd9b5f91bc0648792b6bd981176a48ae | 12f047b43a9b89d183aa75ca448bceea2082d11b | refs/heads/master | 2020-12-25T08:59:52.058399 | 2011-11-18T18:09:25 | 2011-11-18T18:09:25 | 1,005,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/home/zalun/Environment/flightdeck/bin/python2.6
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"piotr@zalewa.info"
] | piotr@zalewa.info |
ac5a3b92fd58d9f527030ff4fcb8246f03858bc0 | ce8d151a075931f2af5c4e2bcc5498fda9dbd1b1 | /foundation/organisation/migrations/0015_remove_networkgroup_position.py | 41256b78b311cff20d00d3ef0f23cf7082ef1a98 | [
"MIT"
] | permissive | okfn/website | d089dfad786b11813c2cad6912cb40e4d277b6e8 | 1055300216619c30cb06d58e51d78f739beb6483 | refs/heads/develop | 2023-08-30T23:43:11.515725 | 2023-08-29T07:41:06 | 2023-08-29T07:41:06 | 15,168,170 | 83 | 110 | MIT | 2023-09-13T04:52:25 | 2013-12-13T16:20:09 | Python | UTF-8 | Python | false | false | 407 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-08-24 10:37
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('organisation', '0014_auto_20200824_1033'),
]
operations = [
migrations.RemoveField... | [
"chris.shaw480@gmail.com"
] | chris.shaw480@gmail.com |
40147c0abe5fcae15c46d9e2ca12cbd6e7d09e8e | 841b8d707cf42dbb26089c89c83fd3238f7f56cf | /root_numpy/_graph.py | 66e59f7497e70a264117e98aedd252c74946b253 | [
"BSD-3-Clause"
] | permissive | ndawe/root_numpy | d6682976e78acacd25b331ecd9958a270d0eb9eb | 34625988547e8a462cc8e10cba6459e9fa2fa65e | refs/heads/master | 2020-04-05T04:37:47.389235 | 2017-10-23T03:20:18 | 2017-10-23T03:20:18 | 6,723,352 | 1 | 0 | null | 2012-12-16T05:49:48 | 2012-11-16T15:13:52 | C++ | UTF-8 | Python | false | false | 1,369 | py | import numpy as np
from . import _librootnumpy
__all__ = [
'fill_graph',
]
def fill_graph(graph, array):
"""Fill a ROOT graph with a NumPy array.
Parameters
----------
hist : a ROOT TGraph or TGraph2D
The ROOT graph to fill.
array : numpy array of shape [n_samples, n_dimensions]
... | [
"noel.dawe@gmail.com"
] | noel.dawe@gmail.com |
225faa5c992ef25e33ee5472cd08d2040d303a31 | 6733716dcdcacfcc739ae5c4af976db81ead852b | /ROOT/Project/functions/rootTree_rootHist/just_test/test4_auto.py | 9611e7290189a404df65fa6a16ef108b1c744053 | [] | no_license | StudyGroupPKU/fruit_team | 45202a058d59057081670db97b9229ee720fa77e | 9f9f673f5ce22ce6d25736871f3d7a5bd232c29d | refs/heads/master | 2021-01-24T08:15:37.909327 | 2018-05-11T08:53:06 | 2018-05-11T08:53:06 | 122,975,404 | 0 | 5 | null | 2018-04-05T02:37:14 | 2018-02-26T13:41:24 | Python | UTF-8 | Python | false | false | 4,051 | py | IBin = -2.0
FBin = 2.0
NBins = 100
from ROOT import TFile, TH1F, TH1D, TTree
import numpy
filename = "/Users/leejunho/Desktop/git/python3Env/group_study/fruit_team/ROOT/Project/root_generator/tree/root2_tree.root"
f = TFile(filename,"READ")
outfile = TFile("outfile_please_modify_correspondingly_test4.root","RECREATE"... | [
"skyblue1293@naver.com"
] | skyblue1293@naver.com |
d184e3a98bf8510e166e21b881fec6aa57d581ef | f5f4a0e2dcdcc5ee89bd86480d52390878fe612b | /utils/gap_configs/python/ips/interco/router.py | 1b682cfc9733009a15860010d5c5c4490097348c | [
"Apache-2.0"
] | permissive | MIT-AI-Accelerator/gap_sdk | 0751735b2b7d5a47be234e010eb9f72ebe8f81ef | 6d255c70883cf157d76d006b2dbf55bc6974b21f | refs/heads/master | 2023-09-05T21:23:00.379129 | 2021-11-03T18:37:37 | 2021-11-03T18:37:37 | 400,571,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py | #
# Copyright (C) 2020 GreenWaves Technologies
#
# 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 agre... | [
"yao.zhang@greenwaves-technologies.com"
] | yao.zhang@greenwaves-technologies.com |
81adc41f2d08345806384aa1c2e0de279ea5afdf | b12e93c2dde41cc43d30fdd9ffbda968abb8e40e | /HearthStone/HearthStone/ext/card_compiler.py | f96e6a058a02c87bb2bb8155ab21d306050a5ab4 | [
"MIT"
] | permissive | wkhunter/MiniGames | ec16a22dfc31e7a910466ffe65a3b4961e653724 | 910fddce17795c51c3e6a232bd98744865f984dc | refs/heads/master | 2021-04-30T23:39:18.958443 | 2017-01-18T12:42:56 | 2017-01-18T12:42:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,795 | py | #! /usr/bin/python
# -*- encoding: utf-8 -*-
"""A simple compiler of card definition language, using PLY.
Example:
Minion 侏儒发明家 { # Define a new minion
{% id = 0, name = '侏儒发明家', type = 0, CAH = [4, 2, 4], klass = 0 %}
bc { d 1 }
dr { d 1 }
}
"""
import re
from types import new... | [
"fyabc@mail.ustc.edu.cn"
] | fyabc@mail.ustc.edu.cn |
b4a0ad7d276fde1a54a3717d0468ce45efaff51d | d23dab09b21553353ad85246ebafaea790f2afbd | /src/python/pants/backend/python/goals/setup_py_test.py | beeb5859feb6a84d67dd8201b8ea41d45050b1ab | [
"Apache-2.0"
] | permissive | asherf/pants | 00e8c64b7831f814bac3c4fa8c342d2237fef17d | c94d9e08f65e9baf3793dff0ec2c571d682f6b90 | refs/heads/master | 2023-05-28T14:45:35.325999 | 2023-01-18T15:16:07 | 2023-01-18T15:16:07 | 185,082,662 | 0 | 0 | Apache-2.0 | 2023-01-18T15:15:46 | 2019-05-05T21:09:43 | Python | UTF-8 | Python | false | false | 50,932 | py | # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import textwrap
from typing import Iterable
import pytest
from pants.backend.python import target_types_rules
from pants.backend.python.goals.setup_py... | [
"noreply@github.com"
] | asherf.noreply@github.com |
e7144c5ff44d0c156034aa78713708d4b8e205c2 | aeeb89d02db3e617fc118605f5464fbfa6ba0d2a | /comp.py | 2008ceba9b3de5e917142d1e88560354e219f930 | [] | no_license | nadhiyap/begin | 477f837e9ec3f06b9a2151c233dcf6281cf416c5 | 8d5b8b8ffe7e728b5191912b22737945df625c75 | refs/heads/master | 2021-04-18T22:07:07.674250 | 2018-04-15T07:37:19 | 2018-04-15T07:37:19 | 126,681,009 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | n=int(input("enter the num"))
b=1
for i in range(2,n):
if n%i==0 and n!=2:
b=0
if b==0:
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | nadhiyap.noreply@github.com |
b350add2dff22ede8b47a2b661cda8cea8f733fd | 6c57b1694817d1710335429c12c2d9774ff446e3 | /2017-08-19/2/AS4-DA3-DB3_case56/generated_files/LEMS_c302_C2_AS4_DA3_DB3_nrn.py | ed1aa310632783f46c2d179ad6f34462fbaaee7e | [] | no_license | lungd/openworm-experiments | cd3875e8071c35eacb919c318344bac56d0fe379 | 065f481fbb445ef12b8ab2110f501686d26c213c | refs/heads/master | 2021-01-01T04:41:38.397726 | 2017-09-12T13:55:40 | 2017-09-12T13:55:40 | 97,220,679 | 1 | 1 | null | 2017-09-01T17:10:28 | 2017-07-14T10:07:56 | Python | UTF-8 | Python | false | false | 40,414 | py | '''
Neuron simulator export for:
Components:
Leak (Type: ionChannelPassive: conductance=1.0E-11 (SI conductance))
k_fast (Type: ionChannelHH: conductance=1.0E-11 (SI conductance))
k_slow (Type: ionChannelHH: conductance=1.0E-11 (SI conductance))
ca_boyle (Type: ionChannelHH: conductance=1.0E-11 (SI... | [
"lungdm@gmail.com"
] | lungdm@gmail.com |
11fc96ab7fc8484473a073ad362d9bb2a834d499 | fc049ef8172ed2f63147612d89b4125fe865441c | /scrape/common.py | 4ba416818b8fa9bf4233e789a9a5ed9f8be6436c | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | resistbot/people | a13b5f934cd6f498b349550f8978268648fb509b | a337c4b4d86bbb7b1911c0ec4cac0010c092867a | refs/heads/main | 2023-02-22T11:37:23.600635 | 2021-01-16T22:38:32 | 2021-01-16T22:38:32 | 320,011,736 | 2 | 0 | CC0-1.0 | 2020-12-09T16:16:44 | 2020-12-09T16:16:43 | null | UTF-8 | Python | false | false | 3,409 | py | import re
import uuid
from collections import OrderedDict
from utils import get_jurisdiction_id, reformat_phone_number
def clean_spaces(text):
return re.sub(r"\s+", " ", text).strip()
PARTIES = {
"d": "Democratic",
"r": "Republican",
"dem": "Democratic",
"rep": "Republican",
"democrat": "Dem... | [
"dev@jamesturk.net"
] | dev@jamesturk.net |
d92a0924366fbeb47f4ab4a24bc9d72fd62f997a | 13a6b6bc9327fa6128fb0c4687e0fbc2eb80fa5f | /poo_herencia.py | 74ea9e372367bd4838e621418dbd4dd4f3f37855 | [] | no_license | jkaalexkei/poo_python | 1df5d06f30ab5199b0c8c529cfc3faf5b8d97a61 | 1be51074c6eb7818770c34ef4c09cae36f1fa0f9 | refs/heads/master | 2023-05-06T22:52:21.577667 | 2021-05-27T20:43:47 | 2021-05-27T20:43:47 | 370,861,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | #LA HERENCIA:
# Consiste en la reutilizacion de codigo en caso de crear objetos similares
#caracteristicas en comun de los objetos
#comportamientos en comun de los objetos
#clase padre o superclase agrupa caracteristicas y comportamientos en comun
class Vehiculos():
def __init__(self,marca,modelo):
self... | [
"jkaalexkei@gmail.com"
] | jkaalexkei@gmail.com |
c352f3ffcc5682a0ea7ce13f0b7df3c947e19472 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /eMRXLJLpaSTxZvsKN_20.py | 492ac2498c5298a0703a9eaded759d7c74284e3b | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py |
def is_ladder_safe(ladder):
index, spacing, counter, new_array = 0, [], 0, []
for i in ladder:
if len(i) < 5:
return False
x = list(i)
hashes = 0
for i in x:
if i == "#":
hashes +=1
spacing.append(hashes)
for i in spacing:
if i != spacing[0] and i != spacing[1]:
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e4ca77f6d1e62a1fc5f27e605bacdd2ab5979bcd | 60715c9ea4c66d861708531def532814eab781fd | /python-programming-workshop/pythondatastructures/console/print.py | acf395827d9e1beb9f219f3f5c828e7e7c2a5473 | [] | no_license | bala4rtraining/python_programming | 6ce64d035ef04486f5dc9572cb0975dd322fcb3e | 99a5e6cf38448f5a01b310d5f7fa95493139b631 | refs/heads/master | 2023-09-03T00:10:26.272124 | 2021-11-01T08:20:52 | 2021-11-01T08:20:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py |
#Python program that uses print statement
# Print a string literal.
print("Hello")
# Print two arguments.
print("Hello", "there")
# Print the value of a string variable.
a = "Python"
print(a)
| [
"karthikkannan@gmail.com"
] | karthikkannan@gmail.com |
21df4008c8aa3af325373649228fad8b24379e2f | c80f780b62c76a8a59100721ee5beb1333bc787d | /migrations/0002_tvprogram.py | 826743db7d0c8788e369a76630469eff007b6cb2 | [
"BSD-3-Clause"
] | permissive | alexisbellido/demo-app | 73c5391287038102114dcc5a29399ae5cb31bc84 | 5f855a0fa7813ad830f420dc0e3f3a3d338cdb22 | refs/heads/master | 2020-04-16T03:58:19.869373 | 2019-01-12T00:52:43 | 2019-01-12T00:52:43 | 165,251,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # Generated by Django 2.1.5 on 2019-01-11 16:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('demo', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='TVProgram',
fields=[
('id', m... | [
"alexis@ventanazul.com"
] | alexis@ventanazul.com |
2b452d1a68cb30c3d6de9fc38e074bf3066cb96f | 11aaeaeb55d587a950456fd1480063e1aed1d9e5 | /.history/ex45-test_20190611164111.py | eb3aae04bb43638fe8b27d57963ad7fb95e726e4 | [] | no_license | Gr4cchus/Learn-Python-3-The-Hard-Way | 8ce9e68f6a91ea33ea45fe64bfff82d65422c4a8 | f5fa34db16cdd6377faa7fcf45c70f94bb4aec0d | refs/heads/master | 2020-05-17T23:18:29.483160 | 2019-06-26T18:42:52 | 2019-06-26T18:42:52 | 184,023,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py |
class Scenes(object):
# def __init__(self):
# # self.starting_room = starting_room
# # self.locations = {
# # 'room1': Room1(),
# # 'room2': Room2()
# # }
def start(self):
print("You are at the start")
print("Where would you like to go")
... | [
"ahivent@gmail.com"
] | ahivent@gmail.com |
6a8da79d9928bf4ded71044ae06701d5ce3ada3d | d6cf604d393a22fc5e071a0d045a4fadcaf128a6 | /ABC/183/183_E.py | b8a7fda6b2a115a4e139f632014b51c19d30bfb9 | [] | no_license | shikixyx/AtCoder | bb400dfafd3745c95720b9009881e07bf6b3c2b6 | 7e402fa82a96bc69ce04b9b7884cb9a9069568c7 | refs/heads/master | 2021-08-03T21:06:45.224547 | 2021-07-24T11:58:02 | 2021-07-24T11:58:02 | 229,020,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | import sys
sys.setrecursionlimit(10 ** 7)
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
MOD = 10 ** 9 + 7
def main():
H, W = map(int, input().split())
S = [list(input()) for _ in range(H)]
T = [[[0, 0, 0, 0] for _ in range(W)] for _ in range(H... | [
"shiki.49.313@gmail.com"
] | shiki.49.313@gmail.com |
2a21c9269596e7383db3bf89612249d1c740c959 | 776f52fd8e7c8504373d234b1f453ebfbb252ad9 | /tests/test_lightcurve.py | 794bd09d0af3fb2b2ea6a4aeee65a0a7912cf0d6 | [
"GPL-3.0-only",
"MIT"
] | permissive | jpdeleon/chronos | ae2481f504ef5e7b91d06ad73ba7e7bd7ede6fa6 | 330ab380040944689145a47ab060ee041491d54e | refs/heads/master | 2023-02-05T07:35:38.883328 | 2023-01-31T09:50:13 | 2023-01-31T09:50:13 | 236,907,132 | 7 | 2 | MIT | 2020-06-26T02:12:25 | 2020-01-29T05:05:42 | Jupyter Notebook | UTF-8 | Python | false | false | 2,710 | py | # -*- coding: utf-8 -*-
"""
test methods of lightcurve module
"""
import pytest
import lightkurve as lk
import pandas as pd
# from matplotlib.figure import Figure
from matplotlib.axes import Axes
from chronos import Tess, ShortCadence, LongCadence
TOIID = 837
TICID = 460205581
SECTOR = 10
CUTOUT_SIZE = (15, 15)
QUALI... | [
"jpdeleon.bsap@gmail.com"
] | jpdeleon.bsap@gmail.com |
aefd0927cb89585b4ba4e7058ed6d5f417ad28ba | 9d90b664ebbd11a57ee6156c528081551b98055b | /wsgi/local_data/brython_programs/string_and_in1.py | 8152f92fcc9ddaa939f87d1c34a58f2639fc7a70 | [] | no_license | 2014cdag21/c21 | d4f85f91ba446feb6669a39903dda38c21e8b868 | faf4b354f7d1d4abec79c683d7d02055c6bab489 | refs/heads/master | 2020-06-03T17:54:16.144118 | 2014-06-20T09:29:02 | 2014-06-20T09:29:02 | 19,724,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | print(3 in [1, 2, 3])
print("3" in [1, 2, 3])
print("3" in [1, 2, "3"])
VOWELS = ['a', 'e', 'i', 'o', 'u']
def is_a_vowel(c):
# check if c is a vowel
lowercase_c = c.lower()
if lowercase_c in VOWELS:
# Return (BOOLEAN!) True if c is a vowel
return True
else:
# c must not be a vow... | [
"chiamingyen@gmail.com"
] | chiamingyen@gmail.com |
371e15298db1711c8e04520f405b43a1b83d271f | b972faf032590c9722dc240c45fc60157d5a1bee | /1.py | 39ce810ba84b1a8edf3516f6fd5ba14add3290e2 | [] | no_license | kih1024/codingStudy | 3a91b628bc301d1777d954595e93bf1f9246aca3 | 3e8a6fe86d3861613a85d3e75991f4bc7cd1e716 | refs/heads/master | 2022-12-09T04:58:55.264433 | 2020-09-22T07:29:44 | 2020-09-22T07:29:44 | 269,874,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | def solution(inputString):
answer = -1
arr = [False] * 4
count = [0] * 4
figure = [("(", ")"), ("{", "}"), ("[", "]"), ("<", ">")]
for i in range(len(inputString)):
for j in range(len(figure)):
if inputString[i] == figure[j][0]:
arr[j] = True
break... | [
"rladlsgh654@naver.com"
] | rladlsgh654@naver.com |
75b691bc34a70cb9c0af18d31d51db0d33f27155 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5751500831719424_1/Python/phire/1.py | 2394b63ef96ce2f57ad745fc11ff7cc9c0530fec | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | #!/usr/bin/python2
# -*- coding: utf-8 -*-
import sys
import os
def compress(s):
r = []
c = ''
count = 0
for x in s + " ":
if x == c:
count += 1
else:
if count:
r.append((c, count))
c = x
count = 1
return r
def test(... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
4b4439a60a195a76dc373548c6f58dc5a457595b | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/bgp/peerroute1qtr.py | 477b368c64206019a405e5370eedb3dc83296afd | [] | 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 | 38,939 | 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 |
230890be29b4a007df5076f82d5dff5baaac23ec | d3c673dcb339570eee580f2029d179e5c9dd2535 | /venv/bin/pilconvert.py | a76f7dfb1c2173c16cf0168bd9db8b838f308478 | [
"MIT"
] | permissive | zubeir-Abubakar/zgram | 0304e9a21d4a7976d211a1f6692d7bb1bf5fba2b | 33ed713f758ba86642ce8cb3b68a835bf07c29b5 | refs/heads/master | 2020-06-25T18:56:07.770251 | 2020-03-24T07:51:31 | 2020-03-24T07:51:31 | 199,394,542 | 1 | 0 | MIT | 2020-03-24T07:51:32 | 2019-07-29T06:44:57 | Python | UTF-8 | Python | false | false | 2,394 | py | #!/Users/saadiaomar/Documents/zgram/venv/bin/python3.6
#
# The Python Imaging Library.
# $Id$
#
# convert image files
#
# History:
# 0.1 96-04-20 fl Created
# 0.2 96-10-04 fl Use draft mode when converting images
# 0.3 96-12-30 fl Optimize output (PNG, JPEG)
# 0.4 97-01-18 fl Made optimize an op... | [
"zubkayare@gmail.com"
] | zubkayare@gmail.com |
3fc0d2ac19f0f38ceac5d69162a3f2264facf48a | 8f5ce9cb41649cfcfe4026200c3ec48630cec7fa | /Interview/DSA/Strings/string_permutation.py | 7bfd73a3b18fe04f1a829ffb7464afc5b43e1098 | [] | no_license | karbekk/Python_Data_Structures | 2d44ca0e12355b9b587eefa8a6beeba0ffcf3407 | 87e0ece2893d19ee92f6e72194cab6dcb4a3c4e7 | refs/heads/master | 2020-03-28T07:32:41.649465 | 2019-08-08T03:37:09 | 2019-08-08T03:37:09 | 147,908,721 | 0 | 0 | null | 2018-09-08T06:40:50 | 2018-09-08T06:40:50 | null | UTF-8 | Python | false | false | 534 | py | # def permute1(start, rest):
# res = []
# if len(rest) <= 1:
# res += [start + rest, rest + start]
# else:
# for i, c in enumerate(rest):
# s = rest[:i] + rest[i+1:]
# for perm in permute1(c, s):
# res += [start + perm]
# return res
def permute2(s... | [
"kartikshrikanthegde@gmail.com"
] | kartikshrikanthegde@gmail.com |
ba704e0b2cc6f8d894c58413e8e9b44815276ea3 | 4127a99269737c4640e53bad9b32c2c2f7f172d3 | /iptw/old/screen_med_old.py | 0a3e746a326001f267d885ae076b80e2bb0863c5 | [] | no_license | calvin-zcx/pasc_phenotype | 0401d920b3cc441405abe9e689672415d57fd984 | 40efce36581721cd91e599ea6e61429fe7ac1f67 | refs/heads/master | 2023-08-31T04:41:34.823658 | 2023-08-30T16:07:52 | 2023-08-30T16:07:52 | 446,634,747 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,536 | py | import sys
# for linux env.
sys.path.insert(0, '..')
import time
import pickle
import argparse
from evaluation import *
import os
import random
import pandas as pd
import json
import matplotlib.pyplot as plt
import numpy as np
from PSModels import ml
from misc import utils
import itertools
import functools
from tqdm i... | [
"calvin-zcx@users.noreply.github.com"
] | calvin-zcx@users.noreply.github.com |
871c0c6dadbd1a53cd22800b987b3bebc634cb07 | 84263fd1391de079c5447359f1a7cd1abfb47126 | /pythonprog/file_error.py | d221c20dd7b401b5b5f0bd1a8204da7831fea511 | [] | no_license | Shilpa-T/Python | b19259b1be17182b1a9f86a42c0dd8134e749304 | 280fc16e9c7c0f38b33c59381457fcbbd42b8ae3 | refs/heads/master | 2020-04-19T00:13:38.706605 | 2019-01-27T18:57:52 | 2019-01-27T18:57:52 | 167,841,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | """
file error when processing a file
"""
def printfile(name):
try:
open_file = open(name)
except IOError:
print "I canr find file",name
else:
for line in open_file:
print line
printfile(raw_input('enter file name'))
| [
"shilpindu@gmail.com"
] | shilpindu@gmail.com |
b44b3746f25797f37789e6aa68d7f851c31294f2 | 26f78ba56388765f2fe2dc8fa23ddea097209ec5 | /Leetcode/二叉搜索树/124二叉树中的最大路径和.py | 1b5552f812083ca1dbedefc848c2aa4e370f02c4 | [] | no_license | johnkle/FunProgramming | 3ef2ff32a1a378e1c780138ec9bab630c9ba83c7 | a60e0d17a1e9f0bc1959d7a95737fc4a0362d735 | refs/heads/master | 2023-07-18T16:05:56.493458 | 2021-09-08T19:01:19 | 2021-09-08T19:01:19 | 402,861,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def maxPathSum(self, root: TreeNode) -> int:
self.res = float('-inf')
#计算node的最大贡献值,并计算以node为根的最大路径和
def helper(node):
... | [
"605991742@qq.com"
] | 605991742@qq.com |
0ab6b8e2ed471f92d7c1b8b6dd7a90eca1c1cc92 | 9055b8f8b1ca2e357473179a5ff551f69541bd34 | /Pandas/VISUALIZATION/2. bar.py | 724ba66ecf640e22130e0f309412b788a6b2bc6e | [] | no_license | YanlinWang128/PyhonStudy | 879c72cbdc1f467a7b4721561692e2deb6a665e9 | 6b9de9afcfa7ba0b4c55025ddcf87664b170c6e7 | refs/heads/master | 2020-03-30T18:42:11.520471 | 2018-11-09T08:38:29 | 2018-11-09T08:38:29 | 151,511,393 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # @Time : 2018/11/6 9:52
# @Author : Yanlin Wang
# @Email : wangyl_a@163.com
# @File : 2. bar.py
from time import clock
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
start = clock()
df2 = pd.DataFrame(np.random.rand(10, 4), columns=['a', 'b', 'c', 'd'])
df2.plot.bar()
df2.plot.bar(s... | [
"wangyl_a@163.com"
] | wangyl_a@163.com |
0563cfeb4ab8f4e39101eaf8fb8c0873253a877e | 51575eeda79a6e12c8839046721168e5cc5b6774 | /experiments/classification/run_classification.py | cd3dd6ff195b4a873ad6fc3a305673ccec6afceb | [] | no_license | rfeinman/GNS-Modeling | 59ad26efea4045c7dae98e98263d1193d53052b8 | 2c6b3400bfbb30f8f117042722fbcca2a8e9cb98 | refs/heads/master | 2023-06-08T21:22:27.914054 | 2021-07-08T14:17:56 | 2021-07-08T14:17:56 | 274,778,209 | 22 | 7 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | import os
import argparse
import pickle
import submitit
from get_base_parses import get_base_parses
from optimize_parses import optimize_parses
from refit_parses_multi import refit_parses_multi
def array_step(executor, func, jobs, inputs, errors):
filt = lambda y : not errors[y]
# submit jobs
with execut... | [
"rfeinman16@gmail.com"
] | rfeinman16@gmail.com |
88a23680fff66f1933d8f7c3cb647302f881af78 | e736f413ce7a287c2d0d084c051a637b52b4bb8a | /tools/testing/python/hybrid_encrypt_cli.py | ab507b8a19fc2fbb43e6418bf9865c891ea27bad | [
"Apache-2.0"
] | permissive | anaghvj/tink | b9e7041307ce250ee9a8bfbcd0df10401718bc24 | 50150573bd1d6f05e818cc3706cfba3fe9ed490a | refs/heads/master | 2022-06-17T10:11:19.413016 | 2020-04-30T23:04:57 | 2020-04-30T23:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,409 | py | # 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 in writing, software
# distributed under t... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
4ded37c8c6cba07ee5ecc42d4954c609e42e7dbe | 16c41ed01feddb99a0f6e34e7b4ef5f5d83a2848 | /fb_post/views/reactions_to_post/tests/snapshots/snap_test_case_01.py | fb19d3e1492d1d6289233e88483d3eee290f9aaa | [] | no_license | karthik018/fb_post_learning | d6d9363aefd152886b4a466179c407135878dd25 | bc45c937006c35e7ac09cf038e35f3a40f9c8cf8 | refs/heads/master | 2022-04-28T08:18:11.852236 | 2019-07-30T04:19:49 | 2019-07-30T04:19:49 | 197,510,185 | 0 | 0 | null | 2022-04-22T21:59:07 | 2019-07-18T04:14:35 | Python | UTF-8 | Python | false | false | 1,086 | py | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['TestCase01ReactionsToPostAPITestCase::test_case status'] = 200
snapshots['TestCase01ReactionsToPostAPITestCase::test_case body'] = {
're... | [
"thinkcreative01karthik@gmail.com"
] | thinkcreative01karthik@gmail.com |
cb7b7cdc8f0c56a1752b15e8b2c877d8149cd557 | 31b3ac7cc2f0cf43a4979e53d43002a9c5fb2038 | /student attendence record1.py | 0e932d0ad4fd5f0b398b54391dff536610e2a32e | [] | no_license | shreyansh-tyagi/leetcode-problem | ed31ada9608a1526efce6178b4fe3ee18da98902 | f8679a7b639f874a52cf9081b84e7c7abff1d100 | refs/heads/master | 2023-08-26T13:50:27.769753 | 2021-10-29T17:39:41 | 2021-10-29T17:39:41 | 378,711,844 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | '''
You are given a string s representing an attendance record for a student where each character signifies whether the student was absent, late, or present on that day. The record only contains the following three characters:
'A': Absent.
'L': Late.
'P': Present.
The student is eligible for an attendance award if the... | [
"sunnytyagi886@gmail.com"
] | sunnytyagi886@gmail.com |
1d06c11d4263225e3f0db3098eada829c8ad1be8 | 75519d2a9bf55e2d9376ea08a36676948a8b232c | /t/TopTab4.py | ca2efe64e5b125c5eaaf47f742e32f3765ff91e6 | [
"MIT"
] | permissive | CGFanTuan/damgteam | 9c32d59cbd0ecb9d3acffd9b902b918c40797e14 | aec414f084f6ab6ec5897314390605aaa8380d62 | refs/heads/master | 2020-09-17T00:29:24.832648 | 2019-11-25T09:51:13 | 2019-11-25T09:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,954 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Script Name: TopTab4.py
Author: Do Trinh/Jimmy - 3D artist.
Description:
"""
# -------------------------------------------------------------------------------------------------------------
""" Import """
# Python
import random
import sys
# PyQt5
from PyQt5.QtCore ... | [
"dot@damgteam.com"
] | dot@damgteam.com |
51567e19a19b9c35630147e1ff764e37af61effa | 3cedc2e0867a53ed2f36e01624f369693d1a050d | /rnn/rnn42_females_original.py | 2ff1d39d4a2b26fb8955a0843919eaeae5b424ff | [] | no_license | lkpiel/mastersthesis | a471d8c6a5881e13599b22965dd3f437c83fc967 | 71c723b435b347d2805e159b6e10828f89541e98 | refs/heads/master | 2023-02-20T11:57:45.266361 | 2018-05-06T11:17:43 | 2018-05-06T11:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,811 | py | #! /usr/bin/python3
import sys
print(sys.version)
import sys
import pandas
import numpy as np
from keras.preprocessing.sequence import pad_sequences
from keras.models import Sequential, load_model
from keras.layers import Dense, Dropout, Average, Merge, Layer, Conv2D, MaxPooling2D, GlobalAveragePooling2D, GlobalAvera... | [
"leo.piel@pipedrive.com"
] | leo.piel@pipedrive.com |
bb37f68c663d109d60aceb15879fe86829f874b1 | 41de4210af23a8a8a3ca7dd090bb51faecf4a0c8 | /lib/python3.5/site-packages/statsmodels/miscmodels/count.py | 2f2fd127a947c39dea7981e4684d4668d4dbab95 | [
"Python-2.0"
] | permissive | randybrown-github/ziplineMacOS | 42a0c2bfca2a54baa03d2803dc41317647811285 | eb5872c0903d653e19f259f0800fb7aecee0ee5c | refs/heads/master | 2022-11-07T15:51:39.808092 | 2020-06-18T20:06:42 | 2020-06-18T20:06:42 | 272,631,387 | 0 | 1 | null | 2022-11-02T03:21:45 | 2020-06-16T06:48:53 | Python | UTF-8 | Python | false | false | 11,173 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 26 08:34:59 2010
Author: josef-pktd
changes:
added offset and zero-inflated version of Poisson
- kind of ok, need better test cases,
- a nan in ZIP bse, need to check hessian calculations
- found error in ZIP loglike
- all tests pass with
Issues
------... | [
"randybrown18@me.com"
] | randybrown18@me.com |
481c79a58047713cf46ebefb97f59c98252341c6 | ee6fc02e8392ff780a4f0d1a5789776e4d0b6a29 | /code/practice/abc/abc067/c.py | d99b0f3ace785fe8942c0c3286d0397a845e0657 | [] | no_license | mollinaca/ac | e99bb5d5c07159b3ef98cd7067424fa2751c0256 | 2f40dd4333c2b39573b75b45b06ad52cf36d75c3 | refs/heads/master | 2020-12-22T11:02:13.269855 | 2020-09-18T01:02:29 | 2020-09-18T01:02:29 | 236,757,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
N = int(input())
a = list(map(int,input().split()))
total = sum(a)
ans = float('inf')
x = 0
for i in range(N-1):
x += a[i]
ans = min(abs(total-2*x),ans)
print (ans)
| [
"github@mail.watarinohibi.tokyo"
] | github@mail.watarinohibi.tokyo |
535eb8c77ca7155e6ad95784ac8ecceb6a0f0798 | 95863ef4e8dfcce24dc7e565950728ba4e95d702 | /7510_고급수학.py | 8ff04a52d3aff48263a3f7671e0ee0c8a039dd83 | [] | no_license | choijaehyeokk/BAEKJOON | ee007cd1f06724872fb2359930b26f32a0d646da | 1fa57407a2d981ddd851c135e81c9861afa2dd81 | refs/heads/master | 2023-05-18T01:59:00.753233 | 2021-06-12T15:50:12 | 2021-06-12T15:50:12 | 329,467,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | import sys, math
test_case = int(sys.stdin.readline().rstrip())
for i in range(test_case):
numbers = sorted(list(map(int, sys.stdin.readline().split())))
if numbers[2] == math.sqrt(pow(numbers[0],2) + pow(numbers[1],2)): print('Scenario #{0}:\nyes'.format(i+1))
else: print('Scenario #{0}:\nno'.format(i+1)... | [
"enlqn1010@gmail.com"
] | enlqn1010@gmail.com |
fee3248f8aaf9dcb88181e2bab42d4549d71b8f1 | 5504f5488f9b2a07c600b556f6a14cb6f08c9b12 | /recursion.py | 71d1c26e17e3e2945f0f46e7c391fa6df06c3e25 | [] | no_license | tt-n-walters/saturday-python | 4087028e24ff1c3e80b705b5a49c381f02bc1d84 | 2ad53feb45b5a0e21b927bce25d52c8d2c679793 | refs/heads/master | 2020-12-26T21:46:18.240026 | 2020-04-18T17:40:23 | 2020-04-18T17:40:23 | 237,655,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | from json import dumps
moves = []
def move(origin, destination):
# print("Moving disk from {} to {}".format(origin, destination))
moves.append([origin, destination])
def hanoi(num_of_disks, origin, temporary, destination):
if num_of_disks == 0:
pass
else:
hanoi(num_of_disks - 1, orig... | [
"nico.walters@techtalents.es"
] | nico.walters@techtalents.es |
18fb98673882c07988251ea832ca145505d88fab | 53818da6c5a172fe8241465dcbbd34fba382820d | /PythonProgram/chapter_08/8-13.py | 7be5c6f769b32133352770e2e829a2d8b1551e2b | [] | no_license | Lethons/PythonExercises | f4fec3bcbfea4c1d8bc29dfed5b770b6241ad93b | 81d588ffecf543ec9de8c1209c7b26c3d6a423b3 | refs/heads/master | 2021-04-15T11:36:08.991028 | 2018-07-07T09:20:40 | 2018-07-07T09:20:40 | 126,686,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | def build_profile(first, last, **user_info):
profile = {}
profile['first_name'] = first
profile['last_name'] = last
for key, value in user_info.items():
profile[key] = value
return profile
user_profile = build_profile('lethons', 'jiang', county='China', city='wuhu')
print(user_profile)
| [
"lethons@163.com"
] | lethons@163.com |
4d1c6700d7a06ef2289c860c73dcb0131b8d2bce | 46a62c499faaa64fe3cce2356c8b229e9c4c9c49 | /taobao-sdk-python-standard/top/api/rest/TraderateListAddRequest.py | e953ad2c46b9045655a3494289e86978fe0d1523 | [] | no_license | xjwangliang/learning-python | 4ed40ff741051b28774585ef476ed59963eee579 | da74bd7e466cd67565416b28429ed4c42e6a298f | refs/heads/master | 2021-01-01T15:41:22.572679 | 2015-04-27T14:09:50 | 2015-04-27T14:09:50 | 5,881,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | '''
Created by auto_sdk on 2012-09-23 16:46:13
'''
from top.api.base import RestApi
class TraderateListAddRequest(RestApi):
def __init__(self,domain,port):
RestApi.__init__(self,domain, port)
self.anony = None
self.content = None
self.result = None
self.role = None
self.tid = None
def getapi... | [
"shigushuyuan@gmail.com"
] | shigushuyuan@gmail.com |
5cd97dcf42249f45f58866521562fd46459ffa15 | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /purchase/models/res_config_settings.py | fdb001621637fe5fcce1f7f621580d11a93ca173 | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,718 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
lock_confirmed_po = fields.Boolean("Lock Confirmed Orders", default=lambda self: self.env... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
fb7a9f1737d29effabc4820243aaec5e5ab2d8d2 | 323f58ecefddd602431eeb285b60ac81316b774a | /aioreactive/operators/pipe.py | 55e16feeb7bc68f8ac14fa5e8e23066505346f21 | [
"MIT"
] | permissive | tr11/aioreactive | aa9798ee5c2f98c0f5301111732e72093232ab8e | 6219f9a0761f69fa1765129b990762affdf661c8 | refs/heads/master | 2021-01-25T13:58:51.892021 | 2018-03-02T22:01:23 | 2018-03-02T22:01:23 | 123,635,129 | 0 | 0 | MIT | 2018-03-02T21:56:46 | 2018-03-02T21:56:46 | null | UTF-8 | Python | false | false | 249 | py | from typing import Callable
from aioreactive.core import AsyncObservable
def pipe(source: AsyncObservable, *args: Callable[[AsyncObservable], AsyncObservable]) -> AsyncObservable:
for op in args:
source = op(source)
return source
| [
"dag@brattli.net"
] | dag@brattli.net |
819501b2dc2d02295834d523fa81eb7da09526f6 | 9fd3e5f04baf33cdb913fb34d544c35d94d9d397 | /tests/unit_tests/cx_core/integration/state_test.py | 06c2c574c92d4f17a057320664a5f9f8f3d9a8f2 | [
"MIT"
] | permissive | xaviml/controllerx | dfa56b7005af8212d074544eca8542d8d665b9e0 | 387e130b8489282bf3abb5e847ef16dfe88615c7 | refs/heads/main | 2023-09-01T11:19:25.754886 | 2023-04-18T16:13:13 | 2023-04-18T16:13:13 | 222,056,780 | 280 | 83 | MIT | 2023-07-17T11:37:12 | 2019-11-16T06:23:03 | Python | UTF-8 | Python | false | false | 1,329 | py | from typing import Optional
import pytest
from appdaemon.plugins.hass.hassapi import Hass
from cx_core.controller import Controller
from cx_core.integration.state import StateIntegration
from pytest_mock.plugin import MockerFixture
@pytest.mark.parametrize("attribute", ["sensor", "entity_id", None])
async def test_l... | [
"xaviml.93@gmail.com"
] | xaviml.93@gmail.com |
89bd43e6ff9c99d7fc9f7dbcff19a209e1dcfe51 | 926621c29eb55046f9f59750db09bdb24ed3078e | /lib/googlecloudsdk/api_lib/compute/iam_base_classes.py | b7e49a6ddc6b2c345b3642ce1a29bd27f31dea8e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/SDK | 525d9b29fb2e901aa79697c9dcdf5ddd852859ab | e6d9aaee2456f706d1d86e8ec2a41d146e33550d | refs/heads/master | 2022-11-22T18:24:13.464605 | 2016-05-18T16:53:30 | 2016-05-18T16:53:30 | 282,322,505 | 0 | 0 | NOASSERTION | 2020-07-24T21:52:25 | 2020-07-24T21:52:24 | null | UTF-8 | Python | false | false | 7,876 | py | # Copyright 2014 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... | [
"richarddewalhalla@gmail.com"
] | richarddewalhalla@gmail.com |
83d5bfd11fddb5fa5a6e64902de5730ad1d8156d | d5b48163d236ca770be8e687f92192e2971397e8 | /set_natural.py | d00f9c0afd9a0e53b4a09e7a94182bae516ee384 | [] | no_license | Kunal352000/python_program | 191f5d9c82980eb706e11457c2b5af54b0d2ae95 | 7a1c645f9eab87cc45a593955dcb61b35e2ce434 | refs/heads/main | 2023-07-12T19:06:19.121741 | 2021-08-21T11:58:41 | 2021-08-21T11:58:41 | 376,606,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | num=int(input("Enter your number: "))
x=set()
for i in range(1,num+1):
x.add(i)
print(x)
| [
"noreply@github.com"
] | Kunal352000.noreply@github.com |
7d948050caa7731a5f9087f1a5117cfa2f185d2d | 179d753991d2578750dc058f1b963f80eab787c8 | /deeppavlov/dataset_readers/faq_reader.py | 826fb4088302a5a406eee9f8c0b5d852d5247b17 | [
"Apache-2.0",
"Python-2.0"
] | permissive | yoptar/DeepPavlov | 89ebd280db22e732bc942490e316d0588baf3803 | 3e7c8821db6d63b3aaac9abdfd8a478104371cb9 | refs/heads/master | 2020-04-07T12:54:56.279903 | 2019-01-09T09:23:44 | 2019-01-09T09:23:44 | 158,386,034 | 1 | 0 | Apache-2.0 | 2019-01-09T08:03:45 | 2018-11-20T12:26:53 | Python | UTF-8 | Python | false | false | 2,021 | py | # Copyright 2017 Neural Networks and Deep Learning lab, MIPT
#
# 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 applicab... | [
"seliverstov.a@gmail.com"
] | seliverstov.a@gmail.com |
19c2262d2a16a689f5af5323727a094140599163 | 000a4b227d970cdc6c8db192f4437698cb782721 | /python/helpers/typeshed/stubs/psutil/psutil/_psbsd.pyi | 6a4df8e9afc90de47c4ec9f2dae8b0a9e9a27ef9 | [
"Apache-2.0",
"MIT"
] | permissive | trinhanhngoc/intellij-community | 2eb2f66a2a3a9456e7a0c5e7be1eaba03c38815d | 1d4a962cfda308a73e0a7ef75186aaa4b15d1e17 | refs/heads/master | 2022-11-03T21:50:47.859675 | 2022-10-19T16:39:57 | 2022-10-19T23:25:35 | 205,765,945 | 1 | 0 | Apache-2.0 | 2019-09-02T02:55:15 | 2019-09-02T02:55:15 | null | UTF-8 | Python | false | false | 3,616 | pyi | from contextlib import AbstractContextManager
from typing import Any, NamedTuple
from ._common import (
FREEBSD as FREEBSD,
NETBSD as NETBSD,
OPENBSD as OPENBSD,
AccessDenied as AccessDenied,
NoSuchProcess as NoSuchProcess,
ZombieProcess as ZombieProcess,
conn_tmap as conn_tmap,
conn_to... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
532452741987cd2de3241c15dc9dca0f6317a145 | 2cce44d102fc03cdfae7edbf81011c0f9fbbf92a | /_unittests/ut_notebooks/test_LONG_2A_notebook_1.py | 3ece67c44bed8494b39381c71d83d2270845ffa5 | [
"MIT"
] | permissive | AlexisEidelman/ensae_teaching_cs | ddbbccd0f732563d34ca6b6c2e389a8805dc60df | 421d183c1fe6b5c3af9a5acedf1e3ad8f15b02d2 | refs/heads/master | 2021-01-20T08:29:33.182139 | 2017-08-03T15:06:49 | 2017-08-03T15:06:49 | 90,151,574 | 0 | 0 | null | 2017-05-03T13:23:37 | 2017-05-03T13:23:36 | null | UTF-8 | Python | false | false | 2,080 | py | """
@brief test log(time=170s)
notebook test
"""
import sys
import os
import unittest
try:
import src
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..")))
if path not... | [
"xavier.dupre@ensae.fr"
] | xavier.dupre@ensae.fr |
804d16fb294af1e2167aa7cbfe225cbea1e4a12b | 8ecd899a8558ad0a644ecefa28faf93e0710f6fb | /ABC073/ABC073_C.py | d47da98fa19e5b10d9df3438b09a9f9619022de0 | [] | no_license | yut-inoue/AtCoder_ABC | b93885547049788d452e86b442a4a9f5ee191b0e | 3d2c4b2b2f8871c75f86040ad07ccd7736ad3dbe | refs/heads/master | 2021-07-03T09:09:20.478613 | 2021-02-21T13:20:31 | 2021-02-21T13:20:31 | 227,140,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | n=int(input())
dic={}
for i in range(n):
v=int(input())
dic[v]=dic.get(v,0)+1
count=0
for k in dic.keys():
if dic[k]%2!=0:
count+=1
print(count)
| [
"yinoue.1996787@gmail.com"
] | yinoue.1996787@gmail.com |
c92a6964dce48eca3cd0395daa70a1cda211616a | 8395ffb48750359d1bd51a201a41c7fe124998bc | /apc2015/perception/single_utils/src/common_utils.py | 8da0757fb5b69454a2ac8aacbf9b00f6599b6e48 | [] | no_license | duke-iml/ece490-s2016 | ab6c3d3fb159a28a9c38487cdb1ad3993008b854 | f9cc992fbaadedc8a69678ba39f0c9d108e6910d | refs/heads/master | 2020-04-12T09:03:56.601000 | 2016-11-29T21:36:48 | 2016-11-29T21:36:48 | 49,226,568 | 2 | 6 | null | 2016-11-29T21:36:49 | 2016-01-07T19:42:34 | Python | UTF-8 | Python | false | false | 13,463 | py |
from __future__ import division
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import struct
import networkx as nx
from networkx import Graph
from math import sqrt
from sklearn.linear_model import RANSACRegressor, LinearRegression
import numpy as np
import colorsys
def argmin(list):
'''
... | [
"hauser.kris@gmail.com"
] | hauser.kris@gmail.com |
67cc58df811c8468e0e57e2bfa9176ab97cede56 | c5a7003de780b3b92f4dff39d5b9d8364bdd28a8 | /HW5/python/q4.py | e9bd110e454a44955f8d3bc41d2cc414271c3393 | [
"ICU"
] | permissive | rainmiku/16720-19Spring-Homework | 961bb00e1ba46de7acc9884ec61c32389d5a6f4a | 9ebc8e178bd2cca85ada52f0cb8ea5f22b47d57e | refs/heads/master | 2020-06-18T15:29:02.340995 | 2019-04-22T03:57:41 | 2019-04-22T03:57:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | import numpy as np
import skimage
import skimage.measure
import skimage.color
import skimage.restoration
import skimage.filters
import skimage.morphology
import skimage.segmentation
# takes a color image
# returns a list of bounding boxes and black_and_white image
def findLetters(image):
bboxes = []
bw = None... | [
"liuzihua0911@gmail.com"
] | liuzihua0911@gmail.com |
677777ac7e27e0ebebf55cb1e8df3142b5de111f | f5dd918e0b98bfb72def6c6fc5d903d07f56a6ab | /3/task3.2_.py | cfaaa983b3a837f0f7d3d176ae0e56e287041a21 | [] | no_license | kuzovkov/python_labs | c0c250a6a514202d798ee4176321279b87f1c318 | 503c01024461629f18ad9846b5ed9f57a7f74980 | refs/heads/master | 2021-01-11T03:41:17.510860 | 2016-10-19T21:17:02 | 2016-10-19T21:17:02 | 71,400,114 | 0 | 0 | null | null | null | null | WINDOWS-1251 | Python | false | false | 1,455 | py | #Кузовков Александр Владимирович
import time
import random
n1=range(10000)
n2=range(12000)
list1=[]
for i in n1:
list1.append(random.randrange(1,50,1))
list2=[]
for i in n2:
list2.append(random.randrange(1,50,1))
cor1=tuple(list1)
cor2=tuple(list2)
#1
print "1 -for"
#print l... | [
"you@example.com"
] | you@example.com |
28275d76fc7068091da1f1482abe349efcc37d25 | fa7c302f7df6b1773b27de3b742d551bd54aa4e2 | /test/test_full_project.py | e13c489a7f2a9a9010537ebe73affc9fb3c1d668 | [] | no_license | cons3rt/cons3rt-python-sdk | d01b3b174c295491130fba0d76d046b16492e9f7 | f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0 | refs/heads/master | 2021-11-04T02:31:54.485541 | 2021-10-26T19:28:57 | 2021-10-26T19:28:57 | 241,673,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | # coding: utf-8
"""
CONS3RT Web API
A CONS3RT ReSTful API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import openapi_client
from openapi_client.mode... | [
"shaun.tarves@jackpinetech.com"
] | shaun.tarves@jackpinetech.com |
cccda1d3bd2bf6bddebd293ef21833236a18e6eb | 28c80b58099d467e1f54f798e91cd8d495de4a1c | /Hunter_1_1.py | 1f9ef72e245d2449592068b4ad01b9570b5a296f | [] | no_license | Raagini539/programs | a01a17bcf5bec2ae5717beb877f1f7f55d6520f2 | 62767573a21ffd8e8d697eca42685e6fc2a96e0a | refs/heads/master | 2020-04-15T22:12:05.095611 | 2019-06-12T13:33:43 | 2019-06-12T13:33:43 | 165,063,410 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | #raagini
n=int(input())
n1=list(map(int,input().split()))
b=[]
l=[0]*10
for i in range(0,len(n1)):
l[n1[i]]+=1
a=max(l)
for i in range(0,len(l)):
if a==l[i]:
b.append(i)
if b==n1:
print("unique")
else:
for i in range(0,len(b)):
if i==len(b)-1:
print(b[i])
else:
print(b[i],end=' ')
| [
"noreply@github.com"
] | Raagini539.noreply@github.com |
c9062b511a27050875abdd2ce5566e8cb651ffd5 | bc441bb06b8948288f110af63feda4e798f30225 | /ucpro_sdk/model/tool/extra_info_pb2.py | 2aa19a3002490b7f1718426fdc634f5975076749 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 17,904 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: extra_info.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf ... | [
"service@easyops.cn"
] | service@easyops.cn |
f316f1b6031ef6cf0a93f051abf8f7a09d1dc624 | 4823d075d43af119dd65d7031f7611b269d8fab1 | /servo_example.py | 26e91c918e6761ffbdd05f41f1991eff78d6f518 | [] | no_license | mpdevilleres/quadcopter | 0588039659ca4b1c9b282ee1d02f044709608712 | 8c91e722b08be6f85a6ef6d5f2a7d58ed4cef828 | refs/heads/master | 2021-01-10T06:11:46.903986 | 2015-12-02T14:19:07 | 2015-12-02T14:19:07 | 47,264,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | #!/usr/bin/python
from pcA9685 import PWM
import time
# ===========================================================================
# Example Code
# ===========================================================================
# Initialise the PWM device using the default address
pwm = PWM(0x40)
# Note if you'd like m... | [
"mpdevilleres@gmail.com"
] | mpdevilleres@gmail.com |
251789d10b58bdaddd1fa7f2b3837d547323ace7 | 6879a8596df6f302c63966a2d27f6b4d11cc9b29 | /abc/problems070/062/a.py | 385a7ee280b6c28a6aea6253a7839fbc1054c3aa | [] | no_license | wkwkgg/atcoder | 41b1e02b88bf7a8291b709306e54cb56cb93e52a | 28a7d4084a4100236510c05a88e50aa0403ac7cd | refs/heads/master | 2020-07-26T03:47:19.460049 | 2020-03-01T18:29:57 | 2020-03-01T18:29:57 | 208,523,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | x, y = map(int, input().split())
A = [1,3,5,7,8,10,12]
B = [4,6,9,11]
ans = "No"
if x in A and y in A:
ans = "Yes"
elif x in B and y in B:
ans = "Yes"
print(ans) | [
"yujin@komachi.live"
] | yujin@komachi.live |
dd6bcf1ef05674887d1083e99174ba463f169eb5 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L28/28-47_MD_NVT_rerun/set_1ns_equi_1_m.py | af38002c6274aeca880c96a0e6b883ada530dcf5 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L28/MD_NVT_rerun/ti_one-step/28_47/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1_m.in'
temp_pbs = filesdir + 'temp_1ns_equi_1_m.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.