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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23d273d98f2e161c75df76b438884487fc3cedd3 | c459f4dd7b198ec8d8db8379726a5b2650be6636 | /backoffice/migrations/0027_auto_20210224_1621.py | 7500f1e83101678b90c23d489885f249201fc720 | [] | no_license | jittat/admapp | 4c712182cd06e82efab6c2513fb865e5d00feae8 | 38bf299015ae423b4551f6b1206742ee176b8b77 | refs/heads/master | 2023-06-10T03:23:41.174264 | 2023-06-09T19:41:03 | 2023-06-09T19:41:03 | 101,953,724 | 10 | 4 | null | 2023-04-21T22:48:55 | 2017-08-31T03:12:04 | Python | UTF-8 | Python | false | false | 412 | py | # Generated by Django 2.2.17 on 2021-02-24 16:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backoffice', '0026_auto_20210224_1550'),
]
operations = [
migrations.AlterField(
model_name='adjustmentmajorslot',
... | [
"jittat@gmail.com"
] | jittat@gmail.com |
80afd9060c0a336de7f3a9e75573797ae0777d67 | 2d4e020e6ab48c46e0a19cb69048d9e8d26e46a6 | /Bohubrihi/Django/My_Second_Project/My_Second_Project/settings.py | 3bcaebfe1e75a7315343e35a2ba5a991bf8e3466 | [] | no_license | IsmailTitas1815/Learning | a92476fcf7bcd28a7dc1ab2f4eb3a5c27034728f | 207eaf4101a6d161c1044310f4b3cc54e9c514eb | refs/heads/master | 2023-07-04T20:13:07.263331 | 2021-08-07T20:07:39 | 2021-08-07T20:07:39 | 293,100,950 | 0 | 0 | null | 2021-05-07T16:55:29 | 2020-09-05T15:18:46 | Python | UTF-8 | Python | false | false | 3,345 | py | """
Django settings for My_Second_Project project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
fr... | [
"titas.sarker1234@gmail.com"
] | titas.sarker1234@gmail.com |
99a8eae16c7531f553ff02740662130e3d8620f6 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/concat82/702-tideGauge.py | f1a8c66c3f23c5786e62c1878fbcbc30041d10aa | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,482 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 13 10:02:00 2020
---------------------------------------------------------
This script concatenates yearly predictor files
Browses the predictor folders for the chosen TG
Concatenates the yearly csvs for the chosen predictor
Saves the concatenated csv in a separate dire... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
b5aaaf013e3bf2e723a3e6318ca85c11b84631ca | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/428/usersdata/284/106789/submittedfiles/jogoDaVelha.py | 3a3449d0234c2f307a0dbc52ba6f670be5669645 | [] | 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 | 5,279 | py | # -*- coding: utf-8 -*-
from jogoDaVelha_BIB import *
# COLOQUE SEU PROGRAMA A PARTIR DAQUI
#definir entrada em lista:
import random
def solicitaSimboloDoHumano():
letra = 0
while not (letra == 'O' or letra == 'X'):
print('Qual símbolo você deseja utilizar no jogo? (X ou O) ')
l... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f3f8bb5d1c5a47a51aafed60b97ba43063db2582 | 6380a784ff2bbae2ffa67a50757bf0bb3bd7e87c | /config/api_router.py | a12bee390b55446679072d6b59145e56981ec515 | [] | no_license | mahidul-islam/rijal | fe07a1024ba2b430569b4f91abcd275958297013 | d31e8548ff69438b7e1b0f49468f367be15533a9 | refs/heads/master | 2022-11-21T14:23:25.446961 | 2020-07-21T07:10:17 | 2020-07-21T07:10:17 | 281,323,224 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from django.conf import settings
from rest_framework.routers import DefaultRouter, SimpleRouter
from arrijal.users.api.views import UserViewSet
if settings.DEBUG:
router = DefaultRouter()
else:
router = SimpleRouter()
router.register("users", UserViewSet)
app_name = "api"
urlpatterns = router.urls
| [
"mizihan84@gmail.com"
] | mizihan84@gmail.com |
5e7064c8728be77fe5a27654c1734f63852bd13a | 25c544b0189ee53c40fb4213f1f406c6e37227c8 | /clu/scripts/treeline.py | 65fb98cb1267b10c9cc6834ac8b0d59051576c9e | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | fish2000/CLU | b7c67e0699387df2cbb29c27839faf20affc1888 | 1b31ed5a27c805b113ef69da21f964388b119d0c | refs/heads/master | 2023-02-24T19:54:36.547553 | 2023-02-19T12:58:21 | 2023-02-19T12:58:21 | 192,204,161 | 5 | 0 | NOASSERTION | 2021-11-17T03:46:12 | 2019-06-16T15:01:07 | Python | UTF-8 | Python | false | false | 31,517 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import clu.abstract
import collections.abc
import contextlib
import copy
import shlex
import sys
from itertools import filterfalse
from clu.config.abc import NamespaceWalker
from clu.config.keymap import articulate, FrozenNested
from clu.config.ns import ... | [
"fish2000@gmail.com"
] | fish2000@gmail.com |
745a7bddd4f8ff7dd570dc5adce795e85124f73a | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /tf3d/ops/tensorflow_sparse_conv_ops/sparse_conv_ops_test.py | 5f0edf1bbfee5b82233daf983f0fb915f45ef112 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,803 | 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 |
d5831481809bc39418d1870a746d55b3c2d993ab | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/third_party_product.py | 50ae347ef65cbaf67a7ff980b403457e18ba01ef | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 309 | py | from dataclasses import dataclass
from .third_party_product_version_structure import ThirdPartyProductVersionStructure
__NAMESPACE__ = "http://www.netex.org.uk/netex"
@dataclass
class ThirdPartyProduct(ThirdPartyProductVersionStructure):
class Meta:
namespace = "http://www.netex.org.uk/netex"
| [
"chris@komposta.net"
] | chris@komposta.net |
41550f34d2705294a0046ac8b1de8397166aec24 | 73332abdcadb62f4f262d0c30856c3c257a9ee7d | /oyProjectManager/models/repository.py | e652584bc54fa7228d4ef379aa506eb227c11021 | [
"BSD-2-Clause"
] | permissive | code-google-com/oyprojectmanager | 454435604cc150c1b54ec2c54294e0fa05490f82 | 3085ecbe1cc04a73ec69b4848b789009546feae7 | refs/heads/master | 2021-01-19T02:40:56.342086 | 2015-01-26T16:40:00 | 2015-01-26T16:40:00 | 32,266,400 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,653 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2009-2014, Erkan Ozgur Yilmaz
#
# This module is part of oyProjectManager and is released under the BSD 2
# License: http://www.opensource.org/licenses/BSD-2-Clause
from exceptions import AttributeError, RuntimeError, ValueError, IOError
import os
from oyProjectManager import u... | [
"eoyilmaz@gmail.com"
] | eoyilmaz@gmail.com |
bef343ea16d689688535c9e4696e408161b5b29d | 8c16c8fa0a32e1b190df3206c739cc844f81df7a | /home/migrations/0002_load_initial_data.py | 808c1c33641ba4e51e3c8fae89ca49b39bf69c32 | [] | no_license | crowdbotics-apps/r123-dev-1618 | c689f7f0e5fb294632fa6abe40b13a2e4b5ed3bc | 192d89a3e82f212700fce8b9160947a73abdc716 | refs/heads/master | 2022-04-02T11:13:12.271354 | 2020-02-06T12:48:14 | 2020-02-06T12:48:14 | 238,687,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "R123"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
home... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
096f62f342b714d1b73d1cde4d377414250fa6f4 | 02d8a026d63127f045042e03e23acbe6c9675db8 | /vb2py/PythonCard/tools/resourceEditor/modules/backgroundInfoDialog.rsrc.py | 613f3425866455d083794a5997c9411d81d9d930 | [
"BSD-3-Clause"
] | permissive | VB6Hobbyst7/xl_vb2py | 40e77976b452732575e2726fb1f0675b1ab9f86f | 899fec0301140fd8bd313e8c80b3fa839b3f5ee4 | refs/heads/main | 2023-07-28T20:12:11.933183 | 2021-09-23T18:12:02 | 2021-09-23T18:12:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,268 | py | {'type':'CustomDialog',
'name':'backgroundInfo',
'title':'Background Info',
'position':(53, 94),
'size':(370, 563),
'components': [
{'type':'Button',
'name':'btnCustomize',
'position':(247, 333),
'label':'Customize',
},
{'type':'RadioGroup',
'name':'windowStyle',
'pos... | [
"c.git@pronovost.net"
] | c.git@pronovost.net |
0e4e8d3779836386612dc162af745efcb539ecb8 | 6ac2631c256f156d4ddf169e6c67f1fe66ebcaaf | /062/pyteacher/app_accounts/migrations/0011_auto_20190321_0515.py | e36b9ecbc568798fd0c86cd592db78267480287a | [] | no_license | kasaiee/how-to-pyteacher | 101f106aeeed1b34756cecf502337ff8ee584ff5 | 074a57533f53fd1b8c7f37cd11dbc3b32ab8a08f | refs/heads/master | 2022-12-10T23:50:46.851784 | 2019-07-15T19:31:03 | 2019-07-15T19:31:03 | 187,372,111 | 6 | 4 | null | 2022-12-08T01:55:05 | 2019-05-18T15:08:03 | null | UTF-8 | Python | false | false | 502 | py | # Generated by Django 2.1.5 on 2019-03-21 05:15
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app_base', '0011_auto_20190302_2010'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('app_accounts', '... | [
"1tapciran@gmail.com"
] | 1tapciran@gmail.com |
048517a1253073256e7a998e84e5de7e1dcffbcd | 7560e624ac39fcdf44b7b8d747c072c923bb6d1b | /docs/conf.py | 2bc866940e3023d41d63604c316372b4429720d7 | [] | no_license | tardis-sn-archive/tardisatomic | 889473a8c9b466dd433bc89778b16e43857d1652 | bea354a6427d3d9539abbac6a1ce476bdb3c9aaf | refs/heads/master | 2021-05-28T21:54:55.953270 | 2015-05-20T14:22:43 | 2015-05-20T14:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,948 | py | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
#
# Astropy documentation build configuration file.
#
# 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 file.
#
# All configurati... | [
"wkerzendorf@gmail.com"
] | wkerzendorf@gmail.com |
c7f5730d2632381a3a679b41df95ef215a1c2038 | 0129b016055daa1aaa1e9e0911f271fa7b38e27e | /programacao_estruturada/20192_186/Bimestral2_186_20192/Parte 1/Mois__s/question_two.py | 393b6ee477dd83b455a0fb3d91cd8ed5723a104c | [] | no_license | rogeriosilva-ifpi/teaching-tds-course | 7c43ff17d6677aef7b42071929b3de8361748870 | 771ccdc4dc932d0ef5ce6ba61a02b5ee11920d4c | refs/heads/master | 2022-04-04T01:08:45.157185 | 2020-01-30T19:36:57 | 2020-01-30T19:36:57 | 206,439,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | frase = str(input('Digite uma frase: ')).split
print('A nova frase é: ', frase.len - frase.count(" "))
print(upper(frase)) | [
"rogerio.silva@ifpi.edu.br"
] | rogerio.silva@ifpi.edu.br |
51fa504aef3e03d5e2b6330243586dabc34d5f60 | 94d15ed8d7578c733b0559f270a24e444648b5c0 | /high_challenge/심화문제 8.4.py | c6ca6b6d98f318186974833794c8fa5a79844fd9 | [] | no_license | zodang/python_practice | 3f9a5d4d26c70cef2f30a04362ac0ec541a330ef | e5da0ef7a5d15d7e942ca0353815b125c7ed72e0 | refs/heads/main | 2023-08-19T21:53:55.520068 | 2021-10-30T07:32:01 | 2021-10-30T07:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | lst = [10,30,40,50,30,30,20,20,20,10,30]
print(lst.index(20))
| [
"1141ekdms@naver.com"
] | 1141ekdms@naver.com |
d73fc0ae3c2da2162d8453d2b5e787b9df6ae86b | 7e395a7ac6abec3fe24f4ca02d5370f1c8fb3c17 | /DemoPrj_tent/DemoPrj_tent/urls_public.py | 06ff4bfac8b1385a6b6a1c05aa6da3df0bdb4195 | [] | no_license | udaykumaraodh/DjangoTentPrj | fbfe6929954846d3c9bc4815a06108eecf3ea54c | 53d8c518247666f7325bb55672819dce66bf89a9 | refs/heads/main | 2023-07-27T21:06:11.704280 | 2021-08-31T16:28:49 | 2021-08-31T16:28:49 | 401,743,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | """DemoPrj_tent URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"udaykumarandolu@gmail.com"
] | udaykumarandolu@gmail.com |
168901e7e84d4b1ade6c2cd222d40e16ee48d113 | 7ec38beb6f041319916390ee92876678412b30f7 | /src/leecode/medium_0885.py | 54fe1f13b536aa90188d941dedc3bf3b9271e365 | [] | no_license | hopensic/LearnPython | 3570e212a1931d4dad65b64ecdd24414daf51c73 | f735b5d865789843f06a623a4006f8883d6d1ae0 | refs/heads/master | 2022-02-18T23:11:30.663902 | 2022-02-12T17:51:56 | 2022-02-12T17:51:56 | 218,924,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | from datetime import datetime
'''
tag: ^0885 ^medium ^math
name: ^(Spiral Matrix III)
'''
class Solution:
def spiralMatrixIII(self, R: int, C: int, r0: int, c0: int):
res = []
loop_count = max(r0, R - r0, c0, C - c0) + 2
destX, destY = c0, r0
mat = [[0] * C for _ in range(R)]
... | [
"hopensic@gmail.com"
] | hopensic@gmail.com |
479e2b2cb2e47d4dcd5e6f5be98b017a32ce79c5 | 142e8dbcd065e689dd7599f1f2b7ee23f2ae9616 | /54.nearest_even_no.py | d3833e6cd7a45422e5f29f7e501cc974dbf4ddcd | [] | no_license | shanthivimalanataraajan01/Beginner | f62ef7ba9b4c99591ca61f5f68a75d542c4adeb1 | 0b45d623ae24b0896a1d3f91e01fc497c31edc1d | refs/heads/master | 2020-04-26T22:19:12.549521 | 2019-01-25T10:30:02 | 2019-01-25T10:30:02 | 173,869,297 | 0 | 0 | null | 2019-03-05T03:51:53 | 2019-03-05T03:51:53 | null | UTF-8 | Python | false | false | 81 | py | # your code goes here
n=int(input())
if n%2!=0:
n=n-1
print(n)
else:
print(n)
| [
"noreply@github.com"
] | shanthivimalanataraajan01.noreply@github.com |
155930bcbbb9b559f4026ae42f775034e140cbe7 | 4d99350a527a88110b7bdc7d6766fc32cf66f211 | /OpenGLCffi/GL/EXT/KHR/robustness.py | 39eb5aee53fafaf629f399a33917ceedf689edd4 | [
"MIT"
] | permissive | cydenix/OpenGLCffi | e790ef67c2f6c9877badd5c38b7d58961c8739cd | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | refs/heads/master | 2021-01-11T07:31:10.591188 | 2017-04-17T11:04:55 | 2017-04-17T11:04:55 | 80,312,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | from OpenGLCffi.GL import params
@params(api='gl', prms=[])
def glGetGraphicsResetStatus():
pass
@params(api='gl', prms=['x', 'y', 'width', 'height', 'format', 'type', 'bufSize', 'data'])
def glReadnPixels(x, y, width, height, format, type, bufSize, data):
pass
@params(api='gl', prms=['program', 'location', 'bufS... | [
"cdenizol@gmail.com"
] | cdenizol@gmail.com |
b79e99dc04ca2be2a69ca6079afc7b69c0afa6cd | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/Quote18/HQ_18_156.py | 2d711354476219ece70b5d19df540986a8e7b237 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import time
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from log import *
class HQ_18_156(xtp_test_case):
def subTickByTick(self, Api, stk_info, case_name, rs_ex... | [
"418033945@qq.com"
] | 418033945@qq.com |
4584b6d202923b7876acb783ea7f94a55dccd0e4 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/command_lib/storage/file_download_task.py | 55c926f4ed9ddba8c6feb5c5f335d5da0e5ad498 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 2,211 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"gcloud@google.com"
] | gcloud@google.com |
07be9fff7ab78d6a62e09d5b2b53cd61b81cb9aa | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2671/60767/236760.py | 65aabd02d6cd17bfb4abc0f16f21487ef1587e78 | [] | 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 | 512 | py | def has11(num):
while(num>=1):
if(num%2==1):
num = num>>1
if(num%2==1):
return True
num = num>>1
return False
numOfTests = int(input())
Tests = []
for i in range(0,numOfTests):
Tests.append(int(input()))
for test in Tests:
temp = []
cnt = 0
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
34d0c59dbfbfa437e013e76dcd0fc29661a04b84 | 1259ee2a27cbb2d7de3e034159957d6043161add | /tests/roots/test-ext-autodoc/conf.py | 9f026eb8deab5ef78ede37824b69d322c6f75fc5 | [
"MIT",
"Python-2.0",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | balabit-deps/balabit-os-7-sphinx | f7b0ad4967418f074e8876cd8c7f4a7f5cfbe5d3 | 4e18ca37f4ddddf346c0b30835a544db20887259 | refs/heads/master | 2020-04-07T09:14:11.757278 | 2018-04-11T21:10:19 | 2018-07-20T22:59:13 | 158,244,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | import sys, os
sys.path.insert(0, os.path.abspath('.'))
extensions = ['sphinx.ext.autodoc']
# The suffix of source filenames.
source_suffix = '.rst'
autodoc_mock_imports = [
'dummy'
]
nitpicky = True
| [
"testbot@balabit.com"
] | testbot@balabit.com |
80d765845dcafee702bed7550ecb6e0196682ee9 | 30ac2f9831ebd33885a6f48d153356c2e3731c26 | /Python_Stack/flask/playground_project/server.py | 12ab16b5079218d55d52fb8fb967d84a7c922824 | [] | no_license | pharaoht/Coding-Dojo-Projects | 192cfd8c36b6dadb049e81d31bd780c7ab340d1e | 504f71acbac3c006cf866a08aea0566058f81ce2 | refs/heads/master | 2023-05-11T21:09:17.316257 | 2021-06-08T00:54:09 | 2021-06-08T00:54:09 | 334,003,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route("/play")
def showboxes():
return render_template("index1.html")
@app.route("/play/<num>")
def showboxes1(num):
return render_template("index.html", num=int(num))
@app.route("/play/<num>/<color>")
def showboxes2(num, color):
retu... | [
"pharaohmanson@gmail.com"
] | pharaohmanson@gmail.com |
8a903a879f726b3a88d3a2e6e5a2b06370843dcb | 9aa85999021da96ce0a7d76789c1298d174d1835 | /blogs/migrations/0076_auto_20200128_1850.py | 649f921de7e73d9b82215f179e7f222baced5e4f | [] | no_license | m0bi5/ISTE-NITK_Website | 20b83a3a629836c33c7478c0af834f6f57e0e907 | 2e186bb1ba457c930f9b691cc5a5584b8e3c270c | refs/heads/master | 2022-11-24T03:02:49.354491 | 2020-07-24T15:43:44 | 2020-07-24T15:43:44 | 184,452,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.2.4 on 2020-01-28 18:50
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogs', '0075_auto_20200128_1844'),
]
operations = [
migrations.AlterField(
model_name='bloghits',
n... | [
"amodhshenoy@gmail.com"
] | amodhshenoy@gmail.com |
55e8252223a59f65395fe1c7789fd74a8d4a78ba | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02792/s894845946.py | a0b1659006571d0d9285032ffceafc05e79611c9 | [] | 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 | 1,081 | py | # import sys
# sys.setrecursionlimit(10 ** 6)
def cmb(n, r):
import math
if n < r:
return 0
return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))
# from decorator import stop_watch
#
#
# @stop_watch
def solve(N):
ABs = {}
ABs_visited = {}
for h in range(1, 10):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d998ef3b950460ec243b2d468ca72164ed6addba | 7fdefad804586192915fc298a63db136c0863995 | /wxPython in Action/wxPythonInAction-src/Chapter-15/tree_simple.py | b9863e92018508c953ddaf7a65d656e00e8287f4 | [] | no_license | typ0520/python_ebook | 2ca948937e2f390a4e4c2ac57f6cd3124ab507a0 | 9abda102b9f245178b61bf9ffca0e633ad96fec1 | refs/heads/master | 2021-06-20T14:14:22.813999 | 2017-08-14T07:31:41 | 2017-08-14T07:31:41 | 98,658,811 | 0 | 1 | null | 2017-07-28T14:43:55 | 2017-07-28T14:43:55 | null | UTF-8 | Python | false | false | 1,913 | py | import wx
import data
class TestFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title="simple tree", size=(400,500))
# Create the tree
self.tree = wx.TreeCtrl(self)
# Add a root node
root = self.tree.AddRoot("wx.Object")
# Add nodes... | [
"jason_yao@htc.com"
] | jason_yao@htc.com |
475fa382a546505487a35004c7fe5da4a68bd9ac | 208baab269ddffab1a93e7dc70b052d07bf50560 | /hood/migrations/0004_editor.py | 363a783e7d71c25eefd44a4b578ec7916b9cdc00 | [] | no_license | marysinaida/Neighborhood | a1035f09515ae9a24bed74ddf1263e06db134c94 | a285df5528bb99d6cb69f9ab41e320682422fe9d | refs/heads/master | 2020-12-13T23:29:18.148498 | 2020-01-21T15:04:53 | 2020-01-21T15:04:53 | 234,562,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-01-21 10:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('hood', '0003_auto_20200121_1312'),
]
operations = [
migra... | [
"marydorcassinaida54@gmail.com"
] | marydorcassinaida54@gmail.com |
8db6c287bc1a3eac410d8592ce97a1a24f13b860 | 3ee1bb0d0acfa5c412b37365a4564f0df1c093fb | /ml/m14_pipeline2_4_boston.py | cb55ea1a8f86bd861a41b7075007639d2c8f3b1b | [] | no_license | moileehyeji/Study | 3a20bf0d74e1faec7a2a5981c1c7e7861c08c073 | 188843c6415a4c546fdf6648400d072359d1a22b | refs/heads/main | 2023-04-18T02:30:15.810749 | 2021-05-04T08:43:53 | 2021-05-04T08:43:53 | 324,901,835 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | # Pipeline, make_pipeline
# 모델 비교
# 2번부터 RandomForest 모델 사용
import numpy as np
import warnings
warnings.filterwarnings('ignore')
from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split, KFold, cross_val_score
from sklearn.model_selection import GridSearchCV, Randomi... | [
"noreply@github.com"
] | moileehyeji.noreply@github.com |
fea6c22074c77c9e5682f20c035d3b881dfa6d4f | ed218f5ea54eac34743f22596eae60242bb73004 | /backend/chat/admin.py | 5e83fe01bb146e7b8ebb6050982a7647e1960b63 | [] | no_license | crowdbotics-apps/kids-teach-kids-18288 | 65566d8ae92964c1e482c79883d1bce2bf7ff6f0 | 3b54f77ed6366541a4cd041d85934c8c802b409b | refs/heads/master | 2022-11-05T14:28:05.406100 | 2020-06-20T19:03:20 | 2020-06-20T19:03:20 | 273,767,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.contrib import admin
from .models import (
Message,
ThreadMember,
MessageAction,
ThreadAction,
ForwardedMessage,
Thread,
)
admin.site.register(ThreadAction)
admin.site.register(ForwardedMessage)
admin.site.register(MessageAction)
admin.site.register(Thread)
admin.site.register(Threa... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
667f652834d1ed267e8db34154d55671fed9c562 | 5b28005b6ee600e6eeca2fc7c57c346e23da285f | /nomadic_recording_lib/ui/iOSCControl/sessionselect.py | 6669a04c959c24f1afc8377ae5c8dea8ae353723 | [] | no_license | nocarryr/wowza_logparse | c31d2db7ad854c6b0d13495a0ede5f406c2fce3f | d6daa5bf58bae1db48ac30031a845bf975c7d5cc | refs/heads/master | 2021-01-17T07:19:00.347206 | 2017-06-24T16:57:32 | 2017-06-24T16:57:32 | 25,835,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | from Bases import OSCBaseObject
import widgets
class SessionSelect(OSCBaseObject):
_Properties = {'selection':dict(type=str, quiet=True)}
def __init__(self, **kwargs):
self.iOsc = kwargs.get('iOsc')
self.client = kwargs.get('client')
kwargs.setdefault('osc_parent_node', self.client.osc_... | [
"matt@nomadic-recording.com"
] | matt@nomadic-recording.com |
59982cb9f893c43e0cf6038a51750f94da4c4fb5 | 1dd72195bc08460df7e5bb82d3b7bac7a6673f49 | /api/alembic/versions/69cbd7ca2477_add_gfs_prediction_model.py | 856f0767fd5fe67adc724458b639c5b7b9e2571f | [
"Apache-2.0",
"MIT"
] | permissive | bcgov/wps | c4347c39cadfad6711502d47776abc8d03895593 | 0ba707b0eddc280240964efa481988df92046e6a | refs/heads/main | 2023-08-19T00:56:39.286460 | 2023-08-16T18:03:06 | 2023-08-16T18:03:06 | 235,861,506 | 35 | 9 | Apache-2.0 | 2023-09-11T21:35:07 | 2020-01-23T18:42:10 | Python | UTF-8 | Python | false | false | 573 | py | """Add GFS prediction model
Revision ID: 69cbd7ca2477
Revises: de8355996f8e
Create Date: 2023-02-09 14:30:49.597571
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '69cbd7ca2477'
down_revision = 'de8355996f8e'
branch_labels = None
depends_on = None
def upgrad... | [
"noreply@github.com"
] | bcgov.noreply@github.com |
2344ae408834eb1cc85fd232d50f961cdc1f96b4 | 09c97a53c39c83bef52d15db6644a27a3bbf229f | /part01-web/day07~_Python/todoMgrSystem/view/menu_view.py | e8eb413180911442b7d826719825336e9c65ee92 | [] | no_license | wansang93/Cloud_multicampus | aa0372914e28ebdc76f5d683e9886841be5f5891 | 646325cee93d6bcabd4163c7bb099e4e92621e9f | refs/heads/master | 2023-03-27T07:02:41.552663 | 2021-03-24T01:53:07 | 2021-03-24T01:53:07 | 326,610,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,454 | py | from entity.todo import Todo
"""
Define View
"""
### Menu ###
# show menu
def display_menu():
print('==================================================')
print('등록(1) 보기(2) 수정(3) 삭제(4) 모두 삭제(5) 나가기(x)')
# select menu number
def select_menu():
menu = input()
return menu
# 메뉴를 다시 입력하라는 문구
def displ... | [
"wansang93@naver.com"
] | wansang93@naver.com |
325e2088f1a70378cc88cdf3a96e15fa365b4554 | 35aca1291dae461d5562a3b7484e5f659ee80817 | /oneflow/__main__.py | b0b1d9d18c301e9044ada93b56b5d3610add3d7f | [
"Apache-2.0"
] | permissive | Flowingsun007/oneflow | e6a52cfbf5e82ca4f8b787aa026f40a2f568a10f | c1880c011dd453719a28d880abe15e2dab8d0da1 | refs/heads/master | 2023-05-11T19:18:59.220269 | 2021-05-28T20:10:35 | 2021-05-28T20:10:35 | 372,195,705 | 0 | 0 | Apache-2.0 | 2021-06-02T09:46:51 | 2021-05-30T11:24:37 | null | UTF-8 | Python | false | false | 1,574 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | Flowingsun007.noreply@github.com |
c74cf90baafe4882b333e01b28d7a2e85ebfb96b | 130e9ef21397b5263ecaf2923f3a196eba58ef5a | /pyxel/ui/number_picker.py | e7a1d3b6ec2d162aa814b72adab9af68df6dec6c | [
"MIT"
] | permissive | sacredhotdog/pyxel | 29571dd3daef6d813f9fdd833bf55e5ba0af689a | 08da48dbd1ac53c06cf8a383f28d66fd89f78f4a | refs/heads/master | 2020-04-04T16:35:26.370822 | 2018-11-04T09:06:05 | 2018-11-04T09:06:05 | 156,084,070 | 0 | 0 | MIT | 2018-11-04T13:18:19 | 2018-11-04T13:18:19 | null | UTF-8 | Python | false | false | 2,600 | py | import pyxel
from .constants import INPUT_FIELD_COLOR, INPUT_TEXT_COLOR
from .text_button import TextButton
from .widget import Widget
class NumberPicker(Widget):
"""
Events:
__on_change(value)
"""
def __init__(self, parent, x, y, min_value, max_value, value, **kwargs):
self._number_... | [
"takashi.kitao@gmail.com"
] | takashi.kitao@gmail.com |
268eb15f65ebda9c888438d11aa9f83830e6d243 | 25ba5fb4e2d02d6949f85ca49e11a70d3960432d | /lib/python/treadmill/alert/__init__.py | 9fef9e3d07e7fbee2c8270059253dff919d686f5 | [
"Apache-2.0"
] | permissive | crazyrex/treadmill | 9c007967db9470685b2d11e2232ad9926b47733e | 75be287a808a4cbdacab67b3f62a3cb3eb1eab67 | refs/heads/master | 2020-03-31T03:55:39.713552 | 2018-10-04T15:28:36 | 2018-10-04T15:28:36 | 151,884,550 | 1 | 0 | Apache-2.0 | 2018-10-06T21:50:04 | 2018-10-06T21:50:03 | null | UTF-8 | Python | false | false | 1,360 | py | """Treadmill alert module.
"""
import io
import json
import os.path
import time
from treadmill import fs
def create(alerts_dir,
epoch_ts=None,
instanceid=None,
summary=None,
type_=None,
**alert_data):
"""Create a file in alerts_dir representing the alert.
... | [
"ceache@users.noreply.github.com"
] | ceache@users.noreply.github.com |
6d3769cc470c8fe3b6958de2bbaec474c6edbc6b | ec68eee1abe0f900210c2bad51b64fb8a1053d5d | /fullerene/config.py | f1f81f62399499bb184b1eb86504f3882803b09d | [] | no_license | bitprophet/fullerene | 36a011eebf1ef1a14f963ed8101334c608757b92 | edb9afe6c07c9d610dfa8630142abb96382ff0c1 | refs/heads/master | 2020-05-18T20:27:56.612256 | 2012-02-11T00:14:52 | 2012-02-11T00:14:52 | 2,579,486 | 15 | 1 | null | 2017-12-11T17:30:57 | 2011-10-14T23:37:06 | Python | UTF-8 | Python | false | false | 2,804 | py | import yaml
from graphite import Graphite
from metric import Metric
class Config(object):
def __init__(self, text):
# Load up
config = yaml.load(text)
# Required items
try:
try:
exclude_hosts = config['hosts']['exclude']
except KeyError:
... | [
"jeff@bitprophet.org"
] | jeff@bitprophet.org |
5b8a25a8b5efba5420da7435bb20a6ce21dac8c9 | a0f0efaaaf69d6ccdc2a91596db29f04025f122c | /install/nav_2d_msgs/lib/python2.7/dist-packages/nav_2d_msgs/msg/_Twist2D.py | d9e163e152623a1775bb41432708d59da2817b86 | [] | no_license | chiuhandsome/ros_ws_test-git | 75da2723154c0dadbcec8d7b3b1f3f8b49aa5cd6 | 619909130c23927ccc902faa3ff6d04ae0f0fba9 | refs/heads/master | 2022-12-24T05:45:43.845717 | 2020-09-22T10:12:54 | 2020-09-22T10:12:54 | 297,582,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,788 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from nav_2d_msgs/Twist2D.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class Twist2D(genpy.Message):
_md5sum = "938fa65709584ad8e77d238529be13b8"
_type = "nav_2d_ms... | [
"chiuhandsome1966@gmail.com"
] | chiuhandsome1966@gmail.com |
0b82641f368069e443e83c50231fbc5e08c0a609 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02584/s013302359.py | f67303454d5f33e7cc48ea5bafc8491a565b7b35 | [] | 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 | 230 | py | x, k, d = map(int, input().split())
cur = abs(x)
rem = k
cnt = min(cur // d, k)
cur = cur - d * cnt
rem = rem - cnt
if rem > 0:
if rem % 2 == 1:
cur = cur - d
ans = abs(cur)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c1767d932fff8f34fbd63518d4b75eae263689f5 | 3a8cb8a3639cee11ec5e9c8e4a0a5f940b711dec | /tests/repos/converters.py | 8510d4d3b9760df9ba3b12a1f22052591b31504e | [
"Apache-2.0"
] | permissive | pofatu/pygeoroc | f35686e19dc327159ce4285e18e2590e91332a23 | c722da35ab36f2fdcc3d793a025bb81d217238e1 | refs/heads/master | 2022-07-09T15:37:31.134567 | 2022-06-29T12:52:34 | 2022-06-29T12:52:34 | 253,836,063 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from pygeoroc.errata import CONVERTERS
FIELDS = {
'LAND_OR_SEA': CONVERTERS.upper,
}
COORDINATES = {
'NEW_CALEDONIA.csv': {
'latitude': CONVERTERS.negative,
'longitude': CONVERTERS.positive,
}
}
| [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
089c2fb171d420553bd2708286517e513092ca50 | 55b57d64ec547869835334318f3059fbb507558c | /Fred2/Data/pssms/smmpmbec/mat/A_02_11_9.py | c26fd3d35fdd4abe9d48da106982f3101dd25ad0 | [
"BSD-3-Clause"
] | permissive | FRED-2/Fred2 | 9845f6678d4011cb746c7a5a6f283eea68077a02 | b3e54c8c4ed12b780b61f74672e9667245a7bb78 | refs/heads/master | 2021-07-12T05:05:54.515427 | 2020-05-25T06:56:25 | 2020-05-25T06:56:25 | 16,275,425 | 42 | 35 | null | 2021-07-07T12:05:11 | 2014-01-27T10:08:11 | Python | UTF-8 | Python | false | false | 2,305 | py | A_02_11_9 = {0: {'A': -0.036, 'C': -0.12, 'E': 0.678, 'D': 0.737, 'G': -0.02, 'F': -0.698, 'I': -0.427, 'H': 0.239, 'K': -0.293, 'M': -0.416, 'L': -0.103, 'N': 0.147, 'Q': 0.596, 'P': 0.699, 'S': 0.006, 'R': -0.198, 'T': 0.363, 'W': -0.325, 'V': -0.251, 'Y': -0.578}, 1: {'A': 0.123, 'C': 0.508, 'E': 0.747, 'D': 1.206, ... | [
"schubert@informatik.uni-tuebingen.de"
] | schubert@informatik.uni-tuebingen.de |
2148763f39be962a4ae2cb0e8be40e490b756cb2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/3117.py | 4b41befbf837cdaf9d873331ac63d00b40d7c5e5 | [] | 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 | 628 | py | infile = open('A-large.in', 'r')
outfile = open('out.txt', 'w')
cases = int(infile.readline())
for i in range(1, cases+1):
line = infile.readline().split()
s_max = int(line[0])
audience = line[1]
standing = 0
ans = 0
if s_max != 0:
for j in range(0, s_max + 1):
if standing >... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
968ffe2bd211dc6988e1de691ba4a0c09270e96c | 5df4d172df0bc6b6c8e021e44a0cfa50a6b01251 | /src/sanic/run_websocket_server.py | bd4e50f51c4efe2153f03012dfb1290d89996a43 | [
"MIT"
] | permissive | kingking888/MocaBliveAPI | 225ba33663f41c08ac358e5b138c57e26381d8f0 | 205bf4eec2becd0bf5a5a64f5d98718a73f51543 | refs/heads/master | 2022-10-18T08:59:53.301603 | 2020-06-08T10:59:08 | 2020-06-08T10:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,401 | py | # Ω*
# ■ ■■■■■
# ■ ■■ ■■
# ■ ■■ ■
# ■ ■■
# ■■■■■ ■ ■■■
# ■■ ■■ ■ ■■■
# ■■ ■■ ■ ■■■■
# ■■ ■■ ■ ■■■■
# ■■■■■■■■■ ■ ■■■
... | [
"el.idealideas@gmail.com"
] | el.idealideas@gmail.com |
4cc4a9f6af19cb45b334d02cac35add8080a7c70 | 39bae52d75b501f6db49b05480d5bb185c2370be | /my_work/btv/btv舆情早前版本/btv舆情_非精简版/btv_舆情/read_WEIBO_USER.py | dc1105b64aa42fb718e430a61e8f295129d1d165 | [] | no_license | callmeivy/Pycharm_Project | 65c53de17a3902c565e13c8b69d134daf97ba6f8 | ec1637683ee1f9d6d3f3533d9de9e913eb779898 | refs/heads/master | 2021-08-23T07:11:11.542918 | 2017-12-04T02:27:44 | 2017-12-04T02:27:44 | 112,572,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,220 | py | #coding=utf-8
import sys,os
import MySQLdb
import time
from collections import Counter
reload(sys)
sys.setdefaultencoding('utf8')
import datetime
import requests
import json
import base64
from requests_kerberos import HTTPKerberosAuth, OPTIONAL
import requests
def issuccessful(request):
if 200 <= request.status_co... | [
"c.ivy.jin@foxmail.com"
] | c.ivy.jin@foxmail.com |
179ef80ca6844d3e1067e15cdbb9ab8d66bc4b24 | fdc6b0e9d2bbb6ceec718e58ef2de531a621c16a | /djangoangular/settings.py | f244f12d81123ce692c36ddcbc97ee440d80538e | [] | no_license | manulangat1/djangoangular | 2d776c31cc7fec5f7b6fd3a79cbc0f3d65c50dfb | 02600e5d71aeea302f44cf25a4efd32c50d16d4b | refs/heads/master | 2020-04-23T01:31:07.751799 | 2019-02-15T04:45:53 | 2019-02-15T04:45:53 | 170,815,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | """
Django settings for djangoangular project.
Generated by 'django-admin startproject' using Django 1.11.16.
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/
"""
im... | [
"emmanuelthedeveloper@gmail.com"
] | emmanuelthedeveloper@gmail.com |
52cd9f391400b90fae34f5b8dd6fd2c5e3a667c6 | 5c7fb0e2f3bc498351ba4c57247ec1637da57e21 | /python/mpi/enum.py | f4b091573d29406aba69119a5c793a4e9555f7b0 | [] | no_license | shixing/myLib | 35180e479f3701c07894f829b8f495594d23a225 | d4557fe0f07543ba588a7464b6efafebac1284a5 | refs/heads/master | 2020-05-19T13:34:34.022281 | 2017-04-10T01:08:06 | 2017-04-10T01:08:06 | 19,991,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | # copied from mpi4py-examples/09-task-pull.py
def enum(*sequential, **named):
"""
Handy way to fake an enumerated type in Python
"""
enums = dict(zip(sequential, range(len(sequential))), **named)
return type('Enum', (), enums)
tags = enum('READY', 'DONE', 'EXIT', 'START')
tags.READY # == 0
tags.... | [
"shixing19910105@gmail.com"
] | shixing19910105@gmail.com |
4188530b0c1b69052fa56920b558dc66dab2cbe9 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/b7db18784e744fa39ebc6a5d607b0289.py | 9405afec6249a56d672a92e52e9a8340f2f34a94 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 327 | py | def hey(content):
"""
Simple function which passes tests ran from bob_test.py.
"""
text = content.strip()
if text.isupper():
return "Whoa, chill out!"
elif text[-1:] == "?":
return "Sure."
elif len(text) == 0:
return "Fine. Be that way!"
else:
return "What... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
1d46b3c0287a5603be16485830b47c7a717b1e70 | cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde | /P/PathSum.py | f4df2af0815725df3b70e8818ba0d2c397a4b0b4 | [] | no_license | bssrdf/pyleet | 8861bbac06dfe0f0f06f6ad1010d99f8def19b27 | 810575368ecffa97677bdb51744d1f716140bbb1 | refs/heads/master | 2023-08-20T05:44:30.130517 | 2023-08-19T21:54:34 | 2023-08-19T21:54:34 | 91,913,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | '''
-Easy-
Given the root of a binary tree and an integer targetSum, return true if the
tree has a root-to-leaf path such that adding up all the values along the path
equals targetSum.
A leaf is a node with no children.
Example 1:
Input: root = [5,4,8,11,null,13,4,7,2,null,null,null,1], targetSum = 22
Output:... | [
"merlintiger@hotmail.com"
] | merlintiger@hotmail.com |
2d2c15b57889aca91355673475220e7fce3cd17b | e20d947696ffb2422c5856ca1067c9a068705a82 | /day011/hw_004_元组.py | 190b4ecb34df475476aae193895ba6f42c218bd8 | [] | no_license | lxgzhw520/ZhangBaofu | 27aed80446c687890e17c35a2bc5c93a5b75462e | 401bae4b2d8e1a284d281cc29b5ed31a4e2039a4 | refs/heads/master | 2020-05-07T16:14:06.627708 | 2019-04-21T06:20:26 | 2019-04-21T06:20:26 | 180,673,589 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | # _*_ coding:UTF-8 _*_
# 开发人员: 理想国真恵玩-张大鹏
# 开发团队: 理想国真恵玩
# 开发时间: 2019-04-12 08:44
# 文件名称: hw_004_元组.py
# 开发工具: PyCharm
# 元组和列表类似 不过列表是用()定义的 值不可修改
t = () # 定义一个空元组
print(type(t))
t1 = (1,) # 定义一个元素的列表
print(type(t1)) # type用来打印一个数据的类型
t2 = (1) # 注意一个元素必须加逗号,否则不是元组类型
print(type(t2))
# 元组推导式 这种方法是不行的
t = (i for i... | [
"zhangdapeng@zhangdapengdeMacBook-Pro.local"
] | zhangdapeng@zhangdapengdeMacBook-Pro.local |
adda1694dfde2bc1d6bbc99f30c38673d8050ccf | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/api/paddlebase/test_fill_diagonal_.py | 93120e73f50302acf34f960d7acf4c341ceb6a23 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 4,229 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test_fill_diagonal_
"""
import pytest
import numpy as np
import paddle
import paddle.device as device
# global params
types = [np.float32, np.float64, np.int32, np.int64]
if device.is_compiled_with_cuda() is True:
plac... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
a1ba025fe318dd09aeeb95e54f2a655205cf044f | 0466559817d3a1be9409da2c83db99c4db3bacfe | /hubcheck/pageobjects/widgets/members_profile_citizenship.py | ec9f66eaa2fd00b4a7f93c8527708680e75ad588 | [
"MIT"
] | permissive | ken2190/hubcheck | 955cf9b75a1ee77e28256dfd3a780cfbc17de961 | 2ff506eb56ba00f035300862f8848e4168452a17 | refs/heads/master | 2023-03-20T15:17:12.949715 | 2015-09-29T16:11:18 | 2015-09-29T16:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | from hubcheck.pageobjects.basepageelement import Radio
from hubcheck.pageobjects.basepageelement import Select
from hubcheck.pageobjects.widgets.members_profile_element import MembersProfileElement
class MembersProfileCitizenship(MembersProfileElement):
def __init__(self, owner, locatordict={}):
super(Memb... | [
"telldsk@gmail.com"
] | telldsk@gmail.com |
8d54b53bc1d6286ed1f8111eb5d4bbe6b2fe7523 | 3e0f16d967952cb30eb4375457f603164f44e906 | /1장. 파이썬 데이터 모델/1.3 특별 메서드 개요.py | 74906a0abfa2df4836a1bd83d527c64bff0ce1af | [] | no_license | moon0331/FluentPython | 6d8491d41a9cbdf5b2e528ebd4261693d11c9443 | f307abc00b15fd747dff04e8ccbccf45da0897a9 | refs/heads/master | 2022-11-27T16:10:10.367276 | 2020-08-08T12:49:52 | 2020-08-08T12:49:52 | 286,024,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | # 데이터 모델
# 특별 메서드 이름
#https://docs.python.org/3/reference/datamodel.html | [
"moon0331@skku.edu"
] | moon0331@skku.edu |
c5547a73de98204b49faad630d70600c0e27b32d | fd3c3ab6482c91e2ac6e497f89ed525eb93a7047 | /tests/test_stimulus.py | 6210872d3c6bd772e8d86955b420021640b855fd | [
"MIT"
] | permissive | alex-vrv/pyABF | 5c4d71f078f4b9bf6e95a1b58d10d9ca6510fed6 | 9ec95539f0130c307e6fa9b6edc980178b9cb6f7 | refs/heads/master | 2023-04-08T13:33:02.571622 | 2021-04-17T17:07:11 | 2021-04-17T17:07:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | py | """
Tests related to locating and reading command waveforms from stimulus waveform
files. If the stimulus waveforms aren't found you can provide a search path
as an argument when instantiating pyabf.ABF()
"""
import sys
import pytest
import os
import numpy as np
import time
import warnings
try:
# this ensures py... | [
"swharden@gmail.com"
] | swharden@gmail.com |
be1bb4ed6662e9ff830d39528774f26d5040e745 | 94f304cb4c2ac2ad6ff1ee39725f46254c8838bc | /core/draw/Ui_draw_point.py | 7ec948d966ec3c42e306b90ab1b088857653a980 | [] | no_license | kmolLin/python3_solve_dynamic | 105bd70edaa5014e0ad76a9a3c66e43dc0fa5ad7 | 18f56e6958dd1816dfb7c26f4857aa3b41de9312 | refs/heads/master | 2021-06-03T10:19:44.551240 | 2016-09-23T13:22:52 | 2016-09-23T13:22:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,397 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/ahshoe/Desktop/Pyslvs/core/draw/draw_point.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(s... | [
"smpss91341@gmail.com"
] | smpss91341@gmail.com |
3e3528b72cecdd0356d6df40b19ea4c3497bb400 | 914ca4921c114c917267214e0987ebecf30b3510 | /Programming_Practice/Python/Base/Bigdata_day1010/LIST08.py | aab3742c91537c9b07e87bb9007499fe748b1f30 | [] | no_license | BurnFaithful/KW | 52535030ea57f1489a0d108d599b66ffee50a1f4 | 15deb50449b8f902f623f20b97448c0f473a9342 | refs/heads/master | 2022-12-20T16:06:01.827398 | 2020-09-12T08:51:23 | 2020-09-12T08:51:23 | 294,897,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | # 리스트 조작 함수 그 외
mylist = [30, 10, 20]
print("현재 리스트 :", mylist)
mylist.append(40)
print("append(40) 후 :", mylist)
res = mylist.pop()
print("pop()으로 추출한 값 :", res)
print("현재 리스트 :", mylist)
mylist.sort()
print("sort() 후 :", mylist)
mylist.reverse()
print("reverse() 후 :", mylist)
val = mylist.index(20)
print("index... | [
"burnfaithful@gmail.com"
] | burnfaithful@gmail.com |
45098d49bfd0204d1df0e2b2fdf4155f7bc7261a | b3c47795e8b6d95ae5521dcbbb920ab71851a92f | /Leetcode/Algorithm/python/1000/00944-Delete Columns to Make Sorted.py | 01c17945b8dcf7591fc445ab750d72a8edfe98a0 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Wizmann/ACM-ICPC | 6afecd0fd09918c53a2a84c4d22c244de0065710 | 7c30454c49485a794dcc4d1c09daf2f755f9ecc1 | refs/heads/master | 2023-07-15T02:46:21.372860 | 2023-07-09T15:30:27 | 2023-07-09T15:30:27 | 3,009,276 | 51 | 23 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | class Solution(object):
def minDeletionSize(self, A):
n = len(A[0])
st = []
for i in xrange(n):
st.append(''.join(map(lambda x: x[i], A)))
res = 0
for s in st:
if s != ''.join(sorted(s)):
res += 1
return res
| [
"noreply@github.com"
] | Wizmann.noreply@github.com |
4f2ab5a122e4427a2b0bc316047d8a326960d0b6 | cf7e071e387be8713ba9cb66fb9e02d65f24c13e | /tests/adapters/test_redirects.py | 94e5a745db77de995f8af1df62a917b382a9cbae | [
"BSD-3-Clause"
] | permissive | yunstanford/httpcore | 5169b74a3d266e71b4fdfe9fdf2fac76ea97321d | 84b9691f3ff3184a9627eee4d088982bbb295f23 | refs/heads/master | 2020-05-21T15:32:27.287463 | 2019-05-09T09:57:23 | 2019-05-09T09:57:23 | 186,093,284 | 0 | 0 | null | 2019-05-11T05:47:55 | 2019-05-11T05:47:55 | null | UTF-8 | Python | false | false | 8,820 | py | import json
from urllib.parse import parse_qs
import pytest
from httpcore import (
URL,
Adapter,
RedirectAdapter,
RedirectBodyUnavailable,
RedirectLoop,
Request,
Response,
TooManyRedirects,
codes,
)
class MockDispatch(Adapter):
def prepare_request(self, request: Request) -> N... | [
"tom@tomchristie.com"
] | tom@tomchristie.com |
ccc0db47bb35b02bf55b2a3b7b26bd606bcd75a7 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /log-20190927/132.230.102.123-10.21.11.20/1569575874.py | 5de66d09d31823420aabdb67b028801eeaf683e5 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def divisior(n: int) -> list:
"""Eine Funktion, die alle Dividenten einer positiven,
ganzen Zahl in einer Liste wiedergibt
"""
j = [n]
for d in range(n+1): #loop bis n
d > 0
if abs(n) % int(d)... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
3a04f547f002847a7ded45264a9b924b04ad80c2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/2604.py | 17221a93a4af173a541d76a67dca1f017c864d35 | [] | 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,419 | py | f = open('A-small-attempt5.in')
lines = f.readline()
inputlist = f.readlines()
linewords =[]
TranslatedWord = ''
TranslatedWords = []
TranslatedSentence = ''
outputlist=[]
tongues = {}
tongues['a']='y'
tongues['b']='h'
tongues['c']='e'
tongues['d']='s'
tongues['e']='o'
tongues['f']='c'
tongues['g']='... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
05f1f72fb9d2533b3aba6ac889a694e0e1edc5f1 | 3088dc21f3e5eeb31575704712a695d71772495f | /torch/_C/_lazy.pyi | e86b80837d5898fd477b7f63c5e7ad387a2a65de | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | ezyang/pytorch | 8e82444c78025ff12fa605a62a18acfc43b176b8 | 6fc64500d1af9ee1306c7695ab0a2ff01852ff00 | refs/heads/master | 2023-09-02T01:56:28.108400 | 2022-06-07T19:13:21 | 2022-06-07T19:13:21 | 101,798,885 | 3 | 0 | NOASSERTION | 2022-08-23T22:10:07 | 2017-08-29T19:28:39 | C++ | UTF-8 | Python | false | false | 878 | pyi | from typing import List
from torch import Tensor
#defined in torch/csrc/lazy/python/init.cpp
def _mark_step(device: str, devices: List[str], wait: bool): ...
def _wait_device_ops(devices: List[str]): ...
def _reset_metrics(): ...
def _counter_names() -> List[str]: ...
def _counter_value(name: str) -> int: ...
def _get... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
eddda169430ed0378114c2ea9afbf5730a434155 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02984/s103576149.py | 4b0ac84178304706c240d4938f971696c04a987b | [] | 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 | 230 | py | n=int(input())
a=list(map(int,input().split()))
s=sum(a)
ans=[]
s1=0
for i in range(n):
if i%2==1:
s1+=a[i]
ans.append(str(s-s1*2))
for j in range(n-1):
ans.append(str(a[j]*2-int(ans[-1])))
print(' '.join(ans)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b973456b943c3feb54008e7162ec38a69daa125a | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008-EOL/programming/languages/perl/perl-Clone/actions.py | a535f852d7ba91e57c9e618fdef343f9b88e8c49 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2007,2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import perlmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
1bb3a9f8dfa507a3d76443d3a52f62ed9e64ba3a | eac7ae395c4832ac394087054ab014d1d6a9f6a6 | /python_experiments/data_analysis/figures_icde19/parse_others/parse_hidx.py | b9b210f1b1b13d1f29e2f0c48b1ac00e6f5122c1 | [
"MIT"
] | permissive | mexuaz/AccTrussDecomposition | 21be22007e1c50ca4b7df6fbbad1dfbf4c2fffae | 15a9e8fd2f123f5acace5f3b40b94f1a74eb17d4 | refs/heads/master | 2022-12-14T03:41:05.133564 | 2020-09-03T00:35:33 | 2020-09-03T00:35:33 | 291,565,779 | 0 | 0 | MIT | 2020-08-30T22:57:55 | 2020-08-30T22:57:55 | null | UTF-8 | Python | false | false | 1,989 | py | from data_analysis.util.read_file_utils_updated import *
from config import *
from exec_utilities import exec_utils
import json
others_time_hidx = 'h-idx'
def fetch_statistics(root_dir, dataset_lst, t_num, algorithm, json_file_path):
# Dataset -> Detailed Time Info
my_dict = dict()
for dataset in datase... | [
"yche@cse.ust.hk"
] | yche@cse.ust.hk |
3ac4f8b2a990c75001a1b676c0dcdbdcfaa0819c | 59b0ebc4249f20edd0e87dc63784c6e8c138c7fd | /.history/roman_20180615012149.py | 1f4d4bae42ab05f4189eed06aa87328cc9a2eeb8 | [] | no_license | Los4U/first_python_programs | f397da10be3ef525995f3f220e3b60012a6accaa | c3fc33a38c84abd292cb2e86de63e09434fc7fc4 | refs/heads/master | 2020-03-22T08:09:40.426118 | 2018-07-04T17:17:58 | 2018-07-04T17:17:58 | 139,748,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | number = 568
print("1000", number//1000)
print("900", number//900)
print("500", number//500)
print("400", number//400)
print("100", number//100)
print("90", number//90)
print("50", number//50)
print("40", number//40)
print("10", number//10)
print("9", number//9)
print("5", number//5)
print("4", number//4)
print("1", n... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
12623598889120e6503dc91e9996fe6e19049188 | eb9e5f950f567458deb7ac6a958e9e07eec8211c | /Python/Projects/mysite/im/views.py | d6a2010f3c6fe4d3720effe6c19e7f063374e179 | [] | no_license | hyteer/ytest | b32402f4a85af2cba298729b81ae73ccedbe6013 | 98234f88e923a705ce08673a269904ca81117f03 | refs/heads/master | 2020-01-23T21:47:40.100472 | 2017-01-23T10:12:21 | 2017-01-23T10:12:21 | 74,676,200 | 0 | 0 | null | 2017-01-23T10:12:22 | 2016-11-24T13:34:34 | JavaScript | UTF-8 | Python | false | false | 1,691 | py | # encoding: utf-8
from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.views import generic
from .forms import RoomLabelForm
from .models import Message, Room
# Create your views here.
def index(req):
#return HttpResponse("hi...")
if req.method == 'POST':
fo... | [
"hyteer@qq.com"
] | hyteer@qq.com |
f8a8e65317639d4af42307e7fb7372570acb74ba | 9cb4b0753f1392b488547395c43a8a6df5789a7a | /test/test_print_formats.py | c83cd4697133d482824149cf907251f9e8e95df5 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ZryletTC/archapp | db20cbcbf8135cc364d7dc0dda00a4409ff05800 | 68299fa3e35c292cff33bba55a3a75e9ae568815 | refs/heads/master | 2021-07-23T00:16:10.902137 | 2018-09-17T18:05:33 | 2018-09-17T18:05:33 | 233,143,295 | 0 | 0 | NOASSERTION | 2020-01-10T23:30:32 | 2020-01-10T22:50:21 | null | UTF-8 | Python | false | false | 319 | py | import unittest
from archapp.util import print_formats
class PrintFormatsTestCase(unittest.TestCase):
def test_print_list_no_crash(self):
print_formats.list_print([], do_print=False)
print_formats.list_print(["text"], do_print=False)
print_formats.list_print(["text"] * 50, do_print=False)
| [
"zlentz@slac.stanford.edu"
] | zlentz@slac.stanford.edu |
909fdf9e128bce0236a62e8ff7811d35593840e1 | 97a4d29863d1ce96f366554fdd985c3ce580bb5d | /038.py | 0992e125a2c74680dc26c628fe36a109f19fe972 | [] | no_license | Everfighting/Python-Algorithms | 5c3a102fed3a29858f3112d657c69e077efc7e28 | 235e9b4c66602035be39a8d3b3ad9cf016aebbb9 | refs/heads/master | 2021-01-20T22:19:18.902687 | 2018-03-02T05:38:27 | 2018-03-02T05:38:27 | 61,302,323 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
if __name__ == '__main__':
a = []
sum = 0.0
for i in range(3):
for j in range(3):
a.append(float(raw_input("input num:\n")))
for i in range(3):
sum += a[3*i+i]
#比原来的解法更加容易理解!
print sum
| [
"cbb903601682@163.com"
] | cbb903601682@163.com |
2f05dd68471f8c482bab11750f30469d447bc5fd | 5de646fb3ecf10ecb45e05018a23b6345fb9ca53 | /kickstart/2020 Round A/workout.py | 3228eaf2dddec7155a79d9a7818a00d038790e31 | [] | no_license | PPinto22/LeetCode | 5590d6ca87efcd29f9acd2eaed1bcf6805135e29 | 494a35542b61357c98c621202274d774e650a27c | refs/heads/master | 2022-04-29T20:37:31.085120 | 2022-04-02T12:02:30 | 2022-04-02T12:02:30 | 201,478,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | import math
def solve(N, K, sessions):
diffs = [sessions[i + 1] - sessions[i] for i in range(N - 1)]
return min_binary_search(1, max(diffs), constraints, K, diffs)
# Validate if it is possible to achieve the given difficulty
# with less than 'max_splits' splits
def constraints(difficulty, max_splits, diffs)... | [
"pedropinto24@hotmail.com"
] | pedropinto24@hotmail.com |
0a34f9a13d7367f74a7cb32c527c6e70ca44d90c | a4c2c6e12e8f79a1e96df2364a304a39413c61ca | /codingame.py | e0e9b774680edac154a6326df5f5b734129ba8f2 | [] | no_license | ilmoi/challenges | 43c416f82bf5fa6b357a9b8f17caa17763c1031f | 4e90f675ee7965d63af75d642217d64517bc434f | refs/heads/master | 2022-07-17T17:35:42.177809 | 2020-05-14T16:49:24 | 2020-05-14T16:49:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | import random
print(random.randint(0, 1))
| [
"iljamoisejevs@gmail.com"
] | iljamoisejevs@gmail.com |
a7fe54623cf7e91b74619370ecdf197fd332ce39 | 83727bce4680f56234b7ca35ab3fe99cd0cb0d3e | /lib/nark/__init__.py | c0748f97d6f7c712e456b91d78fa6e0469f45dfb | [] | no_license | onethousandfaces/rpg | 62647b2dd6ad0c253ed363f3bcd340706f075082 | 219b3f865c99d5619ec0a63f5e18ac1f0f064413 | refs/heads/master | 2021-01-15T16:16:11.037991 | 2013-04-07T07:41:20 | 2013-04-07T07:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from Enum import *
import log
import ioc
from Log import Log
from Register import Register
__all__ = [ enum, bitflags, log, Log, Register, ioc ]
| [
"linderd@iinet.net.au"
] | linderd@iinet.net.au |
93aa7788b41ca27080912ddcf5f42c76086fa66a | f7ae3a193cf672f2c7edf27518f6d3871f635bce | /tools/gen_daily_areas_scotland.py | dd1391d07c85027df83bc161ea627e10c7746a1b | [] | no_license | lozenge0/covid-19-uk-data | 262c158f27734dc0d8b0e3d28c21be613465eebe | e9f2c927e0be2e4301921d423108160e4a272ade | refs/heads/master | 2021-03-26T01:50:55.964597 | 2020-03-15T21:58:24 | 2020-03-15T21:58:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | #!/usr/bin/env python
# Extract local authority case data (England) or health board data (Scotland) from an HTMLpage and save in CSV format.
from bs4 import BeautifulSoup
import csv
import pandas as pd
import re
import sys
html_file = sys.argv[1]
csv_file = sys.argv[2]
# Get upper tier local authority name to code ... | [
"tom.e.white@gmail.com"
] | tom.e.white@gmail.com |
ddea386e7d4b21095806b4773a9d65d07e26e84f | d5d9996c55414561fe77a2630ad7e0cfff0735ad | /pddm/statstics_anlysis/bootstrapped/__init__.py | f83d651288bd9cb793be2ee6023a791a593a03fa | [
"Apache-2.0"
] | permissive | kyo-kutsuzawa/EEI_Analysis_model_based_rl | 4b704875619be0045b6f3b1ad12e86bd1041347c | d83ad7a7da936672a05ccacc6846d16c33421b96 | refs/heads/main | 2023-01-11T22:36:49.348156 | 2020-11-10T04:54:21 | 2020-11-10T04:54:21 | 313,227,869 | 0 | 0 | Apache-2.0 | 2020-11-16T07:55:31 | 2020-11-16T07:55:30 | null | UTF-8 | Python | false | false | 295 | py | # Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
| [
"a.hamada@neuro.mech.tohoku.ac.jp"
] | a.hamada@neuro.mech.tohoku.ac.jp |
76fa13ebb809c0d96b5283163e49de9cd30ee7b8 | a1a934e69050884560074a633dfe33d21a8acfcb | /examples/scikit-learn/wine-quality/pyfunc_predict.py | 7c172de9a2b0fc2d98a8ae608c1cb2eceea55122 | [] | no_license | SkilledMinds/mlflow-fun | 977a8bf0e052e72f2b98ee8a17ed017034e6a9a2 | 3caa0e5f61739357733cc165338c1d5a3c93f456 | refs/heads/master | 2020-04-29T00:56:28.995924 | 2019-03-13T23:57:14 | 2019-03-13T23:57:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py |
# Serve predictions with mlflow.pyfunc.load_pyfunc()
from __future__ import print_function
import sys
import mlflow
import mlflow.pyfunc
import mlflow.tracking
import util
if __name__ == "__main__":
if len(sys.argv) < 1:
println("ERROR: Expecting RUN_ID PREDICTION_FILE")
sys.exit(1)
print("ML... | [
"amesar@users.noreply.github.co"
] | amesar@users.noreply.github.co |
af7495869c9a3fb0198ffbf102eb36b70a3ba9c1 | 52efcaacf23e2345d09a1de61610a74df457057f | /auto_derby/scenes/single_mode/aoharu_battle_confirm.py | 435e426f1990e5313b1c92abcfc2746f849e3917 | [
"MIT"
] | permissive | debi-derby/auto-derby | 78bc726e8243c8a25ddc13b364b7289f322caaaa | c2e5c138125cac6dc13dbd74045161ca03f6e5cf | refs/heads/master | 2023-09-03T09:03:35.305321 | 2021-11-02T16:18:45 | 2021-11-02T16:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | # -*- coding=UTF-8 -*-
# pyright: strict
from __future__ import annotations
from PIL.Image import Image
from auto_derby import constants, template
from typing import Any, Dict, Iterator, Text, Tuple
from ... import action, templates, mathtools
from ...scenes import Scene
from ..scene import Scene, SceneHolder
def... | [
"NateScarlet@Gmail.com"
] | NateScarlet@Gmail.com |
4266fac216ad1d316fc296b75728ee21f701d3c9 | 509823ea14f04d5791486b56a592d7e7499d7d51 | /parte11/11.1_intro_funciones.py | ee051acf132ed8184e654c6fdfe566647698afbb | [] | no_license | Fhernd/Python-CursoV2 | 7613144cbed0410501b68bedd289a4d7fbefe291 | 1ce30162d4335945227f7cbb875f99bc5f682b98 | refs/heads/master | 2023-08-08T05:09:44.167755 | 2023-08-05T19:59:38 | 2023-08-05T19:59:38 | 239,033,656 | 64 | 38 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | # Introducción a las funciones - Unidades de reutilización y encapsulación de información:
# 1. Creación de una función:
print('1. Creación de una función:')
def sumar(numero_1, numero_2):
"""
Suma dos números (sean enteros o punto flotante).
Parameters:
numero_1: primer valor a sumar.
numero_2: ... | [
"johnortizo@outlook.com"
] | johnortizo@outlook.com |
6ecc8fecb6fb0874525588a2bd17ddb89ac54107 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/flask-admin-examples/layout_bootstrap3/.venv/bin/flask | ceac5d8fcd84d5ec7c11f2c2125baa483fdaae5c | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 287 | #!/root/NetBeansProjects/fedora/python/flask-admin-examples/layout_bootstrap3/.venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br | |
4b8b01a2cbf64cf1df9453d4779d4dae791226e7 | d33bb5d51c432058d2c8efa0882f24c8dad2bb4f | /setup.py | 31ab4adf42f3560f9bdf10a9780f3d01f23951c9 | [
"Apache-2.0"
] | permissive | anuragarnab/fvcore | 351e8a50fe27993646f774823f09331f62d161ae | da9d3658590c9f672998850542817acecd98facc | refs/heads/master | 2023-03-08T23:21:27.825110 | 2021-02-24T22:30:32 | 2021-02-24T22:30:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import os
from os import path
from setuptools import find_packages, setup
def get_version():
init_py_path = path.join(
path.abspath(path.dirname(__file__)), "fvcore", "__init__.py"
)
init_py = open(ini... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
900590a83b7d3240581c458f12d539d50dab438f | e3ec7260806c1e2b045a0de93a150a5c3fc1b9df | /test/ResultsAndPrizes/top-3/test_top_3_winning_numbers_of_the_last_4_draws.py | e44b5657bb3991bf27e30b9fabd015acfc7b59ef | [
"Apache-2.0"
] | permissive | FearFactor1/SPA | 58a21c9ec7a72a78f5ff50214e58faac43a3059d | a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7 | refs/heads/master | 2021-07-07T04:25:12.525595 | 2020-11-16T14:35:33 | 2020-11-16T14:35:33 | 204,684,720 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # Топ-3 + Выигрышные номера последних 4 тиражей
def test_top_3_winning_numbers_last_4_draws(app):
app.ResultAndPrizes.open_page_results_and_prizes()
app.ResultAndPrizes.click_game_top_3()
app.ResultAndPrizes.click_winning_numbers_of_the_last_4_draws()
app.ResultAndPrizes.button_get_report_winners()
... | [
"zelezodoroznik@yandex.ru"
] | zelezodoroznik@yandex.ru |
339b0f19ded0667fb6df857d1218b8eef24f7bde | 4415f0a06536b66d4e7425b3995c4009516c180d | /World1/Challenge026.py | 0091692c182ee489a19bb63c2c350ef621f2301b | [] | no_license | AndreisSirlene/Python-Exercises-Curso-em-Video-World-1-2-and-3 | c73c2df958f5b83744af6288d26bb270aa30f8fd | 62f59383eee9b8ab43ff78495cf30eb390638013 | refs/heads/master | 2023-03-30T11:34:12.672180 | 2021-03-24T23:34:17 | 2021-03-24T23:34:17 | 290,814,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | phrase = str(input('Type any phrase:')).upper().strip()
print('In this phrase the letter I appears {} times'.format(phrase.count('I')))
print('The first letter I appears in the position {}'.format(phrase.find('I')+1))
print('The last position that letter I appears is {}'.format(phrase.rfind('I')+1)) | [
"andreissirlene@gmail.com"
] | andreissirlene@gmail.com |
2f2f1517049db9c6fdfb700fba9d62aacad883c3 | c9aa34a74e9f095c4dec21acf0f63ce33ea54757 | /UndocumentedScripts/CheckPnRDistanceAndTime.py | 1258464347152b538a8564eff4fc80b7360d2030 | [] | no_license | dvrpc/TIM3AnalysisScripts | d4a5308987279da421d4e9e76ca3ff6efe4e6490 | cb8d50eead676b2950051a6d527be7a13de19b9f | refs/heads/main | 2023-07-30T01:20:52.457588 | 2021-10-01T15:34:47 | 2021-10-01T15:34:47 | 372,885,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,827 | py | import pandas as pd
import numpy as np
import VisumPy.helpers as h
def log(msg):
Visum.Log(20480, msg)
log('Reading Skims')
zones = np.array(h.GetMulti(Visum.Net.Zones, "No"))
def read_skim_tofrom_pnr(matno):
global zones
skim = pd.DataFrame(h.GetMatrix(Visum, matno), zones, zones)
return skim
skims... | [
"jflood@dvrpc.org"
] | jflood@dvrpc.org |
aa90679fd2eaab72c0d8b81a0e0311920984962f | 7db04177060d1b1d13bdf4e0f77cda83488d08bd | /backend/auth/email.py | d6bd5a020d88428569dc96d602dbacd15c3c499c | [] | no_license | AlenAlic/mailserver | 6ed5aa32e7f97b732e3630c1c435f233851a4a6a | a37f022feb2e3a2433bf7bf15c1cef0fc364901b | refs/heads/master | 2023-02-02T09:17:00.192475 | 2019-11-08T21:12:11 | 2019-11-08T21:12:11 | 220,267,001 | 0 | 0 | null | 2023-01-09T22:33:19 | 2019-11-07T15:21:32 | CSS | UTF-8 | Python | false | false | 689 | py | from flask import render_template
from backend.email import send_email
def send_password_reset_email(user):
token = user.get_reset_password_token()
send_email('Password reset', recipients=[user.email],
text_body=render_template('email/reset_password.txt', user=user, token=token),
... | [
"aalic89@gmail.com"
] | aalic89@gmail.com |
f0cedc5c68f50025aca88faedf6e41fdc603495d | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210715184119.py | d6e6d3f91a2163239eae7152a62d36fd304beac1 | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,591 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
8bad4dd94e501f270bd800aaa6a30a287cc857bf | f0cec246e2f30f6b4ee5656f1cb6406dd0f7879a | /thingsboard_client/models/entity_relations_query.py | 3809b31c1629f825572c4525d74a841698f3feae | [] | no_license | ascentio-tech/thingsboard-swagger-client | 4e2f7c943e243ec8505c32dab0aa3d6cf1559105 | 1e8bf7664c281c29612fd5b44261f049ca7c44fd | refs/heads/master | 2021-07-20T07:18:12.969459 | 2020-06-17T02:35:54 | 2020-06-17T02:35:54 | 184,322,192 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,072 | py | # coding: utf-8
"""
Thingsboard REST API
For instructions how to authorize requests please visit <a href='http://thingsboard.io/docs/reference/rest-api/'>REST API documentation page</a>. # noqa: E501
OpenAPI spec version: 2.0
Contact: info@thingsboard.io
Generated by: https://github.com/swagger-... | [
"gmatheu@ascentio.com.ar"
] | gmatheu@ascentio.com.ar |
7b6e3237909a5d784fdd92d6a36e1c9572ec482e | c88e476567f651de989840dd5f74354ee0a95826 | /Day-30/Restaurant/Restaurant/settings.py | 34c602354aa07b76604481face55fb61ff3b9b29 | [] | no_license | InduPriya-pokuri/Django-Internship-24-05-2021 | 5e5c2f4c004482938fbd196a6c07f381748eede5 | d4daf040aaef484a1f9c3025441d66baa9c16e44 | refs/heads/main | 2023-06-13T06:07:51.968401 | 2021-07-12T12:45:52 | 2021-07-12T12:45:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,069 | py | """
Django settings for Restaurant project.
Generated by 'django-admin startproject' using Django 3.0.
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
... | [
"rravikumar34@gmail.com"
] | rravikumar34@gmail.com |
04ce739cc903974beed995d84e696a06f1ca6a8c | a3366c118bb0b899cb436d89fc76f231d63366d2 | /fc_toolbelt/tasks/project.py | 7556d39a8d8e5356d343934d48baaa0b65a33e90 | [] | no_license | futurecolors/fc-toolbelt | cd25ac1f6fc3e2414d12d8235374220944e5136e | 2f0d33f612a676bf9ff2f8e769c4d4638b5e9212 | refs/heads/master | 2021-01-10T19:55:36.062097 | 2013-10-31T10:56:51 | 2013-10-31T10:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,897 | py | # coding: utf-8
import os
from functools import partial
from fabric.colors import green
from fabric.context_managers import cd, prefix
from fabric.operations import run, sudo
from fabric.state import env
from fabric.tasks import Task, execute
from fabric.utils import puts
from fc_toolbelt.tasks.gitlab import BaseGitla... | [
"baryshev@gmail.com"
] | baryshev@gmail.com |
5bb63b411ea64c0b78942432783bb9e0c6f28e02 | 51e7336e8bb447187cbe6ede2910f40700316dc1 | /simics/monitorCore/hapCleaner.py | 221c8265c08cba073d1765b15bf20f581efc1275 | [] | no_license | hacker-steroids/RESim | 69bac74a1b119c54d03b9ea0fda7a85cc45ea854 | 94498c699575f5078de415fac8c517d520cb2f94 | refs/heads/master | 2020-05-30T12:33:53.799610 | 2019-06-01T00:51:20 | 2019-06-01T00:51:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | '''
Structures for cleaning up stop haps used in reverse execution
'''
class HapCleaner():
hlist = None
def __init__(self, cpu):
self.hlist = []
self.cpu = cpu
class HapType():
def __init__(self, htype, hap):
self.htype = htype
self.hap = hap
def add(se... | [
"mfthomps@nps.edu"
] | mfthomps@nps.edu |
ecb0e899bf03e3016709f291990968cbabf79748 | ad054cebf4198f25d6ca9b37b0eef4783762ac04 | /Algorithm/개념정리/Memoization/Memoization_새꼼달꼼 장사.py | a40cd5afd48fe22ef6fc0fc0565a9c744e7da794 | [] | no_license | ges0531/TIL | 4888d0bde5f84ad80caac63ffecf247d22daa0bf | 54389b30e0a67f9c9a3329b1b59c43cdbb33a62c | refs/heads/master | 2023-01-10T23:51:37.409124 | 2020-08-01T07:42:23 | 2020-08-01T07:42:23 | 195,916,245 | 0 | 0 | null | 2023-01-05T01:18:07 | 2019-07-09T02:17:43 | Python | UTF-8 | Python | false | false | 1,470 | py | def max_profit_memo(price_list, count, cache):
# Base Case: 0개 혹은 1개면 부분 문제로 나눌 필요가 없기 때문에 가격을 바로 리턴한다
if count < 2:
cache[count] = price_list[count]
return price_list[count]
# 이미 계산한 값이면 cache에 저장된 값을 리턴한다
if count in cache:
return cache[count]
# profit은 count개를 팔아서 가능한 최대... | [
"dmstndlekd@gmail.com"
] | dmstndlekd@gmail.com |
2525c9a1cf70f389e645dc0637b9f0e5cb23f128 | 90bbeb45b900f1ccf57652d5439fc27be891f4c3 | /Chapter 4/tests/test_plain_text_email.py | ce514bccc4dbd2a4fc127170ca723ae5ecbb9009 | [] | no_license | RancyChepchirchir/ThoughtfulMachineLearningWithPython-py38 | cdab296c063c5764e4255105b7c627ed022fbf75 | d83959b9c21179b2e1a9d1f85428bc8d18d1fb36 | refs/heads/master | 2022-11-19T07:48:07.008197 | 2020-07-20T17:42:21 | 2020-07-20T17:42:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | import unittest
import io
import re
from email_object import EmailObject
class TestPlaintextEmailObject(unittest.TestCase):
CLRF = "\n\n"
def setUp(self):
self.plain_file = 'fixtures/plain.eml'
with io.open(self.plain_file, 'rb') as plaintext:
self.text = plaintext.read().decode(... | [
"A.Fettouhi@gmail.com"
] | A.Fettouhi@gmail.com |
4ddd105253fe7cf2e3d05abbd6b48b0b249eb296 | 2da798f1b31c6482d8f47bce394d78ccfae9d279 | /raw_data_processing/GSE155513/SRS7124070/scripts/add_uns.py | ff439b564ac76b82fb7bfd77e135d2333a4e4386 | [] | no_license | mariafiruleva/sc_athero_itmo_master | 47378083201e0dbad327b98291bbf4e65d5d3cc5 | e3c8c1b55d61b551957da13d109c8dfb56aa3173 | refs/heads/main | 2023-05-20T11:49:23.202549 | 2021-06-07T16:26:15 | 2021-06-07T16:26:15 | 373,524,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,597 | py | import argparse
import re
from urllib.request import urlopen, Request
from xml.etree.ElementTree import parse
import numpy as np
import pandas as pd
import scanpy
def get_markers(markers_file: str) -> dict:
markers = pd.read_csv(markers_file, sep='\t')
return {k: np.array(list(v.values())) for k, v in markers... | [
"mmfiruleva@gmail.com"
] | mmfiruleva@gmail.com |
4bfff399a77f0d64ddfa5d94b522b8f764483c1e | 95ef92ea4cafc8865268f38a7cb03dc078f39846 | /content/migrations/0001_initial.py | 5a939b52afa3ff5b4b53b3217f9a31501ee95989 | [
"MIT"
] | permissive | enterstudio/digihel | ec8ea7d714897c8b041f91ff3d0e89e2e9ec364a | b0f99a0be768df3b3a0cae20fe29a4018cd67ef7 | refs/heads/master | 2022-05-25T17:42:29.419062 | 2017-04-24T08:55:08 | 2017-04-24T08:55:08 | 89,243,603 | 1 | 0 | MIT | 2022-05-17T02:21:20 | 2017-04-24T13:30:06 | CSS | UTF-8 | Python | false | false | 1,124 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-05 11:57
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.blocks
import wagtail.wagtailcore.fields
import wagtail.wagtailimages.blocks
class Migration(migrations.... | [
"juha.yrjola@iki.fi"
] | juha.yrjola@iki.fi |
d70d778641730cf8a69624e5b36c83a7e9a896d1 | c2a46158a91d3dd41e962230d182c80bfc88886e | /test/test_documents_builddoc_model.py | 38d2e7aeecf21fdb98dcccb36ce2c9e117678aaf | [] | no_license | martinsauve/doli-swagger-client-python | e5f4308b6a38c34c4c0bcc796f6863e983b6d7da | b2606e6f9f3064fe55f81ab90ec524921086a159 | refs/heads/master | 2023-08-14T00:04:02.228383 | 2021-10-06T15:34:02 | 2021-10-06T15:34:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | # coding: utf-8
"""
Restler API Explorer
Live API Documentation # noqa: E501
OpenAPI spec version: 1
Contact: arul@luracast.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client... | [
"martin@billesandco.paris"
] | martin@billesandco.paris |
c925fe272df4b0036fe730abb1694b9c22b93574 | c24fa89450cccb48fcd481c3cfa475ee0e412e09 | /InHomeMonitoringCode/room_estimator.py | 83096f4c203214ac95e7d8eafdd6b4b0f5567f3e | [] | no_license | PhoenixYanrongLi/CareEcoSystem_ServerCodeNew | e95d1c552cdcc70aac09482dfda63e253e01fcb0 | b627484694863c425483a04391eedc2ec2ec1098 | refs/heads/master | 2021-01-01T04:34:51.858543 | 2016-04-14T17:57:30 | 2016-04-14T17:57:30 | 56,258,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,892 | py | __author__ = 'gmn255'
# RoomEstimator provides an abstract class for room estimator classes to subclass
# It implements the core methods that are necessary for both the estimator training
# and the real time estimation based on the trained classifier
from parse import parse
import string as string
import numpy as np
... | [
"phl_416cat@sjtu.edu.cn"
] | phl_416cat@sjtu.edu.cn |
b8377b2e248859ff49ac04507a18cd900f528562 | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /networks1147.py | 4f426f1b851598c40bd8914d2ca5ee2a706e642e | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,187 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
__version__ = 205
# Number of continuous features (E, t, dca)
n_features = 3
geom_dim = 2
class Gen(nn.Module):
def __init__(self, ngf, latent_dims, seq_len, encoded_dim, n_wires):
super().__init__()
se... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
6b52b6ec4e126f452e972de1e72f08164c5c6e7a | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_RelativeDifference/trend_ConstantTrend/cycle_30/ar_12/test_artificial_1024_RelativeDifference_ConstantTrend_30_12_0.py | d0ff3e622857b909a929bdfb980a69ece6beb1b9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 279 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 30, transform = "RelativeDifference", sigma = 0.0, exog_count = 0, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
39f835403646b080d5decc274d92fe1f6d778d3e | 9cedfd5b519f2ef7608313b5b0f1b361aeac8cc6 | /resources/onelinelog.py | c9de6b2a8eea995b7052359e31ab3c538d2b9536 | [] | no_license | fdev31/archx | 50a5bb6e8525ef87048345e40928a05e735cb758 | 5345bee7cc1a9cb0b98490749d9bbb5969b9a8f9 | refs/heads/master | 2020-05-21T03:08:18.532179 | 2019-12-16T21:23:25 | 2019-12-16T21:23:25 | 50,664,593 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | #!/usr/bin/env python
import sys
import codecs
import shutil
import fileinput
import time
PROMPT='> '
DEBUG=0
def univ_file_read(name, mode):
# WARNING: ignores mode argument passed to this function
return open(name, 'rU')
linelen=0
twidth = shutil.get_terminal_size()[0]
logfile=codecs.open('stdout.log', 'w+... | [
"fdev31@gmail.com"
] | fdev31@gmail.com |
79ffe575c9f5608527ae2bbd1b2642208f7b21da | af1e8fd6bf305cce661262a4289df74ab886425e | /Troubleshooting and Debugging Techniques/examples/binary_search.py | c173182fb2fc1aba41f2418902e078a744676067 | [] | no_license | Nahid-Hassan/online-learning | 95bf80f205ed33b5071da63c1939baa5e08f13d5 | aee087bc42cba60ef2c3129fb8e96f68de1f44b4 | refs/heads/main | 2023-02-25T23:11:58.008425 | 2021-02-02T09:37:34 | 2021-02-02T09:37:34 | 306,249,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | def binary_search(list, key):
"""Returns the position of key in the list if found, -1 otherwise.
List must be sorted.
"""
left = 0
right = len(list) - 1
while left <= right:
middle = (left + right) // 2
if list[middle] == key:
return middle
if list[midd... | [
"nahid.cseru@gmail.com"
] | nahid.cseru@gmail.com |
17fd2ad5ff1c32c21c6b8e6b7ec8a3bac988e23c | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /NMHFTCMqW6j8sXkNd_21.py | c5fbf2a525560148a2a09327ec38d12348248a53 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | """
Create a function that takes a list of two numbers and checks if the **square
root** of the first number is equal to the **cube root** of the second number.
### Examples
check_square_and_cube([4, 8]) ➞ True
check_square_and_cube([16, 48]) ➞ False
check_square_and_cube([9, 27]) ➞ True
###... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f3cdc9b4d2cdd55e81a5b35f33ac217dd6cc97a4 | 58a0ba5ee99ec7a0bba36748ba96a557eb798023 | /Olympiad Solutions/URI/1059.py | a9a1b307c1fe96c5d3f1bca45a294bc8510db5d7 | [
"MIT"
] | permissive | adityanjr/code-DS-ALGO | 5bdd503fb5f70d459c8e9b8e58690f9da159dd53 | 1c104c33d2f56fe671d586b702528a559925f875 | refs/heads/master | 2022-10-22T21:22:09.640237 | 2022-10-18T15:38:46 | 2022-10-18T15:38:46 | 217,567,198 | 40 | 54 | MIT | 2022-10-18T15:38:47 | 2019-10-25T15:50:28 | C++ | UTF-8 | Python | false | false | 240 | py | # Ivan Carvalho
# Solution to https://www.urionlinejudge.com.br/judge/problems/view/1059
# -*- coding: utf-8 -*-
'''
Escreva a sua solução aqui
Code your solution here
Escriba su solución aquí
'''
for i in xrange(2,101,2):
print i
| [
"samant04aditya@gmail.com"
] | samant04aditya@gmail.com |
7b1074e18796d2cef670d1ffbc15893dee538894 | fc2d2163e790741de0c0e1aa337948cfeb5b6ba9 | /tests/syntax/UnpackTwoStars32.py | 3a8683cbd4fd3072ce5acf7dcabd04fe814e5bdc | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | nmoehrle/Nuitka | bcd20531f150ada82c8414620dca6c5424be64d1 | 317d1e4e49ef8b3bdfe2f80f2464040d644588b2 | refs/heads/master | 2023-06-22T09:56:23.604822 | 2017-11-29T14:10:01 | 2017-11-29T14:10:01 | 122,110,166 | 0 | 0 | Apache-2.0 | 2018-02-19T19:29:05 | 2018-02-19T19:29:05 | null | UTF-8 | Python | false | false | 809 | py | # Copyright 2017, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python tests originally created or extracted from other peoples work. The
# parts were too small to be protected.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the ... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
8d417242c48459b312ed486523acbd941413aea9 | 4ef688b93866285bcc27e36add76dc8d4a968387 | /tests/test_kms/test_model.py | 523b1d748ffd9690156bc05d2f272747a9687192 | [
"Apache-2.0"
] | permissive | localstack/moto | cec77352df216cac99d5e0a82d7ada933950a0e6 | b0b2947e98e05d913d7ee2a0379c1bec73f7d0ff | refs/heads/localstack | 2023-09-01T05:18:16.680470 | 2023-07-10T09:00:26 | 2023-08-07T14:10:06 | 118,838,444 | 22 | 42 | Apache-2.0 | 2023-09-07T02:07:17 | 2018-01-25T00:10:03 | Python | UTF-8 | Python | false | false | 1,183 | py | import pytest
from moto.kms.models import KmsBackend
PLAINTEXT = b"text"
REGION = "us-east-1"
@pytest.fixture(name="backend")
def fixture_backend():
return KmsBackend(REGION)
@pytest.fixture(name="key")
def fixture_key(backend):
return backend.create_key(
None, "ENCRYPT_DECRYPT", "SYMMETRIC_DEFAUL... | [
"noreply@github.com"
] | localstack.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.