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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22774504cce4883aefe3fdae4ef4056acda15052 | b1d7cf329110f02b8175303ebd09475136e84b0e | /enderecos/migrations/0001_initial.py | 10bdeace7f9208ad618fce5bb3bc078303660d8a | [] | no_license | Aleleonel/projeto_rest | 9df70817f9955399afb75b02121aa9500c9492d1 | a72b4e3b17c22efdbd8001f843c21aa24e9e9ae6 | refs/heads/master | 2022-05-24T10:56:10.818898 | 2020-04-30T15:49:33 | 2020-04-30T15:49:33 | 260,252,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | # Generated by Django 3.0.5 on 2020-04-30 14:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Endereco',
fields=[
('id', models.AutoField... | [
"aleleonel@gmail.com"
] | aleleonel@gmail.com |
437f01bf9c7f7e5398eb3f5fc71d48341c80f91e | 3709d35f525801a27ba0a3549e123d6a0e424831 | /scaling_transformer_inference_efficiency/chunk.py | 49be1f56a9dae04ea2b9c1015c5d40b05de5c173 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | jinlmsft/google-research | 2869f23ef1630e5ab5c342b7a1c9b74d11d23469 | da706f1407ee89e21870a30a547c00b5da7e44d2 | refs/heads/master | 2023-04-19T15:17:12.941312 | 2023-04-08T02:56:08 | 2023-04-08T02:59:56 | 286,369,579 | 0 | 0 | Apache-2.0 | 2023-04-10T00:42:21 | 2020-08-10T03:46:22 | null | UTF-8 | Python | false | false | 21,554 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
1bc4f38343078af5d25b0a62599c3eece7efd669 | c08b96db4551a3cedbc091b9b19f668e8e58e53e | /tests/test_tasks_publishnb.py | 58e30fb2afe980157a20f04a8cc14c4c0ab3d33d | [
"MIT"
] | permissive | lsst-sqre/sqre-uservice-nbreport | efa1163cc58f7388742d0acfbf14a28150a2da59 | e5911ab1a1f2dfae46cdae0337138cbac786872b | refs/heads/master | 2020-03-23T23:12:05.391843 | 2018-08-21T22:20:11 | 2018-08-21T22:20:11 | 142,221,500 | 1 | 0 | null | 2018-08-21T22:27:53 | 2018-07-24T23:07:15 | Python | UTF-8 | Python | false | false | 1,089 | py | """Tests for the `uservice_nbreport.tasks.publishnb` module.
"""
import responses
from uservice_nbreport.tasks.publishnb import get_edition_url
@responses.activate
def test_get_edition_url():
responses.add(
responses.GET,
'https://keeper.lsst.codes/products/testr-000/editions/',
status=2... | [
"jsick@lsst.org"
] | jsick@lsst.org |
ef3af1aa439186701c7df404f7ab023da5a62fae | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/sort/c8249785-8c09-49ae-a506-d5303e3f9b3c__sort_words.py | 995c6f3081573379333cfb90301cf89e7624a03d | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # import re
# def sort_words(s):
# results = re.findall("[\w;]+", s)
# return "\n".join(map(str, sorted(results)))
# print sort_words(" one, ,two three,4,")
# ############## This works as well
def sort_words(s):
for i in sorted("\n".join(s.split(',')).split()):
print i
# print c... | [
"erickmiller@gmail.com"
] | erickmiller@gmail.com |
63d28708c0e3a847179936dab12755af642dbfbe | 1f71d796efcddf51a46cf74f59584f76d56c664e | /venv/Scripts/easy_install-3.7-script.py | e6b080fdbdd6095b4de6bd52dc13c8cc3e704ce3 | [] | no_license | vunited/flask_studentManagement | 12021c7811af2cf95f04fcf635dd62bac0a5b5fa | 9ae15d0e9fd6d4b9111d4f3b3b90d52b4db8ab7a | refs/heads/master | 2020-11-29T11:26:47.109519 | 2019-12-27T14:03:19 | 2019-12-27T14:03:19 | 230,102,430 | 2 | 0 | null | 2019-12-27T14:07:08 | 2019-12-25T12:51:04 | Python | UTF-8 | Python | false | false | 474 | py | #!C:\Users\Administrator\Desktop\flask_studentManagement\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub... | [
"you@example.com"
] | you@example.com |
9c7f3644b9c1ba9169318bd1f02e1f2aa12186d7 | ab8a34e5b821dde7b09abe37c838de046846484e | /twilio/sample-code-master/preview/sync/document_permission/delete-default/delete-default.6.x.py | dbe85db59955ddeaee70650345a046325e275ae2 | [] | no_license | sekharfly/twilio | 492b599fff62618437c87e05a6c201d6de94527a | a2847e4c79f9fbf5c53f25c8224deb11048fe94b | refs/heads/master | 2020-03-29T08:39:00.079997 | 2018-09-21T07:20:24 | 2018-09-21T07:20:24 | 149,721,431 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
client.preview.sync.service... | [
"sekharfly@gmail.com"
] | sekharfly@gmail.com |
79dc80302a4a44c8de34cbaed417dd4234182c32 | 0115a30d4d26932dfde5752b8533d886f182ebfa | /research/plot_data_heatmap.py | 477258764852cf477503227bf68d23351b27e03e | [] | no_license | mattbellis/Siena_College_Physics_2012_2013_Cosmology | 4d8c8282cc875a4b89fe470db7b0d77122262451 | fd05a64e0280cf3b1e7bd13f23eaee0bbe11c132 | refs/heads/master | 2020-04-06T06:38:48.367779 | 2013-10-02T05:53:31 | 2013-10-02T05:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,378 | py | ################################################################################
# This is a very fast way of reading in a text file, when
# you know how the data is formatted, e.g. how many columns
# there are.
#
# Depending on the size of the file, this still may take some time (~5-20 sec),
# but is still faster tha... | [
"matthew.bellis@gmail.com"
] | matthew.bellis@gmail.com |
f0d5850e364accfc24295ae3d9d98a0046bde1b2 | d3ce58c4576431df14de0990f45cfd574f0aa45f | /.history/riskCalculator/forms_20201020003540.py | 1ff165ad8f4a597786110d5dd3dd387a85489954 | [] | no_license | rahulsolankib/portfolio | fe93f0e6b0b28990f0b9fad84dbf7c3aa07243c4 | 281ed429e2590376aee4649b2ea7b3e8facaf6f1 | refs/heads/master | 2023-01-02T06:55:21.319094 | 2020-10-26T08:55:22 | 2020-10-26T08:55:22 | 305,586,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | from django import forms
from .models import Que,RiskModel
class QForm(forms.Form):
age_group=(
(4,'Less than 25 years')
,(3,'25-35 years')
,(2,'36-40 years')
,(1,'51 above')
)
age_group=(
(3,'more than 5 years')
,(2,'2-5 years')
... | [
"rahulsolankib@gmail.com"
] | rahulsolankib@gmail.com |
673a4ecf7c8354ffe8868fcaabe971c1ab0b0bed | 36c5770217c104bea5cc1e5e43a9faa803daccec | /2021/Day_10/test_day10.py | 509a257a78a2eee6ec1a3644be31a90002e9419e | [] | no_license | sco1/adventofcode | 3a2ac0905c04e5a42d409d27e71dc7c5b3cf33a4 | cb029bb825f35944f505f8c88346bd2504695821 | refs/heads/main | 2023-04-30T10:25:02.770042 | 2023-04-17T01:07:46 | 2023-04-17T18:11:35 | 160,292,002 | 0 | 1 | null | 2023-04-06T13:17:54 | 2018-12-04T03:37:54 | Python | UTF-8 | Python | false | false | 704 | py | from textwrap import dedent
from .aoc_2021_day10 import parse_subsystem_code, score_autocomplete
SAMPLE_INPUT = dedent(
"""\
[({(<(())[]>[[{[]{<()<>>
[(()[<>])]({[<{<<[]>>(
{([(<{}[<>[]}>{[]{[(<()>
(((({<>}<{<{<>}{[]{[]{}
[[<[([]))<([[{}[[()]]]
[{[{({}]{}}([{[{{{}}([]
{<[[]]>}<{[{[{[]{... | [
"sco1.git@gmail.com"
] | sco1.git@gmail.com |
afac01645fddae62858ab76b0947a5a0723f02f3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02675/s941998787.py | 41727de13518ee3d758d33916cfee0252c8a5388 | [] | 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 | 282 | py | N= int(input())
N1=N%10
if N1==2:
print("hon")
elif N1==4:
print("hon")
elif N1==5:
print("hon")
elif N1==7:
print("hon")
elif N1==9:
print("hon")
elif N1==0:
print("pon")
elif N1==1:
print("pon")
elif N1==6:
print("pon")
elif N1==8:
print("pon")
else:
print("bon")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
45dfdc4a46f7d22d0bcaa32665e633280c4e5cd3 | 18eee1dc9d6b3e97aa1bd99addb5401bad2a8647 | /apps/goods/filters.py | dde361f4a48c97e84ac6ef82523c0a202e91b7d6 | [
"Apache-2.0"
] | permissive | xxcfun/mxshop-api | 1a2b1e4c7e4ae86b47e27c16f5dde401a0ff4af0 | 1472ad0d959439ea80c1f8d8bfd3629c15d3017d | refs/heads/master | 2023-08-18T19:34:47.941932 | 2021-09-14T10:57:26 | 2021-09-14T10:57:26 | 380,106,131 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | import django_filters
from goods.models import Goods
from django.db.models import Q
class GoodsFilter(django_filters.rest_framework.FilterSet):
""" 商品过滤的类 """
# 参数解读:name是要过滤的字段,lookup是执行的行为
pricemin = django_filters.NumberFilter(field_name='shop_price', lookup_expr='gte')
pricemax = django... | [
"55070348+hhdMrLion@users.noreply.github.com"
] | 55070348+hhdMrLion@users.noreply.github.com |
e250315934d3aab16f7dc6c05d0fe65f7ab19055 | 3670f2ca6f5609e14cce8c31cb1348052d0b6358 | /xacro/rqt_runtime_monitor/setup.py | 030f81f149fd6d14d091aef5c2627c152acf4f95 | [] | no_license | jincheng-ai/ros-melodic-python3-opencv4 | b0f4d3860ab7ae3d683ade8aa03e74341eff7fcf | 47c74188560c2274b8304647722d0c9763299a4b | refs/heads/main | 2023-05-28T17:37:34.345164 | 2021-06-17T09:59:25 | 2021-06-17T09:59:25 | 377,856,153 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | #!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
d = generate_distutils_setup(
packages=['rqt_runtime_monitor'],
package_dir={'': 'src'}
)
setup(**d)
| [
"shuyuanhao@cetiti.com"
] | shuyuanhao@cetiti.com |
0952c45060b73fc80ede7f00cc3160109fa1c450 | 073c2fd73875ce4e7d061623b8403f8d77c45d92 | /cohesity_management_sdk/models/restore_app_object.py | 9fdd52cdbb80907188731b0c0d483c183d9e339a | [
"Apache-2.0"
] | permissive | naveena-maplelabs/management-sdk-python | b11441b2edccc5a1262785bd559ad4b3ea984c3b | 06ce4119d955dc08cdbc5109c935afcfcd9d65ab | refs/heads/master | 2021-05-20T10:52:12.776816 | 2020-03-10T03:28:08 | 2020-03-10T03:28:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Cohesity Inc.
import cohesity_management_sdk.models.entity_proto
import cohesity_management_sdk.models.restore_app_object_params
class RestoreAppObject(object):
"""Implementation of the 'RestoreAppObject' model.
Message that captures information about an application ... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
aa2759ad7133838c170a215aae51575e1f6c5d36 | 603d37a05bada0fae1d468cc36d80d6b9d10ac09 | /randlov1998/balance_lspi.py | a10bc0a144ac92a2ccb1acd8ac405fa24c51b22f | [
"MIT"
] | permissive | eejd/agent-bicycle | 8b8b5162177e21f27889ca0b89348000c1f724d8 | 1ecc3fcad8504385e9e85ccbc539464cb4e6c4e6 | refs/heads/master | 2020-12-31T06:23:01.487407 | 2013-12-11T04:48:16 | 2013-12-11T04:48:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | from pybrain.rl.agents.linearfa import LinearFA_Agent
from pybrain.rl.learners.valuebased.linearfa import LSPI
from pybrain.rl.experiments import EpisodicExperiment
from environment import Environment
from tasks import LSPIBalanceTask
from training import LinearFATraining
task = LSPIBalanceTask()
learner = LSPI(task.... | [
"cld72@cornell.edu"
] | cld72@cornell.edu |
7e48a295782fb5d9b146dadab137c5711928f165 | 76adbcc676882343e166485f42c4e8fc38b851f8 | /constants/ad.py | defc860fdf9ebbb5d315cfee86c06adb7a30e0bf | [
"MIT"
] | permissive | adWharf/core | 5856b123fccabfc812707a605270015ed0750304 | f7e04db8b9635f0adf67d9f7488ae64f291a564c | refs/heads/master | 2020-03-18T05:35:01.017239 | 2018-06-07T03:52:29 | 2018-06-07T03:52:29 | 134,350,070 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: william
@contact: 1342247033@qq.com
@site: http://www.xiaolewei.com
@file: ad_status.py
@time: 12/04/2018 17:10
"""
from enum import Enum
ADSTATUS_UNKNOW = -1 # 未知
ADSTATUS_NORMAL = 0 # 正常
ADSTATUS_PENDING = 1 # 待审核
ADSTATUS_DENIED = 2 # 审核不通过 ... | [
"1342247033@qq.com"
] | 1342247033@qq.com |
c046458b9836688b0409b199f115260b9bf29216 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_117/1559.py | daf42e84e31ecc0e6ae24ab62ef2ed6872425d11 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | #f = open('B-small-attempt0.in')
f = open('B-large.in')
#f = open('test.in')
count = int(f.readline())
output = ''
def check():
global matrix,rowCount,columnCount
currentRow = 0
currentMin = 100
for i in range(0,rowCount):
tempMin = min(matrix[i])
if tempMin < currentMin:
cu... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
042656e281ad8a91f55e1a538bda15e8a457df7e | e0b6f5bd451aa8af3273fbc948799637681342e1 | /scripts/wm_representation/functions/encoding_leave_one_out.py | 255b51c1b420fca68791c82c9ac918ab9f5aeeab | [] | no_license | davidbestue/encoding | 6b304f6e7429f94f97bd562c7544d1fdccf7bdc1 | c27319aa3bb652b3bfc6b7340044c0fda057bc62 | refs/heads/master | 2022-05-05T23:41:42.419252 | 2022-04-27T08:34:52 | 2022-04-27T08:34:52 | 144,248,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py |
from model_functions import *
from fake_data_generator import *
from Weights_matrixs import *
from Representation import *
from process_encoding import *
from process_wm import *
from data_to_use import *
from bootstrap_functions import *
from leave_one_out import *
from joblib import Parallel, delayed
import multipr... | [
"davidsanchezbestue@hotmail.com"
] | davidsanchezbestue@hotmail.com |
37747e30a88b90ba50ba53fe7451a8b52b8155e2 | 236402efa32923fefc9f3924ba4155142e8052fe | /2017/_10_knot_hash_test.py | c48df44d9d3edca3a18e7a40edb3223d50d2b400 | [
"MIT"
] | permissive | pchudzik/adventofcode | 7c32126948ea57cdef3858ae3eb63cafdd67abb0 | 72304880c6b080d6c177d11fc9b9eb7b58e876b7 | refs/heads/master | 2022-05-08T00:20:58.586672 | 2022-04-29T19:30:34 | 2022-04-29T19:30:34 | 164,089,632 | 0 | 0 | MIT | 2022-04-22T14:29:37 | 2019-01-04T09:51:33 | Python | UTF-8 | Python | false | false | 800 | py | import pytest
from _10_knot_hash import single_round, knot_hash
@pytest.mark.parametrize(
"puzzle, positions, result",
[
([0, 1, 2, 3, 4], [3], [2, 1, 0, 3, 4]),
([0, 1, 2, 3, 4], [3, 4], [4, 3, 0, 1, 2]),
([0, 1, 2, 3, 4], [3, 4, 1], [4, 3, 0, 1, 2]),
([0, 1, 2, 3, 4], [3, 4,... | [
"pawel.chudzik@gmail.com"
] | pawel.chudzik@gmail.com |
70b65b3099824795baa28a830cdabe6a194a359a | aeb4759e515adc4493f8d062011814c9fc749ad8 | /src/desktop/Level/Rating/rating.py | 7a4e53d7c1140920469deadf1d6f4d9b16af9c67 | [] | no_license | cloew/PyMine | 3b67f54168ddfe8a2b0262f929e6688e4797486a | eac57ca9c585ec86befff126d50c9df3614b104f | refs/heads/master | 2021-01-16T18:56:55.431131 | 2014-06-23T02:43:17 | 2014-06-23T02:43:17 | 4,244,619 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 279 | py |
class Rating:
""" Represents the Rating """
def __init__(self, level):
""" Initialize the Rating """
self.level = level
self.awarded = False
def checkAwarded(self):
""" Check if the Rating should be awarded """ | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
a32c536428203a1d2fab7eea522cf5846aa50345 | 73f4a527f2dbe9bcfbceab7cab1370c23bbbfa36 | /lec4_serving/send_url.py | 24be6fa0cc47546b98000ea82c02f272420c3463 | [] | no_license | pai-plznw4me/network_study | c5962706c29c5475badb3d32c8e21f20dd21e67a | 845dd045e68bce670b241cf9f1553c23344fb984 | refs/heads/master | 2022-12-14T02:32:30.427499 | 2020-09-13T15:07:43 | 2020-09-13T15:07:43 | 292,311,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import json
import base64
from PIL import Image
import numpy as np
import io
import matplotlib.pyplot as plt
import tensorflow as tf
# Image to binary
img_path = "/Users/seongjungkim/PycharmProjects/network_study/lec4_serving/sample.png"
f = open(img_path, mode='rb')
image = f.read()
b_image = base64.encodebytes(ima... | [
"plznw4me@naver.com"
] | plznw4me@naver.com |
b25ec287087535274a5c4e7bd595d08c888d6d73 | dab869acd10a3dc76e2a924e24b6a4dffe0a875f | /Laban/LabanLib/analysis/spreadindAndClosing.py | 66d70d80949167c1383fa65ab43fe1af03e37b9b | [] | no_license | ranBernstein/Laban | d82aff9b0483dd007e03a06e51f7d635f62ed05d | 54c88afa9493deacbdd182904cc5d180ecb208b4 | refs/heads/master | 2021-01-23T13:17:51.777880 | 2017-02-14T09:02:54 | 2017-02-14T09:02:54 | 25,508,010 | 3 | 1 | null | 2017-02-14T09:02:55 | 2014-10-21T07:16:01 | Tcl | UTF-8 | Python | false | false | 1,282 | py | from LabanLib.LabanUtils import AbstractLabanAnalyzer
from LabanLib.LabanUtils import AbstractAnalysis
import mocapUtils.kinect.angleExtraction as ae
class SpreadindAndClosing(AbstractAnalysis.AbstractAnalysis):
def getPositiveAndNegetive(self):
return 'Spreading', 'Closing'
def wrap... | [
"bernstein.ran@gmail.com"
] | bernstein.ran@gmail.com |
c557512ab437d92c6ff97db1ed111ba0e9a9e98d | 1f0d46b55fe351dc61436069aca183dfa0d07e92 | /restful01/restful01/settings.py | 6499adabd3b5867434fb5271cd3e6dfa17a9fb17 | [] | no_license | aguncn/DjangoRESTfulWebServices | bfba746fc20f3aaa8bf8cedad6e569d0ea5716b2 | 1ab78478f84178d3eca9de1a262bae242930a9c5 | refs/heads/master | 2020-04-12T04:28:05.056831 | 2018-12-18T14:04:17 | 2018-12-18T14:04:17 | 162,296,613 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,141 | py | """
Django settings for restful01 project.
Generated by 'django-admin startproject' using Django 2.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... | [
"aguncn@163.com"
] | aguncn@163.com |
57ece42cba9c0ad3533058c32259e55d8a82d896 | 1bd24cc6d3ebd0d57123a89589493ec8a0cfce90 | /cachemagic/client.py | 4e7a4b42650ce62a9b11315dc4dd833f21c86832 | [
"BSD-2-Clause"
] | permissive | ntucker/django-cache-magic | ff6b5892d84147c20d6500972c43ec61cf70dd80 | e6c6195fd80c846f7a49e27d1bc519ee109d80dc | refs/heads/master | 2021-01-16T20:32:44.592682 | 2015-11-26T07:24:29 | 2015-11-26T07:24:29 | 5,353,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | import os
from eventlet.greenthread import sleep
from eventlet.queue import LightQueue
from eventlet.queue import Empty
from redis import Redis, ConnectionPool
from redis.exceptions import ConnectionError
from redis.connection import UnixDomainSocketConnection, Connection
from django_redis.client.default import Defau... | [
"me@ntucker.me"
] | me@ntucker.me |
4777b979f6c28f8a4170bab3f4fd94f6a7ffafe8 | afa2ebb439e6592caf42c507a789833b9fbf44b2 | /supervised_learning/0x0F-word_embeddings/4-fasttext.py | a146dc1491d8836f475b9aa168ce255865c9b637 | [] | no_license | anaruzz/holbertonschool-machine_learning | 64c66a0f1d489434dd0946193747ed296760e6c8 | 91300120d38acb6440a6dbb8c408b1193c07de88 | refs/heads/master | 2023-07-30T20:09:30.416167 | 2021-09-23T16:22:40 | 2021-09-23T16:22:40 | 279,293,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | #!/usr/bin/env python3
"""
Script that creates and trains a genism fastText model
"""
from gensim.models import FastText
def fasttext_model(sentences, size=100,
min_count=5, negative=5,
window=5, cbow=True,
iterations=5, seed=0, workers=1):
"""
Returns:... | [
"laabidigh@gmail.com"
] | laabidigh@gmail.com |
03e0cd27d6677f5cd0a88b2b0f302e2ce6674f03 | 725ac5a0bf72829be627bf8dc82fdc51ba0f94ae | /NER/Bert_CRF_Ner/crf.py | 4cbd9ff657cd4c7be2f5c315e2061e1921994401 | [] | no_license | shawroad/NLP_pytorch_project | fa14b6e4a156229765e1d552901d0492d8e1def3 | 1272fed2dc8fef78a9ded0f1ae1644d613a3b57b | refs/heads/master | 2023-06-25T02:37:35.503251 | 2023-06-12T10:57:11 | 2023-06-12T10:57:11 | 229,694,655 | 530 | 104 | null | 2020-12-08T09:21:47 | 2019-12-23T06:54:29 | Python | UTF-8 | Python | false | false | 20,384 | py | import torch
import torch.nn as nn
from typing import List, Optional
class CRF(nn.Module):
"""Conditional random field.
This module implements a conditional random field [LMP01]_. The forward computation
of this class computes the log likelihood of the given sequence of tags and
emission score ... | [
"shawroad@MacBook-ProTCL.local"
] | shawroad@MacBook-ProTCL.local |
e01a8c3188180bcc943b04780d8c808652a8520a | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/nilearn/2016/12/test_second_level_model.py | 05348ad4246df5a09c80238579bceaaf62e77835 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 9,472 | py | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
Test the second level model.
"""
from __future__ import with_statement
import os
import numpy as np
from nibabel import load, Nifti1Image, save
from nistats.first_level_model import FirstLevelModel,... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
b7ba2e20045fe5087b250059c90d811008bb3a0d | 6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a | /azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/backup_workload_items_operations.py | 1604739bf2f67ed41caf837bd9dff06514352a54 | [
"MIT"
] | permissive | ashirey-msft/azure-sdk-for-python | d92381d11c48f194ec9f989f5f803db614fb73f2 | e04778e13306dad2e8fb044970215bad6296afb6 | refs/heads/master | 2020-03-23T06:05:39.283442 | 2018-09-15T00:18:26 | 2018-09-15T00:18:26 | 141,188,192 | 0 | 1 | MIT | 2018-07-16T20:02:52 | 2018-07-16T20:02:52 | null | UTF-8 | Python | false | false | 5,793 | 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 ... | [
"noreply@github.com"
] | ashirey-msft.noreply@github.com |
dd85d8be247805272abc012764d2e3e69ca6f17d | 83f9454342304d396910ce1230bfb3c61b535868 | /pygamestartercode-cheeseian-master/00-IntroToPython/syntax_reference.py | 266e2bcad1900d7820827111f10ebf29baa6b00f | [
"MIT"
] | permissive | rhit-catapult/2021-session2-individual-repos | ce3016549f6e80532c601318aeb3595cf8fa1a24 | f3afc0503c658737791794ad8506eaf13469f9ce | refs/heads/main | 2023-06-21T16:54:02.781289 | 2021-07-16T20:07:14 | 2021-07-16T20:07:14 | 386,750,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | def main():
print("hello, world!")
main()
| [
"fisherds@rose-hulman.edu"
] | fisherds@rose-hulman.edu |
c897c38ea593fd6d028a685aaec707ba4871e9b4 | dcce56815dca2b18039e392053376636505ce672 | /dumpscripts/pkgutil_nested.py | b4bb0040cc6ae75c9a0913c71ae015783378d7f1 | [] | no_license | robertopauletto/PyMOTW-it_3.0 | 28ff05d8aeccd61ade7d4107a971d9d2576fb579 | c725df4a2aa2e799a969e90c64898f08b7eaad7d | refs/heads/master | 2021-01-20T18:51:30.512327 | 2020-01-09T19:30:14 | 2020-01-09T19:30:14 | 63,536,756 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # pkgutil_nested.py
import nested
import nested.shallow
print('nested.shallow:', nested.shallow.__file__)
nested.shallow.func()
print()
import nested.second.deep
print('nested.second.deep:', nested.second.deep.__file__)
nested.second.deep.func()
| [
"roberto.pauletto@gmail.com"
] | roberto.pauletto@gmail.com |
c929f35734c74a445856865534f29bc5fdd8f689 | 5de0c0e76bdde469156d057007a5008a63a0d66b | /buggernaut/Area.py | 5abcc8083016ae2fc276ffc7c8f945084c107c7b | [] | no_license | mattharkness/sixthdev | 6bcfd1c490efafb114dc5f014c6e5f1d91d56b4d | a7df929147d82d225606c216f69c48d898e19ebe | refs/heads/master | 2023-06-08T05:57:38.928657 | 2021-06-15T16:53:15 | 2021-06-15T16:53:15 | 338,441,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | __ver__="$Id$"
from strongbox import *
auto =None
class Area(Strongbox):
ID = attr(int, default=auto)
area = attr(str)
| [
"sabren"
] | sabren |
a9e503dace64170111dcdcb34e55dd72123e8a86 | 51885733158fe128158e46440eb64994f85898af | /seleniumbase/fixtures/js_utils.py | 1f8c7372fc9fcb387bd5442da26fcc1421f0e529 | [
"MIT"
] | permissive | Jionhi/SeleniumBase | a70bf02dea75669fe1f0cb4c90023ebec649700c | cc5d6cc58e72512b992e2b28a69ce22bcb5b91fd | refs/heads/master | 2023-08-28T23:13:24.850403 | 2021-10-28T23:13:37 | 2021-10-28T23:13:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,699 | py | """
This module contains useful Javascript utility methods for base_case.py
These helper methods SHOULD NOT be called directly from tests.
"""
import re
import requests
import time
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import WebDriverException
from seleniumbase i... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
b33d36dbbdef12c04a89dad0a52e6461d82f31a1 | abf17bef22471c32d9b05be27704ceb7f3877b0d | /namo/multithread_scripts/threaded_test.py | f7f7ceadc0d18c0f8b9b1010d0407a107e1b1aaf | [] | no_license | beomjoonkim/adversarial_actor_critic | a91d608c1da9ac7a9b4ed4b0dce2f08d68456346 | 753a031ff70473003bdcf844c256e28337a8e8c9 | refs/heads/master | 2021-02-24T19:19:56.463064 | 2020-05-17T14:14:03 | 2020-05-17T14:14:03 | 245,438,421 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,231 | py | import numpy as np
import scipy.io as sio
import os
import sys
import threading
from Queue import Queue
from multiprocessing.pool import ThreadPool # dummy is nothing but multiprocessing but wrapper around threading
from multiprocessing import cpu_count
import pickle
import socket
import argparse
import csv
import t... | [
"beomjoon@mit.edu"
] | beomjoon@mit.edu |
8a836540b8bcf7111da0d1aeb1a8ba28f87054d2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/502.py | 2febc7c4005d384624053bf32ddf35dd96d1547e | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | __author__ = 'Thanabhat Koomsubha'
def solve(cc):
S, K = input().split()
S = int(S)
sum = 0
sol = 0
for i in range(S + 1):
if int(K[i]) == 0:
continue
if sum < i:
sol += (i - sum)
sum += (i - sum)
sum += int(K[i])
print... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5ca6d145b7e5a2b67acf13a34f61f65aca3d84d7 | a5a1a4a34d5e404d483cd442527ed154cdc4ab54 | /scripts/lt2_scripts/test_scripts/awg_trigger_jitter2.py | e46dbd0ef3c7acb49ef273d85428f4fa9adb0cb9 | [] | no_license | AdriaanRol/measurement | c0abb9cfb2e7061a060c109f6be61a420ca8586e | 32e0912b83d5ceedf00378df1d6a48feb9ab8f17 | refs/heads/master | 2021-01-20T16:48:03.044302 | 2014-03-26T15:42:09 | 2014-03-26T15:42:09 | 18,175,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | import os
import qt
import numpy as np
import msvcrt
from measurement.lib.AWG_HW_sequencer_v2 import Sequence
from measurement.lib.config import awgchannels_lt2 as awgcfg
reload(awgcfg)
AWG = qt.instruments['AWG']
def generate_sequence(do_program=True):
seq = Sequence('Test')
# vars for the chan... | [
"wolfgangpfff@gmail.com"
] | wolfgangpfff@gmail.com |
b6ae99dcc6e6e51be66d43ad5943b593979f5014 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinci_v41r2/InstallArea/x86_64-slc6-gcc49-opt/python/CommonParticles/StdVeryLooseJpsi2MuMu.py | a1d496cd15b2307fbcbd8402a282ac808ceb9a75 | [] | 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 | 1,764 | py | #!/usr/bin/env python
# =============================================================================
# $Id: StdVeryLooseJpsi2MuMu.py,v 1.1 2010-01-18 10:08:49 gcowan Exp $
# =============================================================================
## @file CommonParticles/StdVeryLooseJpsi2MuMu.py
# configuration... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
f33fd4cc15561829b611c63b8394c988d0708fa6 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/77/usersdata/247/43349/submittedfiles/exercicio24.py | 6f73a9b4da2d7555834aaae02a5105c1ce437493 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | # -*- coding: utf-8 -*-
import math
a=int(input('digite a'))
b=int(input('digite b'))
if a>0 and b>0:
d=2
while d<=a:
if a%d==0 and b%d==0:
mdc=d
d=1+d
print("mdc(%d,%d)=%d" %(a,b,mdc))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b6ce54f2fb1f2d0fd8c484522e225a8f27118954 | eaae3d8aa68a37824387ab05201a84f347004e3b | /docs/html/python_example.py | c039a2fb109d51c291515f87d2ba721a2fb82baa | [
"MIT"
] | permissive | apmoore1/rtf2xml | 254e2732e89003bc5622776a82757c20e5fe6999 | b80bd43c91c7e18088489eae9060d4d7a5b96d13 | refs/heads/master | 2021-06-10T09:15:42.018346 | 2017-01-16T19:08:59 | 2017-01-16T19:08:59 | 79,149,815 | 0 | 1 | null | 2017-01-16T19:04:48 | 2017-01-16T19:04:48 | null | UTF-8 | Python | false | false | 1,879 | py | #!/usr/bin/env python
import sys
import rtf2xml.ParseRtf
def Handle_Main():
"""Handles options and creates a parse object """
try:
parse_obj =rtf2xml.ParseRtf.ParseRtf(
in_file = 'in.rtf',
# these are optional
# determine the output file
out_f... | [
"paulhtremblay@gmail.com"
] | paulhtremblay@gmail.com |
3cfcb913843a61f0714676c7d5e8d964be7c087b | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/stmt_if-31.py | 364b8bf478ae76a077503c92bb21412131c7b116 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | if False:
print("No")
elif True:
if True:
$Var("Yes")
else:
pass
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
86621207d93660ccde1902492993dbcefdc6f01b | f70273d172dec4c83e6ea6a1fbee63e0dfa679bd | /tests/integ/group_test.py | 6e28cdbaa832dbe0d34d99453f392b1fe1719bb3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | tverbeiren/hsds | 5b229a7226a5da957c0a81392a5c291d76edd55b | c9d2b56d2188c91341ff578cc32d41d4c6d3a7fd | refs/heads/master | 2020-04-19T18:02:42.601234 | 2019-01-28T07:27:40 | 2019-01-28T07:27:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,684 | py | ##############################################################################
# Copyright by The HDF Group. #
# All rights reserved. #
# #
# Th... | [
"jreadey@hdfgroup.org"
] | jreadey@hdfgroup.org |
f361ea6bd7ea53223419d2c8453f09fc3be2b524 | fb67821b542292fe921c9e628ebe69b9bd1ecb66 | /firstpro/firstpro/settings.py | b324acccee7bfd033b42b30bdecb4c4cc0d89c90 | [] | no_license | smrkhan123/MyDjango | 97cc13e33a686f325be03618b915cf571d4a6fc2 | be106cb64a52bf7bef8b4960089af1afe5480df6 | refs/heads/master | 2020-08-20T07:53:59.285250 | 2019-10-18T10:25:56 | 2019-10-18T10:25:56 | 215,998,313 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,236 | py |
"""
Django settings for firstpro project.
Generated by 'django-admin startproject' using Django 1.11.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"sk862147@gmail.com"
] | sk862147@gmail.com |
3f49b661713b37e8fcba1533d294c012ebf6b117 | 238900636ac22ba9776dfd022fcd5e2b6e788279 | /src/brainroller/findemptylocs.py | 09a7074d34a65cd3ca0d2c958b2d589bae786de2 | [] | no_license | ricepaper1/tensorflow_apps | 5b22f928a7283c353bde7242fa2d1060e6778594 | bcbf2873afc13e05cfdd0bf99bc5e222aa3820b8 | refs/heads/master | 2022-02-07T13:38:34.578175 | 2019-05-29T19:19:13 | 2019-05-29T19:19:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,505 | py | #! /usr/bin/env python
'''
Created on May 31, 2016
@author: welling
'''
import sys
import random
import os.path
import cPickle
import math
import spilltree3D
sys.path.extend(['/home/welling/Fiasco/fiasco_final/bin/LINUXX86_64',
'/home/welling/shtools/SHTOOLS-3.2'])
# sys.path.extend(['/home/wellin... | [
"welling@psc.edu"
] | welling@psc.edu |
46237aef41eb9f622b8d9a2300c0e36dec363cf0 | e0db9c0559d0cd362a0e3e7b96fd0c1c0fbc68e4 | /string21.py | 6b39115b313556a222d709f14fe90874f5bc1d37 | [] | no_license | BrettMcGregor/w3resource | ba338e91d24db773de6db6aec8c776a7df003ba0 | cea43e3f471edff1ca0843eeab1fa299f491badf | refs/heads/master | 2020-03-13T04:11:10.194964 | 2018-05-22T03:21:13 | 2018-05-22T03:21:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | # Write a Python function to convert a given string to all
# uppercase if it contains at least 2 uppercase characters in the
# first 4 characters.
stringa = "HtTps://www.w3rresource.com"
count = 0
for i in range(5):
if stringa[i].isupper():
count += 1
if count > 1:
print(stringa.upper())
else:
pri... | [
"brett.w.mcgregor@gmail.com"
] | brett.w.mcgregor@gmail.com |
a1a5068f26f9fcec4afd026d777bab1f3e4795e6 | 3cdf103f66fd032352e96640ed072e30c63e1b74 | /template/__init__.py | 6ee598aa88d19cabed6b7d21aeb4457cc7b52877 | [] | no_license | JayGitH/Bussiness-Monitoring | a193872c08553370c0f4624215a8cbf0f94ea3dc | 0535e26acf4f16a385e0da538178b36dab9bdbc9 | refs/heads/master | 2023-03-16T13:49:23.520708 | 2019-09-17T07:55:24 | 2019-09-17T07:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # -*- coding:utf-8 -*-
# __author__ = Amos
# Email = 379833553@qq.com
# Create_at = 2019/1/16 2:34 PM
# FileName = __init__.py
| [
"379833553@qq.com"
] | 379833553@qq.com |
b470fb10194019ee727baacef3b307c45c089584 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep010/Gather1_W_change_C_fix_2blk/ep0_test/pyr_0s/L5/step10_a.py | 068fb2c7bc9f20951d26d26257e3c2b442a0c6ca | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,723 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
97a0aef5d117499161a3018f5013cc2915e46737 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17s_1_02/routing_system/protocol/hide_vrrp_holder/__init__.py | 9c1361ce79cf8dbdd16c59ad7805d05c225207bd | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,002 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
68dbd7dfa64f57c6443696841085abbebad9111d | d6952f048727add5b54a521d04f6c9b5889bcd35 | /pollination_sdk/models/project_folder.py | 0e150c669fb8aacf50defcdfda3311527b182f19 | [] | no_license | TfedUD/python-sdk | bf719644041c2ab7b741af9c7fb8e5acfe085922 | 7ddc34611de44d2f9c5b217cf9b9e7cec27b2a27 | refs/heads/master | 2023-08-10T21:13:45.270193 | 2021-06-21T14:48:36 | 2021-06-21T14:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,473 | py | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.13.0
Contact: info@pollination.cloud
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from pollination_sdk.configu... | [
"antoinedao1@gmail.com"
] | antoinedao1@gmail.com |
9642a250b171c78d131ca215119d3d7609d57884 | 35d67ed561d875293aa137d21ced50d2912dbff8 | /pydl/pydlutils/fits/__init__.py | 11301fe5886469adf07784fdc9986cc084c8eada | [] | no_license | eigenbrot/pydl | 917b7b8794c26c45658e549bc1ea805f5ca29bc4 | aa8e37b031c8b5114851519e1ed0860a9cdb4ba3 | refs/heads/master | 2021-01-15T08:48:40.861756 | 2013-10-19T15:55:28 | 2013-10-19T15:55:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | from hogg_mrdfits import hogg_mrdfits
| [
"benjamin.weaver@nyu.edu"
] | benjamin.weaver@nyu.edu |
3ab90496ea31ecc33f1d7296a54b98f6b01e95a3 | fe3265b72e691c6df8ecd936c25b6d48ac33b59a | /homeassistant/components/livisi/switch.py | bcb9a2044119ad26ab3c66b78575729ed4c684bc | [
"Apache-2.0"
] | permissive | bdraco/home-assistant | dcaf76c0967783a08eec30ce704e5e9603a2f0ca | bfa315be51371a1b63e04342a0b275a57ae148bd | refs/heads/dev | 2023-08-16T10:39:15.479821 | 2023-02-21T22:38:50 | 2023-02-21T22:38:50 | 218,684,806 | 13 | 7 | Apache-2.0 | 2023-02-21T23:40:57 | 2019-10-31T04:33:09 | Python | UTF-8 | Python | false | false | 5,432 | py | """Code to handle a Livisi switches."""
from __future__ import annotations
from typing import Any
from homeassistant.components.switch import SwitchEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import HomeAssistantError... | [
"noreply@github.com"
] | bdraco.noreply@github.com |
d6485400fdda6e0149259558267ad521c3cc1308 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/gPt.py | 6609d7c4ae48c079d14c390b468e1c66a9fc91f9 | [] | 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 |
c42ca593d2e114e99beff8bf337b2848a70f7845 | f62ddee2dcadcae0e90f969be513b04e16dabf58 | /data/source/tests/pyyal_test_support/test_case.py | 4f8ed1569fc2bf2986ab49641031b7bcfc7bd2b2 | [
"Apache-2.0"
] | permissive | libyal/libyal | 30bccf56471dbf874292fe32d5d9173fd470df0e | 124111953917f65782a66a80e96a502ce2331b09 | refs/heads/main | 2023-07-25T09:25:46.068071 | 2023-07-08T09:56:44 | 2023-07-08T09:56:44 | 23,780,738 | 196 | 30 | Apache-2.0 | 2022-11-27T19:01:42 | 2014-09-08T05:57:58 | C | UTF-8 | Python | false | false | 85 | py | class SupportFunctionsTests(unittest.TestCase):
"""Tests the support functions."""
| [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
84a74f7f1adcb4948a83a6a6bc07fe6fd2aebf37 | 69851e673bad63c54138fd4c6a7532d298b28728 | /test/asyncore_echo_server.py | b12383219e34e278fe9d0fe6ed31f733b0d8f4cc | [] | no_license | ppppdm/mtcpsoft | a23e5b7b5f0144a2bad927824194b9534ee0a2f0 | 3a02474960d2903d4979a89b1c7568932f7ec006 | refs/heads/master | 2020-05-30T15:05:12.850440 | 2013-08-02T09:00:06 | 2013-08-02T09:00:06 | 9,294,934 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | import logging
import asyncore
import socket
logging.basicConfig(level=logging.DEBUG, format="%(created)-15s %(msecs)d %(levelname)8s %(thread)d %(name)s %(message)s")
log = logging.getLogger(__name__)
BACKLOG = 5
SIZE = 1024
class EchoHandler(asyncore... | [
"ppppdm@gmail.com"
] | ppppdm@gmail.com |
58e929b86c5c6af28135527b1d7338671acd45f5 | a8939556f37cbc7313b7e648f0feed143951fc86 | /biblioteca/apps/permisos/migrations/0003_permiso_emma.py | ab9d6c63eda9676785137caa3ae5987b4ba00510 | [] | no_license | miemma/biblioteca | 212336177fd304be7d20f57001fb567e220bb1ef | 0c170cc9ae75f0047a6e1ef6a039d47084989333 | refs/heads/master | 2020-12-25T15:09:17.683860 | 2016-08-02T14:50:56 | 2016-08-02T14:50:56 | 51,967,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-07-27 14:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('permisos', '0002_auto_20160726_1028'),
]
operations = [
migrations.AddField(... | [
"mauriciodinki@gmail.com"
] | mauriciodinki@gmail.com |
c8846c0df39e4346d96c1582996cda74c3687160 | 09cc53ebea64b1c73763ee3ddc561996c61ba531 | /sur/apps.py | 72b4f6be067b305d3bb765c7d2b09b519a2a2fa0 | [] | no_license | phasety/sur | a06e5c629f5b4e79f117fe722d70f11a4a2f7a0d | 0e4ceba33cde686f91e28de92eadeb1a1d5b7b34 | refs/heads/develop | 2021-01-21T14:40:16.370011 | 2016-05-22T16:35:32 | 2016-05-22T16:35:32 | 59,416,879 | 4 | 1 | null | 2016-07-25T22:50:38 | 2016-05-22T14:34:50 | Python | UTF-8 | Python | false | false | 105 | py | from django.apps import AppConfig
class SurConfig(AppConfig):
name = 'sur'
verbose_name = "Sur" | [
"gaitan@gmail.com"
] | gaitan@gmail.com |
a4d2108824be0ac9fcd647eb84358ec9b51fbaea | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_207/535.py | 49c82db37b6a6d5585e9da8e7da7c644ace9e867 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | # input() reads a string with a line of input, stripping the '\n' (newline) at the end.
# This is all you need for most Google Code Jam problems.
t = int(input()) # read a line with a single integer
for c in range(1, t + 1):
n,r,o,y,g,b,v = map(int, input().split(" ")) # read a list of integers, 2 in this case
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
54b39fb0c7e6ef24872826a2dddd60ede9dae49d | f561a219c57bd75790d3155acac6f54299a88b08 | /city/admin.py | 0519873f37af6e7fa4913e0e2fe60a712456d5c7 | [] | no_license | ujjwalagrawal17/OfferCartServer | 1e81cf2dc17f19fa896062c2a084e6b232a8929e | b3cd1c5f8eecc167b6f4baebed3c4471140d905f | refs/heads/master | 2020-12-30T15:31:04.380084 | 2017-05-24T18:26:20 | 2017-05-24T18:26:20 | 91,155,405 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from django.contrib import admin
from .models import *
# Register your models here.
class CityDataAdmin(admin.ModelAdmin):
list_display = ["id", "name", "created", "modified"]
admin.site.register(CityData, CityDataAdmin)
class UserCityDataAdmin(admin.ModelAdmin):
list_display = ["id", "city_id", "user_id... | [
"ujjwal.iitism@gmail.com"
] | ujjwal.iitism@gmail.com |
bc9c12c96f2b5f6f38674dd2cee18c4c49df274b | a85303ac9116e57d756afd5feb9e0b22f6ebe7a4 | /tools/region_recall.py | 765657c8c9aa1bfcf4fb68703c9d956f4c26c156 | [] | no_license | TWSFar/visdrone | 866b1a80f02bd05183176047ea25a4600d34a3cc | 54bb301cfdd7b0ce44e3e4d168441721776efe11 | refs/heads/master | 2020-07-12T05:14:50.191525 | 2019-08-27T10:33:40 | 2019-08-27T10:33:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | import os, sys
import cv2
import argparse
import numpy as np
from glob import glob
from tqdm import tqdm
import utils
import pdb
from datasets import get_dataset
def parse_args():
parser = argparse.ArgumentParser(description="show mask results")
parser.add_argument('dataset', type=str, default='VisDrone',
... | [
"cyfhorse@gmail.com"
] | cyfhorse@gmail.com |
7828582f9ad5c1df41c4957b9ddc46bc8217c64a | ebd24e400986c57b4bb1b9578ebd8807a6db62e8 | /InstaGrade-FormBuilder/xlsxwriter/test/comparison/test_chart_format12.py | 5d79eda350742be44b8247dff8014a096551d270 | [] | no_license | nate-parrott/ig | 6abed952bf32119a536a524422037ede9b431926 | 6e0b6ac0fb4b59846680567150ce69a620e7f15d | refs/heads/master | 2021-01-12T10:15:15.825004 | 2016-12-13T21:23:17 | 2016-12-13T21:23:17 | 76,399,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"nateparro2t@gmail.com"
] | nateparro2t@gmail.com |
1ae9b2b955575614b0511b5ddb39ed26c3e76eb2 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/domain/KoubeiMerchantKbcloudSubuserinfoQueryModel.py | 6eff376ef9495acbde6543c3e202f036563ce525 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 896 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class KoubeiMerchantKbcloudSubuserinfoQueryModel(object):
def __init__(self):
self._user_id = None
@property
def user_id(self):
return self._user_id
@user_id.setter
de... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
8a6360f4ec2a34b4453ff5db3ba9d22e1f3948ef | 1460bad3dfffb5d194bad82ec79c1aac32c46a4d | /06. Inventory.py | 716a0482eb6aad72539af07ef3861ee45d21fe56 | [] | no_license | antondelchev/Objects-and-Classes---Exericse | 29942f9db057995efb41b6cdc1afac0b246f5546 | 199512a917798b81518549fa1c792be07558be3f | refs/heads/main | 2023-06-01T04:29:36.817189 | 2021-06-26T11:55:40 | 2021-06-26T11:55:40 | 379,929,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | class Inventory:
def __init__(self, capacity):
self.__capacity = capacity
self.items = []
def __repr__(self):
return f"Items: {', '.join(self.items)}.\nCapacity left: {self.get_capacity() - len(self.items)}"
def add_item(self, item):
if len(self.items) < self.__cap... | [
"noreply@github.com"
] | antondelchev.noreply@github.com |
ef72b21dbd259ad4ab9f45b39c810dc2058e2b49 | 46ce3ba4d13a4d6aa20cbfc167937882b18b7f79 | /text-to-speech/caching.py | a590f96f840d3dbaf479ab8954f2f50bc7bb8a20 | [
"MIT"
] | permissive | hsouporto/Bahasa-NLP-Tensorflow | 835645b9cc68b0b69e331298648f820981508be6 | 4e6427230e36c2d79ec951c7f2c3501bf75f9a8a | refs/heads/master | 2022-03-04T17:07:14.443843 | 2019-11-24T17:33:02 | 2019-11-24T17:33:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | import numpy as np
import librosa
import os
import scipy
import tqdm
sampling_rate = 22050
n_fft = 2048
frame_shift = 0.0125
frame_length = 0.05
fourier_window_size = 2048
max_db = 100
ref_db = 20
preemphasis = 0.97
hop_length = int(sampling_rate * frame_shift)
win_length = int(sampling_rate * frame_length)
n_mels = 8... | [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
d12073849a04a0418ceebefbbd28dba15b9a9086 | bde6ed092b7b29703737e11c5a5ff90934af3d74 | /hackerrank/30-days-of-code/day22.py | 3692eb9c7775e83b659713b768a2fa6812c9da0b | [] | no_license | takecian/ProgrammingStudyLog | 2ab7ea601e0996b3fa502b81ec141bc3772442b6 | 94485d131c0cc9842f1f4799da2d861dbf09b12a | refs/heads/master | 2023-04-28T16:56:18.943574 | 2023-04-18T06:34:58 | 2023-04-18T06:34:58 | 128,525,713 | 4 | 0 | null | 2022-12-09T06:15:19 | 2018-04-07T12:21:29 | Python | UTF-8 | Python | false | false | 951 | py | class Node:
def __init__(self, data):
self.right = self.left = None
self.data = data
class Solution:
def insert(self, root, data):
if root == None:
return Node(data)
else:
if data <= root.data:
cur = self.insert(root.left, data)
... | [
"takecian@gmail.com"
] | takecian@gmail.com |
57228292fe41800007162ca6be34000fa2208823 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology.py | 0838d2b70b2837816c9f5e03ae5813cc13404e92 | [
"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,821 | 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 |
f864ade49aab086a7a31f2e135fad9a46cdb13ca | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2425/60631/272083.py | 5ac84ac36934d8e5049118c3115c584027eceaf7 | [] | 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 | 376 | py | t=int(input())
for ti in range(t):
si=input().split(' ')
n=int(si[0])
k=si[1]
s=input().split(' ')
for i in range(n):
if i+1==n:
break
lo=int(s[i])-int(k)
hi=int(s[i+1])-int(k)
if lo*hi <0:
if hi+lo>0:
print(s[i])
el... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
798069de8b0f9e0ce67fbbced24721a901e7d47c | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5766201229705216_0/Python/bponsler/binary.py | b5e3209f540bab8969cf4715b64d40daee21ea46 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py | from sys import stdin
def addToTree(items, tree):
treeItem0 = tree.get(items[0], [])
treeItem1 = tree.get(items[1], [])
treeItem0.append(items[1])
treeItem1.append(items[0])
tree[items[0]] = treeItem0
tree[items[1]] = treeItem1
return tree
def countChildren(tree, node, visited=None):
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
b60d9dcf9a73cb0bc79ae108a7050edd0b8d277c | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_9/glljos003/question2.py | 21e349f32092b4b61fac4704fcb4b74a41414501 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | choice_input = input("Enter the input filename:\n")
choice_output = input("Enter the output filename:\n")
input_file = open(choice_input, "r")
output_file = open(choice_output, "w")
width = eval(input("Enter the line width:\n"))
string = input_file.read()
x = string.splitlines(True)
string = "".join(x)
parag... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
5f19f916ce55cb6e965e8125fbe30a94008013c9 | 88ae8695987ada722184307301e221e1ba3cc2fa | /v8/tools/release/list_deprecated.py | 3549ecd427e785df1a537870920d2a6b5cb18bc2 | [
"BSD-3-Clause",
"SunPro",
"Apache-2.0"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 6,376 | py | #!/usr/bin/env python3
# Copyright 2018 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
from datetime import datetime
import re
import subprocess
import sys
from pathlib import Path
import logging
from mu... | [
"jengelh@inai.de"
] | jengelh@inai.de |
35b61c03110c01137c01c1f734774cc7bd7e4811 | 2de1934821e11edaf8c4cbf4993f5138a17b20f2 | /tasks/migrations/0007_remove_project_dedline.py | 8a4e6215bab5d342f332ea44dcdd89d9285d449d | [] | no_license | jonqwerty/taskmanager | e39c0cc5b27619bd21e6d064dda6d779337cf9e0 | 04a8a2672ae50f726bab3f7b9e794e544b9c2bd2 | refs/heads/main | 2023-01-03T09:54:48.832504 | 2020-10-28T19:07:49 | 2020-10-28T19:07:49 | 301,083,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # Generated by Django 3.0.2 on 2020-10-18 09:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tasks', '0006_project_dedline'),
]
operations = [
migrations.RemoveField(
model_name='project',
name='dedline',
),
... | [
"you@example.com"
] | you@example.com |
e3d450aa45d3d9aff94356466a82ee5821f57f30 | 4ac9cf4c921e71ad4a5308b6de4900051fc6e162 | /MAIN/tasks/Others.py | e8a4911ca01a52171db6036d33b84b96eeba58a2 | [] | no_license | heyuantao/ACMTOOLS | 0928cb889222746dc20e677728c8b6816e28b2a0 | cd0c7dee272dc6b14c496cf02bfbbce863acfd59 | refs/heads/master | 2022-12-09T22:43:39.326033 | 2020-05-10T12:46:04 | 2020-05-10T12:46:04 | 172,885,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from celery.task import Task
import time
class HelpTask(Task):
name = 'help_task'
def run(self,*args,**kwargs):
print('start course task')
time.sleep(10)
print(kwargs)
#runTask(1000)
print('end') | [
"he_yuan_tao@163.com"
] | he_yuan_tao@163.com |
d20d7ab7c1a3393d6cd4d838f2875087cc0e35db | 4419d7b3479ea5ae7a76d6153fd21f8cec78a406 | /virtual/lib/python3.6/site-packages/werkzeug/contrib/cache.py | 6f676a3e100fa3a56d4d4dd16294b4b635dc2bf1 | [
"MIT"
] | permissive | monicaoyugi/News-Updates | 276f2e5b2e7ec1d1bc21786160f6df32d5f0d8c2 | 2652b28153f36284447952fdef4c63496af90418 | refs/heads/master | 2020-12-26T08:36:37.365993 | 2020-02-07T13:03:51 | 2020-02-07T13:03:51 | 237,449,423 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 32,117 | py | # -*- coding: utf-8 -*-
"""
werkzeug.contrib.cache
~~~~~~~~~~~~~~~~~~~~~~
The main problem with dynamic Web sites is, well, they're dynamic. Each
time a user requests a page, the webserver executes a lot of code, queries
the database, renders templates until the visitor gets the page he sees.
... | [
"monicaoyugi@gmail.com"
] | monicaoyugi@gmail.com |
56218f17d65a63ee7913d4b8454847a721beaa95 | 7eaeb56a2ed19a30559dac8673a979fc64d76e8a | /tests/tools/tool_arguments_tests.py | 39b5ccdebbc496889cfe8388bf70b1bf22c41973 | [
"MIT"
] | permissive | avast/retdec-regression-tests-framework | 95935b6a66bee66f58a9f2ea1296f747536aeaae | f8f43c0870df638d114f685a30f8abf8b51d6d1e | refs/heads/master | 2023-05-30T18:52:37.332065 | 2022-12-05T14:37:40 | 2022-12-05T14:37:40 | 113,967,405 | 8 | 5 | MIT | 2020-04-07T12:28:40 | 2017-12-12T09:01:52 | Python | UTF-8 | Python | false | false | 8,409 | py | """
Tests for the :mod:`regression_tests.tools.tool_arguments` module.
"""
import os
import unittest
from regression_tests.filesystem.directory import Directory
from regression_tests.filesystem.file import File
from regression_tests.filesystem.file import StandaloneFile
from regression_tests.test_settings import ... | [
"petr.zemek@avast.com"
] | petr.zemek@avast.com |
9698b7d231d1791a36e5749d1078d6cc01552709 | ad1a89d4b3e850b114df494c7d06f312105cd7c8 | /settings/dev_files.py | 7b05f2856fcbb2851bbba8018ea462d49c078f5f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | brenns10/fluffy | 22436bc958ce6c4f2bf06038e426dc74b82a0ee9 | a63f81bde64901416e6c575c4c8db2fbce6c346d | refs/heads/master | 2021-08-11T18:56:31.179119 | 2017-11-14T02:47:00 | 2017-11-14T02:47:00 | 110,591,621 | 0 | 0 | null | 2017-11-13T19:25:15 | 2017-11-13T19:25:14 | null | UTF-8 | Python | false | false | 724 | py | # fluffy-specific configuration options
# storage backend (how are the files stored after being uploaded?)
STORAGE_BACKEND = {
'name': 'file',
'object_path': 'tmp/object/{name}',
'html_path': 'tmp/html/{name}',
}
# branding
BRANDING = 'fluffy'
CUSTOM_FOOTER_HTML = None
# URL patterns
HOME_URL = 'http://lo... | [
"ckuehl@ocf.berkeley.edu"
] | ckuehl@ocf.berkeley.edu |
3184f30af2cdc68191cc157d51f74446c3d7a8dd | 2494ff34517bc6d631190dd22e51c50f5c9e5a21 | /build/lib/multi_dataset_crystalography/dataset/sample_loader.py | 9e2f869ccee30a9cbaabaaa0add39276d04b826b | [] | no_license | ConorFWild/pandda | fd6afb7d441fc93e6bf666f5d7f93d80d7a85fed | f57e825695ec0d0362e24a7cda26347bb24a9ebd | refs/heads/master | 2020-12-14T02:32:40.208438 | 2020-08-06T08:26:02 | 2020-08-06T08:26:02 | 234,607,199 | 3 | 2 | null | 2020-02-18T15:24:52 | 2020-01-17T18:04:33 | Python | UTF-8 | Python | false | false | 51,591 | py | from __future__ import print_function
from collections import OrderedDict
import traceback
import sys, copy, gc
import time
import logging
logger = logging.getLogger(__name__)
import numpy
from scipy import spatial
from joblib import Parallel, delayed
import iotbx.pdb, iotbx.mtz, iotbx.ccp4_map
import cctbx.maptb... | [
"conor.wild@sky.com"
] | conor.wild@sky.com |
07a7d518ed206c667703c46802b42a922321203a | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/BW-NetworkServerFault.py | bae054d0af9dd830995f3a00d036d02eb1102468 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 30,143 | py | #
# PySNMP MIB module BW-NetworkServerFault (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BW-NetworkServerFault
# Produced by pysmi-0.3.4 at Wed May 1 11:42:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
6eef0c5ebdb3cdd47d6bb998056cf17b8f881c47 | aec23242da73e6a1a67dd80263b2f4628a97251f | /test/integ/linktest.py | f50b7288897fb88260542746ee9e689b74be74ad | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | wenzowski/h5serv | 81b245faba6c57c591c4deda7091f0233e80105d | aac69032aa9abd596e9ea7897372d86472d9be0d | refs/heads/develop | 2020-12-26T00:07:53.830528 | 2016-08-30T15:17:48 | 2016-08-30T16:06:26 | 66,952,480 | 0 | 0 | null | 2016-08-30T15:15:27 | 2016-08-30T15:15:27 | null | UTF-8 | Python | false | false | 18,566 | py | ##############################################################################
# Copyright by The HDF Group. #
# All rights reserved. #
# #
# Th... | [
"jreadey@hdfgroup.org"
] | jreadey@hdfgroup.org |
8ab10d663bdfbf0e0308ded035ba9e5f154f2c15 | add0bb7a309ea346614d7f560a24e653d3d0ff67 | /test/人机交互/数据交互.py | 03219ac54f95ceed913795f764cdd147bd7f0d56 | [] | no_license | 1572903465/PythonProjects | 935aff08d5b3d3f146393764a856369061513d36 | 73576080174f72ea1df9b36d201cf3949419041b | refs/heads/master | 2023-06-10T15:50:49.178112 | 2021-07-05T15:42:53 | 2021-07-05T15:42:53 | 301,328,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | from flask import Flask, render_template, g, request, url_for, session, redirect
from dataclasses import dataclass
app = Flask(__name__, static_url_path="/")
app.config['SECRET_KEY']="sdfklas0lk42j"
@dataclass
class User:
id: int
username:str
password:str
users = [
User(1,"Admin","123456"),
User(... | [
"1572903465@qq.com"
] | 1572903465@qq.com |
a6b7b62c9f1ac79f10ddf614af9f7bf20439ed33 | 0d2c2ffe431b159a87bcd78c97147422dce8d778 | /GUI学习/01PyQt5快速开发与实战/ch06信号与槽/05事件处理机制01.py | 43465b6595902f3927dcab02d7536babf580a255 | [] | no_license | YuanXianguo/Python-Project-ITC | 9e297fc1e1e8ec2b136e6e8b1db0afaaba81c16c | afd14cbe501147ec66b4aa0c1c7907b3ae41d148 | refs/heads/master | 2020-04-16T13:54:33.727825 | 2019-12-20T02:16:52 | 2019-12-20T02:16:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,225 | py | import sys
from PyQt5.QtCore import QEvent, QTimer, Qt
from PyQt5.QtWidgets import QApplication, QMenu, QWidget
from PyQt5.QtGui import QPainter
class Widget(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle('Event Demo')
self.setGeometry(300, 300, 300, 200)
sel... | [
"736913978@qq.com"
] | 736913978@qq.com |
b4818ae7a9622cf19a01a92d9c769226d31d19a8 | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/Test_001/test_link_20201125110915.py | a02ef9ae464982e8e63a84a477479ab6fcfb08ce | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py |
import allure
@allure.link("https://www.baidu.com",name="链接地址")
def test_link_a():
print("测试连接的测试用例")
testcase="https://www.baidu.com"
@allure.testcase
def test_testcase():
print("这个是测试用例地址") | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
65ed6f471c70db25d6ea06054f3ba7f8adeaa18b | fa798e1779af170ee31bfd710a6faca9904a99ef | /7day/7. ex1.py | c141f66dd49c7579bdaf015710ae54329f342ae1 | [] | no_license | itwebMJ/pythonStudy | 1c573f98b78ce8c9273ae17a44d59a5a26c61b2c | 8ea3112c9c587b6aeb8a5fa6ef715053286fbaae | refs/heads/master | 2023-06-28T05:37:29.239010 | 2021-08-06T08:01:54 | 2021-08-06T08:01:54 | 375,879,186 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,657 | py | '''
프로그램 시작되면 memo 디렉토리 없으면 새로 생성.(맨처음만)
메모장
1. 쓰기
파일명 => 중복 : 덮어쓰기 : 기존 내용 지우고 작성
이어쓰기 : 기존 내용 살려서 뒤에 이어씀. =>키보드로 내용입력('/exit':입력 멈춤) 파일에 씀 =>파일 닫고 종료
새이름 : 새 파일 생성
2. 읽기
memo 디렉토리의 파일 목록 출력 => 파일 선택 => 그 파일을 읽기 모드로 오픈해서 파일 내용 읽어와서 출력
3. 삭제
memo 디렉토리의 파일 목록 출력 => 삭제... | [
"rlaalwn61@naver.com"
] | rlaalwn61@naver.com |
fdd8a87f35d8ed1df1de0ea2daeaafd48ffa105a | 7a53f6c98c9a15772632dd1346a5507f01cf462c | /brick_server/__init__.py | f03901f54b3bffbb5bff2d157c921b74e481ac92 | [
"MIT"
] | permissive | jbkoh/brick-server | 59c1642665b908b74f344a7a1cacdae66c7caf59 | 945196e4915a7ae65cf60344eab146ee4926d9dd | refs/heads/master | 2020-04-14T21:48:36.888356 | 2019-03-29T23:30:00 | 2019-03-29T23:30:00 | 164,140,827 | 0 | 3 | MIT | 2019-03-26T19:39:37 | 2019-01-04T18:19:52 | Python | UTF-8 | Python | false | false | 2,301 | py | import pdb
import json
from flask import Flask
from flask_injector import FlaskInjector
from apispec import APISpec
from apispec.ext.marshmallow import MarshmallowPlugin
from apispec_webframeworks.flask import FlaskPlugin
from .apis import blueprint, entity_api
configs = json.load(open('configs/configs.json'))
API_V... | [
"bk7749@gmail.com"
] | bk7749@gmail.com |
e98a53c426404b9b4481a4b5586e8ce40502a809 | 5b4c803f68e52849a1c1093aac503efc423ad132 | /UnPyc/tests/tests/CFG/2/return/return_for_for_.py | 5e5fb0ffb37383d7173273d0c71be087d01fdbb8 | [] | no_license | Prashant-Jonny/UnPyc | 9ce5d63b1e0d2ec19c1faa48d932cc3f71f8599c | 4b9d4ab96dfc53a0b4e06972443e1402e9dc034f | refs/heads/master | 2021-01-17T12:03:17.314248 | 2013-02-22T07:22:35 | 2013-02-22T07:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | def f():
for i in range(3):
for i in range(3):
return
| [
"d.v.kornev@gmail.com"
] | d.v.kornev@gmail.com |
f61a44374d1cea30adaa69d4941b90640bbdb742 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_7931.py | 6c90b1af3190bb66e38e849cbae91192e04bcb7c | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | # IPython: How to save 2 ranges of lines with the save magic command?
save two-line-ranges.py 1-4 8-14
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4c35192d5f0030784b18b331608a102726fba307 | 81d8e62f4f5cb921c129777653b139a75dbc64a3 | /module1/file1.py | f6c4acd4666db1d4527d30b6efdc8637b0c0ec39 | [] | no_license | sambapython/python21 | 96ef61c9e6bf75ed93ce2ea9c36028a4ff448ae7 | 6ed5c8fb79dfcd3777b063d1bf539a3ff80b9722 | refs/heads/master | 2020-07-31T08:25:37.699753 | 2016-12-18T10:57:30 | 2016-12-18T10:57:30 | 73,603,370 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | print "program started"
def fun():
return "this is fun in file1"
print "other statements in program"
print "program ended" | [
"sambapython@gmail.com"
] | sambapython@gmail.com |
3a1f2199bc64a36f4049e02a0ae900a3fecdef66 | bae75bf1de75fb1b76e19b0d32c778e566de570a | /smodels-database/13TeV/ATLAS/ATLAS-SUSY-2016-26/orig/InputFile_HepData_Reader.py | b11122a202cb33cc8d5dcf13d5a87699d16bbb08 | [] | no_license | andlessa/RDM | 78ae5cbadda1875c24e1bb726096b05c61627249 | ac6b242871894fee492e089d378806c2c2e7aad8 | refs/heads/master | 2023-08-16T00:47:14.415434 | 2021-09-21T20:54:25 | 2021-09-21T20:54:25 | 228,639,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,611 | py | # This script reads files given as 'input' format in the HEP data website.
# e.g. see ATLAS susy analyses.
"""
This function reads the X,Y and values from the input file.
It returns the three corresponding lists of objects.
First it creates a general list, for which the entries are the lines that are read, in form of... | [
"wolfgang.waltenberger@gmail.com"
] | wolfgang.waltenberger@gmail.com |
f89ffcd21d944932d0bc3df067c549070844ae55 | 2f9c2bb2c8d32368f90ef798c08848cec4ea2ebd | /jina/types/message/common.py | b3b3245b299fc6ce48d10701153c5fd2fd5037a6 | [
"Apache-2.0"
] | permissive | automation555/jina | 9e0aafd9d894bd5995f091ea0f8566a9ed0f781d | 337526c00265190fc45235b80df10c0a75b51c09 | refs/heads/master | 2023-06-03T04:33:18.460871 | 2021-06-17T08:51:21 | 2021-06-17T08:51:21 | 377,765,051 | 0 | 0 | Apache-2.0 | 2021-06-17T08:55:30 | 2021-06-17T08:50:48 | Python | UTF-8 | Python | false | false | 1,434 | py | from . import Message
from ..request import Request
from ...proto import jina_pb2
_available_commands = dict(
jina_pb2.RequestProto.ControlRequestProto.DESCRIPTOR.enum_values_by_name
)
__all__ = ['ControlMessage']
class ControlMessage(Message):
"""
Class of the protobuf message.
:param command: Com... | [
"rajashree.patil@embold.io"
] | rajashree.patil@embold.io |
a5f75c4b6cd99db91c0f65af43367b7e6670c70b | 2315c570965da85ddb276840ee158319b2fb9df4 | /tests/suggestions/test_suggest_event_webcast_controller.py | e5926bcfccf85118c0e2706f07a1dcd2e02f1fa6 | [
"MIT"
] | permissive | enterstudio/the-blue-alliance | c1779676f809471d39486d077c834c7e78520467 | b53f752fe1f059b4b6f91c841e1865a6c6b81268 | refs/heads/master | 2022-11-26T06:50:11.159102 | 2017-02-03T16:53:26 | 2017-02-03T16:53:26 | 80,987,951 | 0 | 0 | MIT | 2022-11-19T06:05:18 | 2017-02-05T11:19:22 | HTML | UTF-8 | Python | false | false | 4,945 | py | from datetime import datetime
import unittest2
import webapp2
import webtest
from google.appengine.ext import ndb
from google.appengine.ext import testbed
from webapp2_extras.routes import RedirectRoute
from consts.district_type import DistrictType
from consts.event_type import EventType
from controllers.suggestions.... | [
"noreply@github.com"
] | enterstudio.noreply@github.com |
4cf4469143aebe731974ed947d501afecb9cceab | 5636cb0c282d03e91a830d30cec3bd54c225bd3b | /TP_SPE_Supplementaires/Mines_Ponts_2015/programmes/TD02_piles_Patricia.py | 23095a301d660d6e8b3c515c2a69d854cfbce056 | [] | no_license | xpessoles/Informatique | 24d4d05e871f0ac66b112eee6c51cfa6c78aea05 | 3cb4183647dc21e3acbcbe0231553a00e41e4e55 | refs/heads/master | 2023-08-30T21:10:56.788526 | 2021-01-26T20:57:51 | 2021-01-26T20:57:51 | 375,464,331 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,542 | py | ### TD02 - piles
# question 1 : fonction est_vide
def est_vide(pile):
return len(pile)==0
# >>> est_vide((1,2,3))
# False
# >>> est_vide(())
# True
# question 2 : fonction est pleine
def est_pleine(pile,nb):
return len(pile)==nb
# >>> est_pleine((1,2,3),3)
# True
# >>> est_pleine((1,2,3),6)
# Fals... | [
"xpessoles.ptsi@free.fr"
] | xpessoles.ptsi@free.fr |
3dc0ba05a8b84dc198cec8fdc9cb9f8b08f0af92 | c91775afdc25f8897c6839cf8294869f3e928083 | /PythonFiles/snowmass_cfg_Bj_14TEV_0_300_Conf4v2_8.py | 54b77ac3a6ffa1c5ee02b194cf972c65b0cb3be4 | [] | no_license | Saptaparna/Miscellaneous | 7e6df9cdfd10d4861e2e382b1837dbd4c26fb249 | b954189d85e56a02fe257b5f5cbd779365719c00 | refs/heads/master | 2021-01-23T13:29:30.283308 | 2017-12-20T08:26:37 | 2017-12-20T08:26:37 | 42,525,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,275 | py | import FWCore.ParameterSet.Config as cms
import FWCore.PythonUtilities.LumiList as LumiList
import FWCore.ParameterSet.Types as CfgTypes
#
# Parameters that can be set via command line
# when submitting Condor jobs
#
isMc_settable = True
isSignalMc_settable = False
def FindFile(name):
fname = 'file.tx... | [
"saptaparna@gmail.com"
] | saptaparna@gmail.com |
26d9469054aaa2d8af40439d3ff87f189436e3f0 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_58/run_cfg.py | f7490b8599e07eb7ffec34a1228ef176f43b870c | [] | 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,494 | 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/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
add097c8c0bbfc990db0229b131cc4d6e9aee2c8 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/terraform/checks/resource/azure/test_AppServiceJavaVersion.py | b5041c7eaa0dafe935c47390d2a7a832719f6014 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,421 | py | import os
import unittest
from checkov.runner_filter import RunnerFilter
from checkov.terraform.runner import Runner
from checkov.terraform.checks.resource.azure.AppServiceJavaVersion import check
class TestAppServiceJavaVersion(unittest.TestCase):
def test(self):
runner = Runner()
current_dir =... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
461c936aa43dfc116d3a4e6bf313f171ee477ef0 | c05ed32f1ef7e1eb7d73efd674e7d1fd710ad171 | /daily-coding-problems/problem140.py | 840bf38914b4da57f1be1d0cb9995f9fdd704039 | [] | no_license | carlhinderer/python-exercises | c8367517fdf835fa1117f96dbfee3dccc596afa6 | 4e09bbb4c4e2bd5644ed50e997db9f3c289a18f7 | refs/heads/master | 2021-06-01T16:17:00.389134 | 2021-02-09T18:21:01 | 2021-02-09T18:21:01 | 150,902,917 | 0 | 0 | null | 2021-04-20T20:33:11 | 2018-09-29T21:03:36 | Python | UTF-8 | Python | false | false | 386 | py | # Problem 140
# Medium
# Asked by Facebook
#
# Given an array of integers in which two elements appear exactly once and all other elements appear
# exactly twice, find the two elements that appear only once.
#
# For example, given the array [2, 4, 6, 8, 10, 2, 6, 10], return 4 and 8. The order does not matter.
#... | [
"carl.hinderer4@gmail.com"
] | carl.hinderer4@gmail.com |
e848dbcd393d04149e44c247f5a4581502207f3c | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/chnjea007/question3.py | 0bc5afd1bdca7889b5168b1f137bc1c573eb5d55 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # Assignment 3 question 3
message = input("Enter the message:\n")
repeat = eval(input("Enter the message repeat count:\n"))
thickness = eval(input("Enter the frame thickness:\n"))
for r in range (thickness):
print("|" * r,"+", "-" * ((len(message) + 2) + (thickness * 2) - 2 - r * 2), "+", "|" * r, sep = "")
for r i... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
2b2d0ae0edba4a1583fff16fce9629c63291e3dc | 520b9a66a71e16c77beeaa28d9bc59a03cf77e79 | /shop/models.py | 92ecbc32c3cb702262f8b6657c6672214f313b16 | [] | no_license | gmachielsen/MadebyLoni | 0e40a6cc970a6ef7cc414e6e1f9e640dcbba5076 | e13706e7d61780ac0b1af9f6f8caf7f908d9ace3 | refs/heads/master | 2022-12-10T18:37:25.522641 | 2020-02-04T21:48:55 | 2020-02-04T21:48:55 | 238,231,154 | 0 | 1 | null | 2022-12-08T03:33:22 | 2020-02-04T14:52:57 | JavaScript | UTF-8 | Python | false | false | 2,476 | py | from django.db import models
from django.urls import reverse
from django.conf import settings
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=250, unique=True)
slug = models.SlugField(max_length=250, unique=True)
description = models.TextField(blank=True)
image = models.... | [
"g.machielsen@gmail.com"
] | g.machielsen@gmail.com |
0d139c974953af96e31cf51435326ff0a8ff5944 | 747febe786dd6b7fd6c63cfe73dbe3023354daa8 | /src/tt_personal_messages/tt_personal_messages/tests/test_operations.py | 212e985f4bae43ff752463c31c6c88ea1501c1a2 | [
"BSD-3-Clause"
] | permissive | the-tale/the-tale | 4e4b8d91dc873a5fb935fe58e9721a877baa6d3f | e8450bd2332344da805b1851e728da5a3e5bf0ef | refs/heads/develop | 2023-08-01T13:53:46.835667 | 2022-12-25T18:04:56 | 2022-12-25T18:04:56 | 1,949,167 | 98 | 52 | BSD-3-Clause | 2023-02-15T18:57:33 | 2011-06-24T18:49:48 | Python | UTF-8 | Python | false | false | 35,758 | py |
from aiohttp import test_utils
from tt_web import postgresql as db
from .. import relations
from .. import operations
from . import helpers
class OperationsTests(helpers.BaseTests):
async def check_account_created(self, number=1, id=666, new_messages_number=0, contacts=[]):
result = await db.sql('SEL... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
6d2be8063c9baf1a1d101e3bc3a6370ab68af4a9 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class941.py | b998894584f82c1b8d88727a51595834cf9c1b86 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | # qubit number=5
# total number=37
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as np
import networkx as ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
826f136ed78cf1861b035cddfa114d9947177a7a | 39fa403d46a4456a07c761e1aaa8af2d418c5f87 | /apps/data_taking_scripts/2015-10-jpl-park/sweep_and_stream_at_min_s21_two_groups.py | 8cc78c9c3ad1e76c37429bd861fd77636dfed4a8 | [
"BSD-2-Clause"
] | permissive | vapor36/kid_readout | 72d94d96e964d6a2eef3aa57ed6fc814946cfe46 | 07202090d468669200cab78297122880c1c03e87 | refs/heads/master | 2020-12-12T13:32:47.267337 | 2018-11-11T15:36:40 | 2018-11-11T15:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,481 | py | __author__ = 'gjones'
import time
import sys
import numpy as np
from kid_readout.roach import heterodyne
from kid_readout.utils import data_file, sweeps
from kid_readout.equipment import hittite_controller, lockin_controller
hittite = hittite_controller.hittiteController(addr='192.168.0.200')
lockin = lockin_contro... | [
"glenn.caltech@gmail.com"
] | glenn.caltech@gmail.com |
6c0a86308a5a8a1586671cc3b900cc1e6306f8d9 | 028d788c0fa48a8cb0cc6990a471e8cd46f6ec50 | /Python-Web/pythons/pythons/pythons_auth/forms.py | 37236c9031fdea32b32534fdb04a213e7b4490ee | [] | no_license | Sheko1/SoftUni | d6b8e79ae545116f4c0e5705ad842f12d77a9c9d | a9fbeec13a30231b6a97c2b22bb35257ac1481c0 | refs/heads/main | 2023-07-13T15:39:48.826925 | 2021-08-21T12:51:02 | 2021-08-21T12:51:02 | 317,266,200 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth.forms import AuthenticationForm
from django.core.exceptions import ValidationError
class LoginForm(AuthenticationForm):
user = None
username = forms.CharField(
max_length=150
)
password = forms.Cha... | [
"martinkypar@gmail.com"
] | martinkypar@gmail.com |
92e841ff0bf1be4e124ac812dc415c948c1bca8e | f51c6d0cebb27c377ce9830deec4b727b9b2ee90 | /AI/04_Plot/heatmap/heatmap1.py | a737755c2ee0a26831af3838ed9931f17c38f058 | [] | no_license | dbbudd/Python-Experiments | 1c3c1322583aaaf2016a2f2f3061e6d034c5d1c8 | b6d294bf11a5c92b8578d16aa2f63cc27fc47b07 | refs/heads/master | 2020-04-17T02:21:36.693593 | 2019-01-17T00:18:34 | 2019-01-17T00:18:34 | 166,130,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | #!/usr/bin/env python
import matplotlib.pyplot as plt
import matplotlib
import matplotlib.patches as mpatches
import matplotlib.cm
import pylab as pl
data = pl.random((25,25)) # 25x25 matrix of values
fig = plt.figure()
ax = fig.add_subplot(111, xlim = (0,3), ylim = (0,3))
pl.pcolor(data)
pl.colorbar()
pl.show() | [
"dbbudd@gmail.com"
] | dbbudd@gmail.com |
550f9a58d50db74c3fb57272a3a0564aca4205a3 | 3c52eda991b4a37e2b807dd1e05f07139637c758 | /examples/client_server.py | 080e7b03ea846b1f8525127d5609ed971d3c8e54 | [
"Apache-2.0"
] | permissive | pgiri/pycos | ebea05b045f15f505eff5cf175798c0cf2b4a1db | 6594c311a02490ae0701fa741b508c335f305816 | refs/heads/master | 2022-12-25T21:53:15.091319 | 2022-12-18T17:27:05 | 2022-12-18T17:27:05 | 91,977,091 | 52 | 9 | NOASSERTION | 2020-02-19T01:47:09 | 2017-05-21T17:58:23 | Python | UTF-8 | Python | false | false | 888 | py | #!/usr/bin/env python
# client and server tasks communicating with message passing
# (asynchronous concurrent programming);
# see https://pycos.sourceforge.io/pycos.html for details.
import random
import pycos
def server_proc(task=None):
task.set_daemon()
while True:
msg = yield task.receive()
... | [
"pgiri@yahoo.com"
] | pgiri@yahoo.com |
daea595ccbb9c88ee865036583ea376a5607127f | 00e804d17f4882e10c192bccebc6f90d60a78162 | /test/verif.py | 1762cadff3a340214e58ca062096aac3f716d3b7 | [] | no_license | devnandito/dataProcess | 2b57006b5f39c47b292e18293db9bdecdfee0744 | b5da91184bf6d8702f74cabbef46e2b4b25b16ac | refs/heads/master | 2023-02-16T21:03:07.412468 | 2021-01-18T21:32:26 | 2021-01-18T21:32:26 | 324,022,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,499 | py | import pandas as pd, json, csv, re, os, sys
from datetime import datetime, timedelta
if __name__ == '__main__':
now = datetime.now()
ihour = now.hour
iminute = now.minute
isecond = now.second
start = timedelta(hours=ihour, minutes=iminute, seconds=isecond)
BASE_DIR = os.path.dirname(os.path.di... | [
"fhersa@gmail.com"
] | fhersa@gmail.com |
40c97a61ac24b8475ed30e89689f8f2dea1aff73 | 1aa94863e9c2667ab937ebc23bcbe467c1c17424 | /homeworks/hw_op_1/parentheses.py | 306f3a5a08bf894fce5a98212565cfb7a0f29036 | [] | no_license | cyr1z/learn_python | 9d6648f10a1babd3bcff7cb3e19e63942518953a | 188ae51737f3b47e9acaaebf9a91530b2fa60194 | refs/heads/master | 2022-12-09T05:24:53.494187 | 2020-09-05T20:17:20 | 2020-09-05T20:17:20 | 281,864,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | # 3. Write a Python class to find validity of a string of parentheses, '(', ')', '{', '}', '[' and '].'
# ' These brackets must be close in the correct order, for example "()" and "()[]{}" are valid '
# but "[)", "({[)]" and ' '"{{{" are invalid.
class Parentheses:
open_list = ["[", "{", "("]
close_list = ["]"... | [
"cyr@zolotarev.pp.ua"
] | cyr@zolotarev.pp.ua |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.