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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2fc54fdb33564c85093d3c1ade8519f47bef85fa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02553/s438652342.py | 82c198767ca5b7f4168c3c85266ada4096dd8b62 | [] | 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 | 88 | py | a, b, c, d = [int(e) for e in input().split(" ")]
print(max((a*c), (a*d), (b*c), (b*d))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5cdc3d8fc2d6064c8aed7bcf1fc396041a3ef2a1 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.11.2/1/1569578564.py | a178fed62c1e5d05670590176c94822f3406337d | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def nwords(s: str) -> n:
""" Funktion berechnet zu einem String Argument s die Anzahl der Worte im String.
args: string
returns: n
"""
n = 0
for i in (len(str)): #looping "abc abc"
if s[i] is stri... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
3f038c912cdab138dfec0d40cf9f50af36ae68e9 | e98f3960d0465c91ec1e39272a49ce5ce4496708 | /src/ecldoc/parseDoc.py | b422e00207890399779faefac982fe2ebc84ceb4 | [] | no_license | successar/ecldoc | 7336c26291e68663e4bc739ab891f521724245cf | c7c7458c1bafb2bf9563a082fc05da5f64ef0a2e | refs/heads/master | 2021-01-14T08:22:04.824906 | 2017-08-12T12:02:19 | 2017-08-12T12:02:19 | 81,946,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,712 | py | import re
from lxml import etree
import lxml.html as H
from collections import defaultdict
def parseDocstring(docstring) :
'''
Parse Docstring as returned by eclcc,
break into individual tags and
return them as XML Elements
'''
docstring = re.sub(r'\n\s*\*', '\n', docstring)
docstring = re.... | [
"successar@gmail.com"
] | successar@gmail.com |
de2e4a9bf1208d0184327f19cfd432928ffbfdde | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /dcFp6EuCm8J2HNKFG_21.py | 75a6a5b07dd4596969ad89d81d4ceb4d5cc5bf5a | [] | 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 | 173 | py |
def func(lst):
global res
res = 0
fun(lst)
return res
def fun(lst):
global res
if isinstance(lst,list):
res += len(lst)
for l in lst:
fun(l)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0c9ef5dcdc3f510c6972175e849cf43b3caee43c | 651a296c8f45b5799781fd78a6b5329effe702a0 | /c8lib/c8vec_uniform_01.py | f77127fe01f76857c299aa377e44b3252af5e4c8 | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,367 | py | #!/usr/bin/env python
def c8vec_uniform_01 ( n, seed ):
#*****************************************************************************80
#
## C8VEC_UNIFORM_01 returns a unit pseudorandom C8VEC.
#
# Discussion:
#
# The angles should be uniformly distributed between 0 and 2 * PI,
# the square roots of the radius... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
a4109108ce79ce8ffa413a457964c2fc31fa84dd | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /6NoaFGKJgRW6oXhLC_20.py | b805a8bd5efdd4230470dd426cbebc9d41b4ae6f | [] | 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 | 270 | py |
def sum_of_vowels(txt):
count = 0
txt = txt.upper()
for x in txt:
if x == "A":
count += 4
elif x == "E":
count += 3
elif x == "I":
count += 1
else:
count += 0
return count
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c890c2a824190f02edfa382c7de2388243c80273 | d99e73252210d9ab5dea0b46d2f82f8a036373ce | /scripts/rawFoldTime.py | ee6e0616d95093414fa34bdc91064d3e9dc32732 | [] | no_license | schwancr/schwancr_bin | 710378ebca8482b1e4e38be894a22349e808e18a | fb42d40ac7be4b9984c257c09b569d740926781a | refs/heads/master | 2016-08-04T23:36:29.658194 | 2015-06-30T18:26:04 | 2015-06-30T18:26:04 | 7,841,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,813 | py | #!/usr/bin/env python
from optparse import OptionParser
parser = OptionParser()
parser.add_option('-p',dest='proj_FN',default='../ProjectInfo.h5',help='ProjectInfo.h5 from msmbuilder [ ../ProjectInfo.h5 ]')
parser.add_option('-d',dest='data_FN',help='Data to use as a metric for folded and unfolded states' )
parser.ad... | [
"schwancr@stanford.edu"
] | schwancr@stanford.edu |
eb08eed3392c1000edd7dfa16c3c1cbf171d51e6 | 0d8ee78f61660343e5feec41a53269dbf5585fa3 | /Demo11/fill_nan.py | 2705a3af2c26a7166ff0fe404b2b0e9ae7b01c2b | [] | no_license | x-jeff/Python_Code_Demo | 41b033f089fa19d8c63b2f26bf66ef379738c4ad | 9bc458b08cfae0092e8f11a54031ca2e7017affc | refs/heads/master | 2023-07-29T16:34:34.222620 | 2023-07-09T10:38:23 | 2023-07-09T10:38:23 | 176,306,727 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | import pandas as pd
import numpy as np
df=pd.DataFrame([["Tim","M",24,169,100],["Jack","M",np.nan,177,np.nan],["Jessy","F",21,162,np.nan],["Mary","F",23,159,87]])
df.columns=["Name","Gender","Age","Height","Weight"]
df["Salary"]=np.nan
print(df)
#使用数值2填补缺失值
print(df.fillna(2))
#使用平均值填补缺失值
df["Age"].fillna(df["Age"].... | [
"jeff.xinsc@gmail.com"
] | jeff.xinsc@gmail.com |
e9b3f8973d911ceb5d48ec19e663a81368493195 | f343b2ac4f5b52abd5e6a8fb6bef55acf3a32154 | /solutions-BEWARE-DO-NOT-ENTER/week-4/takeHomeChallenge-palindrome.py | e4a2ccdfe7f0be3a40c21436e6c20987ccb1f2fa | [] | no_license | asyrul21/recode-beginner-python | 41248d59199ac3660ef40aa3a5fdf23fadfb6b5b | 93608e2880aec1774e898d5f1a663dc84e246b46 | refs/heads/master | 2023-07-04T21:59:08.135443 | 2021-08-09T01:43:30 | 2021-08-09T01:43:30 | 330,307,505 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | # The palindrome Checker
# 1. create a varible named word and assign it to the input() statement you learned last week
# 2. Transform this word to all lowercase by performing word.lower()
# 3. Set a flag named Palindrom and set it to True
# 4. Setup a for loop with enumeration, and check that the current letter must
# ... | [
"asyrulhafetzy.21@gmail.com"
] | asyrulhafetzy.21@gmail.com |
13a7dfa407470abb9ca3c605120da264d916ae5d | 249c7081a766318360da21c66e7a30f917c90738 | /exercicio 2.py | c4a34ba0a76bc805393dd0d3128c0d2ff7cc3088 | [] | no_license | Danlei27/PycharmProjects | b4d93a966b45c84f206498faa60c36f8b356c5a9 | abedd9911d7a28f64366f4ea69de86ed16d39534 | refs/heads/master | 2020-05-30T10:32:55.793721 | 2019-06-01T00:33:27 | 2019-06-01T00:33:27 | 189,675,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | dia=input('dia')
mes=input('mes')
ano=input('ano')
cores = {'limpa':'\033[m',
'azul':'\033[34m',
'amarelo':'\033[33m',
'pretoebranco':'\033[7;30m'}
print('Você nasceu no dia' ,cores ['azul'],dia, 'do' ,mes, 'de' ,ano,cores['limpa'], '.correto?')
| [
"danleisantos@hotmail.com"
] | danleisantos@hotmail.com |
65235dd521308b51b04aee202f4a2e28bd864484 | 2a5d8aafddf6744b8ec5a025a1b908878a56d59d | /examples/voc/train_fcn16s.py | 9c935715746c66f95eccf3a69ac092c5df8fd147 | [] | no_license | mrteera/pytorch-fcn | 030e50657b48a4d43d02c8f0b1020ba15248b3db | 449f92a26beb6bbd423e6fefce896ec96c944e16 | refs/heads/master | 2021-08-20T02:32:48.063375 | 2017-11-28T01:23:12 | 2017-11-28T01:23:12 | 112,288,341 | 2 | 0 | null | 2017-11-28T05:05:08 | 2017-11-28T05:05:08 | null | UTF-8 | Python | false | false | 3,067 | py | #!/usr/bin/env python
import argparse
import os
import os.path as osp
import torch
import torchfcn
from train_fcn32s import get_log_dir
from train_fcn32s import get_parameters
configurations = {
# same configuration as original work
# https://github.com/shelhamer/fcn.berkeleyvision.org
1: dict(
... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
b3fca3d8347c9eca93b76398de109317a0a9a702 | 144f5e7480d12bb617928d1f248db3c969e7469e | /manage.py | 216e8b83633cd376c5b286885dac519047de9fae | [] | no_license | eng-olavo/HelloWorldUdemy | 0c4b66315be350c431ba4c5395a71aa5f5edf5e1 | bf9b78e82e2ae5c2055dd72a1a6b55520896c86f | refs/heads/master | 2023-07-10T09:26:43.174027 | 2021-08-25T11:44:29 | 2021-08-25T11:44:29 | 399,786,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'HelloWorldUdemy.settings')
try:
from django.core.management import execute_from_command_line
exc... | [
"olavo.melo.br.DIO@gmail.com"
] | olavo.melo.br.DIO@gmail.com |
cc835a2e423f86342cc8680a183f393ecf36c646 | 78a15793be1ba71ea7eecee33abef4ecbe11d8f2 | /apps/tasks/migrations/0007_task_prototype.py | 8aaf0c000b7bb98be1e6a4e5e5a008f2ba9330e0 | [] | no_license | teresaylin/my2009 | f5df9c62492d4c88931f6aa45af31ee88dbe3a1a | 2486750ad73df313d596497b0eb7f4c47518e6a6 | refs/heads/master | 2021-03-21T23:53:55.581074 | 2016-06-01T18:13:44 | 2016-06-01T18:13:44 | 23,392,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('tasks', '0006_auto_20150112_1549'),
]
operations = [
migrations.AddField(
model_name='task',
name='p... | [
"jam.hann@gmail.com"
] | jam.hann@gmail.com |
bc5605235c47c590538bf12a1da25091b2f5baa9 | fc1c1e88a191b47f745625688d33555901fd8e9a | /meraki_sdk/models/update_network_switch_link_aggregation_model.py | ae44c5120556a9d79b3eaa75edadd21fd9fcaf0c | [
"MIT",
"Python-2.0"
] | permissive | RaulCatalano/meraki-python-sdk | 9161673cfd715d147e0a6ddb556d9c9913e06580 | 9894089eb013318243ae48869cc5130eb37f80c0 | refs/heads/master | 2022-04-02T08:36:03.907147 | 2020-02-03T19:24:04 | 2020-02-03T19:24:04 | 416,889,849 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,722 | py | # -*- coding: utf-8 -*-
"""
meraki_sdk
This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ).
"""
import meraki_sdk.models.switch_port_model
import meraki_sdk.models.switch_profile_port_model
class UpdateNetworkSwitchLinkAggregationModel(object):
"""Impl... | [
"api-pm@meraki.com"
] | api-pm@meraki.com |
c1cc6d515458baffe471b2ce6885e3399146a037 | b095173b2dbc77c8ad61c42403258c76169b7a63 | /tests/unit/sagemaker/feature_store/feature_processor/test_data_helpers.py | a539c1b8d0e12b36adf3caff9af1e6c6a5a997de | [
"Apache-2.0"
] | permissive | aws/sagemaker-python-sdk | 666665e717cfb76698ba3ea7563b45344634264d | 8d5d7fd8ae1a917ed3e2b988d5e533bce244fd85 | refs/heads/master | 2023-09-04T01:00:20.663626 | 2023-08-31T15:29:19 | 2023-08-31T15:29:19 | 110,621,895 | 2,050 | 1,255 | Apache-2.0 | 2023-09-14T17:37:15 | 2017-11-14T01:03:33 | Python | UTF-8 | Python | false | false | 5,596 | py | # Copyright Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompan... | [
"noreply@github.com"
] | aws.noreply@github.com |
c8dcd1cedd1d97b890b8d2a3f6acf93613e18b7a | 09df89395816834ddf77de620f959c22e74d8c00 | /HashTable/IntersectionOfTwoArrays.py | c9236cc4818230a0b857c950f279ebbd7dea479b | [] | no_license | gdh756462786/Leetcode_by_python | c853c4e3de255a8b4016c59944a0d40213a539a7 | 6387543a2a23c30aef1d5d37db54ca72cfb19270 | refs/heads/master | 2020-06-22T11:53:24.758506 | 2018-12-28T03:03:31 | 2018-12-28T03:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # -*- coding: utf-8 -*-
'''
Given two arrays, write a function to compute their intersection.
Example:
Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2].
'''
class Solution(object):
def intersect(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtyp... | [
"pengshuang92@163.com"
] | pengshuang92@163.com |
e5c24b0ad4810b600126263001991245efd2eeee | d7016f69993570a1c55974582cda899ff70907ec | /sdk/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2021_05_01/models/_models_py3.py | 341eee03d5868d8a00c8823395f60df3178711dd | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 24,027 | py | # coding=utf-8
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
e2b08af0cf472fba90e20de63c2f33fe20f598d9 | 2a45af8ec8a4c87d544f461d27795a283f8f5f67 | /python/termcolor.py | d653691bc187a1bbfe10735a28e6d377d5049fb5 | [] | no_license | fengidri/python-script | 2199a16a2d0cc76e6055aec31aaced4638a8c86d | 28fb8e6dbf9e6ba5a1f9c4c3d7b635212bfc5b66 | refs/heads/master | 2020-04-05T14:04:55.103302 | 2017-04-27T10:32:27 | 2017-04-27T10:32:27 | 8,678,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | class termcolor:
def __init__(self):
self.color_switch = True
def on(self):
self.color_switch = True
def off(self):
self.color_switch = False
def black(self,s): return self.__color(30, s)
def red(self,s): return self.__color(31, s)
def green(self,s): return self.__... | [
"fengidri@gmail.com"
] | fengidri@gmail.com |
1cd7062e2dbbc857e50079a192f844d5b55ed6a5 | 350ecc8259bcad075bd376423335bb41cc8a533e | /container.py | d6f4dabc91f6cd2c71ee5bbf7a890d63b568db65 | [] | no_license | CodedQuen/python_begin | 39da66ecc4a77b94a5afbbf0900727c8156b85e1 | 1433c319b5d85520c50aee00dd4b6f21a7e6366a | refs/heads/master | 2022-06-10T10:30:28.807874 | 2020-04-25T03:34:03 | 2020-04-25T03:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | class Container(Object):
def __init__(self):
super(Container, self).__init__()
self._count = 0
def purge(self):
pass
purge = abstractmethod(purge)
def __iter__(self):
pass
__iter__ = abstractmethod(__iter__)
| [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
96324744aa7dddbf82ee6d0e7ad929195f6382f3 | 3db5e39d9bbe1c86229a26e7d19e3ceb37f902e3 | /Baekjoon/DFS/11403_경로찾기.py | 428e02133b0c4846feee49fd309f8023c6f0c0a1 | [] | no_license | sweetrain096/rain-s_python | 5ca2fe5e7f97a681b6e75e64264687a723be1976 | eb285eb50eeebfaa2b4a4d7816314e2073faab00 | refs/heads/master | 2021-07-19T16:06:01.389283 | 2020-05-29T14:56:16 | 2020-05-29T14:56:16 | 162,240,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import sys
sys.stdin = open("11403_input.txt")
def dfs(node):
global cnt
if cnt:
visited[node] = 1
cnt += 1
for i in range(n):
if graph[node][i] and not visited[i]:
dfs(i)
n = int(input())
graph = []
for i in range(n):
graph.append(list(map(int, input().split())))
f... | [
"gpfhddl09@gmail.com"
] | gpfhddl09@gmail.com |
aafa2d25bda177feee0ba3861452ed094d4d6d30 | 80760d4c8a6b2c45b4b529bdd98d33c9c5509438 | /Practice/atcoder/ABC/055/src/c.py | 581f1048d011740a10f93f59ac009b0225db5863 | [] | no_license | prrn-pg/Shojin | f1f46f8df932df0be90082b475ec02b52ddd882e | 3a20f1122d8bf7d95d9ecd205a62fc36168953d2 | refs/heads/master | 2022-12-30T22:26:41.020473 | 2020-10-17T13:53:52 | 2020-10-17T13:53:52 | 93,830,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # sはありったけ使うほうがいい(cから作るとコストがかかる)
# ありったけ = m//2
# 残ったcからsccを作るには4つ必要
n, m = map(int, input().split())
c = min(n, m // 2)
c += max(0, (m-2*n) // 4)
print(c)
| [
"hjod1172@yahoo.co.jp"
] | hjod1172@yahoo.co.jp |
7373d5b736b485909f5bd2f9492763ddb0046a15 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_connivance.py | 4c54eff01815f5dbf6ca736af9a0c9732235da69 | [
"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 | 393 | py |
#calss header
class _CONNIVANCE():
def __init__(self,):
self.name = "CONNIVANCE"
self.definitions = [u'the act of conniving, especially by knowing that something bad is happening and allowing it to continue: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c9781bbdb2daf299479b46c56664e6961bb2de0e | a3d72c9d47a3711ff1a7213da25bacdcb3a7aa32 | /stickerfinder/models/__init__.py | 060f44f521a3886e9ed3f2fb27f318cbfea89f87 | [
"MIT"
] | permissive | crashcoredump/sticker-finder | 225a46c586d1b2b8764cf325e296186cbece5edd | 8158724ebc3e8346012d0ede05a75bb8f9f5f7eb | refs/heads/master | 2020-08-26T23:28:56.991893 | 2019-10-23T22:34:58 | 2019-10-23T22:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | from stickerfinder.models.chat import Chat, chat_sticker_set # noqa
from stickerfinder.models.sticker import Sticker, sticker_tag # noqa
from stickerfinder.models.task import Task # noqa
from stickerfinder.models.sticker_set import StickerSet # noqa
from stickerfinder.models.tag import Tag # noqa
from stickerfinde... | [
"arne@twobeer.de"
] | arne@twobeer.de |
db0ceb7dc61955a38e418bdd38b7e2bbb30d7b57 | c3b66b2f374722acda9747e8c0759ec7aed7e367 | /flask/app/plugins/Struts2/S2_016.py | 788428d7ee3f5c29ee61681f8c4b92562e011671 | [] | no_license | LubyRuffy/linbing | 743965f6e658e476da011ae3a91a91c8466ff977 | b9fb2358955f19629b96ae753cd8811e8d89a862 | refs/heads/master | 2021-02-19T18:24:32.890527 | 2020-03-04T06:18:46 | 2020-03-04T06:18:46 | 245,317,758 | 1 | 0 | null | 2020-03-06T03:02:42 | 2020-03-06T03:02:41 | null | UTF-8 | Python | false | false | 6,166 | py | #!/usr/bin/env python3
'''
name: Struts2 S2-016漏洞,又名CVE-2013-2251漏洞
description: Struts2 S2-016漏洞可执行任意命令
'''
import os
import re
import json
import time
import urllib
import string
import random
import requests
from urllib import request, parse
from requests.packages.urllib3.exceptions import InsecureRequestWarning
r... | [
"taomujian@protonmail.com"
] | taomujian@protonmail.com |
2e55ea81485a99cd8a994f57353debe1ccb6c9d8 | dd65b9bc9475a6cc58817fd45c078e5a6abae241 | /Tensorflow/car/web-tf2/gcf-packs/tensorflow2.0/source/tensorflow/python/ops/gen_clustering_ops.py | c6eae8834fad9b885a2742b697d32016a0d07dd6 | [] | no_license | jumbokh/gcp_class | 5b68192ab4ad091362d89ad667c64443b3b095bb | 0a8e2663bfb5b01ce20146da178fa0c9bd7c6625 | refs/heads/master | 2021-10-22T09:22:04.634899 | 2021-10-21T12:46:10 | 2021-10-21T12:46:10 | 228,617,096 | 8 | 7 | null | 2021-08-25T15:55:30 | 2019-12-17T12:58:17 | Python | UTF-8 | Python | false | false | 13,575 | py | """Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
Original C++ source file: clustering_ops.cc
"""
import collections as _collections
import six as _six
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
from tensorflow.python.eager import context as _context
fr... | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
6b2320e8c2c47715ea5c98b27735c8f33d211d9e | 369e260e100db9ab5cc8b1711e99ef5e49aec173 | /ml/m04_xor4_keras.py | 87fe064f010eff90ddc713569ba5716aa45af154 | [] | no_license | HWALIMLEE/study | 7aa4c22cb9d7f7838634d984df96eed75f7aefea | 8336adc8999126258fe328d6b985a48e32667852 | refs/heads/master | 2023-03-26T09:11:19.606085 | 2021-03-29T23:03:04 | 2021-03-29T23:03:04 | 259,555,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | from sklearn.svm import SVC
from sklearn.metrics import accuracy_score
from sklearn.neighbors import KNeighborsClassifier, KNeighborsRegressor
from keras.layers import Dense
from keras. models import Sequential
import numpy as np
#머신러닝에서는 그냥 하면 되는데
#딥러닝은 np.array로 변경
#딥러닝은 가중치의 곱의 합
#행렬 곱, 행렬 연산 잘하기 위해
#list는 appendin... | [
"hwalim9612@gmail.com"
] | hwalim9612@gmail.com |
c3e30f6134e4652db4fcb9a756938a84de9592d2 | 3a85089c2498ff04d1b9bce17a4b8bf6cf2380c9 | /TrackPropagation/SteppingHelixPropagator/python/__init__.py | e9c699776f8f1dbd5ebfdd70d185bf5b183ab392 | [] | no_license | sextonkennedy/cmssw-ib | c2e85b5ffa1269505597025e55db4ffee896a6c3 | e04f4c26752e0775bd3cffd3a936b288ee7b0268 | HEAD | 2016-09-01T20:09:33.163593 | 2013-04-26T12:05:17 | 2013-04-29T16:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | #Automatically created by SCRAM
import os
__path__.append(os.path.dirname(os.path.abspath(__file__).rsplit('/TrackPropagation/SteppingHelixPropagator/',1)[0])+'/cfipython/slc6_amd64_gcc480/TrackPropagation/SteppingHelixPropagator')
| [
"giulio.eulisse@cern.ch"
] | giulio.eulisse@cern.ch |
ff0a7531475d07eb5161d4785ee3ed33b3de3b33 | 165e706d485e90f4e4f63cfb9f2c35acda14cfc0 | /uq_benchmark_2019/imagenet/data_lib_test.py | b3ae4f7ae9236b62494d913b373efd1af733d1ab | [
"Apache-2.0"
] | permissive | Tarkiyah/googleResearch | 65581f3bbbe2ffe248c9e613c0ea7eac336d5372 | dea327aa9e7ef7f7bca5a6c225dbdca1077a06e9 | refs/heads/master | 2022-12-07T12:04:44.153221 | 2019-11-21T16:03:48 | 2019-11-21T16:18:28 | 223,229,888 | 11 | 2 | Apache-2.0 | 2022-11-21T21:39:10 | 2019-11-21T17:38:31 | Jupyter Notebook | UTF-8 | Python | false | false | 4,751 | py | # coding=utf-8
# Copyright 2019 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
0413508e37f8a9575fd78da43bf93d2e9f9765ab | ddab7a88b96e782430656a1292c2575c58ef3b39 | /cfehome/cfehome/urls.py | 12c72b540be6c60c2a23b70ae80c16f85fc6db21 | [] | no_license | HenryTruth/rapidapi | 11d5d407f294ac0f5305c181dea7a816b8efe7b5 | 4984641e7ec284df73b8b04f74e3b9b47360c85b | refs/heads/master | 2023-03-18T07:32:49.063393 | 2021-02-28T16:38:08 | 2021-02-28T16:38:08 | 343,411,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | """cfehome URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"henrysempire111gmail.com"
] | henrysempire111gmail.com |
3817408a598bef35193652dc85f27df0d7823622 | 8023bdc11776a09b0fff0e9b581bbd42b8013afa | /h2tau/PlotEM.py | 7e972f1232900d42d001e07c09b25d5c20d09127 | [] | no_license | uwcms/UWHiggs | 0785d431b12df07e872a00b36279227781a6c1de | 53c1bd2671dea2553f8bbc5dcdf56a823ccf36f6 | refs/heads/master | 2021-01-16T19:32:45.480056 | 2014-02-06T02:11:54 | 2014-02-06T02:11:54 | 8,310,494 | 0 | 2 | null | 2014-10-10T13:03:07 | 2013-02-20T10:02:08 | C++ | UTF-8 | Python | false | false | 1,396 | py | '''
Make inclusive e-mu (Z + ttbar) control plots
'''
import os
import glob
from FinalStateAnalysis.PlotTools.Plotter import Plotter
jobid = os.environ['jobid']
output_dir = os.path.join('results', jobid, 'plots', 'em')
samples = [
'Zjets_M50',
'WZ*',
'WW*',
'ZZ*',
'TT*',
'WplusJets*',
... | [
"ekfriis@gmail.com"
] | ekfriis@gmail.com |
152113e43cceee7807ab807267ca54fb2a1d1c19 | 5922398212b6e113f416a54d37c2765d7d119bb0 | /python/Search a 2D Matrix.py | 28456dbb8f7a1a1330809a51885131a419f64dcf | [] | no_license | CrazyCoder4Carrot/lintcode | e777f73e1fdfe3b8abc9dbfc07d26602bf614151 | 33dcd7f0e2d9bee58840a3370837cb2db82de1eb | refs/heads/master | 2021-01-09T20:38:59.813198 | 2017-01-16T22:34:26 | 2017-01-16T22:34:26 | 60,287,619 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | class Solution:
"""
@param matrix, a list of lists of integers
@param target, an integer
@return a boolean, indicate whether matrix contains target
"""
def searchMatrix(self, matrix, target):
# write your code here
for row in matrix:
if target in row:
... | [
"liuzhenbang1988@gmail.com"
] | liuzhenbang1988@gmail.com |
2bb6b170f6c1fa3e3e754886a338b80c7b74302c | 59a688e68421794af64bfe69a74f64b2c80cd79d | /math_riddles/floor_problem_challenge.py | ddbc10db108624c04c65eb5008db0f6129fe587a | [] | no_license | hearues-zueke-github/python_programs | f23469b306e057512aadecad0ca0a02705667a15 | d24f04ca143aa93f172210a4b9dfdd9bf1b79a15 | refs/heads/master | 2023-07-26T00:36:56.512635 | 2023-07-17T12:35:16 | 2023-07-17T12:35:16 | 117,093,746 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | #! /usr/bin/python3
from fractions import Fraction as frac
from math import floor as fl
if __name__=='__main__':
# solve x*floor(x*floor(x*floor(x))) = n, where n = 2020 e.g.
def f(x):
return x*fl(x*fl(x*fl(x)))
n = 2020
numer = 1
denom = 1
# a = frac(1, 1)
is_increment_numerator... | [
"hziko314@gmail.com"
] | hziko314@gmail.com |
5cd36692ca51be88c22fee7de2ef5d3cd9b98621 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_nic_spec.py | 964ad72f81427f81c112f83c177d65a55488e0f1 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,422 | py | # coding: utf-8
import pprint
import re
import six
class NodeNicSpec:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is jso... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
be980be27bb8f62cb951489a5a2b039bb1c37cb9 | c8cee25ecb60ca3e6ce5e24c37db57f82f9858f6 | /ConversionPDFaExcelconPythonPandas/pdfaexcelconpandas.py | f2ae448d09dcaa10e19f8e115b76df442765633a | [] | no_license | mecomontes/Python | a0b4a0b69ae33ad3623e908731710563392d1615 | daba4247cca90c43a979e3e3f292cd7b8951b3d0 | refs/heads/master | 2023-05-30T05:24:41.999196 | 2020-03-23T02:30:09 | 2020-03-23T02:30:09 | 249,317,310 | 1 | 0 | null | 2023-05-22T22:42:36 | 2020-03-23T02:29:38 | Python | UTF-8 | Python | false | false | 339 | py | from tabula import read_pdf
df = read_pdf('../Pdfs/Libro1.pdf',
guess=False,
pandas_options={'skiprows':[0,1],'header':None}
)
df.head()
headers = ['Mes','Dia','Año','PptSalpo','TempMax','TempMin','Ppt','Wind','Hum','Solar']
df.columns = headers
df.head()
df.to_excel('../Xl... | [
"1574@holbertonschool.com"
] | 1574@holbertonschool.com |
155ca9d2c3c3e780023de74a3f730658e9eb5a3e | eb36f5ee5b97aae79e7da87602fd4da293a52892 | /tests/op/test_op_setitem.py | af18cd175b6825ed13b183153485f125ea4ab78b | [
"MIT"
] | permissive | turiya/toy-auto-diff | e3f3adc803d0f2c34d9211a62bc646fa491372e2 | bd54cd4d34b482498927449608d47039368dcd8a | refs/heads/master | 2020-06-20T03:25:14.975249 | 2019-03-02T04:58:30 | 2019-03-02T04:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | import numpy as np
import auto_diff as ad
from .util import NumGradCheck
class TestOpSetItem(NumGradCheck):
def test_forward(self):
x_val = np.random.random((3, 4))
x = ad.variable(x_val)
y = ad.setitem(x, (1, 2), ad.constant(5.0))
actual = y.forward()[1, 2]
expect = 5.0
... | [
"CyberZHG@gmail.com"
] | CyberZHG@gmail.com |
fd521e1e8e0199069605ae7e221b0c9872a0793f | de56ee2369d36c93ad802f0359f3274b9a3f0a25 | /photos/views.py | 24f001752b2e3f0c656bd3f2ee705b695289f932 | [] | no_license | Anubhav722/asynchronous-celery-tasks | bdfd485b6c6b2777a4712ad64ebabf347e717654 | a21f055e8e524db662d21f60dac2f8daab075f63 | refs/heads/master | 2021-01-23T00:45:41.631402 | 2017-05-31T10:47:44 | 2017-05-31T10:47:44 | 92,840,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from django.shortcuts import render
from django.views.generic.list import ListView
from photos.models import Photo
from feedback.forms import FeedbackForm
# Create your views here.
class PhotoView(ListView):
model = Photo
template_name = 'photos/photo_list.html'
paginate_by = 24
def get_context_data(self, **kwar... | [
"anubhavs286@gmail.com"
] | anubhavs286@gmail.com |
5864bdacd428ec82508f2d42b00accffcb92af2e | 8410bb5a2e8849bb3a554b95ddc713d88f3440c4 | /aws-dev/awsdev9/venv/Lib/site-packages/dns/rdtypes/ANY/DS(1).py | 7d457b2281e3fa4a816885299c994457c23f6ba4 | [
"MIT"
] | permissive | PacktPublishing/-AWS-Certified-Developer---Associate-Certification | ae99b6c1efb30e8fab5b76e3d8c821823a4cd852 | b9838b4e038b42ad1813a296379cbbc40cab6286 | refs/heads/master | 2022-11-03T04:37:49.014335 | 2022-10-31T05:42:19 | 2022-10-31T05:42:19 | 219,964,717 | 13 | 11 | MIT | 2021-06-02T00:57:45 | 2019-11-06T09:54:09 | Python | UTF-8 | Python | false | false | 950 | py | # Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and ... | [
"sonalis@packtpub.com"
] | sonalis@packtpub.com |
beb326dc1932346c4a7e3a63941053a44da0e48a | d2eb7bd335175edd844a3e6c1c633ee0dc2dbb25 | /contests_atcoder/arc110/arc110_a.py | 72fdc5c78f226f000d840020f629b98b4bbf4129 | [
"BSD-2-Clause"
] | permissive | stdiorion/competitive-programming | 5020a12b85f1e691ceb0cacd021606a9dc58b72c | e7cf8ef923ccefad39a1727ca94c610d650fcb76 | refs/heads/main | 2023-03-27T01:13:42.691586 | 2021-03-08T08:05:53 | 2021-03-08T08:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | from itertools import accumulate,chain,combinations,groupby,permutations,product
from collections import deque,Counter
from bisect import bisect_left,bisect_right
from math import gcd,sqrt,sin,cos,tan,degrees,radians
from fractions import Fraction
from decimal import Decimal
from functools import reduce
import sys
inpu... | [
"itkn1900@gmail.com"
] | itkn1900@gmail.com |
b03d70f00d9f929eb2e0d6a9404207541522dfe7 | 52cb25dca22292fce4d3907cc370098d7a57fcc2 | /BAEKJOON/수학1/1748_수 이어 쓰기1.py | 167d4e44ab35c67945bc83a25c6beb23aeb37edd | [] | no_license | shjang1013/Algorithm | c4fc4c52cbbd3b7ecf063c716f600d1dbfc40d1a | 33f2caa6339afc6fc53ea872691145effbce0309 | refs/heads/master | 2022-09-16T12:02:53.146884 | 2022-08-31T16:29:04 | 2022-08-31T16:29:04 | 227,843,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | # 새로운 수의 자릿수를 출력하기
N = input()
n = len(N)
count = 0
for i in range(n-1):
count += 9*(10**i)*(i+1)
count += (int(N)-10**(n-1)+1)*n
print(count)
| [
"shjang113@gmail.com"
] | shjang113@gmail.com |
c73ec9c62a678fa9a4f062d57defffbd993e56da | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/21/usersdata/75/8322/submittedfiles/exercicio24.py | ff41fdd82bbba07417472c07bcf3f1e9ba01e933 | [] | 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 | 206 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
i=1
a= int(input('Digite o valor do primeiro número:'))
b= int(input('Digite o valor do segundo número:'))
while i<=(a and b):
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e2a45d6a3e24edb3074e7e521b9f78b91a415f56 | 6e6f97f416c06aada38c3a9db23eed7517bfaa6d | /comment/tests/test_models/test_followers.py | 0a11fadb19eb1f3dec4e17ab1490bebd3bb2f26c | [
"MIT"
] | permissive | ZendaInnocent/sogea | 1735ad047539c09a5c81e196a7a1963022452098 | 54cf257856cae451ad87e2396b8e44a34c0c6daf | refs/heads/main | 2023-08-23T07:18:45.741826 | 2021-10-28T13:19:06 | 2021-10-28T13:19:06 | 365,683,816 | 0 | 0 | MIT | 2021-05-09T06:29:57 | 2021-05-09T06:29:57 | null | UTF-8 | Python | false | false | 7,294 | py | from unittest.mock import patch
from django.contrib.contenttypes.models import ContentType
from comment.conf import settings
from comment.models import Follower
from comment.tests.base import BaseCommentTest
class FollowerModelTest(BaseCommentTest):
@classmethod
def setUpTestData(cls):
super().setUp... | [
"medsonnaftal@gmail.com"
] | medsonnaftal@gmail.com |
0914435a0dd3e06ec45e07ea57a79f9c4688419e | 471a036309c05b59243033f2480e27e19268ec55 | /src/london/setup.py | 574ffec30ba669a92a1fc8544c5c6533d47e5545 | [
"BSD-2-Clause"
] | permissive | avelino/votacao_paredao_bbb | 1bbf33b9ec00f033db5b1d558190135315d50b03 | 875ac157b207fee80be6841f9b17c41b7069e15d | refs/heads/master | 2021-01-20T12:17:48.362512 | 2012-07-13T05:41:44 | 2012-07-13T05:41:44 | 4,928,781 | 0 | 0 | null | 2020-07-27T11:05:32 | 2012-07-06T17:51:03 | Python | UTF-8 | Python | false | false | 1,682 | py | import london
import os
import sys
# Downloads setuptools if not find it before try to import
try:
import ez_setup
ez_setup.use_setuptools()
except ImportError:
pass
from setuptools import setup
def fullsplit(path, result=None):
"""
Split a pathname into components (the opposite of os.path.join) ... | [
"thiagoavelinoster@gmail.com"
] | thiagoavelinoster@gmail.com |
4c9cbf1a4a291e0732c209b2377e48be7480b156 | ec1059f4ccea10deb2cb8fd7f9458700a5e6ca4c | /venv/Lib/site-packages/qiskit/test/utils.py | 05433cc98a74738a7ca38e52e181892c3a231072 | [
"Apache-2.0",
"MIT"
] | permissive | shivam675/Quantum-CERN | b60c697a3a7ad836b3653ee9ce3875a6eafae3ba | ce02d9198d9f5a1aa828482fea9b213a725b56bb | refs/heads/main | 2023-01-06T20:07:15.994294 | 2020-11-13T10:01:38 | 2020-11-13T10:01:38 | 330,435,191 | 1 | 0 | MIT | 2021-01-17T16:29:26 | 2021-01-17T16:29:25 | null | UTF-8 | Python | false | false | 3,962 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2018.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"vinfinitysailor@gmail.com"
] | vinfinitysailor@gmail.com |
c27e540e1dee4537be8ca6378dc757a16a9ff8d0 | 801510e45d9aebe5c5b8b09a3ce4453a3a11a3ca | /django/full_stack_django/amadon/amadon/settings.py | c8a2b95ae4b1da6df15ff14bd3426de162c50844 | [] | no_license | michelleshan/coding_dojo_python_course | 5581ebca0a645ba7231a2da2d2d64d6c3735bfc4 | e20e8195950004ef0aa09e6b0f84e7f05bd355e8 | refs/heads/master | 2022-11-21T01:34:54.309175 | 2020-07-16T03:29:45 | 2020-07-16T03:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | """
Django settings for amadon project.
Generated by 'django-admin startproject' using Django 2.2.
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
# Bu... | [
"michellehan@Michelles-Air.attlocal.net"
] | michellehan@Michelles-Air.attlocal.net |
261a0e0bb3133e20df3e76e1fdd109448d018b8c | 9ef7093ffa3bbb916e197ba6788aa3c13dc034dd | /configs/underwaterdataset/reppoints_moment_r50_fpn_2x_mt.py | a03ed5bd5954ecf0b1fa1cdec5e5f447f67c00c3 | [
"Apache-2.0"
] | permissive | coldsummerday/mmdetection-zhou | aae3b50ecddf227f0802c2e5b51622168714fab5 | c333f06f4ffb22131a6f30e6468c82b926e5c87f | refs/heads/master | 2020-12-10T07:34:49.813269 | 2020-03-10T08:52:10 | 2020-03-10T08:52:10 | 233,536,042 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,428 | py | # model settings
norm_cfg = dict(type='GN', num_groups=32, requires_grad=True)
model = dict(
type='RepPointsDetector',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style=... | [
"2808972009@qq.com"
] | 2808972009@qq.com |
0c808994fa59f2de1512003d66c1b90c255c8e86 | 147648c6b25ecc33e82a36b36de6623df9340e62 | /examples/docs_snippets/docs_snippets/legacy/dagster_pandas_guide/shape_constrained_trip.py | 919727954440fecaff0a49b7ac4c1ac7266f5a30 | [
"Apache-2.0"
] | permissive | asdlei99/dagster | be81009ff00dbad02f7cec974650388a5cc2af59 | bbfd1a22e85a10881d7dbbcc888957a487f0c3e5 | refs/heads/master | 2023-08-28T07:18:23.838943 | 2021-11-08T23:09:07 | 2021-11-08T23:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from datetime import datetime
from dagster import Out, job, op
from dagster.utils import script_relative_path
from dagster_pandas import RowCountConstraint, create_dagster_pandas_dataframe_type
from pandas import DataFrame, read_csv
# start_create_type
ShapeConstrainedTripDataFrame = create_dagster_pandas_dataframe_t... | [
"noreply@github.com"
] | asdlei99.noreply@github.com |
f91c21338397820c8cb715e928035e1704768951 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/ADTRAN-ATLAS-VOICE-MIB.py | 4b219ec7f7721d37628adad553700cd8f6071463 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 7,407 | py | #
# PySNMP MIB module ADTRAN-ATLAS-VOICE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ADTRAN-ATLAS-VOICE-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 16:59:20 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
02f6ddcfd40e620fba1b316addc8157b0fccbf16 | 8a74a679fd53fa909d4cc7221d477ce21a1c3566 | /PYTHON/remove_duplicates.py | e5dae22358ca2965e82c5cf9443a3104ca841f0f | [
"MIT"
] | permissive | pawarspeaks/HACKTOBERFEST2021-2 | 1082245d10d1bd76a4b9900223e701ab95b881e8 | 1b53ba18b78d489c2b13d331d70e35e8a8566e93 | refs/heads/main | 2023-09-01T11:11:05.310810 | 2021-10-30T16:20:42 | 2021-10-30T16:20:42 | 422,931,347 | 4 | 0 | MIT | 2021-10-30T16:20:06 | 2021-10-30T16:20:05 | null | UTF-8 | Python | false | false | 599 | py | # Question Link : https://leetcode.com/problems/remove-duplicates-from-sorted-list/
class Solution:
def deleteDuplicates(self, head: Optional[ListNode]) -> Optional[ListNode]:
prev = head
current = head
if head:
val = head.val
head = head.next
while (hea... | [
"noreply@github.com"
] | pawarspeaks.noreply@github.com |
05877846d04c4a9261d06974e881b4c047c5ef65 | ee4d59c295d3060077f5dc3e35aaf0458b31eb32 | /Main/VideoFilter/ConvolutionFiltering/BlurAvgApi.py | 95c97dd9fbeae3b5295c9e3a2bc9194bb5231df4 | [] | no_license | GeonwooVincentKim/Python_OpenCV_MiniProject | eb82f9102352f0fc809c05eeaddbceffaf4e1313 | c59f99ba74a07e6b2b442bf95b90f041f42d2521 | refs/heads/master | 2023-04-22T14:33:41.219214 | 2021-04-20T12:18:34 | 2021-04-20T12:18:34 | 298,581,249 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | import cv2
import numpy as np
file_name = '../../../img/taekwonv1.jpg'
img = cv2.imread(file_name)
blur1 = cv2.blur(img, (10, 10))
blur2 = cv2.boxFilter(img, -1, (10, 10))
merged = np.hstack((img, blur1, blur2))
cv2.imshow('blur', merged)
cv2.waitKey(0)
cv2.destroyAllWindows()
| [
"kdsnop@gmail.com"
] | kdsnop@gmail.com |
7f93cd2bf483be0a0bf39ca8ca709c19d84c5988 | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/gui/HUD2/features/BattleReplay/BattleReplayModel.py | d21709f49d792212b7e0c0469bd4dca973d7509b | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # Embedded file name: scripts/client/gui/HUD2/features/BattleReplay/BattleReplayModel.py
from gui.HUD2.core.AutoFilledDataModel import AutoFilledDataModel
from gui.HUD2.core.DataModel import Structure, FloatT, BoolT, StringT
from gui.HUD2.features.BattleReplay.BattleReplayController import BattleReplayController
from g... | [
"55k@outlook.com"
] | 55k@outlook.com |
3f5d45e43c6ad95997e06aaa1425c98108431191 | 5b4c803f68e52849a1c1093aac503efc423ad132 | /UnPyc/tests/tests/all_opcodes/complex_if2.py | 195df3f53cd7ccdacfb2f828fa8f20736d4dc093 | [] | no_license | Prashant-Jonny/UnPyc | 9ce5d63b1e0d2ec19c1faa48d932cc3f71f8599c | 4b9d4ab96dfc53a0b4e06972443e1402e9dc034f | refs/heads/master | 2021-01-17T12:03:17.314248 | 2013-02-22T07:22:35 | 2013-02-22T07:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | if not(a == 1 and b == 2):
x = 1
else:
x = 2
| [
"d.v.kornev@gmail.com"
] | d.v.kornev@gmail.com |
1919b311e39568cc7ff40ef676dad61a16346bb4 | 10e1d1ec2eb7d1ff991d4286006dbbaa5a5e1760 | /dist/src/dists/logdagum.py | 4c1d97a901cf2c449eb0e094a7f17cded07d0f12 | [] | no_license | mudkip201/distributions | dd904d462fedf97012ed8057244b0ac496392352 | dc8b6e3a6b59c1552c9726f760b047eaff3f32ef | refs/heads/master | 2020-11-29T15:23:21.580157 | 2017-11-20T20:40:29 | 2017-11-20T20:40:29 | 87,482,965 | 1 | 0 | null | 2017-07-19T17:11:47 | 2017-04-06T23:06:26 | Python | UTF-8 | Python | false | false | 2,121 | py | '''
Created on Jul 18, 2017
@author: matthewcowen-green
'''
import dists.Distribution.Distribution as Distribution
import dists.Distribution as ds
import math
import scipy.special as sp
class logdagum(Distribution):
@staticmethod
def pdf(b,d,l,x):
return b*l*d*math.exp(-d*x)*math.pow(1+l*math.exp(-d... | [
"mudkipcg@yahoo.om"
] | mudkipcg@yahoo.om |
a528126e75a4f20eaadf3ed8b12152ba16d83163 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/92b3d792837f65e6264ce4b4a4fb1459dad94a6e-<main>-bug.py | 5bbb64f1f31e353b094838ed127dd869876130a3 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,787 | py |
def main():
argument_spec = ec2_argument_spec()
argument_spec.update(dict(state=dict(default='present', choices=['present', 'absent', 'enabled', 'disabled']), name=dict(default='default'), enable_logging=dict(default=True, type='bool'), s3_bucket_name=dict(), s3_key_prefix=dict(), sns_topic_name=dict(), is_mu... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
52cfaa859b7fc79c6e21e658da2d2c8e37299b9f | 55942d2d44f293bc05351a7c9836eb67c9acf5f6 | /ecommerce/user_model/migrations/0006_auto_20190201_2041.py | 6a9dba631afd1623f9823c7a2848bc174c907b98 | [] | no_license | Maheshwari2604/ecommerce | 92c789524b7042def9621839cfe7e83776561814 | 1f58e23adb1185dee774bd90f793e0be3d4ad53f | refs/heads/master | 2020-04-18T17:48:52.480108 | 2019-02-02T08:43:10 | 2019-02-02T08:43:10 | 167,665,723 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2019-02-01 20:41
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('user_model', '0005_register_model_verified'),
]
o... | [
"maheshwarishivam2604@gmail.com"
] | maheshwarishivam2604@gmail.com |
ff1860a752422a1a417c8f5358354a2586516dea | 116f74ac3759a589db909136ef0bf82954ae68de | /analysis_codes_v2/temp_calc_sparseness_v2.py | 6353026d3a6bff966e50d40a8470b723608386ee | [
"MIT"
] | permissive | zqwei/LIF_Vis_model | 741ffbc1cdb95d65af5bf46f0bfadfad7b706afa | 16f651ac827ba5f0feb40a0e619e600f1251d009 | refs/heads/master | 2021-03-27T14:46:12.609442 | 2018-10-19T03:42:05 | 2018-10-19T03:42:05 | 92,066,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,434 | py | import numpy as np
import pandas as pd
import cPickle as pickle
import os
import scipy.io as sio
import matplotlib
import matplotlib.pyplot as plt
matplotlib.rcParams.update({'font.size': 20})
def calc_sprns_by_range_and_plot(r_data,inds_range,sp_flag):
rshape = np.shape(r_data)
print np.shape(r_data)
if ... | [
"weiz@janelia.hhmi.org"
] | weiz@janelia.hhmi.org |
c701a8e3e3a9cf17b6caf71b1a833ea08ac13ec6 | 12cf1b968423f8148db853b89d869a7b44f52d3d | /time_display_project/urls.py | fb0851719ba1ce88c7ad6bdc2513637a2cb2e3c6 | [] | no_license | raqueloropeza/CodingDojo_Django_TimeDisplay | 6cae35abcb512c222c0552992fd58d5742f75923 | eb9c169e3352d946ddb7c728a1ee024e41ef14ad | refs/heads/master | 2023-05-26T02:04:20.107681 | 2021-05-31T02:42:29 | 2021-05-31T02:42:29 | 372,362,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | """time_display_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home'... | [
"rockuzaki@gmail.com"
] | rockuzaki@gmail.com |
19262e47b10b332431050c327993066170f36ffe | 763ca657487d349e57fb2e2753c9ee6d930043e8 | /djusagi/bin/aliases.py | 63d8d9092ccc59747a22d73e664755a6b871cf15 | [
"MIT"
] | permissive | carthage-college/django-djusagi | b680728ab292ab427e9b95fbb8f8a8de232a6809 | ff890b270a9d21b9130068d69df680e5cf5e04ee | refs/heads/master | 2023-04-07T09:13:08.719663 | 2023-03-28T14:08:43 | 2023-03-28T14:08:43 | 41,050,821 | 0 | 0 | MIT | 2023-03-13T21:42:05 | 2015-08-19T17:57:56 | Python | UTF-8 | Python | false | false | 2,244 | py | # -*- coding: utf-8 -*-
import sys
# env
sys.path.append('/usr/local/lib/python2.7/dist-packages/')
sys.path.append('/usr/lib/python2.7/dist-packages/')
sys.path.append('/usr/lib/python2.7/')
from django.conf import settings
from djusagi.core.utils import get_cred
from googleapiclient.discovery import build
import... | [
"plungerman@gmail.com"
] | plungerman@gmail.com |
fead5db3c50b8e60ef68293d4b6165eb4a5f9806 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/videointelligence/v1p3beta1/videointelligence-v1p3beta1-py/google/cloud/videointelligence_v1p3beta1/services/streaming_video_intelligence_service/client.py | 5801df7ba2beb8459ff6617c5eb39f8ae345ec5a | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,380 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
c26b1e698d6b28cb8ba41501b866f0a0d5697daf | 85ab389658b2fbbb0e56f35e90df35ffb7b3c6dd | /UI_Automation/Tests/test_A_HomePage.py | bdf3d6557013817996f3552a0796fb977186bae4 | [] | no_license | akashgkrishnan/Fm_Staging_automation | 0a306ba0d931db450e3156cdbe8111f63d214889 | 5e8903226ebaa4d512f4f9c9fa581c0d8e227726 | refs/heads/master | 2023-05-13T05:56:02.831480 | 2020-06-03T07:11:26 | 2020-06-03T07:11:26 | 263,627,594 | 0 | 0 | null | 2021-06-02T01:50:17 | 2020-05-13T12:46:34 | Python | UTF-8 | Python | false | false | 6,056 | py | from _csv import reader
from random import randint
from csv import writer
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from UI_Automation.pageObjects.... | [
"krishnanag1996@gmail.com"
] | krishnanag1996@gmail.com |
600f054f49e78cf24098421655e1523203fa53d8 | 9553ebbc332975477a40be1ca3f333beff9d382c | /my_logger.py | 643c3f75aeb6ba74bcc4323ad85ddf902407827c | [] | no_license | smellycats/SX-UnionKafkaCSClient | f406056ac726968f71373c0199d46c73fbbbff17 | 2a1c52bdce32e7e30e2f1f23edfae89346cfa0fd | refs/heads/master | 2021-09-05T04:20:48.498408 | 2017-11-28T08:54:35 | 2017-11-28T08:54:35 | 112,099,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | import os
import logging
import logging.handlers
def debug_logging(log_file_name):
"""Init for logging"""
path = os.path.split(log_file_name)
if not os.path.isdir(path[0]):
os.makedirs(path[0])
logger = logging.getLogger('root')
rthandler = logging.handlers.RotatingFileHandler(
... | [
"smellycat2014@foxmail.com"
] | smellycat2014@foxmail.com |
5c92f6a56671d9890fb4aef4a30287078d8d5c25 | 39a9cd1d168dbd73987385f94ecb968f8eb0be80 | /medicine/migrations/0013_remove_type_med_type.py | a168c64968198db356545acbe34e0105ac956892 | [] | no_license | suhaskm96/medisearch | dc41e05247b0dc7a72fbd26917de3b895407e27e | 629629bcf20396a8c7ed25d384662d15ae7f1c90 | refs/heads/master | 2020-06-24T12:51:33.445648 | 2018-06-15T10:52:38 | 2018-06-15T10:52:38 | 198,967,048 | 1 | 0 | null | 2019-07-26T07:16:01 | 2019-07-26T07:16:00 | null | UTF-8 | Python | false | false | 389 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-14 23:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('medicine', '0012_type_med_type'),
]
operations = [
migrations.RemoveField(
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
6f1601446984a091f96b9571f04aae8710b12672 | 66765829bd7bad8d56624552a2cb41d9d4576025 | /solved/06/abc189_d.py | 0cdaf3a023d2e406f6287f2a682022187fc5c285 | [] | no_license | murakami10/atc_python | 9c0c935c58b55177586b0aa23a25032b59beaca8 | 98f91f43e4cbfadb35a1de250fca98ae53457023 | refs/heads/main | 2023-03-06T10:05:55.248376 | 2021-02-13T06:29:23 | 2021-02-13T06:29:23 | 320,210,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | N = int(input())
S = []
for i in range(N):
S.append(str(input()))
ans = [[0] * (N + 1) for _ in range(2)]
ans[0][0] = 1
ans[1][0] = 1
for i in range(len(S)):
if S[i] == "AND":
ans[0][i + 1] = ans[0][i]
ans[1][i + 1] = 2 * ans[1][i] + ans[0][i]
else:
ans[0][i + 1] = 2 * ans[0][i] ... | [
"m.kyoya777@gmail.com"
] | m.kyoya777@gmail.com |
76cae0ffbd3466e9e2f9290d4d10df7eb386ab9a | 3a534e848c3962ccaad700bdd08bcdaa02f25ddb | /a4/movecircle.py | 43b465bdd17d8e1fbccf626ca43ac4e933632acb | [] | no_license | dragikamov/Advanced_Programming_in_Python | 48460d3b24de46b23e289224bfc3dc06d8f364e9 | db7491de24a54bc7dcac415fc7bd498afc3923d3 | refs/heads/master | 2020-04-27T13:08:24.240850 | 2019-03-07T14:18:18 | 2019-03-07T14:18:18 | 174,357,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # 350112
# a4 1.py
# Dragi Kamov
# d.kamov@jacobs-university.de
from graphics import *
def main():
win = GraphWin()
for i in range(10):
shape = Rectangle(Point(30, 30), Point(70, 70))
shape.setOutline("red")
shape.setFill("red")
shape.draw(win... | [
"dragikamov@gmail.com"
] | dragikamov@gmail.com |
660d026a4cd37bb499fea685b14e4c17e430fcc2 | ab5cdf8f2de94c327e4679da84f941b1f3c04db4 | /kubernetes/test/test_v1_key_to_path.py | bb33f64a5c5d213fb5766a93b9a0fdc02a60e156 | [
"Apache-2.0"
] | permissive | diannaowa/client-python | a4a92a125178db26004eaef5062f9b1b581b49a8 | 5e268fb0b6f21a535a14a7f968b84ed4486f6774 | refs/heads/master | 2020-12-02T22:06:03.687696 | 2017-06-30T21:42:50 | 2017-06-30T21:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
f3bb7cc1fd5db41d05739da7d79ff50bbc8d581e | 7eed7e912038c9a9cdb360aa3c91ac7fcbe7d8a5 | /Chapter13/sort_service.py | a7cd2466b671755179dddc5e8340fac6866caba6 | [
"MIT"
] | permissive | 4n3i5v74/Python-3-Object-Oriented-Programming-Third-Edition | 5228cc99f2e89fe9814140049ea400c29481a664 | 6310577f0a71588cf28d42994b5d9581640b5870 | refs/heads/master | 2023-03-27T08:42:49.488468 | 2021-03-22T03:07:47 | 2021-03-28T05:06:40 | 275,771,956 | 0 | 0 | MIT | 2020-06-29T08:16:50 | 2020-06-29T08:16:49 | null | UTF-8 | Python | false | false | 1,099 | py | import asyncio
import json
from concurrent.futures import ProcessPoolExecutor
def sort_in_process(data):
nums = json.loads(data.decode())
curr = 1
while curr < len(nums):
if nums[curr] >= nums[curr - 1]:
curr += 1
else:
nums[curr], nums[curr - 1] = nums[curr - 1], n... | [
"ketank@packtpub.com"
] | ketank@packtpub.com |
597e6dfa6aa66205665a9db5cf233af448ee78b7 | e495badcd88e4f95ae99f33f8aa740d1e5e7a875 | /0x08-python-more_classes/3-rectangle.py | 7604bd6fe4645a74c0d2a0bee600b626b7b9c889 | [] | no_license | Immaannn2222/holbertonschool-higher_level_programming | 059ed232af3d1ad54e4d7eff97a0dcb4d61585fb | 1c65e5a6d3632f7e28803ebb2699229390883ec7 | refs/heads/master | 2022-12-17T23:42:00.632652 | 2020-09-24T18:02:12 | 2020-09-24T18:02:12 | 259,304,604 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | #!/usr/bin/python3
"""Rectangle class"""
class Rectangle:
"""Rectangle proporties"""
def __init__(self, width=0, height=0):
self.width = width
self.height = height
@property
def width(self):
return self.__width
@width.setter
def width(self, value):
if isinstan... | [
"imennaayari@gmail.com"
] | imennaayari@gmail.com |
9e6c62a0b8c8c640c66886053a78168485cff232 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /fuzz_pyretic_mesh_proactive_firewall_no_close_check_loop_mcs_with_max_replays_5/interreplay_35_l_3/openflow_replay_config.py | 34b65c25622a41540245bfa018421a1f35b62a19 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import OpenFlowReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
4c54990b4fdbf3433f3e4d0b319960ecfb420659 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/lag82/563-tideGauge.py | edc98a675063801b2e15b98450b11705c42804f6 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,984 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
4a9659895ff26415d2e5c664d5a506eec24aa53e | 511c026261ecbccf90c9f561e1c0c66d45ac587e | /tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 23446e30b12d2ca8d9611f6b0b8adfb697bec02c | [
"Apache-2.0"
] | permissive | wulongyuan/tensorflow | 6d064af7ecc3404a7f2afe754002c6033e61740d | 2a5abdb77806e06ce7e2820ede6233ca79cf5625 | refs/heads/master | 2020-04-17T06:42:24.947326 | 2019-01-18T03:02:03 | 2019-01-18T03:11:11 | 166,336,164 | 1 | 0 | Apache-2.0 | 2019-01-18T03:14:49 | 2019-01-18T03:14:48 | null | UTF-8 | Python | false | false | 41,192 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
b8b3aa3da22010a0dbb13fa9eae2bcadfe7846f4 | 636411baa2fc5b5c81710b37d6c53fa7076b9026 | /BST/find_first_greater_than_k.py | 12b3afc941d7a7ff0be4c0c824ceb1a71ea54c17 | [] | no_license | tberhanu/elts-of-coding | 9d90fb23db829c1b41782e2f96978ea9bde59484 | f17881c5732853935bc36b93d00ff58e7f759ed6 | refs/heads/master | 2023-01-04T13:28:31.315542 | 2020-10-30T01:24:48 | 2020-10-30T01:24:48 | 297,862,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | from BST.detail_note import BSTNode
from BST import is_binary_tree_bst
from BST import sample_bst
def find_first_greater_than_k(tree, k):
"""
Given a BST TREE and value K, return the closest number that is greater than K from the BST.
Strategy:
If the node value is less than k, COMPLETELY IGNORE IT,... | [
"tberhanu@berkeley.edu"
] | tberhanu@berkeley.edu |
fae6ad0a1904c63b3c6215ee5cbc6c8ed4b3541e | e51440020cebb432e0ce1f951c9c5700ebfb900c | /plotViolinBox.py | 65eceb9219f2503ee3c3d76173fc5db238c7988c | [
"MIT"
] | permissive | albertwcheng/albert-bioinformatics-scripts | f592f229fc69ff3798cbe4b630e47a48f7dbaa68 | cbe2a5088f069ee9f64c8c006b08dbef98585ba0 | refs/heads/master | 2022-05-26T17:57:00.929988 | 2022-04-18T22:09:57 | 2022-04-18T22:09:57 | 1,090,901 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 37,933 | py | #!/usr/bin/env python
import warnings
warnings.filterwarnings("ignore")
#derived from plotExpBox2.py
'''
Copyright 2010 Wu Albert Cheng <albertwcheng@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... | [
"albertwcheng@gmail.com"
] | albertwcheng@gmail.com |
a33ad1849151ab394185e17bf2023a657ad79628 | 0f1746146e1514bf20c25135cc624353d9c1a08e | /library/tests/test_utils.py | eac382d89c2518bb45a057b1b36500217a1f392b | [
"MIT"
] | permissive | kklimek/i2cdevice-python | 4bdb9ed46c109e78bc54cf512b98029705e34f10 | 54690cea60cbd91d8abffad38dcba3475236439b | refs/heads/master | 2020-08-04T06:20:40.253068 | 2019-10-01T07:37:15 | 2019-10-02T13:59:32 | 212,036,695 | 0 | 0 | MIT | 2019-10-01T07:28:23 | 2019-10-01T07:28:23 | null | UTF-8 | Python | false | false | 898 | py | from i2cdevice import _mask_width, _leading_zeros, _trailing_zeros, _int_to_bytes
import pytest
def test_mask_width():
assert _mask_width(0b111) == 3
assert _mask_width(0b101) == 3
assert _mask_width(0b0111) == 3
assert _mask_width(0b1110) == 3
def test_leading_zeros():
assert _leading_zeros(0b1... | [
"phil@gadgetoid.com"
] | phil@gadgetoid.com |
64121605ca20b778ed7290a0e87d052fbb42dfd3 | 0cff676ec482e23ee4d9867659f553aa3b7c7a3d | /bin/alert-cloudwatch | 7873c24de514052ecc7a0799763db3b407e84069 | [
"Apache-2.0"
] | permissive | jaxxstorm/alerta | 46db7e510ca3cc430e0235a526752615ad2bed18 | af33dc951305134792f03b3ea0d8e49c32d69918 | refs/heads/master | 2020-12-25T03:20:19.934180 | 2014-06-21T20:58:44 | 2014-06-21T20:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | #!/usr/bin/env python
########################################
#
# alert-cloudwatch - Alert AWS CloudWatch
#
########################################
import os
import sys
possible_topdir = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
os.pardir,
... | [
"nick.satterly@guardian.co.uk"
] | nick.satterly@guardian.co.uk | |
53435264f240904694179d2c3e32b6a930f22b9d | a88db875957d20f349d80cff48572ceb60881840 | /bbr.py | dd6f495db12ecc8bd708c5fb2a0113a96f783803 | [] | no_license | mfkiwl/when-to-use-bbr | 5f7d0f31768f93f2dc5448b8b9505860fcb1c4e2 | a5eb4919d2193cbb750ee982df9f9c449afdf16c | refs/heads/master | 2023-04-29T00:25:18.413169 | 2021-05-08T20:22:54 | 2021-05-08T20:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,084 | py | import argparse
import mininet.topo
import mininet.net
import mininet.node
import mininet.link
import mininet.net
import mininet.util
import mininet.clean
from remote import RemoteHost, RemoteSSHLink, RemoteOVSSwitch
class Topology(mininet.topo.Topo):
def __init__(self, config):
self.config = config
... | [
"keyi@stanford.edu"
] | keyi@stanford.edu |
3c9b2a28147271a35e418c0f478a1a5f33b742d5 | 490ffe1023a601760ae7288e86723f0c6e366bba | /kolla-docker/zun/zun/db/api_provideraccount.py | 8c57c51969385a3f449a8780ca8f3cddad05ccc4 | [
"Apache-2.0"
] | permissive | bopopescu/Cloud-User-Management | 89696a5ea5d2f95191327fbeab6c3e400bbfb2b8 | 390988bf4915a276c7bf8d96b62c3051c17d9e6e | refs/heads/master | 2022-11-19T10:09:36.662906 | 2018-11-07T20:28:31 | 2018-11-07T20:28:31 | 281,786,345 | 0 | 0 | null | 2020-07-22T21:26:07 | 2020-07-22T21:26:06 | null | UTF-8 | Python | false | false | 27,668 | py | # Copyright 2013 Hewlett-Packard Development Company, L.P.
#
# 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 applicabl... | [
"Mr.Qinlichao@hotmail.com"
] | Mr.Qinlichao@hotmail.com |
d07b6032abc8c0e3f237db652599fa785edfa2dc | 488c20476d5528c7e942e09f4c88422f67b86853 | /pages/admin.py | c117c10318328e8ee13a42ba8672a5148b952413 | [] | no_license | DaniTodorowa/DjangoToHeroku | e8b600cd07a5864905d6a34f08edcc31a69e4e1b | 2df26ecc429cdca0643c174d81ff77ca5930e145 | refs/heads/master | 2023-02-05T17:17:32.756299 | 2020-12-21T19:10:22 | 2020-12-21T19:10:22 | 319,601,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | from django.contrib import admin
from pages.models import Team
from django.utils.html import format_html
class TeamAdmin(admin.ModelAdmin):
def thumbnail(self, object):
return format_html('<img src="{}" width="40" style="border-radius:50px;" />'.format(object.photo.url))
thumbnail.short_description =... | [
"danitodorova2106@gmail.com"
] | danitodorova2106@gmail.com |
86cab9c16847bab1698333842dec26244522d89a | f1d3aabacc69d1622e6005100e9d2f139b08e4f3 | /chapter_5/ch5-40.naming.py | a12c706f6277c5ce300306fa60ba5acec216f12d | [] | no_license | tschoi6712/HelloCodingPython | 2d49369df97c2eb3b87823ab084674f49e653043 | 0701dcb4715c4e15d049843e82042f92a5784a97 | refs/heads/master | 2020-07-27T08:16:43.291222 | 2019-09-17T10:44:52 | 2019-09-17T10:44:52 | 209,026,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | """""""""""""""""""""""""""
코드에 이름 붙이기
"""""""""""""""""""""""""""
# 주석이 붙어 있는 코드
number_input = input("숫자 입력> ")
radius = float(number_input)
print(2 * 3.14 * radius) # 원의 둘레
print(3.14 * radius * radius) # 원의 넓이
# 함수를 횔용한 코드
PI = 3.14
def number_input():
output = input("숫자 입력> ")
return float(output)
... | [
"tschoi6712@gmail.com"
] | tschoi6712@gmail.com |
9b2b8d9a504e1ddc561e1f9a302d6c4958662e9b | 0b751bab8d276d976e18b174e12fb26299b0a0fa | /cmake-build-debug/catkin_generated/generate_cached_setup.py | b0895402ca4143a9357dbcd96b673750652bc7f4 | [] | no_license | sukai33/stereo_camera | 9e8fd7c7175c863f65b87c02ef3dd50ea44f5bc3 | 5d2969c51e73c5b5c0a5b4e1fd4ea39aae54d788 | refs/heads/master | 2022-12-31T14:39:38.244507 | 2020-10-24T14:38:07 | 2020-10-24T14:38:07 | 306,902,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"422168787@qq.com"
] | 422168787@qq.com |
d4a4ee646ecfaa2e76630580842bb125b95addd2 | 60044c76b631e622edb28f3a74971ce06211fac5 | /Python-for-Everybody/Python-Databases/Object-oriented-programming/elev.py | d27d8423495563ff000c23f513a2a2f4f8ec03fe | [] | no_license | NestorMonroy/Courses-coursera | 8d45a858c79567d74f013ac27ac33d47e43abb96 | 98ac1aa5bb0cd9da5cea5be02995d5b65c779201 | refs/heads/master | 2023-08-14T13:36:07.348994 | 2021-09-22T06:13:57 | 2021-09-22T06:13:57 | 327,753,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | usf = input('Ingrese el numero de piso US: ')
wf = int(usf)-1
print('Numero de piso NO-US es ', wf) | [
"nestor.monroy.90@gmail.com"
] | nestor.monroy.90@gmail.com |
efa141f731ede50aa0f398e6fba17b8f070b9ad4 | 57dccf7b8da26753b66a9eecb9eb6cd1ae5584b5 | /yolov5/yolov5s_torch.py | b06dae06a62e27bac031282565d985784eafd144 | [] | no_license | vbvg2008/benchmarks | 4b743d6b19a4d0b41fa78b8db2a3f3a3f4e86018 | 29e2e445e6701529e048e8ffa283b5b071295566 | refs/heads/master | 2022-12-12T21:50:51.082085 | 2022-12-06T22:09:26 | 2022-12-06T22:09:26 | 187,144,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,096 | py | import math
import random
import tempfile
import cv2
import numpy as np
import torch
import torch.nn as nn
import torchvision
from albumentations import BboxParams
from torch.utils.data import Dataset
import fastestimator as fe
from fastestimator.dataset.data import mscoco
from fastestimator.op.numpyop import Delete,... | [
"shawnmengdong@gmail.com"
] | shawnmengdong@gmail.com |
6ced28b132958d66dd3e4dfcf2043949abc92e14 | 84f3814b595dd362188d8c3b8ba54f80031655a0 | /tangyudi/base/numpy/numpy_4.py | 25a2b556c6fc21f7b56e50277d00d9a482cdd965 | [] | no_license | qisionline/py_stu | 56f1698aad1bc104e260e7d54f55b84aee193813 | 5bafb6296a1f583df2b43defc3061f7093079ab6 | refs/heads/master | 2023-06-20T00:06:22.793170 | 2021-07-05T07:06:24 | 2021-07-05T07:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py |
import numpy as np
a=np.arange(12)
b=a
print(b is a)
b.shape=3,4
print(a.shape)
print(a)
print(b)
print(id(a))
print(id(b))
c=a.view()
print(c)
a.shape=2,6
print(a)
a[0,4]=55
print(a)
print(c)
print(c is a)
d=a.copy()
print(d is a)
d[0,0]=9999
print(d)
print(a)
| [
"1850094299@qq.com"
] | 1850094299@qq.com |
4ce8f9853c6437d81e11aaaef635f53fd238a39b | e4713c248c857b06a3cb0e9d0d15dd5513b1a8e9 | /phonenumbers/shortdata/region_RS.py | 4348b933951308ad6b2bb7bba8514682199003a3 | [
"MIT",
"Apache-2.0"
] | permissive | igushev/fase_lib | 8f081e0f6b956b186dc759906b21dc3fc449f045 | 182c626193193b196041b18b9974b5b2cbf15c67 | refs/heads/master | 2023-05-14T14:35:05.727202 | 2022-04-15T23:55:37 | 2022-04-15T23:55:37 | 107,228,694 | 10 | 0 | MIT | 2023-05-01T19:38:09 | 2017-10-17T06:47:07 | Python | UTF-8 | Python | false | false | 710 | py | """Auto-generated file, do not edit by hand. RS metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_RS = PhoneMetadata(id='RS', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='[19]\\d{1,5}', possible_number_pattern=... | [
"igushev@gmail.com"
] | igushev@gmail.com |
3e94df54d8c79bf66cff5bd9738907713285a1fb | 4b44a299bafbd4ca408ce1c89c9fe4a449632783 | /python3/06_Collections/02_Tuples/07_named_tuple_ops.py | 7ab2152e8002aeee3c28dc99e29bece4712233ce | [] | no_license | umunusb1/PythonMaterial | ecd33d32b2de664eaaae5192be7c3f6d6bef1d67 | 1e0785c55ccb8f5b9df1978e1773365a29479ce0 | refs/heads/master | 2023-01-23T23:39:35.797800 | 2020-12-02T19:29:00 | 2020-12-02T19:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | #!/usr/bin/python
"""
Purpose: Named Tuple ops
"""
from collections import namedtuple
Animal = namedtuple('Animal', 'name age type')
# Assignments
hen = Animal('hen', '2', 'bird')
# 0 1 2
print(hen)
hen = Animal(name='hen', age='2', type='bird')
print(hen)
hen = Animal(age='2', name='hen', typ... | [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
d8e4cca3c4419e249a3fa9dde38edfa30f51ecc2 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/msData/modelGroups/mgL001.py | 96dfeffa0414c3a1c23c80c90bd58d8ab85b987f | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 87 | py | from output.models.ms_data.model_groups.mg_l001_xsd.mg_l001 import Doc
obj = Doc(
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
99af65cd755f1a45ecd11c1d5788f55eb7defc0f | 82c0a53e60106e978f8236fd42e4d2ed18d897d7 | /data_anlys.py | dbb877dd43ed90b6eba8ba16d7595f95619b8d58 | [] | no_license | hasnatosman/data_visualization | c3691dd9f6fb25394725651c0500ee3bcd5ad7b1 | 34cf0483cddf450289c68135ec39201de3dd6311 | refs/heads/main | 2023-06-08T02:09:58.329997 | 2021-06-25T17:42:02 | 2021-06-25T17:42:02 | 380,313,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | import pandas as pd
df = pd.read_csv('pokemon_data.csv')
print(df) | [
"noreply@github.com"
] | hasnatosman.noreply@github.com |
0de9739f74e58c61be4f017af3e9f07f596a8e84 | 1a3228de688754e6c58f248eecfbfdd77c60e72f | /docs/test_asyncio.py | bc288e45631d8804ad67aab78bf222f8558c1f31 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ArtemSerga/hiku | c38d8b4a4fe7ed780680dbe7969652233306a1a3 | 90e7cc50e2754d5dfdc06a6c2f5c6cc55e634566 | refs/heads/master | 2021-01-23T12:46:45.568208 | 2017-06-03T16:40:01 | 2017-06-03T16:40:01 | 93,199,117 | 0 | 0 | null | 2017-06-02T19:52:02 | 2017-06-02T19:52:02 | null | UTF-8 | Python | false | false | 7,346 | py | import uuid
import pytest
import asyncio
# setup storage
from sqlalchemy import MetaData, Table, Column
from sqlalchemy import Integer, String, ForeignKey, select
from sqlalchemy.sql.ddl import CreateTable
metadata = MetaData()
character_table = Table(
'character',
metadata,
Column('id', Integer, primar... | [
"vladimir@magamedov.com"
] | vladimir@magamedov.com |
e72c7937c256545ad06b5ab6bfadcaaa59a4f708 | ab4de1c8caf95571be1e29e2c44272080cbf79be | /2018-07-10/diamantes.py | 6d95056c2bf5fb62708f3684e794901c397e63a5 | [] | no_license | grupydf/dojos | f1c3cf7ad941b93efe875500e1bd18c914cfd372 | ea79079a71dfb43b858acebc028de7f61b0e4177 | refs/heads/master | 2021-01-18T16:29:57.786827 | 2020-05-10T19:57:17 | 2020-05-10T19:57:17 | 20,621,041 | 5 | 6 | null | 2020-05-10T19:57:19 | 2014-06-08T16:38:55 | Python | UTF-8 | Python | false | false | 862 | py | """
diamante('c')
a
b b
c c
b b
a
"""
listaTemp = []
abcedario = ['a', 'b', 'c', 'd', ]
alfabeto = 'abcdefghijklmnopqrstuvwxyz'
j = 0
lista2 = []
k = 0
def sequencia(letra):
index = alfabeto.find(letra)
lista = list(alfabeto[:index])
return lista + [letra] + lista[::-1]
"""
for i i... | [
"humrochagf@gmail.com"
] | humrochagf@gmail.com |
17111326eafe9c7e22bb9fbee83b1687511d8bd6 | d55937a3fe1490c43f509267081a6ef0122131d1 | /predictions.py | fbf2ca8d7907dffa70c5a48c492187da315e655b | [] | no_license | kennethreitz/coinbin.org | e45abb9a00ae968365f057d7b0f44451d3ef52c7 | bc3232fe5157363240a394a564d96f0500605e38 | refs/heads/master | 2022-05-26T01:02:16.111756 | 2018-01-12T22:20:19 | 2018-01-12T22:20:19 | 101,120,306 | 276 | 40 | null | 2018-01-12T22:20:20 | 2017-08-23T00:43:00 | Python | UTF-8 | Python | false | false | 2,131 | py | import time
import uuid
import records
import os
import maya
import numpy as np
import pandas as pd
# Matplotlib hack.
import matplotlib
matplotlib.use('agg')
import mpld3
from fbprophet import Prophet
from scraper import Coin, MWT, convert_to_decimal
PERIODS = 30
GRAPH_PERIODS = 365
@MWT(timeout=300)
def ge... | [
"me@kennethreitz.org"
] | me@kennethreitz.org |
9d0105951ac244b0c59503e22b216fcdfab8e881 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT18vyxUB9haRHR4YLKizkbnsY8Wdm7C8JuA.py | d79748b5bc4a12c3f19b31fdefaf91282de497fa | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,130 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT18vyxUB9haRHR4YLKizkbnsY8Wdm7C8JuA(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
cls.... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
e404d3c0651791aa020ed888a4d41d540052a404 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/nco.py | d978a0c9ddb04b0df5db8a265cd41b474772a578 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
d398d48c8080f72fa8318e8bace03ec75d59c088 | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/splom/marker/colorbar/_ticklabelstep.py | 60e50e822cdfe58fb01e5adc7eecda99cb369c3c | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 487 | py | import _plotly_utils.basevalidators
class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator):
def __init__(
self, plotly_name="ticklabelstep", parent_name="splom.marker.colorbar", **kwargs
):
super(TicklabelstepValidator, self).__init__(
plotly_name=plotly_name,
... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
d5ab8cba4a8c372c31f9f94079edb50e6fae9033 | 0ccd29f678d3b88832eac8b6b577cb32ee1c0653 | /chaco/chaco_traits.py | 8b1ae8d2cc554ef3eb42d64b3d1c8efe49ef7629 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | martinRenou/chaco | 7f0bc36619268f024bc5ea1e62178d5ef77f4b6e | 1888da3ecee89f9b2d11900cda9333b32fc5e89a | refs/heads/master | 2020-07-21T03:40:17.652867 | 2019-09-01T12:12:04 | 2019-09-01T12:12:04 | 206,750,733 | 0 | 0 | NOASSERTION | 2019-09-06T08:36:50 | 2019-09-06T08:36:50 | null | UTF-8 | Python | false | false | 796 | py | """ Defines various traits that are used in many places in Chaco.
"""
# Enthought library imports
from traits.api import Enum
#----------------------------------------------------------------------------
# Box positioning traits: used to specify positions of boxes relative to
# one another. Generally used for layout... | [
"ischnell@enthought.com"
] | ischnell@enthought.com |
201ccbd6e28d692a9e14c5f2478ed25401e276b1 | 08e052c0c2ee4ad0cd4980fbc8a692c407118659 | /venv/bin/chardetect | e40b7008dff3ce3f22024dfecbd68230af3a2b76 | [] | no_license | miltonleal/MAC0110_Introduction_Computer_Science_IME_USP | 6fad182f7fbb3e83403080800074bf57456cb0b5 | b47936ce66e715dba79dff44779a750d795192a0 | refs/heads/master | 2023-03-04T11:06:48.092980 | 2021-02-17T14:47:46 | 2021-02-17T14:47:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/Users/admin/PycharmProjects/MAC110/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"milton.leal@usp.br"
] | milton.leal@usp.br | |
6b977a8c07dfe5e184c2f3e20aa3b4c488859dfe | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03838/s376717183.py | 4bdb937150e0dcdff3a481bbfa20fc4825cb3304 | [] | 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 | 962 | py | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
84cd6d0ec245d8c1be7c030aafca4fa7e34c996e | ea8f71a9a609f15f42bff595bb467722791244a7 | /todo/views.py | 7f489b3f455874f44a52039e8b726be1db9ae581 | [] | no_license | Roderich25/pythonanywhereapp | aafe600cd33c69347655b685f4b792038196aede | 1bd46136e316ea175441ce14a722ddf5b266f767 | refs/heads/master | 2023-05-11T09:37:11.888269 | 2019-10-21T13:24:00 | 2019-10-21T13:24:00 | 216,573,629 | 0 | 0 | null | 2023-04-21T20:39:16 | 2019-10-21T13:21:21 | Python | UTF-8 | Python | false | false | 1,017 | py | from django.shortcuts import render, redirect
from .models import Todo
from .forms import TodoForm, NewTodoForm
from django.views.decorators.http import require_POST
def index(request):
# form = TodoForm()
form = NewTodoForm()
todo_list = Todo.objects.order_by('-id')
context = {"todo_list": todo_list,... | [
"rodrigoavilasolis@gmail.com"
] | rodrigoavilasolis@gmail.com |
80bb4b70c97cfbda2f8175dc88f4e6e29922de08 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_PolyTrend_Seasonal_DayOfMonth_LSTM.py | bae3999426ca9e05b0f4c9111fc8851a700d1b80 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 171 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Quantization'] , ['PolyTrend'] , ['Seasonal_DayOfMonth'] , ['LSTM'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
28c9709a759eca89ba9fd8190f371c4e58acd657 | bfa51f4adc2e2a84c98b3bd02e446a1d8a2fd663 | /mtrack/views/facility_locations.py | f3f827bf39313783eb50cfe58c0a4a8320177745 | [] | no_license | unicefuganda/rapidsms-mtrack | a47f7b1a89240fb1c9145bc4dcbb950f1e35df95 | a03cc6cf46a73620e0eb1bc3fe67816d9029f2d6 | refs/heads/master | 2021-05-16T02:25:01.278824 | 2019-07-10T18:42:22 | 2019-07-10T18:42:22 | 2,011,844 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py | import datetime
from django.template import RequestContext
from django.shortcuts import redirect, get_object_or_404, render_to_response
from rapidsms.contrib.locations.models import Location
from healthmodels.models.HealthFacility import HealthFacility
from rapidsms_httprouter.models import Message
from django.http imp... | [
"sekiskylink@gmail.com"
] | sekiskylink@gmail.com |
357f0f3acd183afa00d04846c89e4cf6dc948676 | e94c3e02b390b7c37214218083e4c5b2ad622f60 | /算法与数据结构/LeetCode/动态规划(DP)/968.监控二叉树.py | 530702ab36f40a07726d0e3b8f30b2727950cbd3 | [
"MIT"
] | permissive | nomore-ly/Job | 1160e341d9c78c2f99846995893f0289f4e56cf6 | ff4fd24447e30e2d17f15696842e214fba7ad61b | refs/heads/master | 2023-06-21T00:23:47.594204 | 2021-07-23T07:29:47 | 2021-07-23T07:29:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | #
# @lc app=leetcode.cn id=968 lang=python3
#
# [968] 监控二叉树
#
# @lc code=start
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def minCameraCover(self, root: TreeNode) -> int:
def dfs(roo... | [
"xiaoqi25478@foxmail.com"
] | xiaoqi25478@foxmail.com |
2c8e6d3328b1b0201a0de2960ec5aa1b14674ed3 | 3db1c06cd10d4a72c3e778006364d5a83d1c5e2c | /subisuhostcheck/djangomonitoring/kitsune/management/commands/kitsune_run_job.py | 4362fb85945fc4d9a3c90dc6185ecf600ab9a68d | [] | no_license | shaktijeet-ego/hostdown | 14f07d309c0346ea0a67d321d774a788d2a1b75e | 9eab7ff08746c0c276bdc46bd1f52d2f02d7d2bb | refs/heads/master | 2023-04-05T19:22:57.064463 | 2021-04-28T03:35:34 | 2021-04-28T03:35:34 | 353,187,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | import sys
from django.core.management import call_command
from django.core.management.base import BaseCommand
from kitsune.models import Job, Log
class Command(BaseCommand):
help = 'Runs a specific job. The job will only run if it is not currently running.'
args = "job.id"
def handle(self, *args, *... | [
"shaktijeet.tripathi@gmail.com"
] | shaktijeet.tripathi@gmail.com |
b8a39e4b237775fa112b8b08084ab7469ea8f0e7 | a9e051485379fb7e569a7c8458045e9eb56d4cf8 | /surrogate/estimator/kriging.py | 357dcc5bdc81b8748f80326eee090c87827710c9 | [
"Apache-2.0",
"MIT"
] | permissive | liujiamingustc/phd | 7634056500c481d39fa036bf0ed744c1d13b0035 | 4f815a738abad43531d02ac66f5bd0d9a1def52a | refs/heads/master | 2020-05-17T07:02:56.000146 | 2019-04-24T15:04:19 | 2019-04-24T15:04:19 | 183,567,207 | 4 | 0 | null | 2019-04-26T06:04:37 | 2019-04-26T06:04:37 | null | UTF-8 | Python | false | false | 6,594 | py | # Copyright 2016 Quan Pan
#
# 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, s... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.