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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95f04876e82bf8d63c46039a8fd3128db935beb6 | e47b8be7bb06376d0d9d28845aa453877ff3655f | /05. Choinka jednostronna/venv/Scripts/pip3-script.py | 9683e7e5969f3203139a80c33c624e94f98cdd64 | [] | no_license | mrcszk/Python | eaf60ccfda4ebebdd67db3944e4ac248208f1a1e | 5e733b5bc1bd09904e48662c8542c8db60097ab5 | refs/heads/master | 2022-11-15T14:07:34.131042 | 2020-07-15T09:41:05 | 2020-07-15T09:41:05 | 169,444,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!"C:\Users\marci\Desktop\Programy\5.Choinka jednostronna\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)... | [
"marcin.sawczuk99@gmail.com"
] | marcin.sawczuk99@gmail.com |
c1cc33e3c5461fd11f9d316138f7d2f1a55b95d2 | 783bda14ef99024acea3584bc19130375fec2508 | /inetdata_start.py | f372913717ff536b4569f563635cfb452b050ff8 | [] | no_license | liberbell/opendata01 | 75d4ed22f54fb42112b02244c9bf2cfad08935ca | f1b7c33e6f61d7ca4f01cc96c4ce05c4f6fb78bf | refs/heads/master | 2020-03-21T10:25:08.678066 | 2018-08-21T00:21:09 | 2018-08-21T00:21:09 | 138,449,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | #
# Example file for retrieving data from the internet
#
import urllib.request
def main():
webUrl = urllib.request.urlopen("https://google.com")
print("Result code is " + str(webUrl.getcode()))
data = webUrl.read()
print(data)
if __name__ == "__main__":
main()
| [
"liberbell@gmail.com"
] | liberbell@gmail.com |
aa660071e7ed52750314188af616bd4173cc3da2 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/BuildLinks1.10/test_input/CJ_16_2/16_2_1_insamniac_A.py | 3548e7bf92e32221559fc57bc35717827765e621 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,890 | py | #!/usr/bin/python
import sys
from sets import Set
ifile=sys.argv[1]
lines=open(ifile).read().split("\n")
tc=lines[0]
lines=lines[1:]
case=1
debugLevel=0
def debug(lvl,msg):
if debugLevel >= lvl:
print(msg)
numMap={0:"ZERO",1:"ONE",2:"TWO",3:"THREE",4:"FOUR",5:"FIVE",6:"SIX",7:"SEVEN",8:"EIGHT",9:"NINE"}
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
19860625f005ccfad733e444615fd572bd90f6b7 | baa4ff451618bd8791c2e3ead587f6faff3356f4 | /WHILE_PARADA/Simlador_Caixa2.0.py | d77d9c8f2b47704c2adf6a27f5377c00dd166897 | [] | no_license | kamibarreto/Python_Exercicios | 3d8aed88b73ec4be2f4d860537c350ee62d01f10 | eb6b5981aa2aee62c4818578120e4de4dcd38f77 | refs/heads/master | 2023-05-05T10:42:02.419412 | 2021-05-24T02:58:02 | 2021-05-24T02:58:02 | 370,210,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | print("=" * 30)
print("{:^30}".format("BANCO CEV"))
print("=" * 30)
valor = int(input("Que valor você quer sacar? R$"))
total = valor
céd = 50
totcéd = 0
while True:
if total >= céd:
total -= céd
totcéd +=1
else:
if totcéd > 0:
print(f"Total de {totcéd} cédulas d... | [
"fabinhobarreto9928@gmail.com"
] | fabinhobarreto9928@gmail.com |
ebc1ca4b9d702ae616fab8672ad959aa6e3dabc4 | e86f40099817f4bf16f695040ef6096bc026b4a5 | /card_project/cards/trading/migrations/0006_transaction.py | 757141b80a07bae1b2caf8e2a9ded5a3e1d82363 | [] | no_license | idosarue/DI_django | 7474e38c8b8cd668df3af5a0d88c021ada8da887 | cd3f91e51458941a5834fb65d6b8d6698770fc6c | refs/heads/main | 2023-07-16T12:10:07.549009 | 2021-09-02T17:42:30 | 2021-09-02T17:42:30 | 396,374,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | # Generated by Django 3.2.6 on 2021-08-30 16:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_alter_topic_topic'),
('trading', '0005_auto_20210830_1202'),
]
operations = [
migr... | [
"dodojoker67@gmail.com"
] | dodojoker67@gmail.com |
02669c63508e761565cbea88f708d86c0b573a73 | 594f60b6a536b831d0df38abea7f0ffc0a2fd3cb | /misc/rot_n.py | 5105b4001321948448d8fd86c228578d416a5e60 | [] | no_license | mh70cz/py | 1478439fe939076cca3a30be2f2d29fb4e8a3cd9 | 7fc23f2133624c787e1dd4856322d48251cc6f0e | refs/heads/master | 2022-08-12T06:08:30.720164 | 2022-08-08T23:16:19 | 2022-08-08T23:16:19 | 95,386,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | '''rot n'''
def haf():
'''Challenge 1'''
orig = '''g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc
dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyrq ufw rfgq rcvr gq
qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj. maps'''
n = 24
assert (orig == rotN(rotN... | [
"mh70@mh70.cz"
] | mh70@mh70.cz |
63acf12fe4582c7ad628a2889b31eb929b1afdd9 | 66d38c229a0696cdb30b8c315225c47f766d09ce | /config_code/__init__.py | 018649de6504e4963611046a443b46e9d21dd022 | [] | no_license | walleleung/DemoGraphy | cbb3fcf03224deb997c94428ec17fc12c29f026a | 2693b1262a15b66365ec6f1ffc3b6673a9d9760d | refs/heads/master | 2021-05-08T03:42:57.386386 | 2017-02-17T04:00:52 | 2017-02-17T04:00:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | # _*_ coding: utf-8 _*_
"""
配置模块:代码部分
"""
| [
"qixianhu@qq.com"
] | qixianhu@qq.com |
6f8a313730b64fe516a6e53795d3294dcd76f601 | c824722d02a36f888f74bf60455361a2a1fe5212 | /rnacentral_pipeline/databases/ensembl/pseudogenes.py | d985fea26a9c729f6ad5c608d40622f10db4547a | [
"GPL-1.0-or-later",
"Apache-2.0",
"Artistic-1.0-Perl",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | RNAcentral/rnacentral-import-pipeline | d1b52291fc083470d75cf400b10792e1613662db | 4505f748f9a932ffe4663c16b6c81574e4c04178 | refs/heads/master | 2023-08-31T23:37:29.744476 | 2023-04-11T11:10:48 | 2023-04-11T11:10:48 | 29,351,993 | 5 | 0 | Apache-2.0 | 2023-07-12T13:58:10 | 2015-01-16T14:34:15 | Python | UTF-8 | Python | false | false | 1,577 | py | # -*- coding: utf-8 -*-
"""
Copyright [2009-2021] EMBL-European Bioinformatics Institute
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... | [
"bsweeney@ebi.ac.uk"
] | bsweeney@ebi.ac.uk |
af61c06f497a85cd520a8c0e61b75260bfc21258 | c846a5217adf1f21999bffa7a32a8b7bdb3102ec | /gold/level4/치즈.py | 0ae4f470fb540fc62fa4e022bbb5c5d064710e6e | [] | no_license | 123qpq/Beakjoon | c833433bb5e4237014ac0b84862aa7e15ec16ee8 | fc191fc81c0d312bc306abd1a3b98c2a990223e5 | refs/heads/main | 2023-06-27T18:46:38.746673 | 2021-07-19T13:56:45 | 2021-07-19T13:56:45 | 343,278,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | #2638
import sys
from collections import deque
n, m = map(int, sys.stdin.readline().split())
table = [list(map(int, sys.stdin.readline().split())) for _ in range(n)]
visited = [[False]*m for _ in range(n)]
dq = deque([(0, 0)])
answer = 0
dx = [0, 1, 0, -1]
dy = [1, 0, -1, 0]
def sol():
while dq:
x, y = dq.... | [
"45002168+123qpq@users.noreply.github.com"
] | 45002168+123qpq@users.noreply.github.com |
b333bff4cb84f0d2930465868c1b4dcd1614a62a | d27af9d58b91b8cd998ac0eb87d980d304ff0670 | /Beginner-Contest/ABC129/ABC129_A.py | bb36f6dba90f60fe89936623218202a9c9c7e227 | [] | no_license | mongesan/Atcoder-m0_ngesan-py | 29dd79daab149003ffc8b6b6bad5fa2e7daa9646 | 6654af034d4ff4cece1be04c2c8b756976d99a4b | refs/heads/master | 2023-08-20T19:50:04.547025 | 2021-10-27T12:24:51 | 2021-10-27T12:24:51 | 258,486,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9 | py | #ABC129_A | [
"syun1.mongesan@gmail.com"
] | syun1.mongesan@gmail.com |
d9fa1b0e197371a1733297951bb97febe6920070 | 98d832289b7437247ce03ea54ad3cb7b95451159 | /rapid7vmconsole/models/references_with_solution_natural_id_link.py | de0f4b1c75e19e925a1f3a8b9315cd68f51f221b | [
"MIT"
] | permissive | rmehilli-r7/vm-console-client-python | 7f02f13345dce4f4d4d85e18da7146daeefbceb9 | 069041c1c7b53c6b3d8bfdd81b974141bfca3c0c | refs/heads/master | 2020-03-23T11:20:33.364442 | 2018-08-10T20:06:37 | 2018-08-10T20:06:37 | 141,498,444 | 0 | 0 | MIT | 2018-08-08T19:58:45 | 2018-07-18T23:00:41 | Python | UTF-8 | Python | false | false | 52,193 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"zachary_youtz@rapid7.com"
] | zachary_youtz@rapid7.com |
c341eb87fd5174c19ae18615b93641901b04642c | eac52a8ae7c539acedaedf8744bd8e20172f0af6 | /epi_solutions/strings/text_justification.py | 62d35a1d41f2e624daa42b9246aebcd7a59b4f5b | [] | no_license | mshekhar/random-algs | 3a0a0f6e6b21f6a59ed5e1970b7a2bc2044e191f | 7c9a8455f49027a754038b23aaa2df61fe5397ca | refs/heads/master | 2020-03-26T16:29:42.694785 | 2019-07-18T20:57:55 | 2019-07-18T20:57:55 | 145,105,593 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | class Solution(object):
def get_spaces_dist(self, chunk, chunk_word_count, max_len):
spaces_count = max_len - chunk_word_count
remaining_spaces = spaces_count
spaces = [0] * (len(chunk) - 1)
# print 'remaining_spaces', remaining_spaces, chunk, chunk_word_count, max_len, spaces
... | [
"mayank@moengage.com"
] | mayank@moengage.com |
617168401e5f7634a5fb817ae0d74cd2e08d26d2 | 58b91b399a07dada20c4c8f57fd6150b85a9cc28 | /build/android/pylib/instrumentation/instrumentation_test_instance.py | 91f500dd4893d4f8e70c5e305492219655da9d96 | [
"BSD-3-Clause"
] | permissive | domramirez/chromium | a2167f6e605dabf49640f04b12e28c8a2f62d20c | a8e1de5b19353797ee41b343d1e4cc021d61d735 | refs/heads/master | 2023-01-13T02:48:01.372551 | 2017-10-25T19:35:10 | 2017-10-25T19:35:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,831 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import copy
import logging
import os
import pickle
import re
from devil.android import apk_helper
from devil.android import md5sum
from pylib import constan... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
ef12eb3b1b61b9764528911eaa4d4332a9b6aa6f | 887f4beeb3ba480f3bcc7dff1e9eb3d61d445f9b | /console/common/account/serializers.py | cb94122d0f0cd1ea0e000c7d3ae8f65283feb6eb | [] | no_license | wang-shun/console | ccaa8a1716e2ab6bf5ed6d1c4240cecd4e59f155 | 50425ff068c4795bf13bd178891da126f8677383 | refs/heads/master | 2020-04-04T18:15:14.382006 | 2018-07-09T14:42:42 | 2018-07-09T14:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,816 | py | # coding=utf-8
from django.conf import settings
from django.contrib.auth import authenticate
from django.contrib.auth.models import User as AuthUser
from django.utils.translation import ugettext as _
from console.common import serializers
from .helper import captcha_validator
from .helper import cell_phone_validator
f... | [
"lhongzhan@126.com"
] | lhongzhan@126.com |
6d98105b49a9b71caaeab20bfa35b10f09312417 | 59ddcd01f1609496446eb901f02ff2845d48bedf | /demo/akbtrade201402/generate_json.py | 344eb816a6515ca87f69c9b8662d709f8b86a61d | [] | no_license | yosukesuzuki/d3MapDemo | c4b5f243920eb0fc83e4927eb3537acc89882d21 | 663a9168741c6db59794c5bbddc56fa934a20f7f | refs/heads/master | 2020-05-31T00:39:37.635264 | 2014-03-08T12:19:19 | 2014-03-08T12:19:19 | 9,837,097 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | # -*- coding: utf-8 -*-
import json
def main():
teams = open('teams.txt').readlines()
nodes = []
from_teams = []
to_teams = []
for i,v in enumerate(teams):
cells = v.split('\t')
temp_from = {'id':i,'name':cells[0].strip(),'color':cells[1].strip()}
temp_to = {'id':i+len(teams... | [
"yosuke.suzuki@gmail.com"
] | yosuke.suzuki@gmail.com |
2b7518f928a86ef714ad86d63c6ce37da71762ea | f865fdd970f8e37ea2aa5157374af8c4d6ced987 | /swagger_client/models/vehicle_country.py | 40c9a128165d9c7ffe8b2083b5b47d070346d4ac | [] | no_license | gkeep-openapi/python-sdk | 7e809448355bff535b3d64e013f001e9196c5e19 | 7c4f3785b47a110386ef10109619654522c95de5 | refs/heads/master | 2022-05-28T16:13:06.643958 | 2022-05-13T14:58:39 | 2022-05-13T14:58:39 | 235,536,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | # coding: utf-8
"""
Gkeep API
Gkeep API # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class VehicleCountry(object):
"""NOTE: This class is auto generated by the swagger code ... | [
"gkeep-ci-jenkins"
] | gkeep-ci-jenkins |
5452fc01194a8f8b949c6b4f0a19ba05527afdc1 | 6f2d5600b65b062151bab88c592796b878de7465 | /InterfaceTest/testcase/test_login.py | f94453d2a1a35696984e1ccd893202559e46f35a | [] | no_license | zhouyanmeng/python_api_test | 1e6549321c20ee9a71beffac2533c917b5ecc157 | 7303352c9b5baacba5296b088f89ba4c702fb485 | refs/heads/master | 2022-12-17T14:34:26.351566 | 2019-03-01T13:02:06 | 2019-03-01T13:02:06 | 185,185,856 | 0 | 0 | null | 2022-12-08T01:45:15 | 2019-05-06T11:45:55 | Python | UTF-8 | Python | false | false | 2,094 | py | import unittest
from InterfaceTest.common.http_requests import HTTPRequest2
from InterfaceTest.common import do_excel
from InterfaceTest.common import contants
from InterfaceTest import data
from ddt import ddt,data
from InterfaceTest.common import logger
logger=logger.get_logger(__name__)
@ddt
class LoginTest(unitt... | [
"2440269710@qq.com"
] | 2440269710@qq.com |
9bd7431f39b87e78f726d2b028725f16210b0c77 | 842e3cd1266d18752a3baf2b90232ed4ce41eb4f | /grako/_version.py | 7fcb242439cf1afe87c2d26760da98563eca14e1 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | apalala/grako | 2786d85eef9799bf614c46c92f19ff183a435d46 | efb373d89e6805930e661758c2cff2b26da4658a | refs/heads/master | 2020-12-25T17:37:05.353167 | 2017-05-02T02:53:11 | 2017-05-02T02:53:11 | 65,163,853 | 16 | 6 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2017 by Juancarlo Añez
# Copyright (C) 2012-2016 by Juancarlo Añez and Thomas Bragg
from grako._config import __version__ # noqa
| [
"apalala@gmail.com"
] | apalala@gmail.com |
3d4c362ef26e65588c9ff886ed366f7ef392840d | a960e38868b3a157179bb576ac78b0f144140ed8 | /PyTorch/nlp/bert/lamb.py | adffb0512c928274be085c741ccda34704a20f11 | [
"Apache-2.0"
] | permissive | HabanaAI/Model-References | d339b211adf8be9575ebb1e3bb6afd6cd04312e6 | 3ca77c4a5fb62c60372e8a2839b1fccc3c4e4212 | refs/heads/master | 2023-08-17T06:32:28.714253 | 2023-08-14T15:22:08 | 2023-08-14T15:22:08 | 288,377,272 | 108 | 53 | null | 2023-08-18T02:30:16 | 2020-08-18T06:45:50 | Python | UTF-8 | Python | false | false | 9,125 | py | # Copyright (c) 2021, Habana Labs Ltd. All rights reserved.
# Copyright (c) 2019-2020, NVIDIA CORPORATION. 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... | [
"mjli@habana.ai"
] | mjli@habana.ai |
c6957167af4d0cadca23b030031d0b94925b9b56 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/contrib/sparsemax/__init__.pyi | eff94a8df0a6ac498835f1ce6b07736edf161e6a | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | pyi | # Stubs for tensorflow.contrib.sparsemax (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.contrib.sparsemax.python.ops.sparsemax import sparsemax as sparsemax
from tensorflow.contrib.sparsemax.python.ops.sparsemax_loss import sparsemax_loss as sparsemax_loss
from... | [
"matangover@gmail.com"
] | matangover@gmail.com |
edaf5a975b4f1a3296f08c805084bfd50909a467 | 2aa47f47fb81798afdf41437844cbbea8e9de66c | /02pythonBase/day04/res/lianxi1.py | 25662dd554e5f17a8f18c8fa222e1a6964e04a48 | [] | no_license | nykh2010/python_note | 83f2eb8979f2fb25b4845faa313dbd6b90b36f40 | 5e7877c9f7bf29969072f05b98277ef3ba090969 | refs/heads/master | 2020-04-27T23:10:16.578094 | 2019-03-23T02:43:14 | 2019-03-23T02:43:14 | 174,765,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | # 练习:输入一个整数x,求x的5倍的值?
# (x*5)
x = int(input("请输入数据"))
#x*2**2+x= x*4+x =x*5
a = (x<<2) + x
print(a)
| [
"xulingfeng@boe.com.cn"
] | xulingfeng@boe.com.cn |
5b3074e0a8e3a0968c2208e817af3452eb66f6c3 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_each9.py | 1a4e9ddff567219cf9270bb83dfe5eb5e0c7d464 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | from xcp2k.inputsection import InputSection
class _each9(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Just_energy = None
self.Powell_opt = None
self.Qs_scf = None
self.Xas_scf = None
self.Md = None
self.Pint = None
self.Metadyn... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
dcda08a1561ef54788e11d3fb2c979ede1a3b6d6 | f62fd455e593a7ad203a5c268e23129473d968b6 | /vitrage-1.5.2/vitrage/datasources/zabbix/auxiliary/zabbix_vitrage.py | 8ea599263398b140f626977ff87deeaeddda8a03 | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 3,490 | py | #!/usr/bin/env python
# coding: utf-8
# Copyright 2016 - Nokia
#
# 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 app... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
8e89d911e312b13af82ef870afeefb974d9f5c2e | cfd93c9d0a39c1f1a2778a23977e7b3bd5fd9b84 | /baseline2018a-doc/baseline-doc/configs/astro-lsst-01_2022/telescope.py | a614458273e3cd1a33a59c2b9ae5cd6aafbf5b69 | [
"CC-BY-4.0"
] | permissive | lsst-pst/survey_strategy | ec3f7a277b60559c6d7f0fad4a837e22255565ea | 47aa3e00576172bfeec264e2b594c99355b875ea | refs/heads/main | 2023-06-11T17:36:24.000124 | 2023-05-25T23:07:29 | 2023-05-25T23:07:29 | 102,892,062 | 10 | 6 | null | 2022-09-23T21:08:27 | 2017-09-08T18:24:28 | Jupyter Notebook | UTF-8 | Python | false | false | 1,398 | py | import lsst.sims.ocs.configuration.instrument.telescope
assert type(config)==lsst.sims.ocs.configuration.instrument.telescope.Telescope, 'config is of type %s.%s instead of lsst.sims.ocs.configuration.instrument.telescope.Telescope' % (type(config).__module__, type(config).__name__)
# Maximum speed (units=degrees/secon... | [
"lynnej@uw.edu"
] | lynnej@uw.edu |
09c7223b6e3878e8b479125c77960c8fe523cab0 | 09c836f817ba2228a87d32eae53b3204e8b4ecd9 | /initsys/migrations/0003_auto_20181022_2318.py | 1a63b9ad1d2fab808ed6168a9a3b69ce9295bf44 | [] | no_license | imagilex/bmhaus | 6c6b4ccc0053970f555e4c3c3f6978b37c457d2c | 208f8af7056233ab1f29a79d0c813a269374945e | refs/heads/master | 2020-04-03T14:31:32.476267 | 2019-02-16T04:11:26 | 2019-02-16T04:11:26 | 155,324,809 | 0 | 1 | null | 2019-02-16T04:11:29 | 2018-10-30T04:33:41 | CSS | UTF-8 | Python | false | false | 764 | py | # Generated by Django 2.0.7 on 2018-10-23 04:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('initsys', '0002_auto_20181014_1947'),
]
operations = [
migrations.AlterField(
model_name='permi... | [
"rramirez@junkyard.mx"
] | rramirez@junkyard.mx |
7119314ef0f9ca75e28a1dbe5394f8168e03e2e2 | e3376c04ecca6eaf0186f8a38eef245e03ddbe92 | /Modulo1/04_Cuarta_semana.py/Tarea_reto_funciones_2_map_04.py | 70b1bfee5e6218ea2cf9e448dd44589278707919 | [] | no_license | lamorenove/Ejercicios-Python | d0b31810ba5d0e6d4ab922b5e325ed76cc57e324 | ee26d1dd30db8c7e088a668e11dc635b779d933a | refs/heads/master | 2023-06-24T05:46:33.383620 | 2021-07-22T17:20:23 | 2021-07-22T17:20:23 | 385,313,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | '''
Crear un programa en Python que muestre en pantalla el desempeño
académico de un alumno en dos asignaturas (Español y Matemática)
al finalizar el segundo periodo del año lectivo 2021. Se aprueba la
asignatura si se obtiene una calificación mayor o igual a 3. Se
debe calcular e imprimir la calificación final de ca... | [
"lamorenove@gmail.com"
] | lamorenove@gmail.com |
1692cefb11bbae3aefa27fe7b4eac343ec59165c | 98e370620ae43be1eee53f1c46253f5e2bf779be | /app/app/spiders/ip_cn.py | b8c3573843d5060f6b617c6d360568a382a10f8e | [] | no_license | songhao8080/scrapy_project | a6610aa8d9845f85a0d7c4bca061da52582a628d | e17cb0eb6d161d85e8623f316dfd94468b016d16 | refs/heads/master | 2022-03-28T17:23:24.743514 | 2017-07-31T03:54:25 | 2017-07-31T03:54:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | # -*- coding: utf-8 -*-
import scrapy
import json
import time
class IpCnSpider(scrapy.Spider):
name = "ip_cn"
allowed_domains = ["ip.cn"]
# start_urls = ['http://ip.cn/']
start_urls = (
'http://ip.cn/index.php?k=1',
'http://ip.cn/index.php?k=2',
'http://ip.cn/index.php?k=3',
... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
c0ba0c1c4a7e610091accae47b439c392c31c270 | c3f7b8be5cac3114a4677595eea18d6c348dc1a0 | /python/src/main/dec05/main.py | 31b245b24877b76e1399bd05de36e1a67308df3a | [] | no_license | andersberggren/AdventOfCode2017 | c3f051258009909ecadfd1c2694cbfcc3e0155d2 | dcd992caa02ffe3efcee524dbe699e79779dd540 | refs/heads/master | 2021-05-06T03:38:30.965484 | 2019-02-14T15:40:45 | 2019-02-14T15:40:45 | 114,907,937 | 0 | 0 | null | 2017-12-20T17:42:48 | 2017-12-20T16:24:20 | Java | UTF-8 | Python | false | false | 1,381 | py | from aoclib.filereader import get_file_as_string
class CPU:
def __init__(self, instructions, get_instruction_increment):
"""
Arguments:
instructions A list of integers
get_instruction_increment A function that takes one argument (value at cursor),
and returns ... | [
"anders.berggren@acino.se"
] | anders.berggren@acino.se |
58e8049b4308e47c9da4d3b5d8369565004a7317 | cc353e162aba76b3af7204b4d40612fad88c8e96 | /demo/LogSig_demo.py | 023f0894c8f47c71bf79ac333cbc20bc42be0a04 | [
"MIT"
] | permissive | Wapiti08/logparser | 42f63bddc5d7da197f528053efc9d45b6188be7f | c342c7e688b51f9c214a64e22316f63f5575583c | refs/heads/master | 2020-09-05T08:22:24.898375 | 2020-05-13T04:54:26 | 2020-05-13T04:54:26 | 220,039,739 | 2 | 0 | MIT | 2019-11-06T16:19:51 | 2019-11-06T16:19:51 | null | UTF-8 | Python | false | false | 640 | py | #!/usr/bin/env python
import sys
sys.path.append('../')
from logparser import LogSig
input_dir = '../logs/HDFS/' # The input directory of log file
output_dir = 'LogSig_result/' # The output directory of parsing results
log_file = 'HDFS_2k.log' # The input log file name
log_format = '<Date> <Time> ... | [
"liujy725@gmail.com"
] | liujy725@gmail.com |
9b8e925996d69f6a5703ffec57d3807a744c47da | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03563/s872743727.py | cb825cb70547d5e642956ee160cde257aa7c8781 | [] | 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 | 67 | py | R, G = (int(input()) for i in range(2))
R += (G - R) * 2
print(R) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2ed1718509ff4352e9ff5702ae4939f1483978dc | 45a0434de7cb5aaf51f372a9ea39c2e62528e8d7 | /unigrams_evaluate_krapivin.py | b29eaf092995090a80be42c0fcb04a9411da166a | [] | no_license | hongtaowutj/Seq2Seq-Keyphrase-Generation | 44b5b24f3af7a85c24fc5ef231c53c1dac7e48ff | 6f2d08222b108b543b7628b32e98480f2e3a32b0 | refs/heads/master | 2020-03-27T10:43:09.941194 | 2018-07-23T07:21:35 | 2018-07-23T07:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,579 | py | #!/usr/bin/anaconda3/bin/python
# -*- coding: utf-8 -*-
# author: @inimah
import os
import sys
sys.path.append(os.getcwd())
# standar seq2seq
config_sts_ss_e1 = {
'title': 'sts_ss_e1 - krapivin',
'data_path': 'data/krapivin',
'result_path': 'results/krapivin/v1/sts',
'decode_path': 'results/krapivin... | [
"i.nimah@tue.nl"
] | i.nimah@tue.nl |
cac4ded60efec1e07c08fa7443785ae855f2bf32 | 592e77ed163ce83abd940004f56b5ebed0e3f726 | /Python/Project_multiple/philip/test.py_04Sep2015 | d321b0a22cb82d523d6dbcc6c9c0dff77d0408a6 | [] | no_license | publiccoding/os_deploy | 84703e4850bf33d7583f76aa471c023e0a1c5603 | a31611060bfffb85cc5ba3e656df61da6f28f665 | refs/heads/master | 2021-04-03T07:51:26.286215 | 2018-08-23T06:35:31 | 2018-08-23T06:35:31 | 124,385,606 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,513 | #!/usr/bin/python
import logging
import optparse
import os
import re
import subprocess
import binascii
def getFirmwareDict(csurData):
started = False
firmwareDict = {}
logger.info("Begin Getting Firmware Dictionary")
for data in csurData:
if not re.match(r'Firmware.*', data) and not started:
continue
el... | [
"thimmarayan.krishnappa@gmail.com"
] | thimmarayan.krishnappa@gmail.com | |
53bf3260554c29162aa61af5529780b35c8ffee8 | f4b79529109fbb4055f334d0d9c7c96cb0710447 | /colour/models/rgb/transfer_functions/tests/test_smpte_240m.py | 2d80f2d525c388027db767f80b4ff68490f35bfb | [
"BSD-3-Clause"
] | permissive | trevorandersen/colour | 167381b3d03e506a270a8d2a519a164808995437 | 02b595b26313c4b4f55adc41d599f90c4c9edbcd | refs/heads/develop | 2021-07-15T04:48:19.585586 | 2021-01-23T23:51:44 | 2021-01-23T23:51:44 | 230,421,054 | 0 | 0 | BSD-3-Clause | 2019-12-28T12:54:20 | 2019-12-27T10:10:30 | null | UTF-8 | Python | false | false | 5,056 | py | # -*- coding: utf-8 -*-
"""
Defines unit tests for :mod:`colour.models.rgb.transfer_functions.smpte_240m`
module.
"""
import numpy as np
import unittest
from colour.models.rgb.transfer_functions import oetf_SMPTE240M, eotf_SMPTE240M
from colour.utilities import domain_range_scale, ignore_numpy_errors
__author__ = 'C... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
0a02883d1dfc0ab8468e3aab4a52d301969dbc7b | 608bc4314c5d91744c0731b91882e124fd44fb9a | /protomol-test/MDLTests/data/SCPISMForceTest.py | f271521fa472a7dd0b7aa78f3731bcd893d969e1 | [] | no_license | kuangchen/ProtoMolAddon | bfd1a4f10e7d732b8ed22d38bfa3c7d1f0b228c0 | 78c96b72204e301d36f8cbe03397f2a02377279f | refs/heads/master | 2021-01-10T19:55:40.467574 | 2015-06-09T21:18:51 | 2015-06-09T21:18:51 | 19,328,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | # USING THE NEW STRUCTURE
from MDL import *
# PHYSICAL
phys = Physical()
io = IO()
io.readPDBPos(phys, "data/alanine.pdb")
io.readPSF(phys, "data/alanine.psf")
io.readPAR(phys, "data/alanine.par")
phys.bc = "Vacuum"
phys.cellsize = 5
phys.exclude = "scaled1-4"
phys.temperature = 310
# FORCES
forces = Forces()
ff = f... | [
"kuangchen@ucla.edu"
] | kuangchen@ucla.edu |
d5ec7f84751b309de086c836853f9c437e490a43 | 96f32051b1fcd322534fdf1f590704b7f48e08e3 | /otx_review/migrations/0005_auto_20170111_0241.py | cbee2729a35595fad76e240ff15a6c438399205e | [
"Apache-2.0"
] | permissive | NYULibraries/dlts-enm-tct-backend | 0f1ebad7d7334d41b4f24b2243639314c6ed1353 | 07455a660fb2cb8bc91a54f7f12d150923678157 | refs/heads/master | 2020-05-18T14:36:31.041830 | 2017-09-30T17:51:16 | 2017-09-30T17:51:16 | 84,251,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-11 07:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('otx_review', '0004_report'),
]
operations = [
migrations.AlterField(
... | [
"go.for.dover@gmail.com"
] | go.for.dover@gmail.com |
4c27d8b576bdf21b35f28decd7dcb86afac09d95 | ed9e681b126396daba008ac41cb7065885e9a53b | /doc/source/conf.py | 0e662856efc4ea3a0a853c3d8d98decb2dc3765e | [
"MIT"
] | permissive | noisiver/pydarkstar | 5519ddefd7cc4916bf1a73138abb146b94c3c2c2 | ac8adf198988c6f4cd42ee033a36369ecc9eaf28 | refs/heads/master | 2023-06-01T18:33:27.656240 | 2021-06-27T01:01:55 | 2021-06-27T01:01:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,708 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# pydarkstar documentation build configuration file, created by
# sphinx-quickstart on Tue Sep 29 07:48:36 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
#... | [
"adam.gagorik@gmail.com"
] | adam.gagorik@gmail.com |
4b06f0847781176e24c0d6adae443650657057e9 | 4315836a3a360c646839c88452dadbb3b3cbdf60 | /Level 1/ProTwo/AppTwo/views.py | 361f7489408e58bfa1dd35742d769af13a07f3ce | [] | no_license | hyungtaecf/Bootcamp-Django | 77449c3a6487030d0951aa58ec20c225427b3034 | 4fe0daaa385f9eca686ba7ea4631ae34b9ba1d8b | refs/heads/master | 2021-02-13T03:16:41.824959 | 2020-03-19T15:59:15 | 2020-03-19T15:59:15 | 244,656,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("<em>My Second App</em>")
def help(request):
help_dict = {'insert_help':"I am in help view!"}
return render(request,'AppTwo/help.html', context = help_dict)
| [
"hyu_03@hotmail.com"
] | hyu_03@hotmail.com |
7a6c5edbc602dffad9fda4183effeb4c5292a747 | 684dfafe6aa74546864150f969165f8239273137 | /funcx/tests/test_status.py | 6de15148dfc46085164097606390e45f27eb9083 | [
"Apache-2.0"
] | permissive | basilw/funcX | af668e55c147af75f1426839e5fefffaa13b717f | 65f887e76af0a8c80fef064c1654caf9eacfb750 | refs/heads/master | 2023-02-27T00:13:21.946707 | 2020-08-20T14:39:55 | 2020-08-20T14:39:55 | 300,139,035 | 0 | 1 | Apache-2.0 | 2020-10-01T04:14:58 | 2020-10-01T04:14:57 | null | UTF-8 | Python | false | false | 2,270 | py | import json
import sys
import argparse
import time
import funcx
from funcx import FuncXClient
from funcx.serialize import FuncXSerializer
fxs = FuncXSerializer()
funcx.set_stream_logger()
def sum_yadu_new01(event):
return sum(event)
"""
@funcx.register(description="...")
def sum_yadu_new01(event):
return sum... | [
"yadudoc1729@gmail.com"
] | yadudoc1729@gmail.com |
a2a966ccd34c0dd2959c746494fc28f7ae58eee5 | 184b4f3d4f20f001a8c00db6f5eaab96a9c5cf48 | /setup.py | 9cccb614eaa93193b2fcf020ef6f80ae9de3062e | [] | no_license | reinbach/scales_example | bd4371a84b348b42fb8c1b0af1a3669ac719a6a2 | d25132c6a08ee46c5b3d8f6cc13be93ef47caf5b | refs/heads/master | 2016-09-10T12:06:22.123471 | 2012-12-10T14:02:00 | 2012-12-10T14:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | #!/usr/bin/env python
from setuptools import setup
requires = [
'Flask==0.9',
'scales==1.0.2',
'gevent==0.13.8',
]
setup(
name='Scales Example',
version='0.1',
description='Example of scales in action',
author='Greg Reinbach',
author_email='greg@reinbach.com',
install_requires=requ... | [
"greg@reinbach.com"
] | greg@reinbach.com |
1da62a42330e310c09248640c8a0ee7c77c4090d | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/countingValley_20200625161222.py | a98bbe555ded8353e153754cbd50952291413b4f | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | def countingValleys(str):
# no need to split cause you can traverse throught a str
# how to differentiate between mountain and valley
# mountain you go up then down
# valley you go down then up
valley = 0
seaLevel = 0
mountain = 0
journey = 0
i = 0
while i < len(str)... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
d02dba4390971d6e98f9398db57324a80234df73 | f6ddf2e228483227cfb53549cee9cb5094443a77 | /vmchatinput/compress.py | dd73d761d0ac0f1baf6baa39073a28a59e455869 | [
"MIT"
] | permissive | chfoo/vmchatinput | 0b28fd8a778947c88ea8d3c100f0c0c6a26722ab | f48cea879c9a989eb1a358b532f4dda934ba521b | refs/heads/master | 2021-01-25T10:39:01.554513 | 2015-10-11T20:51:08 | 2015-10-11T20:51:08 | 40,464,299 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,236 | py | import datetime
import glob
import logging
import os
import re
import subprocess
import threading
import time
_logger = logging.getLogger(__name__)
LOG_GLOB = '/log.*-*-*[0-9]'
INPUT_LOG_GLOB = '/[0-9]*-*-*[0-9].csv'
IMAGES_GLOB = '/[0-9]*-*-*[0-9]/[0-9]*T*[0-9].png'
class CompressThread(threading.Thread):
def... | [
"chris.foo@gmail.com"
] | chris.foo@gmail.com |
7f5ea105f7d7190699273e5c8867966837eb6c9a | 3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2 | /src/Week9/Sets and Maps(Dictionaries)/Dictionaries/Creating Dictionaries.py | c5b6f0bf34fe674f0fdd45fceee69518382d116d | [] | no_license | theguyoverthere/CMU15-112-Spring17 | b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8 | b8287092b14e82d2a3aeac6c27bffbc95382eb34 | refs/heads/master | 2021-04-27T08:52:45.237631 | 2018-10-02T15:38:18 | 2018-10-02T15:38:18 | 107,882,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | # Create an empty dictionary
d = dict()
print(d)
# Create an empty dictionary with braces syntax
d = {}
print(d)
# Create a dictionary from a list of key value pairs
pairs = [("cows", 5), ("dog", 98), ("cat", 1)]
d = dict(pairs)
print(d)
# Statically allocate a dictionary
d = {"cows": 5, "dog":98, "cat":1}
print(d)
| [
"tariqueanwer@outlook.com"
] | tariqueanwer@outlook.com |
d07e5396d2c8156e4cb8985d72fc2c3fb9085113 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /output/StudentProblem/10.21.12.26/3/1569572588.py | a9caf7e389fdb32e6d39506616cae152d6098fea | [] | 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,663 | py | ============================= test session starts ==============================
platform darwin -- Python 3.7.4, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
rootdir: /tmp
collected 0 items / 1 error
==================================== ERRORS ====================================
________________________ ERROR collecting te... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
a9978bec3855e8964fce1971e1bce9f8ff0b0723 | b29589f95734682663ae6cd40ab00eb0a94b6d87 | /longwave/lblnew_20160916/study__g1_threshold/n2o/conc_3.2e-07/band03a_wn_540_620/nv_100/dv_0.01/ng_3/g_ascending_k_descending/refPTs_P_1_T_250__P_500_T_250/ng_refs_1__2/ng_adju_0__0/getabsth_auto__auto/absth_dlogN_uniform__dlogN_uniform/klin_2.22e-20/atmpro_mls/wgt_k_1/wgt_0.9__0.5_0.95/wgt_flux_1/w_diffuse_1.8__1.66_... | 3e33fb91e2e53062b72ece7d08f1fea70113ef41 | [] | no_license | qAp/offline_radiation_notebooks | 02c2b2414ef1410f235776001a668f7df0b9f1cf | 44fb62391c27e4e314ad68ae3e91f6111b3172c5 | refs/heads/master | 2020-04-15T14:31:34.675322 | 2019-07-08T04:45:54 | 2019-07-08T04:45:54 | 43,118,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | DIR_FORTRAN = '/chia_cluster/home/jackyu/radiation/crd/LW/examples/separate_g_groups/study__lblnew_g1_threshold/n2o/conc_3.2e-07/band03a_wn_540_620/nv_100/dv_0.01/ng_3/g_ascending_k_descending/refPTs_P_1_T_250__P_500_T_250/ng_refs_1__2/ng_adju_0__0/getabsth_auto__auto/absth_dlogN_uniform__dlogN_uniform/klin_2.22e-20/at... | [
"llacque@gmail.com"
] | llacque@gmail.com |
f92c9d6119a8980608a65af631ce102b726c23a6 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Vulkan/FenceGetFdInfoKHR.py | 077b6dd9c4033f207b2826ca06a377d1eb59b4ab | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,214 | py | # encoding: utf-8
# module gi.repository.Vulkan
# from /usr/lib64/girepository-1.0/Vulkan-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of th... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
fa597abe107d19b37a1ce16436ad64305004835a | 491f9c9b618242953329a8e633fd9bf0bb1cb3fe | /learn_pytest/python_examination/test_r03_1.py | c5c591bfd2ae43ac6bb80b00a277662cb653c70c | [] | no_license | xshen1122/Scripts | 656d599e47a70a3b3e89e4f95cf97ee391ff9a7e | c1ed60abc7885d4a86ba077efc8bcf0fbdbafd75 | refs/heads/master | 2021-06-28T04:46:31.370809 | 2020-10-21T07:52:15 | 2020-10-21T07:52:15 | 172,480,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | # test_r03_1.py
# coding:utf-8
'''
find 100 - 200 all zhishu , output 10 numbers per line
主要难点是在于每10个数字输出一行,如何进行切片。
No2:
给定的二维数组中是否有重复的数。
已知该数组中保存了正整数
没有重复,返回真。不大于O(n)
将二维数组转换为1维数组,然后用set()
'''
def print_num():
def check_zhishu(num):
for i in range(2,num):
if num%i ==0:
return False
return True
zhishu_l... | [
"xueqin.shen@outlook.com"
] | xueqin.shen@outlook.com |
744dffba593837842f58c293f6c774b0dde199c2 | 23292aca06ebdd9b1f083290dd15ac37a146d7ad | /chat/consumers.py | 16f1198b057c849fef6365dfc529c04d28599a3c | [] | no_license | akashjadhav3/django-channels-chat-eg1 | f5dd264f09410d10e0b60fc3ad60adff95169dba | 63b8461f46d7809f02cbdd2cfb2cded44d348231 | refs/heads/master | 2022-11-24T01:33:44.411087 | 2020-07-29T09:30:25 | 2020-07-29T09:30:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | # chat/consumers.py
# Asynchronous code
import json
from channels.generic.websocket import AsyncWebsocketConsumer
class ChatConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.room_name = self.scope['url_route']['kwargs']['room_name']
self.room_group_name = 'chat_%s' % self.room_name
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f30da4ff404b72777310583d5c1245d3ff93af5b | 77548da871b686a7c1cbf2ca4e574ba0b886376c | /create_policy.py | 7a4e5ed0ce021b0b278ba3d35f9584991717a6df | [] | no_license | ravi-ojha/func-encr-py-gui | 2714ee776544ac2140f86175d79d89e9f377f21d | 886e9c63d51e3f85a75a395010a8d8e8b42229d9 | refs/heads/master | 2020-06-04T13:23:24.459395 | 2015-03-16T16:30:02 | 2015-03-16T16:30:02 | 31,597,139 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | #! /usr/bin/env python
# GUI was generated using PAGE v4.5 in conjuction with Tcl v8.6
from Tkinter import *
import sys
import ttk
import policy_builder
import boolean_logic_builder
import create_policy_support
def vp_start_gui():
'''Starting point when module is the main routine.'''
global val, w, root
... | [
"raviojha2105@gmail.com"
] | raviojha2105@gmail.com |
70d09c259f45cbc8ba7607d8950cfd84d2a7539a | 06e0c89781ae9c07a55090c43d8609e9dfefbb6f | /Hospital5/Hospital5/wsgi.py | 325911d26fe80403282528ba83162d5d98fb3efe | [] | no_license | mfarzamalam/django | d6d4302910301ae3e135a95a9982f3bd01218260 | 935a60d3ac874b7adb4287b4c2d172b89c6551b9 | refs/heads/master | 2023-04-10T21:06:11.601436 | 2021-04-27T21:31:47 | 2021-04-27T21:31:47 | 345,129,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for Hospital5 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"mfarzamalam@gmail.com"
] | mfarzamalam@gmail.com |
3e7e96c02f7a4da8602e1e798a610a5770e19d32 | 6732dce33ccc8d3912c7dd9bb5a029988586a649 | /src/gdata/Crypto/Protocol/Chaffing.py | f5121197aa206f460b51167ea2034b472207063d | [
"Apache-2.0"
] | permissive | hamada2029/gdata-python3 | 8a0d3cb53b707b7ad2f826a486df254c813e7463 | c1028f6567b480908b90848523bebaf78e6b49f7 | refs/heads/master | 2021-01-22T12:53:28.196826 | 2014-11-30T07:05:30 | 2014-11-30T07:05:30 | 46,613,040 | 1 | 0 | null | 2015-11-21T11:44:20 | 2015-11-21T11:44:19 | null | UTF-8 | Python | false | false | 9,498 | py | """This file implements the chaffing algorithm.
Winnowing and chaffing is a technique for enhancing privacy without requiring
strong encryption. In short, the technique takes a set of authenticated
message blocks (the wheat) and adds a number of chaff blocks which have
randomly chosen data and MAC fields. This means... | [
"jvarshney20@gmail.com"
] | jvarshney20@gmail.com |
3f8fb82beb78b0f0fb4d8b71cd2a756d8362866d | 842488e7875440a83eb87759c39feefa1d59e1e4 | /ext_helm_convg_test.py | c52f30ba1b47ebe0febf5f3462ff56d9f5b3dfc8 | [
"MIT"
] | permissive | bhosale2/2d_helmholtz_solver_CFIE | 3285b288b75a555975054541a4f3645e641648d6 | 5b12e7d83aa37bee5b302b3a2f0e6ca8948cc656 | refs/heads/master | 2020-11-24T10:09:20.638576 | 2019-12-14T22:52:44 | 2019-12-14T22:52:44 | 228,100,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | from quad import QuadratureInfo
import matplotlib.pyplot as plt
import numpy as np
import numpy.linalg as la
from kernels import eval_sp_dp_QBX, eval_target, bvp
from plotset import plotset
from scipy import stats
def ext_helmholtz_convg(qbx_order, k):
"""
Tests external Helmholtz solution by placing monopole... | [
"bhosale2@illinois.edu"
] | bhosale2@illinois.edu |
47ab8d84f512e5f35639dd98c48a550bde0a338a | d71661f3799085894074609fa506d509fada34d4 | /pbase/day09/code/star_args.py | a4b2495ab7c79ac7d55f1f3741e3a5fa33a20bf1 | [] | no_license | vincentlyc/Learn-Path | fb84320610902dece007fb7d67038b751808f60a | 4208312b60c44876307c8770d96a35cc3d087c75 | refs/heads/master | 2020-03-24T18:49:39.424312 | 2018-08-09T14:41:59 | 2018-08-09T14:41:59 | 142,900,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | # star_args.py
def myfun(*args):
print("實參個數是", len(args))
print(args)
i = 1
for x in args:
print("第",i ,"個參數是:", x)
i += 1
myfun(1,2)
print('-----------------------------')
myfun("100",200,"Three", 4.4)
| [
"vincent11028@gmail.com"
] | vincent11028@gmail.com |
eec845da8bd51dcfc60e60790028ed468428bead | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/sympy_sympy/sympy-master/sympy/printing/octave.py | 4c0887a3ad8f4358fa327e1a26b4991fb17d873f | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 23,630 | py | """
Octave (and Matlab) code printer
The `OctaveCodePrinter` converts SymPy expressions into Octave expressions.
It uses a subset of the Octave language for Matlab compatibility.
A complete code generator, which uses `octave_code` extensively, can be found
in `sympy.utilities.codegen`. The `codegen` module can be us... | [
"659338505@qq.com"
] | 659338505@qq.com |
05495e49c349e184fdde4882816b7d3022a8df28 | 7234e6c72eb3f09c4a66dbe91f00fdf7742f010f | /algo/string/backspaceStringCompare.py | c3c5a36a2b2bc04d483b137c7dac6cddefb34523 | [] | no_license | srinathalla/python | 718ac603473e7bed060ba66aa3d39a90cf7ef69d | b6c546070b1738350303df3939888d1b0e90e89b | refs/heads/master | 2021-06-13T06:11:42.653311 | 2021-02-19T06:01:41 | 2021-02-19T06:01:41 | 150,374,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | class Solution:
def backspaceCompare(self, S: str, T: str) -> bool:
sp = len(S) - 1
tp = len(T) - 1
sskip = 0
tskip = 0
while sp >= 0 or tp >= 0:
while sp >= 0:
if S[sp] == '#':
sp -= 1
sskip += 1
... | [
"srinathb10j.ik@gmail.com"
] | srinathb10j.ik@gmail.com |
72b68d16a64d167dc4237e3e2fc2757f6092d086 | f428e913527744e8386f4b804be5e9d4183bba81 | /DcsUi/MainToolBarClass.py | e9ff6f78f6f467fdedeeadd9f0829c44c73dc5ca | [] | no_license | a452669850/DCSBJ | b6940b13bab583811322393c720863cb64ab9cd4 | b03b1c98982f94847d97abca3051f1ef1c5cc178 | refs/heads/master | 2023-01-02T00:47:36.457822 | 2020-10-20T13:03:50 | 2020-10-20T13:03:50 | 305,708,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,212 | py | from PyQt5.QtWidgets import *
from PyQt5.QtCore import Qt, QSize
from PyQt5.QtGui import QIcon
import os
import collections
from static.Png import *
from utils.AcountModels import getPermission
class ToolBarSetting():
def __init__(self, MainWindow):
super().__init__()
if MainWindow.__class__.__nam... | [
"a452669850@outlook.com"
] | a452669850@outlook.com |
eaeb618fc189effaa91e046ba95265c279813601 | 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_44/run_cfg.py | ef2031fffebb8a081c6538188aaea49042bdc191 | [] | 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 |
0e37d8fc42b621bf523c217335cd64e976bcb779 | 036c69a0c27cfdc0b0d9d6169caf027635b66325 | /leetcode407.py | ed63c5d3cab1f82400dbbb47f2d1138661184de6 | [] | no_license | Marco2018/leetcode | 19b6b2c19452babf0198f8705e0dd1f31c321017 | c7dc709a7a9b83ef85fbc2d0aad7a8829f1035d1 | refs/heads/master | 2020-03-23T17:34:09.637831 | 2020-01-18T11:00:36 | 2020-01-18T11:00:36 | 141,865,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | class Solution:
def trapRainWater(self, grid):
"""
:type heightMap: List[List[int]]
:rtype: int
"""
if len(grid) == 0:
return 0
m = len(grid)
n = len(grid[0])
heap = []
visit = set()
# init , put surrounding in... | [
"513045631@qq.com"
] | 513045631@qq.com |
64086008d6959366de5f151a7d8f0e7191a0241f | c6d84655a8424c8ade139fd79ae1bbb1514f8c88 | /06multi_task/process_pool.py | 21a6d1133e5b4e05949b63fe74878aac4ef039d6 | [] | no_license | eryeer/pythonStudy | 64240934ce463e7e9714fc7f0d7a6608cefab837 | 5c6a69ef10c0df38f89aee7e5d5cc9802a2b424b | refs/heads/master | 2020-04-08T15:16:19.579466 | 2019-04-15T06:13:41 | 2019-04-15T06:13:41 | 159,472,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | from multiprocessing import Pool
import os, time, random
def worker(msg):
t_start = time.time()
print("%s开始执行,进程号为%d" % (msg, os.getpid()))
# random.random()随机生成0~1之间的浮点数
time.sleep(random.random() * 2)
t_stop = time.time()
print(msg, "执行完毕,耗时%0.2f" % (t_stop - t_start))
if __name__ == '__ma... | [
"eryeer@163.com"
] | eryeer@163.com |
33147cbdaf2aed49dc049e271227ab245e33ed5c | 24bc4990e9d0bef6a42a6f86dc783785b10dbd42 | /ios/chrome/browser/ui/browser_view/DEPS | c2df8930fc674e64226a2ff6967f5d884787b049 | [
"BSD-3-Clause"
] | permissive | nwjs/chromium.src | 7736ce86a9a0b810449a3b80a4af15de9ef9115d | 454f26d09b2f6204c096b47f778705eab1e3ba46 | refs/heads/nw75 | 2023-08-31T08:01:39.796085 | 2023-04-19T17:25:53 | 2023-04-19T17:25:53 | 50,512,158 | 161 | 201 | BSD-3-Clause | 2023-05-08T03:19:09 | 2016-01-27T14:17:03 | null | UTF-8 | Python | false | false | 207 | include_rules = [
"+ios/chrome/browser/ui/browser_view",
]
specific_include_rules = {
"key_commands_provider_unittest\.mm": [
"+ios/web/find_in_page/java_script_find_in_page_manager_impl.h",
],
}
| [
"roger@nwjs.io"
] | roger@nwjs.io | |
2ba086c85485c5316c284662398d6f513b965b94 | f71967d1b0c1359df652e5f096c60170f0c57074 | /app.py | 420f720b71e1cb7867611250c8d90be2b9a874b3 | [] | no_license | aliwo/HelloFlask | 44a6cf09597a0c070fb0c6e9a7952a84d38bc68a | dada8792107c9f2635524521591fc79233fd317d | refs/heads/master | 2021-06-22T16:32:23.165889 | 2019-08-14T01:28:07 | 2019-08-14T01:28:07 | 202,249,105 | 1 | 0 | null | 2021-03-20T01:30:06 | 2019-08-14T01:23:31 | Python | UTF-8 | Python | false | false | 167 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
if __name__ == '__main__':
app.run(host='0.0.0.0')
| [
"aliwo@naver.com"
] | aliwo@naver.com |
fbb887bd233c679525041056d000f0cbe6bebdaf | 5e0755091efd2d4ed61bead8aa38b45bab5a8b07 | /python/anyascii/_data/_30b.py | 302bb7dfe7b76586b8d20c790b3e47d04f42b4b1 | [
"ISC"
] | permissive | casept/anyascii | c27261d87257c17c47fe0e9fc77438437de94c1c | d4f426b91751254b68eaa84c6cd23099edd668e6 | refs/heads/master | 2022-12-05T07:13:53.075144 | 2020-08-07T07:55:50 | 2020-08-07T07:55:50 | 285,904,577 | 0 | 0 | ISC | 2020-08-07T19:20:00 | 2020-08-07T19:19:59 | null | UTF-8 | Python | false | false | 443 | py | b='Ji O Lie Fu Qu Zhu Xian Tuo Hong Geng Xie Bi Zhu Qiao Zheng Ci Gai Beng Cheng Qiu Fu Chen Yun Zhen Mian Qin Yu Hua Qie Qi Xi Bi Zong Hu Tian Xiu Shan Zhi Miao Beng Qian Zong Cong Hui Quan Ni Zai Xuan Qi San Sui Zuan Zun Yu La Xie Lian Pu You Cong Guan Juan Lou Sha Dao ... | [
"hunter@hunterwb.com"
] | hunter@hunterwb.com |
c10e903310967d04930aa9f31243ac026395a707 | af43615e07f2bfaa908d6d96b4c90f98ce3ad47b | /rdr_service/alembic/versions/4318d20e8422_create_genomic_manifest_file_and_.py | cac1b105e21dd14c7ece5df7a61da268fbe79de4 | [
"BSD-3-Clause"
] | permissive | all-of-us/raw-data-repository | 11aa25385543f5f8ef706663b79ce181775c1c9a | 461ae46aeda21d54de8a91aa5ef677676d5db541 | refs/heads/devel | 2023-09-01T06:47:25.710651 | 2023-09-01T01:18:56 | 2023-09-01T01:18:56 | 66,000,771 | 46 | 22 | BSD-3-Clause | 2023-09-14T21:06:38 | 2016-08-18T13:47:08 | Python | UTF-8 | Python | false | false | 3,503 | py | """create genomic_manifest_file and genomic_manifest_feedback
Revision ID: 4318d20e8422
Revises: ba05cd337cdc
Create Date: 2020-11-19 11:34:35.688360
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
# revision identifiers, used by Alembic.
from rdr_service.genomic_enums import Genomi... | [
"noreply@github.com"
] | all-of-us.noreply@github.com |
e5a35e77d5a4b69df4652ab6023d9916799af82b | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/v1_0/files_v1_0/azext_files_v1_0/vendored_sdks/files/operations/_drives_list_content_types_operations.py | bd6a2f49c06bbae16f0d22597e7c86d062412537 | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 19,574 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
4018a05c2f9af1f6d5be676489df4ec72fd27f19 | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/lib/pymodules/python2.6/gtk-2.0/gi/module.py | 96a4c56b0d4b17bea802b726908b8c4805bfd38c | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | /usr/share/pyshared/gtk-2.0/gi/module.py | [
"root@xinli.xinli"
] | root@xinli.xinli |
6273668ec587376420d2f496850063459b144bfe | 49a46ab847bfe1b6c67d8acad6b511c577f8d05d | /bin/abspath | 0ec9bf515dd6bec445dde7e4d810ef62f704c21f | [] | no_license | bmustiata/dotfiles | f5dd22cadfefca9ad0ca3c7c80756bb11de4b25c | d4f012caffb972a1c86e700c92222a441c1ddf3d | refs/heads/master | 2023-09-06T06:24:59.919300 | 2023-09-05T06:12:43 | 2023-09-05T06:12:46 | 69,585,142 | 0 | 0 | null | 2023-05-01T20:37:24 | 2016-09-29T16:15:38 | Vim Snippet | UTF-8 | Python | false | false | 297 | #!/usr/bin/env python3
# resolves the relative path, and prints the absolute path,
# without resolving the links.
import sys
import os
if len(sys.argv) < 2:
print("you need to pass the relative path to the file")
sys.exit(1)
file_name = sys.argv[1]
print(os.path.abspath(file_name))
| [
"bogdan.mustiata@gmail.com"
] | bogdan.mustiata@gmail.com | |
44736bb60d8d7c0e537a8cff78fecc3b4fa8b29f | 753938feae47c1ce8edeaa35099c634fbafa3b99 | /test_functions/test_functions_results.py | 3f99e961029db9c2ebfc59611e5f43b9e29328d9 | [
"MIT"
] | permissive | dayoladejo/SwarmOptimization | c11cc799ec5a16a3a341ea0f2b5b9df1ea5f65d9 | 5445b6f90ab49339ca0fdb71e98d44e6827c95a8 | refs/heads/main | 2023-07-17T09:14:16.266657 | 2021-09-10T17:10:56 | 2021-09-10T17:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | #
# file: test_functions_results.py
#
# Summarize the test function by algorithm type and dimensions
#
# RTK, 08-Aug-2020
# Last update: 08-Aug-2020
#
################################################################
import numpy as np
import pickle
import sys
fname = sys.argv[1]
d = pickle.load(open(fname,"rb")... | [
"oneelkruns@hotmail.com"
] | oneelkruns@hotmail.com |
fb8fb15d5adb00186cc09e2b56f2462bd0e8781e | 597859a9438d0b4271cf82ff7639af03692fcd68 | /eatery_app/migrations/0005_user.py | b3ceec03f44819d7647ca7bf114aaa7b2a1d2b28 | [] | no_license | deerenae/eatery_app | 2a4a4c928c378eeae7c17a57059a3383b6f1cc91 | 70a3aff79193c88630a13c78d41cb0ef186ca7eb | refs/heads/master | 2022-08-14T01:11:15.769769 | 2020-05-27T15:49:00 | 2020-05-27T15:49:00 | 264,508,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | # Generated by Django 3.0.6 on 2020-05-24 23:17
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('auth', '0011_update_proxy_permissions'),
('eater... | [
"github email address"
] | github email address |
ec689236e685f5f35cb7fa875dc324bb620aa688 | c0f4104194a7989e44d7f0161b2425c5a5bc3a98 | /magnum/tests/functional/api/v1/test_bay.py | 6c043b5ca87d6557f65c442b9412cd8c1831aa11 | [] | no_license | bopopescu/Openstack-2 | f65470bdd0ee4736c45b6f869f0453cb8eb446c8 | 6f06133562e3dfd490695a92c9ddf1a322675104 | refs/heads/master | 2022-11-28T09:19:21.633850 | 2016-06-23T07:55:32 | 2016-06-23T07:55:32 | 282,095,817 | 0 | 0 | null | 2020-07-24T01:44:49 | 2020-07-24T01:44:48 | null | UTF-8 | Python | false | false | 9,001 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | [
"egonmin@CN00119199"
] | egonmin@CN00119199 |
130463ed646aaaa750c641fe77b0c7c11ac81108 | 291c08a11a29ce995099f775ac0ef79cd69dd1fc | /accounts/views/rest/user.py | d68d3f32ac6e24ae10a0ae9ef8f8734e968c8109 | [
"MIT"
] | permissive | Amirsorouri00/neolej | 1e278a2216a961b8abedc32b30d4fccf5c431d0b | 8fa18f2c1a38b0a59ed7eeeed7ed37ef7b9dad97 | refs/heads/master | 2020-04-20T15:36:24.669991 | 2019-03-17T07:20:02 | 2019-03-17T07:20:02 | 168,935,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,926 | py | '''
.d8888b. 888 888 888 8888888 888
d88P Y88b 888 888 888 888 888
888 888 888 888 888 888 ... | [
"amirsorouri26@gmail.com"
] | amirsorouri26@gmail.com |
207de3261560c5dbc9ab48ccc1d046b41d414235 | d256e7a0124d7fe7a1051e5caa9f452fd88f80af | /remand/contrib/nginx/__init__.py | 8f3241d59185f85ca50972251beca4b83b920c85 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | mbr/remand | 2f94f96ec1f93781e3923e27236265fb9e7dc735 | 7cb08e8e0d3322825f2f964158a80f5ff3727fcc | refs/heads/master | 2023-08-22T23:32:05.066363 | 2019-01-30T18:30:35 | 2019-01-30T18:30:35 | 41,018,972 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | import os
from remand.lib import fs, proc, systemd
from remand import Plan, operation, Changed, Unchanged, info
from remand.util import any_changed
nginx = Plan(__name__, os.path.dirname(__file__))
@operation()
def enable_letsencrypt(auto_reload=True, remove_default=True):
changed = any_changed(
fs.upl... | [
"git@marcbrinkmann.de"
] | git@marcbrinkmann.de |
3beb6d221bed4589bbb561ed687aa9df2a7d6f68 | e96cc817c768915eeff46027ded14e759e8042ff | /数据结构/栈和队列/stack.py | 8a41a360813362e637c791b5ca63f5c8e8ec4afb | [] | no_license | fovegage/learn-python | e22a32207cf513ba0f8c3428e9c00138987c2359 | 93b8d3513769a0b7d492a7b515f289fe3f1efc4a | refs/heads/master | 2023-06-08T13:44:57.274677 | 2023-05-29T05:52:35 | 2023-05-29T05:52:35 | 148,493,932 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # -*- coding: utf-8 -*-
# @Time : 2018/11/16 15:39
# @Author : fovegage
# @Email : fovegage@gmail.com
# @File : stack.py
# @Software: PyCharm
class Stack():
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def length(self):
re... | [
"fovegage@gmail.com"
] | fovegage@gmail.com |
e3dee18dddd94f172dacc6c7ea7d7cfb6e6e52fa | 28ebfd5b44c4b60b385e43080c58e664d4bbbb6f | /wagtail/tests/testapp/migrations/0021_hidden_form_field.py | 5f246fa4819b9724f41904109fdc9f50e40fc43c | [
"BSD-3-Clause"
] | permissive | elsahu96/wagtail | 949571e2690e7b4cd840fd3d0b427f529f80e722 | e1fc584f1c00bc093cd41a82a0e42bd6516198e0 | refs/heads/master | 2021-07-21T11:38:02.074432 | 2017-10-30T10:34:31 | 2017-10-30T10:34:31 | 108,878,135 | 1 | 0 | null | 2017-10-30T16:30:27 | 2017-10-30T16:30:27 | null | UTF-8 | Python | false | false | 1,951 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-13 16:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tests', '0020_customdocument'),
]
operations = [
migrations.AlterField(
... | [
"matt@west.co.tt"
] | matt@west.co.tt |
c4cbcc6c6ff33fc8a0ce2a2c4f0425f41f0d9651 | c0e939260f6007966bcf5743e55e618ab1684569 | /recipe/collect_licenses.py | c7cd8f94675530afd008fa70142373d00ad116ed | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | conda-forge/pydata-sphinx-theme-feedstock | 96f1a629fd2c0a222b6b10baf7ef2dcb76ac2254 | 3711fb9ef4507cbabf9b7bc2fdfe73c827db5388 | refs/heads/main | 2023-04-09T07:27:34.353321 | 2023-03-30T21:28:24 | 2023-03-30T21:28:24 | 248,710,998 | 0 | 7 | BSD-3-Clause | 2023-03-30T21:28:25 | 2020-03-20T09:01:36 | Python | UTF-8 | Python | false | false | 741 | py | import shutil
from pathlib import Path
import os
import tempfile
SRC_DIR = Path(os.environ["SRC_DIR"])
PKG_VERSION = os.environ["PKG_VERSION"]
WHL = SRC_DIR / f"pydata_sphinx_theme-{PKG_VERSION}-py3-none-any.whl"
LICENSE_DIR = SRC_DIR / "third-party-licenses"
LICENSE_DIR.mkdir()
LICENSES = {
"font-awesome-LICEN... | [
"nick.bollweg@gmail.com"
] | nick.bollweg@gmail.com |
18f057da57612c57fb198cdfd7a8e685dac98355 | 5332fef91e044555e605bb37cbef7c4afeaaadb0 | /hy-data-analysis-with-python-spring-2019-OLD/part01-e04_multiplication_table/test/test_multiplication_table.py | c66fd19b068ce859287b7f77ad1be72ba2e48ed8 | [] | no_license | nopomi/hy-data-analysis-python-2019 | f3baa96bbe9b6ee7f0b3e6f6b8b0f3adfc3b6cc8 | 464685cb377cfdeee890a008fbfbd9ed6e3bcfd0 | refs/heads/master | 2021-07-10T16:16:56.592448 | 2020-08-16T18:27:38 | 2020-08-16T18:27:38 | 185,044,621 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | #!/usr/bin/env python3
import unittest
from unittest.mock import patch
from tmc import points
from tmc.utils import load, get_out
module_name="src.multiplication_table"
main = load(module_name, "main")
@points('p01-04.1')
class MultiplicationTable(unittest.TestCase):
def test_lines(self):
main()
... | [
"miska.noponen@gmail.com"
] | miska.noponen@gmail.com |
d42849300b095b48a7befc2f88e35239dafdffb6 | 20674c17d815214bf66b75be686bb8a45c0f5914 | /version1/468_Validate_IP_Address.py | 9f08848d28fdc67911e5632a8e8f566e56acccd0 | [] | no_license | moontree/leetcode | e7b670969fe20785b15aae82996875fd66de1b08 | f2bf9b13508cd01c8f383789569e55a438f77202 | refs/heads/master | 2021-05-20T20:36:45.615420 | 2020-04-02T09:15:26 | 2020-04-02T09:15:26 | 252,408,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | """
Write a function to check whether an input string is a valid IPv4 address or IPv6 address or neither.
IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers,
each ranging from 0 to 255, separated by dots ("."), e.g.,172.16.254.1;
Besides, leading zeros in the IP... | [
"zhangchao@zhangchaodeMacBook-Pro.local"
] | zhangchao@zhangchaodeMacBook-Pro.local |
7b539cdf5e3c7a10e5c16fa7e98dcf78d7a51a6b | 8b05c857bf0db4bf1bd794c7ad93ec28118bad08 | /main.py | 9aa096e392c3cb2a4e3cfd73bb5577bb79e9854f | [] | no_license | idelfrides/POC_python_RegEx | e745a77f72bf33c80b46bedc939b3370de566486 | 1e36cdce4a2e532f5148bd47b8000c4168c19f0e | refs/heads/master | 2020-08-12T20:51:44.720432 | 2019-10-14T18:47:08 | 2019-10-14T18:47:08 | 214,839,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | """ Main method
This is a proof of concept made
to Regular Expressions in Python
-------------------------------------
"""
from python_RegEx import reg_ex
def main():
""" Main method
This is a proof of concept made
to Regular Expressions in Python
"""
reo = reg_ex.RegE... | [
"idelfridesjorgepapai@gmail.com"
] | idelfridesjorgepapai@gmail.com |
2a9f28f48ef64cc66888abd6842d8ad2f23a35ff | 35fc084d330e62575c12bc714cbf414c082e9f8a | /ramdisk/target/common/usr/lib/python3.7/site-packages/pytablereader/factory/_file.py | 5112c2459001efadc3d7b181711d7a44db9debad | [
"Python-2.0"
] | permissive | BM1880-BIRD/bm1880-system-sdk | 8de97c6c0985b3bee8b06fb5fd2ee8daec693665 | eff2d6f5442676c04a221a62139864658208f57e | refs/heads/master | 2022-04-08T09:20:47.919696 | 2020-03-09T02:43:08 | 2020-03-09T02:43:08 | 159,283,885 | 29 | 9 | null | null | null | null | UTF-8 | Python | false | false | 5,284 | py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import
from __future__ import unicode_literals
from .._common import get_extension
from .._logger import logger
from ..csv.core import CsvTableFileLoader
from ..html.core import HtmlTableFileLoad... | [
"haitao.suo@bitmain.com"
] | haitao.suo@bitmain.com |
7e351d010b37a067a995d414345a5effbe2f7269 | 074e2815a0c3dbb03cae346560c27e409a4444e4 | /gui/demos/tbox.py | 0427874dc0c7a7f3cd713a5ac8f0c3e7a7b98256 | [
"MIT"
] | permissive | maysrp/micropython-nano-gui | 9127e1cbb024810ac2920c8227a448d6cf4678b1 | 5dbcc65828106cfb15c544bb86cc7380a9a83c47 | refs/heads/master | 2023-01-19T18:06:52.286059 | 2020-11-29T10:26:11 | 2020-11-29T10:26:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | # tbox.py Test/demo of Textbox widget for nano-gui
# Released under the MIT License (MIT). See LICENSE.
# Copyright (c) 2020 Peter Hinch
# Usage:
# import gui.demos.tbox
# Initialise hardware and framebuf before importing modules.
from color_setup import ssd # Create a display instance
from gui.core.nanogui import... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
372fc2dbe8460fdff90b88c2a8e14a7257f16aab | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnapostolo.py | 320396092448d474c1b52913fba888f5051e4596 | [] | 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 | 25 | py | ii = [('HogaGMM.py', 12)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
3ebd6def0a8dfab5055b7a8d9de37e1f6d5e579d | 19c47064e35c89cecd20b02ba31d418f719237b8 | /tests/test_cli/test_oyinit.py | ac3d3be3a7bdb81c8c14f2b19661ed9c9917ddc8 | [
"MIT"
] | permissive | leelu/oy-cms | 65f111a06e5cf7b6d5a69fdee884cb900f4d9f0f | 66f2490be7eab9a692a68bb635099ba21d5944ae | refs/heads/master | 2022-11-24T17:42:34.636350 | 2020-03-14T08:54:34 | 2020-03-14T08:54:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import os
import pytest
from click.testing import CliRunner
from oy.cli.oyinit import init_oy_project
runner = CliRunner()
def test_oyinit_basic(app):
project_name = "test_project"
with runner.isolated_filesystem():
result = runner.invoke(init_oy_project, [project_name])
assert os.path.exist... | [
"musharraf.omer@gmail.com"
] | musharraf.omer@gmail.com |
d27f7888fcd169aaf2e987fd9668b2c4e55a64af | a9dc42e9f54b549fcdd695817e347abfd8f2869f | /old/old_bin/alfresco_cmip5_crop_mask_resample_non_tem.py | 14ab0e9b94edfee94a4a95ed9ff77baa498f8ab2 | [
"MIT"
] | permissive | yusheng-wang/downscale | 2e77d070115ead3034c154d29f1c533976228f13 | 3fe8ea1774cf82149d19561ce5f19b25e6cba6fb | refs/heads/master | 2023-04-10T03:25:08.806859 | 2019-09-21T17:34:35 | 2019-09-21T17:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,823 | py | def resample_to_1km( x ):
'''
template_raster_mask should be a mask in in the res/extent/origin/crs of the
existing TEM IEM products.
'''
fn, output_filename, template_raster_mask_fn = x
import rasterio, os
from rasterio.warp import RESAMPLING, reproject
import numpy as np
rst = rasterio.open( fn )
rst_arr ... | [
"lindgren.mike@gmail.com"
] | lindgren.mike@gmail.com |
7624b5c8444f6b9232869af10014d32cf596633a | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/cr-buildbucket/test/tokens_test.py | 320043bf03502d954f08758fd3bbdc3ba0b83008 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 677 | py | # Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from testing_utils import testing
import tokens
class BuildTokenTests(testing.AppengineTestCase):
def test_roundtrip_simple(self):
build_id = 12345... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
c2fb042b25eec301d38342eb885cebcc0488257a | 51d65cbed3df1e9e3a0d51f79590ee12f88291d1 | /position_classification/reporting/sklearn_reporting.py | 76058849cd94f16c83d0c4d50417dcccebbd3d86 | [
"MIT"
] | permissive | apacha/Mensural-Detector | f9332c23854263c6a3f89e8b92f3f666f8377ed8 | 05c91204cf268feaae84cd079dbe7a1852fba216 | refs/heads/master | 2022-09-23T21:20:53.376367 | 2022-08-31T08:36:35 | 2022-08-31T08:36:35 | 137,372,669 | 12 | 6 | null | null | null | null | UTF-8 | Python | false | false | 6,301 | py | import warnings
import numpy as np
import sklearn
from sklearn.metrics import precision_recall_fscore_support
from sklearn.utils.multiclass import unique_labels
def classification_report(y_true, y_pred, labels=None, target_names=None,
sample_weight=None, digits=2, average='weighted'):
""... | [
"alexander.pacha@gmail.com"
] | alexander.pacha@gmail.com |
3e0ed07670c2351f0201c84faaef621064583c51 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/2762.py | ed2c5bceca6513edc267a4600f053dcc2f08cfdf | [] | 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 | 2,324 | py | '''
Created on Mar 19, 2016
@author: elmoatasem
'''
int2Str = lambda x:str(x) # map(int2Str,[1,2]) : [1,2] > ['1', '2']
intList2StringList = lambda x: map(str,x) #map(intList2StringList, [[1,3,4],[4,5,4]]) : [[1, 3, 4], [4, 5, 4]] > [['1', '3', '4'], ['4', '5', '4']]
strList2IntList = lambda x: map(int,x)#map(str... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
27d984e44ca80804b0772231b9e12ba67317480e | 5ca7d629622128ecc389f87ec20f784ffa458b2c | /screens/MainScreen.py | b62a43146dd6736458da6af9e4c1e9df49dc3b49 | [] | no_license | P4SSER8Y/lcdproc-client | a4ebf9deff75765dbcc00679f7e2036c8157e8b2 | 8028115e6418566dcbb0f0c12d31da3b23e9c776 | refs/heads/master | 2021-05-31T07:30:13.716572 | 2016-04-23T08:52:08 | 2016-04-23T08:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | #!/usr/bin/python
from ScreenBase import ScreenBase
import subprocess
import re
import psutil
from datetime import datetime
now = datetime.now
from time import sleep
class MainScreen(ScreenBase):
def getCPUTemp(self):
temp_raw = subprocess.check_output(["vcgencmd", "measure_temp"]).decode("utf8")
... | [
"beobachter70@163.com"
] | beobachter70@163.com |
12ec069bf3a56deb5104aa9902f775f2a08a3718 | 25404f4cfb9be3e6f1b3fe31a1554459eb200813 | /my_test/my_pytest/fixture/test_app.py | 7dd55d1e6ff8c470ec2b32fe1348d151f1b855cd | [] | no_license | nightimero/annal_report_test | 1c6eb4b71482f870c753f5084212afd071929f57 | 7bbc76ba703527ba8f4b84fbdb94fd57b37b9887 | refs/heads/master | 2021-09-06T21:18:59.534963 | 2018-02-11T15:31:21 | 2018-02-11T15:31:21 | 103,259,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # -*- coding: utf-8 -*-
import pytest
class App(object):
a = 1
b = 2
@pytest.fixture(scope='module')
def app():
return App()
def test_smtp_exists(app):
print app.a
app.a = 3
print app.b
app.b = 4
assert app.a
def test_smtp_exists2(app):
print app.a
print app.b
assert ... | [
"chenxiang@aiknown.com"
] | chenxiang@aiknown.com |
14e462c567735410124e7078da23460b67c87d9d | dee7875730c0f40655224b8c42c0c7679907af26 | /franka_interface/src/franka_interface/arm.py | 35e4de97becd9230326f75cd996f9283c0f5710c | [
"Apache-2.0"
] | permissive | codacy-badger/franka_ros_interface | 0c7aba115858a0fa8d328230f770b696d757257a | 906ed12eddd86f0d9f427a31b1356c399dd054a3 | refs/heads/master | 2022-11-30T18:40:22.252560 | 2020-08-11T18:00:56 | 2020-08-11T18:00:56 | 249,715,019 | 0 | 0 | Apache-2.0 | 2020-03-24T13:26:44 | 2020-03-24T13:26:43 | null | UTF-8 | Python | false | false | 32,414 | py | # /***************************************************************************
#
# @package: franka_interface
# @metapackage: franka_ros_interface
# @author: Saif Sidhik <sxs1412@bham.ac.uk>
#
# **************************************************************************/
# /*****************************************... | [
"saifksidhik@gmail.com"
] | saifksidhik@gmail.com |
82d25ef5c20787f7b4df8eca5dd31e62e4af1466 | 05f9601d3cc9c9cf4c4d877047082cc8ada22c66 | /Veiligheid/lib/python2.7/site-packages/pylint-0.15.2-py2.7.egg/pylint/test/rpythoninput/func_nobuiltin_map.py | d2c42b7d33c296227da6bec39c49268b4286d4a8 | [] | no_license | bmcharek/opendata101-workshops | 1c33491bce4a6bb4be358a7ca8fc23a9b729255b | 941cc193fa2d137d80149a906a503adc80888a40 | refs/heads/master | 2020-06-01T04:31:18.768851 | 2014-04-24T00:36:08 | 2014-04-24T00:36:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py |
import os
def function():
retval = map(function, [])
os.write(2, str(retval) + '\n')
def entry_point(argv):
function()
return 0
def target(*args):
return entry_point, None
| [
"bmcharek@gmail.com"
] | bmcharek@gmail.com |
59f3b98d76e0002576e5fa87f7b1b13044ea5203 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/spaCy/2018/12/jsonl2json.py | 796208c1a9a4d84f55e6b781812cf59e0d773d0a | [
"MIT"
] | permissive | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 671 | py | # coding: utf8
from __future__ import unicode_literals
import srsly
from ...util import get_lang_class
def ner_jsonl2json(input_data, lang=None, n_sents=10, use_morphology=False):
if lang is None:
raise ValueError("No --lang specified, but tokenization required")
json_docs = []
input_tuples = [s... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
655c91013f35ecd8600d90f3f470f9ace60201e8 | 31e9ae0b5431fdb643f228713001d052e93b303d | /tests/bundles/security/_bundles/security/serializers/user_serializer.py | 498e9b0ee08c04cfedb9518e9364307001e07686 | [
"MIT"
] | permissive | briancappello/flask-unchained | b35215b6e150febf8d00fd0164b49d355eae66e6 | a1f1323f63f59760e430001efef43af9b829ebed | refs/heads/master | 2023-05-13T09:11:14.745523 | 2022-04-03T00:27:09 | 2022-04-03T00:27:09 | 115,440,840 | 77 | 9 | MIT | 2023-05-01T23:40:25 | 2017-12-26T17:13:24 | Python | UTF-8 | Python | false | false | 865 | py | import re
from flask_unchained.bundles.api import ma
from flask_unchained.bundles.security.serializers import (
UserSerializer as BaseUserSerializer)
NON_ALPHANUMERIC_RE = re.compile(r'[^\w]')
class UserSerializer(BaseUserSerializer):
username = ma.String(required=True)
first_name = ma.String(required=... | [
"briancappello@gmail.com"
] | briancappello@gmail.com |
89ec8a2a697eec4ebe046661608c9722aa28b63d | d9da59459b0800711dd105fee21467345c67ddd3 | /Python/Console/Check_loop.py | 2240b9cf8a40601dbfc384fcd23a0018910a852e | [] | no_license | alex6446/ProgrammingStuff | fa61415c742967df4a30fbfe993e6ebb15b0f2e8 | 61b73095396fded3740b783edf9408269873a312 | refs/heads/master | 2022-12-04T02:14:27.962459 | 2021-06-29T14:48:59 | 2021-06-29T14:48:59 | 197,647,269 | 1 | 0 | null | 2022-11-22T03:56:19 | 2019-07-18T19:44:44 | Python | UTF-8 | Python | false | false | 181 | py | import sys
n = int(input())
matrix = []
for i in range(n):
matrix.append(input().split())
for i in range(n):
if int(matrix[i][i]) == 1:
print("YES")
sys.exit()
print("NO") | [
"alexeymedenitskiy@gmail.com"
] | alexeymedenitskiy@gmail.com |
845de4339c1c6e22a84186b5ebdd27c9618ed4c8 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /07_Machine_Learning_Mastery_with_Python/08/loocv.py | 0e37448878a92014d3d5a83d8ccbacd664ed13e4 | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | # Evaluate using Leave One Out Cross Validation
from pandas import read_csv
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import LeaveOneOut
from sklearn.model_selection import cross_val_score
filename = 'pima-indians-diabetes.data.csv'
names = ['preg', 'plas', 'pres', 'skin', 'test'... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
72d0b4d2f525fb1e962d9d157d6a70dee3198f72 | 0049832c5cbee4b96189b88b51653f48decde596 | /from server/code/download_cropping_reprojection/GK2A/L1/VI006/download.py | 22ea71f35b8e337b960a42b6f1ef39640d4ca199 | [] | no_license | henockmamo54/ImageFusion | 18cf27ec4a066456c0d575696fc986814d10a7e6 | 07e88b5cb1925f54b3b3659caa2abda2bf4f3a72 | refs/heads/master | 2023-06-16T12:38:07.352623 | 2021-07-19T00:52:02 | 2021-07-19T00:52:02 | 355,720,494 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 13 12:04:56 2021
@author: Henock
"""
import os
os.system('nohup python downloadscript.py 2019-08-01 2020-01-01 > log_VI006.txt &')
| [
"henockmamo54@gmail.com"
] | henockmamo54@gmail.com |
284c844ca2c1042dc936f8ba9403935f6727aa81 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=79/sched.py | 658292d39fdb0123b29fe29852d374c4b85fde48 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | -S 1 -X RUN -Q 0 -L 2 130 400
-S 0 -X RUN -Q 0 -L 2 126 400
-S 0 -X RUN -Q 0 -L 2 72 250
-S 0 -X RUN -Q 0 -L 2 55 175
-S 4 -X RUN -Q 1 -L 1 52 200
-S 4 -X RUN -Q 1 -L 1 37 150
-S 4 -X RUN -Q 1 -L 1 35 175
-S 4 -X RUN -Q 1 -L 1 30 125
-S 3 -X RUN -Q 2 -L 1 29 100
-S 3 -X RUN -Q 2 -L... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
77bbad02dbc04269a1c489c47ee7effa3390658e | f77d24a521e2da1dac3de1a6f4189c6734f5d7b0 | /index.py | 026c642969c65b044fbbdd6db4c9e3b1db0df5a1 | [] | no_license | kratsg/quora-pie-chart | 3ea60205c6da5158109719982b9d1b4c848b1f13 | fcee0d25d1d20da503834b2d56810096e1de48df | refs/heads/master | 2021-01-02T23:12:20.724106 | 2014-12-02T16:14:34 | 2014-12-02T16:14:34 | 27,273,615 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,987 | py | import os
from flask import Flask, send_file, render_template, request
import json
import brewer2mpl
import matplotlib.pyplot as pl
import numpy as np
from cStringIO import StringIO
from PIL import Image
import requests
from BeautifulSoup import BeautifulSoup
import logging
from logging import FileHandler
app... | [
"kratsg@gmail.com"
] | kratsg@gmail.com |
5822725d3916cfccbed065923c0cfa37c965f724 | b013456094e285103b3eaf140c700626f01fe6ed | /src/duckietown_swarm/__init__.py | ad4bbb0b419ceb079c18904665ea94a4165216a1 | [] | no_license | dt-fork/duckietown_swarm | ed99334f558f2b807482996f9f1476eff8ccba01 | 06fc184628dffefe64e927cec7aff9888b642d54 | refs/heads/master | 2021-05-03T08:02:40.091506 | 2018-02-07T03:23:18 | 2018-02-07T03:23:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | __version__ = '1.0.6'
from .irc2 import *
from .watcher import * | [
"acensi@ethz.ch"
] | acensi@ethz.ch |
7316b867e712fd8f25b22979ce5f379516258953 | 6c9b94ed0c4db326adb803ebb70cb52a97af4c03 | /hw3/hw3/bin/jsonschema | 299f934337ce3b5679ba7018f88fa50529502807 | [] | no_license | Amir-Omidfar/C247 | d83505015c6b23e54b259c570c3dcb4868cff254 | 88aa0438e5d62c3506218d904e1d3c144176db0e | refs/heads/master | 2021-07-18T03:42:40.659196 | 2021-01-18T05:27:37 | 2021-01-18T05:27:37 | 233,418,859 | 5 | 4 | null | 2020-01-12T16:34:37 | 2020-01-12T16:02:59 | Python | UTF-8 | Python | false | false | 275 | #!/Users/ApplePro/Desktop/School/GradSchool/Courses/C247/hw3/hw3/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jsonschema.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"omidfar73@gmail.com"
] | omidfar73@gmail.com | |
7b2becd97aca9776297e5857bf0727c4d2eaf367 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/ehsun/jamcoin.py | fd57503ca534192e2a933cff6548012125c2a6a0 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,973 | py | import itertools
def is_composite(n):
for d in [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 49, 53, 59, 61, 67, 71, 73, 77, 79, 83, 89, 91, 97, 101, 103, 107, 109, 113, 119, 121, 127, 131, 133, 137, 139, 143, 149, 151, 157, 161, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 203, 209, 211, 217, 2... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
9bbf9840abd73417be7a6a08f9aa6da0e6a49f25 | 609ee4aad38036c29456581f821a9bad4d6b729a | /pywe_pay/__init__.py | 7ac1549be56899f3aecba5b6da94dbca4e65cc01 | [] | no_license | sdkwe/pywe-pay | 32f14d218b0f8c029fb08a54df99ba70b90374b4 | daf1699c7dafd0960359b0c3f570f32cc906dc5f | refs/heads/master | 2020-05-29T15:13:05.371833 | 2020-04-27T07:32:54 | 2020-04-27T07:32:54 | 62,115,428 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | # -*- coding: utf-8 -*-
from pywe_pay.pay import WeChatPay
| [
"brightcells@gmail.com"
] | brightcells@gmail.com |
86e917298333fb5e97e91a8faf8f6fd34fe394e2 | 9439925a86711b6397e1cc4c537fd8693e03e6c2 | /alumni_network_api/messages.py | 98cda83f78638dd45ad36913c5fc403996d77c91 | [] | no_license | kartsridhar/Alumni-Network-Orchid | 31b7c7b7a1681dd4ef67ae9af2beafb80826b28d | 34ba67f7f1ed25c85d04cb3fe036c6860db5b9c6 | refs/heads/master | 2022-11-27T05:27:28.805214 | 2020-08-02T22:42:28 | 2020-08-02T22:42:28 | 274,255,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | from flask import Blueprint
from flask import Flask,request,jsonify
import mongoconfig
from bson.objectid import ObjectId
from bson import json_util
import json
messages_route=Blueprint('messages_route',__name__)
@messages_route.route('/getconvo',methods=['POST'])
def getconvo():
payload=request.json
q1={}
... | [
"contactkarthik34@gmail.com"
] | contactkarthik34@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.