blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0c31515b7bee2f75d50298d6e5f8034a79cfcdcc | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/train/python/dba09ec8b643897d28ddeb551b50ebe871f56568test_npcdmod.py | dba09ec8b643897d28ddeb551b50ebe871f56568 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 7,988 | py | #!/usr/bin/env python
# Copyright (C) 2009-2010:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
c5424efea98053414c6bf63cc096de8998a411cf | 6d233ad2059a941e4ce4c5b5ee3857b8a4a0d212 | /Everyday_alg/2021/09/2021_09_29/super-washing-machines.py | 4dd95588ead44ee7f767566be49366cffbb885ba | [] | no_license | Alexanderklau/Algorithm | 7c38af7debbe850dfc7b99cdadbf0f8f89141fc6 | eac05f637a55bfcc342fa9fc4af4e2dd4156ea43 | refs/heads/master | 2022-06-12T21:07:23.635224 | 2022-06-12T08:12:07 | 2022-06-12T08:12:07 | 83,501,915 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | # coding: utf-8
__author__ = 'Yemilice_lau'
"""
假设有 n 台超级洗衣机放在同一排上。开始的时候,每台洗衣机内可能有一定量的衣服,也可能是空的。
在每一步操作中,你可以选择任意 m (1 <= m <= n) 台洗衣机,与此同时将每台洗衣机的一件衣服送到相邻的一台洗衣机。
给定一个整数数组 machines 代表从左至右每台洗衣机中的衣物数量,请给出能让所有洗衣机中剩下的衣物的数量相等的 最少的操作步数 。
如果不能使每台洗衣机中衣物的数量相等,则返回 -1 。
示例 1:
输入:machines = [1,0,5]
输出:3
解释:
第一步: 1 ... | [
"429095816@qq.com"
] | 429095816@qq.com |
5d228ece9d0927cce69c4e5f117d66a84a74b75c | 2b2dc38c581d4313dee547af7f9714df29b9e000 | /tests/clients/test_model.py | 5f2080c485fbb4f707a727549250b41ab93f756b | [
"MIT",
"Apache-2.0"
] | permissive | jkeelan/faculty | 72145791171b3b32ee98c956e36d0f65ca74ff87 | 3cf50f243fba1bfe7a346de88654d3616ac35b15 | refs/heads/master | 2020-11-25T23:12:55.335878 | 2019-12-15T15:34:00 | 2019-12-15T15:34:00 | 228,884,443 | 0 | 0 | Apache-2.0 | 2019-12-18T16:55:28 | 2019-12-18T16:55:27 | null | UTF-8 | Python | false | false | 5,077 | py | # Copyright 2018-2019 Faculty Science Limited
#
# 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... | [
"wacrozier@gmail.com"
] | wacrozier@gmail.com |
0944e48d424011351fdc9b9140279c65238f531c | 2125593138c50b1fba5e46cd4d88d6c04d0b417a | /06_DJANGO_ADVANCE/03_IMAGE_UPLOAD/sns/migrations/0002_posting_likes.py | 0524e0f4d31ff8c728982f782cc3dca428482c9c | [] | no_license | minkishome/TIL-master | 5f0e6ef61b34a2983961ccf44f7523603ccb5907 | d8edc0ff8abff3b2239a2d751eee263b722013a6 | refs/heads/master | 2023-01-21T00:43:30.165535 | 2020-08-25T14:56:18 | 2020-08-25T14:56:18 | 203,070,283 | 0 | 1 | null | 2023-01-05T01:08:10 | 2019-08-19T00:18:31 | Python | UTF-8 | Python | false | false | 531 | py | # Generated by Django 2.2.6 on 2019-10-21 07:18
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('sns', '0001_initial'),
]
operations = [
... | [
"minkishome@gmail.com"
] | minkishome@gmail.com |
77443ff141c26d56888e06b61fc6591b0dfe0500 | 13b84a8620f928159b5205d89db61df0e5bfb60a | /20200613/prob_2.py | 11416e76908279b28ca8cfa999550e6de97e1875 | [] | no_license | steinstadt/CodeForces | 548c5a5fe23fba512a4b675eaf264bfce9b44c1e | db130008d3bd1a957bcad9ab40f3a9461c534174 | refs/heads/master | 2021-04-16T15:14:19.736276 | 2020-11-21T07:36:58 | 2020-11-21T07:36:58 | 249,365,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # Problem 1154 A - Restoring Three Numbers
# input
num_list = list(map(int, input().split()))
num_list = sorted(num_list)
# initialization
ans_list = [0] * 3
# count
for i in range(3):
ans_list[i] = num_list[-1] - num_list[i]
# output
print(" ".join(list(map(str, ans_list))))
| [
"steinstadt@keio.jp"
] | steinstadt@keio.jp |
666e013da80d8695c8333bae27b1d872f86c8955 | a51b1814a9bf2fdcf880772fefaa2ab79e8c7308 | /runestone/chapter-2/proper-python-class.py | 6eda5173d70e4fa37807360532296ec5fc1d76da | [] | no_license | 369geofreeman/MITx_6.00.1x | d38913805168440969034e1d82611b0dbcd7a29a | ba84f70cc4e7cfbd4b685b742aa87d3f85cbbf59 | refs/heads/master | 2023-04-21T01:55:08.538290 | 2021-05-13T13:03:50 | 2021-05-13T13:03:50 | 282,055,845 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | # Writing a proper Python class
# A class that works well in the Python ecosystem.
# Each class should have a docstring to provide some level of documentation on how to use the class.
#
# Each class should have a __str__ magic method to give it a meaninigful string representation.
#
# Each class should have a pro... | [
"geofreeman369@gmail.com"
] | geofreeman369@gmail.com |
426bcc79c656b5cffc242436a10ed9cfa654f2bb | 2c80605554a75d02d57278a9339217d9e7c37f5d | /bank/tpot/pipeline_gen_5_idx_1_2019.09.10_04-14-24.py | a2b5819cd32b6cf812a35dd23a1e7ebac6f852be | [] | no_license | zhangsheng377/Kesci | e28cbe155d8ff4be3307500a76644ec403dc86ae | 967bb3362ad1c6225eef5ca40baf610e9b0aeb6f | refs/heads/master | 2020-07-07T01:59:17.349753 | 2020-02-02T11:30:28 | 2020-02-02T11:30:28 | 203,208,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import RobustScaler
from xgboost import XGBClassifier
# NOTE: Make sure that the class is labeled 'target' in the data file
tpot_data = pd.read_csv('PATH/TO/... | [
"435878393@qq.com"
] | 435878393@qq.com |
cc9e00941de4cb85b76f01ec8444c338862ce15c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_mooching.py | bb4b21a3d0e13344ce2578feccbf8078202a50f3 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py |
from xai.brain.wordbase.nouns._mooch import _MOOCH
#calss header
class _MOOCHING(_MOOCH, ):
def __init__(self,):
_MOOCH.__init__(self)
self.name = "MOOCHING"
self.specie = 'nouns'
self.basic = "mooch"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
24c147e69c88039955887900d3b812f300ecb882 | 1e187e5aa5fad78541a7afaec38fedbd3e9c81c7 | /src/incidents/__init__.py | 3628ecd6a052f4aa0beae7429dc1bc1db97ad1ca | [] | no_license | mattrobenolt/incidents | 0e60bf3d2b792ff4da1cdf6fc4252a245d645559 | 2b59fab8b762138c5adc3a0a65377fee10d41c95 | refs/heads/master | 2020-05-17T02:04:33.725661 | 2014-09-20T07:50:00 | 2014-09-20T07:50:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | def autodiscover():
pass
default_app_config = 'incidents.apps.IncidentsConfig'
from .celery import app as celery_app # noqa
| [
"matt@ydekproductions.com"
] | matt@ydekproductions.com |
5733cd16bf8346d7f4fafeea4b8362e1ec616684 | 5bc5acc7cac75d26312f8b73ed8a4e80f7e144a2 | /admin_interface/templatetags/admin_interface_tags.py | d2e07d2f091f0cf9c9b752083c8d6c3c583425dd | [
"MIT"
] | permissive | gilsonbp/django-admin-interface | 1019b40ef5d09f0e18d4ef55b37d49416e549876 | f6ce51c839be0bfedda5deb440a2588117a28765 | refs/heads/master | 2020-12-28T20:43:13.038317 | 2016-07-12T16:55:01 | 2016-07-12T16:55:01 | 64,975,304 | 0 | 0 | MIT | 2020-04-10T20:00:59 | 2016-08-05T00:09:29 | Python | UTF-8 | Python | false | false | 433 | py | # -*- coding: utf-8 -*-
from django import template
from admin_interface.models import Theme
register = template.Library()
@register.assignment_tag(takes_context = True)
def get_admin_interface_theme(context):
obj_qs = Theme.objects.filter(active = True)[:1]
obj_ls = list(obj_qs)
obj = None
if l... | [
"fabio.caccamo@gmail.com"
] | fabio.caccamo@gmail.com |
7b98333ac3fd36da58a48b8384faba21df2c93de | 07490c73801dd7d055f852732126506088524725 | /tests/test_extension.py | b3bf510dafc6ce1d4d3a083966ce2359bb25727c | [
"Apache-2.0"
] | permissive | consideRatio/jupyterlab_iframe | 202a3740ff718cf93bdcac8dd3171c92fdf0f8f9 | 3c5f51352225ca9235d6e6d378e22bbdf983912f | refs/heads/master | 2021-02-15T20:40:07.750413 | 2020-02-28T03:17:36 | 2020-02-28T03:17:36 | 244,929,842 | 0 | 0 | Apache-2.0 | 2020-03-04T15:03:33 | 2020-03-04T15:03:32 | null | UTF-8 | Python | false | false | 876 | py | # for Coverage
from mock import patch, MagicMock
from jupyterlab_iframe.extension import load_jupyter_server_extension, IFrameHandler, ProxyHandler, ProxyWSHandler
class TestExtension:
def test_load_jupyter_server_extension(self):
m = MagicMock()
m.web_app.settings = {}
m.web_app.settings... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
9c12235910c2089f308d5efc8451bb32b2a84b3e | 5d25b942873144363546c8b0ccbd2df4fbec0aa0 | /utils/tserial.py | 0c5267fd8d46ea264eddd7f9d4d6cfea9556b728 | [
"Apache-2.0"
] | permissive | Sumalyo/mjmech | 228d23b3690b1244ec0c6825c231c2368d805045 | c222725b9ee799a595c53d1f85195e013a600a04 | refs/heads/master | 2021-04-14T04:59:54.043304 | 2020-03-19T12:57:37 | 2020-03-19T12:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,893 | py | #!/usr/bin/env python
# Copyright 2015 Josh Pieper, jjp@pobox.com. 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
#
... | [
"jjp@pobox.com"
] | jjp@pobox.com |
84ad07d973ff96ef23edea1992f9a7f987eb23ca | dcc0bb6b30ab22a2b5aea3b0f2f5bf403c28dc9b | /awx_collection/test/awx/conftest.py | bdaa0db3bf529a94233f8be6be7abf9d089906cb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-only"
] | permissive | EStork09/awx | e358b8eaecdb59693fa7d9883555aa5259cc1641 | 0c0e172caf7036737a511cbd532b4dc72d900725 | refs/heads/devel | 2020-08-22T01:18:12.674380 | 2019-10-20T00:45:02 | 2019-10-20T00:45:02 | 178,763,134 | 0 | 0 | Apache-2.0 | 2019-04-09T16:38:38 | 2019-04-01T01:24:13 | Python | UTF-8 | Python | false | false | 4,187 | py | import io
import json
import datetime
import importlib
from contextlib import redirect_stdout
from unittest import mock
from requests.models import Response
import pytest
from awx.main.tests.functional.conftest import _request
from awx.main.models import Organization, Project, Inventory, Credential, CredentialType
... | [
"arominge@redhat.com"
] | arominge@redhat.com |
c7f42f7749b90a9c3dd47f55c00466c5b63d3493 | 97884252481ff208519194ecd63dc3a79c250220 | /pyobs/robotic/lco/scripts/script.py | 0c57a0bb4cb505d10961df96b185ca12ba1e1049 | [
"MIT"
] | permissive | pyobs/pyobs-core | a1f30137d7f991bad4e115de38f543e59a6e30d2 | 2d7a06e5485b61b6ca7e51d99b08651ea6021086 | refs/heads/master | 2023-09-01T20:49:07.610730 | 2023-08-29T09:20:05 | 2023-08-29T09:20:05 | 174,351,157 | 9 | 3 | NOASSERTION | 2023-09-14T20:39:48 | 2019-03-07T13:41:27 | Python | UTF-8 | Python | false | false | 2,064 | py | import logging
from typing import Dict, Any, Optional
from pyobs.robotic.scripts import Script
from pyobs.robotic import TaskSchedule, TaskArchive, TaskRunner
log = logging.getLogger(__name__)
class LcoScript(Script):
"""Auto SCRIPT script for LCO configs."""
def __init__(self, scripts: Dict[str, Script], ... | [
"thusser@uni-goettingen.de"
] | thusser@uni-goettingen.de |
837f297f47a3d31dca3856ca30dc1c07ea466c51 | 0c469c4100fe9d352e83731688e388062a3c55c7 | /Graphs/1135. Connecting Cities With Minimum Cost.py | 079eb10f622723f7ab046130350ee32299f45381 | [] | no_license | asperaa/back_to_grind | 9e055c7e6561384e5b7ae52f01063e4beb34a298 | 5ea1976b9d5c6d04800e296e45e8ff90fdde5001 | refs/heads/master | 2022-12-16T18:32:01.443743 | 2020-09-05T13:29:39 | 2020-09-05T13:29:39 | 254,910,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | """We are the captains of oue ships, and we stay 'till the end. We see our stories through.
"""
"""1135. Connecting Cities With Minimum Cost
"""
class Solution:
def minimumCost(self, n ,edges):
parent = [i for i in range(n+1)]
rank = [0] * (n+1)
self.cost = 0
self.connected_compon... | [
"adityaankur44@gmail.com"
] | adityaankur44@gmail.com |
01822b078b05a3660a8aaa3154dd9afeb8922100 | ef605b30b118dbb5902a360c2dc74634f8d8023a | /ve/Lib/site-packages/tests/test_archaism.py | edf8f96ad05816c5b8f19b27af3ad2eee643f92d | [] | 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 | 620 | py | """Tests for archaism.misc check."""
from __future__ import absolute_import
from .check import Check
from proselint.checks.archaism import misc as chk
class TestCheck(Check):
"""The test class for archaism.misc."""
__test__ = True
@property
def this_check(self):
"""Bolierplate."""
... | [
"divyanshumehta@outlook.com"
] | divyanshumehta@outlook.com |
e717b68e6f98bb33f19c3f68eb602455a799f7f6 | dc80f94c1a244002db468fc7242d5fcaafe439dc | /powerdns_client/models/error.py | f5299db89c3ad43e6f2cbbe70c6da422abc9ead3 | [
"MIT"
] | permissive | sanvu88/python-powerdns-client | f675e1ee162bb76190b41ddf0cfc34e2305a757b | 57dd0460995a5407c6f5c963553b4df0f4859667 | refs/heads/master | 2023-02-04T07:05:31.095951 | 2020-12-15T16:48:15 | 2020-12-15T16:48:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,975 | py | # coding: utf-8
"""
PowerDNS Authoritative HTTP API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.0.13
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # n... | [
"67791576+underline-bot@users.noreply.github.com"
] | 67791576+underline-bot@users.noreply.github.com |
2784d73cd9183dd106ee06fba4d4c4e10409acc4 | 4fdaee9f2612a8c429991a2042dffcee80e7a641 | /rootfs/qboxhd/rootfs/usr/local/lib/enigma2/python/Screens/Scart.py | 64e4a69e009284ed03b409f8e33f5041d03a4d0e | [] | no_license | OpenSH4/qboxhd | 841072db3b0eaecdcac116b5f96268d47115cdec | 91dd37a5311b5c53fb088ab0ce902ee49552ece0 | refs/heads/master | 2020-09-07T17:55:36.114816 | 2012-01-08T21:33:02 | 2012-01-08T21:33:02 | 220,866,062 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | from qboxhd import QBOXHD
from Screen import Screen
from MessageBox import MessageBox
from Components.AVSwitch import AVSwitch
class Scart(Screen):
def __init__(self, session, start_visible=True):
Screen.__init__(self, session)
self.avswitch = AVSwitch()
if start_visible:
self.onExecBegin.append(self.showM... | [
"duopaguilar@0410bcea-ab32-4fec-9f21-c18eae94034e"
] | duopaguilar@0410bcea-ab32-4fec-9f21-c18eae94034e |
37f45c2414abdc4e1e1c66d8ba58d473235b0f3b | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/numenta_nupic/nupic-master/src/nupic/frameworks/viz/network_visualization.py | 6c37b7608dbabfbc809f5fc33aba4327f6ef7336 | [] | 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 | 2,674 | py | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2017, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | [
"659338505@qq.com"
] | 659338505@qq.com |
05267bb3879a6e0fadb7cb02e558d512ea7128ca | e9538b7ad6d0ce0ccfbb8e10c458f9e0b73926f6 | /tests/unit/modules/remote_management/lxca/test_lxca_cmms.py | 96d4f5c61556d09603513b44da7afb31557e60e3 | [] | no_license | ansible-collection-migration/misc.not_a_real_collection | b3ef8090c59de9ac30aca083c746ec3595d7f5f5 | 7ab1af924a3db4ada2f714b09bb392614344cb1e | refs/heads/master | 2020-12-18T13:48:51.849567 | 2020-01-22T17:39:18 | 2020-01-22T17:39:18 | 235,400,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,778 | py | import json
import pytest
from ansible_collections.misc.not_a_real_collection.tests.unit.compat import mock
from ansible_collections.misc.not_a_real_collection.plugins.modules import lxca_cmms
@pytest.fixture(scope='module')
@mock.patch('ansible_collections.misc.not_a_real_collection.plugins.module_utils.remote_mana... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
a023ca5921b4dae35ed7b05846b33c20b9bb7352 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_rimmed.py | 5ba54997dbd01072557b8d6aa85dd5252bdbec4d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py |
#calss header
class _RIMMED():
def __init__(self,):
self.name = "RIMMED"
self.definitions = rim
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['rim']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
cbd5229791354c1ff4eb92cd07ccdc2794be4190 | 9f7512711f78d71a5de7ec54001411cb9c319424 | /contents/serializers.py | 3353c1a830a69e69410f7cedfb9c577b5f4d1ca5 | [] | no_license | charles-co/glc_project | a819ad5b401ba2279901f8f752f7a9331271d376 | ae8c3cba6dcb416d7afa3abbbf439f48003b6e9f | refs/heads/main | 2023-03-29T17:28:05.518810 | 2021-04-03T18:00:16 | 2021-04-03T18:00:16 | 336,250,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | from rest_framework import serializers
from .models import Audio, Video, Podcast, TV
class AudioSerializer(serializers.ModelSerializer):
class Meta:
model = Audio
fields = ['title', 'audio_file', 'created_at']
read_only_fields = ['created_at', 'audio_file', 'title']
class VideoSeri... | [
"charlesboy49@gmail.com"
] | charlesboy49@gmail.com |
75e33e57ef1502b4f1a14c2688c82459ca329830 | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/215f5b12-5cc5-11e4-af55-00155d01fe08.py | 5f97ccd66399240e21dbbe12dc4b66d9264c974b | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | #!/usr/bin/python
################################################################################
# 215f5b12-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
f58631458dc7d58f759d59e1985ada8b6acda70d | c5611d343da32ab98e14beaa5df296c43b39de6c | /fec/version/v6_4/F132.py | 2cf21bbc4cd3db3fe21b36a4e31de26196f89912 | [
"Unlicense"
] | permissive | h4ck3rm1k3/FEC-Field-Documentation | 97973fc9cd919cdb161a416647ae5752ef5815d9 | c2f1f36e14c67ac3656c09f801b9f595d3e9f92e | refs/heads/master | 2018-12-28T16:07:52.499054 | 2014-06-07T18:35:49 | 2014-06-07T18:35:49 | 12,922,288 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | import fechbase
class Records(fechbase.RecordsBase):
def __init__(self):
fechbase.RecordsBase.__init__(self)
self.fields = [
{'name': 'FORM TYPE', 'number': '1'},
{'name': 'FILER COMMITTEE ID NUMBER', 'number': '2'},
{'name': 'TRANSACTION ID NUMBER', 'number': '3'... | [
"jamesmikedupont@googlemail.com"
] | jamesmikedupont@googlemail.com |
b8978e81877849076f0a1387b6b4004126382019 | 6b8dc095ef6e10c9ccf92e3c6402e80919d747ad | /glad/__main__.py | 4f394de5da9ab3674e0995e5bff47587ea218118 | [
"MIT"
] | permissive | caomw/glad | 5daecc0562e063240d7678ee2e5361e8562f0899 | 1fb8f8e68be000dd8b2c1634083939340ed33b06 | refs/heads/master | 2021-01-17T10:57:14.364606 | 2016-02-16T15:15:36 | 2016-02-16T15:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,594 | py | #!/usr/bin/env python
"""
Uses the official Khronos-XML specs to generate a
GL/GLES/EGL/GLX/WGL Loader made for your needs. Glad currently supports
the languages C, D and Volt.
"""
from collections import namedtuple
import logging
import sys
from glad.opener import URLOpener
from glad.spec import SPECS
import glad.la... | [
"admin@dav1d.de"
] | admin@dav1d.de |
d851910d19a0d3466e44744e769c7836bf963a17 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /gaussiana/ch3_2020_03_09_19_03_02_961002.py | b6ec6c3e2fc6cb965c085057e28d3e3249ad4873 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import math
def calcula_gaussiana(x,μ,σ):
a = 1 / (σ * (math.sqrt(2*math.pi)))
e = math.e**(-0.5*((x-μ/σ)**2))
f = a*e
return f | [
"you@example.com"
] | you@example.com |
7d003ce2dd96154be17d0e9c27d616d75141b708 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02664/s139946174.py | a9fab029ec7d95fbc4310c62188b5118675ab097 | [] | 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 | 678 | py | s = input()
for i in range(len(s)):
if s[i] == '?':
if i == 0 and len(s) == 1:
s = s.replace('?','D',1)
elif i == 0 and s[1] == 'D':
s = s.replace('?','P',1)
elif i == 0 and s[1] == 'P':
s = s.replace('?','D',1)
elif i == 0 and s[1] == '?':
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
387bbbaa243d5506e9160eaeb8c0d8cae9238225 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_contributions.py | f025a05c56b781cdfac70c6760e2ec39d2810e27 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py |
from xai.brain.wordbase.nouns._contribution import _CONTRIBUTION
#calss header
class _CONTRIBUTIONS(_CONTRIBUTION, ):
def __init__(self,):
_CONTRIBUTION.__init__(self)
self.name = "CONTRIBUTIONS"
self.specie = 'nouns'
self.basic = "contribution"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
bbe80e141ae120828745a2e0c964fe0706b6d465 | 86ca43076bd78484a32b527308ac15ed19844d81 | /tests/configuration_tests.py | eaca320507e178bf5a30dfc5ff75d25cff363b05 | [] | no_license | simonemmott/k2_core | d393ec5685dbb80f5c9301f6f1f3b4eb17feda24 | ef102ac151b3819714aa5f02d5aab8c1235030d6 | refs/heads/master | 2020-06-10T02:08:51.107293 | 2019-06-28T22:25:58 | 2019-06-28T22:25:58 | 193,552,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from unittest import TestCase
class ConfigurationTests(TestCase):
def test_pass(self):
self.assertTrue(True, 'Testing is not working') | [
"simon.emmott@yahoo.co.uk"
] | simon.emmott@yahoo.co.uk |
f3b8ddd933238a900cc93cfe07fca3e814be5673 | 4526ed71f39d70111c3787ec90b4932a183c452c | /2016/Pyquen_DYtoMuMu_M_30_TuneZ2_8TeV16_pythia6_cfi.py | f842b4cf0e3b2f718e982fc53fa749012b9573a1 | [] | no_license | CMS-HIN-dilepton/MCRequest | 773f414739efc529dc957a044232478b1c4f1c03 | ff49d22fde2c4a006fe7fa02d4cf53d794f91888 | refs/heads/master | 2021-05-02T12:16:51.891664 | 2020-06-20T18:35:52 | 2020-06-20T18:35:52 | 45,127,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,465 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.PythiaUEZ2Settings_cfi import *
generator = cms.EDFilter("PyquenGeneratorFilter",
comEnergy = cms.double(8160.0),
aBeamTarget = cms.double(208.0),
protonSide = cms.untracked.int32(1),
qgpInitialTemperature = cms.double(1.0), ## initial temperat... | [
"emilien.chapon@cern.ch"
] | emilien.chapon@cern.ch |
fe3b3ed217100b8e438eba5edcd8c3e95c0dfa46 | 4b2a333ddb07ba7b5dbbf382eee5851468e69635 | /sharpy/interfaces/unit_cache.py | b01665ffbbab5da46dfcfb35a3d1a203ba25c465 | [
"MIT"
] | permissive | rwill128/sharpy-sc2 | 36810c69d2563b7cc839d353e47c3c3c9cc255cb | 999a101fd2f6ecb8bccb405bf3ace276be08c112 | refs/heads/develop | 2023-01-29T11:52:55.687375 | 2020-12-06T11:26:35 | 2020-12-06T11:26:35 | 319,097,836 | 1 | 0 | MIT | 2020-12-06T18:03:31 | 2020-12-06T18:03:31 | null | UTF-8 | Python | false | false | 1,824 | py | from abc import abstractmethod, ABC
from typing import Optional, List, Union, Iterable, Dict
from sc2 import UnitTypeId
from sc2.position import Point2
from sc2.unit import Unit
from sc2.units import Units
class IUnitCache(ABC):
@property
@abstractmethod
def own_unit_cache(self) -> Dict[UnitTypeId, Units... | [
"aki.vanttinen@sedgestudios.com"
] | aki.vanttinen@sedgestudios.com |
4aee4411b6209081f04e28197515d86a72e8e17b | 38f15289bd03cef50f1013926a641c789fe338aa | /pythonCodeReference/PythonExamples/Examples/Example2/code1.py | 0d4beb6f70ab9daddd4947171b36dc2f8b6e80c2 | [] | no_license | Recorichardretardo/Python | e9f9a9b8291dc015fe7438329da066754d0ba965 | 5a810b9d53257e321dd15bd105100da89cef7835 | refs/heads/master | 2021-05-26T08:35:23.271610 | 2020-04-10T12:02:46 | 2020-04-10T12:02:46 | 254,060,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import random
friends = ["Rolf","Bob","Jen"]
print("Jen" in friends)
number = random.randint(2,9)
user_input = input("Enter 'y' if you would like to play: ")
if user_input in ("y","Y"):
user_number = int(input("Guess our number: "))
if user_number == number:
print("you guessed correctly!")
else:
... | [
"you@example.com"
] | you@example.com |
72e3ff38fd3cbb9042e232d08d74054b4ba37d32 | 219d7cf7cf00b778ff1a5709406c144fcf2132f3 | /Conditional Statements - Exercise/07. World Swimming Record.py | 3e853322a0847be5d79e473bc6890c3d9585ab8e | [] | no_license | SilviaKoynova/Softuni-Programming-Basics-Python | e8e175419383815c65c4e110fdb2b752d940e887 | 0dfef0850f2cb8471dfee1af89f137be4e887cb8 | refs/heads/main | 2023-07-13T00:35:09.389302 | 2021-08-27T07:43:45 | 2021-08-27T07:43:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from math import floor
record = float(input())
distance_in_metres = float(input())
time_in_seconds = float(input())
distance_needed = distance_in_metres * time_in_seconds
slowing = floor(distance_in_metres / 15)
slowing_add = slowing * 12.5
total_time = slowing_add + distance_needed
if record > total_time:
... | [
"noreply@github.com"
] | SilviaKoynova.noreply@github.com |
30f772c9774da896ad9f128a42b7578e18156e0e | 7426522061b222e8d3336b18ff941bb98ff9626c | /qtoggleserver/core/api/funcs/firmware.py | d85ee25f86309a65400e2f535bc0d019072cc04b | [
"Apache-2.0"
] | permissive | DigitEgal/qtoggleserver | 82833aaeb6f0bdad5f28243f132a639f4b406001 | 54b6ac53742af9529fd349d4fc207b0dc8a38d3b | refs/heads/dev | 2023-05-07T14:49:11.273023 | 2021-04-30T20:40:08 | 2021-04-30T20:40:08 | 360,039,836 | 0 | 0 | Apache-2.0 | 2021-04-21T05:18:08 | 2021-04-21T05:13:07 | null | UTF-8 | Python | false | false | 1,739 | py |
import logging
from qtoggleserver.core import api as core_api
from qtoggleserver.core.api import schema as core_api_schema
from qtoggleserver.core.typing import GenericJSONDict
from qtoggleserver.system import fwupdate
logger = logging.getLogger(__name__)
@core_api.api_call(core_api.ACCESS_LEVEL_ADMIN)
async def ... | [
"ccrisan@gmail.com"
] | ccrisan@gmail.com |
8810778d919db3e759f97b0b6e2e03e245363908 | 8fd4a35c61532f98e4e3888b1ca013ca3f7a2072 | /tests/test_configdict.py | 1f4e317e1ddb7aed6ebb704a3231691b9ea1c8c5 | [
"MIT"
] | permissive | menchant/bio96 | c785e0e2b1634f0f9df8645266139e62a4e2b3f0 | 97db6f7ae7b8f247c08ade1021c2906f71fdf1a5 | refs/heads/master | 2022-03-30T09:12:30.901537 | 2019-12-09T20:32:05 | 2019-12-09T20:32:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | #!/usr/bin/env python3
from bio96 import *
def test_empty():
config = configdict({})
assert config.meta == {}
assert config.rows == {}
assert config.irows == {}
assert config.cols == {}
assert config.icols == {}
assert config.wells == {}
assert config.user == {}
def test_user():
c... | [
"kale@thekunderts.net"
] | kale@thekunderts.net |
51c9734e2bb76d57a89179adee9869b3f01dc271 | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/image/legendgrouptitle/font/_size.py | 0703f95a46c6524e5ae4e1e051274c52c66992be | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 461 | py | import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="size", parent_name="image.legendgrouptitle.font", **kwargs
):
super(SizeValidator, self).__init__(
plotly_name=plotly_name,
parent_nam... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
ebc358fe1d3d3c0c6443b2922f596ffa70817af4 | 1f44c056f79b0b8f2f32cdf417c80efe1913ed77 | /ABC60C.py | 0d759ee33dd5d4caef3293fe2a219e0c801f9d8f | [] | no_license | saki-engineering/PyAtCoder | 4cc88d2a43991a5202cd71b48be0e936fb32137e | b008e86523c6d500beec53344172311872d50ff4 | refs/heads/master | 2020-09-15T08:39:17.698396 | 2020-04-24T05:55:02 | 2020-04-24T05:55:02 | 223,397,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | #coding: utf-8
import math
import heapq
import bisect
import numpy as np
from collections import Counter, deque
#from scipy.misc import comb
N,T = map(int, input().split())
t = list(map(int, input().split()))
ans = 0
for i in range(N-1):
if t[i+1] < t[i]+T: ans += (t[i+1]-t[i])
else: ans += T
ans += T
print(... | [
"sakiharu31415@yahoo.co.jp"
] | sakiharu31415@yahoo.co.jp |
28e05c285d256dc10661cfb3388091b923e9de6d | 7d45be20297033536b16a139a017bcec0e8880dc | /13.py | db9a4c6a5a31b3d4c73ad3543b8f6f9b8a9ecd56 | [] | no_license | BhagyashreeKarale/dichackathon | f6e199e65eaddaaa5f1594c444c469d9359e94c3 | 3aba9caaf26f96f70f8b5315358a3dfcf5264da3 | refs/heads/main | 2023-08-10T11:18:31.101163 | 2021-09-11T18:56:17 | 2021-09-11T18:56:17 | 405,456,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # Q16.Write a Python program to map two lists into a dictionary.
l1=[1,2,3,4,5,6,7]
l2=["riya","ankita","rahul","priya","anshika","rose","aarti"]
dic={}
for i in range(len(l1)):
dic[(l1[i])]=l2[i]
print(dic)
#using zip function
dic=dict(zip(l1,l2))
print(dic) | [
"noreply@github.com"
] | BhagyashreeKarale.noreply@github.com |
37c6d17dfd9ccc0f2d0c1c121cb6154050ccd519 | 22251b1ada3681204a1f4e75ce6f42ca94b9b939 | /api/migrations/0001_initial.py | 9fdce3d738c81ba66205e2a797fe1cf73bde3d12 | [] | no_license | vipin-s0106/Basic_Django_Angular_RestAPI | 755dc79216642306205aad2cdb2f47f310407437 | ce0afb721c8b04fc932a076b0509e36583d3728c | refs/heads/master | 2022-04-14T16:48:57.779977 | 2020-04-12T11:57:43 | 2020-04-12T11:57:43 | 255,039,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | # Generated by Django 3.0.4 on 2020-04-11 10:28
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movie',
fields=[
('id', models.AutoField(au... | [
"vipin.s0106@gmail.com"
] | vipin.s0106@gmail.com |
2612ca728d330306f8e47ea5564a10249735f8b0 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/python/estimator/canned/dnn_linear_combined.py | 103503382500fff9b56683b255782ae3d189f6e1 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 1,383 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
2529cc61a7d88aa268a9a9af8cf9b21c8ad0bc54 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/2411.py | a9582de00a37f3252cf64204b04fe4ab4faf23f1 | [] | 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 | 468 | py | #!/usr/bin/python
f = open("C-small-attempt0.in", "r")
T = int(f.readline())
def palindrome(num):
strNum = str(num)
l = len(strNum)
for i in range(l/2):
if strNum[i] != strNum[l-i-1]:
return False
return True
for t in range(1, T+1):
lb, ub = map(int, f.readline().strip().split())
c = 0
for i in rang... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ba4984a720c6e1306f796c62fb2630c6a574f05f | dcd3a08831759b4458a9bac4e44a7bbfac626dc1 | /python/protobufs/services/team/actions/join_team_pb2.py | 871af1cf3126313e5c2df2090091876645a639bf | [
"MIT"
] | permissive | getcircle/protobuf-registry | 433b6ad788831b34ccd86e2b42a3ec6606adc698 | 20ad8463b7ac6e2cf279c08bcd3e953993fe9153 | refs/heads/master | 2021-05-01T00:11:04.763067 | 2016-12-05T04:46:44 | 2016-12-05T04:46:44 | 27,981,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,602 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: protobufs/services/team/actions/join_team.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as... | [
"mwhahn@gmail.com"
] | mwhahn@gmail.com |
0e66bd19449a34a92382dfade04ca2dd9697c3f2 | f1a8e308c76866e2fba20401e6f1d5842dd60c46 | /Algorithms and Data Structures Practice/LeetCode Questions/Sorting/88. Merge Sorted Array.py | f673b376d6a5371cbd0f842e740c2aeb8490f3ec | [] | no_license | harman666666/Algorithms-Data-Structures-and-Design | 6e5da0c1f701e7dfc7b045ecd1209463131d3fc7 | 483f0c93faca8ccaf038b77ebe2fa712f6b0c6bc | refs/heads/master | 2021-07-14T10:11:27.588838 | 2021-07-07T01:47:42 | 2021-07-07T01:47:42 | 101,330,760 | 3 | 1 | null | 2018-10-15T04:52:07 | 2017-08-24T19:32:03 | Python | UTF-8 | Python | false | false | 2,274 | py | '''
88. Merge Sorted Array
Easy
2197
4153
Add to List
Share
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
Note:
The number of elements initialized in nums1 and nums2 are m and n respectively.
You may assume that nums1 has enough space (size that is equal to m + n) to... | [
"harman.j.singh@hotmail.com"
] | harman.j.singh@hotmail.com |
530dfcf02bcc8d889a76b628309b95f3fec8528f | 3a39e879fb2901207afcfc238b169ddefa104055 | /Chapter05/Docs/errbackspider/errbackspider/spiders/errback_spider.py | 9b55761a795c9081c4c163df0d07bfd92348f856 | [] | no_license | Synapses/Web_Scraping_with_Python | cb32ddd468250b9f11ad16d3576d0920693e708c | 3bb8cd47d0e1e182bb8ee800d32e24f45bf13ab0 | refs/heads/master | 2023-03-15T09:19:02.754593 | 2020-06-16T02:17:11 | 2020-06-16T02:17:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | import scrapy
from scrapy.spidermiddlewares.httperror import HttpError
from twisted.internet.error import DNSLookupError
from twisted.internet.error import TimeoutError, TCPTimedOutError
class ErrbackSpider(scrapy.Spider):
name = "errback_example"
start_urls = [
"http://www.httpbin.org", # HTTP 200 ... | [
"philip.dongfei@gmail.com"
] | philip.dongfei@gmail.com |
fcd82eee8042da29dd0e74e9c8fca7af2e9bcb0f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03015/s715773814.py | 9cd7cb639cfb7486945fee440b90b3bdbe4a21eb | [] | 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 | 597 | py | def main():
MOD = 10 ** 9 + 7
EQ = 0 # 等しくなり得る
SMALL = 1 # 未満確定
S = map(int, input())
dp = [1, 0]
for x in S:
ndp = [0] * 2
if x == 0:
ndp[EQ] = dp[EQ] # (0,0)
ndp[SMALL] = dp[SMALL] * 3 # (0,0),(0,1),(1,0)
elif x == 1:
ndp[EQ] =... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fa890b0f406730ad6d9f53bbbeb35a89a1eba5c9 | a25acab883494fa90cccc7255cac67251b40a21d | /specific/anchor/utils.py | 9e18add0d1f25afe548b7ec6e5abe9ed6f489f2f | [] | no_license | csliuchang/PupaDetector | cd8d85ca0cdb236dae28b82cdac144e17ce8f76f | b88dfdfd3f52e1df7cd44b5e1d7086acbe1ec046 | refs/heads/master | 2023-08-12T13:05:19.796420 | 2021-09-17T08:54:28 | 2021-09-17T08:54:28 | 397,140,426 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,914 | py | import torch
def images_to_levels(target, num_levels):
"""Convert targets by image to targets by feature level.
[target_img0, target_img1] -> [target_level0, target_level1, ...]
"""
target = torch.stack(target, 0)
level_targets = []
start = 0
for n in num_levels:
end = start + n
... | [
"598306303@qq.com"
] | 598306303@qq.com |
f3485f6e457870ef4a389aca1ae87f74e7857980 | 7b72e319c16fa66644a29a930e46a10c943ac533 | /flopy/modflow/mfpcg.py | 2eb540900fead397aebfcd83147bd61134f82845 | [
"BSD-3-Clause"
] | permissive | kwilcox/flopy | 58e9297ee6cb4cf95de8a57a5b338f9ff1b1cc61 | 527c4ee452ea779bdebd6c1c540452d145e26943 | refs/heads/master | 2020-12-01T11:42:01.608949 | 2015-01-28T19:03:55 | 2015-01-28T19:03:55 | 28,347,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,967 | py | from flopy.mbase import Package
class ModflowPcg(Package):
'''Pcg Package
Only programmed to work with the default values; may need work for other options'''
def __init__(self, model, mxiter=50, iter1=30, npcond=1,
hclose=1e-5, rclose=1e-5, relax=1.0, nbpol=0, iprpcg=0, mutpcg=3,
... | [
"langevin@usgs.gov"
] | langevin@usgs.gov |
dc56fca9c3f0400c2c546ec88a36f50896da3a5b | e8ae11e5017507da59e2e92d423b6a1994490de4 | /env/lib/python2.7/site-packages/azure/mgmt/network/models/express_route_circuit_routes_table_summary.py | 202ba003885f50452d9a8f36be1ac4f62ebc3c8a | [] | no_license | teopeurt/ansible-ubuntu-server | 613d00cea28bc6531acf4a39aeeb9cd0baa2a391 | b5b6127d2ee9723c5088443efe2ffb8ae30cfea7 | refs/heads/master | 2021-06-28T12:49:50.935753 | 2017-07-31T17:34:33 | 2017-07-31T17:34:33 | 98,912,808 | 0 | 1 | null | 2020-07-24T00:05:31 | 2017-07-31T17:32:56 | Makefile | UTF-8 | Python | false | false | 2,276 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 co... | [
"me@teopeurt.com"
] | me@teopeurt.com |
4e7414a3a31a6dc0edb60e6832a9aea5fff43856 | dacb257a90310eba03f3128221120a7d54b894ba | /_templates/component_template.py | 17012640af10b7c3b7946c401e3122b013cd8f93 | [
"MIT"
] | permissive | SiChiTong/pysmartnode | 92351efa02e52aa84185a53896957c453b12540a | a0998ad6582a28fe5a0529fb15dd4f61e254d25f | refs/heads/master | 2023-01-05T10:00:14.907988 | 2020-09-01T10:07:45 | 2020-09-01T10:07:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,938 | py | # Author: Kevin Köck
# Copyright Kevin Köck 2018-2020 Released under the MIT license
# Created on 2018-06-22
"""
example config for MyComponent:
{
package: <package_path>
component: MyComponent
constructor_args: {
my_value: "hi there"
# mqtt_topic: sometopic # optional, defaul... | [
"kevinkk525@users.noreply.github.com"
] | kevinkk525@users.noreply.github.com |
642c338f2025399808ac2d1a89087670e21e1dd9 | 365558f4e8ddc829f0ddca3f7d44ba62da27542a | /updates/api/mixins.py | 508f98039750b944973f416e4ae53a5ae150c9e5 | [] | no_license | paulitstep/restapi | 9f1a1458c85cccad1a51a1f00f9a948ccca90f5e | 465775f166b342bb416973335585225e16cb0ac4 | refs/heads/master | 2022-12-11T05:28:29.495535 | 2020-01-03T12:07:14 | 2020-01-03T12:07:14 | 229,033,566 | 0 | 0 | null | 2022-11-22T04:55:07 | 2019-12-19T10:44:52 | Python | UTF-8 | Python | false | false | 264 | py | from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt
class CSRFExemptMixin(object):
@method_decorator(csrf_exempt)
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs)
| [
"pasha-mo1@rambler.ru"
] | pasha-mo1@rambler.ru |
502205acb9cda35045cccadbb6e2af22d5604de8 | d75fbceb28ad14b07ae4057a8b23ec0bd3682628 | /code/chap01/GeometryDemo.py | 1894209492bd0745a775c3814309fabaf5b7aac6 | [] | no_license | wubinbai/pygame-book | 0707a0b36f41bc6f0b1282707e6c4f6cbed9c87a | 9de1f7516a2aec940ffa97f9686cc0520bad2deb | refs/heads/master | 2020-12-21T15:51:08.397619 | 2020-01-30T12:37:52 | 2020-01-30T12:37:52 | 236,478,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | # OOP Geometry Demo
class Point():
x = 0.0
y = 0.0
def __init__(self, x, y):
self.x = x
self.y = y
print("Point constructor")
def ToString(self):
return "{X:" + str(self.x) + ",Y:" + str(self.y) + "}"
class Size():
width = 0.0
height = 0.0
... | [
"wubinbai@yahoo.com"
] | wubinbai@yahoo.com |
7783c08daad08e45d2628bdba38bd60685bafafa | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /gaussiana/ch3_2020_03_07_23_12_34_972398.py | 1961ce12d71b8ef3172faaed1cc7b3049bb38b32 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import math
def calcula_gaussiana (x, y, z):
a = 1/(z*(2* math.pi)**(1/2))
b = (math.e) ** (-0.5*c)
c = ((x - y)/z)**2
gaussiana = a*b
return gaussiana | [
"you@example.com"
] | you@example.com |
7a8871f3e6f1d6ffbb7082df68f5813e5b281528 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/cloud/aapicsubnetpool.py | b8476311897c66bef3a0147220099b199efa5dcf | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,396 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
32b236c7d226d86c465cc89e6ca3ee8726a36cf5 | 0d15b6706d1016b604b351d57204852ff6613600 | /articles/admin.py | 1e1ea65ea50180b8980335603648ca7861f27e91 | [] | no_license | yoonmyunghoon/Django-prac | e431b00482e2b5dde5b6555b862c658f86ec6328 | 848275f43f514b7d84b6bcec1e7fee90f9b1a378 | refs/heads/master | 2023-03-03T23:21:57.607503 | 2021-02-22T08:46:58 | 2021-02-22T08:46:58 | 339,078,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from django.contrib import admin
from .models import Article, Comment, Hashtag
@admin.register(Article)
class ArticleAdmin(admin.ModelAdmin):
list_display = ("id", "title", "content", "image", "created_at", "updated_at")
list_display_links = ("content",)
list_filter = ("created_at",)
list_editable = (... | [
"youn1791472@gmail.com"
] | youn1791472@gmail.com |
fbfd4b1e2fa77069d31dc9861da0475a94f7c072 | 7832e7dc8f1583471af9c08806ce7f1117cd228a | /aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/CloneDBInstanceRequest.py | cb2978c432125971753d5407b3917c60679c46d8 | [
"Apache-2.0"
] | permissive | dianplus/aliyun-openapi-python-sdk | d6494850ddf0e66aaf04607322f353df32959725 | 6edf1ed02994245dae1d1b89edc6cce7caa51622 | refs/heads/master | 2023-04-08T11:35:36.216404 | 2017-11-02T12:01:15 | 2017-11-02T12:01:15 | 109,257,597 | 0 | 0 | NOASSERTION | 2023-03-23T17:59:30 | 2017-11-02T11:44:27 | Python | UTF-8 | Python | false | false | 4,506 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
c1298158bf73240b9c238c14aac0733c0bc1b59d | 29c476c037a05170ff2ddef8edd07014d3751614 | /0x06-python-classes/4-square.py | 88ef31648dc094728817a3acd69b73ce8832f99e | [] | no_license | hacheG/holbertonschool-higher_level_programming | a0aaddb30665833bd260766dac972b7f21dda8ea | 535b1ca229d7cf61124a128bb5725e5200c27fbc | refs/heads/master | 2020-07-22T23:09:27.486886 | 2020-02-13T19:41:34 | 2020-02-13T19:41:34 | 207,360,462 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | #!/usr/bin/python3
class Square():
"""Class Square with setter & getter"""
def __init__(self, size=0):
self.__size = size
@property
def size(self):
return self.__size
@size.setter
def size(self, x):
if not isinstance(x, int):
raise TypeError("size must be ... | [
"943@holbertonschool.com"
] | 943@holbertonschool.com |
a53f41a47bb29cda9a8831a17ee8ca50f996caea | 8616892b6541602b53fdd94d1552d8e96b7ab722 | /dessn/configurations/old/combined_simple_nolowz.py | bc61fe17df88b12a52d7a966b4534f1e4c36302e | [
"MIT"
] | permissive | dessn/sn-bhm | 7c436877832ec10e4af318a6befff9fb8ffcbf3a | f320a41f9a4f2be49073437e98addca79e938160 | refs/heads/master | 2020-08-28T03:34:38.180148 | 2019-05-01T04:23:23 | 2019-05-01T04:23:23 | 45,723,864 | 1 | 0 | null | 2017-04-25T02:54:43 | 2015-11-07T05:27:44 | Python | UTF-8 | Python | false | false | 2,485 | py | import os
import logging
import socket
from dessn.framework.fitter import Fitter
from dessn.framework.models.approx_model import ApproximateModelW, ApproximateModel, ApproximateModelOl
from dessn.framework.simulations.snana_bulk import SNANACombinedBulk
from dessn.framework.simulations.selection_effects import lowz_sel... | [
"samuelreay@gmail.com"
] | samuelreay@gmail.com |
57bce43d697126c0d1fdf8886d4be50f39e8e18a | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/26048566-5cc5-11e4-af55-00155d01fe08.py | f2d5557e83a298ecbd3b520346c5dd7d68781382 | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | #!/usr/bin/python
################################################################################
# 26048566-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
25414baa7b52f3f2d2f1fbc697b602bd893b8ab7 | 1a31dfb66512aa66c407484f2ea8b0fb370669a4 | /account/urls.py | 74fd4189f5be454d9fbca20ea9f45a0439c5e14d | [] | no_license | nisha-eng/dstt | 790129f2918e0210421039baba0a4e8c877a7627 | bab89000242aec3a1a6fb05447ec52b14722809f | refs/heads/main | 2023-03-01T02:50:20.767421 | 2021-02-05T05:23:08 | 2021-02-05T05:23:08 | 336,171,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from django.contrib import admin
from django.urls import path,include
from . import views
urlpatterns = [
path('signup/',views.SignUpView.as_view(), name='signup'),
] | [
"mdipakpatidar@gmail.com"
] | mdipakpatidar@gmail.com |
27a02432307f60e2349e5f62217bdc229641b3a0 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_9_v3/I_w_Mgt_to_Wxyz_focus_to_Cxy_focus_series_Pyramid/pyramid_1side/bce_s001_tv_s0p1_L3/step12_L2345678.py | 65d732c2f60394ea9ab9e20e7ad6db3c04b3fa69 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,245 | py | '''
目前只有 step12 一定需要切換資料夾到 該komg_model所在的資料夾 才能執行喔!
'''
if(__name__ == "__main__"):
#############################################################################################################################################################################################################
### 把 kong_model2 加入 s... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
afd99a73aa5211d3722e521ba63eeacc2c19e7b9 | 642526009a434c2a6e04fe0293279a151b216d0a | /dkube/sdk/internal/dkube_client/models/git_commit_details.py | 136441f2723ae8ca83f5e11383723fe023b5aa91 | [] | no_license | mak-454/dkube-sdk | d4b8e7f7b1d8c0b0f64b10940ae42ab9d62f4654 | d2ba78a0abbda589efc0dbd957d9a8f6fd227464 | refs/heads/master | 2022-12-26T03:17:55.627379 | 2020-05-09T17:29:08 | 2020-05-09T17:29:08 | 262,622,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,283 | py | # coding: utf-8
"""
Dkube api server
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
impor... | [
"ahmed.khan@oneconvergence.com"
] | ahmed.khan@oneconvergence.com |
81f19be92df94fa408323f3520f3036d02d3faf7 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/appcomplianceautomation/azure-mgmt-appcomplianceautomation/generated_samples/report_delete.py | e50e47e30f53534b8cd9c42e05cde1528836604c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,558 | 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 ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
f20b7d9b1b0b8082fe92f67c3e8295493a8683b5 | 548fbb3bf6648e76e711ee398148cae9ee10a0d2 | /1460_Make_Two_Arrays_Equal_by_Reversing_Sub-arrays.py | 1a71ef2613f25f56e85d7662d98f139a97bb1ffe | [] | no_license | KonstantinSKY/LeetCode | 34cce8eda7182aa6a1616b3471b0cfe9310fe1d4 | 1570122134b962412b0530c3850eb37f1c8c585e | refs/heads/master | 2023-04-16T17:03:23.753146 | 2023-04-03T18:16:21 | 2023-04-03T18:16:21 | 310,714,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | """ 1460. Make Two Arrays Equal by Reversing Sub-arrays https://leetcode.com/problems/make-two-arrays-equal-by-reversing-sub-arrays/"""
import time
from typing import List
class Solution:
def canBeEqual2(self, target: List[int], arr: List[int]) -> bool:
return "".join(map(str, sorted(arr))) == "".join(ma... | [
"sky012877@gmail.com"
] | sky012877@gmail.com |
0dc609373cfbab318ad5a08f86a53f9b9863311b | dc1df09e627fd5155d4b4eae8915a40d94b2fcf3 | /code/configs_pain/config_train_pain_lstm_wbn_512_milcepain_weighted_2min.py | 3bcdc396596d28d6b8771b1f3e8b5f2e653d5a45 | [] | no_license | menorashid/gross_pain | 0a2145e3b912f23788e22bc4eda6978a65e481fa | 2dbebc596a15e54fb3af0cfca2185f901e78a72d | refs/heads/master | 2021-07-09T07:45:52.457667 | 2020-11-10T01:32:26 | 2020-11-10T01:32:26 | 198,445,713 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | from rhodin.python.utils import io as rhodin_utils_io
import os
config_dict = {
# model type
'model_type' : 'pain_lstm_wbn_512',
'new_folder_style' : True,
# General parameters
'dpi' : 190,
'input_types' : ['img_crop', 'segment_key'],
'output_types' ... | [
"mhnrashid@gmail.com"
] | mhnrashid@gmail.com |
b04182488241419bfaab9735a28b9f92c4a548e4 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2021_10/aio/_application_insights_management_client.py | e846f9038ef7e10c2422551c70ad202f265a897d | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 3,923 | 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 ... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
c620fc9fb4331c7c63ef5f9998dd1d072ee6db93 | 4ef89629e12458a49e9d39dc4797de622732b598 | /day07(编码与解码)/编码与解码.py | 621b20205398f0bcee6ff421237cfe7ba1a0c353 | [] | no_license | LambertlLan/python | ea235b5cc76114575f9341f49b797645aca2938c | 9e1a52537fc3e1cb88cadb32d1e2a8012acb2c7f | refs/heads/master | 2021-01-19T17:06:59.277307 | 2017-09-27T06:18:44 | 2017-09-27T06:18:44 | 101,049,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # __author: Lambert
# __date: 2017/8/18 15:19
s = 'i am 特斯拉'
s_to_gbk = s.encode('gbk') # 编码为gbk打印出b'i am \xcc\xd8\xcb\xb9\xc0\xad'
gbk_to_s = s_to_gbk.decode('gbk') # 解码为utf-8打印出i am 特斯拉
print(s)
print(s_to_gbk)
| [
"landingyu@163.com"
] | landingyu@163.com |
6c6bc3ce51cbb1d79ae1d01b116f8c0591c1f260 | b1ffcbd977595bccf15dd56e965bda62867d1e10 | /omrdatasettools/tests/MuscimaPlusPlusSymbolImageGeneratorTest.py | 5b181d8d980a6e4e9611b93088185b257cfbfbff | [
"CC-BY-NC-SA-4.0",
"GPL-2.0-only",
"CC-BY-SA-3.0",
"MIT",
"GPL-1.0-or-later",
"CC-BY-SA-4.0",
"LicenseRef-scancode-public-domain",
"AGPL-3.0-only"
] | permissive | fzalkow/OMR-Datasets | 7ded5bb9278e47c84a16de01081876d6bb2e6dbe | c9e7a986199998d6a735875503e6dcce5fdf1193 | refs/heads/master | 2020-09-14T15:30:45.824800 | 2020-01-06T12:07:52 | 2020-01-06T12:07:52 | 223,169,792 | 0 | 0 | MIT | 2019-11-21T12:32:31 | 2019-11-21T12:32:30 | null | UTF-8 | Python | false | false | 1,219 | py | import os
import shutil
import unittest
from glob import glob
from omrdatasettools.downloaders.MuscimaPlusPlusDatasetDownloader import MuscimaPlusPlusDatasetDownloader
from omrdatasettools.image_generators.MuscimaPlusPlusSymbolImageGenerator import MuscimaPlusPlusSymbolImageGenerator
class MuscimaPlusPlusSymbolImage... | [
"alexander.pacha@gmail.com"
] | alexander.pacha@gmail.com |
13b48c6f824a2b31e36afd16858253b90c3721da | 399dae0b5ad9ca27cde175d25b5435958674eb50 | /System/Get the Status of Password Policy Applied under Group Policy/get-the-status-of-password-policy-applied-under-group-policy.py | 026229831e5b1d828ef15c972de9b6c071daed84 | [] | no_license | kannanch/pythonscripts | 61e3ea9e8ebf6a6b0ec2a4a829664e4507b803ba | 843a522236f9c2cc2aadc68d504c71bb72600bd9 | refs/heads/master | 2020-06-12T11:18:00.404673 | 2019-06-28T11:24:37 | 2019-06-28T11:24:37 | 194,282,297 | 1 | 0 | null | 2019-06-28T13:55:56 | 2019-06-28T13:55:56 | null | UTF-8 | Python | false | false | 7,668 | py | #To define a particular parameter, replace the 'parameterName' inside itsm.getParameter('variableName') with that parameter's name
emailto='tamil111@yopmail.com' #To define a particular receiver email address here
import os
import subprocess
from subprocess import PIPE, Popen
import re
import shutil
def ipad... | [
"noreply@github.com"
] | kannanch.noreply@github.com |
19469cce8eb38d26a47e5d060cf86c0f3ee08c64 | 65b55130f41747ccb239219ae9010ab06b60d430 | /src/tweets/migrations/0002_auto_20191219_0905.py | 432c3cc422a6919ca45813b41bcd040fce51c11d | [] | no_license | amrebrahem22/TweetMe-App | d5c2f5fc20565356a88fdde357433ac54bc5dfac | cad027a34c84f9b2530759ec6b080a5f80a02ffc | refs/heads/master | 2020-11-24T19:12:27.526977 | 2020-03-24T21:44:30 | 2020-03-24T21:44:30 | 228,306,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # Generated by Django 3.0 on 2019-12-19 07:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tweets', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='tweet',
options={'ordering': ['-timestamp']},
... | [
"amrebrahem226@gmail.com"
] | amrebrahem226@gmail.com |
f79bc0f915b6e19e4535d43c6adf1a04f3e23c65 | aa3d7adc78fd141a730c9cc00b9a6439a90cf74c | /0x0C-python-almost_a_circle/16-main.py | d837a7788eea8df5ce01facbffa9004af9ddcfff | [] | no_license | Lord-Gusarov/holbertonschool-higher_level_programming | 450eee78c4f7d91f05110d86e7879487802f4fe7 | 65a4ff7b2752cfec08caf7d0ff0b7b97a602ddd1 | refs/heads/main | 2023-04-19T16:45:14.137188 | 2021-05-15T16:33:12 | 2021-05-15T16:33:12 | 319,210,969 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | #!/usr/bin/python3
""" 16-main """
from models.rectangle import Rectangle
if __name__ == "__main__":
list_input = [
{'id': 89, 'width': 10, 'height': 4},
{'id': 7, 'width': 1, 'height': 7}
]
json_list_input = Rectangle.to_json_string(list_input)
list_output = Rectangle.from_json_strin... | [
"2367@holbertonschool.com"
] | 2367@holbertonschool.com |
8ea4b391036f8705ccf1667a6b6ad7ce8be21474 | d66ba9654d9eb57807b4a63ef9991a3a6868dc1a | /tests/unit/vsphere/test_ESXi_Ssh.py | a3c5795bf7dc20acd4c5fdb50705ec625f83f69c | [
"Apache-2.0"
] | permissive | nirvishek/k8-vmware | bcef1afcdf559c9f1c2b1f6df3d606612140d4c7 | 986c153b61e028a033b62aa6d198b068a4ed0eb0 | refs/heads/main | 2023-02-26T02:12:53.681127 | 2021-01-28T21:18:27 | 2021-01-28T23:18:21 | 321,978,494 | 0 | 0 | Apache-2.0 | 2020-12-16T12:40:24 | 2020-12-16T12:40:24 | null | UTF-8 | Python | false | false | 1,876 | py | from os import environ
from unittest import TestCase
from pytest import skip
from k8_vmware.vsphere.ESXi_Ssh import ESXi_Ssh
# todo add support for ssh keys in GitHub actions
class test_ESXi_Ssh(TestCase):
def setUp(self) -> None:
self.ssh = ESXi_Ssh()
self.ssh_config = self.ssh.ssh_config(... | [
"dinis.cruz@owasp.org"
] | dinis.cruz@owasp.org |
987ce85af7e23d8c4b0aeea8fc530b883735bbb0 | 015106a1a964305ef8ceb478cc56fd7d4fbd86d5 | /112.py | a3e985fd5dfa5147a4c09bcfb679f424513b7079 | [] | no_license | zenmeder/leetcode | 51a0fa4dc6a82aca4c67b5f4e0ee8916d26f976a | 0fddcc61923d760faa5fc60311861cbe89a54ba9 | refs/heads/master | 2020-12-02T18:16:10.825121 | 2018-10-30T11:47:53 | 2018-10-30T11:47:53 | 96,505,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/local/bin/ python3
# -*- coding:utf-8 -*-
# __author__ = "zenmeder"
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def hasPathSum(self, root, sum):
"""
:type ro... | [
"zenmeder@gmail.com"
] | zenmeder@gmail.com |
fdbb8e6f76b79b579fa2a26476cc539f384aed8e | 8698757521458c2061494258886e5d3cdfa6ff11 | /datasets/BRATSLabeled.py | 9f34b75633370774aec0390fa852e3a0bba31f76 | [
"MIT"
] | permissive | ricvo/argo | 546c91e84d618c4bc1bb79a6bc7cba01dca56d57 | a10c33346803239db8a64c104db7f22ec4e05bef | refs/heads/master | 2023-02-25T01:45:26.412280 | 2020-07-05T22:55:35 | 2020-07-05T22:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,662 | py | """
Module for managing BRATS dataset
"""
from datasets.BrainDataset import modalities
from datasets.LabeledBrainDataset import LabeledBrainDataset
import os
import fnmatch
import numpy as np
import re
import json
import pdb
NPROCS = 40
TRAIN_LOOP = "train_loop"
TRAIN = "train"
VALIDATION = "validation"
TEST = "test... | [
"volpi@rist.ro"
] | volpi@rist.ro |
958c0cefa044a3940bef8b558c75cefd6765486f | 8a452b71e3942d762fc2e86e49e72eac951b7eba | /leetcode/editor/en/[2094]Finding 3-Digit Even Numbers.py | 63ca649cd3b26d92fe74691ac60176b9ea5153f7 | [] | no_license | tainenko/Leetcode2019 | 7bea3a6545f97c678a176b93d6622f1f87e0f0df | 8595b04cf5a024c2cd8a97f750d890a818568401 | refs/heads/master | 2023-08-02T18:10:59.542292 | 2023-08-02T17:25:49 | 2023-08-02T17:25:49 | 178,761,023 | 5 | 0 | null | 2019-08-27T10:59:12 | 2019-04-01T01:04:21 | JavaScript | UTF-8 | Python | false | false | 1,890 | py | # You are given an integer array digits, where each element is a digit. The
# array may contain duplicates.
#
# You need to find all the unique integers that follow the given requirements:
#
#
#
# The integer consists of the concatenation of three elements from digits in
# any arbitrary order.
# The intege... | [
"31752048+tainenko@users.noreply.github.com"
] | 31752048+tainenko@users.noreply.github.com |
5ab3c1d017f326b6053d303d02438e96dab26c5f | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/pandas/tests/io/json/test_compression.py | 94c00feb942478e173958850f2531ee22ee34d36 | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 4,754 | py | import pytest
import moto
import pandas as pd
from pandas import compat
import pandas.util.testing as tm
from pandas.util.testing import assert_frame_equal, assert_raises_regex
COMPRESSION_TYPES = [None, 'bz2', 'gzip', 'xz']
def decompress_file(path, compression):
if compression is None:
... | [
"amatar@unomaha.edu"
] | amatar@unomaha.edu |
c0080ebbd057dfd7b6f07d0cf6da607e25d703d7 | 18a6b272d4c55b24d9c179ae1e58959674e53afe | /tf_rl/examples/PETS/eager/mbexp_eager.py | 4f9236da79b133db42fdd2e3a7f81192485f4173 | [
"MIT"
] | permissive | Rowing0914/TF2_RL | 6cce916f409b3d4ef2a5a40a0611908f20d08b2c | c1b7f9b376cbecf01deb17f76f8e761035ed336a | refs/heads/master | 2022-12-10T09:58:57.456415 | 2021-05-23T02:43:21 | 2021-05-23T02:43:21 | 233,476,950 | 9 | 1 | MIT | 2022-12-08T07:02:42 | 2020-01-12T23:53:48 | Python | UTF-8 | Python | false | false | 1,926 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import os
import pprint
from dotmap import DotMap
from MBExperiment import MBExperiment
from MPC import MPC
from config import create_config
import env # We run this so that the env is registe... | [
"kosakaboat@gmail.com"
] | kosakaboat@gmail.com |
1159ee063dcd1f503d6966b5d6d5dfda32dae906 | 872e03095723c0baf07c191381c576114d65e1a6 | /utils/json2csv.py | 3e694047f325778140e4d45eefd4051d1c6a570a | [
"CC0-1.0"
] | permissive | paulgb/twarc | abfc5da667dfb13f3fbc317a9c74e8ce3a1c25fc | e5cbcf255620891484f1a3f024ebf5d7de7f45a7 | refs/heads/master | 2021-01-11T17:19:13.353890 | 2017-01-22T20:26:53 | 2017-01-22T20:26:53 | 79,743,163 | 1 | 0 | null | 2017-01-22T20:22:21 | 2017-01-22T20:22:21 | null | UTF-8 | Python | false | false | 3,592 | py | #!/usr/bin/env python
"""
A sample JSON to CSV program. Multivalued JSON properties are space delimited
CSV columns. If you'd like it adjusted send a pull request!
"""
import sys
import json
import fileinput
if sys.version_info[0] < 3:
import unicodecsv as csv
else:
import csv
def main():
sheet = csv.w... | [
"ehs@pobox.com"
] | ehs@pobox.com |
60df2b5f60e00bb56cd3b767c8383554ae2bc7fd | 1819b161df921a0a7c4da89244e1cd4f4da18be4 | /WhatsApp_FarmEasy/env/lib/python3.6/site-packages/web3/_utils/module_testing/event_contract.py | 0bd02242103e50ec3c05497d5689d11702ad9679 | [
"MIT"
] | permissive | sanchaymittal/FarmEasy | 889b290d376d940d9b3ae2fa0620a573b0fd62a0 | 5b931a4287d56d8ac73c170a6349bdaae71bf439 | refs/heads/master | 2023-01-07T21:45:15.532142 | 2020-07-18T14:15:08 | 2020-07-18T14:15:08 | 216,203,351 | 3 | 2 | MIT | 2023-01-04T12:35:40 | 2019-10-19T12:32:15 | JavaScript | UTF-8 | Python | false | false | 2,148 | py |
EVNT_CONTRACT_CODE = (
"6080604052348015600f57600080fd5b5061010b8061001f6000396000f30060806040526004361"
"0603f576000357c0100000000000000000000000000000000000000000000000000000000900463"
"ffffffff1680635818fad7146044575b600080fd5b348015604f57600080fd5b50606c600480360"
"381019080803590602001909291905050... | [
"sanchaymittal@gmail.com"
] | sanchaymittal@gmail.com |
5cb2a04dcb821e6b980289779d5191a0c6fb6caa | 036d01ba60f2d5a4aca50af6166572725fdd1c02 | /Demo/simple.py | 6004c9ef633e85210212d2460e2ac558031bf0d5 | [
"Python-2.0"
] | permissive | balabit-deps/balabit-os-7-python-ldap | f428541a2869d041f085dc7f67faf415503e4940 | 4fb1ca98915566dabb5f4ddb81aed9b8c28e3739 | refs/heads/master | 2022-07-23T03:40:41.370245 | 2022-07-16T02:24:42 | 2022-07-16T02:24:42 | 158,245,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,415 | py | from __future__ import print_function
import sys,getpass
import ldap
#l = ldap.open("localhost", 31001)
l = ldap.open("marta.it.uq.edu.au")
login_dn = "cn=root,ou=CSEE,o=UQ,c=AU"
login_pw = getpass.getpass("Password for %s: " % login_dn)
l.simple_bind_s(login_dn, login_pw)
#
# create a new sub organisation
#
try:
... | [
"testbot@balabit.com"
] | testbot@balabit.com |
61eb80caea52c64ff2aac740efc4aef246ca5fae | c857d225b50c5040e132d8c3a24005a689ee9ce4 | /problem131.py | 3cc59ea9340c137db33174ff2534c8458f94a073 | [] | no_license | pythonsnake/project-euler | 0e60a6bd2abeb5bf863110c2a551d5590c03201e | 456e4ef5407d2cf021172bc9ecfc2206289ba8c9 | refs/heads/master | 2021-01-25T10:44:27.876962 | 2011-10-21T00:46:02 | 2011-10-21T00:46:02 | 2,335,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
There are some prime values, p, for which there exists a positive integer, n, such that the expression n3 + n2p is a perfect cube.
for example, when p = 19, 83 + 8219 = 123.
what is perhaps most surprising is that for each prime with this property the value of n is unique, and there are only four such primes belo... | [
"pythonsnake98@gmail.com"
] | pythonsnake98@gmail.com |
f3996da9ea17ade40a477be3c1899ae180d2f7b4 | 2318b1fb55630a97b2311b825a0a67f4da62b84b | /test_package/conanfile.py | 242769dc09ce27d81daa7854c97d6902c0978315 | [
"MIT"
] | permissive | lasote/conan-hello-package | d5347aad04277b55db1bd58c5be9a3182540b287 | cacaa8c4209b21af327cda2a904335bba4e736fe | refs/heads/master | 2020-04-01T14:52:36.956040 | 2018-10-16T16:17:58 | 2018-10-16T16:17:58 | 153,311,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | from conans import ConanFile, CMake, tools
import os
class HelloReuseConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
# equal to ./bin/greet, b... | [
"lasote@gmail.com"
] | lasote@gmail.com |
19ec0dd5c87163554bceb312e8139a3796b6abf7 | 66238a554cc0f9cc05a5a218d3a5b3debe0d7066 | /ex15/ex15.py | 363596bbfeb75af79ed58fd0581a4812cc65ddb7 | [] | no_license | relaxdiego/learnpythonthehardway | 9dd2877bef2932e496e140694f34b419a373fe28 | d9ad5a69668004ee1fbb99d39ea2ce8af8a4278d | refs/heads/master | 2016-09-05T10:31:50.712280 | 2014-03-14T21:08:53 | 2014-03-14T21:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # Import the argv module located in the sys package
from sys import argv
# Unpack the arguments to these two variables
script, filename = argv
# Open the file referred to by 'filename'
txt = open(filename)
# Print a notification
print "Here's your file %r:" % filename
# Print the contents of the file
print txt.read... | [
"mmaglana@gmail.com"
] | mmaglana@gmail.com |
c3729c6ca9e232fb2d6692cd5cdd5456263af160 | f770a1f73701451487ff9e988f9e7de53173e842 | /arguments/example.py | 448947ec09ba492f5225b82b6e8fad828e3ec4b1 | [] | no_license | 935048000/python-LV1.0 | a15aa3d1cc9343818d1b7c2ec19f99c2e673f0c7 | 86c5db2869e5c456f73a9953b2355946635dde4d | refs/heads/master | 2021-07-15T02:31:17.022013 | 2018-11-01T03:32:36 | 2018-11-01T03:32:36 | 91,559,178 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import argparse
from argparse import ArgumentParser
if __name__ == '__main__':
ap = ArgumentParser ()
# ap.add_argument("-f", required = True, help = "文件名称")
ap.add_argument ("-d", help="数据库")
ap.add_argument ("-show", help="显示结果个数")
args = vars (ap.parse_args ())
print (args)
print (a... | [
"935048000@qq.com"
] | 935048000@qq.com |
6310b2382e4c2cde172373bfe6590255e202e258 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/97/usersdata/188/54680/submittedfiles/lecker.py | 85810d48da2d28fab217c1e4ad053f3574403d67 | [] | 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 | 865 | py | # -*- coding: utf-8 -*-
from __future__ import division
def lecker(lista):
cont=0
for i in range (0,len(lista),1):
if i==0:
if lista[i]>lista[i+1]:
cont=cont+1
if i==(len(lista)-1):
if lista[i]>lista[i-1]:
cont=cont+1
else:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
816038e7cec6f8a881a164b412cebe0929e6723c | f8d1d9a732fa88982c8515b0588fbfc7b4781a8e | /archive/const.py | aad869db587ad6575e5585c2485b5b4e5ba71ca1 | [
"MIT"
] | permissive | afcarl/HASS-data-science | ef5b68071eba0ecc67a7e24714e935b9b4dc02dc | 7edd07a1519682683b42d140d6268a87d91522ec | refs/heads/master | 2020-03-21T03:29:39.800584 | 2018-01-26T07:15:08 | 2018-01-26T07:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | """
Constants required for bayes_sensor.py
"""
ATTR_OBSERVATIONS = 'observations'
ATTR_PROBABILITY = 'probability'
ATTR_PROBABILITY_THRESHOLD = 'probability_threshold'
CONF_OBSERVATIONS = 'observations'
CONF_PRIOR = 'prior'
CONF_PROBABILITY_THRESHOLD = 'probability_threshold'
CONF_P_GIVEN_F = 'prob_given_false'
CONF_... | [
"robmarkcole@gmail.com"
] | robmarkcole@gmail.com |
da54c4a13811b72a2a731d1c9dda5104f27e2835 | 04c06575a49a3f4e30e4f3f2bf2365585664d2e8 | /python_leetcode_2020/Python_Leetcode_2020/1047_remove_all_adjacent_duplicates.py | ee5c01304d69945cc3fc5a194560193a58a8c61e | [] | no_license | xiangcao/Leetcode | 18da3d5b271ff586fdf44c53f1a677423ca3dfed | d953abe2c9680f636563e76287d2f907e90ced63 | refs/heads/master | 2022-06-22T04:45:15.446329 | 2022-06-17T13:03:01 | 2022-06-17T13:03:01 | 26,052,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | """
Given a string S of lowercase letters, a duplicate removal consists of choosing two adjacent and equal letters, and removing them.
We repeatedly make duplicate removals on S until we no longer can.
Return the final string after all such duplicate removals have been made. It is guaranteed the answer is unique.
"... | [
"xiangcao_liu@apple.com"
] | xiangcao_liu@apple.com |
04815718877eb52cdbe84b257a2c90fc487f98b1 | 8ebb138562884f01cae3d3ffaad9501a91e35611 | /dbCruiseKeywords/insertKeywordsAMT21.py | 5329fd597a44cceb752bbc3d035661f6b461df8e | [] | no_license | simonscmap/DBIngest | 7b92214034e90f8de88b06c17b48f83c769d8d35 | 9ae035cbf7453df375f0af5e920df3880a419107 | refs/heads/master | 2021-07-16T07:12:31.749027 | 2020-08-13T16:28:24 | 2020-08-13T16:28:24 | 200,295,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | import sys
import pycmap
sys.path.append('../')
import insertFunctions as iF
import config_vault as cfgv
import pandas as pd
sys.path.append('../dbCatalog/')
import catalogFunctions as cF
"""-----------------------------"""
""" AMT21 CRUISE KEYWORDS"""
"""-----------------------------"""
cruise_name = 'AMT21'
server... | [
"norlandrhagen@gmail.com"
] | norlandrhagen@gmail.com |
eb224a9856ac7ac78adfc83b92d604827d93fa54 | 77e0a93598c3db5240ecdeba677a8c7e4f9778ca | /Third academic course/Digital signals/6 Бодя/show-result.py | 0a42092c800aa1e0eb4f18d6b931c6d9a47b94d4 | [] | no_license | andrsj/education | 7d7b28e59bceb40a2de63f9dbc2aba734d24d7f1 | 3630b2abbb6d444b4079dd7f5d988769ef24e2b8 | refs/heads/master | 2021-02-26T06:07:13.180215 | 2020-03-13T15:37:51 | 2020-03-13T15:37:51 | 245,501,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | import matplotlib.pyplot as plt
from math import sin, pi
from numpy import array, arange, abs as np_abs
from numpy.fft import rfft, rfftfreq
import numpy as np
import math
import sys
def progressBar(value, endvalue, bar_length=20):
percent = float(value) / endvalue
arrow = '-' * int(round(percent * bar_length... | [
"61803449+andrsj@users.noreply.github.com"
] | 61803449+andrsj@users.noreply.github.com |
340b149fcbcb3ebc7c8da876e4f8f31e5443a3cf | 5dd8ce7f11c8f568e19fa821f07bb238733da972 | /Src/xmds2_0/xpdeint/Features/Validation.py | ff220c34a16abf4c7fee376ee584e7ed1e3a27fd | [] | no_license | htsenyasa/MachineLearningGrossPitaevskiiEq | fba9fa92879c2c805288950d344333f60d8c7ae4 | cae0b690841a55fda9d3ec49df7f8321a9835b95 | refs/heads/master | 2023-06-23T00:58:21.036638 | 2021-03-07T22:19:10 | 2021-03-07T22:19:10 | 345,210,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,534 | py | #!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import builtins as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatibleV... | [
"htsenyasa@gmail.com"
] | htsenyasa@gmail.com |
8979b43397731f7136edd31fef1a18c6b1719f03 | 48f73b5b78da81c388d76d685ec47bb6387eefdd | /scrapeHackerrankCode/codes/countingsort4.py | 19499fa9bfd4b0ac98cfcdcd0832d5e38c370504 | [] | no_license | abidkhan484/hacerrankScraping | ad0ceda6c86d321d98768b169d63ea1ee7ccd861 | 487bbf115117bd5c293298e77f15ae810a50b82d | refs/heads/master | 2021-09-18T19:27:52.173164 | 2018-07-18T12:12:51 | 2018-07-18T12:12:51 | 111,005,462 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # Wrong Answer
# Python 3
def counting_sort(li, last):
mylist = []
for i in range(100):
if li:
mylist.extend(li[i])
for i in mylist:
if i in last:
print(i, end=' ')
else:
print('-',end=' ')
return mylist
n = int(input().strip())
mylist... | [
"abidkhan484@gmail.com"
] | abidkhan484@gmail.com |
095f28bd50f1fd571b4353f0807f9c0b3d1088f0 | 60aa3bcf5ace0282210685e74ee8ed31debe1769 | /simulation/objects/components/example.py | 4e2e03f6ed0f3bffcca45b85be3a36be97e6506f | [] | no_license | TheBreadGuy/sims4-ai-engine | 42afc79b8c02527353cc084117a4b8da900ebdb4 | 865212e841c716dc4364e0dba286f02af8d716e8 | refs/heads/master | 2023-03-16T00:57:45.672706 | 2016-05-01T17:26:01 | 2016-05-01T17:26:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | from sims4.tuning.tunable import Tunable, TunableFactory
from objects.components import Component, componentmethod
from sims4.log import Logger
from objects.components.types import EXAMPLE_COMPONENT
logger = Logger('ExampleComponent')
class ExampleComponent(Component, component_name=EXAMPLE_COMPONENT):
__qualname_... | [
"jp@bellgeorge.com"
] | jp@bellgeorge.com |
181a43c318a97a1f549a48a039263e10796b9c5c | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayCloudCloudbaseFunctionArgumentModifyRequest.py | 55f25f723f5f0d999a2b595cebad11846630e3a9 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 4,052 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayCloudCloudbaseFunctionArgumentModifyModel import AlipayCloudCloudbaseFunctionArgumentModifyModel
class AlipayCloudCloudbaseFun... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
bed37091c684cb97919804235df6b467b860396c | d6d87140d929262b5228659f89a69571c8669ec1 | /airbyte-connector-builder-server/connector_builder/generated/models/datetime_stream_slicer_all_of.py | dcd4d06d5fd5964f1ca2e312c73d2e0afb113de3 | [
"MIT",
"Elastic-2.0"
] | permissive | gasparakos/airbyte | b2bb2246ec6a10e1f86293da9d86c61fc4a4ac65 | 17c77fc819ef3732fb1b20fa4c1932be258f0ee9 | refs/heads/master | 2023-02-22T20:42:45.400851 | 2023-02-09T07:43:24 | 2023-02-09T07:43:24 | 303,604,219 | 0 | 0 | MIT | 2020-10-13T06:18:04 | 2020-10-13T06:06:17 | null | UTF-8 | Python | false | false | 2,953 | py | # coding: utf-8
from __future__ import annotations
from datetime import date, datetime # noqa: F401
import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401
from pydantic import AnyUrl, BaseModel, EmailStr, Field, validator # noqa: F401
from connector_builder.generated.models.any_of_inter... | [
"noreply@github.com"
] | gasparakos.noreply@github.com |
b4b8677d5f8abdf8ce876a8899616a1256c74a3f | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler.py | 81b1f32db2c950b486b75b8aa10be0dde44097e6 | [
"MIT",
"Apache-2.0"
] | permissive | JeffYFHuang/gpuaccounting | d754efac2dffe108b591ea8722c831d979b68cda | 2c63a63c571240561725847daf1a7f23f67e2088 | refs/heads/master | 2022-08-09T03:10:28.185083 | 2022-07-20T00:50:06 | 2022-07-20T00:50:06 | 245,053,008 | 0 | 0 | MIT | 2021-03-25T23:44:50 | 2020-03-05T02:44:15 | JavaScript | UTF-8 | Python | false | false | 7,284 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.15.6
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class V2beta1Hor... | [
"JeffYFHuang@github.com"
] | JeffYFHuang@github.com |
c4ee68989153810cacf00394dc731b07ff96d94f | a3035906490a1f4fd4527292263a9712eb505f59 | /tests/test_flask_pyoidc.py | 97904176da13cd95c1195d91167ce956b53aa579 | [
"Apache-2.0"
] | permissive | liam-middlebrook/Flask-pyoidc | ee6c48cf14792961d932e74e2872c9279f71be58 | e3bef3f865fba8a833b0687cd621af96fd733540 | refs/heads/master | 2020-05-29T12:18:53.458702 | 2016-06-16T07:09:00 | 2016-06-16T07:09:00 | 68,504,245 | 0 | 0 | null | 2016-09-18T07:23:15 | 2016-09-18T07:23:13 | Python | UTF-8 | Python | false | false | 5,170 | py | import json
import time
from six.moves.urllib.parse import parse_qsl, urlparse
from mock import MagicMock
import flask
import pytest
import responses
from flask import Flask
from oic.oic.message import IdToken, OpenIDSchema
from flask_pyoidc.flask_pyoidc import OIDCAuthentication
ISSUER = 'https://op.example.com'
... | [
"rebecka.gulliksson@umu.se"
] | rebecka.gulliksson@umu.se |
2c7646b0df57962bdba6ec700e05df505503b1a0 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq2972.py | a07d39124316f5c715b11f6b2b7fe2f731a83585 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,317 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=46
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
44054f2db9a1717828d12b508c84eb70aac5ec41 | bf06bf980ef359615604d53567d1cc435a980b78 | /data/HW3/hw3_393.py | 3737707ba248e3457fb769feea86090504bcb756 | [] | no_license | am3030/IPT | dd22f5e104daa07a437efdf71fb58f55bcaf82d7 | 6851c19b2f25397f5d4079f66dbd19ba982245c5 | refs/heads/master | 2021-01-23T05:03:53.777868 | 2017-03-09T18:10:36 | 2017-03-09T18:10:36 | 86,270,526 | 0 | 0 | null | 2017-03-26T22:53:42 | 2017-03-26T22:53:42 | null | UTF-8 | Python | false | false | 929 | py |
def main():
scaleType = input("What temperature scale would you like? Please enter 'K' for kelvins or 'C' for Celcius. ")
if scaleType == "C":
tempC = float(input("What is the temperature of the water? "))
if tempC <= 0.0:
print("At this temperature, water is solid ice.")
i... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
1b76298b5547d8d29c729380de7d3f35010fc778 | 0ddbd741aef53f75902131853243891a93c81ef6 | /select_folder/folder_gui.py | 7fd7ece2562fe6617fb2148dc16152313c8844cc | [] | no_license | JennyPeterson10/The-Tech-Academy-Python-Projects | 3be2a10e0f8203fe920059e7a98508f3b8fe493f | 08841a3a7d514a0e1d3e7dddd440e5641e646fe8 | refs/heads/master | 2020-04-28T19:38:32.690859 | 2019-04-11T18:38:56 | 2019-04-11T18:38:56 | 175,517,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | # Created by Jenny Peterson March 29, 2019
from tkinter import *
import tkinter as tk
import folder_main
import folder_func
def load_gui(self):
# Define button and label
self.btn_browse = tk.Button(self.master,width=15,height=1,text='Browse...',command=lambda: folder_func.openDir(self))
self.btn_brow... | [
"you@example.com"
] | you@example.com |
c7eacdcc987476d50e88c69c835152407a384efc | dfb3f2a0aef80a76af7cf748cdc615d3b0a97e30 | /Python_OOP/bike.py | 7d1cdc867bda6714cfb1ed6bfb758f921371584b | [] | no_license | ahrav/Coding_Dojo_Assignments | 090f8e22b8a68a0f1cadb69df3bcef7393ca8346 | 161bd8bb633bfb08186d42d32ae1d2b889e5cc97 | refs/heads/master | 2021-07-21T21:55:12.785361 | 2017-10-29T09:38:00 | 2017-10-29T09:38:00 | 108,720,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | class bike(object):
def __init__(self, price, max_speed):
self.price = price
self.max_speed = max_speed
self.init_miles = 0
def displayinfo(self):
print self.price
print self.max_speed
print self.init_miles
return self
def ride(self):
self.in... | [
"ahravdutta02@gmail.com"
] | ahravdutta02@gmail.com |
442125862c5851b52822ed3df15064a90e45b9dc | 3c24e501eae18b841aaa6cc2f5f030ec7d7aaea9 | /Day-20/UsApp/forms.py | e93acab849712f018afad3da8c532815dd95540f | [] | no_license | SatheeshMatampalli/Django-Polytechnic-Internship | 2c26be5f7e48c7690e7f987c29ec6082b073862f | 8223d442c313ef94ec4dba21f54dfb79f01f45ee | refs/heads/main | 2023-02-04T04:36:40.073852 | 2020-12-24T06:57:12 | 2020-12-24T06:57:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django import forms
from django.forms import ModelForm
from UsApp.models import ImPfle
class UsReg(UserCreationForm):
password1 = forms.CharField(widget=forms.PasswordInput(attrs={"class":"form-control","placeholde... | [
"rravikumar34@gmail.com"
] | rravikumar34@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.