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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2141bfbe1940d48e60d545306ad35b1aa55f3e8 | 60f3c767c9f1a700c9e67dac606b8ee3bc46450d | /example.py | bb8e0450c336caa9837456280eb09470e3379615 | [] | no_license | codesharedot/Quadratic-Line-Chart-Sandra | 57b999e12d7ae20b3f907697b2f739c64a45db11 | 9e4eae6d10fc4001464a80de7c7cf5c4e2d6b115 | refs/heads/master | 2020-07-26T12:24:34.892400 | 2019-09-15T19:04:04 | 2019-09-15T19:04:04 | 208,642,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-1, 1, 50)
y = 9*x*x
plt.plot(x, y,'c-',linewidth=10)
plt.savefig('chart.png') | [
"codeto@sent.com"
] | codeto@sent.com |
6796233cc8e0d68532199b60208872e887b79dbe | 8af6f0195e94908482ca7236bcd2eae382605fa7 | /python3code/chapter03/fibs.py | 82488642ecd1ea7d7ff1edce7bf88be46820530f | [] | no_license | MeatStack/StarterLearningPython | 4a1e0fc94c4615022ba9ff41455c4e67bd16a5bd | 98f0a9028f40db189cf2636a5e0c3abbcd86f71d | refs/heads/master | 2020-03-23T16:21:02.884442 | 2018-07-21T11:24:11 | 2018-07-21T11:24:11 | 141,805,470 | 1 | 0 | null | 2018-07-21T11:15:42 | 2018-07-21T11:15:42 | null | UTF-8 | Python | false | false | 191 | py | # coding=utf-8
'''
filename: fibs.py
'''
def fibs(n):
result = [0,1]
for i in range(n-2):
result.append(result[-2] + result[-1])
return result
lst = fibs(10)
print(lst)
| [
"qiwsir@gmail.com"
] | qiwsir@gmail.com |
641eb5e4ce8f4443864024b99da2a1c4b80e0d83 | 167face5e34f69ba36b8a8d93306387dcaa50d24 | /15formatando_strings.py | 1061eb1748036704fe55492e86c058ee0f7e4ae9 | [] | no_license | william-cirico/python-study | 4fbe20936c46af6115f0d88ad861c71e6273db71 | 5923268fea4c78707fe82f1f609535a69859d0df | refs/heads/main | 2023-04-19T03:49:23.237829 | 2021-05-03T01:24:56 | 2021-05-03T01:24:56 | 309,492,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # É possível formatar strings das seguintes formas:
nome = "William Círico"
idade = 20
peso = 70.31287418293472
print("Nome: ", nome, "Idade: ", idade, "Peso: ", peso)
print("Nome: {0} Idade: {1} Peso: {2}".format(nome, idade, peso))
print("Nome: {n} Idade: {i} Peso: {p}".format(n=nome, i=idade, p=peso))
print(f"Nome:... | [
"contato.williamc@gmail.com"
] | contato.williamc@gmail.com |
17ebc93a0e4a5b9f3bdb7c23942b97a73909d91d | 0bc4391986b15c706a77e5df314ec83e84375c54 | /articles/migrations/0002_article_image_thumbnail.py | dd12130bb4ff92b2ae300134423a7f1d034fcd9b | [] | no_license | ssshhh0402/django-crud | a6d1a0872942c6215b1130a44ae335182c42937d | da292c07c9f77526bee8cbbec07d37ea8464d6af | refs/heads/master | 2022-05-02T12:07:26.518798 | 2019-09-23T06:26:43 | 2019-09-23T06:26:43 | 203,089,241 | 0 | 0 | null | 2022-04-22T22:11:46 | 2019-08-19T03:07:54 | HTML | UTF-8 | Python | false | false | 443 | py | # Generated by Django 2.2.4 on 2019-09-23 06:07
from django.db import migrations
import imagekit.models.fields
class Migration(migrations.Migration):
dependencies = [
('articles', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='article',
name='... | [
"ssshhh0402@naver.com"
] | ssshhh0402@naver.com |
df4e2b89e5e838494485cf479d6d0589536e3838 | fa76cf45d7bf4ed533e5a776ecd52cea15da8c90 | /robotframework-ls/src/robotframework_debug_adapter/vendored/force_pydevd.py | 93bcca4fb794844f5a72a146f94071d71202e7a7 | [
"Apache-2.0"
] | permissive | martinRenou/robotframework-lsp | 8a5d63b7cc7d320c9fed2372a79c8c6772d6481e | 5f23b7374139e83d0aa1ebd30675e762d7a0db86 | refs/heads/master | 2023-08-18T22:26:01.386975 | 2021-10-25T13:46:11 | 2021-10-25T13:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root
# for license information.
from __future__ import absolute_import, division, print_function, unicode_literals
import contextlib
from importlib import import_module
import os
import sys
VENDO... | [
"fabiofz@gmail.com"
] | fabiofz@gmail.com |
b2fa1c2267c4363c4044bbd0a1256ecebf629f01 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/DRAFT-MSDP-MIB.py | af1baa3acc14379cc42129394496b65eb61a6067 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 31,396 | py | #
# PySNMP MIB module DRAFT-MSDP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DRAFT-MSDP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:54:19 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
de560c64ba52aaecaeac7ec15a5ce04eb115991c | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/VBSjjlnu/Full2018v7/conf_test_fatjetscale_DY/configuration.py | 586bc0ae5cf8cc622910ab866255e792b1b7f1ac | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 950 | py | # Configuration file to produce initial root files -- has both merged and binned ggH samples
treeName = 'Events'
tag = 'DY2018_v7'
# used by mkShape to define output directory for root files
outputDir = 'rootFile'+tag
# file with TTree aliases
aliasesFile = 'aliases.py'
# file with list of variables
variablesFile ... | [
"davide.valsecchi@cern.ch"
] | davide.valsecchi@cern.ch |
6300090e5a1167be972d853d145e04125121895d | ccbcaca6df1c3984a19f039351e29cfa81e73314 | /timetable/schedule.py | a3265c9ffcaa2c76a8c6866709dc7413cf0e18ea | [
"BSD-3-Clause"
] | permissive | pgromano/timetable | b96c6eb2da8ede8abfa211f6d54748a4a5a9c9c7 | 8fa83fa82bb2afc56f6da1b7f8e3836f2b127164 | refs/heads/master | 2021-01-21T00:22:17.376372 | 2016-08-17T14:57:25 | 2016-08-17T14:57:25 | 61,254,584 | 0 | 0 | null | 2016-06-16T02:07:07 | 2016-06-16T02:07:07 | null | UTF-8 | Python | false | false | 182 | py |
class Schedule(object):
"""Student schedule object.
"""
def __init__(self):
def add(self, course):
"""Add course to schedule"""
def courses
| [
"zachsailer@gmail.com"
] | zachsailer@gmail.com |
8d8c9788a9836bac94cd547c3889d9deb500b5f6 | da437d59c9caf5d10e8c7be0e640a6c08507d2f4 | /data/CNN.py | 734b06a9792eb9f55ea0e8eb9f87d55e8548a7e5 | [] | no_license | SoliareofAstora/vision_pipeline | 9982ea7b3d2fe009102d0e712535be9bba362a1c | f7a2d76a155c8b3d863b10e7f9e1a148f98c3780 | refs/heads/main | 2023-05-08T23:36:19.403137 | 2021-06-01T14:12:31 | 2021-06-01T14:12:31 | 372,847,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,179 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class CNN(nn.Module):
def __init__(self, args):
super(CNN, self).__init__()
self.criterion = torch.nn.CrossEntropyLoss()
self.args = args
self.L = self.args.L
self.D = self.args.D
self.K = self.args.... | [
"piotr1kucharski@gmail.com"
] | piotr1kucharski@gmail.com |
507318a00b41ce38db963c43532b962a36ca4c43 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /classes/_print32.py | fed133646d96b60d6083b2f83a8360c33eb35250 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from xcp2k.inputsection import InputSection
from _program_run_info23 import _program_run_info23
from _restart10 import _restart10
from _restart_history4 import _restart_history4
from _current1 import _current1
class _print32(InputSection):
def __init__(self):
InputSection.__init__(self)
self.PROGR... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
31fa6cf28dee74da3917221dcc286b6239f35fdc | d5ba475a6a782b0eed5d134b66eb8c601c41421c | /terrascript/data/template.py | a964634d94047ba5352fbbb1a6371b1e8858546a | [
"BSD-2-Clause",
"Python-2.0"
] | permissive | amlodzianowski/python-terrascript | ab42a06a5167e53ad8093b656a9bf14a03cb031d | 142b1a4d1164d1012ac8865d12fdcc72f1e7ae75 | refs/heads/master | 2021-05-19T11:59:47.584554 | 2020-03-26T07:13:47 | 2020-03-26T07:13:47 | 251,688,045 | 0 | 0 | BSD-2-Clause | 2020-03-31T18:00:22 | 2020-03-31T18:00:22 | null | UTF-8 | Python | false | false | 233 | py | # terrascript/data/template.py
import terrascript
class template_file(terrascript.Data):
pass
class template_cloudinit_config(terrascript.Data):
pass
__all__ = [
"template_file",
"template_cloudinit_config",
]
| [
"markus@juenemann.net"
] | markus@juenemann.net |
3e14d69378a30d8887db254aeede0f54138ce747 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/matrix/4d38ab06972046a988250a3005464d09.py | 03b161fe26511da6e0ce058e59c662bf8f099254 | [] | 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 | 488 | py | class Matrix(object):
def __init__(self, init):
split_at_newline = lambda m: map(lambda s: s.split(), m.split('\n'))
convert_to_int = lambda m: map(lambda s: int(s), m)
column_range = lambda m: range(len(m))
column_member = lambda x, m: map(lambda s: s[x], m)
self.r... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
91357c211e5073d5b50569facfbbda0b406a9886 | 167c6226bc77c5daaedab007dfdad4377f588ef4 | /python/ql/test/library-tests/variables/scopes/test.py | 940576d44dfe9eff4e4399fd52b40809619cecb7 | [
"MIT",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | github/codeql | 1eebb449a34f774db9e881b52cb8f7a1b1a53612 | d109637e2d7ab3b819812eb960c05cb31d9d2168 | refs/heads/main | 2023-08-20T11:32:39.162059 | 2023-08-18T14:33:32 | 2023-08-18T14:33:32 | 143,040,428 | 5,987 | 1,363 | MIT | 2023-09-14T19:36:50 | 2018-07-31T16:35:51 | CodeQL | UTF-8 | Python | false | false | 987 | py |
global0 = 0
global1 = 1
def func0(param0, param1):
return param0 + param1
def func1():
global global0, global_local
local0 = 0
local1 = 1
global_local
global0 = local0 + local1 + global1
def func2():
local2 = 2
def inner1(param2):
local3 = local2
return local3
ret... | [
"mark@hotpy.org"
] | mark@hotpy.org |
e5afe11339814efc010060f141562f2c0f6a8e6c | 7d667b70c8ae1c8f214b85d613d3a98462af9d0c | /froide/account/forms.py | db1cd0962ee519c64b00d35ca627351437a19328 | [
"MIT"
] | permissive | handlingar/froide | c57653a87a05fb402c1fe61f0df1ff480391f911 | 5ed80cf6550fb4cbc757029b2c860b53e784eb93 | refs/heads/master | 2021-05-28T18:13:17.573095 | 2015-06-18T13:00:16 | 2015-06-18T13:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,675 | py | import floppyforms as forms
from django.utils.six import text_type as str
from django.utils.translation import ugettext_lazy as _
from django.utils.safestring import mark_safe
from django.core.urlresolvers import reverse
from django.contrib import auth
from django.contrib.auth import get_user_model
from django.conf im... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
35b5605675d38e47f6e9113f00cec7ad47b2cd14 | 39d26bedd4049d58265fcd6c480cc7a5b73c7ece | /Tutorial_SimpleTeacherAPI/python-sample-code/tests/conftest.py | 5698513372a065217fe1f856dfe1735a2f254317 | [] | no_license | sramirezh/Developing | 7adc6dbb5c8436db6a3ab125018186ea7bdd1b40 | a07ed07899911b9860830f9498c08144c4eca3d4 | refs/heads/master | 2022-11-08T01:43:05.755215 | 2021-08-23T03:57:39 | 2021-08-23T03:57:39 | 249,786,342 | 0 | 1 | null | 2022-10-24T21:02:22 | 2020-03-24T18:26:46 | Python | UTF-8 | Python | false | false | 281 | py | import pytest
@pytest.fixture
def basic_tree():
return [
(23, "23"),
(4, "4"),
(30, "30"),
(11, "11"),
(7, "7"),
(34, "34"),
(20, "20"),
(24, "24"),
(22, "22"),
(15, "15"),
(1, "1")
]
| [
"sramirez.hinestrosa@gmail.com"
] | sramirez.hinestrosa@gmail.com |
5ada850496b766d56da6dc90b7d634e1aa9f19c4 | 1cf3a339c0f94bce94cf142fde9a9f6ab38369a8 | /yt_arch/core/api_client.py | 226b998e4c8765b26d726b26d53496c6d0694b0e | [
"MIT"
] | permissive | hilbertqqc/youtube-playlist-archiver | 959f9afc541c293ff05b37b99833f640d39f4c2a | 69727075e0151d03259c373647278312b11f0299 | refs/heads/master | 2023-03-24T03:34:36.507215 | 2021-03-17T20:57:48 | 2021-03-17T20:57:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import httpapiclient
from httpapiclient.mixins import JsonResponseMixin, HelperMethodsMixin
class ApiClient(JsonResponseMixin, HelperMethodsMixin, httpapiclient.BaseApiClient):
base_url = 'https://www.googleapis.com/youtube/v3/'
| [
"dbashkatov@gmail.com"
] | dbashkatov@gmail.com |
243ef68fe11d18e22369979cd2bf46125b0e0df8 | c97fc7658c39feb51c0ed42c04783797c8675b8a | /2018/pcy1/day12_mysql/orm8_fk3_update.py | 8e4124a903201d0e359e84c71a75f1bf66cd9c77 | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 2,731 | py | #_*_coding:utf-8_*_
'''
8,外键foreign key
8.3修改数据
study_record考勤表在插入时stu_id字段为null,修改
'''
from sqlalchemy import create_engine,ForeignKey,bindparam
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String,DATE,Enum
from sqlalchemy.orm import sessionmaker
# 1,连接数据库
engine ... | [
"sgq523@163.com"
] | sgq523@163.com |
e0a8e099387d137239284405b8a10b388eca81c7 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/uv_align_distribute/pack_islands.py | a9fd3e306ce026b741f500faf275f51c1a81050d | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,153 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2
# of the License.
#
# This program is distributed in the hope that it will be useful,
# bu... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f940bcf1ea682999bed19fc60ca0f4af0c8a6610 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5695413893988352_1/Python/sempav/b.py | 8ad8a3ac5ec44bbc0fd72c27fcc7cc57a5f07a7f | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,416 | py | POS = 1
NEG = 2
BOTH = 3
NONE = 0
ans_c = ''
ans_j = ''
ans_diff = 10**20
def extract_num(score_str):
pow10 = 1
res = 0
for ch in reversed(score_str):
if ch != '?':
res += (ord(ch) - ord('0')) * pow10
pow10 *= 10
return res
def check(diff, ans, positions, score_c, score_j)... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
b9d4b40eb8ee711ce836773b1102fa904d5d7281 | fd3460952febec5d4d4cbe16a91fd3f06577d9a6 | /app/views.py | da055749ba8cca16713ebc16eced687cece05cf4 | [] | no_license | sakkhar/accounts | 9ea52783bc720b0422fef00e80b83947f4d9c566 | 7da8357d548cca20426b39c4f39ff0f5608a906f | refs/heads/master | 2020-03-27T20:18:05.622381 | 2018-09-02T05:21:39 | 2018-09-02T05:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,472 | py |
from django.contrib import messages
from django.contrib.auth import login, authenticate, REDIRECT_FIELD_NAME
from django.contrib.auth.tokens import default_token_generator
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.views import (
LogoutView as BaseLogoutView, PasswordChangeV... | [
"sakkhar@mail.com"
] | sakkhar@mail.com |
e815bc00ac8a9f39a473d1ae169a929143560be6 | c93f51492cfee3f98040f07d7f4323ec27ac81a5 | /refinery/units/obfuscation/ps1/concat.py | 40bc8a8c7d142f8dcdff27d0265cce17adba6673 | [
"BSD-3-Clause"
] | permissive | prats84/refinery | cbe9ebfeb570c9c0531e13bbf13ec18801f12aca | 5f961051e9cc1857a06108ce4d36a6799ac9d720 | refs/heads/master | 2023-07-13T02:32:04.998285 | 2021-08-20T09:08:01 | 2021-08-20T09:08:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
from .. import IterativeDeobfuscator
from . import string_unquote, string_quote, Ps1StringLiterals
class deob_ps1_concat(IterativeDeobfuscator):
_SENTINEL = re.compile(R'''['"]\s*[+&]\s*['"]''')
def deobfuscate(self, data):
def concat(data):
... | [
"rattle@nullteilerfrei.de"
] | rattle@nullteilerfrei.de |
6fc3e353a8326a114fc60b18e3229535220c28c9 | 0a118477c8b6d1ef79b26310a1d3fb06716743e9 | /contributer_demo/demo2/coordination/formation_demo/my_leader.py | 6a3f3c47ca5aa8e260d12d37928babc195285821 | [
"MIT"
] | permissive | nsgcjdsz/XTDrone | 773ea65421044a895e427cfc68d9e3669210c12a | ebefd6cf943b95998e1b47de6be9052a146d667d | refs/heads/master | 2023-08-25T18:12:48.338686 | 2021-10-23T12:03:47 | 2021-10-23T12:03:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,406 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import rospy
from geometry_msgs.msg import Twist, Vector3, PoseStamped
from std_msgs.msg import String
from pyquaternion import Quaternion
import time
import math
import numpy
import sys
#if sys.argv[2] == '6': #formation_dict是该文件夹下的文件
# from formation_dict import formatio... | [
"robin_shaun@foxmail.com"
] | robin_shaun@foxmail.com |
8766db5f17f73ece19a8e050eb0f6c2da93a0634 | 02d8a026d63127f045042e03e23acbe6c9675db8 | /vb2py/test/testcollection.py | 68f0506871cd8ec816e607dfee324b6b6168fe80 | [
"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,618 | py | from vb2py.vbclasses import Collection
import unittest
class TestCollection(unittest.TestCase):
def setUp(self):
"""Set up the test"""
self.c = Collection()
# << Collection tests >> (1 of 9)
def testAddNumeric(self):
"""testAddNumeric: should be able to add with numeric indexes""... | [
"c.git@pronovost.net"
] | c.git@pronovost.net |
5d4d2ed476aea05494ec90081e7dd8d67f9f8cb0 | 602ea2edb853c5561a45b6aa2783ac894ef408e4 | /res_mlp_pytorch/res_mlp_pytorch.py | 1ac60d23a7068840b29608111b116cc789825440 | [
"MIT"
] | permissive | BadGuy-wang/res-mlp-pytorch | 427d6f1f2279dcfe59d7cee02befb26a0a4dad79 | 562814a406cc418bdb4710aa3bdc569206ac171b | refs/heads/main | 2023-05-05T13:22:46.575901 | 2021-06-03T22:30:40 | 2021-06-03T22:30:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | import torch
from torch import nn, einsum
from einops.layers.torch import Rearrange, Reduce
# helpers
def pair(val):
return (val, val) if not isinstance(val, tuple) else val
# classes
class Affine(nn.Module):
def __init__(self, dim):
super().__init__()
self.g = nn.Parameter(torch.ones(1, 1, ... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
312b52cb1b4319add74ab61694c18b56da2451a1 | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-Cocoa/PyObjCTest/test_nscolorsampler.py | 1b666e6faca75d95e31360218b6b1b293f053d99 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 290 | py | import AppKit
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestNSColorSampler(TestCase):
@min_os_level("10.15")
def test_methods_10_15(self):
self.assertArgIsBlock(
AppKit.NSColorSampler.showSamplerWithSelectionHandler_, 0, b"v@"
)
| [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
36cc0b54b41fcc7f8fe680953ecdd8685005c0bc | 6a746abb4dd3f2e0538936f272ed5d051a120c5b | /message_ix_models/model/build.py | f92ab09a1bd72b04109c697d15c7faf224e8c6b0 | [
"Apache-2.0"
] | permissive | OFR-IIASA/message-ix-models | d902d26c10db8215a856032d09f4252e16500c99 | 7459065505f8f3a418086aa620b789b5c5f39cde | refs/heads/main | 2023-06-15T00:16:56.654237 | 2021-07-02T09:33:49 | 2021-07-02T09:33:49 | 380,197,167 | 0 | 0 | Apache-2.0 | 2021-06-25T10:01:47 | 2021-06-25T10:01:47 | null | UTF-8 | Python | false | false | 4,795 | py | import logging
from typing import Callable, Dict, Mapping
import pandas as pd
from ixmp.utils import maybe_check_out, maybe_commit
from message_ix import Scenario
from sdmx.model import Code
from message_ix_models.util import add_par_data, strip_par_data
from message_ix_models.util.scenarioinfo import ScenarioInfo
l... | [
"mail@paul.kishimoto.name"
] | mail@paul.kishimoto.name |
de7fe8a3116f89860feb58cc06238a1c9f045460 | 924763dfaa833a898a120c411a5ed3b2d9b2f8c7 | /compiled/construct/enum_int_range_s.py | bc6c06e80d04163057a993b93a7ea82933e7a6d2 | [
"MIT"
] | permissive | kaitai-io/ci_targets | 31257dfdf77044d32a659ab7b8ec7da083f12d25 | 2f06d144c5789ae909225583df32e2ceb41483a3 | refs/heads/master | 2023-08-25T02:27:30.233334 | 2023-08-04T18:54:45 | 2023-08-04T18:54:45 | 87,530,818 | 4 | 6 | MIT | 2023-07-28T22:12:01 | 2017-04-07T09:44:44 | C++ | UTF-8 | Python | false | false | 383 | py | from construct import *
from construct.lib import *
import enum
class enum_int_range_s__constants(enum.IntEnum):
int_min = -2147483648
zero = 0
int_max = 2147483647
enum_int_range_s = Struct(
'f1' / Enum(Int32sb, enum_int_range_s__constants),
'f2' / Enum(Int32sb, enum_int_range_s__constants),
'f3' / Enum(Int32s... | [
"kaitai-bot@kaitai.io"
] | kaitai-bot@kaitai.io |
27af4d42e1a0cdc16826948e7d69e7e6b8a9ef94 | 5b683c7f0cc23b1a2b8927755f5831148f4f7e1c | /Python_Study/DataStructureAndAlgorithm/classical_algorithm/binary_search.py | 556f7aa8a3e48cec1ab4feb7b9ccb23c04cbbe3c | [] | no_license | Shmilyqjj/Shmily-py | 970def5a53a77aa33b93404e18c57130f134772a | 770fc26607ad3e05a4d7774a769bc742582c7b64 | refs/heads/master | 2023-09-02T04:43:39.192052 | 2023-08-31T03:28:39 | 2023-08-31T03:28:39 | 199,372,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,408 | py | #!/usr/bin/env python
# encoding: utf-8
"""
:Description: 二分查找算法
:Author: 佳境Shmily
:Create Time: 2020/3/15 21:34
:File: binary_search
:Site: shmily-qjj.top
:Desc:
二分查找场景:寻找一个数、寻找左侧边界、寻找右侧边界。
"""
import logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger ... | [
"710552907@qq.com"
] | 710552907@qq.com |
a5d7909a17f6af66a01de4d84f29e1e7ee96e4b5 | 380a47268c5975473a2e7c38c747bc3bdbd981b1 | /benchmark/third_party/transformers/examples/pytorch/summarization/run_summarization_no_trainer.py | 3bd925569bb6a8347b8f7e8562568fc34cfb023a | [
"Apache-2.0"
] | permissive | FMInference/FlexGen | 07aa9b1918c19b02077e13ad07e76840843810dd | d34f7b4b43ed87a374f394b0535ed685af66197b | refs/heads/main | 2023-07-24T02:29:51.179817 | 2023-07-21T22:38:31 | 2023-07-21T22:38:31 | 602,270,517 | 6,821 | 411 | Apache-2.0 | 2023-07-07T22:59:24 | 2023-02-15T21:18:53 | Python | UTF-8 | Python | false | false | 31,761 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright The HuggingFace Team and The HuggingFace Inc. team. 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.ap... | [
"sqy1415@gmail.com"
] | sqy1415@gmail.com |
9adb2f941bf5d47c462c44dae8d72de1b9269d95 | d4a569dcf616b7f05e53a44803e38196b436b8b9 | /Thesis@3.9.1/Lib/site-packages/django/test/utils.py | 235136ed67432f1217462c16026362efa3fe60c3 | [
"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 | 29,893 | py | import asyncio
import logging
import re
import sys
import time
import warnings
from contextlib import contextmanager
from functools import wraps
from io import StringIO
from itertools import chain
from types import SimpleNamespace
from unittest import TestCase, skipIf, skipUnless
from xml.dom.minidom import Node, parse... | [
"38432529+nverbois@users.noreply.github.com"
] | 38432529+nverbois@users.noreply.github.com |
fbfe830c4c1db56944173198cf8a81fd11c5ab41 | 0d61f90e3a7877e91d72fed71b0895c7070dc046 | /final_project/.history/project/menu_app/views_20201231155853.py | 69a782ad142ac3afd83b74830f621b95b6557bc3 | [] | no_license | lienusrob/final_project | 44d7d90dc0b7efc0cf55501549a5af0110d09b3b | 4164769626813f044ec2af3e7842514b5699ef77 | refs/heads/master | 2023-02-10T16:36:33.439215 | 2021-01-05T09:34:01 | 2021-01-05T09:34:01 | 325,002,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py |
from .models import MenuItem, ItemsCategory, Order, generate_order_id
from account_app.models import Profile
from django.views.generic import ListView
from django.shortcuts import render, get_object_or_404
class MenuListView(ListView):
model = MenuItem
template_name = 'items/menu_list.html'
def menu_list... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
308e6b9e3059ec9e125d0eaddd98e486959c8ed9 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1444+236/sdB_pg_1444+236_coadd.py | a65a6188dc4e228dc8635b076832771c6f17f941 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[221.784042,23.360553], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_pg_1444+236/sdB_pg_1444+236_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
f083e527a4b3f1412943ad2d21140a45ff657c27 | bc441bb06b8948288f110af63feda4e798f30225 | /monitor_sdk/model/monitor/alert_rule_pb2.py | 890d5bd10e21cba46074562e7086cd679fd504d1 | [
"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 | true | 23,813 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: alert_rule.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf ... | [
"service@easyops.cn"
] | service@easyops.cn |
dd746b74e43acf7d47b6ac1e5af311e62ab6dd16 | ae12996324ff89489ded4c10163f7ff9919d080b | /LeetCodePython/BasicCalculator.py | c2378b22e407db140bf364ae250e27a2830a46bc | [] | no_license | DeanHe/Practice | 31f1f2522f3e7a35dc57f6c1ae74487ad044e2df | 3230cda09ad345f71bb1537cb66124ec051de3a5 | refs/heads/master | 2023-07-05T20:31:33.033409 | 2023-07-01T18:02:32 | 2023-07-01T18:02:32 | 149,399,927 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | """
Given a string s representing a valid expression, implement a basic calculator to evaluate it, and return the result of the evaluation.
Note: You are not allowed to use any built-in function which evaluates strings as mathematical expressions, such as eval().
Example 1:
Input: s = "1 + 1"
Output: 2
Example 2:
... | [
"tengda.he@gmail.com"
] | tengda.he@gmail.com |
c4f8026e28db67ae6e7ad6f1d7d31c16fda41a3a | f1caec328a46a3b9cd5cf732f97b5cf358c06b07 | /tests/test_codetools.py | b56e3c358fc6c50c159546c355644c1673967758 | [
"MIT"
] | permissive | gc-ss/jurigged | 878a4a815e618f47b6c459cfa434962fd81754bb | 5de42f013ea07c31fdfba20fe923d86936e089ec | refs/heads/master | 2023-04-04T20:52:17.105961 | 2021-04-20T22:18:07 | 2021-04-20T22:18:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,957 | py | import math
import os
from types import SimpleNamespace as NS
import pytest
from jurigged.codetools import CodeFile, StaleException
from jurigged.utils import locate
from .common import TemporaryModule
from .snippets import apple
class CodeCollection:
def __init__(self, tmod, basename):
self.tmod = tmo... | [
"breuleux@gmail.com"
] | breuleux@gmail.com |
223e90ab575e13cd7f3190006ae7286362be3c1c | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/enums/filter_spec_logical_operator.py | 0d78d493fcfffe5fdfb4c421cfc64e4c3a57bc66 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
########################################
# Automatically generated, do not edit.
########################################
from pyvisdk.thirdparty import Enum
FilterSpecLogicalOperator = Enum(
'logicalAnd',
'logicalOr',
)
| [
"jmb@pexip.com"
] | jmb@pexip.com |
0627dc44488b0cb662ac6134c35bb17478c0fece | 47b4d76e9c87e6c45bab38e348ae12a60a60f94c | /Mutation_Modules/More_Backup/THR_HCY.py | 4a4ce8698134116f04127cebda9e92d3ca02eea6 | [] | no_license | PietroAronica/Parasol.py | 9bc17fd8e177e432bbc5ce4e7ee2d721341b2707 | 238abcdc2caee7bbfea6cfcdda1ca705766db204 | refs/heads/master | 2021-01-10T23:57:40.225140 | 2020-10-14T02:21:15 | 2020-10-14T02:21:15 | 70,791,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,357 | py | # THR to HCY Mutation
import Frcmod_creator
import PDBHandler
import Leapy
from ParmedTools.ParmedActions import *
from chemistry.amber.readparm import *
def parmed_command(vxi='VXI'):
bc = {}
with open('Param_files/AminoAcid/THR.param', 'r') as b:
data = b.readlines()[1:]
for line in... | [
"pietro.ga.aronica@gmail.com"
] | pietro.ga.aronica@gmail.com |
108f8469a44320ab72aeef7321914bf7aacec776 | 0d415744dd0987949184e6da98a8c5023d104ef3 | /parse/A5ChuangYeParse.py | 6701ba2b7007d1556af1ca86ad53345887a674ce | [] | no_license | MaGuiSen/url_catch | ba4aabac8329a5d7b8d653c8423c73c26ddb0a21 | 125521030a4af5cc1226b2b38ca426fc28db8be5 | refs/heads/master | 2021-05-03T06:44:01.282452 | 2018-02-09T10:00:16 | 2018-02-09T10:00:16 | 120,601,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | # -*- coding: utf-8 -*-
from scrapy import Selector
from util import DateUtil
# A5创业网 详情解析
def parse(html):
response = Selector(text=html)
# 处理内容区
content_html = response.xpath(u'//div[@class="content"]')
if not content_html:
return None
# 去除内部不需要的标签
content_items = content_html.xpat... | [
"1059876295@qq.com"
] | 1059876295@qq.com |
a846af1cc3a145f901b0a75f0a502e9ec7adeeae | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2962/60632/270581.py | d1a1be0da2216513a1f443faa1f9127222fcc49e | [] | 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 | 558 | py | n, p = map(int, input().split(' '))
key = list(map(str, input().split(' ')))
nnn = key[:]
for i in range(n):
tmp = key[i][-3:]
key[i] = [ord(tmp[j])-ord('A') for j in range(3)]
val = 0
for j in range(3):
val += key[i][2-j] * int(pow(32, j))
key[i] = val
arr = [0 for i in range(p)]
for i in r... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5fe337f75f189524749d169396ed19b821be42af | 474525154a4e1d48ef5242d1f44164d05399b145 | /tensorflow_probability/python/distributions/hidden_markov_model_test.py | dec2ea82c27a1efb1f509b75bdb840c5ac4184d4 | [
"Apache-2.0"
] | permissive | svshivapuja/probability | 9855737790f74a39169688fbfec9671deef804d9 | af7ccb22d972329633530c3b754ed1f49472f6a7 | refs/heads/main | 2023-07-17T04:14:53.703622 | 2021-08-30T17:47:06 | 2021-08-30T17:47:06 | 400,983,015 | 1 | 0 | Apache-2.0 | 2021-08-29T07:51:29 | 2021-08-29T07:51:29 | null | UTF-8 | Python | false | false | 90,147 | py | # Copyright 2018 The TensorFlow Probability 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 applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
2ded6d1331e6c08a950ed3425fae0dc00936f50f | ed842d4a85d16e9248fe54a018fde1e781b885d5 | /view_masks.py | b5e84dc0a6e433f9a42587e8ea54ae9c165f953b | [] | no_license | jmargieh/kaggle_dstl_satellite | cd0cede9978014d7743a38d6c2884494b6b720ca | 9e60ea20d2edd861c8585f149d1b6ebca2bb891a | refs/heads/master | 2020-03-27T00:09:00.809288 | 2017-04-28T00:52:51 | 2017-04-28T00:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,948 | py | import logging
import os
import numpy as np
import cv2
from config import IMAGES_METADATA_FILENAME, IMAGES_PREDICTION_MASK_DIR, \
IMAGES_MASKS_FILENAME, IMAGES_NORMALIZED_DATA_DIR, IMAGES_NORMALIZED_M_FILENAME, \
IMAGES_NORMALIZED_SHARPENED_FILENAME, IMAGES_MEANS_STDS_FILENAME, CLASSES_NAMES
from config impor... | [
"jgc128@outlook.com"
] | jgc128@outlook.com |
de1665592aca7a34f328a8dca62e4afadb4b1ada | e385a3bd278fc6add76c430038fdd6000b6ea715 | /B_Search_Algorithms/A_Algorithms/search_linear.py | f61b22b596672b534837c5bc13c1038131e9113f | [
"MIT"
] | permissive | Oscar-Oliveira/Data-Structures-and-Algorithms | e781bcc34abe2a05113b457c48e836072d67100e | 4f75a5aa1e525a5b59944a2cc15f670f0b216a80 | refs/heads/master | 2021-09-26T08:43:51.711847 | 2018-10-28T08:40:10 | 2018-10-28T08:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | """
LinearSearch
"""
from A_Algorithms.search_adt import Search
class LinearSearch(Search):
"""Linear search"""
def search(self):
self.comparisons = 0
for pos, value in enumerate(self.list):
self.comparisons += 1
if value == self.item:
ret... | [
"oscar.m.oliveira@gmail.com"
] | oscar.m.oliveira@gmail.com |
53cad8638861d7fa92d08025c7e2417ff6e4d9d6 | c71a7ea09fcfea74f99acc05ce86f693dc965a36 | /2day/6-石头剪刀布面向对象.py | 769b9479be98a4306976bc56467ee3a5212ac1ec | [] | no_license | fengshuai1/1807-2 | fe7a00ef2ae313d62ed3839d78024d3b19cbe29d | 1324e8816069fce347bb2d3b86eb28707f361752 | refs/heads/master | 2018-10-31T22:04:47.907942 | 2018-08-24T09:19:47 | 2018-08-24T09:19:47 | 143,669,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | class cai():
def quan(self):
i = 0
while i < 5:
import random
computer = random.randint(1,3)#电脑玩家
player = int(input("请输入1:石头 2:剪子 3:布"))
if player <= 3 and player > 0:
if (player ==1 and computer == 2) or (player == 2 and computer == 3) or(player == 3 and computer ==1):
print("你赢了")
elif ... | [
"1329008013@qq.com"
] | 1329008013@qq.com |
693a6b56c1dcfa2ea9662fb36b4be998ad33ad48 | b0c391ecf351e2317ac61c257dd6bfa5b10d4015 | /pymotifs/utils/discrepancy.py | ba46d3fcda401c9febc9bcd011eeb1154a72c7ae | [] | no_license | BGSU-RNA/RNA-3D-Hub-core | 57db94bfff9b338b3a751f545699f4117150b921 | 1982e10a56885e56d79aac69365b9ff78c0e3d92 | refs/heads/master | 2023-05-26T09:41:38.397152 | 2023-05-23T05:50:10 | 2023-05-23T05:50:10 | 6,049,336 | 3 | 1 | null | 2022-06-21T21:27:52 | 2012-10-02T18:26:11 | Python | UTF-8 | Python | false | false | 1,617 | py | """This contains some utility functions for dealing with discrepancies.
"""
from pymotifs.constants import MAX_RESOLUTION_DISCREPANCY
from pymotifs.constants import MIN_NT_DISCREPANCY
def should_compare_chain_discrepancy(chain):
"""Check if we can compared discrepancies using this chain.
Parameters
----... | [
"blakes.85@gmail.com"
] | blakes.85@gmail.com |
4faf46f2328117f85bdcc81f35b2d0f81520a0e9 | b01646abacbef23719926477e9e1dfb42ac0f6a9 | /Rebrov/training/673K/673K_O088N0066_all_Pt111_libraries/input.py | 374655bca2c3f8ed6678fb4189e6d56c8b754ea8 | [] | no_license | Tingchenlee/Test | 41b0fd782f4f611d2b93fda6b63e70956881db33 | 37313c3f594f94cdc64c35e17afed4ae32d3e4e6 | refs/heads/master | 2023-06-02T05:38:32.884356 | 2021-06-10T11:59:02 | 2021-06-10T11:59:02 | 349,764,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,496 | py | # Microkinetic model for ammonia oxidation
# E.V. Rebrov, M.H.J.M. de Croon, J.C. Schouten
# Development of the kinetic model of platinum catalyzed ammonia oxidation in a microreactor
# Chemical Engineering Journal 90 (2002) 61–76
database(
thermoLibraries=['surfaceThermoPt111', 'surfaceThermoNi111', 'primaryTherm... | [
"lee.ting@northeastern.edu"
] | lee.ting@northeastern.edu |
807ee32c8630c2047e131faea4a067aa048c1f9f | ae4ec15127a34cfd060b2ba9b93f05a074748121 | /projectSubmission/code/toPytorch.py | 585c3d1c41c4513d0011bbae12cb73009fb8306a | [] | no_license | famishedrover/MCMC-NAS | 4f246a81b996515d503fcb6f29a3e9a5b6fb9c1f | a512e4c186c35028c4aa5de7978ac14800d09c86 | refs/heads/master | 2020-09-13T17:25:43.207382 | 2019-11-23T05:24:28 | 2019-11-23T05:24:28 | 222,853,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,230 | py | from graphGeneration import getFullArch, topsort
from graphPlot import plotUndirected, plotDirected
from neuralnet import unit , runNetwork
# extra imports as backup
import torch
import torch.nn as nn
import torch.nn.functional as F
# To convert the graph to pytorch version :
# 1. Get topsort of the graph from n... | [
"mudit.verma2014@gmail.com"
] | mudit.verma2014@gmail.com |
e2fd657eab66f4cff6903e8c631365e830e32956 | f4fbd41b0272c6161e9a2ffd793fb96631c3f20d | /aries_cloudagent/config/injector.py | 03fbe9195388cd861602f0b2e8e9012fd0eb92b9 | [
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | The-Insight-Token/aries-cloudagent-python | 946d8b7a2b0aa7a50be1a5a93c8c9caecadf6280 | c84c2615d6513a7ce30e71ae31f632ba112a2b1f | refs/heads/main | 2023-03-19T11:54:51.837163 | 2021-03-10T02:07:07 | 2021-03-10T02:07:07 | 346,390,951 | 1 | 0 | Apache-2.0 | 2021-03-10T14:53:52 | 2021-03-10T14:53:51 | null | UTF-8 | Python | false | false | 3,658 | py | """Standard Injector implementation."""
from typing import Mapping, Optional, Type
from .base import BaseProvider, BaseInjector, InjectionError, InjectType
from .provider import InstanceProvider, CachedProvider
from .settings import Settings
class Injector(BaseInjector):
"""Injector implementation with static a... | [
"cywolf@gmail.com"
] | cywolf@gmail.com |
a2c60ae4eba6bb1bd7bc7d9d5bb25bc5a6ea9707 | 4f875744ccae8fa9225318ce16fc483b7bf2735e | /google/thief.py | 784a8691a8ab6fa23fd45c46215f40a55bbe01b8 | [] | no_license | nguyenngochuy91/companyQuestions | 62c0821174bb3cb33c7af2c5a1e83a60e4a29977 | c937fe19be665ba7ac345e1729ff531f370f30e8 | refs/heads/master | 2020-07-27T05:58:36.794033 | 2020-04-10T20:57:15 | 2020-04-10T20:57:15 | 208,893,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 11 02:40:47 2019
@author: huyn
"""
#House thief
def findMax(array):
def dfs(index,currentSum):
if index>=len(array):
return currentSum
else:
val = array[index]
first = dfs(index+1,currentSum)
second = df... | [
"huyn@cvm6h4zv52.cvm.iastate.edu"
] | huyn@cvm6h4zv52.cvm.iastate.edu |
6425948003272e8b7845b8b2a02bb4d2ab44b0b5 | e9de2e778bebc8c9d9da4826a6372a462831fb62 | /fcmscriptdb.py | 0a17591b4da1fe06e935cdf1ee6939b98d8a75f6 | [] | no_license | rahulgoyal911/FCMScript | 2c698bb41012fce3e015598c5ded7f7de8033114 | 2f8c21823e4849f0c5f1844b58c48ae8b9b9e7f2 | refs/heads/master | 2020-04-21T23:41:18.961515 | 2019-02-10T14:22:55 | 2019-02-10T14:22:55 | 169,954,334 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | # Send to single device.
from pyfcm import FCMNotification
import psycopg2
conn = psycopg2.connect(database = "testdb2", user = "postgresql", password = "namespace1", host = "sample-database.czgprnseypbr.us-east-1.rds.amazonaws.com", port = "5432")
print ('Opened database successfully')
cur = conn.cursor()
cur.execut... | [
"rahulgoyal0.rg@gmail.com"
] | rahulgoyal0.rg@gmail.com |
ceadd39f58e3cdd2956e37c2b347fd9cdd1e0a75 | cdc91518212d84f3f9a8cd3516a9a7d6a1ef8268 | /python/eve_number_sum.py | 02fbfe2554068c956fce71f67dc342dbab849094 | [] | no_license | paulfranco/code | 1a1a316fdbe697107396b98f4dfe8250b74b3d25 | 10a5b60c44934d5d2788d9898f46886b99bd32eb | refs/heads/master | 2021-09-20T14:00:35.213810 | 2018-08-10T06:38:40 | 2018-08-10T06:38:40 | 112,060,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | # write a function that adds all of of the even numbers from 0 - 26
def my_func():
my_sum = 0
for x in range(0, 25):
if x % 2 == 0:
my_sum = my_sum + x
print(my_sum)
my_func() | [
"paulfranco@me.com"
] | paulfranco@me.com |
671c07d1bae3bbeba7c5b48667c2e1e16124ad39 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/icu/icu.gyp | 4e3c0063727072f7e4a288d3da375b851154b2a4 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"NAIST-2003",
"ICU"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 23,500 | gyp | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'icu.gypi',
],
'variables': {
'use_system_icu%': 0,
'icu_use_data_file_flag%': 0,
'want_separate_host_toolset%': 1,... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
856646a13abfa675fe8af4f6c9cf65e07f64f447 | 6d5a5c731f89933c7086ecd7d26999b79bc7217a | /Inflearn/stringPrac.py | 33b9bd610fc6fd0e93387a7b9f24ecaa77075782 | [] | no_license | minhyeonlee/python-basic | 7fbb9ff3816ac72c19d2cb2192c324a379082b16 | 007d1fc455927e83188e345bf3fc5cd8d5753b49 | refs/heads/master | 2022-04-13T09:57:39.270863 | 2020-03-28T07:25:14 | 2020-03-28T07:25:14 | 247,428,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | '''
Inflearn, 파이썬 무료 강의 (기본편) - 6시간 뒤면 나도 개발자
Section3. 문자열 처리
'''
# 1강. 문자열
# ''와 ""은 모두 문자열이다.
sentence = '나는 소년입니다.'
print(sentence)
sentence2 = "파이썬은 쉬워요"
print(sentence2)
#여러줄을 저장해서 출력할 수 있다.
sentence3 = '''
나는 소년이고,
파이썬은 쉬워요
'''
print(sentence3)
# 2강. 슬라이싱
idnumber = "990120-1234567"
print("성별: " + idnumber[7]... | [
"minhyeonlee1@gmail.com"
] | minhyeonlee1@gmail.com |
c5938159509a69c4d911d0b67d9fe2ccb67844f4 | 70b339d0b2638a7914d0d56c5edf8a2637c9f4b0 | /countUnivalSubtrees.py | debb8570ebae08b08bd35f2a07e56136d4acbf9a | [] | no_license | pflun/advancedAlgorithms | 9991da7514024e18ba08de8688966b9220e12571 | 5520dbcd26999b98e1229bf03c2f62dd690a2ddc | refs/heads/master | 2023-02-19T12:05:26.902535 | 2023-02-14T06:08:54 | 2023-02-14T06:08:54 | 189,055,701 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,234 | py | # -*- coding: utf-8 -*-
# 分别看左右子树返回值是否与根相等,分情况讨论
# https://mnmunknown.gitbooks.io/algorithm-notes/content/61_tree.html
# 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 countUni... | [
"zgao@gwu.edu"
] | zgao@gwu.edu |
9b4de1d3e5726b763267418ceb084d36565e00af | e6a8793b1b12d47e57f00485350d122946618245 | /parents/admin.py | 6a80e0c0a7836d80d23fab02e3781a4109d89613 | [] | no_license | Fabricourt/school | 70b2eba2c0b8ff9b9290eb0f68d730698a6d3a63 | dad80c36be34b432dfadef195eb9e867f82cafff | refs/heads/main | 2023-01-01T15:48:43.760288 | 2020-10-26T11:15:32 | 2020-10-26T11:15:32 | 305,829,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from django.contrib import admin
from .models import Parent
class ParentAdmin(admin.ModelAdmin):
list_display = ( 'name', 'account_date')
list_display_links = ( 'name',)
search_fields = ('name',)
list_per_page = 25
admin.site.register(Parent, ParentAdmin) | [
"mfalme2030@gmail.com"
] | mfalme2030@gmail.com |
25069dd9e77118a997038dcb2d699948baacf6b6 | d38d988114f8487e4c0d1674191b6f2865eac70d | /gru.py | 7b20014606ce44db1d77d34a341bc6b2b10aa40b | [
"MIT"
] | permissive | dizcza/ujipen | 71cc1612fcc8247a7cae1a2da9ea13cb2fca38e8 | 4e7d2ff1bd6d659743fdf68e49894236cd559b84 | refs/heads/master | 2021-07-05T19:03:00.701898 | 2020-09-11T18:48:57 | 2020-09-11T18:48:57 | 171,858,288 | 1 | 1 | MIT | 2019-10-30T09:28:42 | 2019-02-21T11:19:50 | Python | UTF-8 | Python | false | false | 2,371 | py | from typing import List, Dict
import numpy as np
from keras import layers, models
from constants import *
from helper import check_unique_patterns
from preprocess import equally_spaced_points_patterns, is_inside_box
from ujipen.ujipen_class import UJIPen
def concat_samples(samples: Dict[str, List[List[np.ndarray]]]... | [
"dizcza@gmail.com"
] | dizcza@gmail.com |
7b731c6f011fa87393d4ce9b59e7a664722cbc56 | 30150c7f6ed7a10ac50eee3f40101bc3165ebf9e | /src/coghq/FactoryEntityCreatorAI.py | f46ac38d6fdd0fa9403d61345de5892119f286e3 | [] | no_license | toontown-restoration-project/toontown | c2ad0d552cb9d5d3232ae6941e28f00c11ca3aa8 | 9bef6d9f823b2c12a176b33518eaa51ddbe3fd2f | refs/heads/master | 2022-12-23T19:46:16.697036 | 2020-10-02T20:17:09 | 2020-10-02T20:17:09 | 300,672,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,100 | py | """FactoryEntityCreatorAI module: contains the FactoryEntityCreatorAI class"""
from otp.level import EntityCreatorAI
from direct.showbase.PythonUtil import Functor
from . import DistributedBeanBarrelAI
from . import DistributedButtonAI
from . import DistributedCrateAI
from . import DistributedLiftAI
from . import Dist... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
50d9bcb586a1faed7b58e48723a78679a98837d8 | 279ed7207ac2c407487416b595e12f573049dd72 | /pybvk/apps/bvkdos.py | 13cba733f4b05f59814d552d8b8aa8f9f4c231a3 | [] | no_license | danse-inelastic/pybvk | 30388455e211fec69130930f2925fe16abe455bd | 922c8c0a8c50a9fabd619fa06e005cacc2d13a15 | refs/heads/master | 2016-09-15T22:21:13.131688 | 2014-06-25T17:12:34 | 2014-06-25T17:12:34 | 34,995,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,211 | py | #!/usr/bin/env python
# given the python module to create "system", calculate dos
# the python module is optional. if it is not given, then "system" file must exist already.
import os
def run(systempy, system, df, N, Vecs):
# if neither systempy nor system is specified, it is assumed that we have a "system" file... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
e95450b4b2a062095da6f2a52983a8128ebe702a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02640/s043458506.py | aa5a66ce9487ea4e0b7b83b41044d3742b278eb9 | [] | 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 | 238 | py | # Crane and Turtle
X, Y = [int(i) for i in input().split()]
for t in range(0, X + 1):
legs = 2 * (X + t)
if Y == legs:
a = 'Yes'
break
if Y < legs:
a = 'No'
break
else:
a = 'No'
print(a)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c770e3b327455e13849eeee61191a2598e34255f | e1a56ac7e85030de9ed440db0d276612fc8ad02e | /wsperf.py | ac4c5131cd39821c4f0630ba1f46a55189edb2fd | [] | no_license | hoangtrucit/wsperf | cfeb9ee794475ecffcf96e9b1929ca69ed2a8942 | 3d9dd986b1fb7dd0af38540191cc9ea73f119770 | refs/heads/master | 2021-10-20T19:30:06.236857 | 2019-03-01T13:52:34 | 2019-03-01T13:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,838 | py | import os, sys, argparse
from twisted.internet import reactor
from twisted.internet.utils import getProcessOutput, getProcessValue
from twisted.internet.defer import DeferredList
import analyze
if __name__ == '__main__':
default_wsperf = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'wsperf')
par... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
195ac95f63e61157f163bece66445bf2cac32366 | e58ecbf6af1cafbff42e2cc33abcbbf6e4ee7475 | /tests/accounting/test_call_fee_scalar.py | a6ed4f4b831b346ef58636e8757486598b762f01 | [
"MIT"
] | permissive | celeduc/ethereum-alarm-clock | 1edbbe207e0f9a7ea34a792728a2b6dceda455dd | fd202f5e96b753e6ce6bcee9a67363c468c10c7b | refs/heads/master | 2020-02-26T17:23:54.054416 | 2015-11-09T06:11:28 | 2015-11-09T06:11:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | test_values = (
(20, (
(4, 145),
(8, 138),
(12, 129),
(16, 117),
(20, 100),
(24, 83),
(28, 71),
(32, 62),
(36, 55),
)),
(500, (
(50, 148),
(125, 143),
(275, 132),
(400, 117),
(475, 105),
(... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
090878f19ffe408b52f9598216f4a2f609c8d58e | e9685369da45e5c502ce5540891e6018eadba252 | /backend/server/apps/tasks/api/serializers.py | 8f557e1bb12bfa5ff5230105c2b8d8284b099ec9 | [
"MIT"
] | permissive | Turi-fly/simple-tasks | 9703a2dd405081b129222cf6a325a5b591709d8c | ae759a8100f6604b6d8fc00f19cf3aedbd945f3d | refs/heads/master | 2022-04-10T15:26:01.590888 | 2018-11-14T08:45:46 | 2018-11-14T08:45:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | from rest_framework import serializers
import tasks.models as models
import cerberus
class TaskSerializer(serializers.ModelSerializer):
class Meta:
model = models.Task
read_only_fields = ('id', 'state', 'result', 'task_id',)
fields = ('id', 'state', 'params', 'result', 'task_id')
def ... | [
"pplonski86@gmail.com"
] | pplonski86@gmail.com |
510b351cc1af18f3ed0180c70ef1242ca5bac1d8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2171/48117/297146.py | bda92c1ed48fa43c5286605774a8b0ab0e50019c | [] | 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 | 1,525 | py | class Node():
def __init__(self, item):
self.item = item
self.next = None
class LinkList():
def __init__(self, node = None):
self.head = node
def isEmpty(self):
return self.head == None
def append(self, newItem):
newNode = Node(newItem)
if self.isEmpty(... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c1395406230bb6f5616f9eabc0e1b9a4999b8e2a | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/wo-.py | bace8c7b0b9cb45c71200a51bd1870340df7d916 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
45e87ed9a82e88d8e774f45921ed3227fd68165e | 4dbd12da17cc45a5482afc8cea02051e798731a9 | /courses_project/apps/courses/urls.py | ab576aa8a6f94c45e5f11e2186a1af9f96e0ddaa | [] | no_license | tsicroxe/django_projects | 71b9bec6d834f53fde892606799b4bc96ba45a91 | c11036c78d120e5ffa51055e2999dbe05b0d36eb | refs/heads/master | 2021-01-11T07:03:53.045558 | 2016-12-07T20:46:05 | 2016-12-07T20:46:05 | 71,937,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from django.conf.urls import url
from . import views
from views import index, create, destroy
#from django.contrib import admin
urlpatterns = [
#url(r'^admin/', admin.site.urls),
url(r'^$', views.index, name='index'),
url(r'^create$', views.create, name='create'),
url(r'^(?P<id>\d+)/destroy$', views.de... | [
"arbanakus@gmail.com"
] | arbanakus@gmail.com |
21e8e5573f1c6037a1404e7518ad11fd5494c097 | b2319c5e14c94edfb5a39e4c490c1ae6183651ed | /deepgoweb/apps/deepgo/migrations/0013_auto_20190902_0904.py | edb4c8e1436fbb064813d7d04f2b93874adbe234 | [] | no_license | coolmaksat/deepgoweb | 6d67f45059d7bdb4548d50c182a038c6f9c70a31 | fd4904b6b18dd2af06e000679f406b7353a3534f | refs/heads/master | 2021-06-12T14:42:14.513686 | 2021-04-17T10:23:39 | 2021-04-17T10:23:39 | 161,017,035 | 0 | 0 | null | 2018-12-09T07:49:26 | 2018-12-09T07:49:26 | null | UTF-8 | Python | false | false | 2,974 | py | # Generated by Django 2.2.4 on 2019-09-02 09:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('deepgo', '0012_auto_20190505_0848'),
]
operations = [
migrations.CreateModel(
name='Taxonomy',
... | [
"coolmaksat@gmail.com"
] | coolmaksat@gmail.com |
b1e7bc2ea6a672534d6f1fe70f55d35439a84b1f | cd40b7cc395f36740000ed4a4144b1c0666ab0fd | /tests/test_hstrat/test_stratum_retention_strategy/test_stratum_retention_algorithms/test_recency_proportional_resolution_algo/test_IterRetainedRanks.py | e25d30f8fbb8105935530e3c749ac1f26bb0365f | [
"MIT"
] | permissive | mmore500/hstrat | 94fd22c86a87a5707590b9398ef679444ed82d6d | b2d2caded1db5e2dc681d9f171d7c74b322c55c3 | refs/heads/master | 2023-08-31T03:36:44.457576 | 2023-08-25T14:39:29 | 2023-08-25T14:39:29 | 464,531,144 | 5 | 2 | NOASSERTION | 2023-08-25T13:07:52 | 2022-02-28T15:11:45 | Python | UTF-8 | Python | false | false | 7,230 | py | import itertools as it
import numbers
from iterpop import iterpop as ip
import numpy as np
import pytest
from hstrat._auxiliary_lib import all_same, pairwise
from hstrat.hstrat import recency_proportional_resolution_algo
@pytest.mark.parametrize(
"recency_proportional_resolution",
[
0,
1,
... | [
"mmore500.login+gpg@gmail.com"
] | mmore500.login+gpg@gmail.com |
abfe6cbaac9ddeffce0019053b066e6517c9ec1f | 4bf3aaf77c309a489100b98a8c03532632df152c | /Python/BOJ/13460.py | b39eb5f4d88753e6b925be54efe84dd74b2b14ff | [] | no_license | murane/PS | 7fbfc54d962231949efc67f1a35c4b0119de0780 | e938c6c503aeac08bf65e1e66709172b0e5da6ef | refs/heads/master | 2023-05-06T22:51:54.105811 | 2021-05-30T03:34:53 | 2021-05-30T03:34:53 | 293,699,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | import sys
from collections import deque
r=sys.stdin.readline
N,M=map(int,r().split())
board=[]
D=[(1,0),(-1,0),(0,1),(0,-1)]
for _ in range(N):
board.append(list(r().strip()))
for i in range(N):
for j in range(M):
if board[i][j]=="R":
R=[i,j]
board[i][j]="."
elif board[i... | [
"murane@naver.com"
] | murane@naver.com |
c8b3a20fa81bc2a10ac839ee93aa3622a97f9a82 | de070f933453e2d15651af1ccc697acf25507bd7 | /deid/version.py | 785a6ee84d0483f6912ea07c5584e25f6da00280 | [
"MIT"
] | permissive | liu3xing3long/deid | cd968b1b5d8e678ad2c41f2b9f1c4572f5f88013 | 491a8ea301d9d47cd4e62eaab31584c26afcc534 | refs/heads/master | 2021-05-14T11:33:12.193255 | 2017-12-22T21:28:32 | 2017-12-22T21:28:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | '''
Copyright (c) 2017 Vanessa Sochat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute,... | [
"vsochat@stanford.edu"
] | vsochat@stanford.edu |
16d8e89e918f02b740fb31f6d8b1d19b9d2dfda4 | e6e57bf7d4eda37f1188ab72ff249675f40029ee | /cs61a/projects/ants/ants.py | a8a120ed09ea374651365b3c40741aaa2b2431a7 | [] | no_license | juanpedrovel/bomboclap | 4e186331ef1c26c8522e44c21d6a33358471786b | 99db02266c31dd14357ef6a575d35fcf55718617 | refs/heads/master | 2020-04-19T21:16:38.141830 | 2019-01-31T00:31:24 | 2019-01-31T00:31:24 | 168,436,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,739 | py | """CS 61A presents Ants Vs. SomeBees."""
import random
from ucb import main, interact, trace
from collections import OrderedDict
################
# Core Classes #
################
class Place(object):
"""A Place holds insects and has an exit to another Place."""
def __init__(self, name, exit=None):
... | [
"juanpedrovel@gmail.com"
] | juanpedrovel@gmail.com |
0a4e3dfacfddb5d405649e73397541348816d65c | b72f9d9f0769265cdea2b8caff145af9c532ea09 | /practice/abc058_b.py | 284a2391e2511feb8baa6dffec908c7c9b7fbf63 | [] | no_license | ritzcr/AtCoder | 3335fefa8fb1989a0f9da80fe6d0902b46aa2d1f | 15097b0c2568ace653e5080d789047531e50edde | refs/heads/master | 2021-02-12T19:16:41.757421 | 2020-07-05T06:30:57 | 2020-07-05T06:30:57 | 244,620,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | O = input()
E = input()
out = ""
for x in range(len(O)):
out += O[x]
if len(E) > x:
out += E[x]
print(out)
| [
"ritz@freex.ltd"
] | ritz@freex.ltd |
52b1e429db9ff264272850ea168eeb1c2de376d2 | a3e926f8547f04184c79bdd28b0f886a77778700 | /Lib/fontbakery/reporters/ghmarkdown.py | b7376a00473362e6d22d640af646c8bc5277277e | [
"Apache-2.0"
] | permissive | m4rc1e/fontbakery | 0150a17547b53d6dc79e81407b0374950f90cd16 | da4c4b69abdd41314f9bdb58d9e47722e0680816 | refs/heads/master | 2023-08-02T14:18:00.077821 | 2018-10-17T01:47:51 | 2018-10-17T03:53:06 | 67,598,331 | 0 | 0 | Apache-2.0 | 2018-10-18T09:34:10 | 2016-09-07T10:52:14 | C | UTF-8 | Python | false | false | 3,976 | py | import os
from fontbakery.reporters.serialize import SerializeReporter
from fontbakery.checkrunner import Status
LOGLEVELS=["ERROR","FAIL","WARN","SKIP","INFO","PASS"]
class GHMarkdownReporter(SerializeReporter):
def __init__(self, loglevels, **kwd):
super(GHMarkdownReporter, self).__init__(**kwd)
self.lo... | [
"fsanches@metamaquina.com.br"
] | fsanches@metamaquina.com.br |
0d9c8f3dbbc299c369c4ac837ee49b743180106e | 084db5e25626908a5352339900f12f0000a25a4a | /crediteuropebank/items.py | 9770e32bfb15c3f15bbc7ea5982eda1f5486b696 | [] | no_license | hristo-grudev/crediteuropebank | f60a4c444b9aca06b2e44b699c2ce84703a3382d | 82646cef961dfb318f33ef6a9dd44801a945494a | refs/heads/main | 2023-03-10T08:29:04.156974 | 2021-02-25T09:30:57 | 2021-02-25T09:30:57 | 342,191,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | import scrapy
class CrediteuropebankItem(scrapy.Item):
title = scrapy.Field()
description = scrapy.Field()
date = scrapy.Field()
| [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
1b8fb8d7b10372b608afaa5f628de8f096425737 | f9c2f77fea6ffdf820867f02805c7a037627f235 | /PythonBasics/03_Volleyball.py | 0f1cb9aab9fd10836c1d9eb2eb0e9fc07e0f77e6 | [] | no_license | Nikolov-A/SoftUni | 6f253694757f195a5c0df8f24b12dbb4ad4d76c6 | 351b0b970da84e5d930a235fce76853c4dcaa365 | refs/heads/master | 2022-01-12T13:57:11.842394 | 2019-07-07T10:53:48 | 2019-07-07T10:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from math import floor
year = input()
holiday = int(input())
weekend = int(input())
games_in_sofia = (48 - weekend) * (3 / 4)
games_in_home = weekend
games_in_holiday_sofia = holiday * (2 / 3)
total_games = games_in_sofia + games_in_home + games_in_holiday_sofia
if year == "leap":
additional_games = 0.15 * total... | [
"alexander.nikolov092@gmail.com"
] | alexander.nikolov092@gmail.com |
4cdaf7a82e2c58ba6dd327460842b08cd2a84836 | fb63b9a6f0fb2a61718133b6c73cf88d6d86b473 | /tests/unit/test_conditions.py | 6e54ec94e09d80b3d8b1c82bb90e99a82b98fea8 | [
"MIT"
] | permissive | Sazpaimon/bloop | e3f15d55253b077e6bb4764e3a3cf614726f33e9 | e5eee6a1c5c46ecbb9a6a3517cca345d756ecc53 | refs/heads/master | 2021-07-12T12:16:59.748176 | 2017-09-23T01:33:21 | 2017-09-23T01:33:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,169 | py | import logging
import operator
import pytest
from bloop.conditions import (
AndCondition,
BaseCondition,
BeginsWithCondition,
BetweenCondition,
ComparisonCondition,
ComparisonMixin,
Condition,
ConditionRenderer,
ContainsCondition,
InCondition,
InvalidCondition,
NotCondi... | [
"joe.mcross@gmail.com"
] | joe.mcross@gmail.com |
654bde5deddbb976c2e3fe5e7a9a4b33bd606463 | e780a5bd72f98ca2513c993d64a85b08578166a6 | /buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/App/Permission.py | 26fc6c96cef75bd35a47508c6bf2a627db0822a3 | [] | no_license | vedantc98/Plone-test | 023246597ffe848e2a49b9f65742ff49127b190b | 9fd520fc78481e2c0b9b7ec427821e7f961c777e | refs/heads/master | 2021-03-30T22:14:33.368739 | 2018-03-11T19:22:58 | 2018-03-11T19:22:58 | 124,671,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED... | [
"vedantc98@gmail.com"
] | vedantc98@gmail.com |
16174f6a0ceaacfd5739e6f757c7da92e64ce151 | ca8d183f5d6f1f260483a3555efd05870fe1d891 | /com_blacktensor/cop/cov/status/model/status_tf.py | 5e77659c4866db16ffcc2845eb4984f7d7c1aec3 | [
"MIT"
] | permissive | Jelly6489/Stock-Proj | b559304f10614122ddaa00e39c821a65faa9f91d | 3e7b1ad5cddc5b142f0069e024199fe969c7c7e8 | refs/heads/main | 2023-01-13T17:18:33.729747 | 2020-11-13T08:19:33 | 2020-11-13T08:19:33 | 312,512,688 | 0 | 0 | MIT | 2020-11-13T08:11:04 | 2020-11-13T08:11:04 | null | UTF-8 | Python | false | false | 37 | py |
class CovidStatusTf(object):
... | [
"rlaalsrlzld@naver.com"
] | rlaalsrlzld@naver.com |
4a9cd2050ce1ad1ddda5ed230b8ca4bad878934d | 9183379a07d1d8936d8205d99ecd0e40269e667a | /sphinx/source/exercises/solution/05_encapsulation/printer.py | 414590fa8dc069be2a003ab1ed68e1baaddb3428 | [] | no_license | boegeskov/fall2020 | 477983eb97568e274d3cef9ee22706de172b6046 | 9e50030e3fa99cc5ddb95ff46f93c1a530d256b1 | refs/heads/master | 2023-01-23T18:30:19.893424 | 2020-12-09T07:16:20 | 2020-12-09T07:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | # printer.py (solution)
"""
3. Machine -> printer
Create a Machine class that takes care of powering on and off a the machine.
Create a printer class that is a subclass of the Machine super class.
The printer should be able to print to console.
The printer should have a papertray, which sho... | [
"clbo@kea.dk"
] | clbo@kea.dk |
52080a362e4c3ceb2822f229da8005edd6ef036e | 4a5f11b55e23999a82b62f5c72b44e9a36d24f63 | /simplemooc/forum/admin.py | 7c813d107c771cc9ce0f430c826d0736f3a53f31 | [] | no_license | diogo-alves/simplemooc | dca62bfcb2ea6357a551a5760778537f083b675c | cfec59f99888e4e23d41f020ff06bfdf39f70203 | refs/heads/master | 2022-05-10T10:32:18.686313 | 2019-06-04T19:30:43 | 2019-06-04T19:30:43 | 190,260,470 | 0 | 0 | null | 2022-04-22T21:34:44 | 2019-06-04T18:46:43 | Python | UTF-8 | Python | false | false | 585 | py | from django.contrib import admin
from .models import Thread, Reply
class ThreadAdmin(admin.ModelAdmin):
list_display = ['title', 'body', 'author', 'updated_at']
search_fields = ['title', 'body', 'author__username']
prepopulated_fields = {'slug': ('title',)}
class ReplyAdmin(admin.ModelAdmin):
lis... | [
"diogo.alves.ti@gmail.com"
] | diogo.alves.ti@gmail.com |
9a8e5ff5ac645a3cc48a2db51ef611314f4736f6 | 20a358db6e9e9872453a7fb36ef21268054b241d | /pyml/ditech/database/insert_traffic.py | 95f8193ac0e10728700c619c82578331c5c5dc3e | [] | no_license | fengkaicnic/pyml | ee654cdef2ba107e1c1e8d598691af3accb96b3c | a19865cdb9eb69517258416a2b08b86f9d43a023 | refs/heads/master | 2021-01-21T04:40:44.659607 | 2016-07-29T08:33:07 | 2016-07-29T08:33:07 | 44,159,061 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | import utils
import traceback
import os
import time
import pdb
start = time.time()
try:
path = 'D:/ditech/citydata/season_2/test_set_2/traffic_data'
conn = utils.persist.connection()
cur = conn.cursor()
num = 0
for pl in os.listdir(path):
if not '.' in pl:
with ope... | [
"fkdhy@163.com"
] | fkdhy@163.com |
13304ad34c9181779d72a2811439ff96eabc20cf | f8201014d20832d4cc217b473500501cf16df8ba | /virtool/genbank.py | 7035b74b89e201906c6cfa858afebbf05f253176 | [
"MIT"
] | permissive | gitter-badger/virtool | abc996ef8dc160f1fe879a55d6eec4e9043c9840 | 628acc377fb0497c2bfe75e9fa0a61decc59e0e6 | refs/heads/master | 2020-04-23T04:47:02.186926 | 2019-02-15T03:01:12 | 2019-02-15T03:01:12 | 170,919,108 | 0 | 0 | null | 2019-02-15T19:42:26 | 2019-02-15T19:42:25 | null | UTF-8 | Python | false | false | 1,933 | py | import logging
import string
import virtool.http.proxy
logger = logging.getLogger(__name__)
EMAIL = "dev@virtool.ca"
TOOL = "virtool"
FETCH_URL = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi"
async def fetch(settings, session, accession):
"""
Fetch the Genbank record for the passed `accessio... | [
"igboyes@gmail.com"
] | igboyes@gmail.com |
d631c815c2c1ba0870f891182e8369ce24c3be49 | 278060c3e3fce8c2d78640ac748188e80758deac | /tax_app/migrations/0002_auto_20191020_1607.py | d78e86314c315ed836c08685fd62b3ca35a1e8d3 | [] | no_license | ajisaq/BusinessTaxApp | 33507bb64cfabc4a84a56826db3ae90d55539359 | 08031f03a7018c59b2e9b0095e80a5ff0b7b0b70 | refs/heads/master | 2022-05-03T17:29:47.635710 | 2019-12-02T09:25:14 | 2019-12-02T09:25:14 | 219,758,403 | 1 | 3 | null | 2022-04-22T22:50:39 | 2019-11-05T13:59:07 | Python | UTF-8 | Python | false | false | 1,131 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-10-20 15:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tax_app', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"mohammedaliyu136@gmail.com"
] | mohammedaliyu136@gmail.com |
371b70b5199d49ec2db85f7e1ccd506400ea44d0 | c2ae65792af1fab2e7843303ef90790819f872e8 | /testing/ds/bin/jupyter-troubleshoot | 7134b7d07b8dd90f5c6d6f159e2fc0a8167a0183 | [] | no_license | behappyyoung/PythonSampleCodes | 47c224ca76ce509a03c8b75ef6b4bf7f49ebdd7f | f7640467273fa8ea3c7e443e798737ca5bcea6f9 | refs/heads/master | 2023-03-15T00:53:21.034605 | 2023-02-13T17:12:32 | 2023-02-13T17:12:32 | 26,919,763 | 3 | 3 | null | 2023-03-07T12:45:21 | 2014-11-20T15:57:16 | Python | UTF-8 | Python | false | false | 274 | #!/Users/s0199669/github/PythonSampleCodes/testing/ds/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.troubleshoot import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"behappyyoung@gmail.com"
] | behappyyoung@gmail.com | |
c68d6ebbadb6d5ca9c872511c913b706c9693f5b | 6fb4419f219fcf2453becfd3fe2d31dca3401da6 | /get-influences.py | 6df1a95dda8a74b2d99570fca626c49ecff004b1 | [] | no_license | christopher-beckham/wiki-lang-influence | dccc04e3565a9df408353a247058a74a9c44f5bb | 9c2832cafc5d5c25f39aff739b0004af08a5234b | refs/heads/master | 2020-04-14T23:53:33.941193 | 2014-06-19T09:57:59 | 2014-06-19T09:57:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | #!/usr/bin/python
from cz import cz
import sys
import re
import time
import urllib2
from sys import stdin
def get_langs(st):
st = "".join(cz.striphtml(st))
st = re.sub('\\[.*?\\]', '', st).replace('\n', '')
st = st.split(',')
st = [ st[0] ] + [ name[1::] for name in st[1::] ]
return st
def fe... | [
"chrispy645@gmail.com"
] | chrispy645@gmail.com |
3571c8cc983bb908e5fefc686b7dd1d85062152c | 530201d1bf8370a94ddf6ffcffd0c256389b42c9 | /mazeclass.py | 9d240b9505411691b0fd735472fb78dd60b9e784 | [] | no_license | chefakshito/cs520 | 1169a714c1e93bfb546df62b71662ff307a8de98 | 97b81f619e6f54f5125d14b58f04faa325227bd1 | refs/heads/master | 2021-01-21T06:39:35.828236 | 2017-02-27T04:22:37 | 2017-02-27T04:22:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,431 | py | from random import randint
from PIL import Image
imgx = 500; imgy = 500
image = Image.new("RGB", (imgx, imgy))
pixels = image.load()
color = [(0,0, 0), (255, 255, 255)]
sx=101
sy=101;
nm=50;
maze = [[[0 for x in range(sx)] for y in range(sy)] for z in range(nm)]
dx=[0,1,0,-1]
dy=[-1,0,1,0]
"""
cx=randint(0,mx-1)
cy=r... | [
"="
] | = |
a1fd5d1ba5523c8ee5579338e6ee4707b5c82688 | a89dfda3732eb73863b3e2fb1ebb46f1cb40973a | /txweb/lib/str_request.py | 0f90d8107e18a716cf7df54ddaea62f846c72d1f | [
"MIT"
] | permissive | devdave/txWeb | 543ccb7be0671a5e83959bb7cfc8e7804f04a74a | e447fbefd16134cb2f83323c04c20c41638d7da3 | refs/heads/master | 2022-12-15T18:11:50.880675 | 2021-03-24T18:48:16 | 2021-03-24T18:48:16 | 2,116,693 | 1 | 0 | MIT | 2022-12-08T04:28:41 | 2011-07-28T03:55:43 | Python | UTF-8 | Python | false | false | 12,567 | py | """
STATUS PENDING
Redo web Request to act as a str<->bytes proxy between our
application and twisted library.
Since Py3, all strings are unicode which is problematic for twisted as it
only works with bytes (and to some extent ascii). Instead of rewriting the entire library
and bedazzling it... | [
"devdave@ominian.net"
] | devdave@ominian.net |
630ff6a5ad626ea10a5e3ddb440d4b01416a9d3b | 0533d0ceb5966f7327f40d54bbd17e08e13d36bf | /python/LinkedList/Linked List Cycle II/Linked List Cycle II.py | 996a20582aa17746b392099fe2d2bb7ca6441e83 | [] | no_license | danwaterfield/LeetCode-Solution | 0c6178952ca8ca879763a87db958ef98eb9c2c75 | d89ebad5305e4d1a185b0c6f101a88691602b523 | refs/heads/master | 2023-03-19T01:51:49.417877 | 2020-01-11T14:17:42 | 2020-01-11T14:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def detectCycle(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
slow = head
fast = head
step = 0
while slow a... | [
"zjuzjj@gmail.com"
] | zjuzjj@gmail.com |
4df7849c6844bd581bb8841111f635cbbab50830 | 4dfd539c530c5cff6874f2fa0c06ffd893212ad3 | /tencentcloud/chdfs/v20201112/errorcodes.py | d4604add29d3d07f8131cc49457ff2038e6d3425 | [] | no_license | TencentCloud/tencentcloud-sdk-python-intl-en | aac605d1a0458b637ba29eb49f6f166fe844a269 | 042b4d7fb609d4d240728197901b46008b35d4b0 | refs/heads/master | 2023-09-01T19:39:27.436454 | 2023-09-01T04:02:15 | 2023-09-01T04:02:15 | 227,834,644 | 4 | 6 | null | 2023-07-17T08:56:56 | 2019-12-13T12:23:52 | Python | UTF-8 | Python | false | false | 3,853 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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... | [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
873f399a3fc2fb55ed3c9320f9bdce8d298bc065 | 474e74c654916d0a1b0311fc80eff206968539b1 | /venv/Lib/site-packages/asposewordscloud/models/paragraph_link_collection_response.py | f18fa21cf6270818d46552834022303a45595eff | [] | no_license | viktor-tchemodanov/Training_Tasks_Python_Cloud | 4592cf61c2f017b314a009c135340b18fa23fc8f | b7e6afab4e9b76bc817ef216f12d2088447bd4cd | refs/heads/master | 2020-09-04T10:39:23.023363 | 2019-11-05T10:36:45 | 2019-11-05T10:36:45 | 219,712,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,084 | py | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose" file="ParagraphLinkCollectionResponse.py">
# Copyright (c) 2018 Aspose.Words for Cloud
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtainin... | [
"vtchemodanov@hotmail.com"
] | vtchemodanov@hotmail.com |
b2001f4905ca18d64754a9a6aafb71893fbb0f10 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/Luca.Paterlini/C.py | cd79d12c9e0577d934dba12922fbf43c13a8215c | [] | 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 | 1,364 | py | import math
def AtkinSieve (limit):
results = [2,3,5]
sieve = [False]*(limit+1)
factor = int(math.sqrt(limit))+1
for i in range(1,factor):
for j in range(1, factor):
n = 4*i**2+j**2
if (n <= limit) and (n % 12 == 1 or n % 12 == 5):
sieve[n] = not sieve[n]
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
b7e6ccbf91282fd4b1135b33210324ead1541bbf | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/577619_user_and_root_directory_logfile/recipe-577619.py | a1ea4b4ab355197464452fb26ca1eb8516cd6dac | [
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 339 | py | #! usr/bin/python
import dircache
import getpass
import time
logfile = open("spam.txt", "w+")
localtime = time.asctime( time.localtime(time.time()) )
print >> logfile, 'local current time :', localtime
usr = getpass.getuser()
print >> logfile, 'current user :' + usr
lst = dircache.listdir('/')
print >> logfile, ls... | [
"betty@qburst.com"
] | betty@qburst.com |
f61dd5f504fce6b9b5c5368af402735f80c34ca2 | 7d85c42e99e8009f63eade5aa54979abbbe4c350 | /game/lib/coginvasion/distributed/PlayGame.py | 82e93f8b2d73561ef231f29acb3acbd8bdb2e18f | [] | no_license | ToontownServerArchive/Cog-Invasion-Online-Alpha | 19c0454da87e47f864c0a5cb8c6835bca6923f0e | 40498d115ed716f1dec12cf40144015c806cc21f | refs/heads/master | 2023-03-25T08:49:40.878384 | 2016-07-05T07:09:36 | 2016-07-05T07:09:36 | 348,172,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,364 | py | # Filename: PlayGame.py
# Created by: blach (28Nov14)
from lib.coginvasion.globals import CIGlobals
from lib.coginvasion.distributed.CogInvasionMsgTypes import *
from direct.fsm.ClassicFSM import ClassicFSM
from direct.fsm.State import State
from direct.fsm.StateData import StateData
from direct.directnotify.DirectNo... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
3e237a3b618f6babfcc45fed3d29a91f5c1caf5e | 5cb9dccbcccb8a2137368dd0615fe3e3c7761707 | /simulations/kinova/build/moveit_ros_visualization/catkin_generated/pkg.installspace.context.pc.py | be8bbf82db3fed001402ea244273aafcf024b20f | [] | no_license | Simon-Steinmann/sim2real-modular-RL-project | b2467a393014e106043f6128a026f5eac934a83d | 4027590ac94de2d5c914731c09efcf2f318b9ca3 | refs/heads/master | 2020-07-29T01:30:56.450919 | 2019-10-12T09:33:00 | 2019-10-12T09:33:00 | 209,605,548 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/acis/sim2real/simulations/kinova/install/include;/usr/include/eigen3".split(';') if "/home/acis/sim2real/simulations/kinova/install/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPEN... | [
"simon.steinmann91@gmail.com"
] | simon.steinmann91@gmail.com |
052c2a2cb51a4e27408d96c8675bf650c28a11d6 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /3pzKWEg5oiaMemDdP_20.py | 8a2a185b2383fd368b4c800327192066c7c46a25 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py |
def most_expensive_item(products):
Things = []
for x in products.keys():
Things.append(x)
Worth = []
for y in products.values():
Worth.append(y)
Highest = max(Worth)
Counter = 0
Length = len(Things)
while (Counter < Length):
Item = Things[Counter]
Money = Worth[Co... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
906cd4d8ad7c433c507a091c53dfd90fe4514f34 | 7f53a1ba1920a5301ca325d4faf480f3799c0a48 | /merger_2012_emb.py | 654e169fbd8f372fa53edddcf0d02d83b14ee90c | [] | no_license | rmanzoni/tools | a7fe8083628954f7f02e80add1d3dd761720e8e6 | e2189860d26be2a4276ec2ca3fe220e90adf9158 | refs/heads/master | 2021-01-01T18:37:33.731578 | 2015-04-15T13:46:12 | 2015-04-15T13:46:12 | 18,681,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | import os
import ROOT
from ROOT import gROOT, gStyle, TFile, gDirectory
gROOT.SetBatch(True)
#for mass in [110,115,120,125,130,135,140,145] :
for mass in [125] :
print "Higgs mass =", str(mass)
# search in current dir
matches = []
dirList = os.listdir(os.getcwd())
for fname in dirList:
if str(fname).fi... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
f80430b48ec9e0b71e51fbfed5dd8c8bcdabbbe4 | 42e8c0992fd845237fa7b1baef494bfb6abc9dba | /ui/data_input_panel.py | 7dd2b4764971de4b2bd9fc109be70c082724291f | [] | no_license | mx1001/animation_nodes | b5ae336512bb43f40e6ca5276a4e05acb5fdc81b | b77b96d991f2b26c03bcbeef4a9fa8a09173ea4f | refs/heads/master | 2020-02-26T17:46:05.676451 | 2016-03-09T15:22:01 | 2016-03-09T15:22:01 | 54,067,761 | 5 | 0 | null | 2016-03-16T21:27:54 | 2016-03-16T21:27:54 | null | UTF-8 | Python | false | false | 554 | py | import bpy
from .. tree_info import getNodesByType
class DataInputPanel(bpy.types.Panel):
bl_idname = "an_data_input_panel"
bl_label = "Data Input"
bl_space_type = "VIEW_3D"
bl_region_type = "TOOLS"
bl_category = "AN"
def draw(self, context):
layout = self.layout
nodes = getNod... | [
"mail@jlucke.com"
] | mail@jlucke.com |
62c8e000ff730bcbea4570291d047b650df3c345 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_44485.py | ad2e839330e7dfc437fe5ef7dea9d16f2ba0db61 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,844 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
d37d447bd7ce2b1d813f28d559dadf00e8be9f92 | df25eefe4878c08b0f51f6ff19f48054ba6dbc2a | /test/espnet2/text/test_text_converter.py | 0d1f32b94924e5d24b9c95b25a217e07483a5f3e | [
"Apache-2.0"
] | permissive | sas91/espnet | 7f14a9394469993fb948758c7b0b78f76ad12cbe | 8e263d6512eb84cebeaecf6b99204c102a8252b5 | refs/heads/master | 2021-07-13T18:45:13.981483 | 2020-06-02T08:43:25 | 2020-06-02T08:43:25 | 142,748,209 | 1 | 0 | Apache-2.0 | 2018-07-29T09:37:35 | 2018-07-29T09:37:35 | null | UTF-8 | Python | false | false | 2,565 | py | from pathlib import Path
import string
import pytest
import sentencepiece as spm
from espnet2.text.char_tokenizer import CharTokenizer
from espnet2.text.sentencepiece_tokenizer import SentencepiecesTokenizer
from espnet2.text.word_tokenizer import WordTokenizer
@pytest.fixture(params=[None, " "])
def word_converter... | [
"naoyuki.kamo829@gmail.com"
] | naoyuki.kamo829@gmail.com |
05f8026f429941abdd6ce606b334f295694c5f27 | 72f026518a27bab1d7d260914fc366cdb8559a6f | /scripts/setup.py | c4e8832eeb5e9b9f9dd28a8dbccbd2d863940b42 | [
"MIT"
] | permissive | wenlien/pyre-check | 30ca42404740517a911fba9b2e786aef38672d77 | 5d97637bacac25f0ca7659163a8617dae1c43f0e | refs/heads/master | 2023-07-06T07:39:34.156671 | 2023-06-25T17:22:01 | 2023-06-25T17:22:01 | 133,370,640 | 1 | 0 | null | 2018-05-14T14:09:04 | 2018-05-14T14:09:04 | null | UTF-8 | Python | false | false | 13,159 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
This script provides a the logic used to bootstrap a local opam
switch for building Pyre by collecting all depend... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
561fbf76952e72959088ff99ae838295f3938bc7 | 479d3414e914f144fff20ee71872472ac84ca410 | /codespace/python/telegram/_files/inputfile.py | 730301869bd5e67593a4565ada2e146058b8f953 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | tzpBingo/github-trending | 0fa4e0e08743f0683f68fd54d74eec466bc525e0 | 505014e84bdea7e2732296821028df20c0305390 | refs/heads/master | 2023-07-24T13:29:47.393940 | 2023-07-19T09:39:29 | 2023-07-19T09:39:29 | 102,687,887 | 49 | 20 | MIT | 2023-05-22T21:33:53 | 2017-09-07T03:39:42 | Python | UTF-8 | Python | false | false | 4,191 | py | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2023
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
#... | [
"tzpbingo@gmail.com"
] | tzpbingo@gmail.com |
6afdae640dd9ad3d9adbf1cbc0c7d8cf8b7d3466 | 491c1e520a64e3ebd5349130f35047aaed1e70ec | /two pointer/680 validPalindrome.py | 3ccf25be7a1c357ec82bfd31b9cc88e976d594fb | [] | no_license | pangyouzhen/data-structure | 33a7bd7790c8db3e018114d85a137f5f3d6b92f8 | cd46cf08a580c418cc40a68bf9b32371fc69a803 | refs/heads/master | 2023-05-26T12:02:30.800301 | 2023-05-21T08:07:57 | 2023-05-21T08:07:57 | 189,315,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | class Solution:
def validPalindrome(self, s: str) -> bool:
def checkPalindrome(low, high):
i, j = low, high
while i < j:
if s[i] != s[j]:
return False
i = i + 1
j = j - 1
return True
l... | [
"pangyouzhen@live.com"
] | pangyouzhen@live.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.