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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81eadfc809d0cf5b5a71ddb6a834f6e4624de45c | 00f0d7e80422f2dd7528c3e9189ced60e067489b | /venv/Lib/site-packages/sqlalchemy/orm/dependency.py | e7fdb9b684452b025e9385d5910da3833cce34fd | [] | no_license | mohapsat/flask-crud | 5258a0fb1f26f766e6d15348bc7fe2396110bf02 | 2a5d28f5d0ccc2b30291164842a44104621cd41a | refs/heads/master | 2021-06-30T16:30:25.352036 | 2017-09-19T20:55:05 | 2017-09-19T20:56:33 | 103,460,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,331 | py | # orm/dependency.py
# Copyright (C) 2005-2017 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Relationship dependencies.
"""
from . import attributes, exc, sync, unitofwor... | [
"smohapatra@shutterfly.com"
] | smohapatra@shutterfly.com |
62595ee3202b11b8916b95563ed6c8c35bd61fd9 | 298a69c0662e636b2e9fa31c66691d3db678b23f | /nova/tests/unit/notifications/objects/test_notification.py | f3b91ef21e58a61fc6f32efa693e554fcc6470c6 | [
"Apache-2.0"
] | permissive | gmannos/nova-rbac-policy-defaults-refresh | 14e30135ab6ee263aa59dac96eace131659759c4 | 7c61b4bd19b97011d7581866c0262065e52d7865 | refs/heads/master | 2022-07-19T16:48:10.056447 | 2021-03-31T20:58:55 | 2021-03-31T20:58:55 | 230,688,889 | 0 | 1 | Apache-2.0 | 2022-07-06T20:26:12 | 2019-12-29T01:37:50 | Python | UTF-8 | Python | false | false | 21,087 | py | # 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 agreed to in... | [
"gmann@ghanshyammann.com"
] | gmann@ghanshyammann.com |
2c530eac0aa90fdc4c11e3a01ffb3a6aa53103db | 7300938cc6dce48a8142251beba72d17b380435f | /virtual/Lib/site-packages/pip/_vendor/html5lib/filters/sanitizer.py | 08e9d580cf706c0a37ba0c0dfe5983b584819699 | [] | no_license | Sriramg89/Restaurant | 68ba46912ac29a5b2c5f161a74e98ef6d913b7eb | 3c70a42b7fb0ce41d703e16678661d6084c80511 | refs/heads/main | 2023-03-12T02:01:59.943499 | 2021-03-01T05:53:52 | 2021-03-01T05:53:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,940 | py | """Deprecated from html5lib 1.1.
See `here <https://github.com/html5lib/html5lib-python/issues/443>`_ for
information about its deprecation; `Bleach <https://github.com/mozilla/bleach>`_
is recommended as a replacement. Please let us know in the aforementioned issue
if Bleach is unsuitable for your needs.
"""
from __... | [
"37271647+sriramg89@users.noreply.github.com"
] | 37271647+sriramg89@users.noreply.github.com |
a09ca4b41e8ca62aa161bb1d0b785e6e798d0df0 | 05bf7de1337bc938578accba64416863cec1ed63 | /bin/Python27/Lib/site-packages/pyqtgraph/exporters/SVGExporter.py | a91466c8a9dc0a94236ebab97470bbf9db29b0fc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | metamorph-inc/openmeta-mms | d0dccae88e7532594f02c5eff8daa74c6c0e4010 | 2644cb7273916e36c3725785fc9a44948d64c343 | refs/heads/master | 2023-04-06T11:09:36.316306 | 2023-03-28T18:17:55 | 2023-03-28T18:17:55 | 70,078,378 | 21 | 8 | NOASSERTION | 2023-01-14T09:31:14 | 2016-10-05T16:29:54 | Python | UTF-8 | Python | false | false | 18,836 | py | from .Exporter import Exporter
from ..python2_3 import asUnicode
from ..parametertree import Parameter
from ..Qt import QtGui, QtCore, QtSvg, USE_PYSIDE
from .. import debug
from .. import functions as fn
import re
import xml.dom.minidom as xml
import numpy as np
__all__ = ['SVGExporter']
class SVGExporter(Exporter)... | [
"kevin.m.smyth@gmail.com"
] | kevin.m.smyth@gmail.com |
6ae0e8f0839e9652cabbcb6acdcc970aeb910d88 | f819fe72c5b18b42a25a71dc2900c7fa80e17811 | /pandas/core/dtypes/astype.py | 8d1427976276c4b80c9e5c2b2026fceb09cb7a94 | [
"BSD-3-Clause"
] | permissive | JMBurley/pandas | 34d101425acb0ac35a53bcf29fbd47c2d4c88fda | b74dc5c077971301c5b9ff577fa362943f3c3a17 | refs/heads/master | 2022-11-06T00:48:41.465865 | 2022-06-13T19:30:11 | 2022-06-13T19:30:11 | 229,853,377 | 1 | 0 | BSD-3-Clause | 2019-12-24T02:11:54 | 2019-12-24T02:11:53 | null | UTF-8 | Python | false | false | 12,424 | py | """
Functions for implementing 'astype' methods according to pandas conventions,
particularly ones that differ from numpy.
"""
from __future__ import annotations
import inspect
from typing import (
TYPE_CHECKING,
cast,
overload,
)
import warnings
import numpy as np
from pandas._libs import lib
from panda... | [
"noreply@github.com"
] | JMBurley.noreply@github.com |
97d63a5cded53d536831e72cf4f7b7ccbb52c5c0 | 8b3bc4efea5663b356acbabec231d1d647891805 | /045/Solution.py | 2cdbe019e8519ee7fdf7c484d5331b6d5c3fd35e | [] | no_license | FawneLu/leetcode | 9a982b97122074d3a8488adec2039b67e709af08 | 03020fb9b721a1c345e32bbe04f9b2189bfc3ac7 | refs/heads/master | 2021-06-18T20:13:34.108057 | 2021-03-03T05:14:13 | 2021-03-03T05:14:13 | 177,454,524 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | class Solution:
def jump(self, nums: List[int]) -> int:
cur=0
pos=0
count=0
pre=0
while cur<len(nums)-1:
count+=1
pre=cur
while pos<=pre:
cur=max(cur,pos+nums[pos])
pos+=1
return count | [
"tracylu1996@gmail.com"
] | tracylu1996@gmail.com |
565d576f747f606b9413604ccfd6e5865be20300 | b9fd9ed02312be96e05ef23243c4dfac1392be08 | /tensorflow/compiler/tests/xla_test.py | cc778f1c3c0098da5ab933f9b4674890a724d160 | [
"Apache-2.0"
] | permissive | RLeili/tensorflow | 9e5650b5d02771da94a345ceb97b4f3293638e1e | 42ee949d022d8665cf2e908e800f1ef1594c6abf | refs/heads/master | 2021-04-09T11:51:32.393739 | 2019-10-16T16:44:23 | 2019-10-16T16:44:23 | 125,318,700 | 0 | 0 | Apache-2.0 | 2018-03-15T05:50:05 | 2018-03-15T05:50:04 | null | UTF-8 | Python | false | false | 9,599 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5a8ba1b3bf6e030f6c14b1107dab93e28c9fc257 | ab25e7f9fdbd53d164066ceb9e6a47e1990ccf1c | /BLD/accounts/views.py | 4717500b4a6698f7b0252dbe7d3d93ee3ad7d11e | [] | no_license | HSH4U2U/Project_001 | b48f11ac40b4994dc87d917aaeb722acf14402e6 | 8336f8d7204e78d1d6c0363fbf7824163f7b1cac | refs/heads/master | 2020-04-06T08:34:20.756443 | 2018-12-07T13:47:57 | 2018-12-07T13:47:57 | 157,308,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,741 | py | from django.shortcuts import render, redirect
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import login as logedin, logout, authenticate
from .forms import SignupForm
from django.http import HttpResponse
from django.utils.encoding import force_bytes, force_text
from django.utils.htt... | [
"abc@example.com"
] | abc@example.com |
c36434e1fd982f0774c3372611787ffc37a6d5f6 | 1720aa75167aa0837a727e16761e3b65acadcba7 | /python/ray/serve/tests/test_controller_recovery.py | 315ecf3dc70b44fdfafc4f89d63ea51a5f797d39 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pcmoritz/ray-1 | 3fd0dbf300cb4c1ce791555f4691e1101c1edbee | c5e78dc0c8a3e2c099451f37e54ab6b6fe8a004a | refs/heads/master | 2023-08-17T05:36:11.528122 | 2023-07-25T21:39:48 | 2023-07-25T21:39:48 | 77,173,450 | 0 | 1 | Apache-2.0 | 2023-03-04T08:57:43 | 2016-12-22T20:21:46 | Python | UTF-8 | Python | false | false | 14,605 | py | import asyncio
import os
import sys
import time
import pytest
from collections import defaultdict
import ray
from ray.exceptions import RayTaskError
from ray._private.test_utils import SignalActor, wait_for_condition
from ray.util.state import list_actors
from ray import serve
from ray.serve._private.common import A... | [
"noreply@github.com"
] | pcmoritz.noreply@github.com |
d361c9bb0e45594f4a9365779ee6a3aa5b4cf9a1 | 3563dc4589f412e8c8ceb566e4edeb5e86e0f62c | /simapp/db/api.py | 1619be512f66be3dbf5a3b6bc4fe96d69a0b0f81 | [] | no_license | matthiaskoenig/modelmanager | f5286b812e137c3566d9175d53f8b7705b297053 | e01a902fc23c5df9f661f251ef9119326a510a94 | refs/heads/master | 2020-12-24T07:21:21.553650 | 2017-08-29T08:08:41 | 2017-08-29T08:08:41 | 58,029,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,314 | py | """
Helper functions and tools to create objects in the database.
All interactions with the database should go via this module.
No direct interactions with the database should occur
TODO: handle the model better
@author: Matthias Koenig
@date: 2015-05-10
"""
import logging
from django.core.exceptions import ObjectDo... | [
"konigmatt@googlemail.com"
] | konigmatt@googlemail.com |
e5dd7f8fa98665fd2b167ff057ec7b1f104232c7 | 63eb05febaac75f781a266d48d1cfff2debe64ea | /the_tale/game/artifacts/tests/test_prototypes.py | 2927df6ab6e11192ed8b3f6377c95f938bab8271 | [
"BSD-2-Clause-Views"
] | permissive | MadRiw/the-tale | 185ca33e410a59de63a594daf15fc8a5701338d2 | 1801beab2ed149556c0b3380e8adaaa976f74e6c | refs/heads/master | 2021-01-15T23:45:34.873857 | 2015-06-17T13:06:12 | 2015-06-17T13:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,239 | py | # coding: utf-8
import random
import mock
from the_tale.common.utils import testcase
from the_tale.accounts.logic import register_user
from the_tale.linguistics import relations as linguistics_relations
from the_tale.game import names
from the_tale.game.balance import constants as c
from the_tale.game.balance.pow... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
365c89bb34551b07a8dc73e910811ed15221ff63 | 94309403cd8405c1fd45556e9fbf517660ea22ae | /glottolog3/scripts/load.py | f3c360274416b8a430b968cea93b410a073f61e5 | [
"MIT"
] | permissive | pombredanne/glottolog3 | 54ab7937d39c204bf25b7257a0b773780a9b005c | 57fffdd0eae8338bf6ade639396d75b60732eebc | refs/heads/master | 2021-01-21T17:06:59.851523 | 2015-12-03T13:48:54 | 2015-12-03T13:48:54 | 47,515,545 | 0 | 1 | null | 2015-12-06T21:59:03 | 2015-12-06T21:59:03 | null | UTF-8 | Python | false | false | 1,197 | py | # -*- coding: utf-8 -*-
import os
from functools import partial
import json
import transaction
from clld.scripts.util import parsed_args, data_file
if __name__ == '__main__': # pragma: no cover
add_args = [
(("version",), dict(help="X.Y")),
(("what",), dict()),
(("command",), dict(help="... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
db0cc9aa8e02d634852866924799102d9f123062 | 2acf64fca88200f4a4ada46f5da4f96702bafa06 | /stubs/facebook_business/adobjects/streamingreaction.pyi | 129ddb7719bb3e77c06fd9ed9644ca6eae982efa | [] | no_license | vlab-research/adopt | bf6cdbfb751f7d85674e3925b207639e7d9d92c4 | 66347b00996e26910290e4fdb883e4231cc614af | refs/heads/master | 2023-04-12T12:16:23.061861 | 2021-05-18T14:17:01 | 2021-05-18T14:17:01 | 278,025,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | pyi | from facebook_business.adobjects.abstractobject import AbstractObject as AbstractObject
from typing import Any, Optional
class StreamingReaction(AbstractObject):
def __init__(self, api: Optional[Any] = ...) -> None: ...
class Field(AbstractObject.Field):
count: str = ...
reaction_type: str = ..... | [
"nandanmarkrao@gmail.com"
] | nandanmarkrao@gmail.com |
9115460c2d2880b538943cf87f65cfa4976e6290 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/ppapi/tests/extensions/extensions.gyp | aff088781fc1814d67c069022f17bd211be314e6 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-khronos"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 12,172 | gyp | # Copyright (c) 2013 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.
{
'includes': [
'../../../ppapi/ppapi_nacl_test_common.gypi',
],
'targets': [
{
'target_name': 'ppapi_tests_extensions_background_kee... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
474a54dbb6f54ebaff80c8c1f5d5021348bd7b43 | 47ee119c92eceec091737f70d477e84b77f5f385 | /compsocsite/mentors/urls.py | 2948858c09365e1c4649e0e377c38a059e368ab8 | [
"MIT"
] | permissive | ReedyChen/opra | 36e1542936d014de39e29a3608ade4b23e0e67f7 | 86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f | refs/heads/master | 2020-07-24T11:15:42.066062 | 2019-12-18T04:29:33 | 2019-12-18T04:29:33 | 207,905,282 | 0 | 0 | MIT | 2019-09-11T20:56:23 | 2019-09-11T20:56:23 | null | UTF-8 | Python | false | false | 2,040 | py | from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from django.views.decorators.cache import cache_page
from . import views
from django.urls import path
app_name = 'mentors'
urlpatterns = [
url(r'^$', login_required(views.viewindex), name='index'),
#url(r'^apply$', log... | [
"1"
] | 1 |
ae17b555e21daa609bc78274f52fa03c7e487f1a | cac3d73826abfe66e11d7729645c8b1da488049f | /.waf-1.9.9-7bba8e621200e038b4ec3cb1cb148f38/waflib/Tools/fc.py | 8cb8812d8110e01e1aae7eb13691e99446f28340 | [
"MIT"
] | permissive | mish24/werk | 5fc82300a00b386f211b5609ed216bb87b04dc9d | 2f8822842fb8f68a4402775d1d3b41021b5a9945 | refs/heads/master | 2020-05-17T08:46:23.361609 | 2019-05-08T18:25:08 | 2019-05-08T18:25:08 | 183,615,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,959 | py | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
from waflib import Utils,Task
from waflib.Tools import ccroot,fc_config,fc_scan
from waflib.TaskGen import extension
from waflib.Configure import conf
ccroot.USELIB_VARS['fc']=set(['FCFLAGS','DEFINES... | [
"poonammishra24398@gmail.com"
] | poonammishra24398@gmail.com |
deef0fa4c9c9c48d7395a1637d10eb487ad51246 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/show_project_summary_v4_response.py | 93a60325c81db4cf021a9529d821932a38fd3f37 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,992 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ShowProjectSummaryV4Response(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
ade39a80731592e11e81b518c422e0e0254255d2 | 4c9d728aab9d5c377211780a54692e4d4f6c428f | /Profile/migrations/0005_auto_20191023_2228.py | b163aca6e22176e78d3ba7da86c51bc2991fda9c | [] | no_license | kahdichienja/Accommodation_Management | d3cd5159e64e0016a2997a15be449c8cb08eeded | 6eca68f56a09924217d1dc091da6d1182a58cc6b | refs/heads/master | 2022-12-15T10:22:28.353169 | 2020-04-09T14:42:39 | 2020-04-09T14:42:39 | 217,833,571 | 1 | 1 | null | 2022-12-08T06:15:23 | 2019-10-27T09:42:22 | CSS | UTF-8 | Python | false | false | 486 | py | # Generated by Django 2.2.6 on 2019-10-23 22:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Profile', '0004_auto_20191023_2029'),
]
operations = [
migrations.AlterField(
model_name='userh... | [
"ago@localhost.localdomain"
] | ago@localhost.localdomain |
ebc3285ac7f2e2e747d9fd3b03fca5f331ef9276 | 68283b9266ca2a9e189a87442e63a222495d7d86 | /src/htsql_pgsql/tweak/system/introspect.py | cac4d2c1e52a059c572241c88737976b03d29316 | [
"Apache-2.0"
] | permissive | sirex/htsql | 1fe49bd773cd9154e90e96d6a580305e5bbe5185 | 52275f6a584b412c109822d2ed2a5e69ac522cdf | refs/heads/master | 2021-01-03T23:08:58.699172 | 2020-01-31T18:43:51 | 2020-01-31T18:43:51 | 240,275,730 | 0 | 0 | Apache-2.0 | 2020-02-13T14:10:06 | 2020-02-13T14:10:05 | null | UTF-8 | Python | false | false | 18,379 | py | #
# Copyright (c) 2006-2013, Prometheus Research, LLC
#
from htsql.core.adapter import call
from htsql.core.domain import IntegerDomain, TextDomain
from ...core.introspect import IntrospectPGSQL, IntrospectPGSQLDomain
class PGCatalogIntrospectPGSQL(IntrospectPGSQL):
system_schema_names = []
primary_keys =... | [
"xi@resolvent.net"
] | xi@resolvent.net |
04df0af248d5acc99c9684d7a48956217352b289 | 822bc290f7df79378702df6d1934a412f03191d2 | /zentral/contrib/nagios/views.py | e0ed7b317ffe3a534e318ee08aafb3e526cc840c | [
"Apache-2.0"
] | permissive | zoocoup/zentral | 746638fc0380a738ce7cc4b179adde514a9557ac | af4439732ba6ba2429c617a365d8eaf3db847520 | refs/heads/master | 2022-12-18T15:00:38.136171 | 2020-09-24T17:42:23 | 2020-09-27T15:03:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,911 | py | import logging
import os.path
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from django.urls import reverse_lazy
from django.views.generic import View, ListView
from django.views.generic.edit import CreateView, UpdateView, D... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
302a8736ccf90e71f1fd0cee042fb05a44d08d03 | 226ac091bf0c9f204bc69df39868374838aba26d | /__init__.py | 47216409c324dbcf721742bf1d4ff75f5de5dc0e | [] | no_license | rjonnal/octoblob_old_2 | bd39a9a434f5ec76d3ebe5a4f364c7247c615651 | 9d99357729dcfa1d8a4d691fc86c3154b8a686c4 | refs/heads/master | 2023-02-08T20:03:06.303688 | 2021-01-05T16:48:59 | 2021-01-05T16:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,292 | py | from __future__ import (absolute_import, division,
print_function, unicode_literals)
from builtins import *
import sys,os,time
import numpy as np
from matplotlib import pyplot as plt
import scipy.signal as sps
import scipy.interpolate as spi
import scipy.io as sio
from octoblob import b... | [
"rjonnal@gmail.com"
] | rjonnal@gmail.com |
cf6c04bd247836074769eaceb80b843aae403f54 | a4df0ee67d0d56fc8595877470318aed20dd4511 | /vplexapi-6.2.0.3/vplexapi/models/port_exports.py | 3738a9002bd0b5dd922eb37893cc064c33b99a2a | [
"Apache-2.0"
] | permissive | QD888/python-vplex | b5a7de6766840a205583165c88480d446778e529 | e2c49faee3bfed343881c22e6595096c7f8d923d | refs/heads/main | 2022-12-26T17:11:43.625308 | 2020-10-07T09:40:04 | 2020-10-07T09:40:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,608 | py | # coding: utf-8
"""
VPlex REST API
A defnition for the next-gen VPlex API # noqa: E501
OpenAPI spec version: 0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class PortExports(object):
"""NOTE: This class is auto ... | [
"anil.degwekar@emc.com"
] | anil.degwekar@emc.com |
c23d89008bdf48420a933f86e9aaa36bae0f7e71 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /tools/perf/page_sets/android_acceptance.py | e17fbcd0d5d133a77cb3f2bec978f80d236d2b04 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"MIT"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 1,258 | py | # 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.
from telemetry.page import page as page_module
from telemetry.page import shared_page_state
from telemetry import story
class AndroidAcceptancePage(page_mod... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
9d570fabed08d3d5299f5d37f7be39f93191eb64 | 72481f5a28e8ecf9aeca6e6822413ba6ea2f2951 | /Part 3 - Classification/Random Forest Classification/random_forest.py | d4ceb200edb6e10f065a61fd2cd54e18781e4f30 | [] | no_license | sainihimanshu1999/Machine-Learning | 22265a5df227a73dddb137b45af25fe6f7ee0643 | 92aa974534c85d2959f21802f5bf46f3b3b63f01 | refs/heads/master | 2021-01-01T14:47:48.090663 | 2020-03-06T17:26:32 | 2020-03-06T17:26:32 | 239,324,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | #importing Libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#importing datasets and making matrices
dataset = pd.read_csv('Social_Network_Ads.csv')
x = dataset.iloc [ : , [2,3]].values
y = dataset.iloc [ : ,4 ].values
# Splitting the datasets into training set and test set
from sklear... | [
"sainihimanshu.1999@gmail.com"
] | sainihimanshu.1999@gmail.com |
e98d4ac2610d4db32e5bb453a5d7bde29d80d66f | f2cad16a7d4914be8f07630ed382b4dbc210ba12 | /Django1.7/bin/thresholder.py | d531fe825bfc378b5a96d76f6589083a5fd47f2f | [] | no_license | zhangdavids/a_forum | d5959c6dce000db5a9701456ef686cd27b41db7e | 95dc7c4fe3be44b1c06487b9e2629e8ee2ccc545 | refs/heads/master | 2021-01-21T15:00:50.489274 | 2017-06-25T15:49:22 | 2017-06-25T15:49:22 | 95,369,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | #!/Users/zhangjun/PycharmProjects/untitled5/django_forum/Django1.7/bin/python2.7
#
# The Python Imaging Library
# $Id$
#
# this demo script illustrates how a 1-bit BitmapImage can be used
# as a dynamically updated overlay
#
import sys
if sys.version_info[0] > 2:
import tkinter
else:
import Tkinter as tkinter... | [
"1269969739@qq.com"
] | 1269969739@qq.com |
ea7ae22f6326366a68a06f90b3c713f1ddf9e11d | c30bec69ed0791fc10083e785ae255f5a222fda5 | /spider/__init__.py | ebb841daea7190acb89d9fac5acbcabb512f7d4e | [
"BSD-2-Clause"
] | permissive | liudong1949/PSpider | 1448be5fd60e2a589fe64b52698f7da8830f1719 | bf6e48d56dc686568bcbe922bbcfca61282d696e | refs/heads/master | 2020-04-15T09:52:31.044190 | 2018-12-31T15:25:00 | 2018-12-31T15:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # _*_ coding: utf-8 _*_
"""
define WebSpider, and also define utilities and instances for web_spider
"""
__version__ = "2.1.3"
from .utilities import *
from .concurrent import TPEnum, WebSpider
from .instances import Fetcher, Parser, Saver, Proxieser
| [
"qixianhu@qq.com"
] | qixianhu@qq.com |
e685be6d5bb49ec09d4d710a4cbedec74c0b5c49 | 731a0fee2fc6e47701a58d73d81247cc1d32a51b | /code/processing/20160816_r1_O1_IPTG_titration/analysis.py | b0d073e224a4c45d8b350a60e65c8ebfcc9c0968 | [] | no_license | RPGroup-PBoC/mwc_induction | ea30c2f5876f1d51835d3d1557facca49914b231 | 815d7914ea2f9530f4cc4f46dc19d4ac82e52573 | refs/heads/master | 2021-03-16T10:23:39.073020 | 2018-01-30T00:41:11 | 2018-01-30T00:41:11 | 62,758,735 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | import os
import glob
# Our numerical workhorses
import numpy as np
import pandas as pd
import scipy
# Import matplotlib stuff for plotting
import matplotlib.pyplot as plt
import matplotlib.cm as cm
# Seaborn, useful for graphics
import seaborn as sns
# favorite Seaborn settings for notebooks
rc={'lines.linewidth': 2... | [
"gchure@caltech.edu"
] | gchure@caltech.edu |
c826d50873613c75b1dd552dbd03cf124bc79494 | a3354726b126b85987a1455bd4b1ed0a4d05f5bb | /config/urls.py | ba82388cd3af0807c09e445af2da949c71987204 | [] | no_license | RonaldTheodoro/django-blog | cea90ab619e69560013a995c8d67d65e4593e0a9 | 92b64aa93c495fef835e64a98c9619cba3f518c4 | refs/heads/master | 2020-04-01T06:05:08.492523 | 2018-10-20T15:28:53 | 2018-10-20T15:28:53 | 152,932,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"ronald.silva4@fatec.sp.gov.br"
] | ronald.silva4@fatec.sp.gov.br |
18c15d7344b9b363877827a60a87719722ca01e5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03777/s222194589.py | 04987153324ff135d92d6e04558c0f2655189526 | [] | 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 | 109 | py | a, b = input().split()
table = [['H','D'],['D','H']]
ind = ['H','D']
print(table[ind.index(a)][ind.index(b)]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6b166419fd703dc4de3a80eca435eead023e1806 | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Cursos/Curso Em Video - Gustavo Guanabara/Curso em Vídeo - Curso Python/Trabalhando com Modulos/aula_8a1.py | 2006736319b973382140ed52869fc3165e67178b | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # Program: aula_8a1.py
# Author: Ramon R. Valeriano
# Description:
# Updated: 24/09/2020 - 20:31
from math import sqrt, floor
number = float(input('Digite um número: '))
result = sqrt(number)
print('A raiz quadrada do número {} = {:.3f}'.format(number, result))
print('A raiz quadrada do número {} = {:.3f}'.format(num... | [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
378aa98bba4a340517ef166945bc4291926a5453 | aa0647eaf1d6c3e45ff40718312d5e50da6007ad | /touchdown/frontends/progress.py | aaf26d6fd8722403d37f2b764f76e9aa2aa4fa30 | [
"Apache-2.0"
] | permissive | yaybu/touchdown | bd9164893d93fda02bfd8ea1932020d9486fc226 | 70ecda5191ce2d095bc074dcb23bfa1584464814 | refs/heads/master | 2021-07-26T19:28:17.430492 | 2019-08-23T13:27:02 | 2019-08-23T13:27:02 | 23,874,177 | 14 | 5 | Apache-2.0 | 2019-08-23T20:15:45 | 2014-09-10T12:47:51 | Python | UTF-8 | Python | false | false | 1,270 | py | # Copyright 2014 Isotoma 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 to in writing... | [
"john.carr@unrouted.co.uk"
] | john.carr@unrouted.co.uk |
192e2ac4dba4a3edb2e70ea7abdf2d4de043f285 | 665a90f568b911706ff3c633e5dd9ec2233aee7e | /OOP/testing/hero/test/test_hero.py | 8afad7e59bbaeba30f3c3b0a2650cf6b13cb43a2 | [] | no_license | branchev/SoftUni | 5e33546f659e41619c6ae5c1899ae7b62332edf3 | f0f67e929ce9091232f899817b7ac10e649de7ed | refs/heads/main | 2023-04-05T13:56:29.438986 | 2021-04-21T06:04:19 | 2021-04-21T06:04:19 | 324,530,244 | 0 | 0 | null | 2021-01-06T20:40:04 | 2020-12-26T10:22:25 | Python | UTF-8 | Python | false | false | 2,198 | py | from project.hero import Hero
from unittest import TestCase, main
class HeroTests(TestCase):
def setUp(self):
self.my_hero = Hero("Hero", 10, 100, 10)
self.enemy_hero = Hero("Enemy", 5, 50, 5)
def test_is_properly_initiated(self):
self.assertEqual(self.my_hero.username, "Hero")
... | [
"ranchev.boris@abv.bg"
] | ranchev.boris@abv.bg |
dbf5313c37e3d72f117edb84158006e2ffdc8f72 | d5a2a69b23424e44e853a612a584906280431587 | /recommendation/app/helpers/builder/rank_feature_relevance.py | 658681bf24adcf05085e580eed7a5317f89efc5a | [] | no_license | shravanc/recommendation_service | 4548408d13e59f56d549ecbed7f53222f9de1118 | 6ab8abf00dd55318def49d81b6783b793b62db49 | refs/heads/master | 2023-05-10T17:29:21.049286 | 2020-04-10T12:17:53 | 2020-04-10T12:17:53 | 246,299,397 | 0 | 0 | null | 2023-05-01T21:21:39 | 2020-03-10T12:48:58 | Python | UTF-8 | Python | false | false | 630 | py | import tensorflow as tf
class RankFeatureRelevance():
def __init__(self, user_feats, num_feats, num_users, feats, users):
self.user_feats = user_feats
self.num_feats = num_feats
self.num_users = num_users
self.feats = feats
self.users = users
self.top_user_features = None
def... | [
"shravan007.c@gmail.com"
] | shravan007.c@gmail.com |
d2b1c2e462072a501a8bdf5ea75111e175d113bf | d8aa70c51293921462c669795e9c085241bda117 | /kits19cnn/models/resunet.py | 1a1dff6b0e47a1d967f5885130b100a3619ff8c3 | [
"Apache-2.0"
] | permissive | jchen42703/kits19-2d-reproduce | 8f3cf2696d07785e0b193602d4e67851400c30f1 | 81d7413022220ea86a23212737b3682e84ae74a4 | refs/heads/master | 2020-11-24T10:20:04.048667 | 2020-02-04T19:46:38 | 2020-02-04T19:46:38 | 228,104,170 | 9 | 2 | Apache-2.0 | 2020-02-10T20:47:34 | 2019-12-14T23:38:39 | Jupyter Notebook | UTF-8 | Python | false | false | 4,921 | py | # Copyright 2019 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# 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://w... | [
"jchen42703@gmail.com"
] | jchen42703@gmail.com |
6ce436ad693cf6ffd53e62d3d297132af29d5575 | 0af30c2e3ddcc80a19ea9cfaad9d7e1fedf8b876 | /210129/다이나믹 프로그래밍/병사 배치하기/배진수.py | 578ec2ca018c7a1fc863e07fd643b33a9a2a9d65 | [] | no_license | winterash2/algorithm_study_2021_1 | d1cd6077f71f68e7fc3eb6dfae7b2cc220885e4c | c1fee62c7e5e560c3bf7ae5e6166866d0147f23f | refs/heads/master | 2023-04-02T20:11:04.169856 | 2021-04-05T11:18:22 | 2021-04-05T11:18:22 | 327,563,535 | 1 | 2 | null | 2021-01-24T14:17:40 | 2021-01-07T09:28:08 | Python | UTF-8 | Python | false | false | 202 | py | n = int(input())
sol = list(map(int, input().split()))
dp = [1] * n
for i in range(1, n):
for j in range(i):
if sol[j] > sol[i]:
dp[i] = max(dp[i], dp[j]+1)
print(n - max(dp)) | [
"jinsoo941010@naver.com"
] | jinsoo941010@naver.com |
ebee8bbd6dc17d37c0ef573b8838fd250745c50e | a5e23bf0833b19a8477d2fefbabb1a94d4d9a671 | /tests/test_controller.py | 6ca276686b70878118160261e7c01f8bbd79cf73 | [] | no_license | EnTeQuAk/zing | 85295e8962e93ed928be0fbdbd50521e87775acf | c516172756af383c2a821c0bb41f8c66f821686a | refs/heads/master | 2020-05-18T16:40:50.985387 | 2013-12-12T22:57:35 | 2013-12-12T22:57:35 | 15,119,668 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | #-*- coding: utf-8 -*-
import unittest
from boto.sqs.connection import SQSConnection
from moto import mock_sqs
from zing.controller import Controller, get_sqs_region
from zing.message import EventMessage
class TestControllerUtils(unittest.TestCase):
def test_region(self):
region = get_sqs_region('us-east-... | [
"cg@webshox.org"
] | cg@webshox.org |
f5198561cb5ad32ccbbed491c37399f350c6b0bb | 393b116c2d9bfd7b0fb2dfe7b583517f2f2fa4a7 | /test-scipy.py | d69bc70fab2001d164a10cb39b0ca4330baf9597 | [] | no_license | belonesox/nuitka-recursion-cv2-scipy | 58e27bc27f1d72308fe59cd165071bed7470582c | d5209219be342566a66e3050f08004fa4cd59ac4 | refs/heads/main | 2023-01-28T12:19:12.459966 | 2020-12-13T15:42:37 | 2020-12-13T15:42:37 | 321,099,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py |
import cv2
import scipy
print(scipy.__version__)
print(cv2.__version__)
| [
"stas-fomin@yandex.ru"
] | stas-fomin@yandex.ru |
5844a3ee5ce7da554ee894ac27ca4c5fbca451b9 | 7333a0c3f747878b832c1974ad904c336a4ff721 | /mopidy_podcast_itunes/library.py | 114953a056fe49fe66024009330d7829f57f09f1 | [
"Apache-2.0"
] | permissive | tkem/mopidy-podcast-itunes | 0d96f9a141ed1b8c9d2d1a6e91e569e634aba905 | f73585b2838e7fc1a3d5a31dedb8d940ef49ae19 | refs/heads/master | 2022-05-17T03:44:15.813290 | 2022-04-03T21:05:34 | 2022-04-03T21:05:34 | 17,503,058 | 11 | 7 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | import collections
import logging
from mopidy import backend, models
from . import Extension, translator
ROOT_GENRE_ID = "26" # "Podcasts"
logger = logging.getLogger(__name__)
class iTunesPodcastLibraryProvider(backend.LibraryProvider):
def __init__(self, config, backend):
super().__init__(backend)
... | [
"tkemmer@computer.org"
] | tkemmer@computer.org |
6d478b688f24cc17fc40554185adc2c4b17ca834 | 0ebc26d2317b4d0c292f88bb20a56a3358bbe433 | /datacode/panel/did/reg.py | fec49f7f370052e929a62dad46446efe6e681454 | [
"MIT"
] | permissive | nickderobertis/data-code | ce326e941e940b446aa26119cc090e956de45786 | b4649a1702ccd6b68995e58cc53d74544ff34294 | refs/heads/master | 2023-01-13T09:16:55.947974 | 2020-09-27T08:43:08 | 2020-09-27T08:43:08 | 237,456,286 | 0 | 1 | MIT | 2022-12-26T21:37:24 | 2020-01-31T15:19:23 | Python | UTF-8 | Python | false | false | 1,869 | py | from typing import List, Tuple, Optional
import pandas as pd
from regtools.interact import _interaction_tuple_to_var_name
from regtools import reg_for_each_yvar_and_produce_summary
def diff_reg_for_each_yvar_and_produce_summary(diff_df: pd.DataFrame, yvars: List[str], treated_var: str,
... | [
"whoopnip@gmail.com"
] | whoopnip@gmail.com |
52217a009a5f043d1965af5a88f44fba92abdc7a | 1ae03694e6826c2c3224647024f66debcebd62dc | /python/learning_linear_and_rbf/wineq/gaussian_kernel_cnmf/gaussian_cnmf.py | 2f39403189d87332dfca12dae2e94a52f1264756 | [
"Apache-2.0"
] | permissive | Joaggi/Robust-kernels-for-robust-location-estimation | 5ad7f8f3be9a08e5d4283e03e017e5e3b9b186b8 | 9db62273de90547c982d819dc45e66ac86bfcb58 | refs/heads/master | 2023-04-17T22:41:01.652426 | 2022-08-02T23:43:31 | 2022-08-02T23:43:31 | 27,465,913 | 3 | 1 | null | 2022-08-02T23:39:44 | 2014-12-03T02:49:24 | MATLAB | UTF-8 | Python | false | false | 3,283 | py | __authors__ = "Joseph Gallego"
__email__ = "jagallegom@unal.edu.co"
import semantic_methods_toolkit.python.utils.dataset_factory as dataset_factory
from semantic_methods_toolkit.python.unsupervised_technique.cnmf_experiment \
import CnmfExperiment
from semantic_methods_toolkit.python.tunning_parameter_unsupervised... | [
"joaggi@gmail.com"
] | joaggi@gmail.com |
cfb9c9eecc5894092a5769a538e002162b1e9537 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/compute/v20210301/ssh_public_key.py | 755c4134fbda12bab67eff39765afc16fea7661d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,614 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
1ae6fa77e861da938d8a0739af48e1d4400fd58c | 6411acb3828fec8cc79f6f2630a4d99e8352a9aa | /933.py | a4b27d1a2e2edd86df1221d8876b6498878bbba9 | [] | no_license | zhouliuling/Leetcode_Task | 95f55a3ca33b561a130fc15272e513d9af2c0317 | 0230d31351a4093e8ae6be5fe0c175f3f41e08ac | refs/heads/master | 2020-05-25T18:44:59.377953 | 2019-09-12T02:14:22 | 2019-09-12T02:14:22 | 187,935,297 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | ## 最近的请求次数
## 队列队尾进队首出的特性
from collections import deque
class RecentCounter(object):
def __init__(self):
self.queue = deque()
## 在一次调用中计算3s内调用ping的次数
def ping(self, t):
"""
:type t: int
:rtype: int
"""
self.queue.append(t)
while(se... | [
"noreply@github.com"
] | zhouliuling.noreply@github.com |
492c35c0aa61f9362def6ffb48aa57323448d72e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03434/s025342209.py | ef7708c38b6aa803435187b376b9110399468c12 | [] | 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 | 189 | py | N = int(input())
a = list(map(int,input().split()))
a.sort(reverse=True)
alice = 0
for i in range(0,N,2):
alice += a[i]
bob = 0
for i in range(1,N,2):
bob += a[i]
print(alice - bob) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
35e3e1facf96b5412c699cd1fd30d3f8ece0c4e3 | 0d0cf0165ca108e8d94056c2bae5ad07fe9f9377 | /3_Python_Data_Science_Toolbox_Part1/2_Default_arguments_variable-length_arguments_and_scope/theKeywordNonlocalAndNestedFunctions.py | 3f20583a477b6e36b02991ffcea16bf65be183cb | [] | no_license | MACHEIKH/Datacamp_Machine_Learning_For_Everyone | 550ec4038ebdb69993e16fe22d5136f00101b692 | 9fe8947f490da221430e6dccce6e2165a42470f3 | refs/heads/main | 2023-01-22T06:26:15.996504 | 2020-11-24T11:21:53 | 2020-11-24T11:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | # The keyword nonlocal and nested functions
# Let's once again work further on your mastery of scope! In this exercise, you will use the keyword nonlocal within a nested function to alter the value of a variable defined in the enclosing scope.
# Instructions
# 100 XP
# Assign to echo_word the string word, concatenated... | [
"noreply@github.com"
] | MACHEIKH.noreply@github.com |
9234c901b05b6ef935fa9e6908a42dcb930412d4 | d488f052805a87b5c4b124ca93494bc9b78620f7 | /google-cloud-sdk/.install/.backup/lib/surface/compute/disks/update.py | 0b44e9bc941679f50467007e8e4b8a26f7d6802f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | PacktPublishing/DevOps-Fundamentals | 5ce1fc938db66b420691aa8106ecfb3f9ceb1ace | 60597e831e08325c7e51e8557591917f7c417275 | refs/heads/master | 2023-02-02T04:48:15.346907 | 2023-01-30T08:33:35 | 2023-01-30T08:33:35 | 131,293,311 | 13 | 19 | null | null | null | null | UTF-8 | Python | false | false | 6,858 | 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... | [
"saneetk@packtpub.com"
] | saneetk@packtpub.com |
0579d4d2f32e60a1abf0f3f0ab8d4426b00bcfe1 | e9538b7ad6d0ce0ccfbb8e10c458f9e0b73926f6 | /plugins/action/bigip.py | c27ca46269509cd11c27d72328f3f12c6008bc55 | [] | 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,719 | py | #
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is d... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
85faf1419d14b02cd14535cdff446a11d43cb430 | 1b8b4cdd251877868c1d3530fab7e84a692c91be | /django-projects/touchmytab/laptops/migrations/0001_initial.py | 03aa60637922985703e8805ad223c79575c0ec41 | [] | no_license | vaibhavmule/learning-python | d1756f4e160bd24e4a2d1d05e383866f2248d523 | 46ec3a437606526760d56ccfefaad74f7184c9ab | refs/heads/master | 2021-09-28T19:42:47.545788 | 2020-07-24T14:07:06 | 2020-07-24T14:07:06 | 20,795,878 | 0 | 2 | null | 2021-09-22T19:33:09 | 2014-06-13T07:29:00 | HTML | UTF-8 | Python | false | false | 2,285 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Laptop'
db.create_table(u'laptops_laptop', (
... | [
"vaibhavmule135@gmail.com"
] | vaibhavmule135@gmail.com |
90bdd4dcf9a8a706bda8581e1b6a0aac7dff3a53 | 47d1beba77ebde115c5d41b25a15ef144068c930 | /redirects/migrations/0003_remove_redirectpage_sort_order.py | 9ae9cd48449dd34210ad41b986f9e7c85a449a2e | [] | no_license | uchicago-library/library_website | f32d7dcaf793b4646cac37ba7270715dccf84820 | e5912a17ed2de3a61ede2fbebda4a258664ff696 | refs/heads/master | 2023-08-16T20:20:45.063253 | 2023-08-10T21:19:12 | 2023-08-10T21:19:12 | 39,917,251 | 5 | 4 | null | 2023-08-10T21:19:14 | 2015-07-29T21:27:58 | Python | UTF-8 | Python | false | false | 404 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-10 16:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('redirects', '0002_auto_20160328_1905'),
]
operations = [
migrations.RemoveField(
... | [
"bbusenius@users.noreply.github.com"
] | bbusenius@users.noreply.github.com |
63b65663dbc776eab0d6cc2551e7da2637d18dfa | df02962d02798edc6eb6e6023a2545214e4dd81f | /honen/__init__.py | d389e2b45f6ae9cf0c0622d0dbf7472f926b518e | [] | no_license | moskomule/honen | c883faead2d3d7c965e73192bcfcf15bf206e62a | c226fbc38cb95eadc8d62293d2a94d00492fb409 | refs/heads/master | 2020-03-27T13:10:44.287843 | 2018-09-20T08:32:43 | 2018-09-20T08:32:43 | 146,594,411 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | from .plot import Figure
| [
"hataya@keio.jp"
] | hataya@keio.jp |
02773740d74ce3b7be0520c6eaa522a57469a4e0 | 2b4790d77439d89ad27bdd04bac539283f0dd605 | /learn_py_the_hard_way/string and text.py | ddabacaac461e94dad2570d0f29eda0a602f0fa1 | [] | no_license | ajioy/python-ex | 9fde4bcfe35edeee5050365660a03bdb6b913da1 | 982a3cdf0de0e140faa4cb539f2961b311de2c2a | refs/heads/master | 2020-04-05T14:06:09.909935 | 2018-08-14T14:43:55 | 2018-08-14T14:43:55 | 59,105,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | #exercise 6
x = "there are %d types of people," % 10
binary = "binary"
do_not = "don't"
y = "those who know %s and those who %s" % (binary,do_not)
print x
print y
print "i said: %r." % x # keep up single quotes
print "i said: %s." % x # no single quotes
print "i also said: '%s'." % y
hilarious = False
joke_evalut... | [
"ajioy@hotmail.com"
] | ajioy@hotmail.com |
6ea6937db446973a7b354e14ae98bbdbc9210d6b | fdb486c199378321fc4a81a1e2aa1fb3244ab812 | /Day20-25/23.py | cc81ac205bc8fda3b9398f8cb931ce43d8e96202 | [
"MIT"
] | permissive | bcongdon/advent_of_code_2017 | c4f55d974365a046f8ab07beeb445b2f6b6761f8 | ad9a9b028716c9387dddc3ef9ee34c3a70fea151 | refs/heads/master | 2021-09-28T19:26:41.666839 | 2018-11-19T23:36:54 | 2018-11-19T23:36:54 | 112,739,784 | 15 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | from collections import defaultdict
class VM:
def __init__(self, instructions, registers=None):
self.instructions = instructions
self.pc = 0
if registers is None:
registers = defaultdict(int)
self.registers = registers
self.num_mul_ops = 0
def _get_value(s... | [
"bencongdon96@gmail.com"
] | bencongdon96@gmail.com |
30b2ea6d07b13860c98fabfb6d1ab0c4c663b11b | 9d9f2ad68884294ceb077aee82ae0d8ffb7d7fe8 | /scipy/scipy_interpol2.py | c19aad242197d764bf92c230a68d33c7f1f0ab75 | [] | no_license | jb-liran/Numpy | 64a6879000aa9101c670ebf8c38442d1435ba7df | 61b1159297a1e445a636cbbae91d8bca5c79edbf | refs/heads/master | 2020-03-12T14:03:34.705953 | 2018-04-25T10:41:02 | 2018-04-25T10:41:02 | 130,657,731 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 15 18:20:54 2015
@author: liran
"""
from scipy.interpolate import interp1d
from pylab import plot, axis, legend
import numpy as np
xdata = np.array([-2,-1.64,-1.33,-0.7,0,0.45,1.2,1.64,2.32,2.9])
ydata = np.array([0.699369,0.700462,0.695354,1.03905,1.97389,2.41143,1.91... | [
"you@example.com"
] | you@example.com |
cd9859d64f39e9af79f249b6a584576d1cb79445 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/associated_remark_2.py | c6eb6151cc9be3d30be325fd1a294c6e923b3b12 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 392 | py | from __future__ import annotations
from dataclasses import dataclass
from travelport.models.type_associated_remark_1 import TypeAssociatedRemark1
__NAMESPACE__ = "http://www.travelport.com/schema/vehicle_v52_0"
@dataclass
class AssociatedRemark2(TypeAssociatedRemark1):
class Meta:
name = "AssociatedRemar... | [
"chris@komposta.net"
] | chris@komposta.net |
65cfe94bc818fdefd09f98df3c641ce16697e9ce | 96fe253e9a740b51dcd7f83d6ab01bb248c2bf4b | /principios_SOLID/OCP/Forma - No OCP/cuadrado.py | 64ced82c0f8eb12a8a87515d68715292e6eaa515 | [] | no_license | vvalotto/Patrones_Disenio_Python | 7574470752a5f14214434a927c2c5e0faaa592ba | 7ab6a74e9b008c3434af0a56d4c2b6b7de3617bf | refs/heads/master | 2021-04-28T19:16:21.535998 | 2018-10-21T14:05:36 | 2018-10-21T14:05:36 | 121,891,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | '''
Created on 21/07/2013
@author: voval
'''
from forma import Forma
class Cuadrado:
def __init__(self, lado):
self._tipo = 1
self._lado = lado
return
| [
"vvalotto@gmail.com"
] | vvalotto@gmail.com |
6d543d00abd991212ae10818cfa797ed9350f0ae | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_Conv3D_1.py | 30ee10131f4b5b3c3ea84c938317db0b8e0987d6 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 608 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
449d1d828ebe0bb5123cc7948bc37b064b7cc20c | 54b70a12932f93216d499666998d80a13fc1fb28 | /PyDSTool/Toolbox/optimizers/line_search/tests/test_fibonacci_section.py | 42b09d0a87d7894406997646b0c7d2303f348ed0 | [
"BSD-2-Clause"
] | permissive | waltherg/pydstool-1 | 8e3954b0b5f8728290fd772536987b16325a1b52 | e56086b230627e7cbe2099f3cd0734cb6918dc7f | refs/heads/master | 2021-01-15T20:48:15.566752 | 2013-09-27T08:47:02 | 2013-09-27T08:47:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | #/usr/bin/env python
# Matthieu Brucher
# Last Change : 2007-08-22 14:01
import unittest
import numpy
from numpy.testing import *
set_package_path()
from line_search import FibonacciSectionSearch
restore_path()
class Function(object):
def __call__(self, x):
return (x[0] - 2) ** 2 + (2 * x[1] + 4) ** 2
de... | [
"rob.clewley@gmail.com"
] | rob.clewley@gmail.com |
31e79796397ad859b57c029bc33ef4613dc29a1b | e03efda7ffd427e08958bcf9aecab05cf37c487e | /python/taichi/two_d/simulator.py | 6542b9849a603c38bc9ebd4325306b97922bcaea | [
"MIT"
] | permissive | lulunaticman/taichi | b05ecd9c1154944f479be68f4c3e01eaffcb07ed | 0b91c1af4c910fe0f9b818bdd4c28618e27aabfa | refs/heads/master | 2021-01-19T18:56:12.995014 | 2017-03-30T15:07:45 | 2017-03-30T15:07:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | import taichi as tc
from taichi.misc.util import *
class Simulator(object):
def __init__(self, simulation_time, dt):
self.events = []
self.simulator = None
self.simulation_time = simulation_time
self.dt = dt
self.delta_x = 1
self.particles = []
def add_event(se... | [
"iterator.advance@gmail.com"
] | iterator.advance@gmail.com |
c58b0c290f4c1d652a1e7fbda7c53025474ababb | 559f3dec0964d2e0f86c6c871371fe779cf3726c | /contrib/DomainAdaptation/models/__init__.py | 5c93c046e9b1b558e60f5d5bf48d660ce437c011 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleSeg | 319ab26665ea492527a1949671650135123ffc39 | 2c8c35a8949fef74599f5ec557d340a14415f20d | refs/heads/release/2.8 | 2023-08-31T09:08:06.724717 | 2023-08-18T01:59:56 | 2023-08-18T01:59:56 | 204,380,779 | 8,531 | 1,866 | Apache-2.0 | 2023-09-12T02:30:42 | 2019-08-26T02:32:22 | Python | UTF-8 | Python | false | false | 718 | py | # Copyright (c) 2021 PaddlePaddle 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 applic... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
1985cefdca51b03f8bdcae1a86c139a0e7095e21 | 55815c281f6746bb64fc2ba46d074ca5af966441 | /easy/1903.py | e436b6eca9ee8a6fece4c1fc11fdfe359e981122 | [] | no_license | brandoneng000/LeetCode | def5107b03187ad7b7b1c207d39c442b70f80fc2 | c7a42753b2b16c7b9c66b8d7c2e67b683a15e27d | refs/heads/master | 2023-08-30T23:38:04.845267 | 2023-08-30T08:42:57 | 2023-08-30T08:42:57 | 199,584,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | class Solution:
def largestOddNumber(self, num: str) -> str:
num = list(num)
while len(num) > 0 and int(num[-1]) % 2 != 1:
num.pop()
return ''.join(num)
def main():
sol = Solution()
print(sol.largestOddNumber("52"))
print(sol.largestOddNumber("4206"... | [
"brandoneng000@gmail.com"
] | brandoneng000@gmail.com |
2677198314cc9d646e262aeb110ddeec4ef4d6f3 | e08ce3378bdd553a160cf798612b8e50e81cfae5 | /official/vision/ops/mask_ops.py | 7de22323a0e422a15aa60564d1abf3df69068415 | [
"Apache-2.0"
] | permissive | Friedes/models | de66141ce76cfb77798d8d0746b79c1b5546da80 | 4724bce5a8f6752b2000230bba595b2f12870a34 | refs/heads/master | 2023-01-28T21:12:07.741031 | 2023-01-27T00:26:30 | 2023-01-27T00:28:17 | 185,925,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,029 | py | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
f243955506a60ac3b721377839a479ab86b63c8d | 40d404e424489bb48c3673dee6664de64dbab39c | /myWebsite/venv/lib/python3.8/site-packages/zope/ptresource/tests.py | 30f46477914f808d654cbf9599d659d7ae057521 | [] | no_license | alyasamba/me | 07c9f5f27aa16f768e0432780ac8f6f5ab6afbd1 | 978053c867181bad8eb316a0920ba290a7b1ceae | refs/heads/main | 2023-01-28T09:57:46.616285 | 2020-12-02T02:31:25 | 2020-12-02T02:31:25 | 315,935,399 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... | [
"sopesherifabdoulah@gmail.com"
] | sopesherifabdoulah@gmail.com |
83a2fb7e72ffd07afcc6b9b0f51220c9403f8882 | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Autodesk/Revit/DB/Structure/__init___parts/SurfaceElementExtension.py | 94db6159566c5872f4ef504935197841bce4af9a | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 964 | py | class SurfaceElementExtension(Enum,IComparable,IFormattable,IConvertible):
"""
Presets for given Analytical Extension.
enum SurfaceElementExtension,values: BottomOrTop (0),Plane (1)
"""
def __eq__(self,*args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """
pass
def __fo... | [
"gtalarico@gmail.com"
] | gtalarico@gmail.com |
047c0404ef1402442e8e7063829f08caf57900a1 | f343b2ac4f5b52abd5e6a8fb6bef55acf3a32154 | /materials/projects/birthdayTracker/app.py | e3983200ea9678d81e3bdf9792c867d9d894ef21 | [] | no_license | asyrul21/recode-beginner-python | 41248d59199ac3660ef40aa3a5fdf23fadfb6b5b | 93608e2880aec1774e898d5f1a663dc84e246b46 | refs/heads/master | 2023-07-04T21:59:08.135443 | 2021-08-09T01:43:30 | 2021-08-09T01:43:30 | 330,307,505 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,289 | py | from helper.JsonReadWriter import JsonReadWriter
from helper.NavigationDisplay import NavigationDisplay
from helper.TableDisplay import TableDisplay
from config import DATE_FORMAT
from Birthdate import Birthdate
from datetime import date, datetime
import time
##############################################
DATA_PATH_JS... | [
"asyrulhafetzy.21@gmail.com"
] | asyrulhafetzy.21@gmail.com |
6c70a33ac29f6dfcd8d81ab96fee1b6b363f3b7d | 452b8b849e080cda5a26f4018cafa5a674ff7c20 | /froide/foisite/templatetags/foisite_tags.py | 475f839767de406ee091c20a2972842ff3e6bbb1 | [
"MIT"
] | permissive | okffi/tietopyynto | 1262dcaf748c41b49be4a774be552fc75fc9b336 | 66b7e7dbf3c3395d79af3da85b3b58f01fad62dc | refs/heads/tietopyynto | 2021-01-17T21:07:04.829856 | 2016-10-30T19:26:53 | 2016-10-30T19:26:53 | 14,255,294 | 3 | 2 | MIT | 2021-01-05T11:51:18 | 2013-11-09T10:19:16 | Python | UTF-8 | Python | false | false | 315 | py | from django import template
from froide.foisite.models import advisor
from froide.helper.utils import get_client_ip
register = template.Library()
def advise_foisite(context):
ip = get_client_ip(context['request'])
return advisor.get_site(ip)
register.assignment_tag(takes_context=True)(advise_foisite)
| [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
2f5fa4d7176b6ef15035f252f2b59eda16a3853f | dca3bd86af33b3468c630283cfff907ce105a5b3 | /micropython-esp32/mqtt_example-tryout/wifi_example.py | 160a002b68e4186aca8123ee982705d0932b7982 | [] | no_license | saimaza123/m5stack-playlist | 7bfca48c7db2e46dc31bb507d6ce7ac01d210056 | 00c2b9f2506e6c67935659ccc685004445eef1e5 | refs/heads/main | 2023-03-09T03:31:35.106747 | 2020-10-29T02:48:55 | 2020-10-29T02:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | from m5stack import lcd
import machine, network, utime
lcd.print("")
lcd.print("Starting WiFi ...")
sta_if = network.WLAN(network.STA_IF); sta_if.active(True)
sta_if.connect("logic_debug",'ohzei7eexaimo3Ae')
tmo = 50
while not sta_if.isconnected():
utime.sleep_ms(100)
tmo -= 1
if tmo == 0:
sta_if.... | [
"louiscklaw@gmail.com"
] | louiscklaw@gmail.com |
07320d58cc185ddc414b0ce4ecc4c0d999a56535 | 663676e406641b1f4ecbc09e214bb41cab47198b | /day23/day23b.py | 126649e6e566c2122068a90c1367e7b525d1824e | [] | no_license | yuanxu1990/studyday | 362055c18a78424cedad73e28858620a66472db2 | aad0b2b36d06b50b476fcc0972e1ba64747b5b61 | refs/heads/master | 2020-09-14T17:19:25.352463 | 2020-04-28T13:34:49 | 2020-04-28T13:34:49 | 223,197,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | '''
面向对象的三大特性: 继承 多态 封装
类的组合:一个对象的属性值是另外一个类的对象
w=weapon('粪叉子',100,3,200)
yuanbao.get_weapon(w) 通过self 将武器对象绑定成自己的属性值
yuanbao.weapon.hand18(jin)
'''
# class dog:
# def __init__(self,name,aggr,hp,kind):
# self.name=name
# self.aggr=aggr
# self.hp=hp
# ... | [
"yuanx"
] | yuanx |
5b97c1a8b313818bd65a6d30b011d3eecc4f78c7 | 46ac0965941d06fde419a6f216db2a653a245dbd | /sdks/python/appcenter_sdk/models/BugTrackerIssuesResult.py | 7fbbd86c9442aedf9d53d45bc88dca456c7e2068 | [
"MIT",
"Unlicense"
] | permissive | b3nab/appcenter-sdks | 11f0bab00d020abb30ee951f7656a3d7ed783eac | bcc19c998b5f648a147f0d6a593dd0324e2ab1ea | refs/heads/master | 2022-01-27T15:06:07.202852 | 2019-05-19T00:12:43 | 2019-05-19T00:12:43 | 187,386,747 | 0 | 3 | MIT | 2022-01-22T07:57:59 | 2019-05-18T17:29:21 | Python | UTF-8 | Python | false | false | 3,087 | py | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
class BugTrackerIssu... | [
"b3nab@users.noreply.github.com"
] | b3nab@users.noreply.github.com |
8b283bc0520fc05da5cf2dc6de441d303c418706 | f2b27ea4b474916e5b7cf1f55901cf6e01b6ee3c | /16-interactive-data-visualization-with-bokeh/04-putting-it-all-together-a-case-study/03-enhancing-the-plot-with-some-shading.py | 1b9bd0e706c5c18ad07bd3640ff9bbe96d141ce5 | [] | no_license | ariscon/DataCamp_Files | a21f1265b6ad5aed04d9724be78b08634f81312e | f7e496391b1d4649bf1186b9a1c9b83fa9a50044 | refs/heads/master | 2020-04-13T04:27:01.650215 | 2018-12-30T22:51:43 | 2018-12-30T22:51:43 | 162,962,035 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | '''
Enhancing the plot with some shading
Now that you have the base plot ready, you can enhance it by coloring each circle glyph by continent.
Your job is to make a list of the unique regions from the data frame, prepare a ColorMapper, and add it to the circle glyph.
INSTRUCTIONS
100XP
Make a list of the unique valu... | [
"noreply@github.com"
] | ariscon.noreply@github.com |
d1bc4f5e9f24ad52e3c639907b800ee5876ac0f3 | 4ed3db861ae2fe727c7be604d42d540a00923320 | /tests/samsung_multiroom/service/test_nullplayer.py | 253296280ce97dd35a4f06af2cf30e95a038c817 | [
"MIT"
] | permissive | kusma/samsung_multiroom | 7cac147283a52bf491d7f50a6569c64de53eb4a5 | 09ca86d27b87a4aa0c97ec2accbd4ec67dd0cc61 | refs/heads/master | 2020-12-04T07:46:19.688568 | 2019-04-20T16:29:44 | 2019-04-20T16:29:44 | 231,683,383 | 0 | 0 | MIT | 2020-01-03T23:47:29 | 2020-01-03T23:47:28 | null | UTF-8 | Python | false | false | 2,250 | py | import unittest
from unittest.mock import MagicMock
from samsung_multiroom.service import REPEAT_OFF
from samsung_multiroom.service import REPEAT_ONE
from samsung_multiroom.service.player_operator import NullPlayer
class TestNullPlayer(unittest.TestCase):
def test_is_supported(self):
player = NullPlayer... | [
"k.galutowski@gmail.com"
] | k.galutowski@gmail.com |
bf7d223bb623c6405ccba249b0c462b33afb1c19 | 32f61223ae8818f64922d69dc8d279428cd568e3 | /AlphaTwirl/AlphaTwirl/HeppyResult/TblComponentConfig.py | b616a2d4d4322ba73ac9a6afbb080379989dc5cc | [
"BSD-3-Clause"
] | permissive | eshwen/cutflowirl | 959fdead7cc1f58e77e68074a9ee491c3259c6d6 | e20372dc3ce276c1db4e684b8e9f1e719b9e8e7d | refs/heads/master | 2020-04-05T11:20:49.000726 | 2017-11-23T16:15:10 | 2017-11-23T16:15:10 | 81,349,000 | 0 | 0 | null | 2017-11-23T16:15:11 | 2017-02-08T16:15:59 | Python | UTF-8 | Python | false | false | 1,081 | py | # Tai Sakuma <tai.sakuma@cern.ch>
from ..misc import mkdir_p
from ..misc import listToAlignedText
import os
##__________________________________________________________________||
class TblComponentConfig(object):
def __init__(self, outPath, columnNames, keys):
self._outPath = outPath
self.columnNam... | [
"eshwen.bhal@bristol.ac.uk"
] | eshwen.bhal@bristol.ac.uk |
2284117e78773a7ead93706b659a14402eb26e05 | 1d6ecdb73010bdf3891e96db87754252ca0d3625 | /005k_voltage_scan_all_harmonics_damper_off_matrix_map/000_config_scan.py | 5f8e7a3e3af836aaca66421e47f80b7ee571ed21 | [] | no_license | giadarol/response_matrix_study | ff3bbe4ccb17cf2f94628b9de44ee7d65d11fc8c | 6642d66830a0db8def5e2bb3e53235ae4bee44f0 | refs/heads/master | 2020-12-23T03:56:21.177790 | 2020-05-10T06:02:19 | 2020-05-10T06:02:19 | 237,024,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | import os
import numpy as np
scan_folder_rel = 'simulations'
environment_preparation = f'''
source /afs/cern.ch/work/g/giadarol/sim_workspace_mpi_py3/venvs/py3/bin/activate
source /afs/cern.ch/work/g/giadarol/sim_workspace_mpi_py3/setpythopath
PYTHONPATH=$PYTHONPATH:{os.path.abspath('../')}
'''
# Last one is to get r... | [
"giovanni.iadarola@cern.ch"
] | giovanni.iadarola@cern.ch |
45db8353f66e632d7f846720bfbf1a37f26a90f6 | acf314ab0fa399018764b2ebd96e33c66362994e | /0x03-python-data_structures/10-divisible_by_2.py | 04abfae8ae7ec9c031ebe3078b2743ec3de983e2 | [] | no_license | glyif/holbertonschool-higher_level_programming | 98f9c2da0b71a4e9e2dd9f6fde755875e9015f34 | 14c02d79e2008db1b992b08f9faa55b20dbe0691 | refs/heads/master | 2021-01-20T06:53:16.179354 | 2017-09-28T18:14:12 | 2017-09-28T18:14:12 | 89,939,980 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #!/usr/bin/python3
def divisible_by_2(my_list=[]):
if my_list is None:
return
if len(my_list) == 0:
return
new_list = list(my_list)
i = 0
for element in my_list:
if element % 2 == 0:
new_list[i] = True
else:
new_list[i] = False
i = i ... | [
"122@holbertonschool.com"
] | 122@holbertonschool.com |
7846f35a7a63a87b52cf5173febfb25cdd334806 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_111/ch68_2020_04_27_19_50_59_854988.py | 460d784174cea8d3ed1d7aaf5ef6619cd77f88d8 | [] | 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 | 138 | py | def separa_trios(nomes):
listan=[]
for i in range(len(nomes),3):
a=nomes[i:i+3]
listan.append(a)
return listan | [
"you@example.com"
] | you@example.com |
b68001fa217f5f079b64093e529efae51dae128d | e86d020f8ade86b86df6ad8590b4458a9d415491 | /test-xooj/event_exam/cms/serializers.py | dfbef674cb08e023fff122b8b76aa15617c27b9a | [
"BSD-2-Clause"
] | permissive | g842995907/guops-know | e4c3b2d47e345db80c27d3ba821a13e6bf7191c3 | 0df4609f3986c8c9ec68188d6304d033e24b24c2 | refs/heads/master | 2022-12-05T11:39:48.172661 | 2019-09-05T12:35:32 | 2019-09-05T12:35:32 | 202,976,887 | 1 | 4 | null | 2022-11-22T02:57:53 | 2019-08-18T08:10:05 | JavaScript | UTF-8 | Python | false | false | 2,654 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from rest_framework import serializers
from common_framework.utils.image import save_image
from event_exam import models as event_models
from event.cms import serializers as base_serializers
TIME_FORMAT = "%Y-%m-%d %H:%M:%S"
class EventSerializer(base... | [
"842995907@qq.com"
] | 842995907@qq.com |
48960bea13ef8b6e39204216027eabf849b740c3 | ea99544eef7572b194c2d3607fa7121cb1e45872 | /apps/task/serializers.py | 37bc19dae6b5751310245a66e054d17cf6a5677b | [] | no_license | ash018/FFTracker | 4ab55d504a9d8ba9e541a8b682bc821f112a0866 | 11be165f85cda0ffe7a237d011de562d3dc64135 | refs/heads/master | 2022-12-02T15:04:58.543382 | 2019-10-05T12:54:27 | 2019-10-05T12:54:27 | 212,999,035 | 0 | 0 | null | 2022-11-22T03:58:29 | 2019-10-05T12:53:26 | Python | UTF-8 | Python | false | false | 5,837 | py | from django.utils import timezone
from rest_framework.serializers import ModelSerializer
from rest_framework import serializers
from django.core.exceptions import PermissionDenied
from rest_framework.exceptions import NotAcceptable, ValidationError
from apps.common.config import get_image_urls
from apps.task.helpers im... | [
"sadatakash018@gmail.com"
] | sadatakash018@gmail.com |
221001cd4e72beba8fcb1f091bded80c00996b1f | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /2.0.2/mpl_examples/style_sheets/style_sheets_reference.py | ef12c1ac3a0927db50258a2cfafa2fd956efb999 | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 4,964 | py | """
======================
Style sheets reference
======================
This script demonstrates the different available style sheets on a
common set of example plots: scatter plot, image, bar graph, patches,
line plot and histogram,
"""
import numpy as np
import matplotlib.pyplot as plt
def plot_scatter(ax, prng... | [
"tcaswell@gmail.com"
] | tcaswell@gmail.com |
4283f6685994977006f521dfed85d8d51bc69a85 | f68cd225b050d11616ad9542dda60288f6eeccff | /testscripts/RDKB/component/WIFIHAL/TS_WIFIHAL_2.4GHzGetRadioBasicDataTransmitRates.py | 11d580c0714e866cb91633aefb9ec6157c1c9114 | [
"Apache-2.0"
] | permissive | cablelabs/tools-tdkb | 18fb98fadcd169fa9000db8865285fbf6ff8dc9d | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | refs/heads/master | 2020-03-28T03:06:50.595160 | 2018-09-04T11:11:00 | 2018-09-05T00:24:38 | 147,621,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,306 | py | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2017 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | [
"jim.lawton@accenture.com"
] | jim.lawton@accenture.com |
a952e56db2ca89ab9a856d36c74dccf154af45a0 | c4af67db4c523d20f2d55aef90ba77db1fb53c38 | /DCWorkflow/Variables.py | 8a629a10c86f2827328a5dc02df4de65dd4864f3 | [] | no_license | dtgit/dtedu | e59b16612d7d9ea064026bf80a44657082ef45a3 | d787885fe7ed0de6f9e40e9b05d852a0e9d60677 | refs/heads/master | 2020-04-06T05:22:50.025074 | 2009-04-08T20:13:20 | 2009-04-08T20:13:20 | 171,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,181 | py | ##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFT... | [
"ron@domU-12-31-39-02-65-03.compute-1.internal"
] | ron@domU-12-31-39-02-65-03.compute-1.internal |
9f97bb6cc05e07c0855ff8a3ad69675b0ab54101 | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /networks755.py | 95ef1fdb32622cf1f28a5979a3b284314732d55b | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,138 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
__version__ = 205
# Number of wires in the CDC
n_wires = 3606
# Number of continuous features (E, t, dca)
n_features = 3
geom_dim = 1
def wire_hook(grad):
print('wg %.2e %.2e' % (grad.abs().mean().item(), grad.std().item()))
... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
39cb898348acb370f433532dd81af3c1b1f4fd93 | 6bd047eb1951601a5a7bab564eb2abba92c6c004 | /orchestrator/query_handler_registers.py | 0d61089b3adc5a1504e203f66055743e9b6bdd94 | [] | no_license | volgoweb/DDD_sandbox | 6ab2b43d3fcad8eb2f802bd485e5dbc05eb2e10d | 700c2848d5341ab267e69326bac2487657450d22 | refs/heads/master | 2021-01-01T15:46:13.244679 | 2017-07-11T06:18:36 | 2017-07-11T06:18:36 | 97,695,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | from django.utils.module_loading import import_string
class IQueryHandler(object):
def handle(self, query):
raise NotImplementedError
class QueryHandlerRegister(object):
# @TODO Перенести в settings
_map = {
'products.AllProductsQuery': 'products.query_handlers.base.AllProducts',
... | [
"volgoweb@bk.ru"
] | volgoweb@bk.ru |
b78c4566fadad05857a2c3f7bda9640e2de8e3cd | 97eb35e37480f2b6cfb7c8055d467cec1e1c018e | /script.module.thecrew/lib/resources/lib/sources/en/databasegdriveplayer.py | ddd314f07ac0690c4b46442f7bbf8fd97040f7cb | [] | no_license | CYBERxNUKE/xbmc-addon | 46163c286197e21edfdeb3e590ca4213eade0994 | eb4d38f11da7ea54d194359c7dcaeddfb3a40e52 | refs/heads/master | 2023-01-10T20:24:08.629399 | 2023-01-07T21:28:06 | 2023-01-07T21:28:06 | 55,860,463 | 7 | 2 | null | 2022-12-08T10:39:26 | 2016-04-09T18:27:34 | Python | UTF-8 | Python | false | false | 3,829 | py | # -*- coding: utf-8 -*-
import re
from resources.lib.modules import client
from resources.lib.modules import log_utils
from resources.lib.modules import source_utils
class source:
def __init__(self):
self.priority = 1
self.language = ['en']
self.domains = ['databasegdriveplayer.co', 'd... | [
"cyberxnuke@computertechs.org"
] | cyberxnuke@computertechs.org |
0ec4b0fd45c232637b7cb5864fbc0deb4a5f652a | 9e30a239886210dc57e6c7cb9a71ad95a840712e | /build/view_environments/posts_v1_/get_user_posts/responses/Status_200/Status_200Response.py | 061bf7c108168826cba0e720f6d69db20029a13b | [] | no_license | sridhar562345/fb_post_v2 | 0a26d661a3f335d9a9cf129c24265d7674b3fb22 | dfd150ab5521f05291f66944d7a8686a00477547 | refs/heads/master | 2022-11-08T00:32:35.752419 | 2020-06-23T15:32:02 | 2020-06-23T15:32:02 | 274,440,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | class Status200Response(object):
@staticmethod
def get_response():
response = {
"response_data": '{"posts": [{"post_id": 1, "posted_by": {"user_id": 1, "name": "string", "profile_pic": "string"}, "posted_at": "2099-12-31 00:00:00", "post_content": "string", "reactions": {"count": 1, "type":... | [
"="
] | = |
28462f316a3d7d7ea9819cb03ddbe62492956d88 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/redreader/testcase/firstcases/testcase3_018.py | 25eeb5ce32b25b931c1c29bffd0c81189d5ee9d7 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,347 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
98220515dad23d75309b5a8fcdce7848268c8461 | 4ad22f24e00974aaa9ecca948e0a40a0661e70e3 | /motherboard/admin.py | 2e7eb4c86b86d30b7867f656588cdea1c0cd18e3 | [] | no_license | XBoBaX/shop_and_game | f290fa0b04a29eb4f44cf5eb95e86745c2100b20 | 62987ccbf915a1f6869908cc1952257df4e146c2 | refs/heads/master | 2020-03-19T17:31:42.256006 | 2018-06-09T23:18:02 | 2018-06-09T23:18:02 | 136,764,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.contrib import admin
from .models import Motherboard, Price
admin.site.register(Motherboard)
admin.site.register(Price)
| [
"memesHipe@gmail.com"
] | memesHipe@gmail.com |
1967e934367d921f2aaedadaa75b993e3636fb45 | 89e72b26caed858e31645b58879b599243e77e09 | /hocr_util/hocr_parser/parse_utils.py | 3ee62f6aac58fa6e5067d79ad55fbaefcd7c526e | [] | no_license | subbaraomanchala/whatwordwhere | 312cbdbb703c9dcd017f14e3d8740a8139ddf4a6 | a06f3db871ef9bb460ec5ce92096dd1bb1db5fa3 | refs/heads/master | 2020-06-11T19:19:02.735833 | 2016-03-01T23:50:35 | 2016-03-01T23:50:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,062 | py | """ Utility functions to help parse hocr data. Django-independent. """
from lxml import etree, objectify
from lxml.etree import tostring
from StringIO import StringIO
from parse_errors import PageCountError
# The source data can be amazingly awful. Try to recover as much as possible.
# We could do a better job of t... | [
"jfenton@sunlightfoundation.com"
] | jfenton@sunlightfoundation.com |
7e8e0df16bbe74287656637e4cdc75ae4d395c5a | a38ec0eacc3a49dc484aa95bcf45970e56ae6944 | /TWLight/users/handshakers.py | ace9bba283ae8fa2440568f74a965636e77d47dd | [
"MIT"
] | permissive | uyscuti-wiki/TWLight | d26c7873250704fd5286fa48436588312bea022b | 8d5e79007b2543c2bf88dfa18b586bdce040ec1a | refs/heads/master | 2021-06-07T15:36:41.148546 | 2019-10-25T15:51:18 | 2019-10-25T15:51:18 | 142,343,670 | 1 | 1 | MIT | 2019-12-13T10:02:09 | 2018-07-25T19:18:36 | Python | UTF-8 | Python | false | false | 52 | py | from .helpers import wiki_list
handshaker_dict = {} | [
"andromeda.yelton@gmail.com"
] | andromeda.yelton@gmail.com |
a955ceb32d791f076fe28374ee4e5faa1bd2fa34 | 42633deb41dfc7498c713810110affe42f7e6b1e | /apple/wsgi.py | ff349b7d7f512469c993657660536fec1c618454 | [] | no_license | Ulanka2/idea | 195c0d628812922e63d08eb07566e3449f952c2c | 6e37aae0c0144fb64cf8f4615772fab37ad2cabb | refs/heads/main | 2023-07-15T05:23:38.771318 | 2021-08-28T14:26:20 | 2021-08-28T14:26:20 | 393,079,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for apple project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"80949499+Ulanka2@users.noreply.github.com"
] | 80949499+Ulanka2@users.noreply.github.com |
3971ddbc4cf92710e44df4f59c77e66fe0a08e16 | f6003f9f25dcc182e9fbce7a96d0dabb9341744c | /Exercícios/Lista 3 - Seção 6 - Estruturas de Repetição/Questão 18 - FEITA DEPOIS POR LISTAS.py | e05a0f6e535c594ac5b221a6281c7cc383963ba8 | [] | no_license | henriquecl/Aprendendo_Python | 60a87959714f82894e996c06b0a1b767838c38fc | 672029855431795defafd7e20e8da319bf34e502 | refs/heads/master | 2023-06-08T10:48:13.667893 | 2021-06-22T00:55:14 | 2021-06-22T00:55:14 | 261,029,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # Questão 18 - Escreve um algoritmo que leia certa quantidade de números e imprima o maior
# deles e quantas vezes o maior número foi lido. A quantidade de números a serem lidos deve
# ser fornecido pelo usuário
qtd_de_num = int(input('Digite quantos números você deseja fornecer\n'))
maior_numero = 0
num_de_vezes = 0
... | [
"64755074+henriquecl@users.noreply.github.com"
] | 64755074+henriquecl@users.noreply.github.com |
cce1da18f8b894a0b90a4e135c7102b0fd9b0863 | ec8fef96af2a6b6610d298637f05bcdfe67cba2b | /old_utils/convert_to_2D.py | aef585b5509ee474e4349871d313b07fd5cd71fd | [] | no_license | abailoni/longRangeAgglo | 8b98aca75b17d177cb5e408460f95ff20f411aeb | 260b452e106125722ae3824755584ce7bfd5b81c | refs/heads/master | 2021-06-25T14:14:57.150233 | 2020-11-06T11:14:52 | 2020-11-06T11:14:52 | 150,707,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,286 | py | import sys
sys.path += ["/home/abailoni_local/hci_home/python_libraries/nifty/python",
"/home/abailoni_local/hci_home/python_libraries/cremi_python",
"/home/abailoni_local/hci_home/pyCharm_projects/inferno",
"/home/abailoni_local/hci_home/pyCharm_projects/constrained_mst",
"/home/abailoni_local/hci_home/pyCharm_projec... | [
"bailoni.alberto@gmail.com"
] | bailoni.alberto@gmail.com |
7d1f200d66c48971993d340388567a7e5aecc538 | 466c185dd064d0a1fb8f20e72b21e227e2cb3efc | /individual_tutorials/pygamestartercode-22rothm-master/02-DogBark/DogBark.py | 8db8eda13de924c9936168145ec129e38d18aaf3 | [
"MIT"
] | permissive | rhit-catapult/2021-session1 | 3e937235fe48cb03a1dc69b5573879a17b2e81eb | 60c70abeb90ab7edc8d6ddb2c6beb12243a244fc | refs/heads/main | 2023-06-15T20:34:34.449474 | 2021-07-16T20:15:15 | 2021-07-16T20:15:15 | 386,752,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | import pygame, sys
def main():
# pre-define RGB colors for Pygame
BLACK = pygame.Color("Black")
WHITE = pygame.Color("White")
IMAGE_SIZE = 470
TEXT_HEIGHT = 30
# initialize the pygame module
pygame.init()
# prepare the window (screen)
screen = pygame.display.set_mode((IMAGE_SIZE,... | [
"fisherds@rose-hulman.edu"
] | fisherds@rose-hulman.edu |
cf60e9e6c17347c0ccc6df1e5b286240eee67f29 | a0689609c77e78667b0bda674ee864f72efcf57e | /kds/openstack/common/excutils.py | 14f43748464dcc2619a0beb0d4e90aeb40892603 | [
"Apache-2.0"
] | permissive | jamielennox/openstack-kds | 953ebece9bf22dd5005230f827d4b3a0ce918145 | adf69dcb5d9653ef081fa668509c6585c6e00e86 | refs/heads/master | 2021-01-23T08:09:39.065252 | 2013-11-26T20:30:39 | 2013-11-26T20:30:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,744 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack Foundation.
# Copyright 2012, Red Hat, Inc.
#
# 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:/... | [
"jamielennox@redhat.com"
] | jamielennox@redhat.com |
97eac55758d664e8b872df0bb220e90d01264b5f | 8328c8327e28afbe20f0ff36d2dedb5c64f8e9a6 | /hw8/ELBWrapper.py | f59a816d41bc12150ada7240366580d7fb3907bf | [] | no_license | SamuelMarks/cscie90-hw8 | 18710edc5ad26ce2b7403898cacd1fd98acbabc3 | baae8d648420c2cd8c07391a5bc425152a996af1 | refs/heads/master | 2021-01-10T21:15:14.677596 | 2014-11-06T06:21:31 | 2014-11-06T06:21:31 | 26,036,731 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | #!/usr/bin/env python
# TODO: Implement this, ran out of time so did it through the management console web frontend
from os.path import expanduser, join as path_join
from sys import stderr
from random import randint
from pprint import PrettyPrinter
from boto.ec2.elb import connect_to_region
pp = PrettyPrinter(inden... | [
"samuelmarks@gmail.com"
] | samuelmarks@gmail.com |
91dc593fefb21524a26d88c1010e8d0c2b4767c8 | e5a511e346f5be8a82fe9cb2edf457aa7e82859c | /SANFOUNDRY/String/replace_re.py | ea61caab5503cb141ee5970124fa790e998016e3 | [] | 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 | 316 | py | """Python Program to Replace all Occurrences of ‘a’ with $ in a String"""
import re
message = input()
replace_string = re.sub('a','$',message)
print(replace_string)
"""Python Program to Take in a String and Replace Every Blank Space with Hyphen"""
blank_hypen = re.sub(' ','-',message)
print(blank_hypen)
| [
"neha.kapoor070789@gmail.com"
] | neha.kapoor070789@gmail.com |
b4aa1735e4aa2649c681c368de34898ac31aee94 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/base/lib/json/tool.py | 028027158e75bfcffc7ea2faecd2e80158034a61 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | import argparse
import json
import sys
def main():
prog = 'python -m json.tool'
description = 'A simple command line interface for json module to validate and pretty-print JSON objects.'
parser = argparse.ArgumentParser(prog=prog, description=description)
parser.add_argument('infile', nargs='?', t... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
85bc9b4cf7b833736d5ddb34d44c1abe8a5c630a | 6329ece221f3b2295cb3791168c876d260ed0c31 | /test_learn/chapter8图形和特效/8.4设置窗口背景/winBkground_6.py | f8aaf7b8dc57d2070f9bfcdfbde09c83ef9f80f9 | [] | no_license | dxcv/PythonGUI | 4908e049dde5e569a3ad916c6bac385c7953a243 | a39beef0006e3e4057e3a9bcb3e0e64ea790427e | refs/heads/master | 2020-05-17T17:14:58.250549 | 2019-04-11T09:32:52 | 2019-04-11T09:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | # -*- coding:UTF-8 -*-
'''
使用paintEvent设置窗口背景
设置背景图片
'''
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import sys
class Demo(QWidget):
def __init__(self,parent=None):
super(Demo,self).__init__(parent)
self.setWindowTitle("paintEvent设置背景图片")
self.resize(5... | [
"834819108@qq.com"
] | 834819108@qq.com |
bbdad210d278ba6acb40faa6105239bc29b8be45 | 480a6db59473a0f5bf5aadd53a193eccb1ae0840 | /quasi.py | f54f7469a94d8943102552b9d5336e502803a081 | [] | no_license | EsaikaniL/GREK | ff89e92995f68c449c841f5ea1d2ac74a8911cd1 | 5587e02e603a15fc208f97d16fa68c441b64519a | refs/heads/master | 2020-04-15T01:45:02.074581 | 2019-06-17T12:12:29 | 2019-06-17T12:12:29 | 164,290,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | //esaikani
import sys
a =raw_input()
if a == a[::-1] :
print('yes')
sys.exit()
k1 = 0
for c in a[::-1] :
if c == '0' :
k1 += 1
else :
break
b = '0'*k1 + a
if b == b[::-1] :
print('yes')
else :
print('no')
| [
"noreply@github.com"
] | EsaikaniL.noreply@github.com |
dc3d5e6db6e5f197ed98f9a03556364bd9b513d3 | d474efb74fd5268fd908a2a5394a8ecc97e28f3b | /python/count/bamStrand.py | 8df2790a7f8fdb93c9d056a586d39e8fc7def3c7 | [] | no_license | bradleycolquitt/seqAnalysis | e1f2fbefa867ee11a51801aeeaf57ebc357a0057 | d2c37fb0609754a0ec4e263dda27681717087523 | refs/heads/master | 2021-01-01T05:42:03.060788 | 2017-05-28T02:47:58 | 2017-05-28T02:47:58 | 2,284,790 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | #!/usr/bin/env python
import sys
import os
import argparse
import pysam
import pdb
import BAMtoWIG as b2w
from subprocess import Popen
def splitByStrand(bamfile, pe):
bam_prefix = bamfile.split(".bam")[0]
#pdb.set_trace()
if pe:
flags = [('-f 0x42', '-F 0x10', 'plus'), ('-f 0x42', '-F 0x20', ... | [
"bradley.colquitt@gmail.com"
] | bradley.colquitt@gmail.com |
20729513095266f3fc102f43808d72a5935a5b31 | b4874cbd7299492277ad28441bad05e6348307f2 | /sharpy/plans/acts/act_tech.py | 11e531852f9cb0bf8d30921389bf8d03f3d1def6 | [
"MIT"
] | permissive | MadManSC2/sharpy-sc2 | 7d405578413c7a8f8fc1e4030ad719d7fe5df10a | 13950357df2db58033daab24f076e3ae83f0b2a8 | refs/heads/master | 2021-01-05T03:38:58.038563 | 2020-03-07T20:35:24 | 2020-03-07T20:35:24 | 240,865,466 | 1 | 0 | MIT | 2020-02-16T09:38:05 | 2020-02-16T09:38:04 | null | UTF-8 | Python | false | false | 2,684 | py | from sc2 import UnitTypeId, AbilityId
from sc2.ids.upgrade_id import UpgradeId
from sc2.units import Units
from .act_base import ActBase
# Act of researching a technology or upgrade
class ActTech(ActBase):
def __init__(self, upgrade_type: UpgradeId, from_building: UnitTypeId):
assert upgrade_ty... | [
"aki.vanttinen@sedgestudios.com"
] | aki.vanttinen@sedgestudios.com |
3d6931e60bdf8e3c8686115d4f2cff4c58fc5d64 | 2709e527c217a8264b48e2f549b3284e5ccb9551 | /0x08-python-more_classes/4-rectangle.py | 4d3415f0f3e19a3931525787d1678fc66bf9f8a0 | [] | no_license | kwhit2/holbertonschool-higher_level_programming | 489d6b88ed14b9f2efd4637d8a71ae569b5027f6 | 2660516b12fee0f03c4025ba1d8d2762a8880a06 | refs/heads/main | 2023-05-22T17:57:02.035803 | 2021-06-12T18:43:54 | 2021-06-12T18:43:54 | 319,346,696 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py | #!/usr/bin/python3
""" This module contains a class Rectangle """
class Rectangle:
""" Rectangle class - represents a rectangle
Attributes:
__width: integer, width of rectangle
__height: integer, height of rectangle
"""
def __init__(self, width=0, height=0):
""" __init method
... | [
"kfw2@outlook.com"
] | kfw2@outlook.com |
f316a044f0174b80304b7f2a298e3d259c455d78 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_certificating.py | 310a49f62efa26e138874e0c458bac64cd9c149d | [
"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 | 244 | py |
#calss header
class _CERTIFICATING():
def __init__(self,):
self.name = "CERTIFICATING"
self.definitions = certificate
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['certificate']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.