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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f0419366d770abc9585bc6c697d5ec7c3484d0b | 000a4b227d970cdc6c8db192f4437698cb782721 | /python/helpers/typeshed/stubs/pytz/pytz/tzinfo.pyi | c2c68526870de2234b2bef2a4957d2805ca999af | [
"Apache-2.0",
"MIT"
] | permissive | trinhanhngoc/intellij-community | 2eb2f66a2a3a9456e7a0c5e7be1eaba03c38815d | 1d4a962cfda308a73e0a7ef75186aaa4b15d1e17 | refs/heads/master | 2022-11-03T21:50:47.859675 | 2022-10-19T16:39:57 | 2022-10-19T23:25:35 | 205,765,945 | 1 | 0 | Apache-2.0 | 2019-09-02T02:55:15 | 2019-09-02T02:55:15 | null | UTF-8 | Python | false | false | 2,045 | pyi | import datetime
from abc import abstractmethod
from typing import Any
class BaseTzInfo(datetime.tzinfo):
zone: str | None # Actually None but should be set on concrete subclasses
# The following abstract methods don't exist in the implementation, but
# are implemented by all sub-classes.
@abstractmeth... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
02753e92896aace5a8746356bcdc3beaf50d75d0 | 255e90b6e98753c1b7530279064a9cf5da1a6866 | /tests/migrations/0003_radiology_lab_name.py | 7fd80843e89a480259326bde399b61a4a0ecdc38 | [] | no_license | MindSparkTm/clinicmanagement | 31b5f66552da3cf51f900e2fd8a75c6e8228c56c | 5c327126af75d342890645ead7dd835ef45111f7 | refs/heads/master | 2020-03-31T22:18:14.201928 | 2018-05-07T10:45:56 | 2018-05-07T10:45:56 | 152,613,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-04-30 10:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tests', '0002_auto_20180301_2340'),
]
operations = [
migrations.AddField(
... | [
"smartsurajit2008@gmail.com"
] | smartsurajit2008@gmail.com |
872419719c7dbbacb98e8fe230dda1d95c9a3bb5 | effab126713f246b35f43da6e24060fb5dbf7335 | /dpxdt/server/utils.py | 965851c3ad359459aff494c7ace9ec690aa87908 | [
"Apache-2.0"
] | permissive | jujugrrr/dpxdt | 0a4552a2a87739e972960016881a36b6cd31648d | ee579f6027d0349e971a3eab070dad5756c54dcd | refs/heads/master | 2021-01-23T20:38:32.729314 | 2013-07-01T05:38:24 | 2013-07-01T05:38:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | #!/usr/bin/env python
# Copyright 2013 Brett Slatkin
#
# 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 o... | [
"brett@haxor.com"
] | brett@haxor.com |
fe07dd098da9c672cc8538933b82862e8803d26b | 5cee94279b59f56c39987b94d4a85ca8a4f6966d | /app/asset/urls.py | 0a25a3c193a2987565c8e0ea2c27cd6c82ca1265 | [
"MIT"
] | permissive | S3Infosoft/s3-dam | 19c10965dfb17d20c08f0e78b3b096febd646a96 | 67488be012d42cf5826350bff218db2bde70c5e5 | refs/heads/master | 2021-05-18T03:53:35.365250 | 2020-05-14T13:34:02 | 2020-05-14T13:34:02 | 251,092,565 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | from django.urls import path
from . import views
urlpatterns = [
path("uploadPhoto", views.uploadPhoto, name="uploadPhoto"),
path("uploadDocument/", views.uploadDocument, name="uploadDocument"),
path("viewDocument/", views.viewDocument, name="viewDocument"),
]
| [
"itssvinayak@gmail.com"
] | itssvinayak@gmail.com |
f9b1b694244da3da3ffd59310e2ccfbf529dcd42 | 497e25618ccb09b6f237bb99400d1595d86e15ab | /src/12_ItemSetsGenerator.py | 6d595fbcc263d9b28b8df68fd1bce336abd6f64b | [
"CC-BY-4.0"
] | permissive | curation-library-t/dataset2 | dec966efb8b7ba1f2f94c69a293c6272df8ebcd5 | 681bd425a34d5ca04888e1c1bceefdf69008365d | refs/heads/master | 2021-01-03T10:03:43.702735 | 2020-03-10T04:03:25 | 2020-03-10T04:03:25 | 240,017,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import sys
import urllib
import json
import argparse
import urllib.request
import os
import yaml
import shutil
dir = "../docs/omeka/item_sets"
if os.path.exists(dir):
shutil.rmtree(dir)
os.makedirs(dir, exist_ok=True)
def item_sets_generator():
f = open("settings.yml", "r+")
data = yaml.load(f)
api_u... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
130b47b6f853783598aaa0f501090f289177b6d9 | d2c229f74a3ca61d6a22f64de51215d9e30c5c11 | /test/python/circuit/library/test_permutation.py | bf4da582b6ad52f9dbf9fc95e2ab2575ecbaf4ea | [
"Apache-2.0"
] | permissive | 1ucian0/qiskit-terra | 90e8be8a7b392fbb4b3aa9784c641a818a180e4c | 0b51250e219ca303654fc28a318c21366584ccd3 | refs/heads/main | 2023-08-31T07:50:33.568824 | 2023-08-22T01:52:53 | 2023-08-22T01:52:53 | 140,555,676 | 6 | 1 | Apache-2.0 | 2023-09-14T13:21:54 | 2018-07-11T09:52:28 | Python | UTF-8 | Python | false | false | 7,222 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | 1ucian0.noreply@github.com |
bd7b345b44537b935cb1c7c58541864a9bd03afd | f9ff85c981942d15c65d37de107e0c5fa5e6a2ba | /pychron/experiment/image_browser.py | b81d4c45f055dacb8347d04b5f6d48c148e91c72 | [
"Apache-2.0"
] | permissive | kenlchen/pychron | 0c729f1b1973b9883734007b7a318fe21669e6c1 | ffd988e27ae09fb3e8a8790d87ff611557911d07 | refs/heads/master | 2021-01-24T21:53:42.293554 | 2016-04-04T07:18:39 | 2016-04-04T07:18:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,888 | py | # ===============================================================================
# Copyright 2012 Jake Ross
#
# 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/licens... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
2a04439769c443bb7d6866e0bfea6b0721b05f7e | 8f1137592d670ce134821106f736e231b03ead87 | /tools/train.py | 21516fd5c10c33bf28186ffedadee978be1c9997 | [
"MIT"
] | permissive | mousecpn/DMC-Domain-Generalization-for-Underwater-Object-Detection | fa426c834fa2a5cd2fe98c50dd4dfeda64fcdc79 | 133797cfb7553557fb81a37e3c99c88154a13765 | refs/heads/master | 2023-05-23T16:49:34.795363 | 2023-02-13T02:23:31 | 2023-02-13T02:23:31 | 501,597,077 | 16 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,020 | py | # Copyright (c) OpenMMLab. All rights reserved.
import argparse
import copy
import os
import os.path as osp
import time
import warnings
import mmcv
import torch
from mmcv import Config, DictAction
from mmcv.runner import get_dist_info, init_dist
from mmcv.utils import get_git_hash
from mmdet import __version__
from m... | [
"609731730@qq.com"
] | 609731730@qq.com |
97113931b94c55421f7eaf0342e8779940eeaccc | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/model/distinguished_name.py | 9b1dc6bbb69cd65ec3602053c227ff83175ff3b8 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,640 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DistinguishedName:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6ec74b00beccb475fbc8db105e3048f59664ccac | df541a802b2dfa89d3aab14af627358dc7c76e6e | /接口自动化/Frame_relevance/main.py | e79ef2e1e37151445218b5da1d27c4a22b306a77 | [] | no_license | gupan2018/PyAutomation | de966aff91f750c7207c9d3f3dfb488698492342 | 230aebe3eca5799c621673afb647d35a175c74f1 | refs/heads/master | 2021-09-07T19:44:20.710574 | 2017-12-22T15:58:23 | 2017-12-22T15:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | __author__ = 'Administrator'
'''
根据添加项目--审核--注册--充值--投资,做一个完整的业务流程的自动化代码请求
'''
from Frame_relevance.database import Database
from Frame_relevance.runcase import Runcase
from Frame_relevance.HttpRequest import HttpRequest
path_background = "db_background.conf"
path_test_data = "test_data.conf"
path_http = "http.conf"... | [
"610077670@qq.com"
] | 610077670@qq.com |
4aaa44a645f108b0de973b6f7119085e4cfadb95 | 45da48ae0a87f4bb27409bfe2e947b29a2d4a0d0 | /znake/znake/test/test_tools.py | 314367afe4e3c68ddcd06ff272e50992230a2700 | [
"Apache-2.0"
] | permissive | per-bohlin/opensourcelib | 3923165982ae1b2c78602a3485684ded75c28c36 | e48427fd0b5d87ea21484e85d2575c8b8879b9a3 | refs/heads/master | 2020-05-21T21:34:15.112527 | 2019-05-11T16:57:58 | 2019-05-11T16:57:58 | 186,156,987 | 0 | 0 | NOASSERTION | 2019-05-11T16:34:39 | 2019-05-11T16:34:39 | null | UTF-8 | Python | false | false | 1,495 | py | from unittest import TestCase
from unittest.mock import Mock
from znake.tools import _render_isort, _render_yapf, render_flake8_check, render_pydocstyle_check
class TestToolsRenderCommandLine(TestCase):
@staticmethod
def get_ctx(tool):
ctx = Mock()
ctx.znake.static.packages = ['my_package', ... | [
"per.bohlin@zenterio.com"
] | per.bohlin@zenterio.com |
a704c7629480555065e3767614ff66caab4f1096 | bacabd549ca67204bd3ec22f0f9020a4287aa6c5 | /ui/dispatcher_tab.py | 87144b13fd78c80105599462550a5804ad38e78a | [] | no_license | gladiopeace/csc-manager-ui | 5b8b642695742e906c779bbb18759084ed4791a9 | ec7660b91aed0f8512183b147cb49994c925bc41 | refs/heads/master | 2023-06-26T17:22:31.434146 | 2021-07-23T13:32:33 | 2021-07-23T13:32:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | import logging
import tkinter
class DispatcherTab(tkinter.Frame):
def __init__(self, parent, in_callback=None, out_callback=None):
self.logger = logging.getLogger(f'{self.__class__.__name__}', )
self.parent = parent
self.in_callback = in_callback
self.out_callback = out_callback
... | [
"bohdan.shlikhutka@gmail.com"
] | bohdan.shlikhutka@gmail.com |
fa9a485adbdcf00e88ce9e816a00db9e0b6e9d2a | bdb1c323968cd9d5441a187a29ed7e25a2e4f07e | /cp0/people/management/commands/UPdate.py | e42d81d517445ea10d217cff37e1280e3c12f9e1 | [] | no_license | liangzhaowang/automation_system | beee351dd9f09a51e2b81617ac5bee63023ea9b8 | f77ef433c2366253dc9d9fdb7c54911cb38ed3e8 | refs/heads/master | 2022-02-19T11:07:44.047000 | 2019-09-23T02:16:00 | 2019-09-23T02:16:00 | 209,732,359 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,650 | py | from django.core.management.base import BaseCommand
import json
import time
from people.models import bxtp_m
from people.models import bxtp_o
from Patches import Patches
from people.models import bkc_m
from people.models import bkc_o
from data.models import Task
class Command(BaseCommand):
def handle(self,*args,... | [
"zhaowangx.liang@intel.com"
] | zhaowangx.liang@intel.com |
58204fab93085a4af72d6ba4ffef814213fd27a0 | a9243f735f6bb113b18aa939898a97725c358a6d | /0.14/_downloads/plot_decoding_time_generalization_conditions.py | 98b29ed251d7f7287579cc2c0e3049cdb118be34 | [] | permissive | massich/mne-tools.github.io | 9eaf5edccb4c35831400b03278bb8c2321774ef2 | 95650593ba0eca4ff8257ebcbdf05731038d8d4e | refs/heads/master | 2020-04-07T08:55:46.850530 | 2019-09-24T12:26:02 | 2019-09-24T12:26:02 | 158,233,630 | 0 | 0 | BSD-3-Clause | 2018-11-19T14:06:16 | 2018-11-19T14:06:16 | null | UTF-8 | Python | false | false | 2,991 | py | """
=========================================================================
Decoding sensor space data with generalization across time and conditions
=========================================================================
This example runs the analysis described in [1]_. It illustrates how one can
fit a linear cla... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
05c2a6863ff170102ac029bc54b72165cc024208 | f66b8a4d5d2f9f9faeb23a2bbbf6524ec49b2051 | /surreal/__init__.py | 2d52593edffe3efb913070aa7a4219fbe7fb3203 | [
"Apache-2.0"
] | permissive | ducandu/surreal | 237f4188ba270bab7495cb782ed10ee463fe78a7 | 8abfb18538340d50146c9c44f5ecb8a1e7d89ac3 | refs/heads/master | 2020-08-01T14:10:00.327798 | 2019-11-09T15:32:13 | 2019-11-09T15:32:13 | 211,018,247 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | # Copyright 2019 ducandu GmbH. 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... | [
"svenmika1977@gmail.com"
] | svenmika1977@gmail.com |
0adbdd2bd8d43634f5c96ccc4a3c8740c82a3216 | de4da7c45581f72adaf8e328a89cb3d57fe3613f | /appengine/olamundo/sorteio.py | a6f9e22632289da4d7a3116e0e402b2005a1840c | [] | no_license | ramalho/propython | 2469be7492554762d05f9b0ce5c0dc3a51bd3a18 | 76c2b52755e08d49929cdc2a523db72735240e72 | refs/heads/master | 2022-06-01T22:51:07.659074 | 2022-05-22T18:22:21 | 2022-05-22T18:22:21 | 140,458 | 39 | 13 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | # coding: utf-8
from random import shuffle
def parear(nomes, embaralhar=True):
u'''Dada uma lista de nomes, garar uma lista de pares ordenados
de nomes, onde:
- cada nome aparece uma vez e apenas uma vez em cada posição
- se existe um par a, b, não existirá o par b, a
... | [
"luciano@ramalho.org"
] | luciano@ramalho.org |
c79903a6216c94eb3633b54c28d4bdfc5e67a99e | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/pass_through.py | cc1d267d32fd0971958e46cfd6e27da2af5628b2 | [
"LGPL-2.0-or-later",
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-only",
"MIT",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | Python | false | false | 1,318 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from common.chrome_proxy_shared_page_state import ChromeProxySharedPageState
from telemetry.page import page as page_module
from telemetry import story
clas... | [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com |
e056bd156b04aa2a41d8cfda5e58af59dbed6b8c | 4c514345b4759ed4d17f48565ae66dbd7313a0e8 | /database/match_query.py | 5e7c6e4ee818c1e183fa2b609979a449e1133e02 | [
"MIT"
] | permissive | csteward24/the-blue-alliance | a6f193176b5c3f3eadb73126d14d06ce299c4185 | cb3c5ce9078983306e6c83067ae62f5848ffe290 | refs/heads/master | 2020-12-11T05:45:15.029275 | 2016-03-11T19:49:32 | 2016-03-11T19:49:32 | 53,530,477 | 1 | 0 | null | 2016-03-09T20:45:46 | 2016-03-09T20:45:46 | null | UTF-8 | Python | false | false | 1,616 | py | from google.appengine.ext import ndb
from database.database_query import DatabaseQuery
from models.event import Event
from models.match import Match
class EventMatchesQuery(DatabaseQuery):
CACHE_VERSION = 0
CACHE_KEY_FORMAT = 'event_matches_{}' # (event_key)
def __init__(self, event_key):
self.... | [
"fang.eugene@gmail.com"
] | fang.eugene@gmail.com |
d1bcad81775afd0fd7a676303cdc6244b674c149 | ddf7d8f996a0cf66b0e083e0557305b3be4619e5 | /AByteOfPython/Chapter_14/src/example02.py | 42b9837fde2feafcde3ea51705f6a6d1b6fdfbb7 | [] | no_license | archerImagine/myNewJunk | 8fab3e6ada03eee3aebb5c712d50bcfb38bf48b0 | 42fff352f6057f84ab8c81f1debc149881c1e49f | refs/heads/master | 2020-06-16T12:22:30.590672 | 2016-11-29T17:07:23 | 2016-11-29T17:07:23 | 75,103,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | s = raw_input("Enter Something -----> ") | [
"animeshbhadra@Animeshs-MacBook-Pro.local"
] | animeshbhadra@Animeshs-MacBook-Pro.local |
47489d28c2824bf881262a0cb690632b0f06a466 | 6eb56f2e3f14f2373be07fe95b1c6fedf1e2d49f | /month04/Django/my_django_test/my_test_site/my_test_site/wsgi.py | 6f99386c8bf33243c58777fcefe3b43edecaa629 | [
"Apache-2.0"
] | permissive | chaofan-zheng/python_leanring_code | fe22b0370cadebf7456477269aff4a35cef0eb41 | 0af44ff39b9ded2c1d2cc96c6d356d21170ac04d | refs/heads/main | 2023-02-28T07:56:46.457552 | 2021-02-10T15:08:33 | 2021-02-10T15:08:33 | 323,584,115 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for my_test_site 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_... | [
"417355570@qq.com"
] | 417355570@qq.com |
d70c588617cd936f303f45bd05a8f14dd95db981 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_05_02_preview/operations/_trusted_access_roles_operations.py | 63b63ca700ec5026c217f4203ddfdc330e525f96 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 7,294 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
52e6250f9fd41a90fb895ac16801170303863407 | 6be29c75fe23bf38ac2df4125242e767fb37d41c | /tests/parsers/sqlite_plugins/interface.py | c0f3af0d7986a8e2dc78f12799da84559dca1a96 | [
"Apache-2.0"
] | permissive | Laxman-SM/plaso | 579c7954b2622368427740e2b5687bf2efe249e7 | bec7b974ec9c2967be58fc704afca936591e46d3 | refs/heads/master | 2021-01-22T05:32:59.383909 | 2017-05-26T04:15:29 | 2017-05-26T04:15:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,497 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the SQLite plugin interface."""
import sys
import unittest
from plaso.containers import time_events
from plaso.lib import eventdata
from plaso.lib import timelib
from plaso.parsers import sqlite
from plaso.parsers.sqlite_plugins import interface
from tests impor... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
8e057d2ce2408c7882a9090ddf70294e23500b13 | 65a32b8a8a97c126843d2cfe79c43193ac2abc23 | /chapter16/fib_test_2.py | c722f4d40ff1ba55c39a6f1db4cb394a86e1710c | [] | no_license | zhuyuedlut/advanced_programming | 9af2d6144e247168e492ddfb9af5d4a5667227c4 | a6e0456dd0b216b96829b5c3cef11df706525867 | refs/heads/master | 2023-03-19T09:21:31.234000 | 2020-10-09T13:09:38 | 2020-10-09T13:09:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | def memoize(f):
memo = {}
def helper(x):
if x not in memo:
memo[x] = f(x)
return memo[x]
return helper
@memoize
def fib(n):
if n == 0:
return 0
elif n == 1:
return 1
else:
return fib(n-1) + fib(n-2)
def fib_seq(n):
res = []
if n > 0... | [
"root@lyzdeMacBook.local"
] | root@lyzdeMacBook.local |
efd270ebc5f0c2afb38079f40437d2b1cbb838fc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02711/s964630757.py | 7962511762d3bf1f82fb5eb8111eb4c6e5b884a7 | [] | 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 | 74 | py | n = list(input())
if n.count("7") == 0:
print("No")
else:
print("Yes") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
94f28c8e8785258f7272399beffdb289c6c802c0 | 035f7cbf8a16d2936b3df13c3966e954c6b6a13a | /lab/soc_module.py | e91f1b4bcb8ea1ab10d5cadb5d859c11f9bb6aed | [
"BSD-3-Clause"
] | permissive | 2i2c-org/utoronto-demo | 84d043b446f4c8ed5f5375175ac482deba8c2955 | 8e2cd4a9f04e3399bc2437e95975c80f5899cef1 | refs/heads/master | 2022-11-13T11:12:33.333581 | 2020-07-07T17:00:24 | 2020-07-07T17:00:24 | 277,604,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,475 | py | import pandas as pd
import os
import folium
import geojson
import random
import numpy as np
from sklearn import preprocessing
import re
from geopy.geocoders import Nominatim
import time
import certifi
import ssl
import geopy.geocoders
# ctx = ssl.create_default_context(cafile=certifi.where())
# geopy.geocoders.options... | [
"choldgraf@berkeley.edu"
] | choldgraf@berkeley.edu |
78c4520f26fc5a405e8b5516a71476aa9983b266 | 61f9c7094be028e040d1234f05ee6d7370c2206d | /pytext/models/decoders/mlp_decoder_n_tower.py | 6e2e0c6810eef0ce327e48063f8f785200ccca9b | [
"BSD-3-Clause"
] | permissive | timgates42/pytext | 3ce5473fecca5174108a4eb63209a3eecfb6d8dd | 5f2c3ca6c3ba56e1001e95825abd7ee295de1dff | refs/heads/main | 2023-03-15T07:33:21.217159 | 2022-07-11T16:06:16 | 2022-07-11T16:06:16 | 231,028,915 | 0 | 0 | NOASSERTION | 2019-12-31T05:04:01 | 2019-12-31T05:04:00 | null | UTF-8 | Python | false | false | 3,970 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import List
import torch
import torch.nn as nn
from pytext.config.module_config import Activation
from pytext.models.decoders.decoder_base import DecoderBase
from pytext.optimizer import get_activation
from pytex... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
fc685360c6f088991a9f5e70892e4903738146a2 | 7daab7f2e91d62ba0383fa050f3dea1dc9752975 | /iniciante/1146_sequencias_crescentes.py | aa039d4e407f490f21aa250399b04ce5be63f343 | [] | no_license | luandadantas/URI-Python | 97ccdaa3835b2d2fa403f148969ca7e893d3f119 | 2cb67f39725b20e6fcbbeaf27d04c4ba05dba665 | refs/heads/master | 2022-12-04T02:51:14.374361 | 2020-08-14T17:59:58 | 2020-08-14T17:59:58 | 255,736,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | while True:
X = int(input())
if X == 0:
break
for i in range(1, X):
print(i,end=" ")
print(X) | [
"ludanttas@gmail.com"
] | ludanttas@gmail.com |
3574d97da998084641fea6ef4eeadcf842506678 | 0682577346d5be6452f93e17cf06df70acb95135 | /src/bin2header.py | 4755e84c32cb3efc4ebf88c35ecbf0cdd727554f | [
"MIT"
] | permissive | cenit/bin2header | c8bf30cf371378a7f31c4eef37ffbe228fa41638 | 9860f292a0a109a1b999dd3cafe07fdb952a1e18 | refs/heads/dev/msvc | 2023-04-18T02:12:04.133748 | 2021-03-24T19:22:18 | 2021-03-24T20:59:12 | 340,431,411 | 0 | 0 | MIT | 2021-05-02T08:15:26 | 2021-02-19T16:47:07 | C++ | UTF-8 | Python | false | false | 3,545 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright © 2019 Jordan Irwin (AntumDeluge) <antumdeluge@gmail.com>
#
# This file is part of the bin2header project & is distributed under the
# terms of the MIT/X11 license. See: LICENSE.txt
import sys, os, array
if sys.version_info.major < 3:
print('\nERROR: Pytho... | [
"antumdeluge@gmail.com"
] | antumdeluge@gmail.com |
021380e13d2eae318fc3807aa19a45be981051fb | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/lun/lun_stats_get_iter_key_td.py | b900171ae83a9786718d2f883283ee90bf322dc9 | [
"MIT"
] | permissive | radekg/netapp-ontap-lib-gen | 530ec3248cff5ead37dc2aa47ced300b7585361b | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | refs/heads/master | 2016-09-06T17:41:23.263133 | 2015-01-14T17:40:46 | 2015-01-14T17:40:46 | 29,256,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | from netapp.netapp_object import NetAppObject
class LunStatsGetIterKeyTd(NetAppObject):
"""
Key typedef for table lunStats
"""
_key_3 = None
@property
def key_3(self):
"""
Field qtree
"""
return self._key_3
@key_3.setter
def key_3(self, val):
... | [
"radek@gruchalski.com"
] | radek@gruchalski.com |
6080e8e27370523a1a15d482bd31e6589aa63cc2 | 1c5f4a13a5d67201b3a21c6e61392be2d9071f86 | /.VirtualEnv/Lib/site-packages/influxdb_client/domain/variable_assignment.py | f36ac8c683bd2b04ca15fcea617fca76518bfe9c | [] | no_license | ArmenFirman/FastAPI-InfluxDB | 19e3867c2ec5657a9428a05ca98818ca7fde5fd0 | b815509c89b5420f72abf514562e7f46dcd65436 | refs/heads/main | 2023-06-24T20:55:08.361089 | 2021-07-29T00:11:18 | 2021-07-29T00:11:18 | 390,462,832 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,256 | py | # coding: utf-8
"""
Influx OSS API Service.
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from influxdb_client.do... | [
"42990136+ArmenFirman@users.noreply.github.com"
] | 42990136+ArmenFirman@users.noreply.github.com |
5137a2d0697ff6d46bc41528064261cdc36a3fcc | 6a2a4f97009e31e53340f1b4408e775f3051e498 | /Iniciante/p2031.py | 89cb880da36fcb459e803f82f4d976c547bff06d | [] | no_license | rafacasa/OnlineJudgePythonCodes | 34c31f325cccb325f074492b40591ad880175816 | 030c18f9020898fdc4f672f9cc17723236e1271d | refs/heads/master | 2023-07-15T12:09:45.534873 | 2023-06-27T00:24:03 | 2023-06-27T00:24:03 | 250,595,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | qtd = int(input())
for i in range(qtd):
j1 = input()
j2 = input()
if j1 == 'ataque':
if j2 == 'ataque':
print('Aniquilacao mutua')
continue
else:
print('Jogador 1 venceu')
continue
if j1 == 'pedra':
if j2 == 'ataque':
p... | [
"rafaelluizcasa@gmail.com"
] | rafaelluizcasa@gmail.com |
5891a856beafb4fd1adc7c988adac6905e2e73fe | 45093e6470e866dede760bfb7a082bcbdb540adf | /venv/lib/python3.8/site-packages/rope/refactor/importutils/module_imports.py | 8bd5a186e6e17ee198ee03b1f534451212d6ad0f | [] | no_license | rwinfield/first-bot | 0dee7441d80abdd0d93c58b73518e373a8d0af18 | ff6b2628767d8a7e8ebc6115dbf3658429764490 | refs/heads/master | 2023-08-17T01:58:41.332059 | 2023-08-04T19:25:52 | 2023-08-04T19:25:52 | 151,766,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/d0/68/74/61b82b6d7beeb5ca031738ec3124885ff73d9ca7fecb4faa9c6cae466d | [
"43892564+rwinfield@users.noreply.github.com"
] | 43892564+rwinfield@users.noreply.github.com |
c945c8268924f58b87f20e45705848eca360c58a | 59a688e68421794af64bfe69a74f64b2c80cd79d | /graph_theory/utils_graph_theory.py | fd125946005681bf4598d211b4d0027d1ecc27c5 | [] | no_license | hearues-zueke-github/python_programs | f23469b306e057512aadecad0ca0a02705667a15 | d24f04ca143aa93f172210a4b9dfdd9bf1b79a15 | refs/heads/master | 2023-07-26T00:36:56.512635 | 2023-07-17T12:35:16 | 2023-07-17T12:35:16 | 117,093,746 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,290 | py | import numpy as np
# hamilton cycles
def get_cycles_of_1_directed_graph(l_edges_directed):
nodes_from, nodes_to = list(zip(*l_edges_directed))
all_nodes = sorted(set(nodes_from+nodes_to))
unique_nodes_from, counts = np.unique(nodes_from, return_counts=True)
assert np.all(counts==1)
edges_directed... | [
"hziko314@gmail.com"
] | hziko314@gmail.com |
61987d03b4832d555efd81438653636012699b92 | 4da9c19d9839c670fda30a45a7e223da624eee4a | /Codechef Problem solutions/lapindromes.py | 9070865b0cf0bb49ceaf98a28dcc869c6166e819 | [] | no_license | JineshKamdar98/Codchef-Problem-Solutions | 3e1737669cc0657ccc224e06f800b587130f5787 | 4447679aa3fb45a2d57f93bf3f724f6223049506 | refs/heads/master | 2020-05-05T06:38:10.306619 | 2019-04-06T06:16:10 | 2019-04-06T06:16:10 | 179,795,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | t=int(input())
while(t!=0):
s=input()
p=list(s[:len(s)//2])
q=list(s[-(len(s)//2):])
if(sorted(p)==sorted(q)):
print('YES')
else:
print('NO')
t-=1
| [
"noreply@github.com"
] | JineshKamdar98.noreply@github.com |
111dbc26616d818e6e15afdd77e8e66d50541599 | 4bd5e9b67d98bfcc9611bd8b774c9ab9f4f4d446 | /Python基础笔记/12/代码/1.类的定义.py | 611f8b67880c998961906ccb1093d893e099e0c3 | [] | no_license | zhenguo96/test1 | fe21510aea7feb674e52fd7a86d4177666f841c5 | 0d8de7e73e7e635d26462a0bc53c773d999498be | refs/heads/master | 2020-05-03T13:09:53.592103 | 2019-04-06T07:08:47 | 2019-04-06T07:08:47 | 178,646,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | """
类:人
属性(静态特征):
姓名
性别
年龄
行为(动态特征):
吃饭
睡觉
打豆豆
"""
"""
1.类名命名规范:
数字、字符、下划线组成、不能以数字开头
不能是保留字
区分大小写
2.命名风格:大驼峰:每个单词首字母大写
3.类体:以冒号开头,必须缩进
"""
class Person:
# 构造方法
"""
方法和函数的区别: 方法第一个参数必须是self,函数没有self
方法... | [
"1148421588@qq.com"
] | 1148421588@qq.com |
bfdc184ec6e550e1526742ddaa73ce54cdbabee9 | b509b4c3ba811ee5cbbc8ae5a580c78dc66c3437 | /backend/vehicle/migrations/0001_initial.py | d442d5d68a3d15410380299dcfa2ac14cffe213f | [] | no_license | crowdbotics-apps/application-24933 | d0a35800eee010daebae321e321e9f906cbc2e4a | dadd878c63f6d74f4f57d9a04eec818d77ba3595 | refs/heads/master | 2023-03-13T22:34:01.776842 | 2021-03-09T16:02:32 | 2021-03-09T16:02:32 | 346,061,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | # Generated by Django 2.2.19 on 2021-03-09 16:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('taxi_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
n... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fbe04451994e0024a6b2f42914705abc22316a48 | d88360329b36f9c9fd7ee7efb118d45f7dc44f5e | /backend/api/apps.py | c33832e843d3833d7b2d6cddd0f32158ebcdc0e6 | [] | no_license | hyunmin0317/Study-App | 265a19723010b3150eac41fbaea7aa6f229e6140 | 32835258ec6ce0a981f2a359776e944b52adde81 | refs/heads/master | 2023-07-17T23:36:55.645573 | 2021-09-08T06:33:54 | 2021-09-08T06:33:54 | 398,130,964 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from django.apps import AppConfig
class ApiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'api'
| [
"choihm9903@naver.com"
] | choihm9903@naver.com |
bb19442ce68445b7d0832bfe6249aa389dff37a8 | a8123a86db99b9365b10ba76dd509d58caa7bc10 | /python/practice/start_again/2023/07252023/valid_sudoku.py | bace8ea77bfaad4e5b056c4e5d44463b4ad85bc9 | [] | no_license | smohapatra1/scripting | c0404081da8a10e92e7c7baa8b540acc16540e77 | 3628c9109204ad98231ae8ee92b6bfa6b27e93cd | refs/heads/master | 2023-08-22T20:49:50.156979 | 2023-08-22T20:43:03 | 2023-08-22T20:43:03 | 147,619,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,506 | py | # 36. Valid Sudoku
# Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:
# Each row must contain the digits 1-9 without repetition.
# Each column must contain the digits 1-9 without repetition.
# Each of the nine 3 x 3 sub-boxes of the grid must con... | [
"samarendra.mohapatra121@gmail.com"
] | samarendra.mohapatra121@gmail.com |
fb2a76cd6a85c90f75d740c9a18b28efbc09de86 | e94b018362431ce8b22fe306aa0db23e82362b82 | /tests/common/test_util.py | ead5c31bf85ad9b6d671e2ac78f9c47528fa9607 | [
"MIT"
] | permissive | tybiot/SBMLLint | 71745fb44f2a6e1be83e0d6854aa7b1caa700a4d | f11124c4059f40496454ba1adc814f1bd33c783b | refs/heads/master | 2022-11-13T20:27:48.343268 | 2020-06-28T23:56:40 | 2020-06-28T23:56:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | from SBMLLint.common import constants as cn
from SBMLLint.common import exceptions
from SBMLLint.common import util
import libsbml
import numpy as np
import os
import unittest
NUM_S1 = 2
NUM_S2 = 3
IGNORE_TEST = False
ANTIMONY_STG = '''
%dS1 -> %dS2; 1
S1 = 0
S2 = 0
''' % (NUM_S1, NUM_S2)
ZIP_PATH = os.path.join(cn... | [
"jlheller@uw.edu"
] | jlheller@uw.edu |
58467f4df4f61b2e8564e17b1028b7aef8aea879 | 2b5b082ca006eb8063a4a43f4998f4c0268a46e6 | /sessauth2/sessauth2/asgi.py | dcaac02c620f4158a3c708ba0533fcbea01eccc9 | [] | no_license | shobhit1215/Rest_Framework_tut | a52ae5b7a1f0213ace19d9b2b5d557b15d36c376 | 351da2564a55d1530f5517627cce73663252d07c | refs/heads/main | 2023-05-26T04:47:01.336843 | 2021-06-03T12:43:51 | 2021-06-03T12:43:51 | 373,503,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for sessauth2 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"imshobhit.sb@gmail.com"
] | imshobhit.sb@gmail.com |
b6334ff9ea75bda1417ea705234c6515841b743d | cdfcac165a7c06a137cb3563dbe31d3044494a95 | /6_SGD/1_0_gradientTape.py | 402b93080c204c3e0fdb1f37475164524621c459 | [] | no_license | fzingithub/learningTensorflowProject | 141b3d980a7aa6f729cea18a72ae83d591812c83 | 5607be5f8daeb5591aba719e69b53b34b93d1e03 | refs/heads/master | 2020-05-19T19:05:17.495549 | 2019-09-25T06:48:04 | 2019-09-25T06:48:04 | 185,169,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | # -*- coding: utf-8 -*-
'''
Created on 2019/5/7
Author: zhe
Email: 1194585271@qq.com
'''
import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
# w = tf.constant(1.)
# x = tf.constant(2.)
# y = x * w
# with tf.GradientTape() as tape:
# tape.watch([w])
# y2 = x * w
#
# grad1 = tape.gradient... | [
"1194585271@qq.com"
] | 1194585271@qq.com |
873c85d7134a8df275df8a80775826b5150e310d | ec80586b3aa3e90178a59446b33948012121b56f | /relationship_app/admin.py | 022de5e18e33d4fb2cca13f2b8d97b6f3ba98602 | [] | no_license | amritghimire/se | 567f050969e0e2ad667684f1d6ca03a2f21071bf | 6c150cb75e61b43cc938216a4e5f661d5a97aa11 | refs/heads/master | 2021-03-19T17:24:20.234650 | 2019-09-03T05:55:04 | 2019-09-03T05:55:04 | 112,606,113 | 0 | 0 | null | 2019-09-03T05:56:46 | 2017-11-30T11:57:56 | JavaScript | UTF-8 | Python | false | false | 201 | py | from django.contrib import admin
from .models import Relationship,RelationshipWithQuestion
# Register your models here.
admin.site.register(Relationship)
admin.site.register(RelationshipWithQuestion)
| [
"iamritghimire@gmail.com"
] | iamritghimire@gmail.com |
2acba97797af6087bb411fa464e5be1ea2a890ed | c83e356d265a1d294733885c373d0a4c258c2d5e | /mayan/apps/documents/migrations/0071_auto_20201128_0330.py | 6583b82c2de0181c330da3426f188f2204c35e62 | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/fall-2021-hw2-451-unavailable-for-legal-reasons_6YX3 | 4160809d2c96707a196b8c94ea9e4df1a119d96a | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | refs/heads/master | 2023-08-21T23:36:41.230179 | 2021-10-02T03:51:12 | 2021-10-02T03:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('documents', '0070_auto_20201128_0249'),
]
operations = [
migrations.RenameField(
model_name='document',
old_name='date_added',
new_name='datetime_crea... | [
"79801878+Meng87@users.noreply.github.com"
] | 79801878+Meng87@users.noreply.github.com |
a436ead0e31e3f5f505f43aab6f77de6ca2edc9e | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /xlsxwriter/test/comparison/test_escapes02.py | 1a1af325a8fe56d1c47442561a85b514ba40e94d | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 943 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
a6ffc620d1d3aee1f0cdf209cf463c92bf609284 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuits_routes_table_list_result.py | 692bb9903130c0dd3e820e34bf91cfa419fcb98f | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,282 | 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 |
9e51529629c36bcf385786cb805d47763c6f5ab2 | 0c325cf7a68ef51067ed8db566d525a20de5b635 | /other/panda365/panda365/pd/api/fields.py | 42906c17d0e2cd22fb5c65f2f94fbe5c1743ff4f | [] | no_license | alinzel/NOTES | 2ab6aa1ef1d601a9ae8c0d23c0df2bca7e1aa241 | 3e0594641a605580e920d0b08a251fbc99f34e2f | refs/heads/master | 2023-01-08T22:48:30.762625 | 2020-01-17T09:14:47 | 2020-01-17T09:14:47 | 175,339,492 | 0 | 0 | null | 2022-12-27T15:01:19 | 2019-03-13T03:28:08 | HTML | UTF-8 | Python | false | false | 6,120 | py | from base64 import b64decode
from io import BytesIO
from marshmallow import fields, validate, ValidationError
from sqlalchemy import inspect
from werkzeug.datastructures import FileStorage
import binascii
import uuid
class DataURL(fields.String):
"""
data url as defined in RFC 2397:
data:[mimetype][;... | [
"944951481@qq.com"
] | 944951481@qq.com |
3f197feb9ea3a2c2da2ddc7cde1f71136c78662a | 35baf7fe5bb66f2402de400383b8aa426c097bfb | /co2_diag/recipes/seasonal_cycles.py | 95de0cc00e4835814255f8121b1a1b9cd8473448 | [
"BSD-3-Clause"
] | permissive | BunnyVon/gdess | 24f0e7e1e6d2a00dbbcd9e3fa72e65d983b6567a | 09b83b3d7ade133b6d993e010912bee86c24c934 | refs/heads/main | 2023-07-18T06:11:09.937268 | 2021-09-05T19:09:10 | 2021-09-05T19:09:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,919 | py | """ This produces plots of seasonal cycles of atmospheric CO2
This function parses:
- observational data from Globalview+ surface stations
- model output from CMIP6
================================================================================
"""
from co2_diag import set_verbose, benchmark_recipe
from co2_diag.rec... | [
"dkauf42@gmail.com"
] | dkauf42@gmail.com |
f78f19d145b126047de673d89f70e08fdc0684a7 | 3cf0d750948a758d5771dd778fbb783d64a044ae | /src/pads/tests/test_lca.py | b11cbc743ce87210e3a1d60e058e855380055c1b | [
"CC-BY-NC-SA-4.0",
"Apache-2.0",
"MIT"
] | permissive | hbulpf/pydemo | 6552a08b3c85721ac1b2ba335b030e234ad03b6c | ea3e9f9086116a86ecef803e9e3179a34c94c20f | refs/heads/master | 2022-11-30T21:06:29.933820 | 2022-01-15T17:05:16 | 2022-01-15T17:05:16 | 237,584,300 | 6 | 1 | Apache-2.0 | 2022-11-22T09:49:38 | 2020-02-01T08:20:43 | Python | UTF-8 | Python | false | false | 1,413 | py | import random
import unittest
from pads.lca import RangeMin
from pads.lca import LogarithmicRangeMin
from pads.lca import LCA
from pads.lca import OfflineLCA
class RandomRangeMinTest(unittest.TestCase):
def testRangeMin(self):
for trial in range(20):
data = [random.choice(range(1000000))
... | [
"hudalpf@163.com"
] | hudalpf@163.com |
c9b58a0e23df735180efc08cacda6fe5dd2b365f | 612e9449ddbe95f1b4a0dd21e13e46661e39c872 | /lib/formats/json.py | 3c6e746b04f54281505f5b27327aa67f161ddd3f | [] | no_license | racposner/label_reconciliations | 0ad22c8250a5d6662e9aeebeb97741146ac8fdac | 4c916994e7f193e6ed0b1c6b18f247239f1d847a | refs/heads/master | 2022-11-27T02:00:51.108238 | 2020-07-28T18:47:53 | 2020-07-28T18:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | """Import a flat JSON file as unreconciled data."""
import pandas as pd
import lib.util as util
def read(args):
"""Read a JSON file into a data-frame."""
unreconciled = pd.read_json(args.input_file)
unreconciled = util.unreconciled_setup(args, unreconciled)
return unreconciled, {}
| [
"raphael.lafrance@gmail.com"
] | raphael.lafrance@gmail.com |
8c0e06b23fc473400d9b904b94698f979e0ff6ef | 9b34e542589b7d0d327d3255ac4fcd0bcf5e7216 | /first one from right to left in binary.py | e09a044e3aaf81efa19205fa549a8331750abc86 | [] | no_license | Sravaniram/pythonprogramming | 9ee23cd2ff925fa2c6af320d59643747db173cd7 | 4c09c6787a39b18a12dfcbb2c33fcceabd4fc621 | refs/heads/master | 2020-03-26T23:26:03.391360 | 2019-04-23T12:49:53 | 2019-04-23T12:49:53 | 145,541,824 | 1 | 9 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | n,m=map(int,input().split())
k=bin(n*m)
c=0
for x in range(len(k)-1,1,-1):
c=c+1
if(k[x]=='1'):
print(c)
break
| [
"noreply@github.com"
] | Sravaniram.noreply@github.com |
d4b58b2e033e8c716f005be46976aa0c5a9599e7 | 347c70d4851b568e03e83387f77ae81071ab739e | /fn_proofpoint_tap/fn_proofpoint_tap/util/selftest.py | f923ce1c4bd5ea486dbcb877544c0adc313565cb | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | neetinkandhare/resilient-community-apps | 59d276b5fb7a92872143ce2b94edd680738693ce | 3ecdabe6bf2fc08f0f8e58cbe92553270d8da42f | refs/heads/master | 2021-12-27T09:05:36.563404 | 2021-09-29T13:04:56 | 2021-09-29T13:04:56 | 159,804,866 | 1 | 0 | MIT | 2021-08-03T19:45:45 | 2018-11-30T10:07:32 | Python | UTF-8 | Python | false | false | 1,750 | py | # -*- coding: utf-8 -*-
# pragma pylint: disable=unused-argument, no-self-use
# (c) Copyright IBM Corp. 2019. All Rights Reserved.
"""Function implementation
test with: resilient-circuits selftest -l fn_proofpoint_campaign
"""
import logging
import os
from requests.auth import HTTPBasicAuth
from resilient_lib impo... | [
"ihor.husar@ibm.com"
] | ihor.husar@ibm.com |
85e1dfdd04e38ad955261cc8e671a25fb7798885 | 26dec2f8f87a187119336b09d90182d532e9add8 | /mcod/histories/apps.py | a7f0a00b9687b8ac862b1830d5b72c8fe03043fe | [] | no_license | olekstomek/mcod-backend-dane.gov.pl | 7008bcd2dbd0dbada7fe535536b02cf27f3fe4fd | 090dbf82c57633de9d53530f0c93dddf6b43a23b | refs/heads/source-with-hitory-from-gitlab | 2022-09-14T08:09:45.213971 | 2019-05-31T06:22:11 | 2019-05-31T06:22:11 | 242,246,709 | 0 | 1 | null | 2020-02-24T22:39:26 | 2020-02-21T23:11:50 | Python | UTF-8 | Python | false | false | 187 | py | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class HistoriesConfig(AppConfig):
name = 'mcod.histories'
verbose_name = _('Histories')
| [
"piotr.zientarski@britenet.com.pl"
] | piotr.zientarski@britenet.com.pl |
0bba8246a143872757d6de146020f6d5366ab9fb | 6dcf2d8ce367d6afd64024e5f41d4a11c27ca3d5 | /gmecol/migrations/0002_auto__add_field_game_image_url__add_field_game_remote_id__add_field_pl.py | 293eada3da4be3326dd035ea611a874e7f9c658c | [
"BSD-2-Clause"
] | permissive | iyox/gmecol | 75cc02870958fb0c747f93f62c42868eaf11601b | c03ff0fdfca7cb73fe8646e1ed4543db7d2e6c89 | refs/heads/master | 2021-01-15T16:58:27.692794 | 2012-09-06T03:50:39 | 2012-09-06T03:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,919 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Game.image_url'
db.add_column('gmecol_game', 'image_url',
self.gf('dja... | [
"f4nt@f4ntasmic.com"
] | f4nt@f4ntasmic.com |
9c37792e8f94df710b6d3440b26852c0adaa94e4 | 79baf4404e51bdc0f33038b3b16bea86ff09e82f | /azext_iot/tests/digitaltwins/test_dt_generic_unit.py | 0893dc929dab4b65fd9bf2a07dadc07136a01af7 | [
"MIT"
] | permissive | Azure/azure-iot-cli-extension | 80b6cb29e907f7512c7361a85d6bfdea5ae2dd9e | bdbe65c3874ff632c2eba25c762e9ea8e9175b5f | refs/heads/dev | 2023-09-04T10:57:16.118442 | 2023-08-28T17:12:05 | 2023-08-28T17:12:05 | 103,456,760 | 95 | 80 | NOASSERTION | 2023-09-13T00:02:54 | 2017-09-13T22:04:36 | Python | UTF-8 | Python | false | false | 1,280 | py | # coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
0a03e97996b1fa69d230b0deb8bc34c21fa3c4c6 | 61f38a2e01908bd5cf2351071ad846706a642bde | /tensorflow/python/training/warm_starting_util_test.py | 3eddf79e341b9b663af6ca5646897ef886a05be8 | [
"Apache-2.0"
] | permissive | agataszcz/tensorflow | f22b2db4504d9094b4a8b00c72576601ae3e53c5 | 05973093a4716f861db2490dab2bcb8b9a6ee557 | refs/heads/master | 2020-03-30T14:49:48.233844 | 2018-10-02T23:36:45 | 2018-10-02T23:36:45 | 151,337,678 | 2 | 0 | Apache-2.0 | 2018-10-02T23:37:15 | 2018-10-02T23:37:23 | null | UTF-8 | Python | false | false | 52,883 | 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 |
2e5c9db597970c087922fe5fb4e821040099e528 | d92ce9a32bf20086e30701585a4e73c1f2469aff | /FunDooapp/virtualenv/bin/pyreverse | 4bb367f33b44c24c82bc7034882867f23526d633 | [] | no_license | Prem-chouhan/fellowshipProgram_PremsinghChouhan | f61cf4407458f14ef7eb6d80effb25f9592d2552 | 33e6b57f6c75a80d8a3d1f868d379e85365a1336 | refs/heads/master | 2020-09-14T12:45:16.269268 | 2019-12-23T14:24:10 | 2019-12-23T14:24:10 | 223,128,906 | 0 | 1 | null | 2020-07-22T11:50:46 | 2019-11-21T08:47:28 | Python | UTF-8 | Python | false | false | 271 | #!/home/admin-1/PycharmProjects/FunDooapp/virtualenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"antonyalexcm@gmail.com"
] | antonyalexcm@gmail.com | |
659d0ad0fba5b883dc88d5f5b01c4bb971bf6cc1 | 54d2887e3c910f68366bd0aab3c692d54245e22a | /abc/abc_126_211/abc143/c.py | a61192377b5409ade4b4e25ce7aba3578a87535b | [] | no_license | Kevinrobot34/atcoder | 7aec367fd2c6b589e9d583dae7b3c7520ce9fa12 | 482ea508f098f81e4f19522fe518dd22c781aca9 | refs/heads/master | 2022-07-10T23:44:45.290022 | 2022-06-29T11:30:26 | 2022-06-29T11:30:26 | 158,081,477 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | n = int(input())
s = input()
ans = 1
for i in range(1, n):
if s[i] != s[i-1]:
ans += 1
print(ans)
| [
"kevinrobot34@yahoo.co.jp"
] | kevinrobot34@yahoo.co.jp |
5eb470788942ba3791892cf184b8320ff59048b3 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/kusto/v20210101/get_database_principal_assignment.py | 6702cacfd4bb91dcca91097e194373ed4b8284f3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,320 | 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"
] | bpkgoud.noreply@github.com |
b4f53d695d80feab5e9b69fa72d78e8512187c80 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_affiliations.py | 42384cf4a16916f7866a17a2fbb1a0dcf5f45e29 | [
"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 | 242 | py |
#calss header
class _AFFILIATIONS():
def __init__(self,):
self.name = "AFFILIATIONS"
self.definitions = affiliation
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['affiliation']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fed4bdd2449e04bd15775b80ce99c2bf71bc3df3 | bbe447a740929eaee1955bd9c1517cf760dd5cb9 | /aralib/adwordsApi/examples/v201003/add_negative_campaign_criterion.py | 54e653048ddbd0762277bfa7d7600e8aed50b548 | [
"Apache-2.0"
] | permissive | MujaahidSalie/aranciulla | f3d32e7dd68ecfca620fe4d3bf22ecb4762f5893 | 34197dfbdb01479f288611a0cb700e925c4e56ce | refs/heads/master | 2020-09-07T02:16:25.261598 | 2011-11-01T21:20:46 | 2011-11-01T21:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,065 | py | #!/usr/bin/python
#
# Copyright 2010 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 b... | [
"vincenzo.ampolo@gmail.com"
] | vincenzo.ampolo@gmail.com |
d90727f571830e06611f1580efa36793cde8b63e | b08bddd99d49ff242aa890b491cbbdf09ce128f0 | /apps/login_app/migrations/0004_auto_20170823_1152.py | 3226750b3561b5ea2af2985e960273767eed143f | [] | no_license | HollinRoberts/friends | 24b99c031a7771ad1b35a22112658f01fe3d8090 | ae22c690f6800c74b6f794f44eefd97b607d008a | refs/heads/master | 2021-01-20T05:28:42.381205 | 2017-08-25T22:41:21 | 2017-08-25T22:41:21 | 101,447,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-23 18:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('login_app', '0003_auto_20170823_1148'),
]
operations = [
migrations.AddFiel... | [
"hollinroberts@gmail.com"
] | hollinroberts@gmail.com |
c4f9a57a58113e650a9ac005d75441afa0d6d22e | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/stacksNqueues_20200722084452.py | d0552e00c0ca213a09d1eebd1be5b92128dad478 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # we'll use a list to rep stack and a queue
# empty list
# stack is last in first out
stack = []
stack.append(1)
stack.append(2)
stack.append(3)
stack.append(4)
# remove item from stack(pop)
x = stack.pop()
from collections import deque
# create empty deque
queue = deque()
queue.append(1)
queue.append(2)
queu... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
ca9694bf200c7f1b74e093a94f8a7fb7b3f38eb3 | 94f156b362fbce8f89c8e15cd7687f8af267ef08 | /endterm/main/permissions.py | fa03d8dfbbb352fd4d500b5d47d7396758ac8649 | [] | no_license | DastanB/AdvancedDjango | 6eee5477cd5a00423972c9cc3d2b5f1e4a501841 | 2b5d4c22b278c6d0e08ab7e84161163fe42e9a3f | refs/heads/master | 2020-07-17T19:21:16.271964 | 2019-12-03T21:58:51 | 2019-12-03T21:58:51 | 206,081,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from rest_framework.permissions import IsAuthenticated, BasePermission
from django.contrib.auth.models import User
class ArticlePermission(BasePermission):
message = 'You must be the owner of the project.'
def has_permission(self, request, view):
return True
def has_object_permission(self, reques... | [
"dastan211298@gmail.com"
] | dastan211298@gmail.com |
27612de0eb84d3c9a15217b1cf2ccef7a2e61e91 | 95df12156e4dd24ed3646a93da972ab1a8e654f5 | /propmix/hpiraw/hpiraw_api_server/hpiraw/dbauth.py | 046ff02ca76ec3638b865c08fa7bf60437ba96d4 | [] | no_license | sijuaugustin/ingts | 1cf05e9acaac85181f82b8442537755a7799e300 | 68df567caa7c581e89eea7130fa8a45cd83a40ae | refs/heads/master | 2020-06-01T15:49:23.620893 | 2017-06-13T06:56:27 | 2017-06-13T06:56:27 | 94,078,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | '''
Created on Jan 6, 2017
@author: joseph
'''
DATABASE_ACCESS = {'name': 'hpi_api',
'password': 'hpi@!23',
'source': 'cognubauth'
}
| [
"siju.augustine@cognub.com"
] | siju.augustine@cognub.com |
0cec4c494c0c1a152e35437198c2a8608035f010 | fe91ffa11707887e4cdddde8f386a8c8e724aa58 | /tools/binary_size/libsupersize/archive.py | be5db59f11a736cac8d20617911281efc0558082 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"Zlib",
"LGPL-2.1-only",
"APSL-2.0",
"Apache-2.0",
"LGPL-2.0-only",
"MIT",
"LicenseRef-scancode-unknown"
] | permissive | akshaymarch7/chromium | 78baac2b45526031846ccbaeca96c639d1d60ace | d273c844a313b1e527dec0d59ce70c95fd2bd458 | refs/heads/master | 2023-02-26T23:48:03.686055 | 2020-04-15T01:20:07 | 2020-04-15T01:20:07 | 255,778,651 | 2 | 1 | BSD-3-Clause | 2020-04-15T02:04:56 | 2020-04-15T02:04:55 | null | UTF-8 | Python | false | false | 79,014 | py | # Copyright 2017 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.
"""Main Python API for analyzing binary size."""
import argparse
import bisect
import calendar
import collections
import datetime
import gzip
import itertoo... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
4216ba8538130d5be7bb47ed1e6f3ccb8612f153 | db4f69e1643b61c411fee9190a3ae8f77ee2db04 | /polyaxon/api/experiment_groups/serializers.py | 3bafa236ca3b166d8ecdadbbad365de6ba88f485 | [
"MIT"
] | permissive | gzcf/polyaxon | f159c4138fee5b1f47fb57aa6bda440fe29812fb | 77ac8838c6444a36541e6c28aba7ae42de392fee | refs/heads/master | 2021-04-18T21:22:54.269899 | 2018-08-24T09:22:22 | 2018-08-24T09:22:22 | 126,830,407 | 0 | 0 | MIT | 2018-04-20T18:07:17 | 2018-03-26T13:08:02 | Python | UTF-8 | Python | false | false | 4,125 | py | from rest_framework import fields, serializers
from rest_framework.exceptions import ValidationError
from api.utils.serializers.bookmarks import BookmarkedSerializerMixin
from db.models.experiment_groups import ExperimentGroup, ExperimentGroupStatus
from libs.spec_validation import validate_group_spec_content
class ... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
011fedfc5f4fb077adf105e66276575307bcf672 | c1edf63a93d0a6d914256e848904c374db050ae0 | /Python/python进阶知识/python多线程/多窗口运行/main1.py | 0fdebedf23162e616c2378be6f031a7f3e9cca74 | [] | no_license | clhiker/WPython | 97b53dff7e5a2b480e1bf98d1b2bf2a1742cb1cd | b21cbfe9aa4356d0fe70d5a56c8b91d41f5588a1 | refs/heads/master | 2020-03-30T03:41:50.459769 | 2018-09-28T07:36:21 | 2018-09-28T07:36:21 | 150,703,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | import time
while True:
print('I\'m main1')
time.sleep(2) | [
"1911618290@qq.com"
] | 1911618290@qq.com |
893dfeefb69b21a01de2a54510f145d36809b70b | 58bc54ce2f5d4beaac2366bf5b0bb76e51ebfda3 | /pytorch_toolbelt/datasets/segmentation.py | cadd5b4769c66e66c8cb6b0a8d058123710d1111 | [
"MIT"
] | permissive | anashas/pytorch-toolbelt | 1fbe76648719b2e1832e9fcbd0b2c30f134882cc | a04e28b10a43747ab75f88503ee771f89edf59fb | refs/heads/master | 2023-03-15T00:31:48.045880 | 2021-03-02T20:36:27 | 2021-03-02T20:36:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py | from functools import partial
from typing import Optional, List, Callable
import albumentations as A
import cv2
import numpy as np
from skimage.measure import block_reduce
from torch.utils.data import Dataset
from .common import (
read_image_rgb,
INPUT_IMAGE_KEY,
INPUT_IMAGE_ID_KEY,
INPUT_INDEX_KEY,
... | [
"ekhvedchenya@gmail.com"
] | ekhvedchenya@gmail.com |
4508094ece806298cf2145b030d29774f438347a | e4f8b14cead542586a96bcaa75993b0a29b3c3d0 | /pyNastran/utils/log.py | 8b482bf35aacb394dae8997f2100b891fd92ef91 | [] | no_license | afcarl/cyNastran | f1d1ef5f1f7cb05f435eac53b05ff6a0cc95c19b | 356ee55dd08fdc9880c5ffba47265125cba855c4 | refs/heads/master | 2020-03-26T02:09:00.350237 | 2014-08-07T00:00:29 | 2014-08-07T00:00:29 | 144,398,645 | 1 | 0 | null | 2018-08-11T15:56:50 | 2018-08-11T15:56:50 | null | UTF-8 | Python | false | false | 5,063 | py | import sys
import platform
import os
def make_log(display=False):
"""
Creates 'pyNastran.log' file with information about working environment,
such as Python version, platform, architecture, etc. Useful for debugging.
:param display: do not only create file but also print log information
"""
s... | [
"mesheb82@abe5364a-6225-a519-111c-932ebcde5b3b"
] | mesheb82@abe5364a-6225-a519-111c-932ebcde5b3b |
18358ae17ee34ba9ba626dedeb0a03bc901ffec5 | bc526da042a8d5d2a239989efecb35fd4272e611 | /odps/ml/regression/tests/test_regression.py | 674999ee51b95dcb4d72bfbe4ee01d68c24a34df | [
"Apache-2.0"
] | permissive | forvendettaw/aliyun-odps-python-sdk | 595928fff039ae43d2736c53fc27d947def24e35 | a490a255efd0553cca4454d79ed83b777aae8888 | refs/heads/master | 2021-01-12T02:47:31.578957 | 2017-01-05T03:05:06 | 2017-01-05T03:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,191 | py | # encoding: utf-8
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Licens... | [
"xuye.qin@alibaba-inc.com"
] | xuye.qin@alibaba-inc.com |
560210583dcd9e410b9a6d3ce7eccb94b910daaf | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_ashuwp_A.py | 2b4922b913d674d05b48e7ff31fca4b01cb5237e | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 441 | py | def sheep(num):
if num == 0:
return "INSOMNIA"
itr = tr = 0
while tr != 1023:
cnt = 0
itr += 1
temp = str(num * itr)
for k in temp:
cnt |= 1 << int(k)
tr |= cnt
return num * itr
if __name__ == "__main__":
tc = i... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
8d91d0d9ca4c29272ed50703feb949fda56ecabb | f3b233e5053e28fa95c549017bd75a30456eb50c | /bace_input/L4I/4I-3N_MD_NVT_rerun/set.py | b04b07be60fd9a603e5f9ea04342eddcacd9da7f | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | import os
dir = '/mnt/scratch/songlin3/run/bace/L4I/MD/ti_one-step/4I_3N/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_prodin = filesdir + 'temp_prod.in'
temp_pbs = filesdir + 'temp.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
3aa435659cdd66419cc6a2c5579e721ad5ecf45d | 4b3ae6048ced0d7f88a585af29fa3a7b15005749 | /Python/Django/AJAX/user_login/apps/orm_app/migrations/0001_initial.py | fed103cb60fdb32297924849629a3e26c80f3a0a | [] | no_license | ajag408/DojoAssignments | a6320856466ac21d38e8387bdcbbe2a02009e418 | 03baa0ff5261aee6ffedf724657b3a8c7cdffe47 | refs/heads/master | 2022-12-11T15:50:46.839881 | 2021-06-07T20:57:17 | 2021-06-07T20:57:17 | 79,872,914 | 0 | 0 | null | 2022-12-08T00:35:09 | 2017-01-24T02:58:15 | Python | UTF-8 | Python | false | false | 877 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-07-25 03:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
... | [
"akashjagannathan408@gmail.com"
] | akashjagannathan408@gmail.com |
a8785d9e209ad0d74353f91f65a34d7c4e5ab111 | 3e45ea5b84fdce1d1c391929e6e95c5ecbfdbf98 | /day03/app03_1/migrations/0005_animal_cat_dog.py | 293a57087d20852f2a63c1505c8803080066aa6e | [
"Apache-2.0"
] | permissive | General-Coder/Django-Introduction | 3cc75bc2098a0f90769d375aeee8f999a4f6fcc6 | e88b12682f9abc46a90a0fc79e7443537230a506 | refs/heads/master | 2020-04-05T07:34:44.540644 | 2018-11-11T14:30:12 | 2018-11-11T14:30:12 | 156,681,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-10-24 16:46
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app03_1', '0004_teacher_xz'),
]
operations = [
... | [
"17625904460@163.com"
] | 17625904460@163.com |
dff4df7f2b57a2ea5b48b4b41f6928afa2de7294 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/u/fm/_report_mgmt_cfg.py | 031da9c2287b3c40022bf4816bc7505478d10035 | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,184 | py | '''
This tea to work with Reports page.
1. Reports foundation development
+ to cover those pages: Device View, Active Firmware, Historical
Connectivity, Association, Provision, Events, Speed Flex
+ to provide basic report activities:
+ fill in report options (inc. filters)
+ generate the report
+ ... | [
"tan@xx.com"
] | tan@xx.com |
96aa5a1461e19e2949d8c3ae4a84b8a9c7751ff7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02255/s769034459.py | 6f0767f2d12bd0d4ef95fa9cd88e9316da5284d9 | [] | 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 | 587 | py | import sys
def insert_sort(array):
for i in range(0, len(array)):
v = array[i]
j = i - 1
while (j >= 0) and (array[j] > v):
array[j + 1] = array[j]
j -= 1
array[j + 1] = v
print print_list(array)
return array
def print_list(array):
s = ""
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9621f6de9e603b381c794751a9e39256ceb86e62 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_intermarrying.py | 448779925828137d3486fd5f49c4d3a4f0523579 | [
"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 | 242 | py |
#calss header
class _INTERMARRYING():
def __init__(self,):
self.name = "INTERMARRYING"
self.definitions = intermarry
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['intermarry']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f3d200f5ad3c364311c5a8d6f245b9b7602b099e | 31009efe0b3882551f03dcaa9c71756c7c6f6ede | /src/main/resources/twisted/test/stdio_test_loseconn.py | 7f95a016b4a41e7ef1c45723dd2ebd0778ee341e | [
"Apache-2.0",
"ZPL-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | riyafa/autobahntestsuite-maven-plugin | b533433c75f7daea2757158de54c6d80d304a962 | 737e6dad2d3ef794f30f0a2013a77e28decd2ec4 | refs/heads/master | 2020-08-16T13:31:39.349124 | 2019-10-16T09:20:55 | 2019-10-16T09:20:55 | 215,506,990 | 0 | 0 | Apache-2.0 | 2019-10-16T09:18:34 | 2019-10-16T09:18:34 | null | UTF-8 | Python | false | false | 1,514 | py | # -*- test-case-name: twisted.test.test_stdio.StandardInputOutputTestCase.test_loseConnection -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTestCase.test_loseConnection} to
test that ITransport.lose... | [
"nmaurer@redhat.com"
] | nmaurer@redhat.com |
2f98cf3db55c973b80270b85c82ad4d83257056f | 155b6c640dc427590737750fe39542a31eda2aa4 | /api-test/xqkj/test3/testXqkj_web_finance_consumption_001_Channel.py | 7fc89567edec5d212484bde674ad99ca55324de3 | [] | no_license | RomySaber/api-test | d4b3add00e7e5ed70a5c72bb38dc010f67bbd981 | 028c9f7fe0d321db2af7f1cb936c403194db850c | refs/heads/master | 2022-10-09T18:42:43.352325 | 2020-06-11T07:00:04 | 2020-06-11T07:00:04 | 271,468,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,113 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time :2019-05-09 下午 2:27
@Author : 罗林
@File : testXqkj_web_finance_consumption_001_Channel.py
@desc : 渠道管理流程自动化测试用例
"""
import json
from faker import Faker
from common.myCommon import Assertion
from common.myCommon.TestBaseCase import TestBaseCa... | [
"romy@romypro.local"
] | romy@romypro.local |
3453ef9fb376dd038b165acdf01d35326cba96a5 | ae8590dc2dd0dd6530868ccd52702d06e5d96fa1 | /copy of source code.py | b5a8ca45a3da63b6f0813916fd6af3bbdc1b8dd5 | [] | no_license | abhisek08/Python-Basics-Part-1- | e3bec8e4d7f9e484c4bcade7763842334c93f4b0 | 3687dd6ebb01f2289b3fa226cea28b564894a68f | refs/heads/master | 2022-09-08T11:42:28.871012 | 2020-05-25T07:58:01 | 2020-05-25T07:58:01 | 266,717,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | '''
Write a Python program to create a copy of its own source code.
'''
print()
print((lambda str='print(lambda str=%r: (str %% str))()': (str % str))())
print() | [
"abhisek.bhunia08@gmail.com"
] | abhisek.bhunia08@gmail.com |
6271957d52b5f94a002352d4446b733e556860f3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03060/s903224060.py | f50e8567bb440e68db273f2b40d0b0d865cac43a | [] | 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 | 461 | py | import sys
sys.setrecursionlimit(10**6)
n = int(input())
v = list(map(int, input().split()))
c = list(map(int, input().split()))
#n, m = map(int, input().split())
#s = input()
#s,t = input().split()
#a = [int(input()) for _ in range(n)]
#
#readline = sys.stdin.readline
#n,m = [int(i) for i in readline().split()]
#ab =... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b477e38610d2ed4605aaa78498aa7389b05d94b8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03105/s179203905.py | bd5dac2f36a486f1f4abf2d8cb664bb8cc4740c2 | [] | 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 | 69 | py | a,b,c = map(int,input().split())
print(int(b/a) if int(b/a)<c else c) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
706e688fdb07eda39ccfb89da8095d3584bb4bd5 | 397e125e94f4f139f2bf5055824d81f24b8b1757 | /ABC/135/D-3.py | c6a73dbe57caf4af3072b6db80e01a6523b4e3e8 | [] | no_license | tails1434/Atcoder | ecbab6ee238e3f225551297db961b1b502841fa4 | e7c7fed36be46bbaaf020a70997842240ba98d62 | refs/heads/master | 2021-07-07T00:31:49.235625 | 2020-09-30T01:42:01 | 2020-09-30T01:42:01 | 189,009,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | def main():
S = input()
if __name__ == "__main__":
main() | [
"sososo1333@gmail.com"
] | sososo1333@gmail.com |
2558d70cd897e6f36debd3e0e01e05c3f02cf98a | 5b9b1139848db270f5987d4d539c39a30115e87b | /solutions/inod.py | be970934ef14c54ddf4e4fd8782a9c1426f94dc3 | [] | no_license | mady1258/Bioinformatics_Stronghold | 3d0f82b3cff0066246eb6641368a4ea4fe366362 | 6c7daf1ea92b2a74657c9ce40a19d356177d983e | refs/heads/master | 2023-02-04T14:00:54.985085 | 2020-12-23T11:32:03 | 2020-12-23T11:32:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import sys
if __name__ == "__main__":
'''
Given: A positive integer n (3≤n≤10000).
Return: The number of internal nodes of any unrooted binary tree having n leaves.
'''
n = int(sys.stdin.readline().rstrip())
# An unrooted tree with n leaves and m internal nodes should have n + 3m total degrees... | [
"egeulgen@gmail.com"
] | egeulgen@gmail.com |
533f6ecce51b82f53b872fc88c7b8e9ebcf7864b | fb2cc597f319380d228fc15c4008760a82203687 | /var/spack/repos/builtin/packages/e3sm-kernels/package.py | 2e8534ee60c1371305fb8b850092d450a78a511f | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.1-only"
] | permissive | JayjeetAtGithub/spack | c41b5debcbe139abb2eab626210505b7f930d637 | 6c2df00443a2cd092446c7d84431ae37e64e4296 | refs/heads/develop | 2023-03-21T02:35:58.391230 | 2022-10-08T22:57:45 | 2022-10-08T22:57:45 | 205,764,532 | 0 | 0 | MIT | 2019-09-02T02:44:48 | 2019-09-02T02:44:47 | null | UTF-8 | Python | false | false | 1,887 | py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from spack.package import *
class E3smKernels(MakefilePackage):
"""
Climate kernels for Co-design tha... | [
"noreply@github.com"
] | JayjeetAtGithub.noreply@github.com |
d8534409bd889016971a612a14dde9520fab2066 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/3491924/snippet.py | 206562a28b41564df1d60ab42576e7b4bb1dd96a | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 860 | py | import os
from urlparse import urlparse
from flask import Flask
from pymongo import MongoClient
MONGO_URL = os.environ.get('MONGOHQ_URL')
if MONGO_URL:
# Get client
client = MongoClient(MONGO_URL)
# Get database
db = client[urlparse(MONGO_URL).path[1:]]
else:
# Not on an app with the MongoHQ add-on, do some... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
7eae6423802f038e65f587ba7edb68bb345f425b | 7a7a0663efd2c25adf26f6552e3c4e95e9ac4e63 | /holon/models/rmm.py | b27372b02be9352ffcb461a93b9dea68933d012b | [] | no_license | smizell/holon | 2c5654094cb007a9fceae621630126d9173c4f2c | 9cdf39b74cee31ed9c84c94b792814f0b9fc6483 | refs/heads/main | 2023-02-03T15:46:41.059117 | 2020-12-09T23:10:39 | 2020-12-09T23:10:39 | 317,355,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | from holon.principles import Principle
level0 = Principle(
name="RMM Level 0",
reference="https://martinfowler.com/articles/richardsonMaturityModel.html#level0",
)
level1 = Principle(
name="RMM Level 1",
reference="https://martinfowler.com/articles/richardsonMaturityModel.html#level1",
)
level2 = Princ... | [
"smizell@gmail.com"
] | smizell@gmail.com |
cbad53e84d05323b976ae9aca6f270b8cf6f450f | c5a6e19e7ce45c565e0353b8d6bd768a1c573901 | /catalyst/data/minute_bars.py | 243de701ad10bc72068c3659a1dde48d41fe6a2d | [
"Apache-2.0"
] | permissive | guilhermeprokisch/catalyst | d58b3de83df636209f96fda0587330da1ee7c79b | 21e096b261912d9e905584178d6ee626072c23cb | refs/heads/master | 2020-08-02T11:37:22.125602 | 2019-09-27T14:28:32 | 2019-09-27T14:28:32 | 211,336,899 | 0 | 0 | Apache-2.0 | 2019-09-27T14:25:22 | 2019-09-27T14:25:21 | null | UTF-8 | Python | false | false | 48,928 | py | # Copyright 2016 Quantopian, 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://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"guilherme.oliveira@atlasproj.com"
] | guilherme.oliveira@atlasproj.com |
284fb1b51ef430201f817392977842c1cd80a739 | 49f61714a6f78d984fd2194d6064d84e891bc5b7 | /2019-1/231/users/4237/codes/1796_1613.py | 34c1d6c7aa6950bb644b8a059a48fc732ab82aae | [] | no_license | psbarros/Variaveis3 | b5c4e1517e7d94a846ee03791d25d5821a1c651c | 3dcf6f810709ce03c78335acf9533e008a2ae125 | refs/heads/master | 2023-06-13T07:05:00.878430 | 2021-07-06T17:51:37 | 2021-07-06T17:51:37 | 383,549,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from numpy import*
vet = input("Digite a atividade fisica ai: ")
tempo = array(eval(input("E o tempo: ")))
i = 0
if(vet == 'ALONGAMENTO'):
total = 3*tempo
i = i + 1
elif(vet == 'CORRIDA')
total | [
"psb@icomp.ufam.edu.br"
] | psb@icomp.ufam.edu.br |
175287ff552e87d65033887d77371e0b868bf754 | 11ad22552bf6719214239a95d032f5559bf57dc5 | /eventregistry/QueryStory.py | c139a651db188cdf76bd89d15031f14e17ff796f | [
"MIT"
] | permissive | arunkumar6545/event-registry-python | 803914d00a1ce6dda40a1673debac75222b0614e | 2ccff7799a03f71189ed666f25f3eb673c1a8263 | refs/heads/master | 2020-09-10T15:46:57.804243 | 2019-11-16T16:57:06 | 2019-11-16T16:57:06 | 221,745,070 | 0 | 0 | MIT | 2019-11-14T16:52:00 | 2019-11-14T16:51:59 | null | UTF-8 | Python | false | false | 6,706 | py | from eventregistry.Base import *
from eventregistry.ReturnInfo import *
class QueryStory(Query):
"""
Class for obtaining available info for one or more stories (clusters) in the Event Registry
NOTE: Story in our terminology is a cluster of articles (and not a single article). An event is
then somethin... | [
"gleban@gmail.com"
] | gleban@gmail.com |
3fcb6194f404ce704465066f56f9f62584820530 | 7a73fef9ae426c48573bae41447cef7cb2b97bf6 | /dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/__init__.py | 1be0370374c0659b08731093f6f1d86cacca7bb6 | [
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | mjames-upc/python-awips | 7f0a80a04457224c9e195b82a95eef4d9b2b3091 | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | refs/heads/master | 2020-03-31T03:00:49.540816 | 2018-10-05T23:15:42 | 2018-10-05T23:15:42 | 53,707,817 | 0 | 0 | null | 2017-04-12T18:00:59 | 2016-03-12T01:46:57 | Python | UTF-8 | Python | false | false | 101 | py | ##
##
# File auto-generated by PythonFileGenerator
__all__ = [
'hazards'
]
| [
"mjames@unidata.ucar.edu"
] | mjames@unidata.ucar.edu |
f5c72b1f3b8cbbe42360e74a8ca4056e885d0bab | ec760cb774a45a12d40529036b7fca3dd589223c | /services/TS29222_CAPIF_Routing_Info_API/capif_routing_info/models/ipv4_address_range.py | 8bf453284830c0d9696da8ccd2b8deea4ae98178 | [
"Apache-2.0"
] | permissive | EVOLVED-5G/CAPIF_API_Services | e4d7f8c7fc9a69aa364787471c5bd54d51fd1cb8 | c907c68d54adf3e3ad7be15ac6707b8c64a1b778 | refs/heads/develop | 2023-07-29T09:31:23.176795 | 2023-05-31T12:56:33 | 2023-05-31T12:56:33 | 416,657,882 | 15 | 5 | Apache-2.0 | 2023-09-04T12:01:57 | 2021-10-13T08:46:52 | Python | UTF-8 | Python | false | false | 3,479 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from capif_routing_info.models.base_model_ import Model
import re
from capif_routing_info import util
import re # noqa: E501
class Ipv4AddressRange(Model):
"""NO... | [
"jorge.moratinossalcines@telefonica.com"
] | jorge.moratinossalcines@telefonica.com |
0a23df6de654d24c8cfd4468b5bb389cc25b8f20 | 3a93a50bf80668a6ede701534f1567c3653729b0 | /Full-time-interview-preparation/Graph/redundant_connection.py | 8b8b2bb52cc5b8bd3f503e7f63d43db58f4c181e | [] | no_license | Tadele01/Competitive-Programming | c16778298b6c1b4c0b579aedd1b5f0d4106aceeb | 125de2b4e23f78d2e9f0a8fde90463bed0aed70f | refs/heads/master | 2023-09-01T06:00:09.068940 | 2021-09-13T18:04:30 | 2021-09-13T18:04:30 | 325,728,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | from typing import List
class Solution:
def findRedundantConnection(self, edges: List[List[int]]) -> List[int]:
self.parents = [-1 for _ in range(len(edges)+1)]
for u,v in edges:
if not self.union(u,v):
return [u,v]
def find(self, x)... | [
"tadeleyednkachw@gmail.com"
] | tadeleyednkachw@gmail.com |
d22ab5a62f8a9bbd77dc270f6a368adcf4a6a639 | 9c16d6b984c9a22c219bd2a20a02db21a51ba8d7 | /chrome/test/media_router/media_router_tests.gypi | c1211c49edbec838fba1408930357c7773b8918d | [
"BSD-3-Clause"
] | permissive | nv-chromium/chromium-crosswalk | fc6cc201cb1d6a23d5f52ffd3a553c39acd59fa7 | b21ec2ffe3a13b6a8283a002079ee63b60e1dbc5 | refs/heads/nv-crosswalk-17 | 2022-08-25T01:23:53.343546 | 2019-01-16T21:35:23 | 2019-01-16T21:35:23 | 63,197,891 | 0 | 0 | NOASSERTION | 2019-01-16T21:38:06 | 2016-07-12T22:58:43 | null | UTF-8 | Python | false | false | 1,115 | gypi | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'media_router_integration_test_resources': [
'resources/basic_test.html',
'resources/common.js',
'resources/fail_cre... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
c49e277824f5d81797c03152796abe6a7b4fb545 | d4cd7da93ef93b32ae30c6c96b0612ffca758c0b | /0x0F-python-object_relational_mapping/5-filter_cities.py | e1edee838b931fa9c1737f3e78038bf11adce3a0 | [] | no_license | jfangwang/holbertonschool-higher_level_programming | afde26b71104b1a0ecb6cb1c99736a5286a51f08 | 32f7396181fac7c7495def24af72346d6ba07249 | refs/heads/master | 2023-04-24T17:16:38.731772 | 2021-05-06T15:49:39 | 2021-05-06T15:49:39 | 319,357,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | #!/usr/bin/python3
""" Filter states """
if __name__ == "__main__":
import MySQLdb
import sys
argv = sys.argv
state_id = 0
index = 0
if len(argv) != 5:
print("USAGE: ./0-select_states.py username password\
database_name state_name")
exit()
try:
db = MySQLd... | [
"qbs1864@gmail.com"
] | qbs1864@gmail.com |
4855001625f98e9d580537235844adc6d370c7db | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2500/60621/258426.py | 9373b12868d7d20dccd2542fe5e09e61dd730079 | [] | 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 | 485 | py | a=list(eval(input()))
b=[x for x in a]
c=[i+1 for i in range(len(a))]
d=[]
for i in range(len(a)):
if a==c:
break
index=a.index(len(a)-i)
if index==len(a)-i-1:
continue
else:
if index+1!=1:
d.append(index+1)
temp=[x for x in a[0:index+1]]
temp.... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
ee6d90c3bc03a44f8fa4910336872a00a09153e6 | 9519f459f8622ce209ba61f601df6b567b321f1a | /metrics/migrations/0001_initial.py | 910358f99305fbaf34be89da0e5ba842ae1dc1c1 | [
"MIT"
] | permissive | compsoc-ssc/compsocssc | 3b478b2a9542ac62e0b3a0c8e13b84f289a5eb40 | b61d490077b6ddf4798ce9ac30ca60bc63923080 | refs/heads/master | 2020-04-05T22:57:38.698446 | 2017-08-04T09:25:21 | 2017-08-04T09:25:21 | 30,790,913 | 7 | 8 | MIT | 2017-12-29T10:43:21 | 2015-02-14T08:05:48 | Python | UTF-8 | Python | false | false | 673 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Hit',
fields=[
('id', models.AutoField(verbose_... | [
"arjoonn.94@gmail.com"
] | arjoonn.94@gmail.com |
c0a983c0bc0a8a575f4982c5d5e5940b4571ca58 | 28dff466783a11266dd6b6cde9edd36de5c1ae4b | /python/ccxt/async_support/bybit.py | 4dbf295992bb2588651d79c8fadb8d6fb2c0e61e | [
"MIT"
] | permissive | dilongfa/ccxt | 24cd99ab73c3f25b472b7bc9e954b88e8ba19502 | ab5cff84948c3828ff7a234c67b8726c0353e5f6 | refs/heads/master | 2022-05-18T07:07:17.517717 | 2022-04-07T12:46:47 | 2022-04-07T12:46:47 | 98,248,595 | 0 | 0 | MIT | 2019-05-10T08:47:35 | 2017-07-25T01:04:18 | JavaScript | UTF-8 | Python | false | false | 141,317 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
import json
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import A... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
bb1016bce463941647fcdb119e9254f4af8aff17 | a867b1c9da10a93136550c767c45e0d8c98f5675 | /D3_LC_74_Search_a_2D_Matrix.py | 08d04637b85bca5f33d4a675c5a8fa58d6c01547 | [] | no_license | Omkar02/FAANG | f747aacc938bf747129b8ff35b6648fb265d95b6 | ee9b245aa83ea58aa67954ab96442561dbe68d06 | refs/heads/master | 2023-03-25T19:45:08.153403 | 2021-03-28T07:13:08 | 2021-03-28T07:13:08 | 280,783,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,866 | py | # import __main__ as main
# from Helper.TimerLogger import CodeTimeLogging
# fileName = main.__file__
# fileName = fileName.split('\\')[-1]
# CodeTimeLogging(Flag='F', filename=fileName, Tag='Matrix', Difficult='Medium')
"""Integers in each row are sorted from left to right."""
def searchMatrix(matrix, target):
... | [
"omkarjoshi4031@live.com"
] | omkarjoshi4031@live.com |
61297baec7f9634e81732d93964cde44437a232f | 1c790b0adc648ff466913cf4aed28ace905357ff | /applications/vision/data/mnist/__init__.py | e4bdf2b45dfba9e56aea7e90fcee004bb9fd170b | [
"Apache-2.0"
] | permissive | LLNL/lbann | 04d5fdf443d6b467be4fa91446d40b620eade765 | e8cf85eed2acbd3383892bf7cb2d88b44c194f4f | refs/heads/develop | 2023-08-23T18:59:29.075981 | 2023-08-22T22:16:48 | 2023-08-22T22:16:48 | 58,576,874 | 225 | 87 | NOASSERTION | 2023-09-11T22:43:32 | 2016-05-11T20:04:20 | C++ | UTF-8 | Python | false | false | 2,472 | py | import gzip
import os
import os.path
import urllib.request
import google.protobuf.text_format
import lbann
# Paths
data_dir = os.path.dirname(os.path.realpath(__file__))
def download_data():
"""Download MNIST data files, if needed.
Data files are downloaded from http://yann.lecun.com/exdb/mnist/
and unc... | [
"noreply@github.com"
] | LLNL.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.