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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ead463a4fe241c5a35c668a64bc671fe9bf1d28b | 3d30aa4f3a7a3ab8a0a2b75bf3e437834be8c354 | /Victor/dq2.victor.cms/lib/dq2/common/externalcall.py | 4591bda4bb0c2a8b0a928653bcb80b78219075f0 | [] | no_license | mmeoni/DDM | c3baa1f97fe9d1ff0272819bee81a7424cf028db | faba3a414009a362471a8f1eae8f9c11e884c8fd | refs/heads/master | 2021-01-22T07:19:06.698307 | 2016-08-12T07:50:37 | 2016-08-12T07:50:37 | 36,882,324 | 1 | 0 | null | 2015-06-04T16:28:47 | 2015-06-04T16:28:47 | null | UTF-8 | Python | false | false | 2,528 | py | """
Module for handling external process calls.
@author: Miguel Branco
@contact: miguel.branco@cern.ch
@since: 1.0
@version: $Id: externalcall.py,v 1.1 2008-05-19 13:16:09 mbranco Exp $
"""
import os
import signal
import sys
import time
import tempfile
class ExternalCallException(Exception):
pass
class External... | [
"domenico.giordano@cern.ch"
] | domenico.giordano@cern.ch |
a6b8f9a1376495aee62bb8eea0c2eb13932266ce | 69e7dca194ab7b190e1a72928e28aa3821b47cfb | /Concepts/2 Pointers/253.py | e02124f3f456efdf679b47a09afeffb2a9ce993d | [] | no_license | Dinesh94Singh/PythonArchivedSolutions | a392891b431d47de0d5f606f7342a11b3127df4d | 80cca595dc688ca67c1ebb45b339e724ec09c374 | refs/heads/master | 2023-06-14T14:56:44.470466 | 2021-07-11T06:07:38 | 2021-07-11T06:07:38 | 384,871,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | """
Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei),
find the minimum number of conference rooms required.
Example 1:
Input: [[0, 30],[5, 10],[15, 20]]
Output: 2
Example 2:
Input: [[7,10],[2,4]]
Output: 1
NOTE: input types have been changed on April 15, 2019... | [
"dinesh94singh@gmail.com"
] | dinesh94singh@gmail.com |
3ae95fdf927adc96976bbe3b77a757f102b1f3b7 | 5b0f27b1a6452328b3d289a9f81ba3b23d1579b2 | /search.py | 6c5ff409cde9509470885667056aba148eb82795 | [
"MIT"
] | permissive | gtback/rfc-elasticsearch | 8151e447af267fedc772d90f4e73b2e8eeac20e3 | 17c03d0dfbd7f7d9c2e22e653e055d3024d5aa8a | refs/heads/master | 2023-05-24T18:59:37.731462 | 2020-12-17T15:04:44 | 2020-12-17T15:04:44 | 28,681,471 | 1 | 0 | MIT | 2023-05-23T00:51:22 | 2015-01-01T06:06:00 | Python | UTF-8 | Python | false | false | 559 | py | #!/usr/bin/env python
import sys
import requests
BASE_URL = "http://localhost:9200/"
INDEX = "rfc"
def main():
term = sys.argv[1]
r = requests.get(BASE_URL + INDEX + "/_search/?q=%s" % term)
results = r.json()
res_count = results['hits']['total']
time = results['took'] / 1000.0
print "%s re... | [
"gback@mitre.org"
] | gback@mitre.org |
ba05471bc5c24f3e2eafdba09eec9e21d783c8a4 | b45d5a1068d47efde8e3c816d68049f7195ba13e | /app/main/MyFlowDomain.py | 99f631401ae5de3424c81ee3b74a1137126c0047 | [] | no_license | guohongjie/YuHuiAutoApi | 57e2c9c84f95030a08f3605e5d337ded051bf50f | 02a52e364f79810bd902f977051469b283889407 | refs/heads/master | 2021-03-03T14:38:47.433661 | 2020-04-30T09:56:27 | 2020-04-30T09:56:27 | 245,967,508 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,384 | py | #!/usr/bin/python
#-*-coding:utf-8 -*-
from app.main import flow
from flask import render_template,request,make_response,jsonify,session
from app.config.api_models import Run_Suite,Test_Domain
from app.config.user_models import DeptName
from app import db
from sqlalchemy import func
@flow.route("/myFlowDomain",methods=... | [
"guohongjie@yunshuxie.com"
] | guohongjie@yunshuxie.com |
c87f3ed339fd6c794bdc2916bc2f460d92c9aae9 | f5470aedfce5d43809168e8b1c529033a14b12d9 | /reudom/__init__.py | eed71ceda06a7a3ab536b304e539df50436dba8f | [
"Apache-2.0"
] | permissive | braveryzhangsan/reudom | b090db637551de6e5bd2bf726dccc9da42fa4c3a | 1ce2856f2bb7e5fdd4d2d540c9f5601f4dbbadc9 | refs/heads/master | 2022-12-01T10:45:42.507158 | 2020-08-14T09:00:32 | 2020-08-14T09:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | #!/usr/bin/python
#
# Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "Li... | [
"2652612315@qq.com"
] | 2652612315@qq.com |
f543888adbefabe562adb049c44de8222055a93f | 728871b962f2a5ec8d8ec7d5b607def074fb8864 | /W261/HW3-Questions/reducer_s.py | 0b5a9d1f4172b97eac80fbd901c5d89e218febb1 | [] | no_license | leiyang-mids/MIDS | 0191ffbaf9f7f6ec0e77522241c3e76d012850f1 | 918b0d8afc395840626eb31c451ad6c4b2f3bc39 | refs/heads/master | 2020-05-25T15:46:56.480467 | 2019-03-28T16:16:17 | 2019-03-28T16:16:17 | 35,463,263 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | #!/usr/bin/python
import sys
# increase counter for mapper being called
sys.stderr.write("reporter:counter:HW3_5,Reducer_s_cnt,1\n")
n_out = 0
n_top = 50
print 'top %d pairs: ' %n_top
for line in sys.stdin:
# parse mapper output
n_out += 1
if n_out <= n_top:
print line.strip().repla... | [
"ynglei@gmail.com"
] | ynglei@gmail.com |
684b1d7d95483a714d039342c9804108fb2166b2 | 65148257eabf62c5a60c5a2723792c3549887f49 | /froide/publicbody/models.py | 55d0ac4af73a8859fe5f3174199936082c9ab74a | [
"MIT"
] | permissive | infoaed/froide | 083ba5d501f10c29f6f75bc7ae656ebee98fc08c | 532b626e62f6ad3d5017261d305721d00c16cd43 | refs/heads/master | 2021-02-11T17:20:02.449999 | 2020-03-02T17:01:19 | 2020-03-02T17:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,433 | py | from datetime import timedelta
from django.contrib.gis.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.sites.models import Site
from django.contrib.sites.managers import CurrentSiteManager
from django.urls import reverse
from django.conf import settings
from django.utils.te... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
b9384b6227707f4ed9d583e9c974d5122e70e454 | ab9196b6356e3c0af7baf7b768d7eb8112243c06 | /Django/Django_day1/blog/urls.py | c63f69d4cac9c4131fcef86ac418244139d24999 | [] | no_license | wngus9056/Datascience | 561188000df74686f42f216cda2b4e7ca3d8eeaf | a2edf645febd138531d4b953afcffa872ece469b | refs/heads/main | 2023-07-01T00:08:00.642424 | 2021-08-07T02:10:25 | 2021-08-07T02:10:25 | 378,833,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from django.urls import path
from blog import views
urlpatterns = [
path("", views.index, name="index"),
path("<int:pk>/", views.article_detail, name="article_detail"),
] | [
"noreply@github.com"
] | wngus9056.noreply@github.com |
19a4702b76ab3e91095edea734a8f7632647851e | eae6ed9ec6cd4a08b133fab43c7ccd4a9de090ec | /reviews/admin.py | 896e389e21e18eea5beb99413ab9776fbf5a5903 | [] | no_license | apple2062/airbnb-Django | 3e891ad694a023993ae22b8063774fc740f57bc6 | 980b9015918393ddfc3ad4646d22fe8f5be6b159 | refs/heads/master | 2023-03-05T17:09:51.035035 | 2021-02-18T08:44:11 | 2021-02-18T08:44:11 | 299,503,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from django.contrib import admin
from . import models
@admin.register(models.Review)
class ReviewAdmin(admin.ModelAdmin):
"""Review Admin Definition """
list_display = (
"__str__",
"rating_average",
) # 이와 같은 식으로 나의 __str__을 list_display에 쓸 수 있음
| [
"apple2062@naver.com"
] | apple2062@naver.com |
1932461e9eaad09216df97a1a08acf7dd0573387 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00007/s079875761.py | c6d74398ecb3fb6ceb055304bb8e512da7996b70 | [] | 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 | 239 | py | import sys
import math
def main():
n = int(input().rstrip())
r = 1.05
digit = 3
a = 100000
for i in range(n):
a = math.ceil(a*r/10**digit)*10**digit
print(a)
if __name__ == '__main__':
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
685efba0c2f64061426542281e99688f1b173005 | e81d274d6a1bcabbe7771612edd43b42c0d48197 | /Python基础/day17(函数工具、时间工具、加密工具)/demo/03_hashlib/01_hashlib.py | ad4d27b1aad677915b9e48e3a02260f4c9eacbb9 | [
"MIT"
] | permissive | ChWeiking/PythonTutorial | 1259dc04c843382f2323d69f6678b9431d0b56fd | 1aa4b81cf26fba2fa2570dd8e1228fef4fd6ee61 | refs/heads/master | 2020-05-15T00:50:10.583105 | 2016-07-30T16:03:45 | 2016-07-30T16:03:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | '''
账户: laowang@qq.com laowang@qq.com
登录密码: gebilaowang 234khkhwrk998y892h3i4hkhkhwkrhwr8h2k34hk32hr
支付密码: 123321 skhksjhoiw329822oi3h4hkjshrkjshkdshfiudshsih
'''
import hashlib
pwd = '123456'
#md5加密的对象
m = hashlib.md5()
#将密码更新加密对象中
m.update(pwd.encode('utf-8'))
#生成长度32的16进制组成的字符串
pwd = m.hexdigest()
pr... | [
"1025212779@qq.com"
] | 1025212779@qq.com |
1d6334b644cc3563d65c5dcb164895fcfa99b8f9 | a8e2c66b3ebadfc17ee9aee197b3f466534cee16 | /system/venv/Scripts/pip3.5-script.py | 76456cfd70a2ec5f697bd1105a920e5d016e2128 | [] | no_license | yintiannong/98kar | 49b6db186a4543a7c50671df990bb491846c1a98 | 3863529f57e9d2d9bc1bdf8188916e25ad289db0 | refs/heads/master | 2022-01-07T05:49:31.566453 | 2019-05-22T07:04:45 | 2019-05-22T07:04:45 | 187,794,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #!F:\0000\system\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.5'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"1532295578@qq.com"
] | 1532295578@qq.com |
004a6297b957c2a0d940519ca02727844643bcc3 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L38/38-60_MD_NVT_rerun/set_7.py | fcb5f698499b354a1192727363363c4b6ea7990d | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L38/MD_NVT_rerun/ti_one-step/38_60/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_7.in'
temp_pbs = filesdir + 'temp_7.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
1effd3531266c311d607bffb7b5933a9f7a7671a | a2181507e57baca97a1cf1bbbdc9c631f133b446 | /booking/admin.py | f9cdaa8eafb7b21ee90df4eb2bbcb8bce2d66ac5 | [] | no_license | Fabricourt/tika | b35739cb61dde3eeb454d05acb871f992e29a82d | bcf1bc6b9cac54eb866ad1e543fba23bcdbba9e1 | refs/heads/master | 2023-05-02T18:37:48.487231 | 2019-06-13T15:46:09 | 2019-06-13T15:46:09 | 191,501,190 | 0 | 0 | null | 2023-04-21T20:32:25 | 2019-06-12T05:06:35 | JavaScript | UTF-8 | Python | false | false | 307 | py | from django.contrib import admin
from .models import About, Lessor, Lessee, Truck, Onhire, Booktruck, Driver
admin.site.register(About)
admin.site.register(Lessor)
admin.site.register(Lessee)
admin.site.register(Truck)
admin.site.register(Driver)
admin.site.register(Onhire)
admin.site.register(Booktruck) | [
"mfalme2030@gmail.com"
] | mfalme2030@gmail.com |
8d7c8cce3c07460bc3645dc375c8ef5e68c8ff68 | 2ef27655cd1deb9de4074249e559269abd334fa1 | /6 kyu/Rock, Paper, Scissor, Lizard, Spock Game.py | 6b24043430a8cbc31ae6e9d04f0b19255d9e8a30 | [] | no_license | sieczkah/Codewars_KATA | c7606b9a88693e2550af0ef55808f34c00e77b73 | 68d5d4a133a015e49bcdbff29ee45e3baefcd652 | refs/heads/main | 2023-05-06T03:59:01.403765 | 2021-05-24T19:36:34 | 2021-05-24T19:36:34 | 334,698,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | """https://www.codewars.com/kata/569651a2d6a620b72e000059/train/python"""
options = {
'spock': ['scissor', 'rock'],
'scissor': ['paper', 'lizard'],
'paper': ['rock', 'spock'],
'rock': ['lizard', 'scissor'],
'lizard': ['spock', 'paper']
}
def result(p1, p2):
if p1.lower() not in options.keys(... | [
"huberts94@gmail.com"
] | huberts94@gmail.com |
45b12c6735dafa0fc65e5c5777d5a0c9ae8845f8 | 2456cc561491b496c64eb2f1177c7575c849fe42 | /pyscf/scf/test/test_h2o.py | ff7d73a3a111658ba2738641823d84ca83a9289e | [
"BSD-2-Clause"
] | permissive | pulkin/pyscf | 5e1acb390d0db3ffe8e70c2a4f3f67884c6c5e52 | e758cc3708fd84c4e9e2d9dca276f6924caadc77 | refs/heads/master | 2021-01-22T19:30:45.423740 | 2017-07-11T20:17:36 | 2017-07-11T20:17:36 | 85,197,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,752 | py | #!/usr/bin/env python
#
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
import unittest
import numpy
import scipy.linalg
import tempfile
from pyscf import lib
from pyscf import gto
from pyscf import scf
from pyscf.scf import dhf
mol = gto.Mole()
mol.build(
verbose = 5,
output = '/dev/null',
atom = [
["O... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
11a859338528120c65e4bacf234b59d1f334a0da | 88fa6387ef13ffff6516a0fee8f574e3f219b3f2 | /mlrefined_libraries/calculus_library/secant_to_tangent_3d.py | 2c363b83bc1422ee4a14c32dad7d12758f3fa4c2 | [] | no_license | bdieu178/mlrefined | 49f017c907a3118bd546aa0a25dcc73b70ded27b | 515364ddd0bffee10ce4ab4eb9f9b164e81f8bd1 | refs/heads/master | 2021-01-19T15:12:45.737311 | 2017-08-19T23:58:56 | 2017-08-19T23:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,689 | py | # import custom JS animator
from mlrefined_libraries.JSAnimation_slider_only import IPython_display_slider_only
# import standard plotting and animation
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from IPython.display import clear_output
import time
from matplotlib import gridspec
from mpl... | [
"jermwatt@gmail.com"
] | jermwatt@gmail.com |
6b9526667b08d7040fec47867c5eee476f0b6768 | 0e638cd11c1ac64dcd1672936a1b0d7d545ee29f | /src/str_upper_double_byte_char.py | 3eaec60af1cd6abf0f8892b0fc5546c0ec3e517c | [] | no_license | simon-ritchie/python-novice-book | 2557d397a8f6025b63f3173c24bd4dcdb48aef8c | 1492adf603ba4dd1e9fadb48b74e49887c917dc6 | refs/heads/master | 2020-12-26T16:47:36.945581 | 2020-08-04T12:16:10 | 2020-08-04T12:16:10 | 237,569,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | txt = 'Apple'
print(txt.upper()) | [
"antisocial.sid2@gmail.com"
] | antisocial.sid2@gmail.com |
01d4e8dcf4a15b667c439fd1bdde4d23f2aad2fb | 0206ac23a29673ee52c367b103dfe59e7733cdc1 | /src/crcm5/analyze_rpn/plot_seasonal_means_from_daily_files.py | ab4e79a4d5f0103b3070eb6fa9639041fa46cd98 | [] | no_license | guziy/RPN | 2304a93f9ced626ae5fc8abfcc079e33159ae56a | 71b94f4c73d4100345d29a6fbfa9fa108d8027b5 | refs/heads/master | 2021-11-27T07:18:22.705921 | 2021-11-27T00:54:03 | 2021-11-27T00:54:03 | 2,078,454 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | from datetime import datetime
from pathlib import Path
from matplotlib import cm
from matplotlib.colors import BoundaryNorm
from rpn.domains.rotated_lat_lon import RotatedLatLon
from application_properties import main_decorator
from mpl_toolkits.basemap import cm as cm_basemap, Basemap
__author__ = 'huziy'
from rpn.r... | [
"guziy.sasha@gmail.com"
] | guziy.sasha@gmail.com |
9b1ccf4577a0ee9a0044fe6dbc23a91a8f570aaf | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_115035.62+253205.1/sdB_sdssj_115035.62+253205.1_lc.py | 696ade788c191929320b6afdc107af3e3807ea07 | [] | 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 | 370 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[177.648417,25.53475], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj_115035.62+253205.1/sdB_sdssj_115035.62+253205.1_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.010388897... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
5b788699d45a5655649f9b4f4c5222a5daa8ec11 | e53cfac2eadeaf9727ec055b4cd524320cf8ded5 | /26.04/Вариант 19 Поляков/8-1942.py | 397399f64c005a1bdde980e0ae6acdaec09aeb18 | [] | no_license | NevssZeppeli/my_ege_solutions | 55322d71dcc9980e2cf894ea2b88689dca807943 | 7a25c93b8a58b03d0450627f1217972fbf7d04f6 | refs/heads/master | 2023-06-17T19:58:28.388391 | 2021-07-03T16:03:36 | 2021-07-03T16:03:36 | 380,223,538 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | с = 0
for x in 'НОДА':
for y in 'НОДА':
if x == y: continue
for w in 'НОДА':
if w in x + y: continue
for z in 'НОДА':
if z in x + y + w: continue
word = x+y+z+w
if ('ОА' not in word) and ('АО' not in w... | [
"root@NevssPC.localdomain"
] | root@NevssPC.localdomain |
2fa66bbef81d04439a27bab63b84bd6d9471f1b1 | f35bb12066639698a94847cba4b4628aede1da70 | /contests/python/atcoder_beginners_selection/01_ABC086A/main.py | 7d081a94817ae4b9d8a1a2b4c664fcea284635be | [] | no_license | fly1tkg/atcoder-python-note | 7e74382a8867b07bb7a926988ac854a3b84e020b | 6051b771c0a0399ce8caf1e24256a9909101b0e7 | refs/heads/main | 2023-08-26T23:52:14.766576 | 2021-10-30T11:58:38 | 2021-10-30T11:58:38 | 363,686,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | a, b = map(int, input().split())
result = a * b
if result % 2 == 0:
print("Even")
else:
print("Odd") | [
"fly1tkg@gmail.com"
] | fly1tkg@gmail.com |
effba01bf3546bb14704b8e9e1a0030ce9ce98ac | 37d8802ecca37cc003053c2175f945a501822c82 | /11-拓扑排序/0210-课程表 II .py | 74c246f32580ae2fcd91dba5d7eed54baa543dbb | [
"Apache-2.0"
] | permissive | Sytx74/LeetCode-Solution-Python | cc0f51e31a58d605fe65b88583eedfcfd7461658 | b484ae4c4e9f9186232e31f2de11720aebb42968 | refs/heads/master | 2020-07-04T18:17:24.781640 | 2019-07-30T03:34:19 | 2019-07-30T03:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | # 210. 课程表 II
# 现在你总共有 n 门课需要选,记为 0 到 n-1。
# 在选修某些课程之前需要一些先修课程。 例如,想要学习课程 0 ,你需要先完成课程 1 ,我们用一个匹配来表示他们: [0,1]
# 给定课程总量以及它们的先决条件,返回你为了学完所有课程所安排的学习顺序。
# 可能会有多个正确的顺序,你只要返回一种就可以了。如果不可能完成所有课程,返回一个空数组。
class Solution(object):
def findOrder(self, numCourses, prerequisites):
"""
:type numCourses: int 课程门数
... | [
"121088825@qq.com"
] | 121088825@qq.com |
fcb705deeef62d671fac51dff40c11b3bac40179 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03729/s949028843.py | 45c50409e0f846d9c29adc30f5988d605b546202 | [] | 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 | 153 | py | Tmp = []
Tmp = input().rstrip().split(' ')
S1 = Tmp[0]
S2 = Tmp[1]
S3 = Tmp[2]
if S1[-1]==S2[0] and S2[-1]==S3[0]:
print('YES')
else:
print('NO')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b2a55e6803a8cb82449b0f4480ce73159caf442d | 3a570384a3fa9c4c7979d33b182556e1c637e9eb | /anwmisc/anwp/sims/missile1_h.py | 520ed4c58d7fbb6a3dc46bfb12ad87458d033f4b | [] | no_license | colshag/ANW | 56a028af5042db92b5ead641dc542fcb4533344e | 46948d8d18a0639185dd4ffcffde126914991553 | refs/heads/master | 2020-03-27T00:22:49.409109 | 2018-10-27T06:37:04 | 2018-10-27T06:37:04 | 145,618,125 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | # ---------------------------------------------------------------------------
# Armada Net Wars (ANW)
# missile1_H.py
# Written by Chris Lewis
# ---------------------------------------------------------------------------
# Represents a missile sim in the simulator
# -----------------------------------------------------... | [
"colshag@gmail.com"
] | colshag@gmail.com |
c72220bcf74725873eb70e15d44322f5a0bf2f6d | 0ffb18f4d58961ca675d8294eb2154f69061989f | /auto_process_ngs/auto_processor.py | 42f47a8685a1fde7de0137cf03dc62f7d54b3aca | [] | no_license | nandr0id/auto_process_ngs | a794e904e6d24b0e0403941b44c884374f95850e | 9b09f20b344d0ee87227e8771a479aa7c04f1837 | refs/heads/master | 2020-06-26T03:23:53.225029 | 2019-06-12T12:11:32 | 2019-06-12T12:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,116 | py | #!/usr/bin/env python
#
# auto_processor.py: automated processing of Illumina sequence data
# Copyright (C) University of Manchester 2013-2019 Peter Briggs
#
#########################################################################
#
# auto_processor.py
#
########################################################... | [
"peter.briggs@manchester.ac.uk"
] | peter.briggs@manchester.ac.uk |
ea87a929be67a2abcf9fe9a15362b1768dcc7a70 | 9f7d4d76c7e66aa424a5f8723575dc489f1fd2ab | /2021/4/4.py | 473c4f3604c356f4364a7d7adc7f597ac43c4b9e | [
"MIT"
] | permissive | kristianwiklund/AOC | df5a873287304816f25d91259c6e6c99c7a5f4bf | d9a668c406d2fd1b805d9b6a34cffa237a33c119 | refs/heads/master | 2023-01-12T09:01:11.012081 | 2023-01-02T19:12:29 | 2023-01-02T19:12:29 | 227,458,380 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | #!/usr/bin/python3
import csv,sys
from pprint import pprint
from bb import BB
# ------
randoms = next(sys.stdin).strip().split(",")
print(randoms)
boards = list()
try:
while True:
next(sys.stdin)
a = BB(sys.stdin)
boards.append(a)
# print(a)
... | [
"githubkristian@snabela.nl"
] | githubkristian@snabela.nl |
5ae4f7b8fa1951c2a6ad2cceeb98570947a922c2 | 849cd35166a93259c8bf84f001a3c40d9fe18b98 | /Homeworks/test.py | 4e8c67718adee043fe5c125fb2ffc073b240d0c2 | [] | no_license | Larionov0/Group2-lessons | 98c3d20d7532583ee66e766371235cfe888264c5 | 6426962e9b6766a9470ab1408b95486e63e4c2fa | refs/heads/master | 2023-05-07T01:42:57.290428 | 2021-05-27T17:52:02 | 2021-05-27T17:52:02 | 334,012,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | trees = [
["Дуб", 5 , "д", "Д", 1,
[],
0
],
["Береза", 3, "б", "Б", 3,
[],
0
],
["Сосна", 1, "с", "С", 4,
[],
0
]
]
width = 6
height = 6
# матриця
matrix = []
i = 0
while i < height:
row = ['-'] * width
matrix.append(row)
i += 1
for row in mat... | [
"larionov1001@gmail.com"
] | larionov1001@gmail.com |
95eeaa6375a8e6693831fb82f1aa36d7b02af8d6 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2022_05_01/operations/_storage_accounts_operations.py | fca5324144c977450c513adec4de92ec91e8dd79 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 123,655 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
a66173adf7118eff4cc81d1df2f6e262385d23c9 | 1b77eaf078321b1320d72aa36a4357568101e4ca | /字典6.5/venv/Scripts/easy_install-script.py | f3f5e0912c303566f77431e585b64cff50c8b803 | [] | no_license | BEE-JN/python_homework | 92ffc1216a380d124901fd64cc541f70813847dc | 8ba4ea79cbd422f40e6f9f1cc5fed4d75715d207 | refs/heads/master | 2020-03-23T08:02:47.863607 | 2018-07-17T15:30:21 | 2018-07-17T15:30:21 | 141,305,118 | 1 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 436 | py | #!E:\python\×Öµä6.5\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"41156190+GCS-CN@users.noreply.github.com"
] | 41156190+GCS-CN@users.noreply.github.com |
cff524845cd8cd7c51e340615ab03f93dd2e8f56 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2464/60624/263253.py | 43b61c2b54734e6e699622b0d037ab4ce3242c40 | [] | 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 | 576 | py | def func8():
target = int(input())
nums = list(map(int, input().split(",")))
low, high, res = 0, len(nums), 0
def helper(size):
sum_size = 0
for i in range(len(nums)):
sum_size += nums[i]
if i >= size:
sum_size -= nums[i-size]
if sum_si... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
aaf0a6ea8f8061f08ac8215d02d2a9afd75d1594 | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/test/connectivity/acts/framework/tests/controllers/ap_lib/radvd_test.py | 452bd655aba4b1be73089b416c1c32a84ab76fff | [] | no_license | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,027 | py | #!/usr/bin/env python3
#
# Copyright 2020 - The Android Open Source Project
#
# 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
#
# ... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
71095ab94c5e4ddec9a1d84902c4dd9e3bef9571 | 8d90e2eae476ecbe88d46ef2f03fe7ba92cc733b | /Programming Basics with Python/For-cycle/For_C_lab_ex6_sum_of_vowels.py | 39e46fed5101d534882c2b874c0d0b2764c03068 | [] | no_license | KaterinaMutafova/SoftUni | c3f8bae3c2bf7bd4038da010ca03edc412672468 | 7aeef6f25c3479a8d677676cb1d66df20ca0d411 | refs/heads/main | 2023-03-08T10:53:49.748153 | 2021-02-19T15:55:13 | 2021-02-19T15:55:13 | 317,597,660 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | text = input()
result = 0
for i in text:
if i == "a":
result += 1
elif i == "e":
result += 2
elif i == "i":
result += 3
elif i == "o":
result += 4
elif i == "u":
result += 5
print(result)
| [
"noreply@github.com"
] | KaterinaMutafova.noreply@github.com |
67d1221bfdb2b6a345db86fe818fdbf3895b92fb | 1c72aa6d53c886d8fb8ae41a3e9b9c6c4dd9dc6f | /Semester 1/Project submissions/Lee Eldridge/Excercise Weeks 1-9 - Lee Eldridge/Week 7/url_reader.py | e2cc32fffbe071db0b3e936c95c54fccaf8b2641 | [] | no_license | codebubb/python_course | 74761ce3189d67e3aff964c056aeab27d4e94d4a | 4a6ed4a64e6a726d886add8364c65956d5053fc2 | refs/heads/master | 2021-01-11T03:06:50.519208 | 2016-07-29T10:47:12 | 2016-10-17T10:42:29 | 71,114,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | import time
import urllib2
open_file = urllib2.urlopen('http://wordpress.org/plugins/about/readme.txt', 'r')
read = open_file.read()
file_list = read.split()
print read
print ""
print "Hello, currently doing some analysis, please wait..."
time.sleep(3)
print "There are currently:", len(file_list), "words in the above t... | [
"jpbubb82@gmail.com"
] | jpbubb82@gmail.com |
2ae47ede9827fbde591f754ac58ffc0dc2fac0d9 | 1ac99f8065a2646bdb8ea9003fd5930341fb0cf4 | /Exam2/3.py | 096cd041d3b9738fdbd0949fc47c080513e7b1e3 | [] | no_license | krishnanunni-pr/Pyrhon-Django | 894547f3d4d22dce3fff14e88815122c12c145b5 | c59471f947ceb103bb27a19e8a2a160e8ada529b | refs/heads/master | 2023-07-29T19:40:38.199104 | 2021-09-09T18:12:24 | 2021-09-09T18:12:24 | 385,128,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | # 3. Create a Book class with instance Library_name, book_name, author, pages?
class Book:
def bookdetails(self,bkname,author,pages,library_name):
self.library_name=library_name
self.bkname=bkname
self.author=author
self.pages=pages
print("Book name :",bkname)
print... | [
"krishna@gmail.com"
] | krishna@gmail.com |
3b83024a4da9cdde39c50333316b03838417d3a9 | eac55c1fbbf83f08eabdfd5337ae54ca24ed655b | /build/velodyne/velodyne_msgs/catkin_generated/pkg.develspace.context.pc.py | 85c1b12f52780f9af793f52565600c24d7496253 | [] | no_license | codeJRV/velodyne_ws | c4271d81de66ee354f9c948aa961f56266e74e55 | ae684357b2d3f0ddc8a327cd9f625f727d02e145 | refs/heads/master | 2021-01-25T14:03:39.322967 | 2018-03-15T23:16:36 | 2018-03-15T23:16:36 | 123,643,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/jrv/Research/Velodyne/velodyne_ws/devel/include".split(';') if "/home/jrv/Research/Velodyne/velodyne_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs".replace(';... | [
"email.jrv@gmail.com"
] | email.jrv@gmail.com |
1598000563214e90bffa55f937fbfb0a4165c9b2 | 4d058cd2a41712cf17bbd5ef5f5db58bb0134220 | /jug/jug_version.py | 957827d8d99ed85b0c58fff4a7e5af6e790a46fb | [
"MIT"
] | permissive | hamiltont/jug | 1d0c14a62328e3a053919e2dfa06aff9ec70105e | e89668387cf3cca9df700fccb6913a1fd3b5f424 | refs/heads/master | 2021-01-18T12:11:09.882447 | 2013-03-25T20:42:17 | 2013-03-25T20:42:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | __version__ = '0.9.3+git'
| [
"luis@luispedro.org"
] | luis@luispedro.org |
c7f1fa58dbac7f6e81831d6d8a3c59cdc2507686 | 3899dd3debab668ef0c4b91c12127e714bdf3d6d | /venv/Lib/site-packages/tensorflow/python/grappler/cluster.py | 9f3a130798ca0f57cbdcd49506e0c1d6fe7033db | [] | no_license | SphericalPotatoInVacuum/CNNDDDD | b2f79521581a15d522d8bb52f81b731a3c6a4db4 | 03c5c0e7cb922f53f31025b7dd78287a19392824 | refs/heads/master | 2020-04-21T16:10:25.909319 | 2019-02-08T06:04:42 | 2019-02-08T06:04:42 | 169,691,960 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,139 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"a@bogdanov.co"
] | a@bogdanov.co |
cc2a32a439a92c92aa61ba4ea571b75e901de399 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/scaleform/daapi/view/meta/fortdatepickerpopovermeta.py | 206f951b446d8c248b6507b491083faefdebba91 | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 546 | py | # 2016.02.14 12:40:19 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/FortDatePickerPopoverMeta.py
from gui.Scaleform.daapi.view.lobby.popover.SmartPopOverView import SmartPopOverView
class FortDatePickerPopoverMeta(SmartPopOverView):
pass
# okay decompyling c:\Users\P... | [
"info@webium.sk"
] | info@webium.sk |
fee57e6f0f3362697e4497bd4b3b54038a39cbcd | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnmagil.py | 48c358844545a847196514438a8bcbd919827695 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 43 | py | ii = [('DaltJMA.py', 1), ('MartHRW.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
99e6ffcd8ba252b61f9439f0d8d7c6ec9c63d164 | 8d6f9a3d65a189d99eff10e30cfabb0b761b635f | /mystic/abstract_solver.py | 4af6b771bf30b07d254c1ee0b0e4f5432ba6772d | [
"BSD-3-Clause"
] | permissive | arita37/mystic | db2ebbed139b163e3e5df49c2325b3de35dd8cd0 | 3dcdd4627eb759672091859e8334be075bfd25a5 | refs/heads/master | 2021-01-22T20:19:22.569893 | 2016-08-20T15:52:46 | 2016-08-20T15:52:46 | 66,545,670 | 1 | 0 | null | 2016-08-25T09:42:31 | 2016-08-25T09:42:31 | null | UTF-8 | Python | false | false | 38,792 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# License: 3-clause BSD. The full license text is available at:
# - http://trac.mystic.cacr.caltech.edu/project/mystic/browser/mystic/LICENSE
#
## Abstract Solver Class
# ... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
7b00ee3b92761685a2e32d3a4d48ca7ab9336fda | 25c0e72ea6889749cb269dfd26a77edfc4207d40 | /fuzzers/009-xor_b_mux/fuzzer.py | 10eff1adfe642697d899998d81e1ec56c7552e86 | [
"0BSD"
] | permissive | whitequark/prjbureau | 49c2d060ca7b99042fdc751e70f10ad74309975b | cbe15e117449c55e7244756f00c3e34e0d92017e | refs/heads/main | 2023-08-16T10:34:53.915942 | 2021-11-27T21:34:41 | 2021-11-27T21:34:41 | 227,539,435 | 44 | 8 | NOASSERTION | 2023-08-07T16:12:37 | 2019-12-12T06:48:44 | Python | UTF-8 | Python | false | false | 1,577 | py | from util import database, toolchain, bitdiff, progress
with database.transact() as db:
for device_name, device in db.items():
progress(device_name)
package, pinout = next(iter(device['pins'].items()))
for macrocell_idx, (macrocell_name, macrocell) in enumerate(device['macrocells'].items(... | [
"whitequark@whitequark.org"
] | whitequark@whitequark.org |
bff60c91bc6b4841943f12e48362e1aa2fbd2a68 | 6f78a4c4896563a52d86eacf49dbb6a358a3646e | /hackerrank/python/hackerrank_GreedyFlorist.py | 16ef36a533bd86a3d30da8b3791ca3b24de10ad2 | [] | no_license | wj1224/algorithm_solve | 259c39d2a85ecb2630e089eb0c86cdde9ff3baeb | 8b0f15b71a4dd8eb40d3c9baee003a0678c3f2aa | refs/heads/master | 2023-08-25T06:14:21.615802 | 2021-10-26T05:00:59 | 2021-10-26T05:00:59 | 219,981,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the getMinimumCost function below.
def getMinimumCost(k, c):
c.sort()
p = dict()
for i in range(k):
p[i] = 0
answer = 0
idx = 0
for i in range(len(c) -1, -1, -1):
if p[idx] == 0:
p[idx] = 1
answer += c[i]
else:
ans... | [
"cwj1387@gmail.com"
] | cwj1387@gmail.com |
6a745e9f87961ebcdf3c39a8a5a82bb8766d12fd | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v11/resources/types/custom_interest.py | 99614684ab894f1604193e87090c4c4a6cf627c7 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 4,315 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# 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... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
3e5d83152601273afe64ccec38a1da8f975d3f69 | d2cacbd1bde10e464faabc22ad5936f1aaf4e2ef | /data/Exp_ICIP/SingleTraining/Standard/chess/main.py | fd7f9227b6f2876e357707f2b72f4758b385fefe | [] | no_license | npiasco/dl_management | a26950a3b53c720d881a8b7ac3fa81161a048256 | 11c29a3637efa5fd223b36664d62c704e8166bab | refs/heads/master | 2021-03-16T05:44:39.806437 | 2019-09-06T13:52:52 | 2019-09-06T13:52:52 | 124,055,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,585 | py | #!/usr/bin/env python
import os, sys
import setlog
conf_file = os.environ['DEV'] + 'dl_management/.log/logging.yaml'
save_file = os.path.abspath(sys.argv[0])[:-len(sys.argv[0])] + 'log/'
setlog.reconfigure(conf_file, save_file)
import system.PoseRegression as System
if __name__ == '__main__':
scene = 'chess'
... | [
"nathan.piasco@gmail.com"
] | nathan.piasco@gmail.com |
5497f6ee6391b9ac43175da5e71e6258fe100482 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2343/60747/290105.py | acd1d87a6a3d7f48f8d17e9d3a7187668c2002bd | [] | 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 | 168 | py | n=input().split(" ")
s=""
for i in range(int(n[0])+int(n[1])):
s=s+input()
if s=="n<><>un<>nnuonuu<>un<><>u<><>o<><>n<><>u<><>n<><>u":print("RLLRLRR")
else:print(s) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
422b6c2b3875c8bc1e6c5e9adb460cba8e8e15e5 | f303936feb0f221ea1ccb3ef1eae57654aa0325a | /server/szurubooru/func/users.py | 3c39fb5a119d15c7080f29da463b20de76a58417 | [] | no_license | hnamquoc/szurubooru | 7b695e232c7f601dc95f77fbb7570aef3e16ddd9 | 16d4d3ca68964eb7759b629ec84eb6b14d9d7cdb | refs/heads/master | 2020-12-31T01:23:26.322422 | 2016-05-21T20:29:31 | 2016-05-21T20:35:18 | 59,414,380 | 1 | 0 | null | 2016-05-22T13:41:37 | 2016-05-22T13:41:36 | null | UTF-8 | Python | false | false | 6,152 | py | import datetime
import re
from sqlalchemy import func
from szurubooru import config, db, errors
from szurubooru.func import auth, util, files, images
class UserNotFoundError(errors.NotFoundError): pass
class UserAlreadyExistsError(errors.ValidationError): pass
class InvalidUserNameError(errors.ValidationError): pass
c... | [
"rr-@sakuya.pl"
] | rr-@sakuya.pl |
23b822722a4b4ca822ac1f006b41a993c869e3de | 7708007df6f36203dbea6ffcc93181cf100f4cb5 | /Pulpit/python90/repozytorium/Lista_liczb.py | bee7855eb16f733381a272e3c28809f38d0e908a | [] | no_license | Marcin9009/marcin.pelszyk | 87e8b91ef1150f867677121f6d47e9aecc0be8a8 | ff20d11051db666a00b07e404037d80bebcf5fc1 | refs/heads/master | 2022-12-31T03:41:59.737766 | 2020-10-17T08:48:56 | 2020-10-17T08:48:56 | 290,585,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | numbers=[1, 2, 3, 4, 5, 6, 7, 8]
print (numbers[-2]) | [
"marcin.pelszyk90@gmail.com"
] | marcin.pelszyk90@gmail.com |
f4634675d8b38cab07ad7568cd4c1eb03d5df4c7 | bddc40a97f92fafb8cbbbfdbdfe6774996578bb0 | /exercicioLista01/ex09.py | 3d885e7b04164115b80e89e056de00459bd1665a | [] | no_license | andrehmiguel/treinamento | 8f83041bd51387dd3e5cafed09c4bb0a08d0e375 | ed18e6a8cfba0baaa68757c12893c62a0938a67e | refs/heads/main | 2023-01-31T13:15:58.113392 | 2020-12-16T02:47:44 | 2020-12-16T02:47:44 | 317,631,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | #09 Faça um Programa que peça a temperatura em graus Fahrenheit, transforme e mostre a temperatura em graus Celsius.
#C = 5 * ((F-32) / 9).
F = int(input("Informe a temperatura em F: "))
C = 5 * ((F-32) / 9)
print(F, "graus Fahrenheit, equivalem a", C, "graus Celsius.") | [
"andrehmiguel@outlook.com"
] | andrehmiguel@outlook.com |
7bcb3f7715b24df699c20989fad420f6b3ed7bb7 | 930a868ae9bbf85df151b3f54d04df3a56bcb840 | /benchmark/slurm_utilities/slurm_rerun_failed.py | e949b3379c738b6570226a175e386621067b1975 | [
"MIT"
] | permissive | yuewuo/QEC-Playground | 1148f3c5f4035c069986d8b4103acf7f1e34f9d4 | 462208458cdf9dc8a33d4553a560f8a16c00e559 | refs/heads/main | 2023-08-10T13:05:36.617858 | 2023-07-22T23:48:49 | 2023-07-22T23:48:49 | 312,809,760 | 16 | 1 | MIT | 2023-07-22T23:48:51 | 2020-11-14T12:10:38 | Python | UTF-8 | Python | false | false | 1,290 | py | import os, sys, subprocess, time
import slurm_distribute
def rerun_failed(sbatch_file_path, failed_cases, slurm_commands_vec=None, use_interactive_partition=False):
# generate rerun sbatch file
sbatch_file_folder = os.path.dirname(sbatch_file_path)
rerun_file_path = os.path.join(sbatch_file_folder, "rerun... | [
"yue.wu@yale.edu"
] | yue.wu@yale.edu |
fde8f6ad08e5e3d32823235fefd03f42d934eaa8 | 16aba0619caf0ad5ffd4817ac0575943e8b4659e | /venv/lib/python3.6/shutil.py | 05c167c5d99fc2ca0c6aa19945e50d8fdc9c7aa1 | [] | no_license | Rin94/seleniumtests | 23cd0b00609fa4b00216dc4fa27a96637ee0aedd | 3ae6a87b2410ed5a6f66f1b69915071c3517b5f8 | refs/heads/main | 2023-05-23T11:02:33.443620 | 2021-06-13T04:43:53 | 2021-06-13T04:43:53 | 376,441,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | /Users/jared/anaconda3/lib/python3.6/shutil.py | [
"jerad.salinas94@gmail.com"
] | jerad.salinas94@gmail.com |
e47c89d5d5eb49f7afe555e7c8cf6ec48d648a26 | 30e018214a16567201d1d6137dddf597e5f1d0e8 | /mbtaapi/apis/prediction_api.py | 72d2056ba61f1163fd5744609ab4ca1004893d79 | [] | no_license | jbarciauskas/mbtaapi3 | 6a402fb789b70bf8f08c3e27559e141b535c8491 | 2d63c57113d4f2266e8f59a2f6b690fe5ffe102e | refs/heads/master | 2021-08-30T02:36:11.465499 | 2017-12-15T18:52:57 | 2017-12-15T18:52:57 | 114,401,885 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,372 | py | # coding: utf-8
"""
MBTA
MBTA service API. https://www.mbta.com
OpenAPI spec version: 3.0
Contact: developer@mbta.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
import re
# python 2 and python 3 compatibilit... | [
"barciajo@gmail.com"
] | barciajo@gmail.com |
8cb4a82a7784f2fd5a859c4e959b8d7f2d80c6f7 | c1d53d9dd9c3e8a7ca8692d85a34063fd32680c5 | /colour_datasets/loaders/tests/test_dyer2017.py | 5773cf8a71e856b9de1739fc4ad007ecaf40030e | [
"BSD-3-Clause"
] | permissive | colour-science/colour-datasets | d1aeb8269e85c0d971a4eb813cf38f124cbb23ab | 3a41452f0a7083abc01ea8af6e9ee27fc4e1ddaa | refs/heads/develop | 2023-08-31T00:16:29.756191 | 2023-08-30T10:16:47 | 2023-08-30T10:16:47 | 190,873,818 | 41 | 14 | BSD-3-Clause | 2023-09-05T06:17:23 | 2019-06-08T10:17:27 | Python | UTF-8 | Python | false | false | 10,443 | py | # !/usr/bin/env python
"""Define the unit tests for the :mod:`colour_datasets.loaders.dyer2017` module."""
import numpy as np
import unittest
from colour_datasets.loaders import DatasetLoader_Dyer2017, build_Dyer2017
__author__ = "Colour Developers"
__copyright__ = "Copyright 2019 Colour Developers"
__license__ = "B... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
8e633d8ebb598671323b8487afebce2f6f963568 | 26771494974942f4ab18d2cd8247506c344e1d14 | /1-50/003-v2-longestSubstringWithoutRepeatingCharacters.py | 1b623b33716c725631f7c4fd8f5ea735357865ac | [] | no_license | wangyunpengbio/LeetCode | 9f4c6076e067c5e847d662679483f737d40e8ca5 | cec1fd11fe43177abb2d4236782c0f116e6e8bce | refs/heads/master | 2020-04-29T22:28:25.899420 | 2020-04-03T07:37:26 | 2020-04-03T07:37:26 | 176,448,957 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | class Solution:
def lengthOfLongestSubstring(self, s: str) -> int:
# 参考答案的滑动窗口方法,用双指针来进行滑动
n = len(s)
myset = set()
ans = 0
i = 0
j = 0
while i < n and j < n:
if s[j] not in myset:
myset.add(s[j])
j = j + 1
... | [
"wangyunpeng_bio@qq.com"
] | wangyunpeng_bio@qq.com |
5f23a4262ec4073b1f163b28f7c67f2d5e26d020 | 5a545262f7c053c1cfd1f7984664e3220c745161 | /casper4/griefing_factor_calculator.py | b51af758356363f00bf152f26b683100969d0483 | [
"MIT"
] | permissive | ethereum/research | 2c523e5796cfdb6055e0107dc1768fbf164ecad0 | bb873f8ad0e673803ec6a55be26678e1f99b9ece | refs/heads/master | 2023-09-04T19:11:51.507361 | 2023-08-30T01:52:05 | 2023-08-30T01:52:05 | 42,808,596 | 1,774 | 603 | MIT | 2023-04-21T07:20:21 | 2015-09-20T10:13:12 | Python | UTF-8 | Python | false | false | 2,335 | py | # Computes griefing factors of various parameter sets for Casper the
# Friendly Finality Gadget
# Case 1: <1/3 non-commit (optimal if epsilon participate)
def gf1(x1, x2, x3, x4, x5):
return x2 / x1
# Case 2: censor <1/3 committers (optimal if 1/3 get censored)
def gf2(x1, x2, x3, x4, x5):
return 1.5 * (x1 + ... | [
"v@buterin.com"
] | v@buterin.com |
826e890c5538a5e47ee9b6d19b96e2365eb6aab2 | 05caf48bd067c050666026b75686f23d02327378 | /_560.py | de64e26467444d25f8d5aaf3e39947d672b14bd7 | [
"MIT"
] | permissive | elfgzp/Leetcode | 3b6fa307c699fd5a1ba5ea88988c324c33a83eb7 | 964c6574d310a9a6c486bf638487fd2f72b83b3f | refs/heads/master | 2023-08-21T23:11:38.265884 | 2020-10-17T11:55:45 | 2020-10-17T11:55:45 | 168,635,331 | 3 | 0 | MIT | 2023-07-21T03:50:43 | 2019-02-01T03:14:49 | Python | UTF-8 | Python | false | false | 488 | py | class Solution:
def subarraySum(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: int
"""
res = 0
pre_sum = 0
dic = {0: 1}
for n in nums:
pre_sum += n
if pre_sum - k in dic:
res += dic[pre_... | [
"741424975@qq.com"
] | 741424975@qq.com |
0f4025b60d2f552b2859125fbcd22ff802197eb0 | a882ccf759025735f926695d6a5a39937854646a | /c_step16/conf.py | 02c981773f5192a24679711db370473f365f18be | [] | no_license | muzudho/practice-open-cv2 | 5c1534564bcf43c2d8f7a6fb4ee1583bd77337f9 | 55af5cfb37587b08123b404cf8768d83148cb046 | refs/heads/main | 2023-07-08T02:23:22.984816 | 2021-08-10T10:45:01 | 2021-08-10T10:45:01 | 349,864,518 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """設定
* 横幅は 450px 程度以下
* crieitブログに貼りつけるとき、横幅が広すぎると圧縮されて gifアニメ ではなくなってしまう
* ファイルサイズは 2MB 以下
* crieitブログの画像貼付け制限
"""
# グリッド間隔
GRID_UNIT = 16
# 色相環一周分のコマ数
PHASE_COUNTS = 24
# フォント倍率
FONT_SCALE = 0.5
| [
"muzudho1@gmail.com"
] | muzudho1@gmail.com |
803e0e4dcc3f1532c1b2fb227753c3c4ba7c6bde | a2dc75a80398dee58c49fa00759ac99cfefeea36 | /bluebottle/cms/migrations/0033_auto_20171017_1353.py | b08c6860a74195c4ea8fe4b46ee081f05535c972 | [
"BSD-2-Clause"
] | permissive | onepercentclub/bluebottle | e38b0df2218772adf9febb8c6e25a2937889acc0 | 2b5f3562584137c8c9f5392265db1ab8ee8acf75 | refs/heads/master | 2023-08-29T14:01:50.565314 | 2023-08-24T11:18:58 | 2023-08-24T11:18:58 | 13,149,527 | 15 | 9 | BSD-3-Clause | 2023-09-13T10:46:20 | 2013-09-27T12:09:13 | Python | UTF-8 | Python | false | false | 690 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-10-17 11:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.manager
class Migration(migrations.Migration):
dependencies = [
('cms', '0032_migrate_projects_3'),
]
operations = [
... | [
"ernst@onepercentclub.com"
] | ernst@onepercentclub.com |
5d375d43bc7c4bc5917a3045e557f480db9b73f0 | 7298d1692c6948f0880e550d6100c63a64ce3ea1 | /catalog-configs/Vocab/ihm_modeling_post_process_feature_term.py | 850ac847e5be209c3b038500354e741d8f1015e4 | [] | no_license | informatics-isi-edu/protein-database | b7684b3d08dbf22c1e7c4a4b8460248c6f0d2c6d | ce4be1bf13e6b1c22f3fccbb513824782609991f | refs/heads/master | 2023-08-16T10:24:10.206574 | 2023-07-25T23:10:42 | 2023-07-25T23:10:42 | 174,095,941 | 2 | 0 | null | 2023-06-16T19:44:43 | 2019-03-06T07:39:14 | Python | UTF-8 | Python | false | false | 6,143 | py | import argparse
from attrdict import AttrDict
from deriva.core import ErmrestCatalog, get_credential, DerivaPathError
from deriva.utils.catalog.components.deriva_model import DerivaCatalog
import deriva.core.ermrest_model as em
from deriva.core.ermrest_config import tag as chaise_tags
from deriva.utils.catalog.manage.u... | [
"carl@isi.edu"
] | carl@isi.edu |
1469b0ca35fbff5011c461f263785d99282f79f6 | 7a2125b1b4712142e7e1cce21f5ffcb14a6033bc | /shh/__main__.py | 664ce9e256b504b70eef92b0c4cac7556be758f5 | [] | no_license | keenhenry/shh | 060127f22bfe37ce7c2f391070184e646e9c82b7 | f4d95dd5341df74195197d8527a4a4e5b0f548b0 | refs/heads/master | 2021-01-17T19:57:01.449859 | 2016-08-07T16:14:25 | 2016-08-07T16:14:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | import shh
import time
from argparse import ArgumentParser
parser = ArgumentParser()
parser.add_argument('-p', '--port', default=None, type=int)
parser.add_argument('-k', '--key', default=None, type=str)
parser.add_argument('-s', '--server', action='store_true')
args = parser.parse_args()
if args.port is None:
po... | [
"davy.wybiral@gmail.com"
] | davy.wybiral@gmail.com |
3a14bf609ba29095c5139eff1ced4c4fe38640f0 | 9398d8433fdb29ee630a6ee43a07bc36a2adbd88 | /neutronclient/neutron/v2_0/fw/firewallrule.py | e77e96facdb91dac0a91fec5398a6d4c81fa0b36 | [] | no_license | bopopescu/OpenStack_Liberty_Control | ca5a21d0c32c55dc8c517f5c7c9938ce575a4888 | 0f6ec1b4d38c47776fdf8935266bcaef2464af4c | refs/heads/master | 2022-12-03T10:41:53.210667 | 2016-03-29T06:25:58 | 2016-03-29T06:25:58 | 282,089,815 | 0 | 0 | null | 2020-07-24T01:04:15 | 2020-07-24T01:04:14 | null | UTF-8 | Python | false | false | 5,437 | py | # Copyright 2013 Big Switch Networks
# 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... | [
"tony.pig@gmail.com"
] | tony.pig@gmail.com |
0a7fe6879f0410d3164ee9629b9d1a10ae90c8b7 | 9c87f4c9956ccf1ca2e9f75916fad54d7cafa336 | /harbor/db/hmysql.py | 38b9652bc238b6ac067aa84b7e3863d886a68554 | [] | no_license | zbcbcbc/harbor | 21cbaf1dd5c12d2ca5f56ddaa62355d3a3226f52 | 79d65b2b24dffafd425e423dc54c4810497a7613 | refs/heads/master | 2020-05-24T15:24:13.274030 | 2016-09-04T18:17:26 | 2016-09-04T18:17:26 | 67,360,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | #coding: utf-8
__filename__ = "h_db.py"
__description__ = "harbor project database wrapper module"
__author__ = "Bicheng Zhang"
__copyright__ = "Copyright 2012-2013, The Harbor Project"
__credits__ = "Bicheng Zhang"
__email__ = "viczhang1990@gmail.com"
__version__ = "0.6"
__status__ = "Development"
from twisted.ent... | [
"viczhang1990@gmail.com"
] | viczhang1990@gmail.com |
224c6c23b0e05f14161b6e1183aab61d954fa5b5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03815/s360092462.py | f1693763337efdfcac142b7361358d714a452a96 | [] | 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 | 167 | py |
X = int(input())
cnt = X // 11
X -= 11 * cnt
cnt *= 2
sum = 0
y = 5 if cnt % 2 == 1 else 6
while sum < X:
sum += y
y = 6 if y == 5 else 5
cnt += 1
print(cnt) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
462a6089b1c31d50bcbbe67b1cf880684fbe42f5 | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /Anypa/venv/bin/pip3.7 | 18595d517de33eee50345b4e1e2eab66e7e020f6 | [] | no_license | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 255 | 7 | #!/home/prosenjit/PycharmProjects/Anypa/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com |
437f70061a056d6b49044f40bfba41ab5068f726 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02946/s592464084.py | 4ce703f0b4b9b0ea601b9b3a100e623de8ea285e | [] | 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 | 83 | py | k, x = map(int, input().split())
print(' '.join(list(map(str, range(x-k+1, x+k))))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c39006b1275d87024fe9d99fbb246ea4b6a57844 | e6476f18faef8210189c5bc6097a0a108265173c | /quadpy/nsimplex/walkington.py | 457a6c5bce2e410fcb09d242cb2da974b6f23349 | [
"MIT"
] | permissive | acimpoeru/quadpy | 4d96ed6fc20fd53148508f8a4a9b657a5d30269d | 0261efd68e4094af31ee7a82c8099f0d88846d5a | refs/heads/master | 2021-04-12T12:15:22.899532 | 2018-02-14T15:59:27 | 2018-02-14T15:59:27 | 126,213,721 | 0 | 1 | MIT | 2018-03-21T17:07:29 | 2018-03-21T17:07:27 | null | UTF-8 | Python | false | false | 4,440 | py | # -*- coding: utf-8 -*-
#
from __future__ import division
from math import factorial
import numpy
import sympy
from ..helpers import untangle
class Walkington(object):
'''
Noel J. Walkington,
Quadrature on simplices of arbitrary dimension,
Technical Report,
CMU, 2000,
<http://www.math.cmu.e... | [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
7b2fd7df1cb13035e43f24f46fef589ad5e91ab3 | 9d1238fb0e4a395d49a7b8ff745f21476c9d9c00 | /framework/Tests/PAS/PAS/GeneralSecrets/SecretsV2Folders/MemberPermissions/API/test_member_add_single_folder_then_append_multilevel_folder_to_it.py | 46fe3f13b3d24f03c4ad6e4479b9cd1613e66fe3 | [] | no_license | jaspalsingh92/TestAutomation-1 | a48ee1d3b73386f1bf8f53328a5b55444238e054 | e631c67255b10f150e0012991fb1474ede904417 | refs/heads/master | 2023-04-18T14:52:08.836221 | 2021-04-07T12:01:07 | 2021-04-07T12:01:07 | 357,175,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,848 | py | import pytest
import logging
from Shared.API.secret import create_folder, get_folder, get_secrets_and_folders_in_folders,\
give_user_permissions_to_folder
from Shared.API.sets import SetsManager
logger = logging.getLogger('test')
@pytest.mark.api
@pytest.mark.pas
@pytest.mark.pasapi
@pytest.mark.bhavna
def test_... | [
"singh.jaspal92@gmail.com"
] | singh.jaspal92@gmail.com |
bbbb3283bf2aa13ee7af8d20d65b760414fc42f7 | 08e2ed7fb3a3080c8cdc46cf7e4cbb2a6e60f90a | /src/game_object/components/image_component.py | 20c402c520e23640a7a37d13e1d5c3a1f98ea467 | [] | no_license | thydungeonsean/_rainbowmancer | 1630b60983719dde77cd1dea267dd15dde855c38 | cebaf66f5c69f60f8b6c38492f19b8f1e32f73fe | refs/heads/master | 2021-04-28T07:35:06.183408 | 2018-03-19T19:55:47 | 2018-03-19T19:55:47 | 122,226,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | from game_object_component import GameObjectComponent
from src.data_structures.vector import Vector
from src.image.tile_image import TileImage
class ImageComponent(GameObjectComponent):
A = 0
B = 1
def __init__(self, owner, image_id, animated=True):
GameObjectComponent.__init__(self, owner)
... | [
"marzecsean@gmail.com"
] | marzecsean@gmail.com |
6295e3e515ae5835cbede861390b080d25f8b017 | a3a898a42049da56bbda00adf4cd781f4ffcce5f | /ut.py | 661e7e7207fdf62cf6f932036333775b0dad9df4 | [] | no_license | zhanglintc/algorithm | 682b282b952a4db393c5f2aecaf9d3e7c792d635 | 5bf955aa62ca7728a26fc0613940839121876f29 | refs/heads/main | 2023-03-21T20:00:03.989144 | 2021-03-24T10:03:35 | 2021-03-24T10:03:35 | 349,449,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,969 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# -*- mode: python -*-
# vi: set ft=python :
import unittest
class BaseTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):
print('######################################################################')
print("{0}:".format(cls.__name__))
c... | [
"zhanglintc623@gmail.com"
] | zhanglintc623@gmail.com |
1d4be0626cf2e87afbb3890b9c2b4fdd4d4312e2 | a2b6bc9bdd2bdbe5871edb613065dd2397175cb3 | /简单/二叉搜索树中的众数.py | e059cf51f0fc83293f2a71e5defab5ed13b51d62 | [] | no_license | Asunqingwen/LeetCode | ed8d2043a31f86e9e256123439388d7d223269be | b7c59c826bcd17cb1333571eb9f13f5c2b89b4ee | refs/heads/master | 2022-09-26T01:46:59.790316 | 2022-09-01T08:20:37 | 2022-09-01T08:20:37 | 95,668,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | '''
给定一个有相同值的二叉搜索树(BST),找出 BST 中的所有众数(出现频率最高的元素)。
假定 BST 有如下定义:
结点左子树中所含结点的值小于等于当前结点的值
结点右子树中所含结点的值大于等于当前结点的值
左子树和右子树都是二叉搜索树
例如:
给定 BST [1,null,2,2],
1
\
2
/
2
返回[2].
提示:如果众数超过1个,不需考虑输出顺序
进阶:你可以不使用额外的空间吗?(假设由递归产生的隐式调用栈的开销不被计算在内)
'''
from typing import List
from Tree import TreeNode, stringToTre... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
180b6a0cc640d56c92a9f96dbc23bfee1f9c0179 | 05e67dc917da938b5b6857d7f21c3b87f939de91 | /Lib/console.py | 1dc17b587bc978eeaa7b8ee00704afc8158132af | [
"MIT"
] | permissive | Aareon/Pyto | a117c7d5634698d1f0d44c9771c9e85870effa70 | 46af1ebf4f54fd90eacc3bb548f8717b4bd55bbe | refs/heads/main | 2023-05-19T14:49:18.217913 | 2021-06-08T03:54:17 | 2021-06-08T03:54:17 | 349,201,563 | 1 | 0 | MIT | 2021-06-12T04:01:16 | 2021-03-18T19:58:31 | null | UTF-8 | Python | false | false | 23,631 | py | # -*- coding: utf-8 -*-
"""
Some Pyto core functions
"""
# (!) Warning (!)
# The following code is horrible
# Protect your eyes
# Good luck
import os
from pyto import *
from pyto import __isMainApp__, __Class__
import os
import sys
import traceback
import threading
import time
from extensionsimporter import __Upgra... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
58a597d209c8dd7f91daf0f218f82acf4199fd8c | 06984002a22f41b6eb63f9bdf3eb3529792d766f | /trunk/swift/test/unit/common/test_db.py | 48b02d948060f886a636e1dc8c11abff122b4be1 | [
"Apache-2.0"
] | permissive | lixmgl/Intern_OpenStack_Swift | d6195c25cd59dfe603203f727ed409a61891a3bf | 40c241319c6b9a7aabacc9d927486864d13b8055 | refs/heads/master | 2020-04-14T20:40:15.496239 | 2015-08-06T22:24:38 | 2015-08-06T22:24:38 | 40,329,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91,989 | py | # Copyright (c) 2010-2011 OpenStack, LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | [
"lixmgl@gmail.com"
] | lixmgl@gmail.com |
d703574693e9918ade0ab71c8afb819c584424ab | cb8431a306af2fabf37b74f68b5bd3fdc4cae134 | /etlt/dimension/RegularDimension.py | 9eca77137611940200b8f332dbd90e76a4cd545a | [
"MIT"
] | permissive | e7dal/py-etlt | fb5fcc25cd5ab33c6d02f37ab8421aefe877753c | 1c5b8ea60293c14f54d7845a9fe5c595021f66f2 | refs/heads/master | 2020-05-16T19:12:27.838844 | 2019-04-10T10:02:22 | 2019-04-10T10:02:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,834 | py | """
ETLT
Copyright 2016 Set Based IT Consultancy
Licence MIT
"""
import abc
class RegularDimension(metaclass=abc.ABCMeta):
"""
Abstract parent class for translating natural key to a technical key of a regular dimension.
"""
# -------------------------------------------------------------------------... | [
"p.r.water@setbased.nl"
] | p.r.water@setbased.nl |
d8f484ff8803152cae0d30c0990aa7841c72c689 | cad2908abb7b2a649ec2382309f56e6c95ee834a | /course3/principles/inheritance.py | dcfa43ec8c6726bfa54b00ffde8e352d592ec16b | [] | no_license | andyzt/tceh-python | 619b6eec0897e3b3671d416d6eb7346f69730747 | de74cb7fffea3528cd2a3035b0a9d53c9dca0c6b | refs/heads/master | 2021-01-16T00:17:02.198730 | 2016-02-26T16:00:16 | 2016-02-26T16:00:16 | 52,616,472 | 4 | 3 | null | 2016-02-26T16:15:06 | 2016-02-26T16:15:06 | null | UTF-8 | Python | false | false | 1,578 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
__author__ = 'sobolevn'
class Parent(object):
def __init__(self):
print('Parent inited')
self.value = 'Parent'
def do(self):
print('Parent do(): %s' % self.value)
@staticmethod
def static_do():
print('Par... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
83cafd706a1d76e745e3773b8311bb5fe4844a10 | 594bd1d3afa4c74c577e6c5d7f8e71d4835c7734 | /MainApp/migrations/0093_auto_20161118_1232.py | a9c950e213543791b6e39e28c16dcc7152a95d9b | [] | no_license | CoriAle/app | 5a930b4460a5a79e4d2d97b0de205c050c196a53 | 280313f86db0ba9a754ff52dc8a37bf6420554d1 | refs/heads/master | 2023-01-23T22:45:15.127029 | 2018-07-03T01:59:19 | 2018-07-03T01:59:19 | 136,048,276 | 0 | 0 | null | 2023-01-12T05:12:39 | 2018-06-04T15:49:01 | JavaScript | UTF-8 | Python | false | false | 481 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-11-18 18:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('MainApp', '0092_remove_pagopersonal_vales'),
]
operations = [
migrations.Alt... | [
"1995coral@hotmail.es"
] | 1995coral@hotmail.es |
444343a37dcff36a26a64f7da7ac99a29f078c08 | 0b4d1fb57546adbc85659a144742c4ecd9dfe219 | /src/genie/libs/parser/ios/tests/ShowInterfacesSwitchport/cli/equal/golden_output_2_expected.py | 5515be0b5806e40b6a2d632d373a55a7ec3474a5 | [
"Apache-2.0"
] | permissive | oboehmer/genieparser | dcc4fd0c6611ab4d799928ce6d2b55a2ad7a64d2 | e88d02c08a3968d38ba90121b46af614715c5ecc | refs/heads/master | 2021-07-11T17:04:11.198119 | 2020-12-02T20:34:24 | 2020-12-02T20:34:24 | 222,627,198 | 1 | 0 | Apache-2.0 | 2019-11-19T06:43:15 | 2019-11-19T06:43:14 | null | UTF-8 | Python | false | false | 1,826 | py | expected_output = {
"Port-channel12": {
"operational_mode": "trunk",
"switchport_mode": "trunk",
"access_vlan_name": "default",
"private_vlan": {},
"switchport_enable": True,
"native_vlan_tagging": True,
"negotiation_of_trunk": False,
"encapsulation": ... | [
"ken@celenza.org"
] | ken@celenza.org |
04eed828b4817621a1725d5e816cab6a74e057de | bdb2506fb9562005c2f1b4c88330fa108f6219db | /appliedunis/urls.py | c7c7f205168a25ffeb28c2ff5a8af1b3568084a0 | [] | no_license | naeem23/University-Admission-Assistant---UAA | abc68766585d8a4e69de142cd077ad3a1c372162 | 744f14b5bbdd1ff96c6a01967946278813a5b6db | refs/heads/master | 2023-05-13T00:15:11.138977 | 2019-08-04T13:24:58 | 2019-08-04T13:24:58 | 200,491,140 | 1 | 0 | null | 2023-04-21T20:35:21 | 2019-08-04T12:39:09 | Python | UTF-8 | Python | false | false | 372 | py | from .import views
from django.contrib.auth.decorators import login_required
from django.urls import path, re_path
app_name = 'appliedunis'
urlpatterns = [
path('api/cancel', login_required(views.cancelApi), name='delete_api'),
path('api/apply/', login_required(views.applyApi), name='api_uni'),
path('api/read/',... | [
"sddqnaeem@gmail.com"
] | sddqnaeem@gmail.com |
c2c4dda9f0a19e4d5ad541b09f146e69e4f014f5 | 4d939137a35d9bcf118ebfd5fe5db6157df93b99 | /index_update_mq/goods_data_updateOld.py | 74a4ba57cf6ce79b99d8311cae5b02fae7571eb0 | [] | no_license | xiejunbiao/search_goods | 4f91a1e5891d4553914a4bdc9e65f667c802dcfb | 7aca0da499800777858d5e862bee95e538f29432 | refs/heads/master | 2022-12-12T00:57:18.631340 | 2020-08-26T13:38:25 | 2020-08-26T13:38:25 | 290,495,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,387 | py | import os, datetime
from whoosh.index import create_in, open_dir
from whoosh.writing import AsyncWriter
from searchhotmain.index_create import cshi
from whoosh.fields import Schema, TEXT, ID, NUMERIC, STORED
from searchmatch.index_update_cre import iu
# 搜索和热搜共用一个索引index同步
# pathDir = os.path.dirname(__file__)
# pathDir... | [
"996790454@qq.com"
] | 996790454@qq.com |
99178d3942f39b0b5f1f5d1954c4b20943bef419 | ff6f60d02ed8d024f7b2db5c9eb4b1196ebf166b | /my_flask/app/models/book.py | 1d81876b0b33e29edad6d19583515c95e0fcb3ff | [] | no_license | cekong/learnit | 43b707e347ff552754b6592e01dd106c98cd0cc5 | b4111d6fee95960f7b7ca5421b7159cb6122ad2a | refs/heads/master | 2020-03-25T13:53:37.848843 | 2019-08-29T06:46:48 | 2019-08-29T06:46:48 | 143,848,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | ''''''
'''
模型层
https://coding.imooc.com/lesson/194.html#mid=12779 4-8 定义第一个模型类
sqlalchemy
Flask_SQLAlchemy
SQLAlchemy 是Python 社区最知名的 ORM 工具之一,为高效和高性能的数据库访问设计,
实现了完整的企业级持久模型。
ORM(对象关系映射)将数据库中的表与面向对象语言中的类建立了一种对应关系。
'''
from sqlalchemy import Column,Integer,String,Time
from app.models.base import db,Base
#用代码创建数据表... | [
"noreply@github.com"
] | cekong.noreply@github.com |
decb9b488193fb175a4eb1303735fb743a3e31a8 | fb5ec592c02138ba21c50c703b396b0d5e64f0a1 | /VQumKNDIX2GJvgSE/84gKy0jxFEoTDRZh.py | 61cff5dd2555c8ca2d92603cddf6aacd3b03bdc9 | [] | no_license | urlib/N56TKH | 94cc5a800c1ab489ba7d2efc4314994682b97508 | a6e01beeeafcd2d157cf18ebd0491c91035a8f0d | refs/heads/master | 2021-05-19T18:22:44.833979 | 2020-04-15T05:40:36 | 2020-04-15T05:40:36 | 252,056,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,823 | py | 𢦖庨誸𨮝𭐓뎅𒈘𦦭𥞲𩄲🃌鍭쑼𩓂𘃠斨⃒뇛ɍ𤊐🗱齻𨩫𡳆𨝗𤐻﹑𭇴𠑲𫴾𣬬䩜𧢜𣬡𝍨𮅬餚ⳟ鉰𐄽芎𨪣䫈ᇤ𫠔𮨋Ū焠싽𓐙𨃮庱腿𑩕췒𭴐𭐂𩶦𘕏𤭭𛋰𠢶𠮭럳Ů䉶纣ܶ𢏂៤𧜮𬓴𨂀𨷞𘂱爇წ慲٨𧩆𣍥𨙶ⶁ駂輥𔒯䔲䊞𗱯槶𥢫𫹁诪麌𪊹𫶵𢑴𤤹𭺔踗繍揄𠹬𩴿윒𫐶𥓐𡍨𫅴𒆈𧉢𘙐亽𔖳𡂴𧔬𢅂𥢓𪫋𤷺𣮇匍𥠿ꗇ𨐢𥠶ߤ𧃰䮶钍𞲧䀱𗗧疣활𤤊𓐅穪𑰋踼젒𨋻𩞋𭴫ຸ㣪덖𦡬鋈𣞤𧒄𧠟𒑇鰁ꃿ𢓭㿨Ḡ𗲸𢥺𩒝𪁹𨰑𘡀𐙫棼ퟨ安𗘰帚𡇌䳮ჴ⦶༜𐩨䧸𠱿隭𑨈沦룰𬏎쥖𡠋䣄㊳𢺾𒒏𧗧ᬑ𝀏𘂇汎𠍺깋𫕞䰵㫵믚𭅙𣰉拎... | [
"45290401+vmlankub@users.noreply.github.com"
] | 45290401+vmlankub@users.noreply.github.com |
90a34921333a0a6e00b6e543ba5c3a07f2e7af0c | 2f62291080c180e1f65c15ca300c66e7b75605d3 | /comment/admin.py | 56494bcff01c33399c28e260394c102aee73a006 | [] | no_license | XiaoFei-97/NewBLogSite | 9c3d2a4121a2fd8bc3fe8f2ad42ae1caf297109e | 8f878173eaba82073932811357724536a4c6949f | refs/heads/master | 2020-04-13T02:11:40.620117 | 2019-03-11T07:41:26 | 2019-03-11T07:41:26 | 162,896,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from django.contrib import admin # admin后台管理
from .models import Comment # 从当前应用的模型中导入Comment数据表
@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
# 后台显示文章对象,评论内容,评论时间,评论者
list_display = ('id', 'content_object', 'text', 'comment_time', 'user')
| [
"jack_970124@163.com"
] | jack_970124@163.com |
3947ab0da8b6fc23714ddc19616210640432a080 | 2693c54a5243bb991f5e9ac6aa75b4ce43e3bb22 | /forkan/rl/envs/vae_stack.py | 2fd62da241c285a19d1d41fb8779850af24e72d8 | [
"Unlicense"
] | permissive | llach/forkan | 36f50eda62153b043ec5a6e10513347117635ad9 | 33ae3d48ce6f24fc0c254b93ed3f4b8a767ffea5 | refs/heads/master | 2020-04-01T06:47:26.034989 | 2019-07-21T13:43:03 | 2019-07-21T13:43:03 | 152,964,129 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | import logging
import numpy as np
from collections import deque
from forkan.models import VAE
from gym import spaces
from forkan.rl import EnvWrapper
class VAEStack(EnvWrapper):
def __init__(self,
env,
load_from,
k=3,
vae_network='pendulum',
... | [
"llach@techfak.uni-bielefeld.de"
] | llach@techfak.uni-bielefeld.de |
4ea1c3b4e147e92d48a3e0a9fe66894514555851 | 3649dce8b44c72bbfee56adf4e29ca6c5ba2703a | /code_up1440.py | 17945c10ff51ccfa95b13dbf7aa8299ec216180e | [] | no_license | beOk91/code_up | 03c7aca76e955e3a59d797299749e7fc2457f24a | ca1042ce216cc0a80e9b3d3ad363bc29c4ed7690 | refs/heads/master | 2022-12-06T08:23:00.788315 | 2020-08-20T11:21:59 | 2020-08-20T11:21:59 | 284,844,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | num=int(input())
num_list=list(map(int,input().strip().split()))
for i in range(num):
print("{}:".format(i+1),end=" ")
for j in range(num):
if i!=j:
if num_list[i]<num_list[j]:
print("<",end=" ")
elif num_list[i]==num_list[j]:
print("=",end=" ")
... | [
"be_ok91@naver.com"
] | be_ok91@naver.com |
a55baf3e9516d59c3250ca8f0d14b799a6376e0d | 9f2445e9a00cc34eebcf3d3f60124d0388dcb613 | /2019-12-10-Na_Chan_del_segfault/seg_fault.py | 78fe3fba59fe42bf74641ff0185ff0171b865e62 | [] | no_license | analkumar2/Thesis-work | 7ee916d71f04a60afbd117325df588908518b7d2 | 75905427c2a78a101b4eed2c27a955867c04465c | refs/heads/master | 2022-01-02T02:33:35.864896 | 2021-12-18T03:34:04 | 2021-12-18T03:34:04 | 201,130,673 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | # exec(open('seg_fault.py').read())
import moose
import pylab
import rdesigneur as rd
# Wrapper function so that the model can be build and run again and again
def rdeswrapper():
# Deleting any previous run of the model
try:
# [moose.delete(x) for x in ['/model', '/library']]
moose.delete('/m... | [
"analkumar2@gmail.com"
] | analkumar2@gmail.com |
70a98c32d3373e086b562b057378936237a6b801 | 674f5dde693f1a60e4480e5b66fba8f24a9cb95d | /armulator/armv6/opcodes/concrete/ldrd_literal_t1.py | a9c906d27b400388948fff874fff702b14d09748 | [
"MIT"
] | permissive | matan1008/armulator | 75211c18ebc9cd9d33a02890e76fc649483c3aad | 44f4275ab1cafff3cf7a1b760bff7f139dfffb07 | refs/heads/master | 2023-08-17T14:40:52.793120 | 2023-08-08T04:57:02 | 2023-08-08T04:57:02 | 91,716,042 | 29 | 7 | MIT | 2023-08-08T04:55:59 | 2017-05-18T16:37:55 | Python | UTF-8 | Python | false | false | 605 | py | from armulator.armv6.bits_ops import substring, bit_at
from armulator.armv6.opcodes.abstract_opcodes.ldrd_literal import LdrdLiteral
class LdrdLiteralT1(LdrdLiteral):
@staticmethod
def from_bitarray(instr, processor):
imm8 = substring(instr, 7, 0)
rt2 = substring(instr, 11, 8)
rt = sub... | [
"matan1008@gmail.com"
] | matan1008@gmail.com |
ad9b37fcd25235110d2415d4c458f17c588dd19d | b7174170d50b867050c80129dbde239a948f6f85 | /client/filesystem.py | 0b737ab71ebe73a3b6f08c5ad3c40c73f604c827 | [
"MIT"
] | permissive | GreyElaina/pyre-check | c1a2b7a6ee050f606322eaa588f9bd95cd1b3dbc | abcb5daa64c38a25aed9ab238bb61290444ab06c | refs/heads/master | 2022-12-19T21:35:09.582761 | 2020-09-12T05:54:32 | 2020-09-12T05:58:24 | 295,080,507 | 0 | 0 | MIT | 2020-09-13T04:52:19 | 2020-09-13T04:52:18 | null | UTF-8 | Python | false | false | 9,705 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import errno
import fcntl
import functools
import logging
import os
import shutil
import subprocess
from contextlib import contextmanager
from... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a0b81a218a73b11bc6ba7b85118f466015bc7b86 | 5db0fab37c2b8a618d85d3b60fab9f806c416474 | /src/python/pants/backend/python/util_rules/ancestor_files_test.py | fad18565bb0bc12f8bb70ddb75d2d389ba6ec0f4 | [
"Apache-2.0"
] | permissive | pantsbuild/pants | 4988d1ac5474ec95f94ce2218aeb759401e4b011 | 98cbda8545f0d58c586ed2daa76fefd729d5e0d5 | refs/heads/main | 2023-09-05T03:44:17.646899 | 2023-09-01T19:52:09 | 2023-09-01T19:52:09 | 7,209,075 | 2,708 | 593 | Apache-2.0 | 2023-09-14T19:33:33 | 2012-12-17T17:39:04 | Python | UTF-8 | Python | false | false | 3,232 | py | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import pytest
from pants.backend.python.util_rules import ancestor_files
from pants.backend.python.util_rules.ancestor_files import (
AncestorFiles... | [
"noreply@github.com"
] | pantsbuild.noreply@github.com |
53bfabebe006a235d28336b4fc86a262baa2081b | 4e04db11d891f869a51adf0e0895999d425f29f6 | /portalbackend/lendapi/reporting/migrations/0002_auto_20170824_1910.py | 0de31b6204ded3007b1ffb8f42d330f6c538b71c | [] | no_license | mthangaraj/ix-ec-backend | 21e2d4b642c1174b53a86cd1a15564f99985d23f | 11b80dbd665e3592ed862403dd8c8d65b6791b30 | refs/heads/master | 2022-12-12T12:21:29.237675 | 2018-06-20T13:10:21 | 2018-06-20T13:10:21 | 138,033,811 | 0 | 0 | null | 2022-06-27T16:54:14 | 2018-06-20T13:04:22 | JavaScript | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-24 19:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reporting', '0001_initial'),
]
operations = [
migrations.RemoveField(
... | [
"thangaraj.matheson@ionixxtech.com"
] | thangaraj.matheson@ionixxtech.com |
160d892ebcaa4753819cb92404d0a04333cf103a | d6af6c213b5be4a46f384a6667d8dbdd00289e37 | /nfselib/ginfes/v3_01/servico_consultar_nfse_envio_v03.py | bb001c2fb0dc9352fd0c9baffd9ab74a26424a7c | [
"MIT"
] | permissive | erpbrasil/nfselib | ea940d5b130709bc1b19f0cdb6a3fbb0aebac6b3 | dc90cf4b6f2fc9db52bbe9485fb0901b56d3aa71 | refs/heads/generated | 2021-01-02T21:35:02.240826 | 2020-07-21T13:48:20 | 2020-07-21T13:48:20 | 239,811,475 | 0 | 1 | MIT | 2020-12-26T22:56:36 | 2020-02-11T16:35:57 | Python | UTF-8 | Python | false | false | 388,953 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Thu Dec 13 15:47:45 2018 by generateDS.py version 2.29.2.
# Python 3.7.1 (default, Oct 22 2018, 10:41:28) [GCC 8.2.1 20180831]
#
# Command line options:
# ('--no-namespace-defs', '')
# ('-o', 'nfselib/v3_01/servico_consultar_nfse_envio_v03.py')
#
# Comma... | [
"mileo@kmee.com.br"
] | mileo@kmee.com.br |
a59222150d7b44cad7f9073542b3a3d9527d9baa | e6ec89f4e40b6ef7183ef76bf542f683154dea03 | /django_tutorial/settings.py | 5970db695f93dc3410ab4bc3fb20d3ca7ab6c0e1 | [] | no_license | shoark7/django-2.0-tutorial | a07919048dd22f5fe295713f6e46003ab8b4a57a | ccdae9ebc3d383145b0aa19227ff986b8d06cf93 | refs/heads/master | 2021-04-26T23:57:53.816519 | 2018-03-06T07:21:36 | 2018-03-06T07:21:36 | 123,886,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | """
Django settings for django_tutorial project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
impo... | [
"shoark7@gmail.com"
] | shoark7@gmail.com |
a24a8cb7958e6472091d3698f75ebcb279a536e7 | f115984d89ee91e1fefa7bd0546f60db251dfee6 | /model-cell-experiments/predict-mc.py | 6504f4c534af5e600136a6c43be59dcfafaca1e8 | [
"BSD-3-Clause"
] | permissive | CardiacModelling/VoltageClampModel | f483fc3ad2129f75e377df210b9b91b1cdcb7565 | f30271da75e3c70526e53fb51dc12b317ab3b714 | refs/heads/master | 2023-07-05T10:07:59.771334 | 2021-03-03T11:05:35 | 2021-03-03T11:05:35 | 227,666,074 | 3 | 0 | BSD-3-Clause | 2021-03-03T11:04:46 | 2019-12-12T17:58:13 | Python | UTF-8 | Python | false | false | 4,079 | py | #!/usr/bin/env python3
from __future__ import print_function
import sys
sys.path.append('../lib/')
import os
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import pints
import model as m; m.vhold = 0
"""
Prediction for single model cell experiment data
"""
predict_list = [... | [
"chonloklei@gmail.com"
] | chonloklei@gmail.com |
0623f1cd7027bc649a34f739367d490341d6121d | 999f3f3da1cb70cb5872f99a09d65d7c4df71cf7 | /src/data/1155.py | 3ea4cafb57081a9c8ff3f3a81e384b01c09e630f | [
"MIT"
] | permissive | NULLCT/LOMC | 0f0d1f01cce1d5633e239d411565ac7f0c687955 | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | refs/heads/main | 2023-07-27T17:03:46.703022 | 2021-09-04T08:58:45 | 2021-09-04T08:58:45 | 396,290,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,621 | py | def divisors(M):
d = []
i = 1
while M >= i**2:
if M % i == 0:
d.append(i)
if i**2 != M:
d.append(M // i)
i = i + 1
return d
def popcount(x):
x = x - ((x >> 1) & 0x55555555)
x = (x & 0x33333333) + ((x >> 2) & 0x33333333)
x = (x + (x >>... | [
"cockatiel.u10@gmail.com"
] | cockatiel.u10@gmail.com |
9cf854e5f10787c00d66b46032ef3d8ea4d91943 | 8f021f68cd0949afa8d119582c0b419b014919d8 | /URIOJ/uri2373.py | c142fff957d0f2e938944a791575fb1a31c7cdf5 | [] | no_license | Jonatankk/codigos | b9c8426c2f33b5142460a84337480b147169b3e6 | 233ae668bdf6cdd12dbc9ef243fb4ccdab49c933 | refs/heads/master | 2022-07-22T11:09:27.271029 | 2020-05-09T20:57:42 | 2020-05-09T20:57:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # -*- coding: utf-8 -*-
# Leonardo Deliyannis Constantin
# URI 2373 - Garçom
def main():
N = int(input())
ans = 0
for _ in range(N):
L, C = map(int, input().split())
if L > C:
ans += C
print(ans)
if __name__ == '__main__':
while True:
try:
main()... | [
"constantin.leo@gmail.com"
] | constantin.leo@gmail.com |
13f374290b54460f585cc996dd27042b763b7bc7 | 46a5df524f1d96baf94f6eb0f6222f2b856235f3 | /src/puzzle/problems/cryptogram_problem.py | c45547433c2d6fad7a436df5cd29d4b51b951e07 | [
"MIT"
] | permissive | PhilHarnish/forge | 5dfbb0aa2afdb91e55d85187bd86fbeb9b6b2888 | c544fb8b499e1e13793c94159f4c35bce187311e | refs/heads/master | 2023-03-11T17:23:46.569359 | 2023-02-25T15:09:01 | 2023-02-25T15:09:01 | 1,818,598 | 2 | 0 | MIT | 2023-02-25T15:09:02 | 2011-05-29T19:36:53 | Jupyter Notebook | UTF-8 | Python | false | false | 5,120 | py | from data import warehouse
from data.seek_sets import crypto_seek_set
from puzzle.problems import problem
# Humans will often choose a ROT value which is ~180 degrees away from A=A.
# For example: ROT13 is common and ROT1 or ROT25 are very uncommon.
_ROT_OFFSETS = list(sorted(range(1, 25), key=lambda i: abs(26 / 2 - i... | [
"philharnish@gmail.com"
] | philharnish@gmail.com |
57e952da8acde84cb4f927b0adec5f8de45dfaef | 74aea619a499c6cba424a3f790f36315e647c55e | /Dynamo/src/RH Polyline to DS Polycurve.py | 44f0bdff25cfc21bf7f28ae66f98043f0c7ac3c9 | [] | no_license | mostaphaRoudsari/MantisShrimp | ca7c38af196116877efbab397adc17446616a9c8 | b8c70b1403103d60f85699608161476d628afede | refs/heads/master | 2021-01-15T09:41:44.314306 | 2015-01-13T23:56:00 | 2015-01-13T23:56:00 | 24,969,552 | 2 | 0 | null | 2015-01-13T23:56:00 | 2014-10-09T02:06:39 | Python | UTF-8 | Python | false | false | 2,334 | py | #Copyright(c) 2014, Konrad Sobon
# @arch_laboratory, http://archi-lab.net
import clr
import sys
clr.AddReference('ProtoGeometry')
pyt_path = r'C:\Program Files (x86)\IronPython 2.7\Lib'
sys.path.append(pyt_path)
import os
appDataPath = os.getenv('APPDATA')
msPath = appDataPath + r"\Dynamo\0.7\packages\Mantis Shrimp\... | [
"ksobon1986@gmail.com"
] | ksobon1986@gmail.com |
919ca6f258d0ad24aa2cd1da271099356e257b9d | e72c9e619629f1b29066bd05f76232895fb3586e | /srcGetskl/ore_reverbJar.py | 6ef2d57a123dbf070429020207d2c7f74366c809 | [] | no_license | sarveshsparab/FrED | b671e356b71b143396c0bc7e98544eb5b3c065a4 | 87dd75a576e8270085d182cf78baaa7ccab84357 | refs/heads/master | 2020-04-25T20:34:20.152512 | 2018-11-12T13:24:39 | 2018-11-12T13:24:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | import sys
import os
sys.path.append("/home/yxqin/Scripts")
from strOperation import * # normRep normMen
####################################
#get relation skeletons from relation file(extracted by reverb.jar)
def getRelskl_fromRel(filename):
print "Processing " + filename
relFile = file(filename)
output... | [
"qolina@gmail.com"
] | qolina@gmail.com |
e8026ecd42c8c44fa6417c976f50f828cc83b40e | 5ca042838f15137130817b9e1766d8496a73d5db | /venv/bin/django-admin.py | f07913ab7e1689b81f250bf67a6114e95ec4e7ca | [
"MIT"
] | permissive | Emmanuel-9/Neighbourhood | 63257368e357adba3280f63a8f9d8ef77bcdfb23 | f2635cbc00181da97bdf17dee283eb905db2ec55 | refs/heads/master | 2022-12-08T06:18:02.137084 | 2020-08-21T11:54:17 | 2020-08-21T11:54:17 | 288,374,723 | 0 | 1 | null | 2020-08-21T07:56:22 | 2020-08-18T06:32:40 | HTML | UTF-8 | Python | false | false | 705 | py | #!/home/joan_e/code/Moringa/core/django/Neighbourhood/venv/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-a... | [
"joanevans18@gmail.com"
] | joanevans18@gmail.com |
90697d5b1e4c3cb7af501969295bfdaf846bf33f | 708074835900ae623239ce3c0d1e6f948b799fd0 | /ftp-1/ftp_server/bin/start.py | b5fa79aadef7fe47c9fffb6743a4175d84aeb3a0 | [] | no_license | hukeyy/learn_python | 66688bcbaa43d79775030d2876979bbda08892ef | c71a37da88b089316536587ed47d32405bd987a3 | refs/heads/master | 2020-03-21T11:07:24.049328 | 2018-12-25T11:59:17 | 2018-12-25T11:59:17 | 138,490,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: hkey
import os, sys
BASE_DIR = os.path.dirname(os.getcwd())
sys.path.insert(0, BASE_DIR)
from modules import socket_server
from conf.settings import IP_PORT
if __name__ == '__main__':
server = socket_server.socketserver.ThreadingTCPServer((IP_PORT), socket_se... | [
"mickey.20@qq.com"
] | mickey.20@qq.com |
3a2837071c1a3bfbc6361ad134e368663c3f18d1 | 0a2cc497665f2a14460577f129405f6e4f793791 | /sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/aio/operations/_backup_crr_job_details_operations.py | 33a1fb75dc9c475d6bf5fbe74a51997aee684121 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | hivyas/azure-sdk-for-python | 112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b | 8b3258fa45f5dc25236c22ad950e48aa4e1c181c | refs/heads/master | 2023-06-17T12:01:26.392186 | 2021-05-18T19:56:01 | 2021-05-18T19:56:01 | 313,761,277 | 1 | 1 | MIT | 2020-12-02T17:48:22 | 2020-11-17T22:42:00 | Python | UTF-8 | Python | false | false | 4,994 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | hivyas.noreply@github.com |
517106683f3f57201f69fa5b34f6128747290be9 | 63bc95150f6af526199454602e5689bfadc882ba | /02/ex2-4.py | 16afec85561b0cca064aebd54ca9ae58780d4580 | [] | no_license | veenary/python-src | fd61d22a58d452ccb251402fecb0b7babd5372a7 | d61374bc32b8ebe3b2be366a6de259680821a4e1 | refs/heads/master | 2023-03-17T10:07:27.704611 | 2021-03-10T01:31:56 | 2021-03-10T01:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | x = 30
print(x)
print(type(x)) | [
"park.cheongu@gmail.com"
] | park.cheongu@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.