blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1b1026d8d33928d11c7056e2bd7b68180380afcb | 91d09c67f88cf5002327c27548dd393e3b12df03 | /users/urls.py | 3a5d4dcf1a2242d5eb6e378494db0dafdf1856cf | [] | no_license | saturnisbig/blogproject | 479b733f6aaa353fb58195fafec259de1e41678d | 8804384ad88e4f6f303541dbcc683ad018324c30 | refs/heads/master | 2022-12-10T23:00:15.085834 | 2019-08-18T08:40:42 | 2019-08-18T08:40:42 | 124,767,941 | 0 | 0 | null | 2022-12-08T05:45:41 | 2018-03-11T15:02:28 | CSS | UTF-8 | Python | false | false | 274 | py | #!/usr/bin/env python
# _*_ coding: utf-8 _*_
from django.conf.urls import url
from users import views
app_name = 'users'
urlpatterns = [
url(r'^profile/$', views.profile, name='profile'),
url(r'^profile/change/$', views.change_profile, name='change_profile'),
]
| [
"i.kenting@gmail.com"
] | i.kenting@gmail.com |
7f120ab7c1b9fd2eddfd7b92d2cae435cca71e83 | 4fc21c3f8dca563ce8fe0975b5d60f68d882768d | /Darlington/phase1/python Basic 1/day 4 solution/qtn2.py | 973e0aa68857d7f3cbfdbeb6ed8c7d1e20dabb88 | [
"MIT"
] | permissive | Uche-Clare/python-challenge-solutions | 17e53dbedbff2f33e242cf8011696b3059cd96e9 | 49ede6204ee0a82d5507a19fbc7590a1ae10f058 | refs/heads/master | 2022-11-13T15:06:52.846937 | 2020-07-10T20:59:37 | 2020-07-10T20:59:37 | 266,404,840 | 1 | 0 | MIT | 2020-05-23T19:24:56 | 2020-05-23T19:24:55 | null | UTF-8 | Python | false | false | 202 | py | #program to count number of 4
import math
def list_count_4(nums):
count = 0
for num in nums:
if num == 4:
count = count + 1
return count
print(list_count_4([1, 4, 6, 7, 4, 5, 4, 4])) | [
"darlingtonchibuzor64@gmail.com"
] | darlingtonchibuzor64@gmail.com |
55f87d8c96b29560bb04f2e49aad8726bf02a562 | 660e35c822423685aea19d038daa8356722dc744 | /account_invoice_line_standalone/invoice.py | 3aac84a7c0ec0a747bf99428d2e801b777a31f14 | [] | no_license | saifkazi/tryton_modules | a05cb4a90ae2c46ba39d60d2005ffc18ce5e44bb | 94bd3a4e3fd86556725cdff33b314274dcb20afd | refs/heads/main | 2023-05-05T12:20:02.059236 | 2021-05-19T10:46:37 | 2021-05-19T10:46:37 | 368,768,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | # This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.transaction import Transaction
from trytond.pool import PoolMeta
class Invoice(metaclass=PoolMeta):
__name__ = 'account.invoice'
@classmethod
def __... | [
"saif.kazi76@gmail.com"
] | saif.kazi76@gmail.com |
3df944b45ac66276c48eadcd0d825f7ea50e5b7c | 90817e9d91df4673ae06eac02add165edcbac2ad | /AbstractUser/migrations/0008_auto_20170602_2306.py | e4c254d7ac2d18112e594af23f43860519df1d68 | [] | no_license | Jyonn/QingningWork | 8f19d34afcbb7d97e73091fc4ccfa0e2bec25521 | 5a48dd150ab11951d5084b9739777ff4c342438c | refs/heads/master | 2021-06-22T10:46:11.458104 | 2017-09-05T04:34:22 | 2017-09-05T04:34:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-06-02 23:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('AbstractUser', '0007_abstractuser_introduce'),
]
operations = [
migrations.Al... | [
"lqj679ssn@qq.com"
] | lqj679ssn@qq.com |
b4a17c6ce4806ea2c70cf001ae759a492bb0c91c | 51e51297ac2edfd7309d3b9f56d66b6eecad2baa | /tests/worker_test.py | 2a21aa8f7f07d81bf0932e8b565ca9addc1c2fe6 | [
"BSD-3-Clause"
] | permissive | ailesgrises/aiohttp | 19401d434f9bc7962f45ab7aad86bf0e24420fab | 2cf582eb4a00fe7dd88e5a546a36bbbfbec0170c | refs/heads/master | 2021-01-09T08:14:23.330898 | 2014-02-25T12:10:41 | 2014-02-25T12:10:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,945 | py | """Tests for aiohttp/worker.py"""
import asyncio
import unittest
import unittest.mock
from aiohttp import worker
from aiohttp.wsgi import WSGIServerHttpProtocol
class TestWorker(worker.AsyncGunicornWorker):
def __init__(self):
self.connections = {}
class WorkerTests(unittest.TestCase):
def setUp(... | [
"fafhrd91@gmail.com"
] | fafhrd91@gmail.com |
370b32ada376d024a88c4b40396a2342fc4ef9a4 | 753cd066a9bd26b6c37c8d53a86c7a9c659ec18c | /tutorials/tutorials/pytorch/observing_tensors/tests/test_tuto_observing_tensors.py | b16dbc89be54070ee72bfcda5485b8c656938dc7 | [
"MIT"
] | permissive | graphcore/examples | ac872015808ed2a913d4d7bf0d63202ce15ebbae | e2f834dd60e7939672c1795b4ac62e89ad0bca49 | refs/heads/master | 2023-08-05T02:08:12.341836 | 2023-07-27T11:13:10 | 2023-07-27T11:13:10 | 143,977,106 | 311 | 80 | MIT | 2023-09-11T16:42:56 | 2018-08-08T07:29:17 | Python | UTF-8 | Python | false | false | 382 | py | # Copyright (c) 2021 Graphcore Ltd. All rights reserved.
from pathlib import Path
import pytest
from tutorials_tests import testing_util
working_path = Path(__file__).parent.parent
@pytest.mark.category2
@pytest.mark.ipus(1)
def test_run_default_ipu():
# Check default params
testing_util.run_command("pytho... | [
"adams@graphcore.ai"
] | adams@graphcore.ai |
726fb2896fcd06456771960f577867f6936d8cf2 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/networkx/FPythonCode/networkx.generators.mycielski.py | ca5f521cea753b22fd26eed9dd5cca11a3694baf | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,448 | py | # Copyright (C) 2010-2018 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
"""Functions related to the Mycielski Operation and the Mycielskian family
of graphs.
"""
import networkx as nx
from networkx.utils... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
08a0364c1114ec8fba63dc0d8b36330213911921 | f3b8d7de17a6ac23791bee66235b868ef1bf6515 | /ps4.py | 8d4d78d64f3a2a613a6a60bf696f2bd5d38a3607 | [
"Giftware"
] | permissive | juraj80/MIT-6.00-OCW-Problem-Sets | 1573babe7a829b8a24300122f21dba1212b4349e | 34129fb51fd13f67bfcfd97e5c2dd8c19fb9fcbf | refs/heads/master | 2021-01-02T08:17:55.270326 | 2017-08-17T14:34:20 | 2017-08-17T14:34:20 | 98,988,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,283 | py | # Problem Set 4
# Name:
# Collaborators:
# Time:
#
# Problem 1
#
def nestEggFixed(salary, save, growthRate, years):
"""
- salary: the amount of money you make each year.
- save: the percent of your salary to save in the investment account each
year (an integer between 0 and 100).
- growthRate... | [
"you@example.com"
] | you@example.com |
fcadca27cc3e00dcbbbe0336d8ab72ac9d5b48ec | b26e1704b963881e7681712c923787772ac463ec | /Intro-To-Python-Edu/lesson7/task1/functions.py | 8e6f20412678e411c18e3179170d2bc4a60463da | [] | no_license | lakshmikantdeshpande/Python-Courses | 64f8a397b727042f2662fa7597ea0e73491717f3 | d15364b42c182d3487532853bde37deb48865494 | refs/heads/master | 2021-09-02T06:51:19.490674 | 2017-12-31T06:55:53 | 2017-12-31T06:55:53 | 94,890,325 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | def hello_world(): # function named my_function
print("Hello, World!")
for i in range(5):
hello_world() # call function defined above 5 times
print('I want to be a function')
print('I want to be a function')
print('I want to be a function')
def fun():
for i in range(3):
print('I want to be a ... | [
"lakshmikantdeshpande@gmail.com"
] | lakshmikantdeshpande@gmail.com |
1ef3b2c006b31f50836361fc3da674b694f32d52 | ec959e13aaaa5ea8f597debaf34bba18e084c915 | /deep_learning_adv_detector/evaluation/shots_evaluation.py | 2723ebf221f38ac2615121ce5e7b3527bfc2ae87 | [] | no_license | machanic/MetaAdvDet | ecf2a116a29864778a00ffb674dddaa87456b2d9 | e90fbdb3520c1b4000aff9e62ace1bdafad72082 | refs/heads/master | 2023-05-09T21:55:56.855095 | 2021-06-07T08:53:09 | 2021-06-07T08:53:09 | 200,833,044 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,114 | py | import os
import re
from collections import defaultdict
from torch.utils.data import DataLoader
import torch
from config import PY_ROOT, IN_CHANNELS, IMAGE_SIZE
from evaluation_toolkit.evaluation import finetune_eval_task_accuracy
from networks.conv3 import Conv3
from dataset.meta_task_dataset import MetaTaskDataset
f... | [
"sharpstill@163.com"
] | sharpstill@163.com |
723816392ed8356c2e70d9f3d4edd91218d0a165 | 7e8c799037f47345cb12a6fc7911610d7ac63640 | /blog/abstract_models.py | 7f69dfecd99b70a204bd19c1714589ddd861d86a | [] | no_license | SonerArslan2019/Django_Blog_kilicarslan | bcfd953dfc0d530217c02ff9bf1428160a63e68e | 8959708689b830c387c76414545add2474beeddd | refs/heads/master | 2023-06-04T06:19:28.209246 | 2021-06-27T14:50:40 | 2021-06-27T14:50:40 | 346,781,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from django.db import models
class DateAbstractModel(models.Model):
olusturulma_tarihi = models.DateTimeField(auto_now_add=True)
duzenlenme_tarihi = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
| [
"soner@arslanyapi.com.tr"
] | soner@arslanyapi.com.tr |
531b82cce7d91539b4058862d81f35c95a923676 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/134/usersdata/260/47351/submittedfiles/escadarolante.py | ccf9c82c733d4eeb20eacce5e0d0ccbcad99b4e1 | [] | 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 | 511 | py | # -*- coding: utf-8 -*-
N=int(input("determine o número de pessoas na escada rolante:"))
s=0
B=N//2
m=int(input("determine o instante em que o cliente anterior sobe a escada:"))
n=int(input("determine o instante em que o cliente posterior sobe a escada:"))
if m+10-n >=0:
s=n-m+s
else:
s=s+10
for i in range ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
09252f08dae5f109c78667189940c3a139a3277c | d52ea2ddba48e3c9e69f16e2e671002cb8a55c9d | /example/market/req_trade_detail.py | cc67fe98c965ef27eef98344cb200dfe5aa11e9d | [
"Apache-2.0"
] | permissive | GreatWei/huobi_Python | 3bf8583d5ef042099d9f2a2a2cedfaba1b5f03bb | 7ed1cccedd2aadc61716292300bd5ba3d1d45f9f | refs/heads/master | 2023-05-01T00:39:10.497133 | 2021-05-07T16:20:32 | 2021-05-07T16:20:32 | 312,221,461 | 0 | 0 | Apache-2.0 | 2021-03-07T16:30:43 | 2020-11-12T09:03:01 | Python | UTF-8 | Python | false | false | 265 | py | from huobi.client.market import MarketClient
def callback(trade_req: 'TradeDetailReq'):
print("---- trade_event: ----")
trade_req.print_object()
print()
market_client = MarketClient()
market_client.req_trade_detail("btcusdt,eosusdt", callback)
| [
"devin0thinking@gmail.com"
] | devin0thinking@gmail.com |
1cf29dedec32bd7bf7bb668390038595047b2372 | d1797d0e70af8764b79b127fbc2015b5d030d87d | /examples/ph2co_grid_computation.py | 2b5493bdff4fc82e745b29e3cc342bd574d20f12 | [
"BSD-3-Clause"
] | permissive | keflavich/pyradex | 2cd4aa602f1005780402b5810078d76d37f95eff | c36c4652e220113cf3d0d9a41fda3ddf4ea3c11a | refs/heads/master | 2023-04-01T19:57:09.571559 | 2023-03-31T13:59:21 | 2023-03-31T13:59:21 | 11,107,526 | 14 | 13 | BSD-3-Clause | 2020-08-06T17:07:01 | 2013-07-01T21:23:04 | Python | UTF-8 | Python | false | false | 1,786 | py | """
Create some simple grids for the low-frequency para-H2CO lines
"""
import pyradex
import numpy as np
ntemp,ndens = 20,20
temperatures = np.linspace(10,50,ntemp)
densities = np.logspace(2.5,7,ndens)
abundance = 10**-8.5
opr = 0.01 # assume primarily para
fortho = opr/(1+opr)
taugrid_71M = np.empty([ndens,ntemp])
... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
c906c75846627e1bf93c97043c29fc3a43d60e2d | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4051/274004051.py | 623ea6ae45121ae2e1165f90702a331ebbe5128c | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,185 | py | from bots.botsconfig import *
from records004051 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'PW',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BHT', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 1},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
7d335117801f689272938f9062c3dcf61cb44c86 | f5f771cd8600c2aeb7fc9b192d9084ec5fdf3616 | /lux/extensions/static/ui.py | 01908025b17802dafe3a932032a58b812ad359d0 | [
"BSD-3-Clause"
] | permissive | SirZazu/lux | 75fe9fde4ddaee1c9c17e55c6e6d07a289ea2f5b | d647c34d11d1172d40e16b6afaba4ee67950fb5a | refs/heads/master | 2021-01-21T19:40:46.536485 | 2015-06-02T16:30:18 | 2015-06-02T16:30:18 | 36,931,033 | 0 | 3 | null | 2015-10-09T14:08:26 | 2015-06-05T12:15:21 | Python | UTF-8 | Python | false | false | 1,575 | py | from lux.extensions.ui import *
def add_css(all):
css = all.css
vars = all.variables
vars.list_image_width = 140
vars.list_image_xs_height = 150
css('.media-list > .media',
css(' > a',
css(' .post-body',
margin_left=px(vars.list_image_width+20)),
cs... | [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
f2464ecccf83e8fc7eb4b22c4f67dc16950a2098 | 5a5447267f9ba97bb00e26569892a8a62ce0d370 | /code/src/impex/auth/models.py | 0796ca80a7fea4ec9cafc3f6a497e043a3f600df | [] | no_license | socek/impex | d031a74a33f42344b760109fbd2dd5bec2213574 | 07bdabef51719850ecc9063cefc3e3607bfdcb94 | refs/heads/master | 2022-12-25T04:46:42.172644 | 2021-03-25T21:58:49 | 2021-03-25T21:58:49 | 37,607,725 | 0 | 0 | null | 2022-09-16T17:45:09 | 2015-06-17T16:44:39 | Python | UTF-8 | Python | false | false | 442 | py | from sqlalchemy import Boolean
from sqlalchemy import Column
from implugin.auth.models import BaseUser as VeryBaseUser
from implugin.auth.models import NotLoggedUser as BaseNotLoggedUser
from impex.application.models import Base
class BaseUser(VeryBaseUser):
is_admin = Column(Boolean(), default=False)
class N... | [
"msocek@gmail.com"
] | msocek@gmail.com |
53c00f598a2013b61c191015c3f29c6cb3367939 | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/pandas/tests/series/methods/test_item.py | 2bdeb4da5f70fafc4295beca62f7dd354ba78ec0 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 1,622 | py | """
Series.item method, mainly testing that we get python scalars as opposed to
numpy scalars.
"""
import pytest
from pandas import (
Series,
Timedelta,
Timestamp,
date_range,
)
class TestItem:
def test_item(self):
# We are testing that we get python scalars as opposed to numpy scalars
... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
71c00e850b4858890c697ad07312cff8e75b0e7d | 3d73017c944583b77be033c73f91a273b7925df3 | /src/models/networks/NeuralNetwork.py | fd175dfbb5e04973b2c2bf3650f4069913c45dd0 | [
"MIT"
] | permissive | FelixKleineBoesing/machineLearningModels | bd7b399cb3f5353292a3fa2f7a4bc62c25c91300 | 6c0530c32a03cf52fad67c13be108dd8d2283cb9 | refs/heads/master | 2020-05-23T22:18:21.185347 | 2019-06-23T19:46:53 | 2019-06-23T19:46:53 | 186,971,086 | 0 | 0 | null | 2019-06-12T06:48:12 | 2019-05-16T07:03:04 | Python | UTF-8 | Python | false | false | 5,760 | py | import numpy as np
import pandas as pd
from typing import Union, Tuple
from src.models.Model import Model
from src.models.networks.NetworkHelper import return_activation_functions
from src.models.networks.ActivationFunctions import ActivationFunction
from src.cost_functions.Cost import Cost
class NeuralNetwork(Mode... | [
"felix.boesing@t-online.de"
] | felix.boesing@t-online.de |
5f467abce0548100c93befdc5121dca66f697ca7 | cbb525bb66aed3d3c0364fbd8c142712c515b7b9 | /tests/test_graphics_factory.py | cebb460f308237283babfcd9e86dc30eb921f3ec | [
"MIT"
] | permissive | niki-sp/ezdxf | 5d96631cf653807b70536ce733cea7e65394acac | a6add53d3b283e5f654dcd1574417d47f8501d44 | refs/heads/master | 2021-01-23T03:13:46.079629 | 2017-03-09T04:58:27 | 2017-03-09T04:58:27 | 86,061,096 | 1 | 0 | null | 2017-03-24T11:29:44 | 2017-03-24T11:29:44 | null | UTF-8 | Python | false | false | 542 | py | import pytest
from ezdxf.graphicsfactory import copy_attribs
def test_None():
result = copy_attribs(None)
assert result == {}
def test_empty_dict():
result = copy_attribs({})
assert result == {}
def test_none_empty_dict():
dxfattribs = {'height': 1.0, 'width': 0.8}
result = copy_attribs(dx... | [
"mozman@gmx.at"
] | mozman@gmx.at |
afd00898603c955f937bb5eace460362205ace42 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc044/B/1693063.py | 61811238d4496d73136309db90fdc8905dc0f6b6 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | def main():
R = 10**9+7
N = int(input())
a = list(map(int, input().split(" ")))
if a[0] != 0:
return 0
amax = max(a)
h = [0] * (amax+1)
for i in a:
h[i] += 1
if h[0] != 1:
return 0
ans = 1
b = 1
for i in h[1:]:
if i == 0:
... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
615a822697c7f58c1b75af0495d0b5b28e8a1c76 | 6d1bf00636259c1a65842a8dd49ea2037218cc8d | /Login/cQube_login.py | 01bac2bf4b00079f8257901297531389d51191b5 | [] | no_license | chetandg123/Release_1.2 | efb4b0844b57638d23ac09783e0cd751893058ad | f9ff8add5930c7779ab1954c779f8f0e8cd1e908 | refs/heads/master | 2022-12-05T21:12:14.671813 | 2020-08-20T21:33:50 | 2020-08-20T21:33:50 | 288,701,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,770 | py | import time
import unittest
from Login.Invalid_credentials_check import login_test
from Login.Login_and_logout import test_logout
from Login.check_login_with_empty_inputs import login_without_inputs
from Login.login_test_with_invalid_email import login_test_for_credentials
from Login.login_to_cQube import Login_to_cQu... | [
"ubuntu@ip-172-31-31-236.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-31-236.ap-south-1.compute.internal |
d0ad990a6f25fe1b464a017c90b01b96e38dccd9 | 6318babade9f3b3bc21929382f384c000d46e4c7 | /alarm/websocket/ws.py | fcf00d6a5b3aae569059e773f4681fe97c32afa2 | [] | no_license | dmitriyVasilievich1986/python-alarm-api | 30a606bd2a9ecf1f1c2cc819754effc141c482cf | 77e61f591ab2b0cef81227587fcc7dd006203ffb | refs/heads/master | 2022-12-14T23:58:16.376833 | 2020-08-26T06:04:11 | 2020-08-26T06:04:11 | 290,320,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | from ..database.db_class import mysql_database
from ..variables.websocket import PORT, HOST
import websockets
import asyncio
from datetime import datetime
import json
async def index(websocket, path):
"""проверяем будильники и при срабатывании отправляем сообщение,
удаляем будильник из БД
"""
for x i... | [
"dmitriyvasil@gmail.com"
] | dmitriyvasil@gmail.com |
6456b0581b91cd10df62d7134c6f3d032055c73c | ec480bc450df50ecf9fa41caf22b9a60e6722825 | /cowsay_app/admin.py | 9075709bd541dcc89b475e8941c076acbe42dbbb | [] | no_license | pbuzzo/cowsay_application | 4966905c15ddfbd594bff6e8c3c6cceab45040c0 | b06a6f5340f65e5f202eb253a7bd3770bfc95df3 | refs/heads/master | 2022-07-16T14:08:21.444695 | 2020-05-13T01:13:20 | 2020-05-13T01:13:20 | 263,062,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from django.contrib import admin
from cowsay_app.models import CowsayInput
admin.site.register(CowsayInput)
# admin.site.register(AnotherModel)
| [
"pbuzzo04@gmail.com"
] | pbuzzo04@gmail.com |
ec2a832a14e47bf74be0a2f1c24993dc5bb1331d | 4420a8b4fdc38eb9f260e604ad53955b27805431 | /test/unit/agent/common/config/abstract.py | fcc5ce13e7db19b86dcbddb5fee08995648425bf | [
"BSD-2-Clause"
] | permissive | askagirl/nginx-amplify-agent | c71bf6f67366391ed7a54f3e72a1ca662adfd5ea | 770938727c78e30db46d9d3dd1be31d1c812016e | refs/heads/master | 2021-01-23T19:17:31.442068 | 2017-09-06T01:58:49 | 2017-09-06T01:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | # -*- coding: utf-8 -*-
import os
from hamcrest import *
from test.base import WithConfigTestCase, disabled_test
from test.unit.agent.common.config.app import TestingConfig
__author__ = "Mike Belov"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__credits__ = ["Mike Belov", "Andrei Belov", "Ivan P... | [
"dedm@nginx.com"
] | dedm@nginx.com |
9929ad90ae8d3613954f4de305476d723ccbd40d | e8c9b8d0e1dbf44e9993b7c222b9439542bfaee5 | /3.集体智慧编程PCI_Code/mycode/chapter3/generatefeedvector.py | 407e560023e6b77939edc7373dcf0d6e24f71bbf | [] | no_license | ccgcyber/machine_learning | db8c0a8a3e5403ee04c54143aa6602d501ab3d0a | 6f0a3ab1bc64d7a1918fab11a930cd552ce4e79c | refs/heads/master | 2020-06-21T23:40:07.729640 | 2017-07-19T11:58:25 | 2017-07-19T11:58:25 | 94,207,382 | 0 | 0 | null | 2017-06-13T11:50:22 | 2017-06-13T11:50:22 | null | UTF-8 | Python | false | false | 1,539 | py | import feedparser
import re
# Returns title and dictionary of word counts for an RSS feed
def getwordcounts(url):
# Parse the feed
d=feedparser.parse(url)
wc={}
# Loop over all the entries
for e in d.entries:
if 'summary' in e: summary=e.summary
else: summary=e.description
# Extra... | [
"543429245@qq.com"
] | 543429245@qq.com |
06ee7b231ae7f32bb1845a83cc5957b08cf2eb19 | 2b7de92334e618990b632842481f6d3089542000 | /handlers/callback.py | c8fb75233c1afca6e8a7195d294f36b92b58e376 | [] | no_license | Solomons2002/chat_helper | 2dc23c87c202e576abcc5ebc2b1a70902edc9614 | 434d4099a7ec84f2fc29952b3d5d4b4eaee3beff | refs/heads/master | 2023-02-17T04:57:31.803057 | 2021-01-17T17:44:06 | 2021-01-17T17:44:06 | 330,449,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,197 | py | from aiogram import types
from mics import dp , bot
from models import Database
import text
import markup
from re import compile
from aiogram.dispatcher.filters.builtin import CommandStart
import datetime
import config
from states import AddKey,UpdateText
db = Database()
@dp.callback_query_handler(lambda call : call.d... | [
"myEmail@example.com"
] | myEmail@example.com |
9aaaa6f910f3c1f9ddd8080dfe2085a053fdebdd | 056863ff17af7121b0348db31bf28836ff584e4a | /42.py | 44cd067599ee65f2ca28871a9290116c4476ea79 | [] | no_license | saranya258/python | 1face016cdd52c55df6fd6493f5f2aa5bcae9212 | df2274ad72bd36b7eb8cf4a4d2360e40dc902ee0 | refs/heads/master | 2020-06-07T14:19:32.476586 | 2019-07-10T08:53:32 | 2019-07-10T08:53:32 | 193,040,334 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | name1,name2=input().split()
if(len(name1)>len(name2)):
print(name1)
elif(len(name1)==len(name2)):
print(name2)
else:
print(name2)
| [
"noreply@github.com"
] | saranya258.noreply@github.com |
3f297bb66509481a7d100cee7dfd4c3ab2302750 | 42b2883caa1100c0b8ada96f9bc5b4ca89d275ea | /api/ultimanager/migrations/0001_initial.py | 7464e53203cc6f45f2d77c8b518b807c1e931204 | [
"MIT"
] | permissive | cdriehuys/comp426-api | 302dc5b7a7781bdc0b594b3993cb6f2363737804 | 916df2f858ea684b46fc4333e50e192ab091e40c | refs/heads/master | 2021-08-28T08:11:41.705961 | 2017-12-11T16:45:12 | 2017-12-11T16:45:12 | 112,657,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-06 03:46
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"chathan@driehuys.com"
] | chathan@driehuys.com |
8665ebb76bd6534d419114bad03ed528667aa227 | c84a561927ff9c6712e521c3448531f4992f41fb | /BioinformaticsStronghold/SSET/sset.py | 9a24c9ce372460b951d63d2fc6b9888b0e60fa23 | [] | no_license | Meng-Gen/rosalind | 55c174005807d0fc8703e62f7358f4ed205f977d | 3cf5e0ee1536e3e762ddd5354b8da4c8d378a640 | refs/heads/master | 2020-05-13T15:47:13.504360 | 2013-12-29T12:15:27 | 2013-12-29T12:15:27 | 15,453,371 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | import sys
def main():
n = int(sys.stdin.read().strip())
print(2**n % 1000000)
if __name__ == '__main__':
sys.exit(main())
| [
"plover@gmail.com"
] | plover@gmail.com |
c991c45938fdc4759dccfd7da11fdcf11d778094 | 6652a293a5ff3e3e9f8f019e376472b971f966a6 | /sw_layer/consumers.py | 366280a49634b7279a90d822cfdd1cbed1ab01ab | [] | no_license | sohjunjie/eforce | 7448a474e619fd868f96cf2e06367ebdc28b1ada | 72c80f10afc3870d7a97ce0b68485ba5a5ddfa40 | refs/heads/master | 2022-12-14T18:11:50.951514 | 2017-11-14T11:21:09 | 2017-11-14T11:21:09 | 102,879,472 | 5 | 2 | null | 2022-12-08T00:39:47 | 2017-09-08T16:01:22 | JavaScript | UTF-8 | Python | false | false | 939 | py | from channels import Group
from channels.sessions import channel_session
from channels.auth import channel_session_user, channel_session_user_from_http
from django.contrib.auth.models import User
from eforce.settings import EF_HQ_ROLENAME
@channel_session_user_from_http
def ws_connect_efhq(message):
if not mes... | [
"junjie.soh93@gmail.com"
] | junjie.soh93@gmail.com |
e629c700cd8802477c7ff2ce63277766bc72fe78 | a960f00c6bc82178453df3aa2bfbce7d0eafae55 | /newinference.py | 4d68d53b799bf53877e51ca982126b8ed62c2c4b | [] | no_license | MathProblems/August | 882a8f4c458487b7275dc12ed4834d020eb4238a | e6c9a4cbae6013167bde81deda65e5153228b26f | refs/heads/master | 2021-01-01T17:05:00.356620 | 2015-10-23T19:09:21 | 2015-10-23T19:09:21 | 40,630,728 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,516 | py | import signal
import sys
import json
import jsonrpclib
import makesets
import pickle
from random import randint
from train_local import get_k_eqs
from train_local import read_parse
from train_local import read_sets
from train_local import parse_inp
from functools import reduce
sys.path.insert(0, '/Users/rikka/libsvm-3.... | [
"kedzior@uw.edu"
] | kedzior@uw.edu |
b82135fa8ee2499aa5b5ed2b07a245c15ab2c50f | 077215f1083e17b309eee9c7002f1c965a0ca2c5 | /第11章/创建进程.py | ba121b4c5917a561a354d5dd8a998c18e0041173 | [] | no_license | cooper-1/Pythonofspider | 8c7cd6344ca11c86d3b7a8b177d17933ff77c2d4 | b33f71c0a6c885b473207a3a78401e2fc4d2399b | refs/heads/master | 2023-08-26T07:33:43.001781 | 2021-11-05T12:55:20 | 2021-11-05T12:55:20 | 420,447,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # -*-coding: UTF-8
# @Time : 2021/10/17 19:47
# @Author : Cooper
# @FileName: 创建进程.py
# @Software: PyCharm
from multiprocessing import Process
def test(intercal):
print('我是子进程')
def main():
print('主进程开始')
p = Process(target=test, args=(1,))
p.start()
print('主进程结束')
if __name__ == '__m... | [
"1274814498@qq.com"
] | 1274814498@qq.com |
4c35e4d6f532c3100bc86cdcb8ad37f97db8f646 | 5e1ee90de14350184bb6d4078ece4ec627165d73 | /revelation/__init__.py | 4369ae651f491010965c025fba991de90d6f007b | [
"MIT"
] | permissive | martibosch/revelation | 07866491087821c280bc2365f09b46e9cdd32886 | 7deb809b46cb3c90a98af7a846da7a81299cb3d5 | refs/heads/master | 2020-04-08T07:20:45.097324 | 2018-08-28T14:43:25 | 2018-08-28T14:43:25 | 159,135,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | # -*- coding: utf-8 -*-
"""Revelation root module with package info"""
from .app import PresentationReloader, Revelation
__author__ = "Humberto Rocha"
__email__ = "humrochagf@gmail.com"
__version__ = "0.5.2"
__all__ = ["PresentationReloader", "Revelation"]
| [
"humrochagf@gmail.com"
] | humrochagf@gmail.com |
85c5973f90f9917f7288192c1ede846725503394 | 6a7d8b67aad59c51dafdfb8bcffd53864a3d65b0 | /LeetCode/binaryTreeLevelOrderTraversal2.py | 200498802a749d657d2090e1b3f32c33ff8e0238 | [] | no_license | dicao425/algorithmExercise | 8bba36c1a08a232678e5085d24bac1dbee7e5364 | 36cb33af758b1d01da35982481a8bbfbee5c2810 | refs/heads/master | 2021-10-07T08:56:18.030583 | 2018-12-04T05:59:17 | 2018-12-04T05:59:17 | 103,611,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | #!/usr/bin/python
import sys
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def BFSQlevelOrderBottom(self, root):
"""
:type root: TreeNode
:rt... | [
"di.cao425@gmail.com"
] | di.cao425@gmail.com |
bf70b6312a0a2b58f0b34946117541aed9b0afb7 | 7a84ede765332dcce629412e835c1d074063aa2a | /ntd_duo/polarization_point.py | 8484ced91180affee6d82e9eb4ef9dd30a65881f | [] | no_license | DimitriMisiak/ethem | ec3ecbdb99c8eeeeb00abb1a2f6be1172242c7c7 | 45a56caacb02d9dd4a724273b21ff1f047f13026 | refs/heads/main | 2023-06-19T22:39:26.150774 | 2019-09-03T14:58:27 | 2019-09-03T14:58:27 | 387,753,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,526 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Illustrate the resolution of the steady staet and explore the polarization
plan according to different observables.
@author: misiak
"""
import sympy as sy
# adding ethem module path to the pythonpath
import sys
from os.path import dirname
sys.path.append( dirname(di... | [
"dimitrimisiak@gmail.com"
] | dimitrimisiak@gmail.com |
240993dcab9ce9b7ae903563b3ef13e2b8480f18 | 7f57c1bc457f693d1e2b482bd92180b5f619d3bb | /34-find-first-and-last-position-of-element-in-sorted-array.py | ee18b6f1b67eaf713af07db0db4804f8f8b748b1 | [] | no_license | mtianyan/LeetcodePython | 17694eed256886a075208264904ac1533df71d03 | 6880de6f92d8b6bf9223656f356831fb2b475202 | refs/heads/master | 2023-07-11T19:46:54.388781 | 2023-07-06T15:59:34 | 2023-07-06T15:59:34 | 331,367,286 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | class Solution:
"""
https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/solution/zai-pai-xu-shu-zu-zhong-cha-zhao-yuan-su-de-di-3-4/
"""
def searchRange(self, nums: List[int], target: int) -> List[int]:
left_index = self.search(nums, target, True)
ri... | [
"1147727180@qq.com"
] | 1147727180@qq.com |
658cbbd17351e8d6081436042932e7e26f113ff9 | 82f1b4c0bccd66933f93d02703a3948f08ebc1a9 | /tests/pytests/unit/modules/test_win_servermanager.py | a7fb7d62a9370e0c2a7f88accd72b61eafb30d50 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | waynew/salt | ddb71301944b64f5429e0dbfeccb0ea873cdb62d | ac9f139f795295de11be3fb1490ab8cec29611e5 | refs/heads/master | 2023-01-24T10:43:53.104284 | 2022-03-29T04:27:22 | 2022-03-29T13:45:09 | 163,890,509 | 1 | 0 | Apache-2.0 | 2019-01-02T21:17:12 | 2019-01-02T21:17:11 | null | UTF-8 | Python | false | false | 2,675 | py | import pytest
import salt.modules.win_servermanager as win_servermanager
from tests.support.mock import MagicMock, patch
@pytest.fixture
def configure_loader_modules():
return {win_servermanager: {"__grains__": {"osversion": "6.2"}}}
def test_install():
"""
Test win_servermanager.install
"""
moc... | [
"megan.wilhite@gmail.com"
] | megan.wilhite@gmail.com |
2577c465ebd5292f365c57c906af5e59dffbb77a | 6c19e86b105cf79043fa3b0c3c04ff4ecd8f70b0 | /blog/models.py | 7b1c25b95db4f764f027b6bae06a150064307809 | [] | no_license | carmenho9498/my-first-blog | 36a8ed095c40c5e4272a0878eda56c7e0b46ff44 | 636a28b36f5febc7ab3de87a4436d1f190c2365d | refs/heads/master | 2021-01-21T04:41:50.928170 | 2016-06-10T06:44:32 | 2016-06-10T06:44:32 | 55,787,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
picture_URL = models.URLField(blank=True, null=True)
created_date = models.DateTimeField(
... | [
"you@example.com"
] | you@example.com |
c5bb5d778329befcf3a04a6a6d62dc3792921b85 | 7ae096774994e5842aaf31658d3a05fbda2de1da | /baselines/models_pytorch/roberta/convert_tf_checkpoint_to_pytorch.py | 611f6bc36a30409234931194b6e0418aa4d4697d | [] | no_license | lonePatient/chineseGLUE | a14b38598e76c938a94e8ce88003407dd7380b33 | 6c1f946828cf144388b5f75ae43ab5c1fc0a6f48 | refs/heads/master | 2020-09-02T14:18:05.608956 | 2019-11-03T02:16:44 | 2019-11-03T02:16:44 | 219,239,709 | 3 | 0 | null | 2019-11-03T02:11:38 | 2019-11-03T02:11:38 | null | UTF-8 | Python | false | false | 5,142 | py | # coding=utf-8
# Copyright 2018 The HugginFace Inc. team.
#
# 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 ... | [
"ccjdurandal422@163.com"
] | ccjdurandal422@163.com |
f45b3829656127d4fa1216edadf0657db893a4d0 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_1_1/CoderRaja/last.py | fc28b87667a1d2625257d8baabded7d5e60f9a43 | [] | 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 | 211 | py | t=int(input())
p=1
while t>0:
s=input()
a=[]
m=''
a.append(s[0])
for x in s[1:]:
if x>=a[0]:
a=[x]+a
else:
a=a+[x]
for x in a:
m+=x
print("Case #%d: %s"%(p,m))
t-=1
p+=1
| [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
b3219873cde18dd57987499aa858fc1aad95176b | cc578cec7c485e2c1060fd075ccc08eb18124345 | /cs15211/TransposeMatrix.py | 1957a2ac56596a88832a126c764902e8879dab28 | [
"Apache-2.0"
] | permissive | JulyKikuAkita/PythonPrac | 18e36bfad934a6112f727b4906a5e4b784182354 | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | refs/heads/master | 2021-01-21T16:49:01.482561 | 2019-02-07T06:15:29 | 2019-02-07T06:15:29 | 91,907,704 | 1 | 1 | Apache-2.0 | 2019-02-07T06:15:30 | 2017-05-20T18:12:53 | Python | UTF-8 | Python | false | false | 2,139 | py | __source__ = 'https://leetcode.com/problems/transpose-matrix/'
# Time: O(R*C), where R and C are the number of rows and columns in the given matrix A.
# Space: O(R*C)
#
# Description: Leetcode # 867. Transpose Matrix
#
# Given a matrix A, return the transpose of A.
#
# The transpose of a matrix is the matrix flipped o... | [
"b92701105@gmail.com"
] | b92701105@gmail.com |
a6611601faf0005aad20ab3b4013be5268db35a9 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/android_deps/libs/com_google_android_gms_play_services_tasks/3pp/fetch.py | f03904c8215eb8baaf4d81ce21b893a6c49f4a7e | [
"MIT",
"NPL-1.1",
"MPL-1.1",
"BSD-3-Clause",
"EPL-1.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"GPL-2.0-only",
"BSL-1.0",
"Apache-2.0",
"LGPL-2.1-only",
"LicenseRef-scancode-android-sdk-license",
"LicenseRef-scancode-unknown-license-reference",
... | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 2,485 | py | #!/usr/bin/env python3
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This is generated, do not edit. Update BuildConfigGenerator.groovy and
# 3ppFetch.template instead.
import argparse
import json
import os
import re
impor... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
f333123d895a8fc638627c9937c510abb0e6a958 | 277f4e1d9c7574f7233ca716d874ea3d4f7c679a | /classification.py | 73f997d1e7608bc9de8c4047e2c7364d21cd302a | [] | no_license | MSBradshaw/Blood-Classification | 25eea7166d79075e68ec28a0e90de410c7751bfd | 03696383f713536d5b538c3b2e9a10fe91c68703 | refs/heads/master | 2020-03-31T10:15:04.220952 | 2018-10-09T21:26:52 | 2018-10-09T21:26:52 | 152,128,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py | import Classification_Utils as cu
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler, StandardScaler
import time
import re
import matplotlib.pyplot as plt
from sklearn.decomposition import PCA
from sklearn.preprocessing imp... | [
"michaelscottbradshaw@gmail.com"
] | michaelscottbradshaw@gmail.com |
61651885517d13e74aed18e327cc33d71aafd5fc | a703f0010c56be928bc5b68a9fabe38e74429894 | /linter.py | 85a2abd2bde17b20abf9f4f0bb5036962b1cdf65 | [
"MIT"
] | permissive | michaelblyons/SublimeLinter-contrib-sublime-syntax | a92d688b769dd095c831b1aebaa8b277b2fff697 | f30b5f5f27f86436690ea37b2f5de4ff8058a37e | refs/heads/master | 2020-04-29T20:03:31.185291 | 2019-03-01T01:07:00 | 2019-03-01T01:07:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,547 | py | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by FichteFoll
# Copyright (c) 2016 FichteFoll
#
# License: MIT
#
"""This module exports the SublimeSyntax plugin class."""
import contextlib
import logging
import re
import os
import sublime
import sublime_api
from S... | [
"fichtefoll2@googlemail.com"
] | fichtefoll2@googlemail.com |
24508a5d8234cf25b2283156e7c91e6d7dda78d0 | 494c0de8e2655827e3ebdc7f13428f049e04807f | /meetings/migrations/0003_auto_20170418_1505.py | 246667f4325b4b432f509380c57d9476ad5cb242 | [] | no_license | ghing/publicmeetings | 793483743bb5856cff6972e34213c0d2ae293eaf | 4f4a0f52d1b07e205dce3b507ab58663f1b2ac44 | refs/heads/master | 2021-01-19T09:41:30.275851 | 2017-08-14T03:08:38 | 2017-08-14T03:08:38 | 82,145,374 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-18 15:05
from __future__ import unicode_literals
from django.db import migrations
def set_meeting_type_for_phone_facebook_meetings(apps, schema_editor):
Meeting = apps.get_model("meetings", "Meeting")
Meeting.objects.filter(location__icontains="p... | [
"geoffhing@gmail.com"
] | geoffhing@gmail.com |
68c1e13a597b6146ff4629da76de0be89ae0948c | 70054615f56be28373b00c9df96544ec822be683 | /res/scripts/client/notification/listcontroller.py | 0c5427eea1045238ec87a1e7252dc94af9708f14 | [] | no_license | wanyancan/WOTDecompiled | c646ad700f5ec3fb81fb4e87862639ce0bdf0000 | 9ffb09007a61d723cdb28549e15db39c34c0ea1e | refs/heads/master | 2020-04-17T23:13:15.649069 | 2013-11-15T16:37:10 | 2013-11-15T16:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | from gui.Scaleform.framework.entities.EventSystemEntity import EventSystemEntity
from gui.shared.events import ShowWindowEvent
from notification.BaseMessagesController import BaseMessagesController
from notification import NotificationsModel
class ListController(BaseMessagesController, EventSystemEntity):
def __i... | [
"james.sweet88@googlemail.com"
] | james.sweet88@googlemail.com |
203a7c12f779e628b118f62d4db6a9c37de0ce16 | f9ff85c981942d15c65d37de107e0c5fa5e6a2ba | /pychron/processing/tasks/browser/analysis_table.py | 9bddf5ab33c9bac6effe1d2b09ec5be7daf841d6 | [
"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 | 3,895 | py | # ===============================================================================
# Copyright 2013 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 |
03efa495884c07f252a9f6958464a3761072cf92 | 99ca760c7d8fcbb6cbd959d38b3df7994d5fc769 | /bronze4/13866.py | f2d59a26b55550ef02a8a660dca7de454608ee27 | [] | no_license | zozni/Algo | 5ad6a37120f24ab17e25e83b63f1eb7e42adcbe5 | 94c71f1d89e3ceb403a6731b6ae58a3fd26ee12c | refs/heads/master | 2023-05-31T19:24:44.081594 | 2021-06-06T14:51:13 | 2021-06-06T14:51:13 | 330,422,271 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | # 4명의 친구가 탁구를 하고 있다. 각각은 정수형으로 표현된 스킬 레벨을 가지고 있고, 숫자가 높을수록 더 좋은 플레이어다.
# 4명의 친구는 각각 두 명씩 구성된 두 팀을 구성하려고 한다. 게임이 더 흥미롭게 하기 위해서 팀의 스킬 레벨을 최대한 가깝게 유지하기를 원한다. 팀의 스킬 레벨은 팀원의 스킬 레벨의 합계이다.
# 그들은 탁구 선수로는 탁월하지만, 수학이나 컴퓨터와 같은 다른 것들에 능숙하지 않다. 팀의 스킬 레벨이 가능한 작은 차이를 갖도록 도와주자.
a, b, c, d = map(int, input().split())
print(abs(a+b+c+... | [
"thekey1027@naver.com"
] | thekey1027@naver.com |
7a3dc411964cfb0a23a700e0ba408b87e6bddbbf | 35fe9e62ab96038705c3bd09147f17ca1225a84e | /a10_ansible/library/a10_rba_user.py | 8115fff111db1542ac0a1b03c5c48ce7ffdb9ad4 | [] | no_license | bmeidell/a10-ansible | 6f55fb4bcc6ab683ebe1aabf5d0d1080bf848668 | 25fdde8d83946dadf1d5b9cebd28bc49b75be94d | refs/heads/master | 2020-03-19T08:40:57.863038 | 2018-03-27T18:25:40 | 2018-03-27T18:25:40 | 136,226,910 | 0 | 0 | null | 2018-06-05T19:45:36 | 2018-06-05T19:45:36 | null | UTF-8 | Python | false | false | 5,659 | py | #!/usr/bin/python
REQUIRED_NOT_SET = (False, "One of ({}) must be set.")
REQUIRED_MUTEX = (False, "Only one of ({}) can be set.")
REQUIRED_VALID = (True, "")
DOCUMENTATION = """
module: a10_user
description:
-
author: A10 Networks 2018
version_added: 1.8
options:
name:
description:
... | [
"mdurrant@a10networks.com"
] | mdurrant@a10networks.com |
0b8904e187a8d7815da3f0f08cb9e6d3babaa1d3 | 45d53fb565bd8c9b94cf942fd1196392b059f5ee | /config.py | 4198a8349e0b70189dd289ffd2b8768aae172b30 | [
"MIT"
] | permissive | HassanEmam/tweets_odi | e817cfa6f07912849f19714f848abe3d581e472b | f14c4c70671dade870eac4d47fe76cfa231b9ef0 | refs/heads/master | 2022-10-05T03:05:40.400796 | 2021-02-09T05:45:26 | 2021-02-09T05:45:26 | 193,499,910 | 0 | 0 | MIT | 2022-09-16T18:03:55 | 2019-06-24T12:21:13 | HTML | UTF-8 | Python | false | false | 684 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = 'do-or-do-not-there-is-no-try'
# SECRET_KEY = os.environ.get('SECRET_KEY') or 'do-or-do-not-there-is-no-try'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'sqlite:///' + os.path.join(basedir, 'app... | [
"hassan.emam@hotmail.com"
] | hassan.emam@hotmail.com |
6ccacb3c2a960d0183e2042aa8c3538b6c288ec9 | ef31f25f4de920eb3ec29236b55a675624fe1d12 | /selfhacked/iterator/stream/__init__.py | 81f49f28df9134fefdb0f72a2f9eaeb422cd460e | [] | no_license | MichaelKim0407/selfhacked-util | a7cd48d988108982a69ec1dea09fcfc45dbd029a | af30d48aa674deff89a52385efab4156007792e9 | refs/heads/master | 2023-03-15T16:23:12.931103 | 2019-03-28T19:17:27 | 2019-03-28T19:17:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | from typing import Iterator, Iterable, T_co
class Stream(Iterable[T_co]):
def _open(self):
pass
def _close(self):
pass
def _iter(self) -> Iterator[T_co]:
raise NotImplementedError # pragma: no cover
def __iter__(self):
self._open()
try:
yield fro... | [
"mkim0407@gmail.com"
] | mkim0407@gmail.com |
adbb9453e9d68cd875c93cc5c4462c5c69e7e133 | c26ee38f974ff36646a6225ea20c63d027d97622 | /easy/198.House_Robber.py | 732ccc4f8acb880d53ad6416b876c68d208b5f66 | [] | no_license | khlee12/python-leetcode | 78416d1512831eb762b3700461b8a2b492d7d5b5 | c0801d9d40d454213e29a42286d6e5fdbc3f6c3c | refs/heads/master | 2021-07-19T13:25:29.094937 | 2020-05-11T11:02:07 | 2020-05-11T11:02:07 | 158,390,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | # 198. House Robber
# https://leetcode.com/problems/house-robber/
# 动态规划
# https://www.youtube.com/watch?v=Jakbj4vaIbE
class Solution:
def rob(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
# 不相邻数字的最大和
# max(opt(n-2)+new_num, opt(n-1))
# 动态规划解法
... | [
"noreply@github.com"
] | khlee12.noreply@github.com |
642a28e1cea3a62ff37406233681d963c4d9cf56 | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /repos/flask-jsonrpc-master/tests/contrib/__init__.py | 2e548de766db42a28c693185bdb09fa6051ab05a | [] | no_license | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020-2020, Cenobit Technologies, Inc. http://cenobit.es/
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain th... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
fe12dabf32a97f0df5179017597ce2eb1db112cf | 1894481eecddb75574415c02c112699124cdfd0a | /library/books/management/commands/import_authors.py | 19b4058e2b5bd95897beb6296e4ba7b6e1bc2646 | [
"MIT"
] | permissive | diogo-alves/library-manager | 87fbe18c34b9924c651bf04a5777bbea04050c30 | 79252709b40155cc510e5443787c28a6fbe484e7 | refs/heads/main | 2023-08-23T11:40:23.066001 | 2021-11-01T00:36:24 | 2021-11-01T00:36:24 | 415,591,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | import csv
import time
from itertools import islice
from pathlib import Path
from django.core.management.base import BaseCommand, CommandError
from ...models import Author
DEFAULT_BATCH_SIZE = 100_000
class Command(BaseCommand):
help = 'Imports authors from a csv file. Expects names of authors.'
missing_ar... | [
"diogo.alves.ti@gmail.com"
] | diogo.alves.ti@gmail.com |
913c64deecd12a2898506d4aa32ea620a7db6f91 | bc441bb06b8948288f110af63feda4e798f30225 | /patch_manager_sdk/model/tool/execution_snapshot_pb2.pyi | 4e97a20ea030f2936934180149aab915b69fa31e | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,759 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
e56ed17a7f3c541b2980e0b1932fd4ad8f4f6e24 | 805551c596dfeb7aff0efd8a5fd5f6e4dcb20ff1 | /pycoinnet/peer/tests/test_BitcoinPeer.py | 9b56f4a0bb93959f37638118c77f2a4750393a16 | [
"MIT"
] | permissive | pycoin/pycoinnet | 8d3dd5a65dd62f0fd47c097f0d5be798cf344a38 | d5f3e2c77cfd00f7ac0eb264db460fa34b57f7e4 | refs/heads/master | 2021-01-17T09:24:13.440637 | 2014-10-17T22:22:53 | 2014-10-17T22:22:53 | 25,469,574 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,700 | py | import asyncio
from pycoinnet.peer.BitcoinPeerProtocol import BitcoinPeerProtocol
from pycoinnet.peer.tests.helper import PeerTransport, MAGIC_HEADER, VERSION_MSG_BIN, VERSION_MSG, VERSION_MSG, VERSION_MSG_2, VERACK_MSG_BIN
def test_BitcoinPeerProtocol_send():
DATA = []
def write_f(data):
DATA.append... | [
"him@richardkiss.com"
] | him@richardkiss.com |
a8f0d9ea9b49f4eb1e351a0da175a96c3a6bdf11 | c1ee8f22ece4fc39cb94fe19832fcba8e45cf5bc | /Python 3 PS Code/Side_Project/Union Images Program_with GUI Programming, Python 3/6_checkbox.py | 49a9c0d1a628d2bb7d6d15a496703e910332fbb9 | [] | no_license | JeongHanJun/BOJ | ae6b1c64c5b3226deef2708ae447aa1225333a92 | a865624fb0a9291b68f99af8535f708554fa0b41 | refs/heads/master | 2023-03-31T02:22:58.974437 | 2021-04-02T02:43:57 | 2021-04-02T02:43:57 | 258,809,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | from tkinter import *
root = Tk()
root.title("HJ GUI")
root.geometry("640x640")
checkvar = IntVar() #checkvar 에 int형으로 값을 저장한다
checkbox = Checkbutton(root, text="오늘 하루 보지 않기", variable=checkvar)
#checkbox.select() #화면에 checkbox가 체크되있는 상태로
#checkbox.deselect() # 위와 반대 , 기본값 디폴트값은 deselect 임
checkbox.pack()... | [
"noreply@github.com"
] | JeongHanJun.noreply@github.com |
bfe62c0e2fc135358592f635a3108871982b4dec | 1a1e6eee0b4b8eb507896d06ba70505a57053a11 | /0x00-python_variable_annotations/4-main.py | 3d1e303ce9a4d474c66abb477ded7c94b86625e5 | [] | no_license | Zaccheaus90/holbertonschool-web_back_end-1 | 4a23458e8a7632438b3f0864a73ef640753a76ed | fa0b08c37ece2510d450a8ad01d43ce48d18357b | refs/heads/main | 2023-03-15T22:31:08.566276 | 2020-12-26T00:09:43 | 2020-12-26T00:09:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | #!/usr/bin/env python3
a = __import__('4-define_variables').a
pi = __import__('4-define_variables').pi
i_understand_annotations = __import__(
'4-define_variables').i_understand_annotations
school = __import__('4-define_variables').school
print("a is a {} with a value of {}".format(type(a), a))
print("pi is a {} ... | [
"santitoya-2001@outlook.com"
] | santitoya-2001@outlook.com |
d6f8df8012d6fdb18f21d6016dc0ebe2e8441e2a | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Facebook/Reading/Friends.py | 222c896e5b77f4014ed32c3e3b0aaf62772f98df | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,502 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# Friends
# Retrieves a list of names and profile IDs for Facebook friends associated with a specified user.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License,... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
b94a195ce2efe9376e5ee1fd5549e7ea86e7e059 | 493637ee75ab8d5e74d822f3d73407e7c17d5d97 | /framework/config.py | a9e5bc4492a808c353bae9a84b2acdaf69e5ba39 | [] | no_license | buptatx/fitch-sample | 2637bf2616e2acb06625568b72ce8f2ef6047dd3 | 7a899cb08971ba73726ff86f67519f8a36085a48 | refs/heads/master | 2020-04-28T22:33:01.581841 | 2019-03-06T06:13:01 | 2019-03-06T06:13:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | import os
# 目标设备
# 当然,这里只是一个例子
# 在实际应用中你可以用更加灵活的设计用于处理更复杂的情况
TARGET_DEVICE_ID = '123456F'
PROJECT_PATH = os.path.dirname(os.path.dirname(__file__))
CASE_DIR = os.path.join(PROJECT_PATH, 'cases')
# 默认在同目录下的pics文件夹,但建议是与代码分开管理,不用git(用git管理图片会让仓库变得非常臃肿)
PIC_DIR = os.path.join(PROJECT_PATH, 'pics')
# 用例运行期间的截图保存位置
RUN... | [
"178894043@qq.com"
] | 178894043@qq.com |
2331374d23d78ac3d771b062ca74756194e6335d | 8839bd1f2e35726b6c8066985690fa2fa86b09a6 | /1.pyBoard v1.1(STM32)/3.拓展实验/4.以太网模块/3.MQTT通信/2.订阅者(subscribe)/main.py | 6d5b20c3db507bbe9742cf9939cd366236f0748f | [
"MIT"
] | permissive | elektrik-elektronik-muhendisligi/MicroPython-Examples-1 | a9532b06aba470f7f26f841929f4fb145549f70b | f7b08e95ff73e3417af21918c9c6bcf2f83281c6 | refs/heads/master | 2021-05-25T22:58:36.207098 | 2020-04-01T09:50:53 | 2020-04-01T09:50:53 | 253,956,073 | 1 | 0 | null | 2020-04-08T01:39:46 | 2020-04-08T01:39:45 | null | UTF-8 | Python | false | false | 1,496 | py | '''
实验名称:W5500以太网模块MQTT通信
版本:v1.0
日期:2019.11
作者:01Studio
说明:通过Socket编程实现pyBoard+W5500以太网模MQTT通信 订阅者(subscribe)。
'''
import network,pyb,time
from machine import I2C,Pin
from ssd1306 import SSD1306_I2C
from simple import MQTTClient
#初始化OLED
i2c = I2C(sda=Pin('Y10'), scl=Pin('Y9'))
oled = SSD1306_I2C(128, 64, i2c, addr... | [
"237827161@qq.com"
] | 237827161@qq.com |
0a06c9d10907805d9afa0daa753e4cf88a0cc183 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/cosmos/azure-mgmt-cosmosdb/generated_samples/cosmos_db_gremlin_graph_migrate_to_autoscale.py | fb7e3c1b535bd8689d573bded60de3e7e3e56d8b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,689 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
f87b8a8de758020635f5c1519d78d435c6d91247 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/swaggeraemosgi/model/com_adobe_cq_wcm_jobs_async_impl_async_page_move_config_provider_service_info.py | 2044f69011b92470db658b5634e45c30a23d7454 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 7,672 | py | """
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0-pre.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-generator.t... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
684c06392f33a274b09daec76ddf411a3bf1ad9a | 249c7081a766318360da21c66e7a30f917c90738 | /aula 16.py | d4e74de6a5f29a80e1dc638de60ce6aa0f4a2f3a | [] | no_license | Danlei27/PycharmProjects | b4d93a966b45c84f206498faa60c36f8b356c5a9 | abedd9911d7a28f64366f4ea69de86ed16d39534 | refs/heads/master | 2020-05-30T10:32:55.793721 | 2019-06-01T00:33:27 | 2019-06-01T00:33:27 | 189,675,167 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | lanche = ('Hambúrguer')
lanche = ('Suco')
print(lanche)
lanche2 = ('Hambúrguer','Suco','Pizza','Pudim')
print(lanche2[3])
print(lanche2[-4])
print(lanche2[1:3])#O ultimo nùmero é ignorado!
print(lanche2[2:])
print(lanche2[:2])#O ultimo nùmero é ignorado!
print(lanche2[-2:])
print(lanche2[-3:])
print(lanche2)
#tuplas sã... | [
"danleisantos@hotmail.com"
] | danleisantos@hotmail.com |
8fd6ed362d5bf73497bcd9062ee6aa1fc22fa0a7 | c130a094e04eb448201ca2ab8ed4fe56cd1d80bc | /samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py | a3fb56284bdb0fca9cfff6477099bbc9a59c49ff | [
"Apache-2.0"
] | permissive | janweinschenker/openapi-generator | 83fb57f9a5a94e548e9353cbf289f4b4172a724e | 2d927a738b1758c2213464e10985ee5124a091c6 | refs/heads/master | 2022-02-01T17:22:05.604745 | 2022-01-19T10:43:39 | 2022-01-19T10:43:39 | 221,860,152 | 1 | 0 | Apache-2.0 | 2019-11-15T06:36:25 | 2019-11-15T06:36:24 | null | UTF-8 | Python | false | false | 3,064 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"noreply@github.com"
] | janweinschenker.noreply@github.com |
71f68d07002122dc75183d4ab1fe221324ffc9c5 | 452b8b849e080cda5a26f4018cafa5a674ff7c20 | /froide/frontpage/admin.py | 2c41dbd38fd38ef4552adec08ca22579de6830ad | [
"MIT"
] | permissive | okffi/tietopyynto | 1262dcaf748c41b49be4a774be552fc75fc9b336 | 66b7e7dbf3c3395d79af3da85b3b58f01fad62dc | refs/heads/tietopyynto | 2021-01-17T21:07:04.829856 | 2016-10-30T19:26:53 | 2016-10-30T19:26:53 | 14,255,294 | 3 | 2 | MIT | 2021-01-05T11:51:18 | 2013-11-09T10:19:16 | Python | UTF-8 | Python | false | false | 408 | py | from django.contrib import admin
from froide.frontpage.models import FeaturedRequest
class FeaturedRequestAdmin(admin.ModelAdmin):
list_display = ('request', 'title', 'user', 'timestamp',)
search_fields = ['title', 'request__title']
ordering = ('-timestamp',)
date_hierarchy = 'timestamp'
raw_id_fi... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
3483a074af1e08f1db72083cf409003993eed0fa | 3681c00144bbcad8b91b452c96627a9c179a98d7 | /my/books/kobo.py | 7b70a795621d1fd255fd12462f228c1ee4c9d42d | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | jhermann/HPI | 159485bf2971665e1128294330e4fad300ec053a | a60c30868b285f233caf65a59d3496082fb9d5c2 | refs/heads/master | 2021-04-11T12:11:50.363338 | 2020-03-17T23:09:06 | 2020-03-17T23:09:06 | 249,017,683 | 0 | 0 | MIT | 2020-03-21T16:39:46 | 2020-03-21T16:39:45 | null | UTF-8 | Python | false | false | 1,114 | py | """
Kobo e-ink reader: annotations and reading stats
"""
from typing import Callable, Union, List
from mycfg import paths
from mycfg.repos.kobuddy.src.kobuddy import *
# hmm, explicit imports make pylint a bit happier..
from mycfg.repos.kobuddy.src.kobuddy import Highlight, set_databases, get_highlights
set_database... | [
"karlicoss@gmail.com"
] | karlicoss@gmail.com |
76a621f44efb5853a3c365a63265c9260e0b0689 | 3fbcff56de2da0827d14983d3b6d58d4270846f9 | /kobe/data/download.py | 1f44fef3eebc9e7336c981b6739cf015b29dd544 | [
"MIT"
] | permissive | THUDM/KOBE | 3f15aa910debe4e3a221ef8dae88c65897b83a23 | b424ab9bd868b2c13f5d78b96c8431163dea7400 | refs/heads/master | 2023-01-13T01:56:40.592019 | 2023-01-04T19:15:14 | 2023-01-04T19:15:14 | 178,392,931 | 228 | 65 | MIT | 2019-07-11T08:26:07 | 2019-03-29T11:26:17 | Python | UTF-8 | Python | false | false | 4,763 | py | import hashlib
import os
import shutil
import time
from urllib.request import urlopen
import gdown
import requests
import tqdm
def download(url, path, fname, redownload=False):
"""
Downloads file using `requests`. If ``redownload`` is set to false, then
will not download tar file again if it is present (... | [
"chenqibin422@gmail.com"
] | chenqibin422@gmail.com |
20b24b9c0b67641688c4fd4d598fbf2a2ea7d663 | 7ee884fd83ab4b907e9b4d042964fc504e3009d2 | /neo/Core/Size.py | 22e3a427b7bca15a40a4f11057c7dcc8902537c7 | [
"MIT"
] | permissive | SharedMocha/neo-python | 4d3e589d6d053d261a07ccf42c29d320dd91d288 | 81759fb77d41768b38dbabcc4828321d98ac7a8c | refs/heads/master | 2020-03-23T19:02:52.421551 | 2018-07-31T14:22:21 | 2018-07-31T14:22:21 | 141,950,599 | 0 | 0 | null | 2018-07-23T02:22:57 | 2018-07-23T02:22:57 | null | UTF-8 | Python | false | false | 2,455 | py | from enum import IntEnum, Enum
from collections import Iterable
from neocore.IO.Mixins import SerializableMixin
from neocore.UIntBase import UIntBase
"""
This helper class is intended to help resolve the correct calculation of network serializable objects.
The result of `ctypes.sizeof` is not equivalent to C# or what ... | [
"tasaunders@gmail.com"
] | tasaunders@gmail.com |
3c051238fc51178bc2add4d9b82eca10212bb861 | 83e8a9746545652147efcbf56e3997c308fa4a79 | /zvt/domain/trader_info.py | d9a2b183f94b9465ab4cc3cc194019070475080c | [
"MIT"
] | permissive | baihuashu225/zvt | 5038c35239f8c458d48c28850f93755c68086f86 | b84d30447d48fbe09981c1fb388b3e118103980f | refs/heads/master | 2023-02-24T11:11:23.456569 | 2021-01-18T11:22:44 | 2021-01-18T11:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | # -*- coding: utf-8 -*-
from sqlalchemy import Column, String, DateTime, Boolean, Float, Integer, ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from zvt.contract import Mixin
from zvt.contract.register import register_schema
from zvt.utils import to_string
... | [
"5533061@qq.com"
] | 5533061@qq.com |
64cb7a2efbec8e6f32550eb26f4fc11286196254 | 963b0c14043ca94e4c3be1562c496fd868dd813a | /compounds/migrations/0039_auto_20171026_0347.py | 3b32e7bbefa2776292e8618d1d273b90a0afebfc | [] | no_license | jianping-grp/yatcm | 7a0111a4c98de8f649cfe754b178add6b6d224d8 | 7d8e4cd18ccc27f2ae6b86018553d1a4608b8e1b | refs/heads/master | 2020-05-25T07:24:09.833547 | 2017-12-23T07:55:29 | 2017-12-23T07:55:29 | 115,178,789 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-10-26 03:47
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('compounds', '0038_target'),
]
operations = [
migrations.RemoveField(
mo... | [
"libaiqing11@163.com"
] | libaiqing11@163.com |
2c9eca2460033dacd0d540b82dbc376a17de3b5b | c582efcb41f04c77f4fa7d204c109c22e27e93e2 | /vaccine 2021/day3/concurrency/three.py | 5d8e12f8a9721773d0e8a99e45659d8a4a49d2c5 | [] | no_license | shobhit-nigam/infineon | dddeaa4b212eb67ce0f130ff1d8d58dbd0dacbdf | b2830abc7485428b1aeba7abd13bfb18528ce61b | refs/heads/master | 2021-06-22T13:17:52.886845 | 2021-02-26T12:04:29 | 2021-02-26T12:04:29 | 195,349,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | import time
import threading
def taska():
for i in range(9, 0, -1):
print("task A left with", i, "seconds")
time.sleep(1)
def taskb():
for i in range(6, 0, -1):
print("task B left with", i, "seconds")
time.sleep(1)
def taskc():
for i in range(9, 0, -1):
print("task... | [
"noreply@github.com"
] | shobhit-nigam.noreply@github.com |
e4ebd7e8e58696737152e2cccdb4d84e3a71ea6e | 4c9580b2e09e2b000e27a1c9021b12cf2747f56a | /chapter05/chapter05_example02/chapter05_example02/apps/goods/migrations/0001_initial.py | f7e277748f6319dd920746b4d2276211085146be | [] | no_license | jzplyy/xiaoyue_mall | 69072c0657a6878a4cf799b8c8218cc7d88c8d12 | 4f9353d6857d1bd7dc54151ca8b34dcb4671b8dc | refs/heads/master | 2023-06-26T02:48:03.103635 | 2021-07-22T15:51:07 | 2021-07-22T15:51:07 | 388,514,311 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | # Generated by Django 2.2 on 2020-11-04 07:57
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Goods',
fields=[
('id', model... | [
"jzplyy@126.com"
] | jzplyy@126.com |
6b647a37651c219bf089e678cc19e35ca3ca36ab | 63a1671145dc6dc6e1a9d10ec21c520b83036fea | /Image_segmentation/DeepLabV3Plus/utils/label.py | a16777728916e85dc1af45d5ecad346b56dd4eab | [
"MIT"
] | permissive | chenpaopao/- | 4eca1405a3aab86fe649817048852b620a962c1a | 320f7d9a0b9e49528561024217ba07645eb68805 | refs/heads/master | 2023-02-04T17:44:48.639136 | 2022-06-06T05:04:57 | 2022-06-06T05:04:57 | 323,789,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,248 | py | import numpy as np
import utils.color as color_module
import utils.draw as draw_module
def label_colormap(n_label=256, value=None):
"""Label colormap.
Parameters
----------
n_labels: int
Number of labels (default: 256).
value: float or int
Value scale or value of label color in HS... | [
"739677819@qq.com"
] | 739677819@qq.com |
7c3c3087dc74958a0f6315fac4107e9163cf577c | ed11f664cbc459c7a4456dd58f2b231edcb22f33 | /ctm_saas_client/models/system_setting_ldap.py | 075ca22376d0bf909f9de200076ddf447cb43c0e | [
"BSD-3-Clause"
] | permissive | jpmc216/ctm_python_client | c8b8ba60580bf869b3d1e6af9b99737e0a7ea527 | de44e5012214ec42bb99b7f9b4ebc5394cd14328 | refs/heads/main | 2023-08-26T22:06:34.022576 | 2021-10-25T13:41:31 | 2021-10-25T13:41:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,158 | py | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.30
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from ctm_saas_cl... | [
"cmoraes@bmc.com"
] | cmoraes@bmc.com |
537ad653a81336f9eac99a3641fc6d2376828868 | 87a067e31fbc4ec2ea79dec0e4456452da28cfe1 | /tests/plugin/manymap/test_agent.py | ad04b7b95f255b8d94b8eae005f2915fb4c745da | [
"MIT"
] | permissive | bodik/sner4 | 94c4e486cae3b085885702981849e3ef6c48a6ed | d5d8e9cdd6dd058dd91eb119965a3f9f737e5c34 | refs/heads/master | 2023-08-19T18:06:51.383715 | 2023-08-07T16:22:40 | 2023-08-07T16:22:40 | 152,397,863 | 13 | 6 | MIT | 2023-08-15T11:45:12 | 2018-10-10T09:29:56 | Python | UTF-8 | Python | false | false | 898 | py | # This file is part of sner4 project governed by MIT license, see the LICENSE.txt file.
"""
manymap plugin agent tests
"""
import json
from uuid import uuid4
from sner.agent.core import main as agent_main
from sner.lib import file_from_zip
def test_basic(tmpworkdir): # pylint: disable=unused-argument
"""manyma... | [
"bodik@cesnet.cz"
] | bodik@cesnet.cz |
49ba6f67f8c5168096739959d0b1292a7ca65727 | c5a90053c7240d9fc95e31a4a74f279ed2f12929 | /azure-iot-device/tests/provisioning/internal/test_registration_query_status_result.py | 2924a0f0ab9b5a2b8aae78e88d119c3e06d8031c | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-iot-sdk-python-preview | a45bdfd0c2f198f6d99c2fdf9d29433c5f43bc17 | 50060e8c36d5751f8d207fa277db958ba89e9088 | refs/heads/master | 2023-03-18T01:03:13.686811 | 2019-09-07T00:04:31 | 2019-09-07T00:04:31 | 148,676,866 | 36 | 18 | MIT | 2019-09-07T00:04:32 | 2018-09-13T17:57:54 | Python | UTF-8 | Python | false | false | 1,892 | py | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import p... | [
"noreply@github.com"
] | Azure.noreply@github.com |
40ddd24842d9cef89390997e590efdb7f0f34329 | 95a27dd31260802da3768064c9614ce4f6ca4797 | /Scripts/GenCode_Explore_105.py | 53bc706c4f1aa80c5d04640bab2c285c9c7060d3 | [
"MIT"
] | permissive | ShepherdCode/Soars2021 | 7ee34227076ea424ad42f4727205141b69c78bb9 | ab4f304eaa09e52d260152397a6c53d7a05457da | refs/heads/main | 2023-07-09T05:28:56.993951 | 2021-08-18T14:16:57 | 2021-08-18T14:16:57 | 364,885,561 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,282 | py | #!/usr/bin/env python
# coding: utf-8
# # GenCode Explore
#
# Explore the human RNA sequences from GenCode.
#
# Assume user downloaded files from GenCode 38 [FTP](http://ftp.ebi.ac.uk/pub/databases/gencode/Gencode_human/release_38/)
# to a subdirectory called data.
#
# In 104, we showed that we can do away with the... | [
"jmill02@shepherd.edu"
] | jmill02@shepherd.edu |
2337447bc605e07db31f6a121bdc3bce8f729d6c | 9249f87109471de1fc3f3c3c1b121f51c09df683 | /lesson_8/test_4.py | 4aada1db89d91b62ae7e6e958aceb1e1b47ad3f4 | [] | no_license | anton1k/mfti-homework | 400a8213a57e44478d65437f5afef0432e8e84ea | 93683de329e6cb0001e713214aeb3069f6e213b0 | refs/heads/master | 2020-07-18T23:41:11.473608 | 2020-01-12T10:58:16 | 2020-01-12T10:58:16 | 206,335,501 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # Три копии кривой Коха, построенные (остриями наружу) на сторонах правильного треугольника, образуют замкнутую кривую бесконечной длины, называемую снежинкой Коха. Нарисуйте ee.
import time
import turtle
turtle.shape('turtle')
turtle.penup()
turtle.goto(-200, 0)
turtle.pendown()
turtle.speed('fastest')
def draw (l... | [
"40913464+anton1k@users.noreply.github.com"
] | 40913464+anton1k@users.noreply.github.com |
1867b4c6a2dcd1b2bd60fc1503f94939b4d082cf | b096066c3f7ecc0df19a34fce7c9e035994e0216 | /inspire/main_database.py | 8d415296b44961dc850494ddfb2660ebf4fb3bd7 | [] | no_license | platipy/Inspire | 80a057d77c2b304f5d5d2b22b3404e6a7a181dfc | 363e6e3d043564aa1c734776f403364c6d9d9913 | refs/heads/master | 2020-05-16T21:46:20.247072 | 2012-12-07T07:46:30 | 2012-12-07T07:46:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | from inspire import db
import sqlalchemy
from flask.ext.sqlalchemy import SQLAlchemy
from sqlalchemy.sql.expression import asc
import passlib.hash
from inspire.lib.history_meta import Versioned
class Teaching(db.Model):
__tablename__ = 'teaching'
student_id = db.Column(db.Integer, db.ForeignKey('user.id'), pri... | [
"acbart@vt.edu"
] | acbart@vt.edu |
3a406dbc6b719171e97090341b63a20757510bb6 | b7dc7d08ff9af2f54a9736284db7bc44392b35c4 | /solution-bank/pattern/solution_5.py | 9ba76f5951fdbac4f544f44c4d996b8144711f23 | [
"MIT"
] | permissive | anishLearnsToCode/python-training-1 | e6278f9d9dc25c9fd5a27e2121c0af77f8ba4155 | ef5d6b64f888e167faecd1410563173dcc27f319 | refs/heads/main | 2023-02-24T12:10:58.919765 | 2021-01-17T18:25:25 | 2021-01-17T18:25:25 | 327,060,912 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | rows = int(input())
for i in range(rows):
# spaces
print(' ' * (rows - 1 - i), end='')
# stars
print('* ' * (i + 1))
| [
"anish_@outlook.com"
] | anish_@outlook.com |
4307c6822b8485fb25320aede82768f76c93e33c | 10f397d1fe8c68dc5af033e0b88cb99be56bc4f2 | /Tran/forms.py | d239edadd401fbf3fcb35ac7e06b1a1deba69718 | [] | no_license | wsqy/AccountRandmomAmount | db3905bd425c074935c256aab62f437fe7cb0ffc | b69bc1269a666c48fe954ac423a25d111e01176b | refs/heads/master | 2023-06-29T12:49:35.947729 | 2020-06-30T03:27:05 | 2020-06-30T03:27:05 | 271,683,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from django import forms
from django.core.exceptions import ValidationError
from .models import Task
class TaskForm(forms.ModelForm):
class Meta:
model = Task
fields = "__all__"
def clean(self):
v1 = self.cleaned_data['amount_total_min']
v2 = self.cleaned_data['amount_total_ma... | [
"1323800521@qq.com"
] | 1323800521@qq.com |
3884d7e99aa08566fd76a2d5983f442cb484b3ae | 620e586959d887f114bf186c72b4b4d14c46644d | /development_history/backup/model_accuracy77.py | 752e0172b85c770672a990540fa1dc951d2bc3d4 | [
"MIT"
] | permissive | leimao/Text_Language_Identifier | 0f919caec191bbe8110029cc630f635fcfa99ba7 | 0dc1b0950feec31caeef9ce9f7c0008af8ab8f29 | refs/heads/master | 2021-09-04T00:04:57.208236 | 2018-01-13T04:38:44 | 2018-01-13T04:38:44 | 116,631,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,001 | py | import numpy as np
import json
from sklearn import preprocessing
from sklearn.model_selection import train_test_split
from sklearn import linear_model
from sklearn.naive_bayes import GaussianNB
import time
TRAIN_DATA_RAW = "train_X_languages_homework.json.txt"
TRAIN_LABEL_RAW = "train_y_languages_homework.json.txt... | [
"dukeleimao@gmail.com"
] | dukeleimao@gmail.com |
8bd5a650c7886080d76679b5688ac6d2ee5a6b1a | 162eed4191aef4431f94a0db1ad4185b6daa6f67 | /supervised_learning/0x08-deep_cnns/5-dense_block.py | ba776159d43cb3771eb76e225dd3aa5d49112b87 | [] | no_license | giovannyortegon/holbertonschool-machine_learning | d6897bfb492f9d266302930927416637be3c172d | 8cd5e0f837a5c0facbf73647dcc9c6a3b1b1b9e0 | refs/heads/master | 2022-12-31T15:34:20.489690 | 2020-10-24T03:37:01 | 2020-10-24T03:37:01 | 279,656,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | #!/usr/bin/env python3
""" dense block """
import tensorflow.keras as K
def dense_block(X, nb_filters, growth_rate, layers):
""" dense_block - builds a dense block
X is the output from the previous layer.
nb_filters is an integer representing the number of filters in X.
growth_rate is the growth r... | [
"ortegon.giovanny@hotmail.com"
] | ortegon.giovanny@hotmail.com |
dba64cc0db94bb04477aea6ecd4b9aaeb1b26022 | 6c18f36db8d6e4c6738f620e114f6fd1cebdf1c8 | /ideas/migrations/0008_auto_20190512_0052.py | 805bc67634c27511cf9c2f0e20a5594f2a090875 | [
"Apache-2.0"
] | permissive | neosergio/hackatrix-api | f9facd088292ef9d86adea77fcbc438114b75683 | 27f0180415efa97bd7345d100b314d8807486b67 | refs/heads/master | 2022-12-15T11:05:53.689886 | 2021-03-20T03:38:55 | 2021-03-20T03:38:55 | 240,255,211 | 1 | 0 | Apache-2.0 | 2022-12-08T07:48:07 | 2020-02-13T12:28:49 | Python | UTF-8 | Python | false | false | 409 | py | # Generated by Django 2.1.7 on 2019-05-12 00:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ideas', '0007_auto_20190512_0019'),
]
operations = [
migrations.AlterField(
model_name='idea',
name='max_number_of_p... | [
"raulsergio9@gmail.com"
] | raulsergio9@gmail.com |
dd6a2af1067e9a3153b766e5699f35e5cab54027 | 0f96f24c8682ece3b501904baaa0eef411969bb1 | /0x04-python-more_data_structures/102-complex_delete.py | e1797d8bfc4c0fb5e21ddd71f6d34e1a30c8a9fe | [] | no_license | dkokonkwo/holbertonschool-higher_level_programming | 95c5103001e807bd46767f66d97568e23d893e68 | 5fa97f754afaf7326550113416e80fd942226254 | refs/heads/master | 2023-03-18T03:38:33.386497 | 2020-09-28T02:56:13 | 2020-09-28T02:56:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | #!/usr/bin/python3
def complex_delete(a_dictionary, value):
if a_dictionary:
check = False
for k, v in a_dictionary.items():
if v == value:
check = k
if check:
del a_dictionary[check]
return(complex_delete(a_dictionary, value))
return(a... | [
"eislek02@gmail.com"
] | eislek02@gmail.com |
6c27ce1579d0d7de31fbc1690a00cab9c720788e | d4a569dcf616b7f05e53a44803e38196b436b8b9 | /Thesis@3.9.1/Lib/site-packages/mypy/gclogger.py | 171bd98c9e148557fa3cc4338e4b784431159d11 | [
"MIT"
] | permissive | nverbois/TFE21-232 | ac3178d24939c872c02a671c0f1d8cc471af516b | 7113837b5263b5c508bfc6903cb6982b48aa7ee4 | refs/heads/main | 2023-06-05T18:50:59.207392 | 2021-06-25T19:54:40 | 2021-06-25T19:54:40 | 337,691,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | import gc
import time
from typing import Mapping, Optional
class GcLogger:
"""Context manager to log GC stats and overall time."""
def __enter__(self) -> "GcLogger":
self.gc_start_time = None # type: Optional[float]
self.gc_time = 0.0
self.gc_calls = 0
self.gc_collected = 0
... | [
"38432529+nverbois@users.noreply.github.com"
] | 38432529+nverbois@users.noreply.github.com |
2ee47880dc1ecb60c7377cb376571e5fab304412 | 17f6b6d265da0e4c582bcace7ea5b8d637b9ae57 | /mysite/settings.py | 55f9d311e26c7a7cfbd57a7a4dac6ecee99b780e | [] | no_license | ankiwoong/django_tutorial | 547c1efbdd2c85cd8f4b8872221d717370c682cb | eb3e54a37201e708e1d4814bdc2616bc9f37ed30 | refs/heads/master | 2022-04-26T22:25:38.153543 | 2020-04-29T05:45:41 | 2020-04-29T05:45:41 | 259,482,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,160 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"ankiwoong@gmail.com"
] | ankiwoong@gmail.com |
e34c0721d6b76766638a30f651b6c5d2ebab5f7f | de998ec16613345af3d2cac4f65bb13b5ef7ab4e | /heppy/Module.py | 7b9f341509da1841ce2ff0b3874330da62174af3 | [
"BSD-3-Clause"
] | permissive | spektre1/heppy | 67a23cd7cbd5e920fae9d8c0c6fcad2572973d18 | b597916ff80890ca057b17cdd156e90bbbd9a87a | refs/heads/master | 2020-12-08T06:00:00.790597 | 2019-12-24T16:15:59 | 2019-12-24T16:15:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,666 | py | class Module:
opmap = {}
def __init__(self, xmlns):
self.name = self.__class__.__name__
self.xmlns = xmlns
### RESPONSE parsing
def parse_nothing(self, response, tag):
pass
def parse_set(self, response, tag):
response.set(tag.tag.split('}')[1], tag.text)
def p... | [
"sol@hiqdev.com"
] | sol@hiqdev.com |
4bc59fa209e9644b0e6528d1769477df0988b777 | 2101b51e43b29825ea10a8e05928b1c678ee4771 | /triplestore.py | 3c957b2cbc5f5d933e2bd4a5f324b75b4cc84eb1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alex-ip/vocview | 34073022aa2d26e3f20f16f2a5c0c475937cadc7 | b52da9547f7b4d3d425b9f1f99fa471ba2fae483 | refs/heads/master | 2020-06-30T23:29:24.357864 | 2019-09-10T00:24:17 | 2019-09-10T00:24:17 | 200,982,974 | 0 | 0 | MIT | 2019-08-07T06:02:52 | 2019-08-07T06:02:51 | null | UTF-8 | Python | false | false | 6,097 | py | from rdflib import ConjunctiveGraph, Graph, URIRef, Literal
from rdflib.namespace import DCTERMS, XSD
from rdflib.store import NO_STORE, VALID_STORE
import yaml
from owlrl import DeductiveClosure, OWLRL_Semantics
import requests
from config import Config
import os
import pickle
from datetime import datetime, timedelt... | [
"edmond.chuc@outlook.com"
] | edmond.chuc@outlook.com |
d70d1abd8f984ed388c78932ba614bf8ebc781ff | fefb1e9b0b736da4e49d7754f8d1dbaf37f2fa6a | /.history/9_2_20210214200657.py | bb72624108ad4b81678c942e8559c2a5912115de | [] | no_license | wh-debug/python | 5a78a2227874ebc400d075197de0adab9f55d187 | 1467eeda670f170e6e2d7c0a0550f713f1ee9d75 | refs/heads/master | 2023-03-12T22:08:12.608882 | 2021-02-17T09:49:52 | 2021-02-17T09:49:52 | 334,032,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | '''
Author: Daylight
Date: 2021-02-14 20:03:42
LastEditTime: 2021-02-14 20:06:57
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath: \python\9_2.py
'''
'''使用类和实例'''
class car:
def __init__(self, make, model, year):
self.make = make
self.model = model
self.year ... | [
"1813763848@qq.com"
] | 1813763848@qq.com |
513532a3efa50f08aa7e4002cf42754d84a1b2e3 | 63d290a2d314a1fb88da8ed2d7729e44ef9a2e25 | /ivi/tektronix/tektronixAWG2040.py | e96e89a2ff0d9111b061590750a44ba025b4b035 | [
"MIT"
] | permissive | tomscottGitHub/python-ivi | 09d92a80b1b73ff042e53283763dba5a06921f0d | 550abcf60289b979f938b5cdba0f760c98d399ac | refs/heads/master | 2021-01-19T19:17:11.244121 | 2013-10-20T23:46:28 | 2013-10-20T23:46:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | """
Python Interchangeable Virtual Instrument Library
Copyright (c) 2012 Alex Forencich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the righ... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
4c9237e132108a0883365844426267deb77bc4af | d36daf8818e2bb939d4e53325abf537538c63098 | /NSLib/Logger/__init__.py | ec3cfba399a1d1df35001a90994d541ccf16e5eb | [] | no_license | mbhushan/news-aggregator | 44d875c0a6c1d2d9ff08c366948b0df47a6984e8 | 539bb30cfb138504dff1f26827bbad00d590da4e | refs/heads/master | 2020-07-07T23:04:08.717262 | 2016-08-22T03:08:43 | 2016-08-22T03:08:43 | 66,235,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | '''
Created on Nov 4, 2014
@author: rsingh
'''
'''
Created on 22-Nov-2012
@author: rsingh
'''
import logging.config
import os
class Logger:
'''
Use Logger.getLogger(GazeLogger.LOGGER_WEBSITE) to get a pre-configured logger
'''
LOGGER_WEBSITE = 'website'
LOGGER_ADMIN = 'admin'
LOGGER_COMMO... | [
"manibhushan.cs@gmail.com"
] | manibhushan.cs@gmail.com |
901a3377dd38f31145225294f44935c672ae3342 | b59fe015c45178a49f4407c22d16b6a6aab2c769 | /functions/screenrecord.py | 83714709e294f10469963a67bf6079a1fd905955 | [] | no_license | Hanlen520/AndroidPyScripts | c46585189337f19416fb6e1f37cfaca08502f499 | 4add0701aabee89babd0d3ff21d0763d58a71f15 | refs/heads/master | 2020-04-02T13:18:47.102438 | 2018-04-11T15:28:06 | 2018-04-11T15:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import string
import sys
import time
from utils import androiddebug
# 需要Android4.4及4.4以上版本,运行脚本后可录制设备上的操作,默认使用手机分辨率,时间3min。手动按Enter结束录制。
# 录制结果存放于当前目录下的video目录下
PATH = lambda p: os.path.abspath(p)
def record():
androiddebug.shell("screenrecord /data/local... | [
"jayzhen_testing@163.com"
] | jayzhen_testing@163.com |
4358f1a7e741564f603e4786b91548678be81433 | 1e042794bd9ad14da7514a3b82cf699999b872c2 | /docs/conf.py | 70adc36d67a5d2e1d990225cf079f20080b8468f | [] | no_license | a18wheeler/cpp_template | 87f3f8a72912a976c2624c636a7e9f4c4641e6c6 | 83f5ca5939c6a7110419ffb5a25b4810975431d7 | refs/heads/master | 2021-01-09T05:43:04.180801 | 2017-02-03T00:54:12 | 2017-02-03T00:54:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,135 | py | # -*- coding: utf-8 -*-
#
# cppdemo documentation build configuration file, created by
# sphinx-quickstart on Fri Sep 12 22:01:14 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... | [
"rblack@austincc.edu"
] | rblack@austincc.edu |
8cc461af19f09bef2ec545d5ca46b5506d0f5f99 | 8ca19f1a31070738b376c0370c4bebf6b7efcb43 | /office365/teams/info.py | d805a9b8cf4added3d5c4928fb37900db1d7d72a | [
"MIT"
] | permissive | vgrem/Office365-REST-Python-Client | 2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3 | cbd245d1af8d69e013c469cfc2a9851f51c91417 | refs/heads/master | 2023-09-02T14:20:40.109462 | 2023-08-31T19:14:05 | 2023-08-31T19:14:05 | 51,305,798 | 1,006 | 326 | MIT | 2023-08-28T05:38:02 | 2016-02-08T15:24:51 | Python | UTF-8 | Python | false | false | 579 | py | from office365.entity import Entity
from office365.runtime.paths.resource_path import ResourcePath
class TeamInfo(Entity):
"""Represents a team with basic information."""
@property
def display_name(self):
"""
The name of the team.
:rtype: str or None
"""
return sel... | [
"vvgrem@gmail.com"
] | vvgrem@gmail.com |
9a2101c63cf26e5e27275a156d4338a4cf0d4ed9 | 1fbe4dcd2316499420ffd66903eb0fb5b675c316 | /responses/8G8FTA-CNP/2_reverse_digits.py | e7d8d4f8101edf4c3be9c15551f1edfb7f960261 | [] | no_license | danrasband/coding-experiment-reviews | 0f137b57bfbb76a47790f0ab08d876cb6a548091 | 3b0cb59012c284d2e7040d5e96e0d6a91265d655 | refs/heads/master | 2020-05-01T03:41:43.304696 | 2019-06-08T14:58:37 | 2019-06-08T14:58:37 | 177,251,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(X):
rem=0
rev=0
i=0
while(X):
rem = X%10
rev= (rev*10) + rem
X=X//10
i+=1
print (rev)
solution(-50) | [
"danrasband@gmail.com"
] | danrasband@gmail.com |
cfa5b7820cdf5964235047172c54a2e4d804928f | 2d5a588e8c9ee41b980d1f0e15914e33a40cff08 | /FullConvNet/train_full_cnn_simple_dataset.py | 600356f990e2799c8e6e1f194b65d1e49df67a5d | [] | no_license | bendavidsteel/final-year-project | 14ee835bf7a9fa2aabd033e21101908dbed0a407 | a7293152e14ea40dcaff2334b79969d5fe72a378 | refs/heads/master | 2020-04-01T19:01:04.447186 | 2019-04-27T16:24:03 | 2019-04-27T16:24:03 | 153,528,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | '''
Description: Script to train the network and measure its performance on the test set.
Author: Alejandro Escontrela
Version: V.1.
Date: June 12th, 2018
Altered by: Ben Steel
Date: 15/02/19
'''
from CNN.full_network_batch_simple_dataset import *
from CNN.utils import *
from tqdm import tqdm
import argparse
import ... | [
"bendavidsteel@gmail.com"
] | bendavidsteel@gmail.com |
4bc68a5a602a87a0b6b7b1526a819dee31589313 | f040315ff9479feb343a6b8d907330d6764b5ae6 | /make_graph.py | 5619b4deac5b4ea31f3e05899c016244e8ba2139 | [
"MIT"
] | permissive | loganrane/quant-predictions-crypto | 45560cab1b46c0e35fd8f4768d9802179ad2f2b7 | 11b9a575cdd6b8eb105a826b71db5cca6d3a0a18 | refs/heads/main | 2023-07-02T02:42:00.247996 | 2021-07-30T03:18:46 | 2021-07-30T03:18:46 | 389,632,937 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | py | import plotly.express as px
import plotly.graph_objects as go
import pandas as pd
from feature_extraction import extractAll
def candleStickGraph(ohlc_data):
"""Generate the candle stick graph for one month data
Args:
ohlc_data (pandas dataframe object): open-high-low-close data
Returns:
... | [
"arpitfalcon1@gmail.com"
] | arpitfalcon1@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.