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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e846712c3e62e8f397f0e9a3f637f046a811cc22 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/detection/YOLOX_ID2833_for_PyTorch/configs/yolof/yolof_r50_c5_8x8_iter-1x_coco.py | 0d293a7793f4826daf31cc457174e76dcf33d112 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,318 | py |
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
7712505c4d69532be6a6386cfa71fdb7b45b07aa | cd557e3c2b34f30f2e7caf7c79c07ff6e109fbd3 | /deb-packer/debpacker/common/preparedassets.py | 47cf18a3989f159995400d95782e1f5a351a8821 | [
"Apache-2.0"
] | permissive | Zenterio/opensourcelib | f005174c049df0f5deddc1269d7c343a8e219ca5 | 07f0dabffaceb7b6202b5f691cbad46dac5868a8 | refs/heads/master | 2022-12-09T02:53:36.444094 | 2021-04-28T18:03:24 | 2021-05-27T13:14:58 | 186,092,997 | 5 | 6 | NOASSERTION | 2022-12-07T23:37:26 | 2019-05-11T05:44:37 | Groovy | UTF-8 | Python | false | false | 2,907 | py | import logging
import os
import shutil
from tempfile import TemporaryDirectory
logger = logging.getLogger(__name__)
logger.addHandler(logging.NullHandler())
class OutputExists(Exception):
pass
class WorkspaceExists(Exception):
pass
def prepared_output_file(output_file, force=False):
"""Make sure that... | [
"per.bohlin@zenterio.com"
] | per.bohlin@zenterio.com |
2a0a32437f903195d5d7cd29d20a83bf07ee1e10 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03777/s037020604.py | 601d8ed40cff3bbfe605fabc2c992cb4bf53bbf4 | [] | 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 | 124 | py | i_list = input().split()
a = i_list[0]
b = i_list[1]
r = ''
if a == 'H':
r = b
else:
r = 'H' if b == 'D' else 'D'
print(r) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cc122bd5e7773aefbeac4d92309154b2b830979d | c074ce302e0a2a09ebe8b0a94e342380afbaa911 | /beakjoon_PS/no4386.py | 7e5fb1218213f52753966110644658369dea718f | [] | no_license | elrion018/CS_study | eeea7a48e9e9b116ddf561ebf10633670d305722 | 3d5478620c4d23343ae0518d27920b3211f686fd | refs/heads/master | 2021-06-10T13:35:20.258335 | 2021-04-25T10:12:17 | 2021-04-25T10:12:17 | 169,424,097 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | import sys
import math
def find(node):
if node == parent[node]:
return node
parent[node] = find(parent[node])
return parent[node]
def merge(node1, node2, c):
global cost
node1 = find(node1)
node2 = find(node2)
if node1 == node2:
return
if level[node1] > level[node2]... | [
"elrion018@gmail.com"
] | elrion018@gmail.com |
bb1e0144bf3bc2134cb596254477f3b4f644c962 | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/1510.找出数组中的幸运数.py | e96f0486d1887ee93e2a6e25f9fac07d5d0964a1 | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 1510.找出数组中的幸运数.py
| [
"1641429327@qq.com"
] | 1641429327@qq.com |
81c74436a50d3bca142e49984543107819ac22eb | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/chromite/lib/paygen/filelib_unittest.py | a7fbff86d47aafbc82d375ce8a4e295e36fa0c60 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 12,366 | py | # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Test the filelib module."""
from __future__ import print_function
import os
import shutil
import subprocess
from chromite.lib import cros_build_... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
ef2e1f85d2400b42c9750ff08fe92fdd4e8a6e2f | 524c168b1b7ab4644a612f692645ae56487dea8c | /fwork-backend/tina/export_import/validators/validators.py | c2decd9d8d9cd8173d1eceb5e96fb61b0e318213 | [] | no_license | phamhongnhung2501/Taiga.Tina | b4fa730a9f9601e23ab19c6d937e7daf0386b1e2 | 8bc44de3a364ccd0e49e767b098589898dcabc10 | refs/heads/master | 2022-12-14T09:55:11.205228 | 2019-07-08T07:42:38 | 2019-07-08T07:42:38 | 195,760,755 | 0 | 0 | null | 2022-12-08T05:18:37 | 2019-07-08T07:39:32 | Python | UTF-8 | Python | false | false | 15,733 | py | # -*- coding: utf-8 -*-
from django.utils.translation import ugettext as _
from tina.base.api import serializers
from tina.base.api import validators
from tina.base.fields import JSONField, PgArrayField
from tina.base.exceptions import ValidationError
from tina.projects import models as projects_models
from tina.pro... | [
"hongnhunglyzin97@gmail.com"
] | hongnhunglyzin97@gmail.com |
847d87a93d18a7bb7fa87075220e57f0a38b2714 | e3857f7981f9644ba81a8e0a9644ac84bfaf8c83 | /stubs/Rhino/Rhino-stubs/Render/Fields/__init__.pyi | 44c5131703b458a6d30e1908798aed781fce7ebe | [
"MIT"
] | permissive | daddycocoaman/pythonstubs | 89f5d6a34ccab23927b6bafeac63c539abb3ce5d | d3d7a9b6e252e4ee0bbfbd2ec9d4bd61db815dbe | refs/heads/master | 2023-05-02T19:53:56.150829 | 2021-05-24T00:42:45 | 2021-05-24T00:42:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,668 | pyi | from typing import Tuple, Set, Iterable, List
class BoolField(Field):
@property
def Value(self) -> bool: ...
@Value.setter
def Value(self, value: bool) -> None: ...
def ValueAsObject(self) -> Object: ...
class ByteArrayField(Field):
@property
def Value(self) -> Set(Byte): ...
@Value.... | [
"steve@mcneel.com"
] | steve@mcneel.com |
c2f5bfda1529aab902a743d8b2faafc8698379e5 | 287792543e5f15cd912661ffe0575d4fc3d03a49 | /backend/tests/baserow/api/users/test_token_auth.py | c4b48a5d02f0695df65e4eb26a64212f5c519aec | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jacklicn/baserow | 27f7566a164127d8b4571be4493447347d8aa3ed | 978d9462ededbaa96674a6653028ba19876ea273 | refs/heads/master | 2023-04-02T19:06:20.961729 | 2021-04-08T16:00:37 | 2021-04-08T16:00:37 | 357,790,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,782 | py | import pytest
from pytz import timezone
from unittest.mock import patch
from datetime import datetime
from freezegun import freeze_time
from rest_framework.status import HTTP_200_OK, HTTP_400_BAD_REQUEST
from django.shortcuts import reverse
from django.contrib.auth import get_user_model
from rest_framework_jwt.setti... | [
"bramw@protonmail.com"
] | bramw@protonmail.com |
7a3cbee563fe9af89cf6090f7e1f620776067cd0 | 0b79d66196e9bef7cf81c0c17b6baac025b0d7f1 | /apps/other/registry/admin/main.py | 4464152af359f43a862e22c2b8579d2d933bb682 | [] | no_license | tsevindik/sis-back | bf0244a803ba9432980844ff35498780ac664564 | 4ba942fe38cc150c70898db4daf211213b84a61a | refs/heads/master | 2021-03-24T09:35:49.199712 | 2017-01-25T08:19:37 | 2017-01-25T08:19:37 | 73,540,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | from django.utils.translation import ugettext_lazy as _
from django.contrib import admin
from ..models import main
@admin.register(main.SectionRegistry)
class SectionRegistryAdmin(admin.ModelAdmin):
pass
| [
"abdullahsecer@std.sehir.edu.tr"
] | abdullahsecer@std.sehir.edu.tr |
d45fe8cb960a278450c31888995d42244224b7ad | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2851/61048/315206.py | 4aed0eede40bf578fae4619313b794a03017dec1 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | def arr24():
n=int(input())
set=[]
for i in range(n):
set.append([int(x) for x in input().split(' ')])
res=max(x[0]+x[1] for x in set)
print(res)
return
arr24() | [
"1069583789@qq.com"
] | 1069583789@qq.com |
53870f88d1667637b6f2570aeb78bf738d10e60a | 43b9eb11e90dbf984f950e4885085c83daa719b2 | /migrations/versions/9f52309f0d44_mail_queue.py | abc83e76342c6f77afe7ff3516acc85474948ac9 | [
"Apache-2.0"
] | permissive | dpdi-unifor/thorn | 8ec7982812fe07906567514ad6628154ea99f620 | 37695c66607f60b29afd25ac512c0242079e1342 | refs/heads/master | 2023-01-02T19:48:27.409446 | 2020-09-09T14:31:51 | 2020-09-09T14:31:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | """Mail queue
Revision ID: 9f52309f0d44
Revises: e793fb176cbf
Create Date: 2020-03-25 10:49:23.112831
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '9f52309f0d44'
down_revision = '1fba1a39c681'
branch_labels = None
depends... | [
"waltersf@gmail.com"
] | waltersf@gmail.com |
9b235cae4f1d436590d3c3d5e1128a9ce5f5df43 | cc5a3fa80d2ae90afc2626e4a82b9a927726dfa0 | /huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/update_topic_access_policy_req_topics.py | 1405a08d3e4d67daf0feb111fa301e21c9479b6d | [
"Apache-2.0"
] | permissive | Logan118/huaweicloud-sdk-python-v3 | eca15e9b08bdccef7122e40735d444ddc958efa8 | bb230c03bd00225b9f5780a56adce596e9456420 | refs/heads/master | 2023-07-17T14:57:50.799564 | 2021-08-25T10:40:43 | 2021-08-25T10:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,862 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateTopicAccessPolicyReqTopics:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
cdf93a5279462443f1e692f3bbc38e0d61b93fbc | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinci_v36r1p3/InstallArea/x86_64-slc6-gcc48-opt/python/StrippingArchive/Stripping21a/StrippingB23MuLines.py | cbbfeda22896e2b04a439f4d8f06ac7fe51a0f44 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,702 | py | """
Module for construction of B+ -> mu l+ l- lines
Performance:
Full.dst
########
StrippingReport INFO Event 500000, Good event 500000
| *Decision name*|*Rate,%*|*Accepted*| *Mult*|*ms/evt*|
|_StrippingGlobal_ ... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
dbc6c92cec07485e9efacd47c6325a39e46dea33 | 951a84f6fafa763ba74dc0ad6847aaf90f76023c | /Solu576_.py | 8f43d17d3cbe6edfc44b274284b0508456e0409f | [] | no_license | SakuraGo/leetcodepython3 | 37258531f1994336151f8b5c8aec5139f1ba79f8 | 8cedddb997f4fb6048b53384ac014d933b6967ac | refs/heads/master | 2020-09-27T15:55:28.353433 | 2020-02-15T12:00:02 | 2020-02-15T12:00:02 | 226,550,406 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,702 | py | # 576. 出界的路径数
# 给定一个 m × n 的网格和一个球。球的起始坐标为 (i,j) ,
# 你可以将球移到相邻的单元格内,或者往上、下、左、右四个方向上移动使球穿过网格边界。
# 但是,你最多可以移动 N 次。找出可以将球移出边界的路径数量。答案可能非常大,返回 结果 mod 109 + 7 的值。
class Solution:
def findPaths(self, m: int, n: int, N: int, i: int, j: int) -> int:
mod = 1000000007
if (N<1):
return 0
... | [
"452681917@qq.com"
] | 452681917@qq.com |
692f0db214f21019d4b2e1c12eb6bb9de9dcf823 | 80c8ea71d75161e38d69ed84c0253cc389b3f284 | /lab1/bitter/app/utils.py | 5e98bd5a9c91b6077096a4df6bef03ce801264ee | [] | no_license | overproof9/saw_labs | c9aa363896ab35a4b30a74eaaaa606955a251593 | 3a475bbb9a92dc3cd41f4804c85f1696c1af3685 | refs/heads/main | 2023-04-02T02:36:16.653393 | 2021-03-31T22:48:06 | 2021-03-31T22:48:06 | 335,461,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | import os
import errno
LOG_PATH = '../logs/action_log.txt'
def write_log(data):
created = False
if not os.path.exists(os.path.dirname(LOG_PATH)):
try:
os.makedirs(os.path.dirname(LOG_PATH))
created = True
except OSError as e:
if e.errno != errno.EEXIST:
... | [
"="
] | = |
41eb9405a412b407ed88832522548dbf259d7df3 | 853dad68ab11aafdaa33afa684a8eecd9b28f41b | /PythonAppiumProject/PythonTraining/Day1And2-MyClassWork/AreaOfCircle.py | 478f22e5bd7e463b93e7cb60f4b257cbd9b748fa | [] | no_license | samir711/webdriverpythonappium | 47ac24e3f50bdeaa5f96796e45d1ddb0090da2bc | 2dd65e44b51d33e351f352f6e5c9528e5a771b19 | refs/heads/master | 2020-04-05T21:06:28.226938 | 2018-12-06T05:41:56 | 2018-12-06T05:41:56 | 157,207,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | radius = float(input("Enter the radius of Triangle"))
area = 3.41 * radius * radius
print("The radius of Circle is {0}".format(area)) | [
"samirdoc1@gmail.com"
] | samirdoc1@gmail.com |
d99c596c56ac145ead3309285bb3ec5ed63bde45 | 74f68049235709841416010ec1e18e8085762113 | /dj/gram/.history/gram/urls_20191215193825.py | 62d6ba67b39852fb2deb530b6ca2e49300546d0a | [] | no_license | camilooob/pythonisfun | 749692517a6c6b147c428996c01fb3b2fa1aef14 | 55453e1f80f92c3756ee5f0338f93fc2a0d9beec | refs/heads/master | 2020-09-21T21:59:44.308526 | 2020-01-20T17:41:56 | 2020-01-20T17:41:56 | 224,947,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.urls import path
from django.http import HttpResponse
def helloworld(request):
return HttpResponse("Hola mama")
urlpatterns = [
path('helloworld',helloworld)
]
| [
"camilobaq@hotmail.com"
] | camilobaq@hotmail.com |
59d03bf5c3533c1bde58c8edc175dac185220e6d | 9a22371ee720412528a7ed6e657ef4de0ab2c374 | /python-scrapy爬虫框架/first/first/settings.py | a54075ee84df6c8e6197ed28b13e908119de1533 | [] | no_license | gujie1216933842/codebase | 61b8ad1088be54753161d25e95051c1d5f404a6c | e7a0c3a44f623f0c77b0debdecd70703cc77651c | refs/heads/master | 2021-04-12T09:57:01.526725 | 2018-10-23T03:42:32 | 2018-10-23T03:42:32 | 126,582,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py | # -*- coding: utf-8 -*-
# Scrapy settings for first project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"gujientsy@163.com"
] | gujientsy@163.com |
2342acf02d6cd3e31894e1e530efcd45cbdc3cdf | 2c43de63a305224a880e38e5ff36cff59f82d50d | /Chapter11/example3.py | 382a2e42c1d2f01dab26d81d80f44fc2880a0596 | [
"MIT"
] | permissive | PacktPublishing/Mastering-Concurrency-in-Python | bc19add49bcef22fa8030d067c4200a680e2b1a8 | 1fa53540d9d543b472dd67392b8eeecbfa81a754 | refs/heads/master | 2023-02-04T22:25:06.955055 | 2023-01-30T09:18:18 | 2023-01-30T09:18:18 | 155,166,180 | 97 | 69 | MIT | 2022-03-18T02:23:31 | 2018-10-29T06:58:53 | HTML | UTF-8 | Python | false | false | 947 | py | # ch11/example3.py
import asyncio
class EchoServerClientProtocol(asyncio.Protocol):
def connection_made(self, transport):
peername = transport.get_extra_info('peername')
print('Connection from {}'.format(peername))
self.transport = transport
def data_received(self, data):
mess... | [
"nguyenminhquan135@gmail.com"
] | nguyenminhquan135@gmail.com |
4275fd8d6a080c539735f6390dbef29f3d4a052f | 9d67cd5f8d3e0ffdd4334a6b9b67c93f8deca100 | /configs/1_15ezn_beta_bias.py | 56af2531449c437142e5addddf1b261166b5a112 | [] | no_license | SiyuanLee/caps | 0c300a8e5a9a661eca4b2f59cd38125ddc35b6d3 | 476802e18ca1c7c88f1e29ed66a90c350aa50c1f | refs/heads/master | 2021-06-20T22:48:16.230354 | 2021-02-22T13:21:57 | 2021-02-22T13:21:57 | 188,695,489 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,774 | py | """
This is the example config file
larger lr
beta no bias
lower explr
not target beta
"""
import numpy as np
# More one-char representation will be added in order to support
# other objects.
# The following a=10 is an example although it does not work now
# as I have not included a '10' object yet.
a = 10
# This is ... | [
"lisiyuan@bupt.edu.cn"
] | lisiyuan@bupt.edu.cn |
82fdc843f991b35ccca3cb97487154b39a51f2e5 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_257/ch9_2020_09_23_12_29_53_145211.py | 083774f609a26661d831ef3fa0df79a66bb83461 | [] | 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 | 104 | py | import math
def calcula_volume_da_esfera(R):
volume_esfera= 4*math.pi*R^3/3
return volume_esfera | [
"you@example.com"
] | you@example.com |
854ef345e46334ca919ecf86f2395403447361dc | 9f7f75c4e8d75ebd27439d5e0df71844e6a042b0 | /plugins/connection/strace.py | b3998ac4418ed7bf399fb9bf339dbcd324cc6862 | [] | no_license | beeankha/ansible-tools | ea2453d2cb6dc67f06bb0ea596662f6f443185ec | 254ed536599d3d494476efbe0bb4832d54c117d8 | refs/heads/master | 2020-03-26T17:10:35.564194 | 2019-02-14T20:14:17 | 2019-02-14T20:14:17 | 145,145,785 | 1 | 0 | null | 2018-08-17T16:55:54 | 2018-08-17T16:55:54 | null | UTF-8 | Python | false | false | 12,456 | py | # Copyright (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# Copyright 2015 Abhijit Menon-Sen <ams@2ndQuadrant.com>
# Copyright 2017 Toshio Kuratomi <tkuratomi@ansible.com>
# Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __futu... | [
"tanner.jc@gmail.com"
] | tanner.jc@gmail.com |
3cd7ba83106b39dc5c0a9a2cf2c16a74cd23882d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_clitorises.py | b90030aa38ad58edd0c8d776a6e738a9d224696a | [
"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 | 232 | py |
#calss header
class _CLITORISES():
def __init__(self,):
self.name = "CLITORISES"
self.definitions = clitoris
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['clitoris']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2eeebeabdd1ab34dca8d04686c1ba0b255102723 | aef0a344e13f6a10f7145e8cd63a514adaa2f5a7 | /example/ZCU106/fpga_axi/tb/fpga_core/test_fpga_core.py | 3e1712a8ee8f1bc04368a039cb9b98cc1306c8a6 | [
"MIT"
] | permissive | alexforencich/verilog-pcie | a0ff59662e2d9cac100295b43a9b4ad374bcd406 | 75126f133318b31f226ae13ebc46a40eb52cf3ac | refs/heads/master | 2023-07-20T01:19:06.004282 | 2023-06-24T05:38:06 | 2023-06-24T05:38:06 | 164,569,208 | 765 | 223 | MIT | 2023-07-18T08:36:17 | 2019-01-08T05:28:51 | Verilog | UTF-8 | Python | false | false | 15,022 | py | """
Copyright (c) 2020 Alex Forencich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
1919051c951725b621dab41ae647e9f8307394d2 | 00663c4ff1cbb86a8d207d1fce6330890ac6c154 | /advanced_data_gen.py | 075739fa4d1b3ff6c6c08ef21cbb2b791ceee485 | [] | no_license | SuryodayBasak/knn-optimization | 45e0e1267f7fc0b0b0d07b73812146fd3538cb7f | 3b676d3955c84a3c8b816ab5866e356581b9cacc | refs/heads/master | 2020-04-26T22:05:51.659631 | 2019-04-05T05:05:08 | 2019-04-05T05:05:08 | 173,861,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | import numpy as np
#functions: parabola (concave up and down), asymmetric parabola, affine,
#piecewise with continuity breaks
#types of noise: white noise, flicker, brownian noise, functional noise
#input data distributions: uniform, gaussian, exponential, skewed
#need to alter the following params:
#N - number of da... | [
"suryodaybasak@gmail.com"
] | suryodaybasak@gmail.com |
bbef9a1fc4ba0956f41ecc1d5478ad92b81c30ef | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /own_place/great_work/government_and_eye/feel_first_number_from_different_government.py | e79f9fb3f388156d11a7db3ac3f204b373cc568e | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py |
#! /usr/bin/env python
def see_week(str_arg):
tell_important_hand(str_arg)
print('group_or_woman')
def tell_important_hand(str_arg):
print(str_arg)
if __name__ == '__main__':
see_week('woman')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
b1a8c7dfb33809ea57d04a71acf580b5ed2d9dc5 | 8b3031390fa5ac1ed1a4328ccd21096971739129 | /app.py | e97c0e3bb95caaca0b39066bbca2a4bc1be52884 | [] | no_license | manishbalyan/real-python-test | 6dbc5d6af16d6599e74cdfa8a65537fcc63c837b | 386d25504db24e6c33faa85a017f199fdc1eece1 | refs/heads/master | 2020-05-20T01:32:38.924631 | 2015-06-03T15:46:27 | 2015-06-03T15:46:27 | 29,399,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | # imported Flask class from flask library to create web app
from flask import Flask
#created instance of the Flask class and assign it to the variable app
app = Flask(__name__)
# error handling snippet
# provide error msg and print stack trace directly in the browser
# now not to restart server just refresh browse... | [
"balyan05.manish@gmail.com"
] | balyan05.manish@gmail.com |
3f0c40820a14d3e85eed0937997a202778c9c9b8 | cf510a86ab173e3bac67371ae33c26cb92b99179 | /chats/apps.py | 95b2ddf28b49e15e1dbafb8c979c360f0c4580fa | [] | no_license | geoolekom/technotrack-web2-spring-2017 | 5afd4541d34087a86fd0f12b2d23a512a035ac64 | c0522efecfa42ef87fc7c58dcc3e6bf4cc4190fd | refs/heads/master | 2021-01-14T06:21:58.080203 | 2017-04-22T16:43:42 | 2017-04-22T16:43:42 | 81,954,903 | 0 | 0 | null | 2017-02-14T14:42:50 | 2017-02-14T14:42:49 | null | UTF-8 | Python | false | false | 136 | py | from django.apps import AppConfig
class ChatsConfig(AppConfig):
name = 'chats'
def ready(self):
import chats.signals
| [
"geoolekom@gmail.com"
] | geoolekom@gmail.com |
ed437e9fa003a4296275abcd13337b6072360317 | e7ce273f404f82fd8672c97e50b386509c8f9870 | /OOP/Polymorphism_and_Magic_Methods/Wild_Farm/animals/birds.py | a565e182121a38fa8a37ba0f466f568cc1c9bb50 | [] | no_license | rzlatkov/Softuni | 3edca300f8ecdcfd86e332557712e17552bc91c3 | a494e35bff965b2b9dccc90e1381d5a1a23737a1 | refs/heads/main | 2023-07-02T12:49:59.737043 | 2021-08-13T20:47:07 | 2021-08-13T20:47:07 | 319,088,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | from Wild_Farm.food import Meat, Vegetable, Fruit, Seed
from Wild_Farm.animals.animal import Bird
class Owl(Bird):
WEIGHT_INCREASE = 0.25
def __init__(self, name, weight, wing_size):
super().__int__(name, weight)
self.wing_size = wing_size
def __repr__(self):
animal_type = self._... | [
"nozzller@gmail.com"
] | nozzller@gmail.com |
59bd1aee830241a896c8a8eaab1bbc5685e6fee8 | b41e0def0792c55ee12a452bf34c1e339487b42c | /strat_trop_zonal_asymmetries/quartile_new/composites_z200_ninio_juntos_PV.py | b447ce52da34cbd8ec93a06269ac17a5453714c6 | [] | no_license | marisolosman/assessment_SH_zonal_asymmetries | ba6e0a9c38019313367dbbe5914c45aa4f23b19e | dc400f09be8c6845ce86d28e2ab7bc9bfb37fcc8 | refs/heads/master | 2022-12-25T00:52:31.678839 | 2022-12-19T13:34:37 | 2022-12-19T13:34:37 | 194,651,414 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,175 | py | #composites of EN-LN events conditioned on PV strength
import numpy as np
import xarray as xr
import os
import plots_stereo as plots
os.environ['HDF5_USE_FILE_LOCKING'] = 'FALSE'
PATH_DATA = '~/datos/data/'
PATH_DATA_2 = '/home/users/vg140344/datos/data/fogt/'
FIG_PATH = '/home/users/vg140344/assessment_SH_zonal_asymm... | [
"marisolosman17@gmail.com"
] | marisolosman17@gmail.com |
6361914e18017f424c7874165b64ac50b938b34c | c6606aad71d30889739c6612202519057648682c | /Python/Exercise Problems/RunningMaxValue.py | 36803b31b9ea623c4f63317f4a37d9891106e6cc | [] | no_license | sonam2905/My-Projects | c10cb1bef32dfbee62b81c35e161e03c584423f2 | 4c7d6be8b5af2909f4795af034864354f59dd4c5 | refs/heads/master | 2023-08-25T10:16:20.575102 | 2021-10-31T15:49:27 | 2021-10-31T15:49:27 | 419,038,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | from itertools import accumulate
def running_max_product(iters):
return accumulate(iters, max)
#List
result = running_max_product([1,3,2,7,9,8,10,11,12,14,11,12,7])
print("Running maximum value of a list:")
for i in result:
print(i)
#Tuple
result = running_max_product((1,3,3,7,9,8,10,9,8,14,11,15,7))
print("Run... | [
"noreply@github.com"
] | sonam2905.noreply@github.com |
6f6502a4ddbdc2f2e1ad14e872b8548d85147718 | 257e07b22caf252dccc6609ce74f97d73c71e309 | /src/styles/migrations/0011_style_order.py | a111e7fe0b2e9e6f7c0184477b0867ef1416a497 | [] | no_license | NikolayBorovenskiy/triumph | 0f7c0f44f11daf5f20230c76b8aa426dd8ed4d7c | ae1e057aeecf032b48ab9a70766656e360285cad | refs/heads/master | 2021-01-13T03:27:04.313865 | 2019-06-25T19:09:19 | 2019-06-25T19:09:19 | 77,550,530 | 0 | 0 | null | 2020-07-15T19:59:38 | 2016-12-28T17:42:40 | Python | UTF-8 | Python | false | false | 472 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-09-07 12:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('styles', '0010_auto_20180907_1136'),
]
operations = [
migrations.AddField(
... | [
"nikolay.borovenskiy@gmail.com"
] | nikolay.borovenskiy@gmail.com |
a038fbeb90d03c84c9c182cb25d15e724f2f0489 | 43b34ed0be64771f236c086f716bc6a92ae3db32 | /kt_branch_p.py | b09351c3f3ed86a19cfe63e5ee883259ae6f7ce9 | [] | no_license | elonca/LWB-benchmark-generator | ad5b6dc5e591941184056476db3ad13f01900879 | 7a7f28800f7574c98a3883f6edccad727dd509bc | refs/heads/main | 2023-07-28T01:42:22.532324 | 2021-09-16T07:22:56 | 2021-09-16T07:22:56 | 407,061,367 | 0 | 0 | null | 2021-09-16T07:12:38 | 2021-09-16T07:12:37 | null | UTF-8 | Python | false | false | 252 | py | from k_branch_p import *
def kt_branch_p(n):
return str(kt_branch_p_f(n))[1:-1]
def kt_branch_p_f(n):
return Not(
p(100) |AND| Not(p(101)) |AND| mbox(n, bdepth(n) |AND| det(n) |AND| branching(n))
) |OR| Not(mbox(n, p(n // 3 + 1))) | [
"u6427001@anu.edu.au"
] | u6427001@anu.edu.au |
3dff7b1e03e7380ced3e6baf9b109228ff6637d7 | 73c5a80b8ef2de609737a57c48b4190196bd4d20 | /shell/database/FreeBSDx86/reverse_tcp.py | 2a06c2a7113184dd38c08500ec77746948380710 | [
"MIT"
] | permissive | raildex1/shellsploit-framework | 1674a2a0215ce0c87b0ad7f284e9b7c42834546b | a16d22fdffa5d9369cd55c8768d327e5abf8e648 | refs/heads/master | 2021-01-20T01:27:25.919068 | 2016-12-08T08:57:51 | 2016-12-08T08:57:51 | 89,279,926 | 2 | 1 | null | 2017-04-24T19:37:04 | 2017-04-24T19:37:04 | null | UTF-8 | Python | false | false | 952 | py | from lib.payloads.shellcode import Shellcode
class Payload(Shellcode):
Shellcode.info["author"] = "sm4x"
Shellcode.info["name"] = "FreeBSDx86 - reverse_tcp shellcode"
Shellcode.info["references"] = [
"http://shell-storm.org/shellcode/files/shellcode-167.php",
]
Shellcode.info["size"] = 90... | [
"b3mb4m@tuta.io"
] | b3mb4m@tuta.io |
b02f45f4cde03554a1c289680af1cb901577c57a | 334cd5956d2248ab1a0bf9e2186ca4970ade9a29 | /docs/jnpr_healthbot_swagger/swagger_client/models/inline_response2002.py | 850d1d2f9c871afc778a475068101fd670cfc25f | [
"Apache-2.0"
] | permissive | Anam9/healthbot-py-client | 807db0106f08f5901fc4f62430ced1adaf38ad9f | f507cc6421d5b99e2f43a25722866f9ed6abd6a8 | refs/heads/master | 2023-01-08T00:15:44.071319 | 2020-11-11T07:20:24 | 2020-11-11T07:20:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,001 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 3.1.0
Contact: healthbot-feedback@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class InlineRespo... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
75f09f9fec5e672d11f81ebc5d5d70b01f02f55f | 959349baae2b6efdafff099382ba3d0ca20d9c2f | /shopping.py | 6cb05252c4b5662740787f57e735e65820fb372a | [] | no_license | malmeiser/hackbrightprojects | 123059332d2ec87c81b1f5bd8a6479ae80309e83 | 61561993aa83b96b914dbadb95c8970ec9f43e63 | refs/heads/master | 2021-01-21T15:38:17.963369 | 2017-02-10T05:14:54 | 2017-02-10T05:14:54 | 81,525,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | lists_dict = {}
def user_input():
answer = raw_input("")
return answer
def show_lists():
print lists_dict
def show_specific():
print "What list do you want to show?"
reveal = user_input()
print lists_dict[reveal]
def add_list():
print "Where are you going shopping?"
key = user_input(... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
b201d5ae7c18b1b8a34c110c8269e05e3fbbb801 | 9c73eccb0f27ee98452864e6388802e1c0a9e51c | /py_tdlib/constructors/passport_required_element.py | 04c64eaca03fdf357ab16cb6437ec38772b2b849 | [
"MIT"
] | permissive | Tempah28/python-tdlib | 32a684cba6f5b8fcd5673d01a06f926304d29c5b | 925781f2ef9e386dab437334048c798fa9cb945f | refs/heads/master | 2020-03-31T00:16:06.943269 | 2018-10-05T14:16:12 | 2018-10-05T14:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | from ..factory import Type
class passportRequiredElement(Type):
# a description of the required Telegram Passport element that
# requested by a service @suitable_elements List of Telegram Passport
# any of which is enough to provide
suitable_elements = None # type: "vector<passportSuitableElement... | [
"andrew@localhost"
] | andrew@localhost |
5aa3933205c2a0403c38525c6a30c55ca1b4da3a | 8226f8b4e7f5a48edac45831dc37f6243dc59e3d | /flask_cms/fileviewer/json.py | 7916497e8f7fd9870e423d90a0d45099c19a321e | [] | no_license | fyarci/flask-cms | 9b0bb3241dccd1c887f1534319d61e898d94b9e8 | 021a0afaad5133b41a79eb3ae46307915f2bf241 | refs/heads/master | 2021-01-20T17:42:35.795521 | 2015-03-26T19:20:11 | 2015-03-26T19:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | from flask import jsonify,request,flash
from flask.json import loads
from flask.views import MethodView
import os.path as op
class JsonCodeView(MethodView):
_SUCCESS_MESSAGE = 'You saved {}'
_ERROR_MESSAGE = 'Error saving {}'
def get(self):
content = request.args.get('data[content]',None)
... | [
"kyle@level2designs.com"
] | kyle@level2designs.com |
aa796a07afc4ed9da13de7d5e1d72ddc37a71b15 | 209f92737c716f281a62da135f9cc2b713643fdd | /lib/serializer/default.py | 8c5d36a073c630b9267c06a457dff54bc23f51e0 | [] | no_license | showyou/kyototycoon-pyrpc | 4a684f7c2a969dfc763e7553f87dce48746036af | 7f7f55dd5f3a33d77022206691dbb7feadb56aad | refs/heads/master | 2020-05-18T10:16:43.494534 | 2011-02-26T10:01:41 | 2011-02-26T10:01:41 | 1,397,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py |
class DefaultSerializer(object):
def __init__(self):
pass
def encode(self,data):
return data
def decode(self,data):
return data
| [
"showyou41@gmail.com"
] | showyou41@gmail.com |
a2e533c54f8bf5b1259809fb708c6518b779e563 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/sVj.py | abdae41cd1b1187f6880b7b2d1d1b9c50c138a39 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
cd72569d8f51c429be4eb4de0571a064595f9e94 | 70e663ee8012e0b4c231e884a2def07878c0b464 | /Dima 2/game/gygyhyhhj.py | e62e3335a1477c80ed8c7281d4363485c0083c21 | [] | no_license | pylinx64/sun_python_14 | 02d42cf0b560a4ef6029f3c1161b262df0b40792 | 3c35860ac0d9d48d7934e7716d232add88fd978d | refs/heads/main | 2023-05-08T08:03:04.005748 | 2021-06-06T13:06:00 | 2021-06-06T13:06:00 | 330,660,161 | 1 | 1 | null | 2021-01-28T10:30:18 | 2021-01-18T12:32:12 | Python | UTF-8 | Python | false | false | 2,648 | py | import pygame
pygame.init()
win = pygame.display.set_mode((500, 500))
pygame.display.set_caption("Tramp v cosmose")
walkRight = [pygame.image.load('right_1.png'),
pygame.image.load('right_2.png'), pygame.image.load('right_3.png'),
pygame.image.load('right_4.png'), pygame.image.load('right_5.png'),
pygame.i... | [
"noreply@github.com"
] | pylinx64.noreply@github.com |
6981f7808207e2879338d1a72100ec40dc13cb10 | 89e549eacf826b26b60b310920dea759083407b0 | /widgets/comboboxes.py | 74b1842ae3fdccb17e5eac4aabc5ca7071768b07 | [] | no_license | musum/PPBrowser | 5b4857020c7ddee36d69972fc56c0f345c182bf6 | 5b8ea67abc11a65f32daebdd63d7cae58d264f68 | refs/heads/master | 2020-03-22T14:34:46.135391 | 2018-07-08T17:55:04 | 2018-07-08T17:55:04 | 140,189,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,012 | py | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""Customized combobox widgets."""
# pylint: disable=C0103
# pylint: disable=R0903
# pylint: disable=R0911
# pylint: disable=R0201
# Standard library imports
impor... | [
"test@test.com"
] | test@test.com |
69b6e08558f3356c9604da4df591ea3e8a409aee | c5f58af61e3577ded52acda210f4f664651b598c | /template/live/base/base_data_loader.py | 87e755d61ea622634761b8339de237ee7fdccb45 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | hojihun5516/object-detection-level2-cv-02 | 0a4ee5cea9a77ef5d43fb61a4b37fe3a87cb0eac | bc8a08286935b31b8e7e597c4b1ca2cbbaeb9109 | refs/heads/master | 2023-08-31T09:50:59.150971 | 2021-10-16T15:00:19 | 2021-10-16T15:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,035 | py | import numpy as np
from torch.utils.data import DataLoader
from torch.utils.data.dataloader import default_collate
from torch.utils.data.sampler import SubsetRandomSampler
class BaseDataLoader(DataLoader):
"""
Base class for all data loaders
"""
def __init__(
self,
dataset,
ba... | [
"hojihun5516@daum.net"
] | hojihun5516@daum.net |
ca7395e3b1d042dacdbadfb38aba59b46b6c2962 | 85ef27cfe69bf8f4c65ecf4a382742984d91ae12 | /Python/File/count_letter_write_file.py | 98d625d09730f59796885424a47062afda6c833a | [] | no_license | SenthilKumar009/100DaysOfCode-DataScience | 7fc0d404e486b2aa1da3a242def0a307fec50f47 | dd2d44363960c9078b73956b6587961de0185f16 | refs/heads/master | 2023-07-17T04:38:21.404964 | 2021-08-27T12:56:55 | 2021-08-27T12:56:55 | 191,664,483 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | from os import strerror
message = 'It was a bright cold day in April, and the clocks were striking thirteen.'
count = {}
for character in message.lower():
count.setdefault(character, 0)
count[character] = count[character] + 1
text =''
try:
with open('readText.txt', 'wt') as f:
for key, value in co... | [
"senthilkumark.nitt@gmail.com"
] | senthilkumark.nitt@gmail.com |
897f99ed31b75c80df861f0238f9fcb3b47fd366 | bb9ab2b88c990377e58fd2b719a60f2e4a4689ce | /stat_Sprime.py | ae0b130416bd8f4131bbb79fdb7e7c5db4306e82 | [] | no_license | silvewheat/biocal-cli | 7ded0e05c134c932a7dd45130c546cd607b443b9 | 134a0bf4f0d318de50a92a1e72d18c13580e64e2 | refs/heads/master | 2022-12-11T21:04:25.240272 | 2022-11-28T02:40:02 | 2022-11-28T02:40:02 | 147,090,111 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 24 10:15:42 2020
@author: YudongCai
@Email: yudongcai216@gmail.com
"""
import os
import click
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
import allel
import numpy as np
import pandas as pd
import matplotlib
matplotlib.use('Agg')
impor... | [
"silverwheat@163.com"
] | silverwheat@163.com |
4d6771770309f071b857e09e41c0a7974f9c9d7a | 9386c887a2baaf053d24f6052651f4407ea79546 | /src/test/scenario_02_captures.py | df02ec2b801c581a7aaa24bfb7b6671a798002fe | [
"Python-2.0",
"LGPL-2.0-or-later",
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ShizhuZhang/ontask_b | bd6449d2649f45a2c386834d1ab841c077ea326e | acbf05ff9b18dae0a41c67d1e41774e54a890c40 | refs/heads/master | 2020-04-01T12:10:24.408767 | 2018-11-22T14:00:41 | 2018-11-22T14:00:41 | 153,194,681 | 0 | 0 | MIT | 2018-10-15T23:30:21 | 2018-10-15T23:30:20 | null | UTF-8 | Python | false | false | 2,959 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
import os
from django.conf import settings
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.select... | [
"abelardo.pardo@gmail.com"
] | abelardo.pardo@gmail.com |
9fac5c015e20b545c2586d4045ee3aff44424e02 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_082/ch14_2020_03_02_19_55_10_291173.py | 98e81afae44467d74022d2ad326efa1a8e11931b | [] | 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 | 248 | py | import math
g=9.8
def calcula_distancia_do_projetil (v, o, h):
part1= v**2 / 2*g
part2= 1 + (1 + 2*g*h / (v** 2) * (math.sin(o)**2))**(1/2)
part3= math.sin(2*o)
return (part1*part2*part3)
print (calcula_distancia_do_projetil(1,2,3)) | [
"you@example.com"
] | you@example.com |
c4ea35e8036fc7c5ea7a41d9d210c73ac3a3e07a | 4b224d376c6a82d340fc4a99908d49e5cb1c8299 | /mantisshrimp/visualize/__init__.py | 0f4a013462fdfce56d4d6e9a6fff4000f9258123 | [
"Apache-2.0"
] | permissive | philtrade/mantisshrimp | 44d1e7233f09f243b21b3dc8200bed8ff8f27bd7 | 3b360f4e2e273bb53bc21c4af16b1b40ec5eee7b | refs/heads/master | 2022-11-02T07:36:00.100605 | 2020-06-22T17:54:09 | 2020-06-22T17:54:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from .utils import *
from .show_annotation import *
from .show_record import *
from .show_preds import *
| [
"lucasgouvaz@gmail.com"
] | lucasgouvaz@gmail.com |
112b556c7594105240cb7e3850eeecbc4a765c01 | 768090e32003d74062cc47a0e67f47f682ceba13 | /nemo/collections/nlp/modules/common/megatron/utils.py | e86c6ab21bd135ebefba8aa083adcd2682d7e429 | [
"Apache-2.0"
] | permissive | AlexGrinch/NeMo | 028e57e2243c474249986e1c5027d4e762775124 | ba6ebee02e554e6f7229edfe67a610eca4d226af | refs/heads/main | 2022-10-10T15:42:25.146469 | 2022-08-05T22:08:05 | 2022-08-05T22:08:05 | 209,156,248 | 0 | 1 | Apache-2.0 | 2019-09-17T21:04:30 | 2019-09-17T21:04:29 | null | UTF-8 | Python | false | false | 11,910 | py | # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | AlexGrinch.noreply@github.com |
67d9da24ade481013c4bb88ee425b3116eba140c | 9b1c44006da4c4bad5944ac3337ce9940ce145c8 | /HospitalAPP/admin.py | aefd4e215b97318ad6b1e759b95864e0b80a1765 | [] | no_license | Adi19471/HOSPITAL-MANAGEMENT-SYSTEM | 14f068aeabc769251a132dffc10ca90999da3b89 | 210242d028a2f6f8688fdc4d9a6b03f864e02633 | refs/heads/master | 2023-09-04T23:39:52.157791 | 2021-11-18T09:56:35 | 2021-11-18T09:56:35 | 427,336,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | from django.contrib import admin
# Register your models here.
from .models import *
admin.site.register(auth_group)
class auth_groupAdmin(admin.ModelAdmin):
list_dispaly = ['id','name']
admin.site.register(auth_user)
admin.site.register(auth_user_groups)
admin.site.register(Hospital_department)
admin.site.registe... | [
"akumatha@gmail.com"
] | akumatha@gmail.com |
5c1f6a626c435165d8c523f9feb76aa68fa3c2ac | ec09932ef977bb0f9117193c3200b0807c588542 | /unreleased/azure-mgmt-search/azure/mgmt/search/models/search_management_request_options.py | 84ab0969e00d64db7e172fdabdbdb8056e578b58 | [
"MIT"
] | permissive | biggorog/azure-sdk-for-python | 26b9111f5d939e68374e2ff92dd5a3e127100a49 | 31e15670100f57a03aac9ada5fd83eedc230e291 | refs/heads/master | 2020-12-24T11:37:13.806672 | 2016-11-04T20:50:04 | 2016-11-04T20:50:04 | 73,026,650 | 1 | 0 | null | 2016-11-06T23:48:38 | 2016-11-06T23:48:37 | null | UTF-8 | Python | false | false | 948 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
c1456feec6e1882faf87ab0deaa3b7a62953e37f | e5dc27e634aba70bcd1b3acea74fed84ddccf837 | /plugins/module_utils/definitions/network_device_module.py | 77ebe2148edb16defa28e0d759cf61ae334bee2e | [] | no_license | jejrichardson/dnacenter-ansible | 264d1b52227d4bf78ad175494763cff9e7881f34 | f10078ef8323bda4b542e71bcecf4f80a7fe0609 | refs/heads/master | 2023-01-28T09:54:57.449459 | 2020-12-09T23:15:49 | 2020-12-09T23:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,918 | py | import json
module_definition = json.loads(
"""{
"family": "devices",
"name": "network_device_module",
"operations": {
"get": [
"get_modules",
"get_module_info_by_id",
"get_module_count"
]
},
"parameters": {
"get_module_count": [
... | [
"rcampos@altus.cr"
] | rcampos@altus.cr |
1c679c6e0dc79d546e6063cf785ef643a8bd8ccc | a393ab5f506a8d34712999b4b3de58f28d7e9cbc | /tensornet/models/resnet.py | a2c375f4c3e9dbf54b77eef7e3bb7639db316739 | [
"MIT"
] | permissive | shan18/TensorNet | 1ababd79a26aa53d73fcbc07bf7741feec66a1c0 | c79a0c64152dbeb3499d204994772858326f668c | refs/heads/master | 2021-11-30T05:51:34.868992 | 2021-11-27T23:39:07 | 2021-11-27T23:39:07 | 248,542,269 | 6 | 5 | MIT | 2021-11-27T23:39:07 | 2020-03-19T15:46:23 | Python | UTF-8 | Python | false | false | 16,285 | py | # The code here is taken from https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py
import torch
import torch.nn as nn
from typing import Type, Any, Callable, Union, List, Optional
from torch import Tensor
from torch.hub import load_state_dict_from_url
from .base_model import BaseModel
__all__... | [
"thegeek.004@gmail.com"
] | thegeek.004@gmail.com |
f61cd3d5b244edb6256c2f91aa715053ba954734 | b9f1fa4cd5f6194c1b7fb250ad13322618f2600d | /oscarapi/basket/operations.py | f05227a7a8ffc175a5c1e2adf0143ae8ba2a0061 | [
"BSD-2-Clause"
] | permissive | lijoantony/django-oscar-api | 689c752c8b42ba4e1f77fb2e3b1358d7a073d3e7 | af0b091ab864ee67d0703d1bd517d89664e5bf6f | refs/heads/master | 2021-01-17T09:23:28.841960 | 2015-06-22T08:22:37 | 2015-06-22T08:22:37 | 23,767,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,871 | py | "This module contains operation on baskets and lines"
from django.conf import settings
from oscar.core.loading import get_model, get_class
from oscar.core.utils import get_default_currency
from oscar.core.prices import Price
__all__ = (
'apply_offers',
'assign_basket_strategy',
'prepare_basket',
'get_b... | [
"lars@permanentmarkers.nl"
] | lars@permanentmarkers.nl |
b42a23a1d533796ff253e4eeecb9b40baeb93845 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03212/s013437737.py | 9fd51d046eab28596df1cb2289ace1d2ae76eef7 | [] | 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 | 768 | py | from collections import deque, Counter
N = int(input())
num_357 = [3, 5, 7]
dq = deque(num_357)
while dq:
x = dq.popleft()
if x <= 10**9:
num_357.append(int(str(x) + "3"))
num_357.append(int(str(x) + "5"))
num_357.append(int(str(x) + "7"))
dq.append(int(str(x) + "3"))
dq.... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4746a52795881245e1419565719422f6b286f601 | 30fa4bb7b0cb9b72aab786af3ed7d2462a1e72bf | /v_env/lib/python3.7/site-packages/docker/client.py | 8d4a52b2ef08dc91680861f65063e27d46dfb59f | [
"MIT"
] | permissive | buds-lab/psychrometric-chart-makeover | 3be2f45455b050a6b0673d232b2e02707e34f28a | e7267f57584d8ba645507189ea4a8e474c67e0de | refs/heads/master | 2022-12-11T16:21:08.114952 | 2019-07-24T14:28:12 | 2019-07-24T14:28:12 | 148,023,677 | 6 | 1 | MIT | 2021-06-01T23:47:24 | 2018-09-09T12:36:05 | Python | UTF-8 | Python | false | false | 6,971 | py | from .api.client import APIClient
from .constants import DEFAULT_TIMEOUT_SECONDS
from .models.configs import ConfigCollection
from .models.containers import ContainerCollection
from .models.images import ImageCollection
from .models.networks import NetworkCollection
from .models.nodes import NodeCollection
from .models... | [
"p.jayathissa@gmail.com"
] | p.jayathissa@gmail.com |
61e03ab3d8b61ff00d156a9f668267a965726ea2 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/latency/latencyavg11year.py | 0cb433e0d86a51ac96d7d70fdef5a871d4640c1f | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 36,699 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
8793fdfbd19f9e10a66fbf372a13446d6abd1d64 | c2bcf42e04a1e2146b41b250ff14e62fddcdf589 | /docs/exts/sphinx_skl2onnx_extension.py | f7cf24cae6cd8214514de7437b01c47ce04ad651 | [
"Apache-2.0"
] | permissive | onnx/sklearn-onnx | 0f958e1c090572fbe11e15f95bec975d1780cf8d | 895c3a76a315c7a6567a1a07a96dc658994ec16a | refs/heads/main | 2023-08-18T18:49:25.164433 | 2023-08-17T09:52:31 | 2023-08-17T09:52:31 | 162,340,939 | 455 | 92 | Apache-2.0 | 2023-08-31T16:04:13 | 2018-12-18T20:18:48 | Python | UTF-8 | Python | false | false | 8,666 | py | # SPDX-License-Identifier: Apache-2.0
"""
Extension for sphinx.
"""
from importlib import import_module
import sphinx
from docutils import nodes
from docutils.parsers.rst import Directive
from docutils.statemachine import StringList
from sphinx.util.nodes import nested_parse_with_titles
from tabulate import tabulate
i... | [
"noreply@github.com"
] | onnx.noreply@github.com |
0e8f6b914da776767fc1b80953ebf6a6defb4eda | 6935f8334f17e59f0691695e1404ce2fa3c18b98 | /src/signali_contact/migrations/0021_auto_20151223_1119.py | 81de2133e1bb9542ea076c33dbe7d11fa5803c5d | [] | no_license | obshtestvo/signali | a7b74746cba487ea3dacedbd2eda4876b972056e | f0c64bea9e151023612e33e476d0723819924e19 | refs/heads/master | 2016-08-05T17:13:55.793165 | 2016-01-20T16:39:36 | 2016-01-20T16:39:36 | 34,040,168 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('signali_contact', '0020_extract_children'),
]
operations = [
migrations.AlterField(
model_name='contactpoint',
... | [
"antitoxic@gmail.com"
] | antitoxic@gmail.com |
a8e20dbc85212f13f594a69e2f0603e251f263d9 | 6ccd833a6bc8eb2d7cadbaf64ba9351d87c8d1bd | /Pages/HomePage.py | 21fc26980e5f34bed54ce476b0048f73366a7f1d | [] | no_license | elaineo/barnacle-gae | e00691235160d140fb5004b34988d30811ef4102 | c706683cf448dc5763bb2ce8ea2f5968fcefb375 | refs/heads/master | 2021-01-01T03:47:28.083451 | 2014-11-18T16:47:42 | 2014-11-18T16:47:42 | 59,609,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | py | from Handlers.BaseHandler import *
from Utils.PageUtils import *
import urlparse
import json
class HomePage(BaseHandler):
""" Home page, first page shown """
def get(self):
if self.user_prefs:
#nr = Request.newest(5)
#self.params['new_requests'] = [r.to_dict(incl_user=... | [
"elaine.ou@gmail.com"
] | elaine.ou@gmail.com |
9a4822988d7383d4ca7ec1f4ff216983beb9ea76 | 50f3d7a5ddf24307891388edca639f798228c79d | /regex_test.py | fa30fc9614aa0c2f848d80e4be9e39be1668c160 | [] | no_license | kevinshenyang07/regex | 9d7d6d19d35e848c34a8d2be43af9d8050895d3b | 52d15b03ba178fa61cb27db15a760701659c20b9 | refs/heads/master | 2021-06-29T13:24:26.691205 | 2017-09-17T20:43:55 | 2017-09-17T20:43:55 | 103,613,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,511 | py | # -*- coding:utf-8 -*-
import re
'''
Example regex:
"Play (Xbox|PS4)[ ]?(360|One|pro)?"
Example output:
“Play PS4pro”, -> (Intent: “playGame”, machine: “PS4”, machineType: “pro”)
'''
group1 = [
"send a message",
"send a text message on facebook messenger",
"reply to last message on facebook messenger",
... | [
"kevinshenyang07@gmail.com"
] | kevinshenyang07@gmail.com |
31b0fe90d97c8e39512b20c3503dd78e010bd857 | 39d108a07211d187429596d0a02475bf435daebd | /shop/converters.py | 5314df61535f74c990a613ee78e8252ba0076a44 | [] | no_license | daseulll/djangobasic | 56da0a03dcbe64e22a76cb9661a192d62abf841b | 52cf708c949270a4e21ac65ecf182b8ed4e94629 | refs/heads/master | 2020-04-24T13:42:55.747946 | 2019-04-24T08:33:56 | 2019-04-24T08:33:56 | 171,996,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | class FourDigitYearConverter:
regex = r'\d{4}'
def to_python(self, value):
return int(value)
def to_url(self, Value):
return '%04d' % value | [
"nldaseul@gmail.com"
] | nldaseul@gmail.com |
427309eb8d28f8dde4176b9ff84e9253949f9b89 | e8ae11e5017507da59e2e92d423b6a1994490de4 | /env/lib/python2.7/site-packages/azure/mgmt/resource/policy/models/policy_assignment_paged.py | b202c495f4e232dc1fb8a12593fe2af59daa54f0 | [] | 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 | 1,394 | 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 |
072b14fd21299a92f6ad18509a6b10df05ae3447 | fafb89a3552e4dbb47d134966462ef5f3f37f576 | /KEMP/v0.2/fdtd3d/gpu/core/fields.py | 851777f7a2950767a4cd32ba893373f54200a01d | [] | no_license | EMinsight/fdtd_accelerate | 78fa1546df5264550d12fba3cf964838b560711d | a566c60753932eeb646c4a3dea7ed25c7b059256 | refs/heads/master | 2021-12-14T03:26:52.070069 | 2012-07-25T08:25:21 | 2012-07-25T08:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,569 | py | import numpy as np
import pyopencl as cl
from kemp.fdtd3d.util import common, common_gpu
class Fields:
def __init__(self, context, device, \
nx, ny, nz, \
coeff_use='', \
precision_float='single', \
local_work_size=256, \
global_work_size=0):
""... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
693b55449fed0f13697333437f8f7f4bd8a13c49 | 96a34a048c783a75736bf0ec775df22142f9ee53 | /services/web/server/src/simcore_service_webserver/login/storage.py | 6c61761a0b17fc8b0ea07837fdcb6891a02b612f | [
"MIT"
] | permissive | ITISFoundation/osparc-simcore | 77e5b9f7eb549c907f6ba2abb14862154cc7bb66 | f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63 | refs/heads/master | 2023-08-31T17:39:48.466163 | 2023-08-31T15:03:56 | 2023-08-31T15:03:56 | 118,596,920 | 39 | 29 | MIT | 2023-09-14T20:23:09 | 2018-01-23T10:48:05 | Python | UTF-8 | Python | false | false | 4,797 | py | from datetime import datetime
from logging import getLogger
from typing import Literal, TypedDict
import asyncpg
from aiohttp import web
from . import _sql
from .utils import get_random_string
log = getLogger(__name__)
APP_LOGIN_STORAGE_KEY = f"{__name__}.APP_LOGIN_STORAGE_KEY"
## MODELS
ActionLiteralStr = Liter... | [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
2d00f4185b603533f0d45f36b3b7315ee981991a | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/effects/Sparks.py | 56718c82f6e5ffa61d92492e49147531f99da063 | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | from pandac.PandaModules import *
from direct.particles import ParticleEffect
from direct.directnotify import DirectNotifyGlobal
from direct.showbase import AppRunnerGlobal
import os
class Sparks(NodePath):
def __init__(self, parent, renderParent):
# Initialize the superclass
NodePath.__init__(self... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
006ae363173dea581d4e5c0b014fc86bfce8eed8 | 06f17bbc0712cb35529e51d4cea268129eb60e19 | /backend/users/migrations/0006_auto_20200612_1809.py | 74f180c992ea654e4e91156b314f8ccbbdaead72 | [] | no_license | crowdbotics-apps/performit-15391 | 9c47dc79e424923b76e9a5fa233c2b4c27b64812 | d21796adb8634e8dad5905506f80392b37c1b51d | refs/heads/master | 2023-02-07T00:13:41.112089 | 2020-12-16T12:13:34 | 2020-12-16T12:13:34 | 252,771,244 | 1 | 1 | null | 2023-01-26T20:19:40 | 2020-04-03T15:29:55 | JavaScript | UTF-8 | Python | false | false | 1,312 | py | # Generated by Django 2.2.13 on 2020-06-12 18:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0005_auto_20200601_1153'),
]
operations = [
migrations.AddField(
model_name='userdetail',
name='facebook_l... | [
"mac@Macs-MacBook-Pro.local"
] | mac@Macs-MacBook-Pro.local |
d9cbdbf144857df7e7901bb2560c5a6cedc2a481 | 8e0149f00f82f57216584b53180ec02870dee7e8 | /python/recursion/backtracking/lc113.py | 75f532063922d0fc1f4689d4ab07d2a44a861629 | [] | no_license | chao-ji/LeetCode | 5880e0fa91d84ad70b5abd47e24ac75646fdcdf9 | 69a960dd8f39e9c8435a3678852071e1085fcb72 | refs/heads/master | 2020-12-13T03:35:42.009204 | 2019-06-15T04:45:38 | 2019-06-15T04:45:38 | 51,043,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,768 | py | """113. Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
Note: A leaf is a node with no children.
Example:
Given the below binary tree and sum = 22,
5
/ \
4 8
/ / \
11 13 4
/ \ / \
7 2 5 1
Return:
[
[5,4,11,2... | [
"chocobo1985@gmail.com"
] | chocobo1985@gmail.com |
fe53ae62b2ac3bc9a854be95a9ec0170690d6af4 | dcd49c222f07454dd365d861a87dead23b850a33 | /presentation/generateapi.py | 47005e76920479b649e25a99baf9c4998b11d190 | [] | no_license | sumsted/mempy_20160321 | 40d7c8e0677ed0fea7f68a0680a2c9b9e090c9a9 | 5b82c9bbe3f7a4aa8075ffcd60956b95d99009af | refs/heads/master | 2021-01-10T03:30:13.467656 | 2016-03-22T20:41:51 | 2016-03-22T20:41:51 | 54,350,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,875 | py | import os
import ast
import optparse
"""
Generate a server, client and test modules from a given module.
Usage: %prog [-v | --view] {python module}
"""
end_point = {'host': '0.0.0.0', 'port': 8080}
client_header = """import requests
host = 'http://%(host)s:%(port)d'
def g(action, *args):
url = host+'/'+actio... | [
"scottumsted@gmail.com"
] | scottumsted@gmail.com |
aafbab718d30d12ca973936f51dac5b25bca6dbd | 7233716fbf9fff94240d14770b3fc3f3ada10d9b | /devel/.private/gazebo_msgs/lib/python2.7/dist-packages/gazebo_msgs/msg/__init__.py | 95651f02d4ab6781805db85c3be6d890910866fb | [] | no_license | shashankseth01/E-yantra | 58d42dce90667ca37f31f2cf111ee98c39468617 | 23432e058fce7733bd1a8399fd6edc20967fa6a3 | refs/heads/main | 2023-02-04T00:36:57.230996 | 2020-12-21T09:55:23 | 2020-12-21T09:55:23 | 316,716,460 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | from ._ContactState import *
from ._ContactsState import *
from ._LinkState import *
from ._LinkStates import *
from ._ModelState import *
from ._ModelStates import *
from ._ODEJointProperties import *
from ._ODEPhysics import *
from ._PerformanceMetrics import *
from ._SensorPerformanceMetric import *
from ._WorldStat... | [
"shashankseth3@gmail.com"
] | shashankseth3@gmail.com |
10490b9ff70103aa022ed33932b495651cb201a2 | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/product_expiry/models/res_config_settings.py | bb565c5634684410c9050cdcfa2e92b50448e732 | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 805 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
group_expiry_date_on_delivery_slip = fields.Boolean("Display Expiration Dates on Delivery S... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
b42b08b077fa5f07be17142c64e5da605c941cac | 4f739035fb8a75ae188cf968ecdedd8b24ff0077 | /app.py | 6c431a87c0e26c736e538690e1a9cf9de1a0ffde | [] | no_license | michael-basweti/gui_python | 801c63868786480afeaa710a92f0bcb46839d8eb | 3ddaba6b2fa96e1e16b52344e24cdb680adbbd64 | refs/heads/master | 2023-05-05T14:51:01.699940 | 2021-05-23T05:40:47 | 2021-05-23T05:40:47 | 369,889,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | from tkinter import *
from tkinter import filedialog, Text
import os
root = Tk()
apps = []
if os.path.isfile('save.txt'):
with open('save.txt', 'r') as f:
tempApps = f.read()
tempApps = tempApps.split(',')
apps = [x for x in tempApps if x.strip()]
def addApp():
# for widget in frame... | [
"baswetima@gmail.com"
] | baswetima@gmail.com |
3168882bb99ebe99505ac2d2091f21e5ed14ab1d | 3102ded71d5329cf766f17d86c2020d3cfe1bfa2 | /bindings/pydrake/visualization/BUILD.bazel | dc1983e1af19eaef44fb4aa82c73a59b38a75d03 | [
"BSD-3-Clause"
] | permissive | mposa/drake | 14af4ddfbd6a791f2aea7b85ad2b60a7c84f76b8 | 6a9a53da41c35903c24cdf4b29e5e99f71e0a1e9 | refs/heads/master | 2022-05-01T17:28:07.688899 | 2019-08-12T14:15:16 | 2019-08-12T14:15:16 | 16,321,603 | 1 | 2 | NOASSERTION | 2022-03-12T18:45:55 | 2014-01-28T18:42:31 | C++ | UTF-8 | Python | false | false | 1,431 | bazel | # -*- python -*-
load("@drake//tools/install:install.bzl", "install")
load(
"@drake//tools/skylark:pybind.bzl",
"get_pybind_package_info",
)
load(
"@drake//tools/skylark:drake_py.bzl",
"drake_py_library",
"drake_py_unittest",
)
load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake")
packa... | [
"eric.cousineau@tri.global"
] | eric.cousineau@tri.global |
9b071763c2ce0c8127fb7c653060fd66816482f8 | 4369c5a214f8c4fb1f8a286f72d57cfa9c3f02c7 | /geotrek/signage/migrations/0017_auto_20200708_1455.py | c969809965a767b24973692e03983268e3c69eae | [
"BSD-2-Clause"
] | permissive | GeotrekCE/Geotrek-admin | c13d251066e92359c26f22d185b8bd2e26e622ef | a91b75261a876be51ad2a693618629900bea6003 | refs/heads/master | 2023-08-21T12:45:25.586551 | 2023-08-09T12:28:33 | 2023-08-09T12:28:33 | 9,886,107 | 71 | 56 | BSD-2-Clause | 2023-09-13T09:40:33 | 2013-05-06T12:17:21 | Python | UTF-8 | Python | false | false | 471 | py | # Generated by Django 2.2.14 on 2020-07-08 14:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('signage', '0016_auto_20200512_0805'),
]
operations = [
migrations.AlterField(
model_name='line',
name='distance',
... | [
"gael.utard@makina-corpus.com"
] | gael.utard@makina-corpus.com |
cbb29df3547e8d49be3c4c2f39cb8c159ee357d4 | 14373275670c1f3065ce9ae195df142146e2c1a4 | /stubs/Pygments/pygments/formatter.pyi | f13948978eb4a85dfd1f37cdeaaf90b6bd1a5a88 | [
"Apache-2.0",
"MIT"
] | permissive | sobolevn/typeshed | eb7af17c06a9722f23c337e6b9a4726223155d58 | d63a82640390a9c130e0fe7d409e8b0b836b7c31 | refs/heads/master | 2023-08-04T05:59:29.447015 | 2023-06-14T21:27:53 | 2023-06-14T21:27:53 | 216,265,622 | 2 | 0 | Apache-2.0 | 2022-02-08T10:40:53 | 2019-10-19T20:21:25 | Python | UTF-8 | Python | false | false | 739 | pyi | from typing import Any, Generic, TypeVar, overload
_T = TypeVar("_T", str, bytes)
class Formatter(Generic[_T]):
name: Any
aliases: Any
filenames: Any
unicodeoutput: bool
style: Any
full: Any
title: Any
encoding: Any
options: Any
@overload
def __init__(self: Formatter[str], ... | [
"noreply@github.com"
] | sobolevn.noreply@github.com |
1d01bf2d3246721d4f77af33bd5e986585dcb71a | 98d9305b1717642bcfb842eecd84d63b6eeaf759 | /Funtions/Passing a List.py | c83609bef88932350d61df4cfea7ef0d42f96c31 | [] | no_license | er-aditi/Learning-Python | 5ceb020f4df8db9e34df78edfaecca3e1854c8a9 | 297eda435ee2e1cee643f94ea4c5de6a82e3c8a7 | refs/heads/master | 2020-03-24T17:22:22.129081 | 2019-06-19T05:47:26 | 2019-06-19T05:47:26 | 142,856,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | def greet_user(names):
for name in names:
print("Hello, " + name)
var = ['aditi', 'vine', 'manya']
greet_user(var)
| [
"aditijainnoida85@gmail.com"
] | aditijainnoida85@gmail.com |
b8c018c8caf1252220d80fabd070c7dbab5fe172 | cb36dcd1d77fa30b0651145a04fd998274eee4b7 | /NLP275_extract_new_word_from_weibo.py | 347f24f978a0b562bc283c392d6d5a7139f6146e | [] | no_license | shidoutsuruya/NLP | e5ff377406daafd4831cde81fcfb2008fb0207fe | 8b89403894a5943590a812b83e8b7b7ad4eec77a | refs/heads/master | 2023-07-18T03:18:47.755791 | 2021-09-02T13:04:38 | 2021-09-02T13:04:38 | 402,415,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from pyhanlp import *
import os
WEIBO_PATH=r'C:\Users\max21\Desktop\Python\NLP\weibo-classification'
for folder in os.listdir(WEIBO_PATH):
big_text = ""
print(folder)
for file in os.listdir(os.path.join(WEIBO_PATH, folder)):
with open(os.path.join(WEIBO_PATH, folder, file),encoding='utf-8') as sr... | [
"shidoutsuruya@gmail.com"
] | shidoutsuruya@gmail.com |
e8d01b7552856f6c4198a8682dd2d18ba97ad2a9 | 0c0168a4676bce7453836a7509e7133044aa8975 | /byceps/blueprints/common/locale/views.py | 74728d706fcd17da0188334140c4d6bd1f32259d | [
"BSD-3-Clause"
] | permissive | byceps/byceps | 0aad3c4d974f76c6f8c3674d5539a80c9107b97a | eaee2b7fdc08c76c16ddf7f436110e0b5f1812e5 | refs/heads/main | 2023-09-01T04:03:13.365687 | 2023-09-01T03:28:18 | 2023-09-01T03:28:18 | 40,150,239 | 44 | 23 | BSD-3-Clause | 2023-05-16T18:41:32 | 2015-08-03T22:05:23 | Python | UTF-8 | Python | false | false | 540 | py | """
byceps.blueprints.common.locale.views
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2014-2023 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from flask import redirect, request
from byceps.util import user_session
from byceps.util.framework.blueprint import create_blueprint
... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
39c7fcbf573cddea98ee027b648903c753171a1f | 67d8173a716da10a7350213d98938aae9f2115ce | /LeetCode/LC_PY_ANSWERS/construct-string-from-binary-tree.py | f09ca895b9128266827211d82370fdee20892605 | [
"MIT"
] | permissive | jxie0755/Learning_Python | 94490d41bdf93acf8396f843328e38b6da310b0f | 143422321cbc3715ca08f6c3af8f960a55887ced | refs/heads/master | 2021-11-02T22:47:35.790239 | 2021-09-26T04:26:23 | 2021-09-26T04:26:23 | 101,445,132 | 0 | 2 | null | 2019-02-19T15:48:44 | 2017-08-25T22:00:16 | Python | UTF-8 | Python | false | false | 371 | py | # Time: O(n)
# Space: O(h)
class Solution(object):
def tree2str(self, t):
"""
:type t: TreeNode
:rtype: str
"""
if not t: return ""
s = str(t.val)
if t.left or t.right:
s += "(" + self.tree2str(t.left) + ")"
if t.right:
s += "... | [
"30805062+jxie0755@users.noreply.github.com"
] | 30805062+jxie0755@users.noreply.github.com |
2f687f534eebcee486b77587d7c7134ba0fa4087 | a5688a923c488414ecffcb92e3405d3876f1889d | /examples/computer_vision/mmdetection_pytorch/configs/libra_rcnn/libra_faster_rcnn_r101_fpn_1x_coco.py | e43ac2cf447a53ecdaaa2b755ff68fec4d5e7e41 | [
"Apache-2.0"
] | permissive | armandmcqueen/determined | ae6e7a4d5d8c3fb6a404ed35519643cf33bd08e4 | 251e7093b60a92633b684586ac7a566379442f15 | refs/heads/master | 2023-05-28T17:52:18.915710 | 2021-06-09T23:55:59 | 2021-06-09T23:55:59 | 259,449,481 | 0 | 0 | Apache-2.0 | 2021-04-09T12:13:11 | 2020-04-27T20:47:23 | Go | UTF-8 | Python | false | false | 127 | py | _base_ = "./libra_faster_rcnn_r50_fpn_1x_coco.py"
model = dict(pretrained="torchvision://resnet101", backbone=dict(depth=101))
| [
"noreply@github.com"
] | armandmcqueen.noreply@github.com |
ac2890381ba2699ef88465479584ccbbf167106b | d93159d0784fc489a5066d3ee592e6c9563b228b | /RecoEgamma/ElectronIdentification/python/Identification/cutBasedElectronID_CSA14_50ns_V1_cff.py | f3b695dedb71c577db6db1eed1720bb255e79528 | [] | permissive | simonecid/cmssw | 86396e31d41a003a179690f8c322e82e250e33b2 | 2559fdc9545b2c7e337f5113b231025106dd22ab | refs/heads/CAallInOne_81X | 2021-08-15T23:25:02.901905 | 2016-09-13T08:10:20 | 2016-09-13T08:53:42 | 176,462,898 | 0 | 1 | Apache-2.0 | 2019-03-19T08:30:28 | 2019-03-19T08:30:24 | null | UTF-8 | Python | false | false | 22,274 | py | import FWCore.ParameterSet.Config as cms
from PhysicsTools.SelectorUtils.centralIDRegistry import central_id_registry
ebCutOff = 1.479
#
# The ID cuts below are optimized IDs for CSA14 Scenario 1 (50ns, with misalignment)
# The cut values are taken from the twiki:
# https://twiki.cern.ch/twiki/bin/view/CMS/Cut... | [
"lindsey.gray@gmail.com"
] | lindsey.gray@gmail.com |
e00bf8c83cd16a9b3dd4f6dab9a0f70dec6bc18d | ad7b3e4af4a8d9a3956f3b1811c65696b243b57d | /tests/test_snapshot.py | d30adbffb4e76ab078202cd78550c3772568756b | [] | no_license | keecome/pyecharts-snapshot | a343657389987781b6384080dcfeb709f2c46f4b | 18eedfb578ec4a6551dddc3237bf7a31b7c90f48 | refs/heads/master | 2020-03-07T12:38:14.701808 | 2018-03-26T17:00:18 | 2018-03-26T17:00:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,433 | py | import os
import sys
import codecs
import filecmp
from io import BytesIO
from mock import patch
from nose.tools import raises, eq_
from platform import python_implementation
from pyecharts_snapshot.main import main, make_a_snapshot, PY2
from pyecharts_snapshot.main import save_as_svg
PY27 = sys.version_info[1] == 7 a... | [
"wangc_2011@hotmail.com"
] | wangc_2011@hotmail.com |
0be688dd81a8a33bcada54b4532a4749b19c2623 | 0659bf3ea0b4560074345ad29fe7cae549a8d029 | /May20B_Covid19.py | b2087c70fc2241a822944d041bbaa5aed54afc92 | [] | no_license | alankrit03/Problem_Solving | a63df4fc10c3b318341a3e37fef7fe1256c4b688 | 9964e2fbe97d08aa1647b2d64412607039b5bffb | refs/heads/master | 2021-01-08T17:28:17.984540 | 2020-08-07T06:14:17 | 2020-08-07T06:14:17 | 242,094,556 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | for _ in range(int(input())):
n = int(input())
arr = input().split()
for i in range(n):
arr[i] = int(arr[i])
best = n
worst = curr = 1
for i in range(1, n):
if arr[i]-arr[i-1] <= 2:
curr += 1
else:
worst = max(curr, worst)
best = m... | [
"alankritagarwal9@gmail.com"
] | alankritagarwal9@gmail.com |
cad27d051f4f12927e8a1fddd0e3de110ab1f54f | 8a28b1c84f5526c29ffe91fbcaf3ec5b954024b4 | /src/graphql/version.py | 028e009236e79f0b1610e9c5afcdfe69f55796cc | [
"MIT"
] | permissive | jzskca/graphql-core | aebe92b64fcf68a01f2da327034d9c5bbdccf62d | 47a1651c928256d27b30d96ffd0d18c335c405b3 | refs/heads/main | 2023-08-16T18:40:14.619285 | 2021-09-14T10:59:14 | 2021-09-14T11:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | import re
from typing import NamedTuple
__all__ = ["version", "version_info", "version_js", "version_info_js"]
version = "3.2.0a0"
version_js = "16.0.0a0"
_re_version = re.compile(r"(\d+)\.(\d+)\.(\d+)(\D*)(\d*)")
class VersionInfo(NamedTuple):
major: int
minor: int
micro: int
releaselevel: str
... | [
"cito@online.de"
] | cito@online.de |
d0b5ecc37584f64f7bbfe1a4ad3577136ccc3b12 | d53329bcb736f417e934c4ddc917e6916b8b10ed | /QUALITY_CONTROL/boxplot_dti_movement.py | d4247ba0e2c72d3f5732986d9ee84d96fa52f4e7 | [] | no_license | edolele/DTI_PROCESSING | 7988f8b2297841254aed37257011cae42b0e32b6 | ca5919a816d48670eb2d9a05af5eb1e4bd5440cb | refs/heads/master | 2020-04-16T10:25:02.410569 | 2020-01-07T03:30:37 | 2020-01-07T03:30:37 | 165,504,812 | 0 | 0 | null | 2019-01-13T12:52:14 | 2019-01-13T12:52:14 | null | UTF-8 | Python | false | false | 4,595 | py | #!/usr/bin/env python
def boxplot_dti_movement(subs_df, figure_name):
'''
Create a boxplot showing the 6 different ways of calculating
displacement for dti scans. Label the outliers with their subid.
'''
#===============================================================
# IMPORTS
#-----------... | [
"kw401@cam.ac.uk"
] | kw401@cam.ac.uk |
ccd3119e5321f6435b3367793b1ec0483ace1081 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/577369_Script_parsaber_caliddel_aire_Santiago_de/recipe-577369.py | e6619177704f54a932192f549ac3868edded92be | [
"GPL-2.0-or-later",
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 2,574 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# aire.py
#
# Copyright 2010 Javier Rovegno Campos <tatadeluxe<at>gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the ... | [
"betty@qburst.com"
] | betty@qburst.com |
3ac3703e80dcc66fe1f4a37007b712fd887a5267 | df30cf9f8ae3dbe57e19f29527163fddd1ee8e3c | /.history/section4/pp_01_20200730232805.py | f89d59a4f97aae92c7660eaad2f523f19d707191 | [
"MIT"
] | permissive | KustomApe/python_engineer | d938b5b687a12a9e69341ef72a291b7084c1e1ce | cb931f5c685be87ea518c7a0a6dd89154dce03a8 | refs/heads/master | 2022-11-26T07:37:26.216587 | 2020-07-30T23:50:00 | 2020-07-30T23:50:00 | 280,748,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | s = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
print(s[0])
s[0] = 'X'
print(s[2:5])
| [
"kustomape@gmail.com"
] | kustomape@gmail.com |
5aea585af7aae0ff19fdb8bcee55f3ee4a091862 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/ocr/satrn/pytorch/base/models/convertors/attn.py | a92139f66351e29ef5d0ea61783a77c54b24fecd | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 5,200 | py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
import basic_utils as utils
from models.builder import CONVERTORS
from .base import BaseConvertor
@CONVERTORS.register_module()
class AttnConvertor(BaseConvertor):
"""Convert between text, index and tensor for encoder-decoder based
pipeline.
A... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
f80c650d58e9de516fad5a0a5e24aec46c3a8f61 | 85cd4a9d4105f20247a998c16039e13005f060bd | /webapp/archive_management/CategoryManagementForms.py | 9c8236ff8ae58d712db7a390745accb07a774ae2 | [] | no_license | gigamen/mein-stadtarchiv | 06c3a9b7cfa18e04e7c87ac19db3b2148ed5ea5f | 3eb7d8c19f3c777136e9203afffcd123aa59a777 | refs/heads/master | 2022-06-09T05:05:51.539257 | 2020-05-08T15:41:39 | 2020-05-08T15:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,883 | py | # encoding: utf-8
"""
Copyright (c) 2017, Ernesto Ruge
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions an... | [
"mail@ernestoruge.de"
] | mail@ernestoruge.de |
bb875f3e530198336ae5168258e17fe523feadea | ea2cf796332879d86561f80882da93b672966448 | /configs/rotated_fcos/rotated_fcos_sep_angle_r50_adamw_fpn_3x_dota_le90.py | 3fc51cfc5d5e25d895c76490d24851d687bfe475 | [
"Apache-2.0"
] | permissive | yangxue0827/h2rbox-mmrotate | 968c34adf22eca073ab147b670226884ea80ac61 | cfd7f1fef6ae4d4e17cb891d1ec144ece8b5d7f5 | refs/heads/main | 2023-05-23T10:02:58.344148 | 2023-02-14T05:28:38 | 2023-02-14T05:28:38 | 501,580,810 | 68 | 8 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | _base_ = [
'./rotated_fcos_sep_angle_r50_fpn_3x_dota_le90.py'
]
optimizer = dict(
_delete_=True,
type='AdamW',
lr=0.0001,
betas=(0.9, 0.999),
weight_decay=0.05,
paramwise_cfg=dict(
custom_keys={
'absolute_pos_embed': dict(decay_mult=0.),
'relative_position_bi... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
ae8955c6b69c4a732c7d06d91cde39781ad21fad | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB.py | 5977e80c2242e4092add74785165e4746f23c0aa | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 182,614 | py | #
# PySNMP MIB module JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-MOBILE-GATEWAY-SGW-GTP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:49:30 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
9a1f43fb44d3bda90e3d75593bf30da01484de2d | 5844d61fc4e9fe70a6936e9d0d6bb4bc4f84465c | /phy/cluster/session.py | 2a1b9cc141fcaa71d74f9d8cdf821e8f6ed4a4f8 | [] | no_license | danieljdenman/phy | 4f57c910020e3839432cf56e5ed817bf7b997e8e | 9ba3a00d12b6b72856f1420ed977586d8a8f7d31 | refs/heads/master | 2021-01-22T15:35:47.522407 | 2015-06-25T15:40:41 | 2015-06-25T15:40:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,981 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
"""Session structure."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import os.path as op
import shutil
from ..utils.logging im... | [
"cyrille.rossant@gmail.com"
] | cyrille.rossant@gmail.com |
d01c8d3c9f2dd57d2c01e75138b2faa4042fe810 | 5261e3c72259991fbdb9737c4c764eb0686860d3 | /packages/fetchai/skills/tac_negotiation/__init__.py | 3abaa1fbeb2e645d69fff0a81de81da9a01ceb26 | [
"Apache-2.0"
] | permissive | eorituz/agents-aea | 45dfb9729718421290c71da91ac4c51f9cc6a608 | 197451196728141a27ec73fd8210c05cb74501f7 | refs/heads/main | 2023-03-24T02:40:27.132664 | 2021-03-23T14:42:58 | 2021-03-23T14:42:58 | 350,744,268 | 0 | 0 | Apache-2.0 | 2021-03-23T14:40:13 | 2021-03-23T14:32:29 | null | UTF-8 | Python | false | false | 984 | py | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI 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 ... | [
"david.minarsch@googlemail.com"
] | david.minarsch@googlemail.com |
4555d45b06807a86914ec895ca575d1fc16825bb | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_178/run_cfg.py | e24128b305fb349b189191d5de5e0f1227d0f60f | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
337ce49eaf96057f01a2da21bae7cf54c6b782f1 | 61e98b0302a43ab685be4c255b4ecf2979db55b6 | /sdks/python/.tox/lint/lib/python2.7/site-packages/pylint/test/input/func_e0203.py | d86f47985870c2d8ea1c16a9a0a60ba56e95480e | [
"Apache-2.0",
"BSD-3-Clause",
"EPL-2.0",
"CDDL-1.0",
"WTFPL",
"GPL-2.0-only",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.1",
"Classpath-exception-2.0"
] | permissive | dzenyu/kafka | 5631c05a6de6e288baeb8955bdddf2ff60ec2a0e | d69a24bce8d108f43376271f89ecc3b81c7b6622 | refs/heads/master | 2021-07-16T12:31:09.623509 | 2021-06-28T18:22:16 | 2021-06-28T18:22:16 | 198,724,535 | 0 | 0 | Apache-2.0 | 2019-07-24T23:51:47 | 2019-07-24T23:51:46 | null | UTF-8 | Python | false | false | 357 | py | """check for method without self as first argument
"""
from __future__ import print_function
__revision__ = 0
class Abcd(object):
"""dummy class"""
def __init__(self):
pass
def abcd(yoo):
"""another test"""
abcd = classmethod(abcd)
def edf(self):
"""justo ne more method"... | [
"alex.barreto@databricks.com"
] | alex.barreto@databricks.com |
16d058aa0028a6c4fd3411cd96e45477dac716c3 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_268/ch9_2020_03_02_13_35_25_598470.py | 7553a89292937b1f5a31b4d1867b88140ea08bce | [] | 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 | 94 | py | import math
def calcula_volume_da_esfera(r):
y= (4 * math.pi * r *** 3)/3
return y
| [
"you@example.com"
] | you@example.com |
9ff213b13c5b904838422b03711a0a905abb0234 | 8311a0bcf3f2126d622f928483ce2ea9d6a7cb0d | /Code/Matthew/django/mysite/users/views.py | 5df023f1fe0f62845e78d9ccb608ef1d20b79ae9 | [] | no_license | guam68/class_iguana | 857247dca0ff732d11f7fb0d3dc761ec83846c94 | e4359d32dfe60423a643c21df5636669016ad2c0 | refs/heads/master | 2020-05-01T06:33:22.611127 | 2019-03-13T23:07:41 | 2019-03-13T23:07:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | from django.shortcuts import render, reverse
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
def index(request):
next = request.GET.get('next'... | [
"flux2341@gmail.com"
] | flux2341@gmail.com |
9219fe98d551a0056dab15a78a1827aa5afc3486 | 24f2deae78a3f5fa8b5b3a53baff5637e0ea80ff | /sinoera/tst/sinozodiac/test_roosterdeepthinkers.py | 2f9e0e61b734607d7e5e7a0ae2b94ef5d583bbc2 | [
"Apache-2.0"
] | permissive | sinotradition/sinoera | 02b979a7dbca81594eed8862fa86671856b91e2e | 1e93482c0a56a8917bc7ceebeef5b63b24ca3651 | refs/heads/master | 2021-01-10T03:20:20.231752 | 2015-12-14T15:13:42 | 2015-12-14T15:13:42 | 47,981,945 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #!/usr/bin/python
#coding=utf-8
'''This is test module
@author: sheng
@contact: sinotradition@gmail.com
@copyright: License according to the project license.
'''
import unittest
from sinoera.sinozodiac import roosterdeepthinkers
TestRoosterdeepthinkersFunctions(unittest.TestCase):
def setUp(self):
pass... | [
"smlh.sheng@gmail.com"
] | smlh.sheng@gmail.com |
e08f654c92d9ae91d28858d6a24761dca2348165 | b1d022e0a8a9c54e0f5cff422403f7166a7813dc | /backend/jovio_15509/wsgi.py | e78b0ef4f0af3ce2992c10be92e62fdcaf28667e | [] | no_license | crowdbotics-apps/jovio-15509 | 1260ec6068be367c02f4012d4eb56f347c104dfe | 9803622d73f98843d4df2e788339a70425fea632 | refs/heads/master | 2023-01-24T23:25:26.867975 | 2020-04-06T15:41:51 | 2020-04-06T15:41:51 | 253,542,305 | 0 | 0 | null | 2023-01-24T01:56:36 | 2020-04-06T15:40:32 | JavaScript | UTF-8 | Python | false | false | 399 | py | """
WSGI config for jovio_15509 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.