blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d71cdc28e7df4c73083aeda6d2500856049954c | 1c17aaf0f96c2ba2e2eaf6b552017fb1393a5eaf | /week_1_5/05_3.py | b7fd80b0fad08bacb17e3d113e80b11a72308940 | [] | no_license | ljwon0312/academy_python | b5372387ce317f487e7b498f5f875058661878d3 | b87c3ba38616f3785a1ba587472a3407e113d57a | refs/heads/master | 2020-06-17T03:33:29.989733 | 2019-07-10T07:53:31 | 2019-07-10T07:53:31 | 195,782,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | codon_dict = {'TTT':'F', 'TTC':'F', 'TTA':'L', 'TTG':'L', 'TCT':'S', 'TCC':'S', 'TCA':'S', 'TCG':'S', 'TAT':'Y', 'TAC':'Y', 'TAA':'*', 'TAG':'*', 'TGT':'C', 'TGC':'C', 'TGA':'*', 'TGG':'W', 'CTT':'L', 'CTC':'L', 'CTA':'L', 'CTG':'L', 'CCT':'P', 'CCC':'P', 'CCA':'P', 'CCG':'P', 'CAT':'H', 'CAC':'H', 'CAA':'Q... | [
"jjww-0312@naver.com"
] | jjww-0312@naver.com |
004d960888711abd2459097ce1f9fb8af8aa03cc | c15899ee195d5e4ee978f271767b899bcfe6ea60 | /plugins/nzbhydra/resources/nzbhydraUI/freenas/forms.py | 811acb34f1fa212e7ff1bb245b9e07eae08afc28 | [] | no_license | josh4trunks/freenas-plugins | d39159aa8454ea6be02923cf276348124c84033c | ff7a4276fe4d6584700d271b10d350b23f3c03c5 | refs/heads/master | 2020-12-01T13:04:10.856791 | 2018-10-16T13:50:30 | 2018-10-16T13:50:30 | 26,624,312 | 34 | 13 | null | 2017-08-02T10:38:23 | 2014-11-14T05:46:58 | Python | UTF-8 | Python | false | false | 888 | py | from subprocess import Popen, PIPE
import hashlib
import json
import pwd
import urllib
from django.utils.translation import ugettext_lazy as _
from dojango import forms
from nzbhydraUI.freenas import models, utils
class NZBHydraForm(forms.ModelForm):
class Meta:
model = models.NZBHydra
exclude ... | [
"joshruehlig@gmail.com"
] | joshruehlig@gmail.com |
e8e4f0a3e63dd64e48c24cae5de0e03b153797e9 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/permutations_20200723155624.py | 1a43bb06b64892a0a05e131276152208c87546a0 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | def perm(arr):
# sort the array
if len(arr) == 0:
return 0
else:
arr.sort()
perm = set(arr)
maxValue = max(arr)
if len(perm) == maxValue:
return 1
elif len(perm) == 1:
return 0
print(perm... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
b1d37d62e22effe849327ad9efec359561e3190b | c413fce92172f3503fd4790b68ad6bbddbf4c919 | /20170501/02_make_exception/02_mexception.py | b803391aede525e909f53d4899cb32a49b572b0d | [] | no_license | JohnHaan/cloudtechpython | 9dbd80e71b7151e3ba1be416b798f086785a1f19 | 17b9b8224cdc29a4b51e592e86f8c9863309c5b1 | refs/heads/master | 2021-01-22T21:22:36.733331 | 2017-11-28T13:54:32 | 2017-11-28T13:54:32 | 85,414,710 | 0 | 1 | null | 2017-04-21T02:51:09 | 2017-03-18T16:15:17 | Python | UTF-8 | Python | false | false | 299 | py |
class MyError(Exception):
pass
def say_nick(nickname):
if nickname == 'dolbam':
raise MyError()
print(nickname)
if __name__ == '__main__':
for i in ['zeroxkim', 'dolbam']:
try:
say_nick(i)
except MyError:
print("wrong nickname") | [
"yongiman@gmail.com"
] | yongiman@gmail.com |
4c4313dd1ac27c37e207f29bdec56e2ffde9a46a | a81c1492783e7cafcaf7da5f0402d2d283b7ce37 | /google/ads/google_ads/v6/services/geographic_view_service_client_config.py | 0bb6c499223798af61ddd383cefd941113c27d62 | [
"Apache-2.0"
] | permissive | VincentFritzsche/google-ads-python | 6650cf426b34392d1f58fb912cb3fc25b848e766 | 969eff5b6c3cec59d21191fa178cffb6270074c3 | refs/heads/master | 2023-03-19T17:23:26.959021 | 2021-03-18T18:18:38 | 2021-03-18T18:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | config = {
"interfaces": {
"google.ads.googleads.v6.services.GeographicViewService": {
"retry_codes": {
"retry_policy_1_codes": [
"UNAVAILABLE",
"DEADLINE_EXCEEDED"
],
"no_retry_codes": []
},
"retry_params": {
"retry_policy_1_params": {
... | [
"noreply@github.com"
] | VincentFritzsche.noreply@github.com |
873fa6fdc46a377613d15a63e3fa52a0075972ea | 4e5141121d8b4015db233cbc71946ec3cfbe5fe6 | /samples/basic/executor/models/cisco-ios-xr/Cisco-IOS-XR-snmp-test-trap-act/nc-execute-xr-snmp-test-trap-act-210-ydk.py | 1eab0af3fe816529cbffcdfeb619368a0a50f197 | [
"Apache-2.0"
] | permissive | itbj/ydk-py-samples | 898c6c9bad9d6f8072892300d42633d82ec38368 | c5834091da0ebedbb11af7bbf780f268aad7040b | refs/heads/master | 2022-11-20T17:44:58.844428 | 2020-07-25T06:18:02 | 2020-07-25T06:18:02 | 282,382,442 | 1 | 0 | null | 2020-07-25T06:04:51 | 2020-07-25T06:04:50 | null | UTF-8 | Python | false | false | 2,657 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"saalvare@cisco.com"
] | saalvare@cisco.com |
77f4f391c4a589f687c1673464cd42ba2b0ce694 | 4855a73f552c79f9123990a66b4fd29f829cd07d | /JZOffer/JZOffer14_2.py | c55d60a02a04ffcc0d79604611fbc389a45350b9 | [] | no_license | EmlynQuan/Programming-Python | e2d47de71c4d5981b79bba3b4bf9ac9cf7115484 | 11bbc8aa58b5f16d7cfadd30c7eea241e6dd7bdd | refs/heads/master | 2023-06-24T06:50:27.255834 | 2021-07-29T15:47:50 | 2021-07-29T15:47:50 | 362,500,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # coding=utf-8
def cuttingRope_dp(n):
"""
:type n: int
:rtype: int
"""
if n <= 3:
return n-1
dp = [0 for i in range(n+1)]
dp[1] = 1
dp[2] = 1
dp[3] = 2
for i in range(3, n+1):
for j in range(1, i/2+1):
dp[i] = max(dp[i], j*max(dp[i-j], i-j))
retu... | [
"2569627904@qq.com"
] | 2569627904@qq.com |
ba9eb14de7b40eaeee426d39736d20fa3a6fb304 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_MovingAverage_Seasonal_DayOfMonth_MLP.py | 72d984f241059cea41ee8f1d543e8cd2d2152544 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 169 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Quantization'] , ['MovingAverage'] , ['Seasonal_DayOfMonth'] , ['MLP'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
bba9ea3018221f89eb8650ff3f46c4a24e7e06a1 | 4ede275efc8bc9f9ef121dc37215d2f0d8453e36 | /14pl.py | c9485786e19ce057f3e6bd2acf6e59c83c2fbfd7 | [] | no_license | shanthivimalanataraajan01/code | bfa8a441b0c360aebd02248ad4433cc21889c3d2 | ea467ae1eefd68a5dceaa53aab7149d31bd5faf6 | refs/heads/master | 2020-04-15T05:01:03.625422 | 2019-05-17T09:35:45 | 2019-05-17T09:35:45 | 164,405,963 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | n=int(input())
s=input()
r=["a","e","i","o","u","A","E","I","O","U"]
l=[]
for i in range(len(s)):
if s[i] not in r:
l.append(s[i])
for i in reversed(l):
print(i,end="")
| [
"noreply@github.com"
] | shanthivimalanataraajan01.noreply@github.com |
20d292d62891bea770e215fc0d6057a5f8d0e71c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03013/s862770643.py | 7ccbf8573c48d9c4b4925c320990f7e34dc43586 | [] | 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 | 750 | py | #import math
#import itertools
#import numpy as np
#from collections import deque
# sys.setrecursionlimit(10 ** 6)
MOD = 10 ** 9 + 7
#INF = 10 ** 9
#PI = 3.14159265358979323846
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = l... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1ceccd56e6f916af518465d5e03cdc7d5860afd4 | c26b3a7d446fbfd71ce11e04129358c17dd6239a | /tAPP/3/P4.py | e0a55f3cd27e899abf582eb63103c2b47d192dfc | [
"MIT"
] | permissive | ArvinZJC/UofG_PGT_PSD_Python | 4c4c2430cb95309a37086503e7ee638a45d571ab | d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4 | refs/heads/main | 2023-05-09T21:18:07.847277 | 2021-06-14T17:26:38 | 2021-06-14T17:26:38 | 329,307,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | '''
Description: Problem 4 (complete the code)
Version: 1.0.1.20210117
Author: Arvin Zhao
Date: 2021-01-16 00:19:34
Last Editors: Arvin Zhao
LastEditTime: 2021-01-17 12:13:41
'''
from tkinter import Tk, Label, Entry, Button
from tkinter.constants import END
def convert_to_km():
miles = textbox1.get()
message... | [
"tomzjc@qq.com"
] | tomzjc@qq.com |
11384963eb0c43c775c81061bdd8d70f1ecc25fe | 4ad14e547695daaf4637c0790c21245a99fb6114 | /Fmfiles/Fmfiles/pipelines.py | be1185d41ce5ce649a20c8f991da0de3c39a83d3 | [] | no_license | gxl2632537/pachong | b8e1c26ef0e13504dc084b8e12975823126dac41 | 1ec30451e83a66768b4616ed9d736af8ee53deba | refs/heads/master | 2022-11-07T02:16:42.549654 | 2020-06-30T09:47:34 | 2020-06-30T09:47:34 | 272,400,120 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
import scrapy
import os
from scrapy.pipelines.files import FilesPipeline
from Fmfiles.settings import FILES_STORE
from scrapy.... | [
"l"
] | l |
dc78ca14f957482b684aac9c5650a6871a3f4025 | c7329046b8c19cb55e41e2275993b32fbec7b7eb | /test/test_mirage/test_model/test_impl/test_singular_isothermal_sphere.py | 300b755948572277d34cde53d13dde974e235466 | [
"MIT"
] | permissive | JordanKoeller/Mirage | 72af9b7e6e71f97574e67eff400eb20dfa0a340e | 5ed8dcf8934495bd18e534e54784e053475eb49e | refs/heads/main | 2023-08-09T06:57:40.111101 | 2023-08-05T21:21:08 | 2023-08-05T21:21:08 | 147,987,257 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | from unittest import TestCase
from astropy import units as u
from mirage.model.impl import SingularIsothermalSphereLens
from mirage.model import Quasar
from mirage.util import Vec2D, PolarVec
class TestPointLens(TestCase):
def get_lens(self):
return SingularIsothermalSphereLens(
quasar=Quasar(1.2, ma... | [
"jkoeller12@gmail.com"
] | jkoeller12@gmail.com |
65d5a881a175b2753d0e88f4d19f3cd42c2452b9 | 4148260054c2cf4605dacb8bdef3605c82eca470 | /temboo/Library/SendGrid/NewsletterAPI/ListsEmail/AddEmailToList.py | 5d18334ef39a88208f7a4b7f40dc69496a4969ba | [] | no_license | wimsy/actuarize-web | 0f23d5f00afe3d36d430621cdb497d2e64998416 | 5f43af3019da6fb08cafeec9ff0a89df5196b864 | refs/heads/master | 2021-03-12T19:38:21.887681 | 2012-12-19T01:13:50 | 2012-12-19T01:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,649 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# AddEmailToList
# Add an email to an existing Recipient List.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreog... | [
"mike.wimsatt@gmail.com"
] | mike.wimsatt@gmail.com |
076599354848efd0d14fdc3c76a3c7360e7ed706 | 70b339d0b2638a7914d0d56c5edf8a2637c9f4b0 | /thousandSeparator.py | 999ebd880f493406a097ca8fd4036f33990e4133 | [] | 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 | 469 | py | class Solution(object):
def thousandSeparator(self, n):
"""
:type n: int
:rtype: str
"""
res = []
while n / 1000 > 0:
remain = str(n % 1000)
if len(remain) == 1:
remain = '00' + remain
elif len(remain) == 2:
... | [
"tango7down@icloud.com"
] | tango7down@icloud.com |
4964d2f9abf377ed066bd2037665447f341785e3 | 8d54e547467ee9f91311dab51b6dd104e814f7d5 | /text_txt_lmfit.py | dbab90c88c6528b1b9d01fa2e077bdbb7052b923 | [] | no_license | alictg81/pyspeckit-tests | 9dca6e41b8b783ef72d05f7135652efe6eddef1e | 62153cb2dbff2cffda1a9c8f626ac4e1549f8532 | refs/heads/master | 2021-01-22T06:49:11.600689 | 2015-04-07T16:22:17 | 2015-04-07T16:22:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | from pyspeckit import spectrum
if not 'interactive' in globals():
interactive=False
if not 'savedir' in globals():
savedir = ''
sp = spectrum.Spectrum('simple_txt.txt')
print "Does it have an axis? ",sp.plotter.axis
sp.plotter()
print "How about now? ",sp.plotter.axis
print "FITTING GAUSSIAN"
sp.specfit(q... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
225d064d759e8103f09dc0d0d525433e922a6c19 | f8ece22d9e9e12e2cbca56d72a6b2728ba9a275a | /setup.py | 28b7dbcd103df90c11e4c7e2ecd33447d0f296a8 | [
"MIT"
] | permissive | pparan/polyaxon | 8c8912f9ba724e007357efcaefeab86fec2d5630 | 423199721e90431209b00c0f76caa6b4f9aa4b24 | refs/heads/master | 2021-04-15T07:15:19.701268 | 2018-03-21T11:59:12 | 2018-03-21T11:59:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | #!/usr/bin/env python
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(sel... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
caf878602d26dd8f569da3d2ddf5ec00fd85e19f | 3c59fe3748fe0461d1327b9b751d8dc7c9405367 | /teus_back/users/migrations/0014_auto_20210505_0038.py | 47010d11a0dca65fd47a52b7741afa4401f6e016 | [] | no_license | RympeR/teus-django-vue | 8c69b5aaf38af091597065ab1306e33283846d16 | b6be2bace144a0f3102339295eae05579657205e | refs/heads/main | 2023-05-13T16:30:29.425392 | 2021-06-03T07:13:34 | 2021-06-03T07:13:34 | 342,588,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # Generated by Django 3.1.7 on 2021-05-04 21:38
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0013_auto_20210430_0435'),
]
operations = [
migrations.AlterField(
model_name='phone',
name... | [
"georg.rashkov@gmail.com"
] | georg.rashkov@gmail.com |
931b73a7d655f1fb2521e8aeced917c19b27cb99 | 13eb4610eb9316c246768c7dffe94e24eb5ce3ed | /docs/conf.py | b320008b6bfca53accb03b2174ac8109ac31137d | [
"Apache-2.0"
] | permissive | webclinic017/pyEX-zipline | e5141b70424b0c04f7ad59a34ab9bcd26b817ec5 | 3d0636af2686861cd08054447bcc60190d48aedd | refs/heads/master | 2022-07-22T08:38:08.060746 | 2020-05-19T19:32:16 | 2020-05-19T19:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,420 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# pyEX.zipline documentation build configuration file, created by
# sphinx-quickstart on Fri Jan 12 22:07:11 2018.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
c1918f6020987d4268163b9fcd8cd562a0d239d6 | cb30200e8af3a27f3d4faf7e0ca31bdb96f2f85a | /neutron/db/uos_db.py | 97a8667d885eac45f0cd4a4a096228b44fc247b2 | [
"Apache-2.0"
] | permissive | CingHu/neutron-ustack | ee7bf5a373dfc400c1ed86dedc7414c27185de4d | a1da17d0d63b3342a48c35da37984d6386ee1016 | refs/heads/master | 2016-08-13T02:02:48.179378 | 2015-11-27T02:46:46 | 2015-11-27T02:46:46 | 46,955,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,291 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2014 UnitedStack Inc.
# 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.or... | [
"xining@unitedstack.com"
] | xining@unitedstack.com |
2eb41a9f7840f3f1afa3331c5e071c1d40c62578 | d3c21f0051e5ca2f45d98381b0372b4cd916b213 | /cgi-bin/module/plugins/hoster/RarefileNet.py | 8339d40eb79d560f8e907c754e90918bee1bd306 | [] | no_license | f3l/shareacc | ca165272f4265180d9178b6a066c69a0b368f8dd | 615c71216317f7ac46b5217f5672cad0c71a1e49 | refs/heads/master | 2020-04-06T06:41:11.278718 | 2013-02-05T15:15:15 | 2013-02-05T15:15:15 | 4,640,503 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | # -*- coding: utf-8 -*-
import re
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
from module.utils import html_unescape
class RarefileNet(XFileSharingPro):
__name__ = "RarefileNet"
__type__ = "hoster"
__pattern__ = r"http://(?:\w*\.)*rarefile.net/\w{12}"
__version__ =... | [
"root@server3.kruton.de"
] | root@server3.kruton.de |
284d78f1fcbbd919d674c1a864e74677d41bcf25 | 8a8438419c211d1c3f3333d9215d501ee5aa745a | /annotation/annot_express.py | 58959152c5c2b2d83da9965f1eaa45af7241adbb | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | WhiteLab/RNAseq | fb6478f0c8df3ee816d13b7e8998e4440a0ce7a3 | ea34f2d0b886076007fa382a87d37cd41e8417bb | refs/heads/master | 2021-01-25T15:56:56.386057 | 2018-04-19T17:03:40 | 2018-04-19T17:03:40 | 33,335,010 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | #!/usr/bin/env python3
import sys
def make_index(index_ref):
ind = {}
index = open(index_ref, 'r')
next(index)
for line in index:
ann = line.rstrip('\n').split('\t')
ind[ann[0]] = {}
ind[ann[0]]['name'] = ann[1]
ind[ann[0]]['type'] = ann[2]
index.close()
return... | [
"miguel.a.brown@gmail.com"
] | miguel.a.brown@gmail.com |
c70cf1d502370239756e3024f3a99e04f5a385ee | b5cba88ce8c86740c8c3453134610fd5bafbb8c4 | /Leetcode/1295. Find Numbers with Even Number of Digits/solution.py | 49f4d0d266abbbea8614c1133f3ae970bf4a6cf3 | [] | no_license | EduardoSantos7/Algorithms4fun | 55fcf9d515ea3b70b93298ac96a58d2ae68dee11 | 6ff182ed596b6322322b087f29e6ad98baec3f97 | refs/heads/master | 2023-07-23T01:38:08.216313 | 2023-07-23T01:35:58 | 2023-07-23T01:35:58 | 227,448,848 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | class Solution:
def findNumbers(self, nums: List[int]) -> int:
result = 0
seen = {}
for num in nums:
if num in seen:
if not seen[num] % 2:
result += 1
continue
count = 0
while num > 0:
num... | [
"eduardoluissd@gmail.com"
] | eduardoluissd@gmail.com |
b32a32aa16e78d200314b7da8479cb85659f5783 | d74913eda69ee1799c887a645c574fa5a4da8fba | /code/download/download_soils.py | 225e8cea96a34dccc9d990085c4111021268eeee | [
"Apache-2.0"
] | permissive | Fweek/pyMETRIC | efd6fe8c6ea74f5c87d19ecbb6653549fb3ba943 | 0e7eec57fedd33b81e6e7efe58290f50ebbebfab | refs/heads/master | 2021-05-03T10:23:15.066106 | 2018-02-06T19:32:36 | 2018-02-06T19:32:36 | 120,534,046 | 1 | 0 | null | 2018-02-06T23:00:49 | 2018-02-06T23:00:48 | null | UTF-8 | Python | false | false | 2,953 | py | #--------------------------------
# Name: download_soils.py
# Purpose: Download soil AWC raster
# Python: 2.7, 3.5, 3.6
#--------------------------------
import argparse
import datetime as dt
import logging
import os
import sys
import zipfile
from python_common import url_download
def main(output... | [
"dgketchum@gmail.com"
] | dgketchum@gmail.com |
9bb59c34c03b8d36943b1d47bfe4981e476e6a7a | dc19e59cac871b172eb357499159b92fca81e5ca | /docs/toHTML.py | 2fa74dd72b05a9428d6b26b2a2bd5657a4b5a5b1 | [
"MIT"
] | permissive | numython-rd/moro | ed3fe76b35ce190244503c40a445fbbd42143278 | 8d6e15ba21a0de7ec354ccbc23c38123a570904a | refs/heads/master | 2023-03-26T18:48:07.588409 | 2021-03-18T01:50:14 | 2021-03-18T01:50:14 | 300,115,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | # -*- coding: utf-8 -*-
import os
source = "source"
build = "."
instr = "sphinx-build -b html "+source+" "+build
os.system(instr)
os.startfile(build+r"\index.html")
| [
"delossantosmfq@gmail.com"
] | delossantosmfq@gmail.com |
9b69bc22bdfcfa2d1afe985f945375682c176ad1 | 57fab09b925d5ad305c7d3768c06e82e0b867d47 | /bag/reorder_po.py | e821d44e2e5d57009c4748129ada5ee0dee22408 | [
"MIT"
] | permissive | nandoflorestan/bag | f6b042341cdf96812ae34320879a6b67fb6884c9 | 63f6fbd3e768bf55d79ac96964aa3bf7702f3f9a | refs/heads/master | 2023-08-04T23:43:27.961604 | 2023-07-31T15:12:44 | 2023-07-31T15:12:44 | 9,621,828 | 24 | 6 | null | 2015-07-17T05:10:23 | 2013-04-23T11:46:23 | Python | UTF-8 | Python | false | false | 1,266 | py | """Reorder the translations inside a .po file.
This script was written because transifex is messy and when you pull
translations from transifex, the order of the strings completely changes and
when you do a ``git diff`` you cannot make sense of the alterations.
It is even hard to see whether any translations have been... | [
"nandoflorestan@gmail.com"
] | nandoflorestan@gmail.com |
7aa043d24cb175a85f93b7c12cd0cba2de709b61 | 5da2c116d3d0dc4f3811cec144c9f8b5a74afede | /lncrawl/sources/fanfiction.py | c29ccaba499a13167460d62aad29c76ad932190c | [
"Apache-2.0"
] | permissive | NNTin/lightnovel-crawler | a08bd252f2e72f41f931f0b2165f906b64d33692 | 451e816ab03c8466be90f6f0b3eaa52d799140ce | refs/heads/master | 2021-06-23T12:07:43.668329 | 2021-04-25T01:51:26 | 2021-04-25T01:51:26 | 361,695,538 | 2 | 0 | Apache-2.0 | 2021-04-26T16:48:21 | 2021-04-26T09:40:46 | null | UTF-8 | Python | false | false | 3,425 | py | # -*- coding: utf-8 -*-
import json
import logging
import re
from urllib.parse import urlparse
from ..utils.crawler import Crawler
logger = logging.getLogger(__name__)
chapter_url = 'https://www.fanfiction.net/s/%s/%s'
search_url = 'https://www.fanfiction.net/search/?keywords=%s&type=story&match=title&ready=1&category... | [
"dipu.sudipta@gmail.com"
] | dipu.sudipta@gmail.com |
02f21d9e9666ff708866722614bcd616ca5d00fc | 9ecb6a1d3a71e7f87f3784af6b808f23a2abe348 | /spinningup/spinup/algos/td3/core.py | b9e2b6ad2e3dcfd388dc765ca58d71b8d7a6a6b4 | [
"MIT"
] | permissive | HumanCompatibleAI/interactive-behaviour-design | 13ae305b39d29595e8fd5907f8d9e9fa6c2efc16 | 226db7a55d64ce15edfb8d7b3352c7bf7b81b533 | refs/heads/master | 2020-05-02T16:54:02.232639 | 2019-08-08T14:29:11 | 2019-08-08T14:29:11 | 178,082,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | import numpy as np
import tensorflow as tf
def placeholder(dim=None):
return tf.placeholder(dtype=tf.float32, shape=(None,dim) if dim else (None,))
def placeholders(*args):
return [placeholder(dim) for dim in args]
def mlp(x, hidden_sizes=(32,), activation=tf.tanh, output_activation=None):
for h in hidd... | [
"matthew.rahtz@gmail.com"
] | matthew.rahtz@gmail.com |
f29c1c8d352d400edd2c54e09c41c0ff74480335 | 2761a7b1b89c3bc250d5848c0fb2bde23a46989c | /costom_tfp_model_/bayesian/train.py | 732910532341d2d516189d906694cc89e4632fb7 | [] | no_license | mahdisharifloo/tensorflow_lite_projects | 9daa051297395903f788ed2841c7b7d3406c284e | 0f178b484ed667581e5edc882339c4699a5d0378 | refs/heads/master | 2022-11-29T05:34:29.525744 | 2020-08-12T20:26:40 | 2020-08-12T20:26:40 | 284,647,945 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,877 | py | # -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
import itertools
import tensorflow_probability as tfp
import tensorflow as tf
import tensorflow.keras as keras
from sklearn import metrics
from sklearn.metrics import confusion_matrix
from tensorflow.keras.preprocessing.image import ImageDataGenerator, im... | [
"0059sharifloo@gmail.com"
] | 0059sharifloo@gmail.com |
f7060334136865396f4d86572f5cd846a5112c05 | 6a33cb94d4af1d8a7329ddc6c9d42f870c35bb2f | /python/euler29.py | d9b80faeb8ae6bc4abadea9e824c11439db0308a | [] | no_license | vochong/project-euler | 836321cc8e7d2e7cdf22b3b136d44dcba74a8701 | 6a0c7103861ff825bf84800b6e2e62819a41e36d | refs/heads/master | 2020-04-29T10:41:48.487159 | 2018-09-19T00:13:34 | 2018-09-19T00:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | def euler29():
"""
Consider all integer combinations of ab for 2 <= a <= 5 and 2 <= b <= 5:
22=4, 23=8, 24=16, 25=32
32=9, 33=27, 34=81, 35=243
42=16, 43=64, 44=256, 45=1024
52=25, 53=125, 54=625, 55=3125
If they are then placed in numerical order, with any repeats removed, we
get the following sequence of 1... | [
"kueltz.anton@gmail.com"
] | kueltz.anton@gmail.com |
21ac3eeda637128a5f315d8c4bcc6ebe54e963fd | b06b6ac432961322f5a55a4cf8ad9bba27622042 | /pages/migrations/0002_auto__add_field_page_header_image.py | 6e136301447e3fe351716caa165da6d8bfacd5d2 | [
"BSD-2-Clause"
] | permissive | jpic/pescator | 97a4e2ba62485d3fa537c060876b7fd04d3286e4 | 0d3140ac4c8b07940c2f4753c6f8cb5ac95d8292 | refs/heads/master | 2021-01-01T15:45:16.610383 | 2013-11-29T19:03:20 | 2013-11-29T19:03:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,847 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Page.header_image'
db.add_column(u'pages_page', 'header_image',
self.g... | [
"jamespic@gmail.com"
] | jamespic@gmail.com |
98d31e2bc1edb6dbcb1566b0a6c71cd60d65e3f1 | 922227eabe29f0a6779bd28ae037a46acbe06d6a | /apps/fsq/views.py | d44303731e3604fb369584f6849601bcbcb8116d | [] | no_license | rootart/geojam | 2acf6f0289c372e482998732faa31bee222b065a | 1ac99f5428ddae5c5e7f10c685075cf8a52843c8 | refs/heads/master | 2020-05-18T07:44:06.126567 | 2011-08-19T19:49:16 | 2011-08-19T19:49:16 | 2,235,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,223 | py | from django.http import (
HttpResponseRedirect,
HttpResponse,
HttpResponseForbidden
)
from django.conf import settings
from django.contrib.auth import login, authenticate, logout
from django.core.urlresolvers import reverse
from django.contrib.gis.geos import *
import oauth2 as oauth
import urllib
try... | [
"dijakroot@gmail.com"
] | dijakroot@gmail.com |
8b5625755b9e41df88d4a4fa0ad12b81868a1b34 | 35a6f993b84afdd2c0ade094e0312b3aaa53294f | /src/tag_server/mit-cf/tag/views.py | c82f2d03e392253686f1b08a315d5390d5336484 | [] | no_license | MIT-repository/tag_server | 3266875ac8efee255b324eead419a62a0320f511 | 488b0582b1341d0a1d372681d57aa456b7d5c9d6 | refs/heads/master | 2022-12-09T00:21:41.601852 | 2020-08-19T12:24:01 | 2020-08-19T12:24:01 | 288,722,644 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | from django.http import HttpResponse, JsonResponse
from django.shortcuts import render
import os, boto3
from .models import Song
from .DeepAudioClassification.main import predict
# Create your views here.
service_name = os.environ.get('service_name')
endpoint_url = os.environ.get('s3_url')
region_name = os.environ.ge... | [
"l4538@naver.com"
] | l4538@naver.com |
392292d26e820beee08966256dc3b7e7deabcff6 | 13b46582bb6bbfe08a2e24127198ded24e6c0ad3 | /server/security/migrations/0002_auto_20210103_2232.py | 6e941810356d692616f510085d017f85a27449ad | [] | no_license | dmetrosoft/seo-audits-toolkit | 9b12735d8345ef5075e87e6ea09440e01e32746f | c3e95fc4bf51d72e61c0507c14bd384d2368f475 | refs/heads/master | 2023-08-25T06:11:54.055464 | 2021-04-08T15:51:23 | 2021-04-08T15:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | # Generated by Django 3.1.4 on 2021-01-03 22:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('security', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='security_result',
old_name='pwa_sco... | [
"stan@primates.dev"
] | stan@primates.dev |
0254a942224af44e67171f739c52b55757946efb | 84688ba401bb0d82f5345d7b2c1c91c1b82b8c41 | /notifications/migrations/0002_auto_20190726_2030.py | 88f0133b4bf298f0baf1018c1867724b1a9f4611 | [] | no_license | AbrahamMayowa/edupam | 14878df433f356b60c0bda700457123c6db8c734 | 97908dc56913d0a06fa0340c5985496935b9a097 | refs/heads/master | 2023-05-10T23:42:37.043219 | 2022-10-11T09:19:58 | 2022-10-11T09:19:58 | 167,404,444 | 0 | 0 | null | 2023-04-30T07:46:03 | 2019-01-24T17:02:44 | JavaScript | UTF-8 | Python | false | false | 1,124 | py | # Generated by Django 2.1.3 on 2019-07-26 20:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('notifications', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='thumpednotif... | [
"root@ubuntu.ubuntu-domain"
] | root@ubuntu.ubuntu-domain |
2c6f7329cf5f3fe94f8c1b248451d1d8a25c4bf2 | 5d8fbd0ae055a830be62de0191113f6e03f91046 | /practice4v.py | 9c6f45f76ba2a4b62ff72c2bb4abf339ca89b233 | [] | no_license | harmansehmbi/Project4 | ba892d921c6b1a9b595a0aa1781afcd79fee5269 | baf7e75199d99b60431ba191fbb53fbcd25116cb | refs/heads/master | 2020-06-01T16:02:57.311321 | 2019-06-08T04:01:07 | 2019-06-08T04:01:07 | 190,843,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | dishes = {"dish1":100, "dish2":200, "dish3":300, "dish4":150}
print()
keys = list(dishes.keys())
values = list(dishes.values())
print(keys, type(keys))
print()
print(values, type(values))
print()
print(max(dishes.keys()))
print()
print(max(dishes.values())) | [
"51370954+harmansehmbi@users.noreply.github.com"
] | 51370954+harmansehmbi@users.noreply.github.com |
1e3e7d87108b4bf2008a6bcf63f8e833328da5e4 | 73b73f15adefd4c8d1fc2888406fc7f6b567c9f0 | /blogapp/urls.py | 2a66e3ab5b4a63a0add5b35819cd5fcf89b51d67 | [] | no_license | codenotespy/www.codenotes.site_dj | ed4b736814b783b32d41ee1add70bda4eb9522dc | e1cd0dcb2e6fbdfec4b7ebdf7b19e2338a297e48 | refs/heads/main | 2023-06-09T22:51:46.291207 | 2021-06-29T03:56:14 | 2021-06-29T03:56:14 | 381,232,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.blog_menu, name='blog_menu'),
path('contact', views.contact, name='contact'),
path('upload_blog', views.upload_blog, name='upload_blog'),
path('blog/<int:id>/', views.blog, name='blog'),
path('blog_like/<int:id>/', vi... | [
"aydinugur8@hotmail.com"
] | aydinugur8@hotmail.com |
dbe56d846912e13b4c72c12ef311a8562813ec85 | ab5cdf8f2de94c327e4679da84f941b1f3c04db4 | /kubernetes/test/test_v1_glusterfs_volume_source.py | 39a802f1d91d71050744ebdb7a46060e9740cc45 | [
"Apache-2.0"
] | permissive | diannaowa/client-python | a4a92a125178db26004eaef5062f9b1b581b49a8 | 5e268fb0b6f21a535a14a7f968b84ed4486f6774 | refs/heads/master | 2020-12-02T22:06:03.687696 | 2017-06-30T21:42:50 | 2017-06-30T21:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
c1895e6e58c9a7846f94b1a64c77145bf2a32ad3 | 3f69ffa4e42526c50100dc0f7e7ad88502a664e1 | /pyforms_gui/controls/control_event_timeline/events/pointer.py | 18b837dbd20aa023d08cb86c2a9135e181aa04f9 | [] | no_license | UmSenhorQualquer/pyforms-gui | d09854839ff20d26703034e596658e28730362ec | a25bcfe3229e9eaab94fdd84dd749c5de071d836 | refs/heads/v4 | 2022-05-05T11:20:38.432276 | 2021-06-03T16:13:59 | 2021-06-03T16:13:59 | 134,008,541 | 121 | 25 | null | 2022-03-24T16:23:47 | 2018-05-18T22:09:20 | Python | UTF-8 | Python | false | false | 2,379 | py | # !/usr/bin/python
# -*- coding: utf-8 -*-
from AnyQt.QtGui import QColor
from AnyQt import QtCore
class Pointer(object):
def __init__(self, position, parent):
"""
:param position:
:param parent:
"""
self._position = position
self._parent = parent
def draw(self, painter, showvalues=False,... | [
"ricardojvr@gmail.com"
] | ricardojvr@gmail.com |
5c875bc14088390b5c80f58390c190466aa572b3 | 31b9c04fd1edc1401721e9010a171cdb0da8e77f | /mysite/main/migrations/0002_post_mainphoto.py | c2907525a31e84b2a70cdab6c5c5c4b1a5a153c0 | [] | no_license | ChoiKangM/replyWithDjango | 2b0685bf1f9934d0dcb48ac7525e8a6f41c46d2d | 2bdafabddfaca48b1b5b91cb09a3b7404e4472e7 | refs/heads/master | 2023-08-08T03:32:46.305187 | 2019-05-14T21:08:39 | 2019-05-14T21:08:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.1.8 on 2019-05-07 01:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
name='mainphoto',
field... | [
"choikm3847@gmail.com"
] | choikm3847@gmail.com |
f7ffd0f4812bee9b9bd47aa0f720b0e299eb38f3 | 14483184f0eabafab14f75a052a69e363f973f99 | /101.symmetric-tree.py | 80f9454d04af06824f3e4018d4db3b084a9ef349 | [] | no_license | DizzyYunxuan/Leetcode_answers | d38679935214597bae973a1fef03334005802819 | 9605165b684bc5a1299a418bb274dc0d3be117a6 | refs/heads/master | 2021-06-19T15:01:34.991783 | 2021-03-31T12:10:52 | 2021-03-31T12:10:52 | 196,497,506 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | #
# @lc app=leetcode id=101 lang=python3
#
# [101] Symmetric Tree
#
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def isSymmetric(self, root: TreeNode) -> bool:
return self.is... | [
"516488199@qq.com"
] | 516488199@qq.com |
00f589526d0fa2d4c1641fdcd926f14682be16c1 | 24a9c8f2fac4e2b20f731387336ec4e22d5fd2c7 | /司法题1/词云.py | d4b2be329075aba70d6f82c1eede21a6a482937d | [] | no_license | yunli45/pycharmProjectHome | 94833822e3036bf2baf8700c4493132e63177d4c | 9a382c060963eb801a3da07423e84a4132257b02 | refs/heads/master | 2020-05-23T23:35:20.476973 | 2019-05-16T09:45:58 | 2019-05-16T09:49:16 | 186,986,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | # -*- coding: utf-8 -*-
"""
# code is far away from bugs with the god animal protecting
I love animals. They taste delicious.
┏┓ ┏┓
┏┛┻━━━┛┻┓
┃ ☃ ┃
┃ ┳┛ ┗┳ ┃
┃ ┻ ┃
┗━┓ ┏━┛
┃ ┗━━━┓
... | [
"yunli_45@163.com"
] | yunli_45@163.com |
4396e7581798f07422042200815e7f3b1af1ea69 | b32300bf27d391fd9441cfbd9c86cd2943617e42 | /py_osm_cluster/util/coords.py | 8fedcd390dc44d775b94e294fe802641438b7c96 | [] | no_license | jakubwida/py_osm_cluster_bachelors | 71668552e5895ea7e0622d9fa54eb13ad264c31c | ea151268b184a38a6371c8df919fec7ef10cffaa | refs/heads/master | 2021-01-25T07:49:09.313509 | 2017-07-04T09:40:24 | 2017-07-04T09:40:24 | 93,666,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,144 | py |
class Coords:
def __init__(self):
self.labels = []
self.coords = []
self.c_number = 0
self.c_positions = []
def assimilate(self,other_coords):
self.coords = self.coords+other_coords.coords
self.c_number = self.c_number+other_coords.c_number
self.c_positions = self.c_positions+other_coords.c_positions... | [
"jakub.wida@outlook.com"
] | jakub.wida@outlook.com |
cc0502e3cab1bd6a7d5f807163d274ebcf5b5a7d | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/storsimple/get_manager_extended_info.py | f1ef7dd5ffdca94ce009fca602b31b92407d3c83 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,305 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
__al... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
2429afb1390e940a0538dd6d4cebf7258e4c4ab6 | f0181afd2eea9b086ce9487fb8d7fd949282140a | /perl/alignment/local_alignment.py | db92f56beb54b2cb64580db945895b78d465058e | [
"MIT"
] | permissive | linsalrob/EdwardsLab | 4a571676859c8b7238e733a0d3ad98ceb2e83c63 | 3c466acc07f1a56b575860ad26c92f900b272a53 | refs/heads/master | 2023-08-20T17:13:35.466103 | 2023-08-17T09:17:36 | 2023-08-17T09:17:36 | 25,702,093 | 36 | 25 | MIT | 2020-09-23T12:44:44 | 2014-10-24T18:27:16 | Python | UTF-8 | Python | false | false | 2,920 | py | __author__ = 'redwards'
import os
from array import array
from matrices import blosum62
def score(a, b):
blosum = blosum62()
if a in blosum and b in blosum[a]:
return blosum[a][b]
elif b in blosum and a in blosum[b]:
return blosum[b][a]
else:
sys.stderr.write("Can not score am... | [
"raedwards@gmail.com"
] | raedwards@gmail.com |
9222dbde7d346213b91034145a348a5cff4cbbf6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03161/s980102866.py | deba467f47fe65240ad40d992abb931cd5df9b26 | [] | 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 | 319 | py | if __name__ == '__main__':
n,k = map(int,input().split())
h = list(map(int,input().split()))
#TLE pypy
INF = 10**9
dp = [INF] * (n+1)
dp[0] = 0
k = min(k,n)
for i in range(1,n):
for j in range(1,k+1):
dp[i] = min(dp[i],dp[i-j]+abs(h[i]-h[i-j]))
print(dp[n-1])
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b0458242d96796db2944d822cfd3c245a1bd89f5 | 48616fb53c96dafed001ab264f819bad38769371 | /pydesica/src/plot_hist_death.py | 095c91df24e3a2541de58093361d3756ab945c71 | [] | no_license | mdekauwe/SE_AUS_drought_risk_paper | 1ee650ba9ef553dc062223c77277f66b5cb8721b | a908e82844ea5ecf927c1039dd0059a50027be9f | refs/heads/master | 2020-09-17T08:57:07.200626 | 2020-06-01T23:51:35 | 2020-06-01T23:51:35 | 224,061,720 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,100 | py | #!/usr/bin/env python
# coding: utf-8
"""
Plot the pixel output
That's all folks.
"""
__author__ = "Martin De Kauwe"
__version__ = "1.0 (12.03.2018)"
__email__ = "mdekauwe@gmail.com"
import pandas as pd
import sys
import numpy as np
import matplotlib.pyplot as plt
import os
import seaborn as sns
rf = pd.read_csv("o... | [
"mdekauwe@gmail.com"
] | mdekauwe@gmail.com |
0ab75df4472e4622b1a049811be92712ca4fc93a | d3170930a453d7f4ab62c4637f21e8e1d74ac971 | /axf/urls_order_apis.py | 9833c9dbe2456599f9cc0cf30e0d0f25e7c0eb66 | [] | no_license | whoareyou0401/1901axf_vue | 97fd03439ef919024832348f61ea3c1f5cf2469c | 4bb0fcf2000a624be294bbcfdbfc52895fedd36e | refs/heads/master | 2020-05-29T19:45:36.536110 | 2019-05-31T02:47:41 | 2019-05-31T02:47:41 | 189,338,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from django.conf.urls import url
from .order_apis import *
urlpatterns = [
url(r"^order$", OrderAPI.as_view()),
url(r"^confirm$", ConfirmOrder.as_view({"post":"confirm"})),
] | [
"1625211623@qq.com"
] | 1625211623@qq.com |
3fc13f2b5432026514c79268d90a33390a6b94bb | f949cf76d051abb911be3e3adbfe777aa6f9fc95 | /code1/analysis/loadFactor_vs_collision_test_speed.py | 2764cb51d46d32ff4500dd5c9ad782dc7db8ac44 | [] | no_license | xeniaqian94/11711-Algorithm-for-NLP | ae8137849654ccdd77b2da059a955eeecc71e76f | f63743ecb937231835ea394a8ad64d876346f802 | refs/heads/master | 2021-01-23T23:12:21.073989 | 2017-11-12T21:31:17 | 2017-11-12T21:31:17 | 102,955,520 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | import sys
import re
import matplotlib.pyplot as plt
# python loadFactor_vs_collision_test_speed.py ../loadFactor_log ../plot/loadFactor_vs_collision_test_speed
f=open(sys.argv[1],"r")
loadFactor=[]
testTime=[]
ratio_bigram=[]
ratio_trigram=[]
prev_line=""
for line in f.readlines():
if (re.match(r"^load factor (... | [
"xeniaqian94@gmail.com"
] | xeniaqian94@gmail.com |
aacab90637ea6957ea3d6e2c1ea9b511bf075c02 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/2510.py | 337278eb13b6bb47614cb3a25617d675dc147176 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | class TicTac():
blen=range(4)
def __init__(self,inBoardStr):
self.board=[]
for (crow,cline) in zip(self.blen,inBoardStr.split('\n')):
cbline=[clet.upper() for (ccol,clet) in zip(self.blen,cline)]
self.board+=[cbline]
def checkwin(self):
if self.checkvic('X'): return 'X won'
if self.checkvic('O... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
35fa7fe8cb27b270e1efe832507fc58db96eee12 | 29dcd6c3475acde11bfc8dd7b6826ffddb40e1ab | /Week7Python/Week7/randomAverageSumMaxMin.py | 8c0c8ac3b260f0158a0d860e0aaeec63863337ca | [] | no_license | quangdbui9999/CS-171 | 24ca7f7f27847c7b729d74b2c85abc0464cd8c1a | 963b2e83e6939703ca2b7617941e5fc04d374570 | refs/heads/master | 2022-09-18T13:11:38.619101 | 2020-06-07T22:51:51 | 2020-06-07T22:51:51 | 270,453,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | def main():
fileName = "randomNumber.txt"
file = open(fileName, "r")
getSum = 0
average = 0
maxNumber = -1
minNumber = 1000
for i in range(0, 1000):
line = file.readline()
number = int(line)
getSum += number
if(number < minNumber):
minNumb... | [
"noreply@github.com"
] | quangdbui9999.noreply@github.com |
dab23a2f681f7e8d2b14073564382513078fd1e1 | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/1808084/homework01/program02.py | 649e76a862e1916832e6b105fcdaf485735f8fd4 | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 19 17:55:21 2017
@author: Lorenzo
"""
''' In determinate occasioni ci capita di dover scrivere i numeri in lettere,
ad esempio quando dobbiamo compilare un assegno.
Puo' capitare che alcuni numeri facciano sorgere in noi qualche dubbio.
Le perplessita' nascono sopratt... | [
"a.sterbini@gmail.com"
] | a.sterbini@gmail.com |
67c4fcf63b42d176656a5364095de76ee9f01326 | 69bcc45028038351a7f891025df1f8e7d4b855f1 | /pipeline/0x02-databases/33-schools_by_topic.py | 17fb419f2a03fb8de363b332cb2bff9883340c20 | [] | no_license | linkjavier/holbertonschool-machine_learning | 6db799844821d450fed2a33a8819cb8df0fef911 | c7b6ea4c37b7c5dc41e63cdb8142b3cdfb3e1d23 | refs/heads/main | 2023-08-17T21:00:24.182003 | 2021-09-09T05:47:06 | 2021-09-09T05:47:06 | 304,503,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | #!/usr/bin/env python3
""" Where can I learn Python? """
def schools_by_topic(mongo_collection, topic):
""" Function that returns the list of school having a specific topic """
return list(mongo_collection.find({"topics": {"$all": [topic]}}))
| [
"linkjavier@hotmail.com"
] | linkjavier@hotmail.com |
17c40c0786dd78ceab94a787c68a02c570d12f07 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/E/elie222/fantasy_football_-_premierleaguecom_cleaner_versio.py | 7f72eb5eacdfb0f99c528de816d9ca166b44d636 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,216 | py | import scraperwiki
import json
from datetime import date
for i in range(1,1000):
try:
jsonPage = scraperwiki.scrape('http://fantasy.premierleague.com/web/api/elements/%d/'%(i))
playerObj = json.loads(jsonPage)
data = {}
data["code"] = playerObj["code"]
data["transfers_balanc... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
a49f0908a19d55d7b3eee998f7ebec8be51c1ee0 | 37a92a9c4b03c9a8d485413ea0ca804c3860e4b2 | /multi-label-cls/util.py | 44259f234cdee61a0f420ee0d9681720d64aa6d2 | [
"Apache-2.0"
] | permissive | JulianYu123456/icnn | 0502950f281fdf6fdee3ed430bbbcf6250bc299c | 0aaf4b5cd13d71d98b0d05f367e1f71657ea6eb8 | refs/heads/master | 2021-04-17T08:39:18.704713 | 2020-04-05T08:45:59 | 2020-04-05T08:45:59 | 249,430,014 | 0 | 0 | Apache-2.0 | 2020-03-23T12:52:24 | 2020-03-23T12:52:24 | null | UTF-8 | Python | false | false | 441 | py | import numpy as np
import sklearn
from sklearn.metrics import f1_score
def macroF1(trueY, predY):
# trueY and predY should be (nExamples, nLabels)
predY_bin = (predY >= 0.5).astype(np.int)
trueY_bin = trueY.astype(np.int)
# The transpose is here because sklearn's f1_score expects multi-label
# data... | [
"bamos@cs.cmu.edu"
] | bamos@cs.cmu.edu |
53c0b78d84a3165bf0d2d3d584bc9787c6f5e5f8 | ad4c2aa0398406ccb7e70562560e75fa283ffa1a | /inorder-successor-in-bst/inorder-successor-in-bst.py | c32fe6518bfadb60f56d65c472aab78b0a7dea4b | [
"Apache-2.0"
] | permissive | kmgowda/kmg-leetcode-python | 427d58f1750735618dfd51936d33240df5ba9ace | 4d32e110ac33563a8bde3fd3200d5804db354d95 | refs/heads/main | 2023-08-22T06:59:43.141131 | 2021-10-16T14:04:32 | 2021-10-16T14:04:32 | 417,841,590 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | // https://leetcode.com/problems/inorder-successor-in-bst
# 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 inorder_successor(self, root, p , found):
nod... | [
"keshava.gowda@gmail.com"
] | keshava.gowda@gmail.com |
40b04c99c8cc4e9c2cac9d79520874d3404d15ea | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_blarneying.py | d66e3c6b974c393c850ae6c85b2b91e1dacb8a8a | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
#calss header
class _BLARNEYING():
def __init__(self,):
self.name = "BLARNEYING"
self.definitions = blarney
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['blarney']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
92578a4d2ea658a02029df6288200900ba1d402a | dacf092e82b5cc841554178e5117c38fd0b28827 | /day6/session_6.1.py | dacdb0f52bdb94e716e19f74900a9dfb4b077b57 | [] | no_license | RainMoun/python_programming_camp | f9bbee707e7468a7b5d6633c2364f5dd75abc8a4 | f8e06cdd2e6174bd6986d1097cb580a6a3b7201f | refs/heads/master | 2020-04-15T11:27:09.680587 | 2019-04-06T02:21:14 | 2019-04-06T02:21:14 | 164,630,838 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | menu_university = {
'浙江': {
'杭州': {
'下沙区': {
'杭州电子科技大学': {},
'浙江工商大学': {},
'浙江理工大学': {}
},
'西湖区': {
'浙江大学': {},
},
},
'宁波': {
'江北区': {
'宁波大学': {}
... | [
"775653143@qq.com"
] | 775653143@qq.com |
479041b670289ff52f5224e1e10b9ca4dbdbae7f | c22a4957e6874b23f771d8174794ee4e31c5c792 | /2_Tuples_and_sets/11. Longest Intersection.py | 9f484292a01107c26761fd1b903ef54d82b3896a | [] | no_license | GalyaBorislavova/SoftUni_Python_Advanced_May_2021 | d57ff7f6480c9011190bb52880bb1fe48298fcdb | 67ad5acd43acc90042b3ac0fd5a8f4fe81bc0f53 | refs/heads/main | 2023-06-14T22:00:21.904387 | 2021-07-07T06:15:08 | 2021-07-07T06:15:08 | 381,794,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | def input_to_list(count):
lines = []
for _ in range(count):
line = input()
if " " in line:
data = line.split()
for el in data:
lines.append(el)
else:
lines.append(line)
return lines
n = int(input())
input_sequences = input_to_list... | [
"galyaborislavova888@gmail.com"
] | galyaborislavova888@gmail.com |
54ab222cfbc270bfb8f73f764064bcca188236eb | 1f6cdaead83b425ba2fda2b8b4f9eb1d03d97426 | /app/models/skill.py | 12d070e18395fda9465c6eb7791077266148341f | [] | no_license | simpuid/cvbuilder | 3291f18a52bc5cdceb81d000e418c8c74ba3680d | c27cb0cfec0b8fc19245deb957b577a1e789db64 | refs/heads/master | 2023-01-01T08:13:55.755812 | 2020-10-30T21:55:37 | 2020-10-30T21:55:37 | 306,163,829 | 0 | 2 | null | 2020-10-28T18:20:31 | 2020-10-21T22:36:52 | Python | UTF-8 | Python | false | false | 1,109 | py | from db import execute, fetch
class Skill:
def __init__(self, uid: int, skill_list: list):
self.id = uid
self.skill_list = skill_list
def update(self, index, skill_name):
if skill_name != self.skill_list[index]:
self.delete(index)
self.add(skill_name)
def dele... | [
"prathameshkatkar11@gmail.com"
] | prathameshkatkar11@gmail.com |
655329fb24105ab3d49e79b703e9372d94130f5d | 73a5eca1ddee1d74a3c2be9ca4e5e67ebe3d16f7 | /src/util/main.py | 268fafaef1f85aa7a5b43a86fbd49cf82644a789 | [
"MIT"
] | permissive | ychnlgy/Chebyshev-Lagrange | 34346692a2925cde620377e8fbcb8d588623fac7 | 74292e72b83f992d6c42a2f2db04dfdce5a52aea | refs/heads/master | 2020-05-23T06:20:10.831035 | 2020-02-12T16:31:38 | 2020-02-12T16:31:38 | 186,661,893 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | MAIN = "__main__"
def main(name=None):
def main_wrapper(prog):
if name == MAIN:
import sys
args = dict([d.split("=") for d in sys.argv[1:]])
prog(**args)
return prog
if callable(name):
prog = name
name = MAIN
... | [
"ychnlgy@gmail.com"
] | ychnlgy@gmail.com |
fbd858342f10655883bdb5247be8b585be37030b | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/GetAuditLogsRequest.py | 6103a63b5d1ff06daa042f0bb7494e9c42ca2bce | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 2,948 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
212d8d6048601c474ec7d30cb6db83bb7e054684 | c6a4069e265325e836e4ee79fae0f5490f1a1c47 | /tests/test_fight.py | e8c2d1ee8f3ae4f2bede2c65675418e6c0ac5f38 | [] | no_license | astoeff/clean-code-course-project | b2ca1d10b226ea95b602d2535810c9af5aadb244 | 2b64956ea1b33cba405ccd500bf1a5472a65e9c4 | refs/heads/master | 2022-11-19T05:04:20.992189 | 2020-07-17T17:12:59 | 2020-07-17T17:12:59 | 274,676,681 | 0 | 0 | null | 2020-07-17T17:13:00 | 2020-06-24T13:32:49 | Python | UTF-8 | Python | false | false | 6,529 | py | import unittest
from main.models.hero import Hero
from main.models.enemy import Enemy
from main.fight import Fight
from main.treasures.weapon import Weapon
from main.constants import (FIGHT_INITIAL_INFORMATION_PART, FIGHT_HERO_CANNOT_ATTACK_INFORMATION_PART,
FIGHT_HERO_ATTACK_INFORMATION_PAR... | [
"antoni.1998@abv.bg"
] | antoni.1998@abv.bg |
bec6065716cd4195abdc899d00334578c3a51678 | c81ea73e93df307d35191ab184a85d6c67c57112 | /dockers/mvcnn2/Model.py | 33a386975482c00e07a61ec744468d7c35b5098f | [] | no_license | BlenderCN-Org/diplomka | 8d0503fc5902dfede8317aed84f5a17f691f687f | 575fe3f2436b9c511496c1dc019d9cc3423ba5f0 | refs/heads/master | 2020-05-22T15:42:00.143738 | 2019-05-07T07:37:46 | 2019-05-07T07:37:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import torch
import torch.nn as nn
import os
import glob
class Model(nn.Module):
def __init__(self, name):
super(Model, self).__init__()
self.name = name
def save(self, file):
torch.save(self.state_dict(), file)
def save_results(self, path, data):
raise NotImplementedEr... | [
"miroslavkrabec@seznam.cz"
] | miroslavkrabec@seznam.cz |
d0c3a1f5eb693cf578a1067dd019d36cfe2056e1 | b7b243902150a1aa5b774523ac01d7016de13477 | /cyc/math/628.py | aff725b4b44ac4e418c1fa95533e1c5c2ce2506c | [] | no_license | Veraph/LeetCode_Practice | 7e97a93464911a1f33b3133043d96c88cd54016a | eafadd711f6ec1b60d78442280f1c44b6296209d | refs/heads/master | 2023-03-23T11:49:19.046474 | 2021-03-18T02:22:50 | 2021-03-18T02:22:50 | 273,317,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | # 628.py -- Maximum Product of Three Numbers
'''
Given an integer array, find three numbers whose product is maximum and output the maximum product.
'''
def maximumProduct(nums):
'''
read the description carefully.
be careful about the negative nums.
'''
nums.sort(reverse=True)
# two situation... | [
"jmw3531@live.com"
] | jmw3531@live.com |
e63722dcf8d043c89d4fba02b0bbade77d3104dd | b6f377fce8b8d63bd00b5c10485439ddba7f0717 | /server/__init__.py | de758ecbe3217f05fdf7f2e0f9d10f567b7f74a0 | [
"MIT"
] | permissive | HackCameroon/Coronalert | 9635d041e92f59fccaaac1e71f01c0f9cf347c2e | df7d66bec147ea1f47105102582bc25469e4bee2 | refs/heads/master | 2022-04-12T08:52:30.442765 | 2020-04-08T19:21:54 | 2020-04-08T19:21:54 | 262,270,364 | 1 | 0 | MIT | 2020-05-08T08:37:15 | 2020-05-08T08:37:14 | null | UTF-8 | Python | false | false | 2,879 | py | from flask import Flask, render_template
# from flask_jwt_extended import JWTManager
from flask_sqlalchemy import SQLAlchemy
from twilio.rest import Client
from flask_migrate import Migrate
import os
STATIC_FOLDER = "../client/build/static"
TEMPLATE_FOLDER = "../client/build"
CONFIG_FILE = "./config.py"
CONFIG_EXA... | [
"justinyu1618@gmail.com"
] | justinyu1618@gmail.com |
48b71cb3fb8bc7bb76a91b40b2ce5b27e47ffabb | bc441bb06b8948288f110af63feda4e798f30225 | /cmdb_extend_sdk/api/instance/get_instances_pb2.pyi | 171bdfbd8163b6e22ba892a60c71cc8a169b7012 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,195 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
bb7bb7ba73a4dbedb7c358b976265b17ddd63cf5 | 249ae31366937f62e048f0fb858028432a2ec769 | /apple-and-orange.py | 8840c4437d9f1690530d6de43c8ebc2fb7893f58 | [] | no_license | Mayurg6832/HackerRank-Problem-solving | 198dccade1c79a5573362f8d656d447910ff1053 | c8f2719f2728ed227e4f6ffea00163ddd8e17163 | refs/heads/master | 2022-10-12T22:36:29.500145 | 2020-06-10T09:18:49 | 2020-06-10T09:18:49 | 244,108,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | s,t=map(int,input().split())
a,b=map(int,input().split())
m,n=map(int,input().split())
apple=list(map(int,input().split()))
orange=list(map(int,input().split()))
countA=0
countO=0
for i in range(len(apple)):
temp=a+apple[i]
if temp in range(s,t+1):
countA+=1
for i in range(len(orange)):
temp=b+oran... | [
"noreply@github.com"
] | Mayurg6832.noreply@github.com |
d32de0ad23b35433aeaaee25ab27bdb519c0dfdb | ebbe9b78464976119e619d683aa1f6b370508ba7 | /testdrf/tdrf/wsgi.py | 824146f6d0f901ec80ed48a580c2fb5e85a9162e | [] | no_license | taojy123/openapi_speech | bc98dda45ba913b3408b5649a5c574b5badd21f0 | 751dde6b952c08d09bb6c7cbc0e65040fa2498e7 | refs/heads/master | 2022-11-07T14:03:32.104921 | 2020-06-27T15:19:19 | 2020-06-27T15:19:19 | 271,430,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for tdrf project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"taojy123@163.com"
] | taojy123@163.com |
52cc571ad9fd0579f0fdcb429ce18b6da15f9104 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/85/usersdata/174/55054/submittedfiles/funcoes1.py | 4d3c33384d44b3a8fcf1a02d2bb63d5e462d030d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | # -*- coding: utf-8 -*-
def crescente (lista):
#código da função crescente
for i in range(0,len(lista)-1,1):
contd=0
if lista[i]>lista[i+1]:
contd=contd+1
if (contd)!=len(lista)-1:
return True
else:
return False
def decrescente (lista)... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4c12c2b031f013b218218fdfe3a52bacb9141085 | d2ea8079864f6f0b99937645c2d4cab8817e75f8 | /05_lekcja6OperacjeNaPlikach/Zad6Karty.py | ae96e5509ce0b2438c098833c86ccf03a29cb229 | [] | no_license | FlyingMedusa/PythonCourse | ea960ab20415180d6e164abf4af5619ad9d256fb | 4be6ffd1054b25285205d19987fb0fade0f72c14 | refs/heads/master | 2022-04-09T15:59:38.742786 | 2020-02-12T17:49:56 | 2020-02-12T17:49:56 | 213,706,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | def is_visa(is_card, number):
if is_card == False:
return False
if len(number) == 16 or len(number) == 13:
if card_number[0] == '4':
return True
def is_mastercard(is_card, number):
if is_card == False:
return False
if len(number) == 16:
if int(number[0:2]) i... | [
"sleboda.m98@gmail.com"
] | sleboda.m98@gmail.com |
5a1775df5cda2474ee302d546f93b09146350649 | ab8a34e5b821dde7b09abe37c838de046846484e | /twilio/sample-code-master/taskrouter/v1/task_queues_statistics/read-default/read-default.6.x.py | e63be41889aa29f493efff5404bcbd35336aaf55 | [] | no_license | sekharfly/twilio | 492b599fff62618437c87e05a6c201d6de94527a | a2847e4c79f9fbf5c53f25c8224deb11048fe94b | refs/heads/master | 2020-03-29T08:39:00.079997 | 2018-09-21T07:20:24 | 2018-09-21T07:20:24 | 149,721,431 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
statistics = client.taskrou... | [
"sekharfly@gmail.com"
] | sekharfly@gmail.com |
376231c1647b7584c2972dbc259b12d4122f151e | 2761d1c5563950f919953240e569dd7397ad2a28 | /clip/ViT-B-32-cpu/code/__torch__/torch/nn/modules/linear/___torch_mangle_9547.py | 2f0fb6831db918b275671b098939d68f5e4e1cbe | [
"MIT"
] | permissive | shawwn/CLIP | c8e65523481d4f48852600eda1909a853f46bc05 | ba33b4eb956e6f507b4b39468b3b7336ac2260a1 | refs/heads/main | 2023-02-21T13:03:51.522948 | 2021-01-16T03:45:59 | 2021-01-16T03:45:59 | 327,780,194 | 6 | 2 | null | 2021-01-08T02:41:08 | 2021-01-08T02:41:08 | null | UTF-8 | Python | false | false | 646 | py | class Linear(Module):
__parameters__ = ["weight", "bias", ]
__buffers__ = []
weight : Tensor
bias : Tensor
training : bool
def forward(self: __torch__.torch.nn.modules.linear.___torch_mangle_9547.Linear,
argument_1: Tensor) -> Tensor:
_0 = self.bias
output = torch.matmul(argument_1.float(), torc... | [
"shawnpresser@gmail.com"
] | shawnpresser@gmail.com |
d2f0dd4e289f55fd0a8ef460b27fab5cd1d64156 | e7005d4b461c7dfc9f660dff642892cbb7b66948 | /docker/server/project/app/controller/monitoring/views.py | fbef82c64d0eb24efffc86b35f83c41891006ae4 | [] | no_license | ardikabs/fipro-core | 963ca6e73dc9a961e94be7681fa919058acc414a | 123ecad130fbf103b69604343fff96486419998c | refs/heads/master | 2022-12-13T14:00:34.463893 | 2019-07-05T07:42:01 | 2019-07-05T07:42:01 | 130,592,675 | 5 | 0 | null | 2022-12-08T02:33:05 | 2018-04-22T17:50:06 | CSS | UTF-8 | Python | false | false | 6,857 | py |
import datetime
import pytz
import json
from bson import json_util
from flask import (
current_app,
jsonify,
render_template,
request,
redirect,
url_for,
flash,
make_response
)
from flask_login import (
current_user,
login_required
)
from . import monitoring
from app.ut... | [
"ardikabs@gmail.com"
] | ardikabs@gmail.com |
9e4b180c96b1b6d9c029b8758dfdd177d8f91d11 | a54d5a5ae5ba352963f1166a29e1bb6c867157ab | /python/test/test_cumulative_list_sum.py | 2dd93e2dfe24d60ecabdb6d3b8f14108116ddf67 | [] | no_license | alephist/edabit-coding-challenges | 06f573e90ffbd13bc54ecbdaa8e6a225aa44f5d8 | 35f1fc84848fc44e184aae1ae231a36319c1c81e | refs/heads/main | 2023-07-30T22:39:37.468756 | 2021-09-18T07:47:02 | 2021-09-18T07:47:02 | 341,467,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | import unittest
from typing import List, Tuple
from cumulative_list_sum import cumulative_sum
test_values: Tuple[Tuple[List[int], List[int]]] = (
([], []),
([1], [1]),
([1, 2, 3], [1, 3, 6]),
([-1, -2, -3], [-1, -3, -6]),
([1, -2, 3], [1, -1, 2]),
([3, 3, -2, 408, 3, 3, 0, 66, 2, -2, 2, 3, 4,... | [
"justin.necesito@gmail.com"
] | justin.necesito@gmail.com |
8988b99c5aee861a7932799ddd6ef9b5e4ae0eb2 | 669f4fd966fd6068c9658a87fea3545e96df2285 | /mask_tools.py | 0d8c1711e31e27d14cb53d3e6511168301a80bae | [
"LicenseRef-scancode-public-domain"
] | permissive | wtfuzz/kaggle-dsbowl-2018-dataset-fixes | 23927bad32b20beb6567e0f27c0af452bd3c4cf2 | 72b505fa661cde4e4b1a16198e71f16f1dd94fd1 | refs/heads/master | 2021-09-09T21:19:42.181400 | 2018-03-19T19:16:11 | 2018-03-19T19:16:11 | 125,908,151 | 0 | 0 | null | 2018-03-19T19:14:26 | 2018-03-19T19:14:26 | null | UTF-8 | Python | false | false | 2,181 | py | #!/usr/bin/env python3
import argparse
from pathlib import Path
import numpy as np
from PIL import Image
def create_masks():
""" Create masks from red color above original image.
"""
parser = argparse.ArgumentParser()
parser.add_argument('root')
args = parser.parse_args()
root = Path(args.roo... | [
"kostia.lopuhin@gmail.com"
] | kostia.lopuhin@gmail.com |
e188fbadc4084e203a34f001c1a6c864b6c16e49 | 33518b9521d8e633010b0b9d1ea0f7a937437200 | /Python/rotate_list/rotate_list.py | 3ecf8c4f8d6e4e343598e87bf7f9176d4bd68aa5 | [] | no_license | lqs4188980/CodingPractice | 977ddb69306c92a5e3df88f26572200622fad82a | c17653832269ab1bb3e411f7d74bef4c8e9985b3 | refs/heads/master | 2021-01-22T05:10:40.885490 | 2016-02-05T09:06:51 | 2016-02-05T09:06:51 | 25,272,652 | 0 | 1 | null | 2016-01-06T07:50:29 | 2014-10-15T20:40:34 | Java | UTF-8 | Python | false | false | 551 | py | class Solution(object):
def rotateRight(self, head, k):
if head is None:
return head
l = 0
p = head
while p:
l += 1
p = p.next
k %= l
if k == 0:
return head
i, p = l-k, head
while i:
i -= 1
... | [
"xiaoqin.zhu.4@gmail.com"
] | xiaoqin.zhu.4@gmail.com |
7ca4eecfe2397f0d485aeda40315a32a0818623e | 8a9dbfd7c2213652265269838ca9c15aad66a66f | /class-20161005/report/정동휘_식품생명공학과/grade_calculator.py | 9b0a53ccdbdcbbbbfb0588a42552fc3dd5fb7f8c | [] | no_license | askdjango/snu-web-2016-09 | 48ba3b0301be1e0f05f1e630dcfecac51827e779 | eaf703cc3ff7ddf3795a636ad1631624a87a9b70 | refs/heads/master | 2020-02-26T14:23:00.495594 | 2016-12-19T11:51:45 | 2016-12-19T11:51:45 | 68,677,254 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | result = {}
for i in range(1, 4):
name = input('{} 번째 학생 이름은? '.format(i))
ko_score = int(input('{}님의 국어 시험 점수는? '.format(name)))
en_score = int(input('{}님의 영어 시험 점수는? '.format(name)))
math_score = int(input('{}님의 수학 시험 점수는? '.format(name)))
result[name] = {
'ko_score': ko_score,
... | [
"allieuslee@gmail.com"
] | allieuslee@gmail.com |
a718fb9f186e8c294058abca07778ec93045f6d0 | af9268e1ead8cdb491868c14a2240d9e44fb3b56 | /last-minute-env/lib/python2.7/site-packages/django/db/migrations/utils.py | 7ce4ca8663c3ddcf8da046cd7f1629f47a953275 | [] | no_license | frosqh/Cousinade2017 | d5154c24c93ca8089eeba26b53c594e92cb6bd82 | c34d5707af02402bf2bb7405eddc91297da399ff | refs/heads/master | 2021-01-20T07:57:34.586476 | 2017-10-22T18:42:45 | 2017-10-22T18:42:45 | 90,074,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | import datetime
import re
COMPILED_REGEX_TYPE = type(re.compile(''))
class RegexObject(object):
def __init__(self, obj):
self.pattern = obj.pattern
self.flags = obj.flags
def __eq__(self, other):
return self.pattern == other.pattern and self.flags == other.flags
def ... | [
"frosqh@gmail.com"
] | frosqh@gmail.com |
f3259a87df330e939839e295315c2a730bbcd3a1 | 221cada2354556fbb969f25ddd3079542904ef5d | /Leetcode/53.py | 542846f48674eb52b129579efcd4ee597d7cdaf6 | [] | no_license | syzdemonhunter/Coding_Exercises | 4b09e1a7dad7d1e3d4d4ae27e6e006732ffdcb1d | ca71572677d2b2a2aed94bb60d6ec88cc486a7f3 | refs/heads/master | 2020-05-24T11:19:35.019543 | 2019-11-22T20:08:32 | 2019-11-22T20:08:32 | 187,245,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # https://leetcode.com/problems/maximum-subarray/
'''
# T: O(n)
# S: O(n)
class Solution:
def maxSubArray(self, nums: List[int]) -> int:
dp = [0]*len(nums)
dp[0] = nums[0]
result = dp[0]
for i in range(1, len(nums)):
if dp[i - 1] < 0:
dp[i] = nums[i]
... | [
"syzuser60@gmail.com"
] | syzuser60@gmail.com |
425c558f56bc92363d78905ea0157a314eb024a5 | 07539ecbcee0488ce4a0eb779583da3149cfac7b | /amonone/mail/models.py | 0c56dda41c125c637c4a429143771a2b70ceaf09 | [
"MIT"
] | permissive | outbounder/amonone | e151584ac38222b40c314d586ebadc4e0f43fce1 | 985fa147c1d98a4f57ff33ebd37ca0d938fe674d | refs/heads/master | 2020-12-25T13:33:46.425826 | 2013-07-11T08:54:32 | 2013-07-11T08:54:32 | 11,389,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | from amonone.web.apps.core.basemodel import BaseModel
class EmailModel(BaseModel):
def __init__(self):
super(EmailModel, self).__init__()
self.collection = self.mongo.get_collection('email_settings')
def save_email_details(self, data=None):
self.collection.remove()
self.collection.insert(data)
def get_e... | [
"martinrusev@zoho.com"
] | martinrusev@zoho.com |
1ee375c9ad6c64d94fa46b81938f9ace48c32246 | 83277e8b959de61b655f614b7e072394a99d77ae | /venv/lib/python3.7/site-packages/graphql/validation/rules/__init__.py | 056a530de90b0f265b8512ca66debc4458dbc8f6 | [
"MIT"
] | permissive | hskang9/scalable-django | b3ed144670c3d5b244168fdd38f33e1f596253c0 | 162e0f4a3d49f164af1d33298fa9a47b66508cbf | refs/heads/master | 2023-04-29T05:33:23.460640 | 2020-03-27T00:55:28 | 2020-03-27T00:55:28 | 247,036,359 | 2 | 1 | MIT | 2023-04-21T20:53:08 | 2020-03-13T09:40:37 | Python | UTF-8 | Python | false | false | 2,910 | py | from .arguments_of_correct_type import ArgumentsOfCorrectType
from .default_values_of_correct_type import DefaultValuesOfCorrectType
from .fields_on_correct_type import FieldsOnCorrectType
from .fragments_on_composite_types import FragmentsOnCompositeTypes
from .known_argument_names import KnownArgumentNames
from .know... | [
"hyungsukkang@Hyungsuks-Mac-mini.local"
] | hyungsukkang@Hyungsuks-Mac-mini.local |
00b09bb07ee546d00b56dca37a774c559f81dda9 | 6982c3c54ee9199d93fb89c61cfdcba15b9b7012 | /exercise/git_exercises/visitors_book/visitors_book/wsgi.py | 20d31dac8eebd8eb05a5e3d496a59265370e9973 | [] | no_license | gzgdouru/python_study | a640e1097ebc27d12049ded53fb1af3ba9729bac | e24b39e82e39ee5a5e54566781457e18c90a122a | refs/heads/master | 2020-03-29T11:33:13.150869 | 2019-03-08T09:24:29 | 2019-03-08T09:24:29 | 149,858,658 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
WSGI config for visitors_book project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"18719091650@163.com"
] | 18719091650@163.com |
8fd124b553f30e34b2daea187d61f7717b22fa81 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/vns/range.py | ebba918f860a70b9f9534be38894aba409af3ada | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,551 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
7a585e2db5523b1ba1a9cca50833de40373101ac | cdbd54f19b28c651e1945f4514a2a2a5431d4753 | /myspider/myspider/settings.py | fe55396cdd58a2b20c9a62c340c9ed8b6be7bf33 | [] | no_license | Knowledgeofitselfisriches/spider | 8ccc7e928da00dc7b53159fb53d6f38b16316ee9 | 797736b6ac850532efe42d9e60524d612d99ad02 | refs/heads/master | 2020-03-27T08:41:06.005591 | 2018-09-11T05:48:10 | 2018-09-11T05:48:10 | 146,277,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | # -*- coding: utf-8 -*-
# Scrapy settings for myspider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topi... | [
"283658013@qq.com"
] | 283658013@qq.com |
5f36f7b5a2f455751488b2ddc7cfe19638b20074 | 7913bf8dee268d0ed0a96b6ef359abac24f4e613 | /code/backend/billing/migrations/0002_auto_20200512_1158.py | 34b08f9bf77070850a866489ba0306dbd6f8e330 | [
"MIT"
] | permissive | dorinapall/noe | 724236813fc130be550b80bb1701293c4d2775eb | 6d5682ab00a2cdc5cb419ecab57804c9f70d7b3a | refs/heads/master | 2022-11-11T17:29:22.365369 | 2020-06-18T09:12:58 | 2020-06-18T09:12:58 | 273,198,257 | 1 | 0 | MIT | 2020-06-18T09:35:22 | 2020-06-18T09:35:21 | null | UTF-8 | Python | false | false | 567 | py | # Generated by Django 3.0.5 on 2020-05-12 09:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('appointments', '0003_seat_doctor_name'),
('billing', '0001_initial'),
]
operations = [
migrations.A... | [
"kissgyorgy@me.com"
] | kissgyorgy@me.com |
1f3a93ff2a1c44f7c16ced6b39a02975fae54761 | 3ba2d4091332b9d0a2b053f15a4d4ce4ae1c1ef0 | /中等148. 排序链表.py | 91439c6553ea5b008723b9dca4e9aafa03ea40cd | [] | no_license | ganhan999/ForLeetcode | 126272d34250035abda6c2d67222c2c186a3f80b | 9980a9e4bf448b2cf3fed98891a54b6d202a64db | refs/heads/master | 2023-05-01T14:21:49.883692 | 2021-05-12T08:59:51 | 2021-05-12T08:59:51 | 348,708,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | """
给你链表的头结点head,请将其按 升序 排列并返回 排序后的链表 。
进阶:
你可以在O(nlogn) 时间复杂度和常数级空间复杂度下,对链表进行排序吗?
示例 1:
输入:head = [4,2,1,3]
输出:[1,2,3,4]
示例 2:
输入:head = [-1,5,3,4,0]
输出:[-1,0,3,4,5]
示例 3:
输入:head = []
输出:[]
"""
"""
合并排序,利用递归,自上而下
"""
#大神做法1
class Solution:
def sortList(self, head: ListNode) -> ListNode:
def sort... | [
"940320304@qq.com"
] | 940320304@qq.com |
053856ce397586ba9db58c2ae9a1b73ace95139a | 82a42645c35b43542c63afb28d3dd0f891d71982 | /Stack_and_Queue/RedundantBraces.py | ec0bbb178edbfe11e9042351476d23c7e96b773f | [] | no_license | nehatomar12/Data-structures-and-Algorithms | 54e48ecd3cd360ff4ea0196243e4a8b4cdf6181f | b9566764de4faa0e95a4dfe90fe46f843ade4a8c | refs/heads/master | 2023-03-01T01:28:55.581679 | 2021-02-09T08:07:47 | 2021-02-09T08:07:47 | 292,843,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | """
Given a string A denoting an expression. It contains the following operators ’+’, ‘-‘, ‘*’, ‘/’.
Chech whether A has redundant braces or not.
Return 1 if A has redundant braces, else return 0.
Note: A will be always a valid expression.
Input 1:
A = "((a + b))"
Output 1:
1
Explanation 1:
((a +... | [
"neha.tomar@M305393FCHTDF.community.veritas.com"
] | neha.tomar@M305393FCHTDF.community.veritas.com |
7e1cef525621e6e50f5dd544e860b0e514055996 | be1619e4ef51753443fbc82dedcd9bb5c32749ab | /migrations/tests/loader_files/app2/0001_initial.migration.py | 945e1b041c80a3593d661466e63eee2da73c15f9 | [] | no_license | PeterUSA123/migrations | 5264ea0deed4dc8670f54a6abdf5000439e10cb4 | 7e5dfb7c32970d9f2163d779a2e225feb123c740 | refs/heads/master | 2020-09-10T07:39:25.911462 | 2012-09-04T18:51:15 | 2012-09-04T18:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from migrations.api import *
class Migration(BaseMigration):
actions = [
CreateModel(
name = "Book",
fields = [
("title", Field("django.db.models.fields.CharField", [], {"max_length": "100"})),
("author", Field("django.db.models.fields.related.Forei... | [
"andrew@aeracode.org"
] | andrew@aeracode.org |
f0d8898bd3cd604ac6df4be28d7ffbec78e9e395 | 20d9130fdc21756c4f8fe255583922352f5c5762 | /src/DIRAC/Interfaces/scripts/dirac-framework-ping-service.py | 651aab2405ce29d834f1054882fa688175e87666 | [] | no_license | bopopescu/bes3-jinr | 095314e43f41f08bd48b248fe3ca627a5c009f58 | fdfd852c92a56192b8ee9970b66f0136e6e0afff | refs/heads/master | 2022-11-26T06:01:36.718508 | 2014-03-17T06:03:50 | 2014-03-17T06:03:50 | 282,113,617 | 0 | 0 | null | 2020-07-24T03:30:10 | 2020-07-24T03:30:09 | null | UTF-8 | Python | false | false | 1,430 | py | #!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-framework-ping-service
# Author : Stuart Paterson
########################################################################
"""
Ping the given DIRAC Service
"""
__RCSID__ = "55b8255 (2010-12-14... | [
"gavelock@gmail.com"
] | gavelock@gmail.com |
531256a3754c73218f5f4197dfd5e7e094ed1479 | d1032c2b568daf02de5cf2e7aaa33a608ffd20e1 | /Basic/1097_16694268(AC).py | 3e843332f77134831cb1f74c8ffc85ec0998a1ce | [] | no_license | Junhyeok1015/Codeup | 267edef68113951019d28d311d38aa91d6677bde | ee5207528fd22689311c2941b94d7ac2480fe0cc | refs/heads/master | 2023-02-12T17:10:06.481196 | 2021-01-17T02:34:23 | 2021-01-17T02:34:23 | 326,317,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | list_ = []
for _ in range(19):
a = list(map(int, input().strip().split(" ")))
list_.append(a)
n = int(input())
for i in range(n):
a, b = list(map(int, input().strip().split(" ")))
for i in range(19):
if list_[a-1][i] == 0:
list_[a-1][i] = 1
else:
list_[a-1... | [
"mo223772@naver.com"
] | mo223772@naver.com |
285ca8ee864c495bce6ae6df87254098f6f3ae2e | 4f875744ccae8fa9225318ce16fc483b7bf2735e | /facebook/phoneScreen/romanToInteger.py | b8b2400a7a9d68417e8d3c8bc1fe8508c27053a0 | [] | 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 | 458 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 9 16:49:16 2019
@author: huyn
"""
def romanToInt(s: str) -> int:
d= {"I":1,"V":5,"X":10,"L":50,"C":100,"D":500,"M":1000}
if not s:
return 0
current = d[s[0]]
accumulate = d[s[0]]
for i in range(len(s)-1):
v = d[s[i+1]]
if v>cur... | [
"huyn@cvm6h4zv52.cvm.iastate.edu"
] | huyn@cvm6h4zv52.cvm.iastate.edu |
19a398780eab3ca00a2386b563a810fa549b5d18 | eadd15064aa74811e7a3718b617636627ef4fd47 | /web/migrations/0013_image_name.py | 197a63613795ccaf8996f8c4be245d15c0425935 | [] | no_license | topsai/plasrefine_backstage | 262f7bb032daa4d018aac1519e1139cb060c3f91 | 1eb34dd0b13ebdc2a42dd6ed1aaa2d08c18ab5fb | refs/heads/master | 2023-04-12T13:24:22.710108 | 2021-05-08T14:16:41 | 2021-05-08T14:16:41 | 361,993,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # Generated by Django 3.2 on 2021-04-30 14:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0012_websetting_about'),
]
operations = [
migrations.AddField(
model_name='image',
name='name',
fie... | [
"hurte@foxmail.com"
] | hurte@foxmail.com |
57b116ce2d853c1a87b2103a9ab456fb8fb82aa5 | 97d8d8f303545583e04356279b58c59e41bcb0e7 | /TransitAdScreen/settings/base.py | bf8535f899ce787bb222211c9c15aefdd5549c83 | [
"Apache-2.0"
] | permissive | 8secz-johndpope/transit-advertising-screen-cms | 2493c270022ac03b17e4b4b1e9b426f568d01ed5 | 9c27d4d7ed9fe598c1c48ca96ee5d10f619c8683 | refs/heads/master | 2022-09-24T13:44:07.056409 | 2019-10-17T16:40:21 | 2019-10-17T16:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,983 | py | """
Django settings for TransitAdScreen project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"raulsergio9@gmail.com"
] | raulsergio9@gmail.com |
3114d5b038163034c2754987fa9932c9df3025f7 | 07c4f43677af3c8384fd7dd2bd3498f80215625c | /async_worker/__init__.py | ee5e06e732c1aa9689d666bbde5e46a9066211be | [
"Apache-2.0"
] | permissive | cxy19941228/DeepRL | 4d898deede02047b4df0d48f40cb0e313137474a | 41627588fb2e37869a314ae1af0d272f3f302285 | refs/heads/master | 2021-08-08T07:56:04.830382 | 2017-11-09T23:38:42 | 2017-11-09T23:38:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from .actor_critic import *
from .continuous_actor_critic import *
from .n_step_q import *
from .one_step_sarsa import *
from .one_step_q import *
from .ppo import * | [
"zhangshangtong.cpp@icloud.com"
] | zhangshangtong.cpp@icloud.com |
93de096df8ef3defb9087ea670888bea064f46de | fa82dad9e83206d4630a55141bf44f50cbf0c3a8 | /day1_python/01_python200_src/093.py | d62211e665cf90be84d1cdc4d581519076449edf | [] | no_license | jsh2333/pyml | 8f8c53a43af23b8490b25f35f28d85f1087df28d | 157dfa7cc2f1458f12e451691a994ac6ef138cab | refs/heads/master | 2021-03-27T22:26:38.254206 | 2020-04-26T06:35:11 | 2020-04-26T06:35:11 | 249,114,580 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | url = 'http://www.naver.com/news/today=20160831'
log = 'name:홍길동 age:17 sex:남자 nation:조선'
ret1 = url.split('/')
print(ret1)
ret2 = log.split()
for data in ret2:
d1, d2 = data.split(':')
print('%s -> %s' %(d1, d2))
| [
"jsh2333@gmail.com"
] | jsh2333@gmail.com |
dbd174bfddafd6ac8f11846488ad2bd44d95b29e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04044/s849053305.py | 0b1342b80952e0cfcb0dc7796192d0f3752b6f68 | [] | 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 | 374 | py | # row = [int(x) for x in input().rstrip().split(" ")]
# n = int(input().rstrip())
# s = input().rstrip()
def resolve():
import sys
input = sys.stdin.readline
n, l = [int(x) for x in input().rstrip().split(" ")]
s_list = [input().rstrip() for _ in range(n)]
s_list = sorted(s_list)
print("".joi... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6ccf0ca23a683d99e9f431477837de49ec028d4f | 9222114c0b39007eb1af715cf18fc95ff282b38c | /problems/415. Add Strings/1 - Backtracking.py | a96022d06c9d0b76ef3f2cbc3458d4236d83b04c | [] | no_license | Vasilic-Maxim/LeetCode-Problems | 1a2a09edca6489a349e5d69d087279630cff157d | 359f3b78da90c41c7e42e5c9e13d49b4fc67fe41 | refs/heads/master | 2021-07-10T22:03:29.327658 | 2021-06-07T12:42:52 | 2021-06-07T12:42:52 | 246,826,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from itertools import zip_longest
class Solution:
def addStrings(self, num1: str, num2: str) -> str:
zero = ord("0")
carry = 0
result = []
for n1, n2 in zip_longest(reversed(num1), reversed(num2)):
n1 = 0 if n1 is None else ord(n1) - zero
n2 = 0 if n2 is Non... | [
"lmantenl@gmail.com"
] | lmantenl@gmail.com |
ee91dee71252520a9168a9f851ead2970876ff66 | 45bbb2d050c5e6acf85a2180f5c27d415a994185 | /KerasCode/mlp.py | a0e6547bf19f7e6756d192aad9932e15d4cf696d | [] | no_license | afcarl/dl_code | e25f07e9e7eba59d83ea0ddb90637bce605b35c9 | 2b0423673faba67f6ad653c04b6cd045a66f5e80 | refs/heads/master | 2020-03-22T09:59:01.003729 | 2017-05-17T02:34:20 | 2017-05-17T02:34:20 | 139,873,303 | 1 | 0 | null | 2018-07-05T16:11:15 | 2018-07-05T16:11:14 | null | UTF-8 | Python | false | false | 764 | py | from keras.models import Sequential
from keras.layers import Dense
import numpy
import os
import TheanoCode
# theano.config.device = 'gpu'
seed = 7
numpy.random.seed(seed)
data_path = "/".join([os.getcwd(), "../Data/pima-indians-diabetes.data.txt"])
dataset = numpy.loadtxt(data_path, delimiter=",")
X = dataset[:,0:8]... | [
"zhaosanqiang916@gmail.com"
] | zhaosanqiang916@gmail.com |
80e000c9d12a4180c7aa61e175235c04a2c00eb6 | a1a43879a2da109d9fe8d9a75f4fda73f0d7166b | /api/tests_v2/zeros_like.py | 52f67cbec0a4d72971c03445e047433928e0e79a | [] | no_license | PaddlePaddle/benchmark | a3ed62841598d079529c7440367385fc883835aa | f0e0a303e9af29abb2e86e8918c102b152a37883 | refs/heads/master | 2023-09-01T13:11:09.892877 | 2023-08-21T09:32:49 | 2023-08-21T09:32:49 | 173,032,424 | 78 | 352 | null | 2023-09-14T05:13:08 | 2019-02-28T03:14:16 | Python | UTF-8 | Python | false | false | 1,332 | py | # Copyright (c) 2020 PaddlePaddle 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 app... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.