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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ea786f962c4bb8d037ea2e65e05397c5a17f9a0c | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/ytta/resp_func/redesign/rf_filament.py | 8567adadf509a4ecf5e11c731371ecc5217a1c3a | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 3,894 | py | #-------------------------------------------------------------------------------
#
# Copyright (c) 2009, IMB, RWTH Aachen.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in simvisage/LICENSE.txt and may be redistributed only
# under the conditions des... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
f51f5d126e624ce6f581af3758624e5393048c69 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_75/741.py | 508e825c69685e3c508599526da9af0a4ddab4fe | [] | 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 | 16,588 | py | #!/usr/bin/env python
input = """100
0 0 2 EA
1 QRI 0 4 RRQR
1 QFT 1 QF 7 FAQFDFQ
1 EEZ 1 QE 7 QEEEERA
0 1 QW 2 QW
14 QEC WRB QQG FDI RDH EAK FQJ ADM DWL RRO FEP RSY FSX ASZ 9 DQ DF FQ WR DA SF WS DW QA 88 WRADEADWFWRWRFQEFSWFEDWADFDRRFDFERREAWFQFQRRFRRWREWRFQQEASDWSEQQQWWRRSRRQQRDFQADQQSDQERS
16 RSC DAB WWG FFI FWH R... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
89f1ae74a600f564db6992784235bc311a79bfe9 | beed259c9aaf824c5307d93ffa736255f2d98831 | /month06/Machine_learning/day06/01_grid_search_demo.py | 6e9ec278441e7aa3b3c2e35ec90effc1330900e1 | [
"Apache-2.0"
] | permissive | chaofan-zheng/python_learning_code | 21345f97ebf74c3cad0ef488a93ec8a7fd771a63 | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | refs/heads/main | 2023-05-27T16:17:18.130492 | 2021-06-06T14:23:31 | 2021-06-06T14:23:31 | 338,234,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | # 01_grid_search_demo.py
# 网格搜索示例
""" 网格搜索
1) 寻找超参数组合的一种方式
2) 利用穷举法, 将可选的参数组合, 选择最优者
3) 能够简化对参数选择过程
"""
import numpy as np
import sklearn.model_selection as ms
import sklearn.svm as svm
import sklearn.metrics as sm
import matplotlib.pyplot as mp
# 读取数据
x, y = [], []
with open("../data/multiple2.txt", "r") as f:
... | [
"417355570@qq.com"
] | 417355570@qq.com |
08ee0a9717d7a5b84c5ebec7fd711e4b60ec1a77 | 65d93b3db37f488356faa1789f1001f17191e345 | /isi_mip/core/migrations/0005_headerlink_menu_items.py | bbd567159b1e8dd19206dd7ca3b9554ba3cbeffa | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ISI-MIP/isimip | b4a19310dd772356eef87259783084836107cf4a | c2a78c727337e38f3695031e00afd607da7d6dcb | refs/heads/master | 2021-09-14T15:42:14.453031 | 2021-05-25T09:33:45 | 2021-05-25T09:33:45 | 237,446,232 | 0 | 0 | MIT | 2020-01-31T14:27:04 | 2020-01-31T14:27:03 | null | UTF-8 | Python | false | false | 803 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-03-06 12:23
from __future__ import unicode_literals
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('core', '0004_auto_20170118_1443'),
]
... | [
"hi@brueck.io"
] | hi@brueck.io |
097d789ff031bc02e11ed666f3d663f1e107cd89 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/api_version_detail.py | 3c337f810bd10e1917aa9bfeff016dbb057dce3c | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,327 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ApiVersionDetail:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key i... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
91af8f7eafbaafb06ab11369ce37a6fdf95547da | 30302d215a012a079edf05a4e14e932888385def | /tests/core/v5/test_handshake_schemes.py | 0e9e7b6f08153cdd6fef5a60a99152a2d7ba3b25 | [
"MIT"
] | permissive | NhlanhlaHasane/ddht | e54975a7fcf4e9bfa29771ee6b78c5e9a5991aff | 142911d134ff839f3f79ff8fe9e45d3fe5a58cd0 | refs/heads/master | 2023-05-31T05:09:06.371320 | 2021-06-03T22:31:22 | 2021-06-03T22:31:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,076 | py | from hashlib import sha256
from eth_keys.datatypes import NonRecoverableSignature, PrivateKey
from eth_utils import ValidationError, decode_hex, keccak
from hypothesis import given
import pytest
from ddht.handshake_schemes import ecdh_agree, hkdf_expand_and_extract
from ddht.tools.v5_strategies import id_nonce_st, pr... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
734d7779a3e742141face3d32132d429ae9aaf73 | c2e16633921d1efe584d93d769eaa7892a2fd8f3 | /OOP/project.zoo/animal_init.py | 4a1d1f4ef87641924483dded75122042ed61a8ed | [] | no_license | yosifnandrov/softuni-stuff | bd53d418fe143ea4633a5488c1f80648da0b9ef7 | 2a76e5aee2029edf901634750d28cf153d73ece3 | refs/heads/main | 2023-04-17T19:53:30.254790 | 2021-05-06T11:33:39 | 2021-05-06T11:33:39 | 364,884,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | def initialization_animals(self,*args):
attributes = self.__annotations__
for attr,argument in zip(attributes,args):
setattr(self,attr,argument)
| [
"yosif1993@abv.bg"
] | yosif1993@abv.bg |
b82c181401e82d543fbec8baf19ab692ca195486 | 1280ef2fd358ddb094f4147a25d1c21c5d718c43 | /socialNewsApp/src/mikroblog/urls.py | bbc8ecb1247ff3a183a88abc172e69b049bd33b7 | [] | no_license | PatkaSm/SocialNewsApp | aeac569c76f554b637efa2235afad8230bf5bb44 | bea67724e86523939fad20411807513202c1a1b8 | refs/heads/master | 2023-04-06T11:52:31.755797 | 2021-04-21T07:35:54 | 2021-04-21T07:35:54 | 279,606,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | from comment.views import delete_micropost_comment, like_micropost_comment
from django.urls import path
from mikroblog.views import MicroPostListView, micro_post_delete, micro_post_like
urlpatterns = [
path('', MicroPostListView.as_view(), name='mikroblog'),
path('mikro-post/delete/<int:pk>',micro_post_delete ... | [
"patrycja.s449@gmail.com"
] | patrycja.s449@gmail.com |
fb60256c701c3ceddc6c6bad0eed101f230346b1 | db7aac75e31d35c4a18c966170b46f269d015d0b | /webgl_canvas_gadget/apps/projects/migrations/0044_auto_20160819_0115.py | 3c13e9f0687f9d9d8dba9341538656d11f099466 | [] | no_license | jjpastprojects/Django | 12fbf3cf27a9230db98a21cc1013216aeadaae1e | c55562be7226f29b4ec213f8f018b6c2dd50c420 | refs/heads/master | 2022-12-12T22:15:49.493289 | 2017-09-05T12:51:20 | 2017-09-05T12:51:20 | 101,995,798 | 0 | 0 | null | 2022-12-07T23:21:46 | 2017-08-31T11:55:00 | JavaScript | UTF-8 | Python | false | false | 622 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-08-18 19:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0043_auto_20160816_2354'),
]
operations = [
migrations.AddField(
... | [
"sam.noreaksey@outlook.com"
] | sam.noreaksey@outlook.com |
40779a1244722e9b010944110d3bb639931b5b94 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_331/ch40_2019_04_03_22_25_14_448588.py | 342e2f8292e3195be274356568c6453d16509eb9 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | def fatorial(n):
s=1
while n>0:
s*=n
n=n-1
return s | [
"you@example.com"
] | you@example.com |
84214983efbd775549489eac0f074bacbb7d4429 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /day06/day6/3.今日内容.py | 95e2682ddf4ad17f4ff7f20bcc9fad627442c403 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 343 | py | # 内置模块
# re模块讲完
# os模块:和操作系统打交道
# 时间模块 time和datetime
# sys模块 :和python解释器相关的
# 序列化模块 :json pickle
# logging模块:打印日志用,规范日志格式
# hashlib模块 :摘要算法的集合 - 密文的登录验证
# 下周开始:开面向对象 | [
"13269469526@163.com"
] | 13269469526@163.com |
f967e820b74cfdce9295d196ecf1cddad3653ee7 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /67/67.add-binary.282298911.Accepted.leetcode.python3.py | bacf67b5bc939359b252bd80e3cb448d5e8ac740 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | """
Problem Link: https://leetcode.com/problems/add-binary/
Given two binary strings, return their sum (also a binary string).
The input strings are both non-empty and contains only characters 1 or 0.
Example 1:
Input: a = "11", b = "1"
Output: "100"
Example 2:
Input: a = "1010", b = "1011"
Output: "10101"
"""
# the... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
8df572327d1476dac62dac98652932fcec33a758 | 124df74bce796598d224c4380c60c8e95756f761 | /com.raytheon.viz.avnconfig/localization/aviation/python/TafViewer.py | 063ff9b84526cb0322a560a288dcb2089c769676 | [] | no_license | Mapoet/AWIPS-Test | 19059bbd401573950995c8cc442ddd45588e6c9f | 43c5a7cc360b3cbec2ae94cb58594fe247253621 | refs/heads/master | 2020-04-17T03:35:57.762513 | 2017-02-06T17:17:58 | 2017-02-06T17:17:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,841 | py | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to ... | [
"joshua.t.love@saic.com"
] | joshua.t.love@saic.com |
a7dac8a6c149989da09d918c09c3700c2a8ee2d9 | 08cfc4fb5f0d2f11e4e226f12520a17c5160f0a2 | /kubernetes/client/models/v1_subject.py | 1e131c521a19b4ff2a12fcdefa5275c6f8708630 | [
"Apache-2.0"
] | permissive | ex3cv/client-python | 5c6ee93dff2424828d064b5a2cdbed3f80b74868 | 2c0bed9c4f653472289324914a8f0ad4cbb3a1cb | refs/heads/master | 2021-07-12T13:37:26.049372 | 2017-10-16T20:19:01 | 2017-10-16T20:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,118 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
36d3e7e80d615098ce61bc85d31fe8ad49acb08b | bc2d2d99ed7a814fd36eab5ca3defc4fbfc9ea29 | /hesab/__init__.py | c91d821b54591fd6ac370087fb20c187a97e7785 | [
"MIT"
] | permissive | soul4code/django-hesab | f4ba7d8167ff1e42ab775e0bdea61a7c11bdfb98 | 3ec72def22283475d958a60abc3a572d8ccb63cc | refs/heads/master | 2021-12-30T08:47:44.131542 | 2016-07-30T20:14:00 | 2016-07-30T20:14:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__title__ = 'django-hesab'
__version__ = '1.0.0'
__author__ = 'Rolf Haavard Blindheim'
__license__ = 'MIT License'
VERSION = __version__
| [
"rhblind@gmail.com"
] | rhblind@gmail.com |
eb26945e850a7ec79e2f98859ec3962e49ed2159 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_315/ch4_2020_09_14_20_47_35_320810.py | fcf55ef1a3a2c80781e08fabde27b771f5906d87 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | def classifica_idade (x):
if x <= 11:
return ('Criança')
elif 12 >= x <= 17:
return ('Adolescentes')
else:
return ('Adulto')
idade =
print (classifica_idade(idade)) | [
"you@example.com"
] | you@example.com |
ca6dc956467dab844f128b9f78f9895994507ef7 | f0354782628e51b1a301eba1a69e9808b4adc664 | /Problem/1837.py | 3079b66b692fc1dbe6e5fc8cf1cfaff6a2a29e35 | [] | no_license | HyunIm/Baekjoon_Online_Judge | 9b289ea27440c150ef34372dc91e6f92f4102659 | f3a4670ea2b6ee81fa4b1bdcad3412cb995e64f2 | refs/heads/master | 2023-05-26T16:54:39.643360 | 2023-05-23T04:07:08 | 2023-05-23T04:07:08 | 119,958,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | def get_prime_list(n):
sieve = [True] * n
m = int(n ** 0.5)
for i in range(2, m + 1):
if sieve[i] == True:
for j in range(i+i, n, i):
sieve[j] = False
return [i for i in range(2, n) if sieve[i] == True]
def isGood(P, primeList):
for i in primeList:
if P... | [
"hyunzion@gmail.com"
] | hyunzion@gmail.com |
c16aabe7c644a2982c6ea02d45ae4030dc12cb68 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/docutils-0.14/test/test_dependencies.py | 298e8a43bbe4945559d1c54dd12072619e493bde | [
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-3.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-permissive",
"Python-2.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 4,961 | py | #! /usr/bin/env python
# $Id: test_dependencies.py 8059 2017-04-19 16:47:35Z milde $
# Author: Lea Wiemann <LeWiemann@gmail.com>
# Copyright: This module has been placed in the public domain.
"""
Test module for the --record-dependencies option.
"""
import os.path
import unittest
import sys
import DocutilsTestSuppor... | [
"ranade@cloudera.com"
] | ranade@cloudera.com |
486034fb7355dde440f6d12c08d49916145a742b | 14f4d045750f7cf45252838d625b2a761d5dee38 | /argo/argo/models/io_k8s_api_extensions_v1beta1_daemon_set_status.py | 28f99b9e0ea5351eb392974c3994672409b1adb9 | [] | no_license | nfillot/argo_client | cf8d7413d728edb4623de403e03d119fe3699ee9 | c8cf80842f9eebbf4569f3d67b9d8eff4ba405fa | refs/heads/master | 2020-07-11T13:06:35.518331 | 2019-08-26T20:54:07 | 2019-08-26T20:54:07 | 204,546,868 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,114 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.14.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six... | [
"nfillot@weborama.com"
] | nfillot@weborama.com |
7cc8883ebb5f0dd25746047288ce32ce7fa4947c | 72ec201effe17c3875f3d26ab98d6e56f808b0ac | /aoomuki_comp/app/migrations/0031_auto_20210118_1549.py | aa56a163b40bbbd5237d06285a7476af7d32fbd8 | [
"MIT"
] | permissive | Kamelgasmi/aoomuki_competences | 549f9c9167f82d084ef6048cec72e87fe90f4c35 | e02f3546f7efb54b825dbcfab968296607775903 | refs/heads/master | 2023-04-06T17:48:35.921460 | 2021-04-16T08:49:15 | 2021-04-16T08:49:15 | 330,929,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | # Generated by Django 2.1 on 2021-01-18 14:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0030_collaborater_interest'),
]
operations = [
migrations.AddField(
model_name='competence',
name='interest',
... | [
"kam_7@hotmail.fr"
] | kam_7@hotmail.fr |
0be49ab140e271f258fe295a477f0b5a297ad08b | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/testbase/azure-mgmt-testbase/azure/mgmt/testbase/operations/_favorite_processes_operations.py | 8b818b20a71c6821823558790cdd0752dc84b1e3 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 29,342 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ee6bdb9c84c524d31881c748f2c22d11a57d93ab | 1fb60677cf35066e631d618ec002d48e21aeda7a | /profil3r/modules/domain/domain.py | cfe36160927867d187c6c8c800da38fbc2629d67 | [
"MIT"
] | permissive | dannymas/Profil3r | 32c57b7f17f1c0718c7486b89ff90efed616afba | 7e3ed9d832c5bdc5a55516b5a60df4f34524d41a | refs/heads/main | 2023-04-24T23:45:27.699593 | 2021-05-03T19:56:50 | 2021-05-03T19:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | import requests
import time
class Domain:
def __init__(self, config, permutations_list):
# 100 ms
self.delay = config['plateform']['domain']['rate_limit'] / 1000
# {permutation}.{tld}
self.format = config['plateform']['domain']['format']
# Top level domains
self.tld... | [
"r0g3r5@protonmail.com"
] | r0g3r5@protonmail.com |
beadf6d20bb969ef983bf3ec9d9c14a4d1743966 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02407/s171824787.py | 1e477cdfe641dd6789e56cca6b240f49558d20ad | [] | 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 | 75 | py | num = int(input())
line = input().split(" ")
line.reverse()
print(*line)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5dbe73547db33cba83f0d8333afa2a3a9d171a97 | 782e9c3d4391750463c0a5b05878d2415d4a06a3 | /db/category/rest.py | 27e7f8bca3e7e2391a3b0314c980acde624232fa | [] | no_license | powered-by-wq/insideoutside.wq.io | 23f94e671eeb5c2aabd822c8cd24cf689841556f | c248529e67df3106ddd5b36b00ae10b3519e1e0f | refs/heads/master | 2021-01-22T04:27:50.242369 | 2017-06-21T20:55:57 | 2017-06-21T20:56:33 | 92,464,066 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | from wq.db import rest
from .models import Category
rest.router.register_model(
Category,
fields="__all__",
)
| [
"andrew@wq.io"
] | andrew@wq.io |
c55f523611483c34014135fc431d81dfc7d59241 | 7c7a258f52a6a2a1710507b3543a0c082933250b | /webscaff/commands/run/dj.py | cf5b4d01d7b8c54242efc464153dd9b9a997fd2d | [
"BSD-3-Clause"
] | permissive | idlesign/webscaff | c487407da7a1a89bbfb52d803b219b49e15a8c18 | 407bbd3e1870aaab80036b3131054599b58072de | refs/heads/master | 2022-12-25T06:42:42.009768 | 2022-12-09T14:56:30 | 2022-12-09T14:56:30 | 211,610,572 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | from pathlib import Path
from invoke import task
from .fs import create_dir
from ..sys import fs as sys_fs
from ..utils import link_config, echo
@task
def manage(ctx, cmd):
"""Runs Django manage command(s).
:param str|list cmd:
"""
if not isinstance(cmd, list):
cmd = [cmd]
project_nam... | [
"idlesign@yandex.ru"
] | idlesign@yandex.ru |
ce9cb02dae46b73e35c4b0bbc4bb10048d9627bb | 3114430ce15c18281117459e26eea4b774e3998a | /day5/blog/views.py | 48de02fcbfba9df1b78cc55c5c432bd1cee81630 | [
"MIT"
] | permissive | Joseamica/Easily-written-Django | c02e7333e84ca2257b7b8bfae3f6732898c5000a | 0b746638751702c453db9490fe29ef6d34e4a3bc | refs/heads/master | 2021-05-27T20:25:41.341149 | 2014-05-25T08:25:53 | 2014-05-25T08:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.shortcuts import render
from django.http import HttpResponse
def me(request):
return HttpResponse('Hi :)')
| [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
78f74a8eb59a7952d622fd4781ae53f2185f223d | 0f923ef8d024915edbe4088ce0da24ee952cd63e | /venv/Scripts/pip3-script.py | 4c1d9b27d8335a7cb149c92842c69228cf3051f7 | [] | no_license | Rpaul88/POM_Naukrii | 95c53cb1d314eca8798a07f5b6be01e34aaded0e | f399248a29c8e08bf173864f8080828ed34184e4 | refs/heads/master | 2020-06-18T03:01:25.009516 | 2019-07-10T06:26:23 | 2019-07-10T06:26:23 | 196,144,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | #!"C:\Users\Guest User\PycharmProjects\POM_Practice1\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"you@example.com"
] | you@example.com |
d8ff7cb47e5c9e6b1480a7b97b390f610bd742e8 | 9e204a5b1c5ff4ea3b115ff0559b5af803ab4d15 | /186 Reverse Words in a String II.py | 5d43c1616b0c5b156304fff51182135263cb7232 | [
"MIT"
] | permissive | Aminaba123/LeetCode | 178ed1be0733cc7390f30e676eb47cc7f900c5b2 | cbbd4a67ab342ada2421e13f82d660b1d47d4d20 | refs/heads/master | 2020-04-20T10:40:00.424279 | 2019-01-31T08:13:58 | 2019-01-31T08:13:58 | 168,795,374 | 1 | 0 | MIT | 2019-02-02T04:50:31 | 2019-02-02T04:50:30 | null | UTF-8 | Python | false | false | 789 | py | """
Premium Question
"""
__author__ = 'Daniel'
class Solution(object):
def reverseWords(self, s):
"""
in-place without allocating extra space
:type s: a list of 1 length strings (List[str])
:rtype: nothing
"""
self.reverse(s, 0, len(s))
i = 0
while ... | [
"zhangdanyangg@gmail.com"
] | zhangdanyangg@gmail.com |
472e0f1f2bcbc12ab46ecc36e9b0b889f774b546 | d8ea695288010f7496c8661bfc3a7675477dcba0 | /examples/sound/baidu_to_mp3.py | 18dc62be42aa2966c7e393740f7042699d421b77 | [] | no_license | dabolau/demo | de9c593dabca26144ef8098c437369492797edd6 | 212f4c2ec6b49baef0ef5fcdee6f178fa21c5713 | refs/heads/master | 2021-01-17T16:09:48.381642 | 2018-10-08T10:12:45 | 2018-10-08T10:12:45 | 90,009,236 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | from aip import AipSpeech
""" 你的百度 APPID AK SK
https://console.bce.baidu.com/ai/#/ai/speech/app/list 应用列表
http://ai.baidu.com/docs#/TTS-Online-Python-SDK/top API
"""
APP_ID = '9288864'
API_KEY = '7OOA9UFvHwC3pplzPZnqQ9pF'
SECRET_KEY = '4ea30a42379528355abb0fa6e31516a2'
client = AipSpeech(APP_ID,... | [
"dabolau@qq.com"
] | dabolau@qq.com |
99c12bbc5aaaf4c9ef74e2e7c22addb524520f57 | 3ab7e700203054e104e6c60295c0a8455bc388b1 | /i_entity_extractor/extractors/financing_events/financing_events_extractor.py | 5aed8640d1b6ed90cab151ea36dcd81fd788ed26 | [] | no_license | youfeng243/crawler | e8114ab5ef68bb9fd7e4296452d63b53d3d4080a | 59eaabef94de67444f09cfe5b25d481034d10f29 | refs/heads/master | 2021-07-11T10:12:27.946819 | 2017-10-12T11:35:27 | 2017-10-12T11:35:27 | 106,583,181 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,315 | py | # coding=utf8
import sys
import re
import time
sys.path.append('../../')
sys.path.append('../../../')
from i_entity_extractor.extractors.default.default_extractor import DefaultExtractor
from i_entity_extractor.common_parser_lib import etl_tool
import copy
class FinancingEventsExtractor(DefaultExtractor):
def __... | [
"you@163.com"
] | you@163.com |
cb98b3436e683f576b7be3d1ab7586b93b861a14 | 631b26854aa790915fc3ee65dc68a7c9bd1fed5b | /2048 Game/main.py | 77358e640f0730a2d973005d69316862e6533d66 | [] | no_license | Aniketthani/Kivy-Projects | 6e7dc1c079255697acc812497a481f1ffdeada54 | 0aec55f10d82b8f756a132fdc833c5aaab695a6f | refs/heads/main | 2023-04-29T10:17:15.262192 | 2021-05-05T17:29:02 | 2021-05-05T17:29:02 | 341,630,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,085 | py | from kivy.app import App
from kivy.uix.widget import Widget
from kivy.graphics import BorderImage,Color
from kivy.core.window import Window,Keyboard
from kivy.utils import get_color_from_hex
from kivy.properties import NumericProperty,ListProperty
import random
from kivy.animation import Animation
from kivy.vector impo... | [
"noreply@github.com"
] | Aniketthani.noreply@github.com |
cee91f204aa9e2228d918ecb5502764b58f7d261 | 9912570da4f0fc380c3eece7797b8deb5a4240c1 | /colcon_core/topological_order.py | 73d49ac0ed96cfd3cfa8a06bbc31696f2fe91b63 | [
"Apache-2.0"
] | permissive | ruffsl/colcon-core | 2c26aa3d71ed4a1178e0e94e0371d4a13fab9aff | 8dc3d7ec98e36397f349ede03e487da0cad336f4 | refs/heads/master | 2021-06-25T13:10:24.936062 | 2019-10-17T20:44:19 | 2019-10-17T20:44:19 | 215,967,652 | 0 | 0 | Apache-2.0 | 2019-10-18T07:38:14 | 2019-10-18T07:38:12 | null | UTF-8 | Python | false | false | 3,071 | py | # Copyright 2016-2018 Dirk Thomas
# Licensed under the Apache License, Version 2.0
from collections import OrderedDict
import copy
from colcon_core.package_decorator import PackageDecorator
def topological_order_packages(
descriptors, direct_categories=None, recursive_categories=None,
):
"""
Order packa... | [
"dirk-thomas@users.noreply.github.com"
] | dirk-thomas@users.noreply.github.com |
12005d23ef4de33c4530ad05d94c0ad17d294d7d | 6ca3acb227e340edbee80668591e7008cc256b5b | /flask_appbuilder/security/forms.py | 4f908185ef48991a76bb2d12b026c79356b05360 | [
"BSD-3-Clause"
] | permissive | tuxskar/Flask-AppBuilder | 4c69dce5c13f85b930d5b4761945b33ffb231ef7 | 4f65bbbd7edc6e7ca7c5f62a499677565e0662e1 | refs/heads/master | 2021-01-12T21:04:22.702263 | 2014-12-17T00:20:58 | 2014-12-17T00:20:58 | 28,113,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | from wtforms import StringField, BooleanField, PasswordField
from flask.ext.wtf.recaptcha import RecaptchaField
from flask.ext.babelpkg import lazy_gettext
from wtforms.validators import DataRequired, EqualTo, Email
from ..fieldwidgets import BS3PasswordFieldWidget, BS3TextFieldWidget
from ..forms import DynamicForm
fr... | [
"danielvazgaspar@gmail.com"
] | danielvazgaspar@gmail.com |
44a597405bfe6e771c71784c3ec66d5a28942841 | 72d70d86bde200aab004ffe019b84f89f0978fd1 | /postfix_mta_sts_resolver/internal_cache.py | 30607f837ca672c5e3b9b1db6896707d403da275 | [
"MIT"
] | permissive | Kernel-Error/postfix-mta-sts-resolver | 4da8d198e449d4bb6460a19a78a64d1a5783fdf7 | 5d1fba4d45d022bdd419e4a352d8555c4c66a3a3 | refs/heads/master | 2020-05-01T16:58:06.581584 | 2019-03-28T07:19:05 | 2019-03-28T07:19:05 | 177,587,050 | 0 | 0 | MIT | 2019-03-25T12:59:44 | 2019-03-25T12:59:44 | null | UTF-8 | Python | false | false | 612 | py | import collections
class InternalLRUCache(object):
def __init__(self, capacity=10000):
self._capacity = capacity
self._cache = collections.OrderedDict()
async def get(self, key):
try:
value = self._cache.pop(key)
self._cache[key] = value
return valu... | [
"vladislav@vm-0.com"
] | vladislav@vm-0.com |
ac825cfa60bf4b58f7ffaaeb66f3d47eb41b178a | a718de5d51c8d430e791aca6092669c04548fd64 | /Census-Analyser-master/census_analyser/stateCensusAnalyser.py | 65bb4d6c9734650262bd48799052c4630712bd47 | [] | no_license | santoshikalaskar/Basic_Advance_python_program | d0fef4134ed4b14f84ff05a3b37e1773c111a2d1 | 84df5c336d5304c3c727102194ba62417640643a | refs/heads/master | 2023-01-22T15:06:24.909145 | 2020-12-02T14:01:29 | 2020-12-02T14:01:29 | 314,511,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,858 | py | import pandas as pd
from custom_exceptions import (FileIsNotCSVTypeException,
EmptyFileException,
InvalidDelimiterException)
from abc import ABC, abstractmethod
import json
'''
StatusCensusAnalyser class will load StateCensus data
'''
class StateCensusAna... | [
"kalaskars1996@gmail.com"
] | kalaskars1996@gmail.com |
ce93ee342b53ef4659e02efb6bf0f51b77633dac | eb7ef1340440c36a51b155943a3536f6e37fc6da | /codeonline/migrations/0015_auto_20160801_1430.py | b89f90a6231a391b265c768ac5a1db499a9c6628 | [] | no_license | shineforever/codeonlinesystem | 48140d113ba36646c0d91cf7c6e7980a31cc1f41 | d3fd33238b1a0148e3bce86a60e29fedf34b93f1 | refs/heads/master | 2020-06-12T13:09:45.238748 | 2016-09-12T09:36:58 | 2016-09-12T09:36:58 | 75,816,574 | 0 | 1 | null | 2016-12-07T08:42:15 | 2016-12-07T08:42:15 | null | UTF-8 | Python | false | false | 515 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('codeonline', '0014_auto_20160801_1429'),
]
operations = [
migrations.AlterField(
model_name='onlinerequest',
... | [
"zhaobin022@qq.com"
] | zhaobin022@qq.com |
e5948b84b17b5070adb8d26774c3c4ee72d3152a | 5ad9f0e5602c9986c190215c0e5957a35d1a43cb | /venv/Lib/site-packages/nltk/corpus/reader/pl196x.py | 93b8b1983800682bf157e724bbfef42133a5f86c | [
"MIT"
] | permissive | wlsl4239/Tacotron-Wavenet-Vocoder | cef6606a113add0391f467e102b4a6736d94e2fd | afc60aac989f1fed827e9cf8f7df0c0c05c67885 | refs/heads/master | 2020-07-17T10:18:03.653974 | 2019-11-20T12:40:43 | 2019-11-20T12:40:43 | 205,998,408 | 2 | 0 | MIT | 2019-09-03T05:47:35 | 2019-09-03T05:47:35 | null | UTF-8 | Python | false | false | 11,292 | py | # Natural Language Toolkit:
#
# Copyright (C) 2001-2017 NLTK Project
# Author: Piotr Kasprzyk <p.j.kasprzyk@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
from six import string_types
from nltk.corpus.reader.api import *
from nltk.corpus.reader.xmldocs import XMLCorpusReader
PARA = ... | [
"wlsl4239@naver.com"
] | wlsl4239@naver.com |
ec2bd921cea11a71e77592eb7d65b7d23ba058d8 | 0cdcee391e178092d7073734957075c72681f037 | /leetcode/LeetCode-150/Linked-Lists/146-LRU-Cache.py | 6b25ffca12654a902b028bc202ab82000ff7cde2 | [] | no_license | hrishikeshtak/Coding_Practises_Solutions | 6b483bbf19d5365e18f4ea1134aa633ff347a1c1 | 86875d7436a78420591a60b716acd2780287b4a8 | refs/heads/master | 2022-10-06T18:44:56.992451 | 2022-09-25T03:29:03 | 2022-09-25T03:29:03 | 125,744,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | """
146. LRU Cache
"""
class DLLNode:
def __init__(self, key, val):
self.key = key
self.val = val
self.prev = self.next = None
class LRUCache:
def __init__(self, capacity: int):
self.cache = {}
self.capacity = capacity
self.left, self.right = DLLNode(0, 0), D... | [
"hrishikesh.tak@ness.com"
] | hrishikesh.tak@ness.com |
09155e31de77f9be942b8e3ed3e5fe489bea2798 | 0deefdcfc6219f20fa1ff9ff8d766baa30af993a | /smappdragon/tools/tweet_cleaner.py | 5e4ae3993517fd74494508526ab58fe179285b3b | [
"MIT"
] | permissive | yinleon/smappdragon | c743af04ff9b46ef1221ca1b7824c4cc6fd00a24 | 691cb66f26543e47293f38cf5658c4172d676013 | refs/heads/master | 2021-01-19T04:14:57.897437 | 2017-03-29T20:17:58 | 2017-03-29T20:17:58 | 87,361,256 | 1 | 0 | null | 2017-04-05T22:14:05 | 2017-04-05T22:14:05 | null | UTF-8 | Python | false | false | 1,774 | py | import os
import csv
import glob
import bson
import json
def clean_tweets(input_file_path, output_file_path, error_file_path):
json_handle = open(input_file_path, 'r', encoding='utf-8')
with open(output_file_path, 'w', encoding='utf-8') as fo:
with open(error_file_path, 'w', encoding='utf-8') as f:
... | [
"yvanscher@gmail.com"
] | yvanscher@gmail.com |
c6ae54111ef04b17b81e9f854d4bd1972e7d553a | 74f5a4630c708e71224af55bb3eb11a503014f6f | /test01/wifi.py | 03924499a81ca6e6519bb39a0059234054c32e4c | [] | no_license | msgpo/lopy_tests | e6bbc3c77d701a7303567e5c53856e9e04615b2b | 513178b01422e46cab3cc5f39b4c65d1e5f5a408 | refs/heads/master | 2021-06-12T23:07:26.697394 | 2017-02-13T16:05:32 | 2017-02-13T16:05:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | # Wifi Configuration
#
import machine
from network import WLAN
import time
_wlan = WLAN(mode=WLAN.STA)
# connect to wifi
def connect():
global wifi_config, _wlan
nets = _wlan.scan()
for net in nets:
if net.ssid == wifi_config.name:
print('Wifi: network %s found.' % net.ssid)
... | [
"devel@mail.ulno.net"
] | devel@mail.ulno.net |
f0277cc63056e502ced1d713fdc7bbe567df39d1 | 2157782cf5875767f8d1fe0bb07243da2e87600d | /test_from_myself/djangoTest/Testsite/Testsite/settings.py | fbac8fa33d4eb59c9d67cff359e472346d15d4b0 | [] | no_license | mouday/SomeCodeForPython | 9bc79e40ed9ed851ac11ff6144ea080020e01fcd | ddf6bbd8a5bd78f90437ffa718ab7f17faf3c34b | refs/heads/master | 2021-05-09T22:24:47.394175 | 2018-05-11T15:34:22 | 2018-05-11T15:34:22 | 118,750,143 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | """
Django settings for Testsite project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
import os
# ... | [
"1940607002@qq.com"
] | 1940607002@qq.com |
261d930a3beec9c0e30f08186acacbe12e3b86f9 | 22f5818e99c3593dc1c405a155ea6d7aa0c765a1 | /backend/home/migrations/0002_load_initial_data.py | c6809ed748daf29a7b5fb9d036d76db99016723e | [] | no_license | crowdbotics-apps/new-expo-app-dev-8468 | 2ecc8f7824505ab68ae538eb07aeb1969c7a206a | d249a27a9db5b32efb5111bd2a96d31bc54b6ac3 | refs/heads/master | 2022-11-28T01:23:00.770574 | 2020-08-04T16:56:17 | 2020-08-04T16:56:17 | 285,042,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "New expo app"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c58fe73f582a1e2ec908eb34aa02357ebd5bb5c3 | acff427a36d6340486ff747ae9e52f05a4b027f2 | /main/x11/misc/xdm/actions.py | 02b788d616e653a2c5eb2ed167bd24162614505b | [] | no_license | jeremie1112/pisilinux | 8f5a03212de0c1b2453132dd879d8c1556bb4ff7 | d0643b537d78208174a4eeb5effeb9cb63c2ef4f | refs/heads/master | 2020-03-31T10:12:21.253540 | 2018-10-08T18:53:50 | 2018-10-08T18:53:50 | 152,126,584 | 2 | 1 | null | 2018-10-08T18:24:17 | 2018-10-08T18:24:17 | null | UTF-8 | Python | false | false | 1,282 | py | # -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.autoreconf("-vif")
autotools.configure("... | [
"erkanisik@yahoo.com"
] | erkanisik@yahoo.com |
6b9b1ca6b331ddb6677f82ecb8c974dfb1bc9620 | 974dc8113a265ebe0d54b818333be78f000d293f | /google-api-client-generator/src/googleapis/codegen/import_definition.py | 03b506f51f213eaaa0605a157fef431809c0d777 | [
"Apache-2.0"
] | permissive | googleapis/discovery-artifact-manager | 9e0948600ec4c2f05a889d7f157c1eaec12ea6b4 | 19f268e0b7935ea3d87d0d124c7791efb5a78646 | refs/heads/master | 2023-08-30T02:49:49.476556 | 2023-08-29T18:24:14 | 2023-08-29T18:24:14 | 72,768,841 | 43 | 53 | Apache-2.0 | 2023-09-14T21:56:14 | 2016-11-03T17:17:02 | Java | UTF-8 | Python | false | false | 921 | py | #!/usr/bin/python2.7
# Copyright 2011 Google Inc. All Rights Reserved.
"""Contains information necessary to define an import."""
__author__ = 'rmistry@google.com (Ravi Mistry)'
class ImportDefinition(object):
"""Contains all required information about an import.
Intended for use in the type_format_to_datatype... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
5fee350412b5d59a8441bdc2cc29a017d518de6b | 9657d72ca77081e699c472241f4d565e03cda32e | /fable/fable_sources/libtbx/command_line/sge_available_slots.py | 5354cace06085aee47e03bc6afadc19bbbb26a54 | [
"BSD-3-Clause-LBNL",
"MIT"
] | permissive | hickerson/bbn | b37a4a64a004982dd219a3bd92e519b62f4ea2b3 | 17ef63ad1717553ab2abb50592f8de79228c8523 | refs/heads/master | 2021-01-17T09:50:23.863448 | 2018-08-12T19:04:58 | 2018-08-12T19:04:58 | 20,693,028 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from __future__ import division
def run(args):
assert len(args) == 0
from libtbx import easy_run
qstat_buffer = easy_run.fully_buffered(command="qstat -g c")
el = qstat_buffer.stderr_lines
ol = qstat_buffer.stdout_lines
if (len(el) != 0):
print -1
elif (len(ol) < 3):
print -2
elif ( " ".join(o... | [
"hickerson@gmail.com"
] | hickerson@gmail.com |
225125f179e96196d2131b86cc89a97751d4cf96 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02848/s598772866.py | 282413bef5247516e1db318c8edad90021b349bc | [] | 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 | 233 | py | N = int(input())
S = input()
chars = "abcdefghijklmnopqrstuvwxyz" + "abcdefghijklmnopqrstuvwxyz"
chars = chars.upper()
dic = {chars[i]: chars[i+N] for i in range(26)}
ans = ""
for i in range(len(S)):
ans += dic[S[i]]
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c7530d80f8eab8e9d0c69ff3835ccebf526d4d34 | 5bab92faf12fe329b78743b877f0c154da6b0498 | /aula_1/ex_5.py | 4090c1a596e7660bab8bf3d2918b0d041410ca89 | [] | no_license | elrrocha/python-521 | 943bd4ab23c7bb4bae2e9653085c93bf43b73256 | 8837e5f911bb8b0e389bb45f5d1684e23648aebe | refs/heads/master | 2020-06-27T22:28:01.979671 | 2019-08-01T20:15:20 | 2019-08-01T20:15:20 | 200,068,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | import requests
DOMAIN_URL = 'https://gen-net.herokuapp.com/api/users/{}'
response = requests.put(DOMAIN_URL)
user_id = input ('Digite seu id: ')
name = input('Digite seu nome: ')
email = input('Digite seu email: ')
password = ('Digite sua senha: ')
payload = {
'name': name,
'email': email,
'password': password... | [
"leonardo.mendes@4linux.com.br"
] | leonardo.mendes@4linux.com.br |
5343e91b21a1d17b86b3d2134e35ceb2a8c7d7b9 | fb63c25920d15f9b48b8e9e604ffbbde99a7aeae | /svmrfe/run_sgdrfe.py | c60a611d3bd8fcb5299bfd8e0ea8fa28aa157d0c | [] | no_license | kellyhennigan/cueexp_scripts | 763385c96772867a4875c734732bb32a3b051d1c | 7264b0033a9cc83cc362c96cd04d94706728c994 | refs/heads/master | 2023-07-21T20:35:11.607859 | 2022-01-10T20:18:12 | 2022-01-10T20:18:12 | 55,538,490 | 1 | 1 | null | 2023-07-06T21:16:20 | 2016-04-05T19:17:21 | Python | UTF-8 | Python | false | false | 2,453 | py | """
Script to run svmrfe on a given subject with a number of different parameters.
usage: python run_sgdrfe.py [test subject id]
"""
import os
import sys
from sgdrfe import SGDRFE
######################### USER PARAMS #################################
SUBJECT_BASE_PATH = '/scratch/PI/knutson/cuesvm/' #where we find s... | [
"kelhennigan@gmail.com"
] | kelhennigan@gmail.com |
15c33705404a528dcb3a06706e16d33f5ccdb127 | bcd8f5a7352a1e0b2e1a83fea9ae2e4182eda805 | /algobook/Py2Adt/src/ch6/ListNode3.py | 40ee447a973587684ac20f5f8322cc147d3772f7 | [] | no_license | JediChou/jedichou-study-algo | 455c7709250d424cad1b326efd99f0be7a000edc | 4f0ce79556d7543870dfc13399c7ae85ba773508 | refs/heads/master | 2020-06-24T23:21:34.310122 | 2020-04-01T05:53:33 | 2020-04-01T05:53:33 | 199,122,658 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | class ListNode:
def __init__(self, data):
self.data = data
self.next = None
def iterateSingleList(node):
print(node.data)
if node.next is not None:
iterateSingleList(node.next)
if __name__ == "__main__":
# Define node.
n1 = ListNode(78)
n2 = ListNode(83)
... | [
"jedigit@163.com"
] | jedigit@163.com |
5c001144063e44c44a0ae582a3ef5dbdb61e2310 | e7451193592aaee2536924ef03846eee920bcf94 | /ucscentralsdk/mometa/adaptor/AdaptorExtEthIf.py | f181ffcfab71227b2d09021e80eeb700cd7c4952 | [
"Apache-2.0"
] | permissive | vinayravish/ucscentralsdk | eb33191f3c7675561298af8cef9b30f6e220b7b2 | 809a3782d26c69f50cf7237700e107f1a9857870 | refs/heads/master | 2021-01-18T01:51:57.275207 | 2016-07-20T05:37:26 | 2016-07-20T05:37:26 | 62,137,219 | 0 | 0 | null | 2016-06-28T12:00:34 | 2016-06-28T12:00:34 | null | UTF-8 | Python | false | false | 11,680 | py | """This module contains the general information for AdaptorExtEthIf ManagedObject."""
from ...ucscentralmo import ManagedObject
from ...ucscentralcoremeta import UcsCentralVersion, MoPropertyMeta, MoMeta
from ...ucscentralmeta import VersionMeta
class AdaptorExtEthIfConsts():
CHASSIS_ID_N_A = "N/A"
DISCOVERY... | [
"vinay.ravish@gmail.com"
] | vinay.ravish@gmail.com |
c91fa793eaaf0fd3f563d34be77f1ff4359be204 | fd4510e0bf959de7527bd0c62d3b4fb3f78cee5e | /detection/CD1/std.py | 3be0d5c0f1b57f11db53818081eabe2ad0add0f4 | [] | no_license | RuoAndo/nii-cyber-security-admin | 8dde8ab68b0f7fa882adbe8e828546aa1739e685 | e77b9d581e124f9fd5f721e18cd77d3bccecad19 | refs/heads/master | 2022-12-13T21:40:46.330389 | 2022-12-07T14:01:00 | 2022-12-07T14:01:00 | 71,614,880 | 5 | 1 | null | 2020-10-13T08:40:46 | 2016-10-22T03:41:30 | Python | UTF-8 | Python | false | false | 897 | py | import numpy as np
import sys
argvs = sys.argv
argc = len(argvs)
f = open(argvs[3])
line = f.readline()
instid = []
instname = []
while line:
tmp = line.split("\t")
instid.append(tmp[0])
instname.append(tmp[1])
line = f.readline()
f.close()
f = open(argvs[1])
line = f.readline()
l = np.arr... | [
"ando.ruo@gmail.com"
] | ando.ruo@gmail.com |
c30fa16878570e0c12a069b540ddadb291b6b66a | 3012e5a0f34dd54fbac568c70506826973192ce1 | /pylib/points.py | 23464ed8064625df58f47a9559f4b6586991896f | [] | no_license | metatab-packages/civicknowledge.com-osm-demosearch | 89999227bda7bae91259c10bd651f220ae35c52f | d4ecb7775662a50413c848c3ae5a901b147ef532 | refs/heads/master | 2023-05-14T12:39:25.328559 | 2021-06-08T13:52:39 | 2021-06-08T13:52:39 | 334,572,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,987 | py | """
"""
from itertools import chain
import geopandas as gpd
import libgeohash as gh
import numpy as np
import pandas as pd
import shapely
from shapely.geometry import Point
from shapely.wkt import loads as loads_wkt
from tqdm import tqdm
tqdm.pandas()
from pathlib import Path
from demosearch.util import run_mp
from ... | [
"eric@civicknowledge.com"
] | eric@civicknowledge.com |
613776148909d6748ac5dcc5401258ee19f74b31 | 4519b4b24f3907da1dde513f72d432fd9b4391f4 | /crds/jwst/specs/niriss_gain.spec | 00ecc62e7c0cb6112bf6dbeadffff39454d1d588 | [
"BSD-2-Clause"
] | permissive | spacetelescope/crds | 0bd712b7c7c6864c274987e7ba94a051e19d1e48 | 08da10721c0e979877dc9579b4092c79f4ceee27 | refs/heads/master | 2023-07-23T17:07:33.889579 | 2023-06-29T20:04:56 | 2023-06-29T20:04:56 | 52,045,957 | 9 | 29 | NOASSERTION | 2023-09-14T17:42:28 | 2016-02-18T23:15:38 | Python | UTF-8 | Python | false | false | 468 | spec | {
'derived_from' : 'cloning tool 0.05b (2013-04-12) used on 2013-10-04',
'file_ext' : '.fits',
'filekind' : 'GAIN',
'filetype' : 'GAIN',
'instrument' : 'NIRISS',
'mapping' : 'REFERENCE',
'name' : 'jwst_niriss_gain_0000.rmap',
'observatory' : 'JWST',
'parkey' : (('META.INSTRUMENT.DETE... | [
"jmiller@stsci.edu@stsci.edu"
] | jmiller@stsci.edu@stsci.edu |
a150e33292f2b4df7313dc18e92ceae92ca16a81 | 803bab6f782099d995bcdb99d163486f4fff8c50 | /habitat-lab/habitat/sims/habitat_simulator/actions.py | 6252636c3399b2da8795019b46dbe220986fa63d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-NC-SA-3.0"
] | permissive | facebookresearch/habitat-lab | 7088506509f64da6d682f5dc69427589f71a58a9 | f5b29e62df0788d70ba3618fc738fa4e947428ba | refs/heads/main | 2023-08-24T14:00:02.707343 | 2023-08-23T04:53:48 | 2023-08-23T04:53:48 | 169,164,391 | 792 | 298 | MIT | 2023-09-14T15:20:03 | 2019-02-04T23:12:51 | Python | UTF-8 | Python | false | false | 2,517 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from enum import Enum
from typing import Dict
import attr
from habitat.core.utils import Singleton
class _Defa... | [
"noreply@github.com"
] | facebookresearch.noreply@github.com |
90bee35d3c81017c7b8558351920c8d208c8605e | ed843fd5c2f6693e3ee682cf579e49dbd9957375 | /savu/test/data_test.py | dd5a1001c6042ce98a794f9095a4d42a5158e006 | [
"CC-BY-2.0",
"Apache-2.0"
] | permissive | mjn19172/Savu | 98707cd0f89b1b6626341b67211f7890d969ac97 | b9b456928387eaf81d4d0f314394f6d337bbb90b | refs/heads/master | 2020-12-30T22:56:49.605584 | 2015-09-18T12:32:07 | 2015-09-18T12:32:07 | 36,367,826 | 0 | 0 | null | 2015-09-18T12:32:08 | 2015-05-27T13:16:27 | Python | UTF-8 | Python | false | false | 1,284 | py | # Copyright 2014 Diamond Light Source Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | [
"mark.basham@diamond.ac.uk"
] | mark.basham@diamond.ac.uk |
c35da0bd6fcac14b0c3221c0d46ff93bb1b5cb86 | c7262339c9436af9e71f9a9beb3408d92016d04c | /CVServer/basic_view.py | 47bb4e4248a0cf4279f1256a08171ec062db6030 | [] | no_license | Zachary4biz/dm_server | 3edbe8ee2072c53dabfb36036565fd9b700ff926 | 8172fae7ae8c5146bb7bbe61defefdabc34f256c | refs/heads/master | 2022-08-23T07:46:51.363195 | 2020-05-25T04:01:10 | 2020-05-25T04:01:10 | 195,803,576 | 2 | 1 | null | 2022-06-21T23:03:40 | 2019-07-08T12:02:43 | Python | UTF-8 | Python | false | false | 788 | py | # encoding=utf-8
from django.http import HttpResponse
# 返回渲染过的html页面
from django.shortcuts import render
outside_value="abc"
def hello(request):
context = {}
context['param1'] = outside_value
context['section'] = request.GET['section'] if 'section' in request.GET else ''
return render(request, 'basic_view.html... | [
"zhoutong@apusapps.com"
] | zhoutong@apusapps.com |
9ef8b78b6ef1f97f7c36da6e1bf048580bb6b4ee | 28def0cefc61b38723a393ea76610e7a3fbc27c0 | /LipSDP/examples/mnist_example.py | 5179207e908a8e2c9bf11ee432fb85f414d3a6de | [
"MIT"
] | permissive | arobey1/LipSDP | 1d9d1645cf9b11680113a65979669e0fd90a15b3 | bf01cafe97195330f4eb516d7b3a57247b31c5b3 | refs/heads/master | 2022-03-16T06:54:46.580493 | 2022-03-07T15:44:14 | 2022-03-07T15:44:14 | 217,307,826 | 49 | 16 | MIT | 2019-12-22T04:21:15 | 2019-10-24T13:36:41 | MATLAB | UTF-8 | Python | false | false | 5,145 | py | import torch
import torch.nn as nn
from torchvision import datasets, transforms
import torch.optim as optim
from torchsummary import summary
from MNIST_Net import Network
from scipy.io import savemat
import numpy as np
import os
INPUT_SIZE = 784
OUTPUT_SIZE = 10
BATCH_SIZE = 100
NUM_EPOCHS = 10
LEARNING_RATE = 1e-3
d... | [
"arobey1@seas.upenn.edu"
] | arobey1@seas.upenn.edu |
3100f7b08481605f1da12a5cf74588aab159e40a | 39a1d46fdf2acb22759774a027a09aa9d10103ba | /inference-engine/ie_bridges/python/sample/speech_sample/speech_sample.py | 8019746d177088fb0f9f28648903084a40a78d39 | [
"Apache-2.0"
] | permissive | mashoujiang/openvino | 32c9c325ffe44f93a15e87305affd6099d40f3bc | bc3642538190a622265560be6d88096a18d8a842 | refs/heads/master | 2023-07-28T19:39:36.803623 | 2021-07-16T15:55:05 | 2021-07-16T15:55:05 | 355,786,209 | 1 | 3 | Apache-2.0 | 2021-06-30T01:32:47 | 2021-04-08T06:22:16 | C++ | UTF-8 | Python | false | false | 10,128 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import logging as log
import re
import sys
from timeit import default_timer
import numpy as np
from arg_parser import parse_args
from file_options import read_utterance_file, write_utterance... | [
"noreply@github.com"
] | mashoujiang.noreply@github.com |
aa24bd9aa8388674cc963220cfe43d39a2a3bb60 | d78ed7a8a1eef3e386d0ac88b9a96647d004e540 | /pitchmyob/apps/candidacy/api/serializers.py | cbe8d5b1d97c309abb62bf5ff81cdc1beee77930 | [] | no_license | yannistannier/django-pitchmyjob | d4cdcb39da72c28dc2867af4e3271a5d44fcf053 | 7b78feac01bb4b8b2ad8da8e82323f22fba478c4 | refs/heads/master | 2021-05-09T01:48:29.967322 | 2018-01-27T17:36:44 | 2018-01-27T17:36:44 | 119,186,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,142 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from rest_framework import serializers
from django.utils import timezone
from django.utils.translation import ugettext as _
from apps.applicant.api.serializers import ApplicantFullSerializer
from apps.authentication.api.serializers impo... | [
"tannier.yannis@gmail.com"
] | tannier.yannis@gmail.com |
783268fec98dfa0e163bb100237680e80bc7922d | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/exp-big-1129.py | a58276df6085978dee05b5aa8fd7af4fdbd39de1 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | py | # Compute x**y
def exp(x: int, y: int) -> int:
a: int = 0
a2: int = 0
a3: int = 0
a4: int = 0
a5: int = 0
def f(i: int) -> int:
nonlocal a
nonlocal a2
nonlocal a3
nonlocal a4
nonlocal a5
def geta() -> int:
return a
if i <= 0:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
34cab7fee83819bf804417cf82f7a6de1598ece0 | 0141361f7c4d276f471ac278580479fa15bc4296 | /Stack/nextGreaterElement.py | 984c8067d73140262d8e6272db8305856be9046a | [] | no_license | tr1503/LeetCode | a7f2f1801c9424aa96d3cde497290ac1f7992f58 | 6d361cad2821248350f1d8432fdfef86895ca281 | refs/heads/master | 2021-06-24T19:03:08.681432 | 2020-10-09T23:53:22 | 2020-10-09T23:53:22 | 146,689,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | class Solution:
def nextGreaterElement(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: List[int]
"""
res = []
stack = []
m = {}
for num in nums2:
while len(stack) != 0 and stack[-1] < num:
... | [
"noreply@github.com"
] | tr1503.noreply@github.com |
32c6be63566f504b8b09cc046016f6ba660d6254 | 1790d681f7d40e37e0173ff7dff241eaadc28d8c | /quokka/core/__init__.py | 84b2307ee25d41a554c8f210337c38d2fa1420cd | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mysky528/quokka | 97e88b24799e1e4696210ee1ac841535341dca7a | d2c3c169f6b78cace154274747297f8e1dc56825 | refs/heads/development | 2023-05-26T17:14:02.348809 | 2017-02-07T15:43:00 | 2017-02-07T15:43:00 | 82,263,205 | 0 | 0 | NOASSERTION | 2023-05-24T02:47:10 | 2017-02-17T06:05:42 | Python | UTF-8 | Python | false | false | 127 | py | # -*- coding: utf-8 -*-
TEXT_FORMATS = (
("html", "html"),
("markdown", "markdown"),
("plaintext", "plaintext")
)
| [
"rochacbruno@gmail.com"
] | rochacbruno@gmail.com |
b9ecce42b1202cc56ef15d028af8b46a2235c8d4 | 28badfbfa1e1325ffb9da62e92e0b524e747f8e1 | /1678. Goal Parser Interpretation/1678.py | e581adf94fa949417a99e5c3b317f360b14b2f86 | [] | no_license | saransappa/My-leetcode-solutions | b53fab3fc9bcd96ac0bc4bb03eb916820d17584c | 3c5c7a813489877021109b152b190456cdc34de6 | refs/heads/master | 2021-08-16T13:52:33.230832 | 2021-07-30T11:54:06 | 2021-07-30T11:54:06 | 217,449,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | class Solution:
def interpret(self, command: str) -> str:
s = command
s = s.replace("()",'o')
s = s.replace("(al)","al")
return s | [
"saran.sappa@gmail.com"
] | saran.sappa@gmail.com |
7d30204d076af405d7b2c34ac0d756fd412717e6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04019/s057711170.py | ebbfa57436c2dfdd2cd7a6c08d43fac7bb08cc94 | [] | 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 | 107 | py | s = input();
st = set(s)
print("Yes" if st == set("WE") or st == set("NS") or st == set("SENW") else "No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e2a0f865427c8f0fdbd23b1ba4230258a10d1af1 | 376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb | /graphics/py-ggplot/patches/patch-ggplot_utils.py | b76148150a1804a15c7f31595981c388dcbc5a11 | [] | no_license | NetBSD/pkgsrc | a0732c023519650ef821ab89c23ab6ab59e25bdb | d042034ec4896cc5b47ed6f2e5b8802d9bc5c556 | refs/heads/trunk | 2023-09-01T07:40:12.138283 | 2023-09-01T05:25:19 | 2023-09-01T05:25:19 | 88,439,572 | 321 | 138 | null | 2023-07-12T22:34:14 | 2017-04-16T20:04:15 | null | UTF-8 | Python | false | false | 357 | py | $NetBSD: patch-ggplot_utils.py,v 1.1 2019/06/17 20:27:16 adam Exp $
Fix for newer Pandas.
--- ggplot/utils.py.orig 2019-06-17 20:04:20.000000000 +0000
+++ ggplot/utils.py
@@ -78,7 +78,7 @@ def is_iterable(obj):
return False
date_types = (
- pd.tslib.Timestamp,
+ pd.Timestamp,
pd.DatetimeIndex,
... | [
"adam@pkgsrc.org"
] | adam@pkgsrc.org |
d3011297ed94f18b0fae79b598ac857fbfc0a18b | 0c2a1211cd4a0e104d9345d6524bd58f6d778d1d | /creer/validate.py | 8d8917c3e5c5791b241e6a4d9567dd64705b2962 | [
"MIT"
] | permissive | siggame/Creer | 91bc3d70d894fe1e46e1337b83a45d397f3336fe | ca52dd4082b3447a0e128ff3c0434b58cf9ef144 | refs/heads/master | 2022-03-17T06:26:15.515254 | 2022-02-23T01:52:16 | 2022-02-23T01:52:16 | 32,945,795 | 0 | 3 | MIT | 2020-10-17T16:46:46 | 2015-03-26T18:48:28 | Python | UTF-8 | Python | false | false | 8,700 | py | # this validates a prototype to ensure none of the data/types/setup will screw with an output template
# basically, this validates Creer input data after it has been parsed
import re
_primitives = [
'string',
'boolean',
'int',
'float',
'list',
'dictionary'
]
_dangerous_names = [
'true',
... | [
"jacob.t.fischer@gmail.com"
] | jacob.t.fischer@gmail.com |
4cf9668b29f56dbff467585ac5b1cf3e5e6c1448 | 3a055205aa06db55ed1bf508f74b606ec5760e6e | /books/introducing-python-master/dev/style1.py | 1361f86cdaa58b6b367fbe797a924672477dcff9 | [] | no_license | OpRay/NCHC_PythonReading | 5561701afdd391e868b1d84ca4486ad387908c60 | 3e6ff5d654e13febdee8a9450ba45546903f2f53 | refs/heads/master | 2021-01-18T21:38:55.936413 | 2016-06-14T13:16:26 | 2016-06-14T13:16:26 | 54,468,540 | 1 | 2 | null | 2019-08-04T13:33:23 | 2016-03-22T11:07:38 | Python | UTF-8 | Python | false | false | 39 | py | a = 1
b = 2
print(a)
print(b)
print(c)
| [
"sakana@cycu.org.tw"
] | sakana@cycu.org.tw |
a1d79cca2c5104fb9206731a66b2537a7d285f19 | b92c39c8498e0c6579a65430e63b7db927d01aea | /python/zookeeper/t.py | 8e6891b9cc06ac9523ab041255547bfa5f4cfd5d | [] | no_license | szqh97/test | 6ac15ad54f6d36e1d0efd50cbef3b622d374bb29 | ba76c6ad082e2763554bdce3f1b33fea150865dc | refs/heads/master | 2020-04-06T05:40:55.776424 | 2019-01-14T06:37:38 | 2019-01-14T06:37:38 | 14,772,703 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!/usr/bin/env python
import os
import logging
import sys
log = logging.getLogger('test-log')
formatter = logging.Formatter('%(threadName)s %(asctime)s %(name)-15s %(levelname)-8s: %(message)s\n')
file_handler = logging.FileHandler('test.log')
file_handler.setFormatter(formatter)
stream_handler = logging.StreamHandler(... | [
"szqh97@163.com"
] | szqh97@163.com |
1cd5da762984aa9eec883c2279dafda8f823ba8d | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2N/2N-3FN_MD_NVT_rerun/set.py | f0fb68d8e34600e77687fd0bb497d33d7acb1086 | [] | 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 | 1,084 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2N/MD/ti_one-step/2N_3FN/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_prodin = filesdir + 'temp_prod.in'
temp_pbs = filesdir + 'temp.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.9... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
07b00fdfdd9a5990d21bb541c473a757afb40f7e | 1816378da612c7db376934b033e4fd64951338b6 | /gui/services/migrations/0034_auto__add_unique_iscsitargetextent_iscsi_target_extent_name.py | 1a5c794031463cb1ff768dfb5eeb60e9e5afdba3 | [] | no_license | quater/freenas-9.2-xen | 46517a7a23546764347d3c91108c70a8bd648ec6 | 96e580055fa97575f0a0cb23a72495860467bcfb | refs/heads/master | 2021-01-16T22:21:38.781962 | 2014-02-07T05:59:13 | 2014-02-07T05:59:13 | 16,609,785 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,215 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
for d in orm.iSCSITargetExtent.objects.all():
name = d.iscsi_target_extent_name
while True:
... | [
"william88@gmail.com"
] | william88@gmail.com |
d34fbe1e3e13aba5af7f4311621eadacb0303484 | 92b3ade5b69889b806f37c440ff7bbe9ad1e9ca9 | /mysite/project/apps/delete_app/apps.py | 98a79918bf2a624ba19a7809a99856fa1bfea326 | [] | no_license | BorisovDima/WebProject | 4b468ed07555140890165954710185612d629ec9 | e84e5e5d83028412bdfb8cb93c8ec0fde5c54980 | refs/heads/master | 2022-12-10T17:17:56.159721 | 2019-02-22T02:42:53 | 2019-02-22T02:42:53 | 160,443,451 | 0 | 0 | null | 2022-11-22T03:08:53 | 2018-12-05T01:43:46 | Python | UTF-8 | Python | false | false | 94 | py | from django.apps import AppConfig
class DeleteAppConfig(AppConfig):
name = 'delete_app'
| [
"you@example.com"
] | you@example.com |
adb5db04bf882b17a899d77604e756bf0d9d820e | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_206/run_cfg.py | b9f6e4a67763432bc61a0361d65f5f9d9897e0c4 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
e5ef76fee0173c91abd8ae221d0dbccf96b57853 | 5608a9cd3bec8cab1c3f9d7f42896107b78593cc | /tests/unit/cfngin/hooks/test_iam.py | 1a5cfdf027e579f17585b5d71d8e6463801586c8 | [
"Apache-2.0"
] | permissive | troyready/runway | cdee6d94f42173c8aa0bd414620b68be36a510aa | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | refs/heads/master | 2021-06-18T16:05:30.712211 | 2021-01-14T01:44:32 | 2021-01-14T01:44:32 | 151,314,626 | 0 | 0 | Apache-2.0 | 2018-10-02T19:55:09 | 2018-10-02T19:55:08 | null | UTF-8 | Python | false | false | 2,784 | py | """Tests for runway.cfngin.hooks.iam."""
import unittest
import boto3
from awacs.helpers.trust import get_ecs_assumerole_policy
from botocore.exceptions import ClientError
from moto import mock_iam
from runway.cfngin.hooks.iam import _get_cert_arn_from_response, create_ecs_service_role
from ..factories import mock_c... | [
"noreply@github.com"
] | troyready.noreply@github.com |
197d3c7c153009b1ecc3a674cd4dd32cc4606a41 | c4702d1a06640555829b367852138cc93ba4a161 | /dym_proses_stnk/models/dym_birojasa_withholding_tax.py | 01e3f2c50be8ac2b5ed67a4ef92c69f5da9b1cfa | [] | no_license | Rizalimami/dym | 0ecadf9c049b22ebfebf92e4eab6eaad17dd3e26 | af1bcf7b77a3212bc8a8a0e41e6042a134587ed4 | refs/heads/master | 2020-04-08T10:56:43.605698 | 2018-11-27T06:44:08 | 2018-11-27T06:44:08 | 159,287,876 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 16,652 | py | # -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in module root
# directory
##############################################################################
from openerp import models, fields, api, _
import ... | [
"rizal@portcities.net"
] | rizal@portcities.net |
29e29394f428b36553cae90bdd87ff1634203acf | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/numexpr-2.6.1-np111py27_nomkl_0/lib/python2.7/site-packages/numexpr/version.py | 489f86851cdbbbb05f7542c3461194c22d116ca2 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 366 | py | ###################################################################
# Numexpr - Fast numerical array expression evaluator for NumPy.
#
# License: MIT
# Author: See AUTHORS.txt
#
# See LICENSE.txt and LICENSES/*.txt for details about copyright and
# rights to use.
##########################################... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
2d2d2b7570f4b96dd7bebf921993bfae435fa0e2 | b1d1797241a12fb318c0f841fceebece4e34078b | /{{cookiecutter.project_slug}}/src/{{cookiecutter.package_name}}/application_config.py | b7f5033eacd9881a72f8b9712e4aaac0cb2767e7 | [
"MIT"
] | permissive | ITISFoundation/cookiecutter-simcore-pyservice | 407a3012a20787bf48b0360498c8c45e5b8425d0 | 8e7cb6729f3ec663b6715cca54396075f1e4593e | refs/heads/master | 2022-08-24T04:50:58.561916 | 2022-06-10T14:28:53 | 2022-06-10T14:28:53 | 151,701,223 | 0 | 3 | MIT | 2022-06-10T14:29:52 | 2018-10-05T09:52:29 | Python | UTF-8 | Python | false | false | 2,089 | py | """ app's configuration
This module loads the schema defined by every subsystem and injects it in the
application's configuration scheams
It was designed in a similar fashion to the setup protocol of the application
where every subsystem is imported and queried in a specific order. The application
... | [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
2dad42052ebb90a57b78dfa90f03fb1439d28cc0 | 7427e92cc5205276a1f4b7d6244b67fc8b31a976 | /reverseInParentheses.py | 74eb9eb7934a9289f6b2c8a924171b95d9b34192 | [] | no_license | newfull5/CodeSignal | 1d10837d33fa4126d6a59b76ee2b99b003043887 | ad24711a30b3ccd252247d0eee6cf4a0b4d96e1e | refs/heads/master | 2021-07-09T09:37:19.648588 | 2020-12-03T07:25:55 | 2020-12-03T07:25:55 | 216,835,128 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | def reverseInParentheses(inputString):
if inputString[0] == '(' or inputString[-1]:
return inputString[1:len(inputString)-1][::-1]
left = ''
right = ''
center = ''
answer = ''
centence = ''
for i in range(0, len(inputString)):
if inputString[i] == '(':
... | [
"noreply@github.com"
] | newfull5.noreply@github.com |
61812c0f57e61aa84dc418b44729db8b264f680a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /uWW8cZymSkrREdDpQ_16.py | 95cfdd8b10b76c690ed082e36332618b4dcb9bf5 | [] | 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 | 377 | py |
def sums_up(lst):
FinalPairList = list()
tmpList = list()
for num in lst:
for i in tmpList:
if (i+num) == 8:
pair= []
if i<num:
pair.append(i)
pair.append(num)
else:
pair.append(num)
pair.append(i)
FinalPairList.append(pair)
t... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c7bc4f565ecd5059b7f2fbd110ed1c6137e32f9c | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_21520.py | 0c9970195ee6b358af5254485788d837a1dbd2a5 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | # jquery script on html file
<script type="text/javascript" src="/<script_path_here>"></script>
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
a862eb31048836e74bd11de782ff4427ad37637a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_092/ch70_2020_03_06_12_02_03_238346.py | 21ba0a3f5a97399809400d3fb07358fc813278a8 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | def esconde_senha(n):
b = int(n)
return n*'*' | [
"you@example.com"
] | you@example.com |
fc0e88abd089496570a23940186a2fd152baac22 | 82be39549f5d90b1ca1bb65407ae7695e1686ed8 | /code_challenges/147/hundred_days.py | fa433e7ef84669a91dd1d805173af3281a0475b4 | [] | no_license | dcribb19/bitesofpy | 827adc9a8984d01c0580f1c03855c939f286507f | a1eb0a5553e50e88d3568a36b275138d84d9fb46 | refs/heads/master | 2023-03-02T02:04:46.865409 | 2021-02-12T01:20:30 | 2021-02-12T01:20:30 | 259,764,008 | 1 | 0 | null | 2020-10-06T13:48:16 | 2020-04-28T22:16:38 | HTML | UTF-8 | Python | false | false | 484 | py | from datetime import date
from dateutil.rrule import rrule, DAILY, MO, TU, WE, TH, FR
TODAY = date(year=2018, month=11, day=29)
def get_hundred_weekdays(start_date=TODAY):
"""Return a list of hundred date objects starting from
start_date up till 100 weekdays later, so +100 days
skipping Saturdays ... | [
"daniel.cribb.10@gmail.com"
] | daniel.cribb.10@gmail.com |
36c01f762c49f4403f32c7ef8c027910a90c7932 | 2e927b6e4fbb4347f1753f80e9d43c7d01b9cba5 | /Section 30 - File IO/file_stats.py | 45669c705609fe90cbf3002134b9720195db5e94 | [] | no_license | tielushko/The-Modern-Python-3-Bootcamp | ec3d60d1f2e887d693efec1385a6dbcec4aa8b9a | 17b3156f256275fdba204d514d914731f7038ea5 | refs/heads/master | 2023-01-22T01:04:31.918693 | 2020-12-04T02:41:29 | 2020-12-04T02:41:29 | 262,424,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | #write a function to count number of lines, words and characters in the text file
def statistics(file_name):
with open(file_name) as file:
statistics = {
'lines': 0,
'words': 0,
'characters': 0
}
for line in file:
#line = line.strip('\n')
... | [
"tielushko@mail.usf.edu"
] | tielushko@mail.usf.edu |
584195b082aac85b8e8c4eafa628ba1fe5063afd | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/idea.py | 983ade7b2bb92a463b0bbc4bd76bcba2d94510de | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 2,847 | py | ii = [('BentJDO2.py', 45), ('EmerRN.py', 12), ('CookGHP3.py', 35), ('LyelCPG2.py', 14), ('MarrFDI.py', 16), ('RogePAV2.py', 35), ('CoolWHM2.py', 6), ('GodwWSL2.py', 55), ('ChanWS.py', 31), ('RogePAV.py', 15), ('SadlMLP.py', 77), ('FerrSDO3.py', 19), ('WilbRLW.py', 25), ('WilbRLW4.py', 39), ('RennJIT.py', 3), ('ProuWCM.... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
c3b020f232c2731e008a9a413e7639d1e601bce5 | 406d2e9e3850a8ac7dcae302aefc5fb9ba40e2dd | /02.NetworkPrograming/multiconn-server.py | 7c683543c62faec51e41af3333bc5ecc13df2e0d | [] | no_license | jeonghaejun/02.Thread-NetworkPrograming-MQTT | 565a0b72d98add71f1ff9a17998a03877ce8397a | 4757d9813dbb555cb3bd3602a645f1315619d371 | refs/heads/master | 2023-04-01T18:08:57.927328 | 2021-04-05T18:02:34 | 2021-04-05T18:02:34 | 329,620,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | import socket
from _thread import *
def threaded(client_socket, addr):
print('Connected by :', addr[0], ':', addr[1])
while True:
try:
# 데이터가 수신되면 클라이언트에 다시 전송합니다.(에코)
data = client_socket.recv(1024)
if not data:
print('Disconnected by '+addr[0], ':'... | [
"wjdgownsll@gmail.com"
] | wjdgownsll@gmail.com |
c3e9230912baf950221c94030dbce6778bb9e557 | 7137161629a1003583744cc3bd0e5d3498e0a924 | /airflow/providers/amazon/aws/operators/glue.py | 81d3468d592fdf9223937cf282e2a9faf3a40b54 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | jbampton/airflow | 3fca85975854eb916f16143b659a9119af143963 | dcfa14d60dade3fdefa001d10013466fe4d77f0d | refs/heads/master | 2023-05-25T22:31:49.104069 | 2021-09-18T19:18:32 | 2021-09-18T19:18:32 | 247,645,744 | 3 | 0 | Apache-2.0 | 2020-03-16T08:12:58 | 2020-03-16T08:12:57 | null | UTF-8 | Python | false | false | 5,479 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | jbampton.noreply@github.com |
9babe7775b66eb37f494f78a5710eba7f275c9ef | fe5152ab8e656309f13bf29ededc4fe99ddfed45 | /pyguymer3/geo/_area.py | 5bab9ca971000a106ce9691521a219b45bb6845f | [
"Apache-2.0"
] | permissive | Guymer/PyGuymer3 | 763ba7ee61e20ac5afb262d428de2d7499c07828 | bc65f08f81ea0e76f5c9ae3d703056382f456f01 | refs/heads/main | 2023-08-23T14:42:34.997227 | 2023-08-19T08:39:54 | 2023-08-19T08:39:54 | 144,459,343 | 14 | 4 | Apache-2.0 | 2023-08-13T07:47:29 | 2018-08-12T10:59:59 | Python | UTF-8 | Python | false | false | 2,030 | py | #!/usr/bin/env python3
# Define function ...
def _area(triangle, /, *, eps = 1.0e-12, nmax = 100):
"""Find the area of a triangle.
Parameters
----------
triangle : shapely.geometry.polygon.Polygon
the triangle
eps : float, optional
the tolerance of the Vincenty formula iterations
... | [
"t.m.guymer@thomasguymer.co.uk"
] | t.m.guymer@thomasguymer.co.uk |
3f69552aae3908907bfa9556c030f108c60f776a | 15f347fce18db7e15b019fff66d58d27743143bd | /func_5.py | 3b72ef73431279799af0ec7b0a0d703f6bdfb029 | [] | no_license | iamsubingyawali/PyAssignment | f716d51f3e49a0e05ac3452e54c401ed60bda8e9 | 8892770f411aa711db876b95ebe72d649c5fbdd2 | refs/heads/master | 2022-11-15T23:37:10.000820 | 2020-06-28T17:59:14 | 2020-06-28T17:59:14 | 275,639,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | def calc_factorial(num):
try:
if int(num) < 1:
return "Invalid Number"
else:
factorial = 1
for i in range(num, 0, -1):
factorial *= i
return factorial
except ValueError:
return "Invalid Number"
print(calc_factorial(6))
| [
"="
] | = |
97961378b173b4085f3f840f06171a75831c05aa | 98bd2625dbcc955deb007a07129cce8b9edb3c79 | /plot_counts.py | fdbf25f52b8502d1743c8f5413fa547a21879c5b | [] | no_license | melanieabrams/bremdata | 70d0a374ab5dff32f6d9bbe0a3959a617a90ffa8 | df7a12c72a29cca4760333445fafe55bb6e40247 | refs/heads/master | 2021-12-26T01:57:25.684288 | 2021-09-30T22:48:05 | 2021-09-30T22:48:05 | 166,273,567 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,593 | py | import sys
import matplotlib.pyplot as plt
import pandas as pd
'''USAGE: python plot_counts.py outfilename.pdf {'Tn-seq' or 'Bar-Seq'} filename1 filename2...'''
#import
outfilename=sys.argv[1]
input_type=sys.argv[2]
countfiles=sys.argv[3:]
countfile_ids=[]
for countfile in countfiles:
countfile_ids.ap... | [
"noreply@github.com"
] | melanieabrams.noreply@github.com |
673109ab4c5461a308417ef12eb2f6cc623e7e98 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/o11_j195024+500900/sdB_o11_j195024+500900_coadd.py | aef310d98cb00bed20d9f11a4f45b62002dc5092 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[297.6,50.15], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_o11_j195024+500900/sdB_o11_j195024+500900_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sd... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
9a63309ab3eaecfd3e247064c688d8925f9239b2 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Difference/trend_MovingAverage/cycle_0/ar_12/test_artificial_1024_Difference_MovingAverage_0_12_0.py | b87dd9e926e0fdf59bad191e4236d882a4458a27 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 270 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 0, transform = "Difference", sigma = 0.0, exog_count = 0, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
d4a8f2b08378b8ccd840b2cd6d84af62cf6968fb | 319d66c48f51e3d98e9df953d406a6f545b72363 | /Python/AppleAndOrange.py | 947c089dc2e7012ae7350fe7be420b21641c8820 | [
"Apache-2.0"
] | permissive | WinrichSy/HackerRank-Solutions | 291bc7a32dc4d9569d7028d6d665e86869fbf952 | ed928de50cbbbdf0aee471630f6c04f9a0f69a1f | refs/heads/master | 2022-07-18T15:43:48.865714 | 2020-05-16T00:21:56 | 2020-05-16T00:21:56 | 255,453,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | #Apple and Orange
#https://www.hackerrank.com/challenges/apple-and-orange/problem
#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the countApplesAndOranges function below.
def countApplesAndOranges(s, t, a, b, apples, oranges):
apple_total = [1 for x in apples if (x+a)>=s and... | [
"winrichsy@gmail.com"
] | winrichsy@gmail.com |
94c4b1013a6ccaae658ddc243a83d00404d36642 | aeb0a860196c7264bde3c02d51a350661520b6da | /HackerRank/Rank/medium/compress-string.py | 6455fc819d304a53ed16030bbc114489436ddb16 | [] | no_license | Md-Hiccup/Problem-Solving | fc9078288c59ef74fc1170e773ac20d17c28fbbb | edbee71b69aeec0b1dbeed78f033852af698b844 | refs/heads/master | 2022-12-10T02:35:24.315807 | 2022-03-16T12:50:44 | 2022-03-16T12:50:44 | 199,393,332 | 0 | 2 | null | 2022-12-08T01:22:44 | 2019-07-29T06:37:12 | Java | UTF-8 | Python | false | false | 648 | py | """
from itertools import groupby
# [k for k, g in groupby('AAAABBBCCDAABBB')] --> A B C D A B
# [list(g) for k, g in groupby('AAAABBBCCD')] --> AAAA BBB CC D
First, the character 1 occurs only once. It is replaced by (1, 1). Then the character 2 occurs three times, and it is replaced by (3, 2) and so on.
Sam... | [
"ask2md@gmail.com"
] | ask2md@gmail.com |
f9e193313f7efcadc7d30522e7441224144c8203 | f4c5acc4d8923fd04dfcccff986cfd41a55510d5 | /MyGUI/views/helpers.py | 4ee283b8778fdf9893b213543de740ca3d360017 | [] | no_license | InesIvanova/python-gui-layer-for-bash-commands | 307d60d789d65fba62ff76c003d74c8c7efd3a9a | 3a4047af46bd1599ab2b9db82449bf79b1a3b238 | refs/heads/master | 2023-03-18T03:07:35.687810 | 2021-03-07T22:51:23 | 2021-03-07T22:51:23 | 345,472,377 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from tkinter import Tk
def destroy_view(func):
def wrapper(tk: Tk):
[slave.grid_forget() for slave in tk.grid_slaves()]
[slave.pack_forget() for slave in tk.pack_slaves()]
func(tk)
return wrapper
| [
"ines.iv.ivanova@gmail.com"
] | ines.iv.ivanova@gmail.com |
f88fe23779ff393ccdfd5300828f4964e5b4c3b0 | 84b5ac79cb471cad1d54ed1d2c842dc5581a03f0 | /branches/unstable/src/paella/kde/trait.py | b4c2a442e2b68c86579c1af9db573e2894c765e6 | [] | no_license | BackupTheBerlios/paella-svn | c8fb5ea3ae2a5e4ca6325a0b3623d80368b767f3 | d737a5ea4b40f279a1b2742c62bc34bd7df68348 | refs/heads/master | 2021-01-18T14:07:40.881696 | 2012-11-13T20:33:08 | 2012-11-13T20:33:08 | 40,747,253 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,292 | py | import os
import re
from qt import SLOT, SIGNAL, Qt
from qt import QSyntaxHighlighter
from qt import QColor, QWidget
from qt import QVBoxLayout, QHBoxLayout
from qt import QSplitter
from qtext import QextScintilla, QextScintillaLexer
from qtext import QextScintillaLexerPython
from kdeui import KMainWindow
from kdeui ... | [
"umeboshi@cfc4e7be-4be4-0310-bcfe-fc894edce94f"
] | umeboshi@cfc4e7be-4be4-0310-bcfe-fc894edce94f |
efdf79e368752ad93463e91fbb35da14ce8d73cc | 61aa319732d3fa7912e28f5ff7768498f8dda005 | /util/update_copyright/__init__.py | 8046b58c3d0645928af9978505e51e9e8f5dc1e5 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | TeCSAR-UNCC/gem5-SALAM | 37f2f7198c93b4c18452550df48c1a2ab14b14fb | c14c39235f4e376e64dc68b81bd2447e8a47ff65 | refs/heads/main | 2023-06-08T22:16:25.260792 | 2023-05-31T16:43:46 | 2023-05-31T16:43:46 | 154,335,724 | 62 | 22 | BSD-3-Clause | 2023-05-31T16:43:48 | 2018-10-23T13:45:44 | C++ | UTF-8 | Python | false | false | 3,766 | py | # Copyright (c) 2020 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality o... | [
"sroger48@uncc.edu"
] | sroger48@uncc.edu |
ca62c53ad5200dfd9ee5d1b839d9d12b82a2b858 | 430fd1fc3336b0e621dcfec40c7303ee8ed126c2 | /manage.py | 024b1c35bb0e183e3bf51a7749bc1b5f0eebe7e9 | [] | no_license | rikicop/kresky | 8ce106ddb8eb0496e1042add2a00734d777a3742 | 9bf8c181ff3976aef943eb841a2e53de2f005295 | refs/heads/main | 2023-02-21T05:55:31.399032 | 2021-01-31T23:03:42 | 2021-01-31T23:03:42 | 334,770,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'kresky_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"ruperto1@protonmail.com"
] | ruperto1@protonmail.com |
2f3f019f5fc52ecbcefb36671238ff9cf02a68be | 883c475191edd39c1a36a0873fd2f460a07dbb59 | /autocti/instruments/euclid/header.py | 1279ec75bcd6013807c6d8e8fc504e40fc57d5e4 | [
"MIT"
] | permissive | Jammy2211/PyAutoCTI | c18f4bb373572be202d691cc6b1438211a2cd07b | 32e9ec7194776e5f60329e674942bc19f8626b04 | refs/heads/main | 2023-08-16T10:59:09.723401 | 2023-08-14T09:42:57 | 2023-08-14T09:42:57 | 156,396,410 | 6 | 2 | MIT | 2023-09-03T20:03:43 | 2018-11-06T14:30:28 | Python | UTF-8 | Python | false | false | 851 | py | from typing import Dict, Tuple, Optional
from autoarray.structures.header import Header
class HeaderEuclid(Header):
def __init__(
self,
header_sci_obj: Dict = None,
header_hdu_obj: Dict = None,
original_roe_corner: Tuple[int, int] = None,
readout_offsets: Option... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
ac9b3edb41ce1ff5721302398091500bd8f0c622 | 568d7d17d09adeeffe54a1864cd896b13988960c | /project_blog/day02/ddblog/topic/models.py | 4274cbdcd6bab4f10850dc3972fe2120c065ee05 | [
"Apache-2.0"
] | permissive | Amiao-miao/all-codes | e2d1971dfd4cecaaa291ddf710999f2fc4d8995f | ec50036d42d40086cac5fddf6baf4de18ac91e55 | refs/heads/main | 2023-02-24T10:36:27.414153 | 2021-02-01T10:51:55 | 2021-02-01T10:51:55 | 334,908,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from django.db import models
from user.models import UserProfile
# Create your models here.
class Topic(models.Model):
title=models.CharField('文章标题',max_length=50)
#tec no-tec
category=models.CharField('文章分类',max_length=20)
# public private
limit=models.CharField('文章权限',max_length=20)
introduce... | [
"895854566@qq.com"
] | 895854566@qq.com |
6a46ff7662d9a86c93c34daca53e6021b8af5ce5 | c43855664f500991da9c0bfb9872fb71dfcf77cf | /MxOnline_Django/apps/course/migrations/0007_course_tag.py | 7a2ddcaaf39a99a7401d88d6ad23c5dcc410ec5d | [] | no_license | zfh960126/first | a2bc128d16d99a0fc348773418f81654228cc6ff | cd51bcfbb8cdf83a21e5fd838f95c66abbec77bd | refs/heads/master | 2021-04-03T01:21:32.822960 | 2018-05-24T23:56:40 | 2018-05-24T23:56:40 | 124,852,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2018-05-04 10:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0006_course_category'),
]
operations = [
migrations.AddField(
... | [
"you@example.com"
] | you@example.com |
d144360eebe72f84e535278b005e2ab15ab08397 | c4bcb851c00d2830267b1997fa91d41e243b64c2 | /utils/actions/smooth/binary.py | 58550b7e2e8c58d232296cab4c3ca9aad97130b8 | [] | no_license | tjacek/cluster_images | 5d6a41114a4039b3bdedc34d872be4e6db3ba066 | 8c660c69658c64c6b9de66d6faa41c92486c24c5 | refs/heads/master | 2021-01-23T21:01:17.078036 | 2018-06-07T14:33:50 | 2018-06-07T14:33:50 | 44,881,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | import sys,os
sys.path.append(os.path.abspath('../cluster_images'))
import numpy as np
import utils.actions.smooth
class BinarizeActions(utils.actions.smooth.TimeSeriesTransform):
def get_series_transform(self,frames):
frames=np.array(frames)
fr_std= np.std(frames,axis=0)
return Binar... | [
"tjacek@student.agh.edu.pl"
] | tjacek@student.agh.edu.pl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.