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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ecf02569e1eed908e82519db1a07d43581f22119 | cd4be8b6bee2964d063b332c0c8784ab6c89c8e5 | /opacus/layers/dp_rnn.py | 5f5c681988cdae0f1f9b9ff71207e8204edf7691 | [
"Apache-2.0"
] | permissive | pytorch/opacus | d55f9c3627943a3c067528849401663cfaf7d622 | 79bdfac28afb526430a938d38513c46936f8670a | refs/heads/main | 2023-09-04T01:03:50.533043 | 2023-08-01T19:37:56 | 2023-08-01T19:37:56 | 226,441,159 | 1,358 | 291 | Apache-2.0 | 2023-09-11T13:29:37 | 2019-12-07T01:58:09 | Jupyter Notebook | UTF-8 | Python | false | false | 25,884 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# 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 requi... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
13d8e018f655410c792838106349c05d7a3368a0 | e43331bd888313b6cf0a6e1c62767b75150f5223 | /archivrflickr/migrations/0001_initial.py | 4db46b9166fca848150fd872e562d5879816a667 | [] | no_license | philgyford/django-archivr | a10cf7a0752b88b490cbccfef4fc27ff69447db3 | e0611d76d15eabb5fbd959d46e4e33c211c91a33 | refs/heads/master | 2021-01-18T22:04:00.699789 | 2016-04-08T16:26:18 | 2016-04-08T16:26:18 | 4,202,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,763 | 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 model 'FlickrFavorite'
db.create_table('archivrflickr_flickrfavorite', (
('id', self.gf... | [
"phil@gyford.com"
] | phil@gyford.com |
911a983b38870d5b30029913df017ccfc099817a | 549d8be84d27a1d6890c8539a519e58bd355351d | /examples/Serverless_Api_Backend.py | a0a2afbb3626a21ea3f17b0f3d8c9aa196248301 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | anoora17/troposphere | 1dabd3b4da89c593444c1564ef13fdae6e61acff | 47db869b2875b9517df5fdd90d5e15505a555b09 | refs/heads/master | 2020-03-17T23:32:55.048454 | 2018-05-17T17:24:39 | 2018-05-17T17:24:39 | 134,050,719 | 1 | 0 | BSD-2-Clause | 2018-05-19T10:05:51 | 2018-05-19T10:05:51 | null | UTF-8 | Python | false | false | 2,212 | py | # Converted from api_backend located at:
# https://github.com/awslabs/serverless-application-model/blob/dbc54b5d0cd31bf5cebd16d765b74aee9eb34641/examples/2016-10-31/api_backend/template.yaml
from troposphere import Template, Ref
from troposphere.awslambda import Environment
from troposphere.serverless import Function,... | [
"mark@peek.org"
] | mark@peek.org |
6a5f7fe7878d43df06565b94f5e3b304e23823d5 | f57bba82fed27b74dca1319f41ed3cf9047fcc55 | /0x01-python-if_else_loops_functions/2-print_alphabet.py | 561690b60f55f71d5a836ab40614f35d9d817346 | [] | no_license | ibeckermayer/holbertonschool-higher_level_programming | cb76d64d698e7b2c8e60d8498c25ba31dc7e337f | 3cb19fb206a77cccbf12a2c2e06067fa1be303f1 | refs/heads/master | 2020-03-09T13:36:27.959941 | 2018-09-06T00:57:53 | 2018-09-06T00:57:53 | 128,815,447 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | #!/usr/bin/python3
for c in range(ord('a'), ord('z')+1):
print("{:c}".format(c), end='')
| [
"ibeckermayer@gmail.com"
] | ibeckermayer@gmail.com |
b146a8d58b6c44b8b91c6e10e0eee5d3ae1c1e03 | 365967082720f3fda31afccfc237b7a67e8ffc07 | /sorting_searching/peak.py | dd2d896b427e16191838c3197c5819483f3b6557 | [] | no_license | hulaba/geekInsideYou | ec68dee3fa24d63f5470aa40b600ef34d37c5da1 | 72c1f1b4fbf115db91c908a68c9ac3ca4cb22a4f | refs/heads/master | 2022-12-11T11:11:03.149336 | 2020-09-12T16:12:40 | 2020-09-12T16:12:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | # your task is to complete this function
# function should return index to the any valid peak element
def peakElement(arr, n):
# Code here
if n is 1:
return 0
for i in range(n):
# if element at first index is greater than next
if i == 0 and arr[1] < arr[0]:
return 0
... | [
"nainamehta2110@gmail.com"
] | nainamehta2110@gmail.com |
5cad52e17f840954f11e4f3480533211c904549e | 956cc6ff2b58a69292f7d1223461bc9c2b9ea6f1 | /monk/system_unit_tests/pytorch/test_activation_softmin.py | cde9b1d95f3da0fc6c01dd83ce0386fe8fc78a97 | [
"Apache-2.0"
] | permissive | Aanisha/monk_v1 | c24279b2b461df9b3de2984bae0e2583aba48143 | c9e89b2bc0c1dbb320aa6da5cba0aa1c1526ad72 | refs/heads/master | 2022-12-29T00:37:15.320129 | 2020-10-18T09:12:13 | 2020-10-18T09:12:13 | 286,278,278 | 0 | 0 | Apache-2.0 | 2020-08-09T16:51:02 | 2020-08-09T16:51:02 | null | UTF-8 | Python | false | false | 1,348 | py | import os
import sys
sys.path.append("../../../../monk_v1/");
sys.path.append("../../../monk/");
import psutil
from pytorch_prototype import prototype
from compare_prototype import compare
from common import print_start
from common import print_status
import torch
import numpy as np
from pytorch.losses.return_loss im... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
45d620d1e60cd162a992f66503976015885c17a8 | 60cbdf1f9771159f872e632017fa736800784297 | /Leetcode/Check-if-the-Sentence-is-Pangram.py | fe3da8ce862e017efe6b6dd38769acb3b97e5a82 | [] | no_license | AG-Systems/programming-problems | 6ea8c109f04c4d22db6e63fe7b665894c786242a | 39b2d3546d62b48388788e36316224e15a52d656 | refs/heads/master | 2023-04-16T16:59:20.595993 | 2023-04-05T01:25:23 | 2023-04-05T01:25:23 | 77,095,208 | 10 | 3 | null | 2019-10-14T16:16:18 | 2016-12-22T00:03:14 | Python | UTF-8 | Python | false | false | 332 | py | class Solution:
def checkIfPangram(self, sentence: str) -> bool:
letter_counter = {}
for letter in sentence:
if letter in letter_counter:
letter_counter[letter] += 1
else:
letter_counter[letter] = 1
return len(letter_counter.ke... | [
"noreply@github.com"
] | AG-Systems.noreply@github.com |
0ae5585fb9e152b45e4cc381b1aea2c6b8c650fe | 18b250fe572223ade49c2cf995e0aad0613abc6a | /scripts/artifacts/vlcThumbs.py | 5a1156c12cdf50a0855a63068213cc7f249375c2 | [
"MIT"
] | permissive | ydkhatri/ALEAPP | e79e558005bf92519e45b17be99ad13aabf4f25e | 4f2a739d6accd832176cac8db72cded07fb17633 | refs/heads/master | 2022-08-19T07:14:59.669286 | 2022-07-26T03:09:16 | 2022-07-26T03:09:16 | 242,858,450 | 0 | 0 | MIT | 2021-03-19T16:09:59 | 2020-02-24T22:33:34 | JavaScript | UTF-8 | Python | false | false | 1,337 | py | import os
import shutil
from scripts.artifact_report import ArtifactHtmlReport
from scripts.ilapfuncs import timeline, tsv, is_platform_windows, open_sqlite_db_readonly
def get_vlcThumbs(files_found, report_folder, seeker, wrap_text):
data_list = []
for file_found in files_found:
file_found = str(fil... | [
"abrignoni@gmail.com"
] | abrignoni@gmail.com |
9af56f4a07be6988eb257460a4bda61c2d12b231 | abf3ea33a5fa7457d1cd735310700df9c784d1ae | /CST100/Chapter_4/Chapter_4/Ch_4_Solutions/Ch_4_Projects/4.11/testnode.py | fbe1aafaeffff3f7a79626078998ce6c7db6794c | [] | no_license | hieugomeister/ASU | 57b8a2f604a27ce339675f40d3b042ccf57efb86 | 3e9254cebeaeb1c57ae912d6e5a02af7531128e8 | refs/heads/master | 2020-12-30T16:59:17.801581 | 2017-05-12T22:44:44 | 2017-05-12T22:44:44 | 91,046,525 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,934 | py | """
File: testnode.py
Project 4.11
Add a makeTwoWay function.
Tests the Node class.
"""
from node import Node, TwoWayNode
def length(head):
"""Returns the number of items in the linked structure
referred to by head."""
probe = head
count = 0
while probe != None:
count += 1
probe ... | [
"hieupham45@gmail.com"
] | hieupham45@gmail.com |
eff6f26588057c7a06e5c736ddbd4beb44480094 | 55f945f29f78c0c0c6ac110df808126a38999be5 | /devel/lib/python2.7/dist-packages/mav_msgs/msg/_TorqueThrust.py | 08a7b4e8e0d04bccf8c9630a834e84f91c8c4b07 | [] | no_license | aarchilla/NodeROS | 43e9f0d6931d1eb11057d229e20e2911fba943c2 | 4d79e3ffbbb19c11535613249fed2191ada63000 | refs/heads/master | 2020-06-16T20:00:39.218889 | 2019-07-07T18:36:17 | 2019-07-07T18:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | /home/esaii-admin/catkin_ws/devel/.private/mav_msgs/lib/python2.7/dist-packages/mav_msgs/msg/_TorqueThrust.py | [
"aarchilla21@gmail.com"
] | aarchilla21@gmail.com |
c3403fa8e1e383b59e7d439c6a8cb4257c367515 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4466/codes/1734_2506.py | 7e3f3e2a8fa3a6b63bd10bd541c82d212da44969 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | q_inicial = int(input("quantidade inicial: "))
perc = float(input("percentual de crescimento: "))
quant = int(input("quantidade de pirarucus retirados: "))
perc = perc/100
t = 0
while(0 <= q_inicial <= 12000):
q_inicial = (q_inicial + q_inicial * perc) - quant
t = t + 1
if(q_inicial <= 0):
print("EXTINCAO")
print(t... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
eb93813e0136a34f5b51222dd6b5c3141c7b1d1c | eb280992ab7c39173f6f19d28ddf7efd8a29775a | /calaccess_processed_elections/apps.py | b93b394463300e21fac2cb0fa5fcc3069b0c68f6 | [
"MIT"
] | permissive | ryanvmenezes/django-calaccess-processed-data | f5e99a8bdaf7c6555e357d3dabfd673fd12b8419 | 966635c8438cda440a12f7765af7c79b5bcb3995 | refs/heads/master | 2020-04-14T22:41:49.520588 | 2018-10-10T12:07:57 | 2018-10-10T12:07:57 | 99,171,493 | 0 | 0 | null | 2017-08-03T00:02:03 | 2017-08-03T00:02:03 | null | UTF-8 | Python | false | false | 3,720 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Basic configuration for the application.
"""
from __future__ import unicode_literals, absolute_import
import os
import collections
from django.apps import apps
from django.apps import AppConfig
class CalAccessProcessedElectionsConfig(AppConfig):
"""
Applicatio... | [
"ben.welsh@gmail.com"
] | ben.welsh@gmail.com |
e9a917a37d1b2602f0fecc3ba700c45e5ffdb762 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/thirtyPercent/rank_2omz_A.py | 598632c5f22bcd1066085853b28e1def339718fd | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
4f54753f579ffb5420f90b1d8b8a3f5e105c7783 | 34652a47355a8dbe9200db229a1bbc62619de364 | /Algorithms/eppstein/PartitionRefinement.py | 25028f7afc76ad44dc47c9bfdac0723cd00e2448 | [
"MIT"
] | permissive | btrif/Python_dev_repo | df34ab7066eab662a5c11467d390e067ab5bf0f8 | b4c81010a1476721cabc2621b17d92fead9314b4 | refs/heads/master | 2020-04-02T13:34:11.655162 | 2019-11-10T11:08:23 | 2019-11-10T11:08:23 | 154,487,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | """PartitionRefinement.py
Maintain and refine a partition of a set of items into subsets,
as used e.g. in Hopcroft's DFA minimization algorithm,
modular decomposition of graphs, etc.
D. Eppstein, November 2003.
"""
class PartitionError(Exception): pass
class PartitionRefinement:
"""Maintain and refine a partiti... | [
"bogdan.evanzo@gmail.com"
] | bogdan.evanzo@gmail.com |
3f9d7d0aaff42ecd58b1353b226c30457aefb554 | 2fba0a631bb70aaae6dc89bff09f13e728934605 | /privacy/migrations/0022_auto_20200527_0909.py | 2f9d37c178d9929cd0adc472a56bc0457b5f6116 | [] | no_license | murengera/eshoping-api | 4c5bcbeb7ac3ef12858e08f8a88d4f7b710b5c64 | 90acb0f8db519a38a1bd0976bd1f704f6d02f2dd | refs/heads/master | 2022-12-25T10:19:39.431427 | 2020-09-26T12:35:38 | 2020-09-26T12:35:38 | 286,399,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # Generated by Django 3.0 on 2020-05-27 07:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('privacy', '0021_auto_20200527_0908'),
]
operations = [
migrations.AlterField(
model_name='privacypoliciesandtermsofuse',
... | [
"daltonbigirimana5@gmail.com"
] | daltonbigirimana5@gmail.com |
5b89414e459547981f97861a6da0ef73ea51b958 | 2db1a0038d26ccb6adc572b536cb5cd401fd7498 | /lib/python2.7/site-packages/pip/commands/check.py | 95c64fc66c74741bc3e23fd86868dac809cb4f94 | [] | no_license | syurk/labpin | e795c557e7d7bcd4ff449cb9a3de32959a8c4968 | 04070dd5ce6c0a32c9ed03765f4f2e39039db411 | refs/heads/master | 2022-12-12T02:23:54.975797 | 2018-11-29T16:03:26 | 2018-11-29T16:03:26 | 159,692,630 | 0 | 1 | null | 2022-11-19T12:15:55 | 2018-11-29T16:04:20 | Python | UTF-8 | Python | false | false | 1,381 | py | import logging
from pip.basecommand import Command
from pip.operations.check import check_requirements
from pip.utils import get_installed_distributions
logger = logging.getLogger(__name__)
class CheckCommand(Command):
"""Verify installed packages have compatible dependencies."""
name = 'check'
usage = ... | [
"syurk738@students.bju.edu"
] | syurk738@students.bju.edu |
c59b76f55ddc99b1693010dc6662d175c45b7f65 | 69e41359e2f01ffb12e243970a59e6fcc986e09a | /solved/Euler56.py | 87493072ac091de2dbfdf3fae52aa0ea07e77c2d | [] | no_license | pfhayes/euler | 0d4383f9cfa36890bdaf95bfdae553707c6cbc86 | 56f053afffb91262c7c48463700cab4fe6581813 | refs/heads/master | 2016-09-05T13:18:46.089574 | 2011-12-21T05:26:41 | 2011-12-21T05:26:41 | 1,786,274 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | # Find the maximum possible sum of digits for a^b, with a,b < 100
from useful import digits
maxA, maxB, maxSum = 0,0,0
for a in range (100) :
for b in range(100) :
s = sum(digits(a**b))
maxSum = max([s,maxSum])
if s == maxSum :
maxA = a
maxB = b
print maxSum, a, b | [
"pfhayes@gmail.com"
] | pfhayes@gmail.com |
49445015f0ed16f52b4534b346d9f4cc8f0baa8b | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_read_1/client-vpn-connection_list.py | 0a5a1dfa2928044398a0fafaa19dbe1a6072d131 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import execute_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-client-vpn-connections.html
if _... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
e12543041d44d3cb9be84a8134ebde85793d5476 | 1f79d9d02810a944c45fc962c62159035c5a2247 | /migrations/versions/2ce138017f09_.py | 44945f5b6e86b3a8d3d753b01cce2d62c3c70333 | [] | no_license | qsq-dm/mff | 5f17d6ffd1d4742dc46d1367cff35233af08a450 | d7f1e6f3fba95fe0d8ebb8937dda64a17e71f048 | refs/heads/master | 2020-12-29T02:19:29.037394 | 2016-08-01T15:40:42 | 2016-08-01T15:40:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | """empty message
Revision ID: 2ce138017f09
Revises: 38dd6746c99b
Create Date: 2015-12-10 19:14:00.636524
"""
# revision identifiers, used by Alembic.
revision = '2ce138017f09'
down_revision = '38dd6746c99b'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | [
"root@localhost"
] | root@localhost |
98dc97fd83c006e87c1140e8bd0d5d01343a1be4 | 289e6f9cf1d37fffb45810144e1a15f0de5c19d5 | /chiro/import_chiro.py | 0c60ee96d0de34304dd138784cf52fae28a9e7a1 | [
"MIT",
"CC0-1.0"
] | permissive | chemical-roles/chemical-roles | 4eb912d6cc767f465e0e35e34d0c803a96e4d4f3 | 78801264a94a8b2b43ff553020483dd2ef9af993 | refs/heads/master | 2023-04-11T14:40:53.846885 | 2022-09-02T11:56:06 | 2022-09-02T11:56:06 | 199,155,107 | 6 | 5 | MIT | 2021-08-04T09:14:34 | 2019-07-27T11:17:57 | Python | UTF-8 | Python | false | false | 1,492 | py | import logging
from pyobo import get_id_name_mapping, get_obo_graph
RELATIONSHIPS = [
"activator_of",
"agonist_of",
"antagonist_of",
"destabilizer_of",
"inducer_of",
"inhibitor_of",
"modulator_of",
"sensitizer_of",
"stabilizier_of",
]
MAPPING_PREFIXES = ["ncbitaxon", "go", "pr", "... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
c79714327ccf731a9a7f8568306169ba46c9dba8 | 84f2cdc80da796b38433e88d9145cbd797e85f42 | /flaws/asttools.py | c4a8cb3502876a4d90fce1e613bde8734d777a52 | [
"BSD-2-Clause"
] | permissive | EricSchles/flaws | 3be808d37fa1bfd050fa8e0ec3791ab7ee1e5365 | a6de9c2c2a89f79bd67a20535cea6a9ca677f357 | refs/heads/master | 2021-01-17T08:05:27.603218 | 2014-08-23T08:07:52 | 2014-08-23T08:07:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | import ast
def is_write(node):
return isinstance(node, (ast.Import, ast.ImportFrom,
ast.FunctionDef, ast.ClassDef, ast.arguments)) \
or isinstance(node.ctx, (ast.Store, ast.Del, ast.Param))
def is_use(node):
return isinstance(node, ast.Name) \
and isinstance(node.c... | [
"suor.web@gmail.com"
] | suor.web@gmail.com |
cbfc0f372350492bb4d3e472bf7a52dee56b078a | f3188f1f9da38f995bd65a423b2cc1cd1c31c55f | /PythonLeetcode/BinarySearch/easy/744. 寻找比目标字母大的最小字母.py | e5560199093099a93e75b3f4098cec0ae680a596 | [
"MIT"
] | permissive | Lcoderfit/Introduction-to-algotithms | 34be05019870b6d4d967b0112e7953829448cdb0 | aea2630be6ca2c60186593d6e66b0a59e56dc848 | refs/heads/master | 2023-05-11T01:01:09.222149 | 2021-10-13T03:16:40 | 2021-10-13T03:16:40 | 146,017,809 | 3 | 1 | MIT | 2023-05-05T02:22:34 | 2018-08-24T16:56:13 | Go | UTF-8 | Python | false | false | 1,829 | py | """
方法1: 二分查找
时间复杂度:O(logn)
空间复杂度:O(1)
方法2: 线性扫描
时间复杂度:O(n)
空间复杂度:O(1)
case1:
a
c f j
case 2:
c
c f j
case 3:
d
c f j
case 4:
g
c f j
case 5:
j
c f j
case 6:
k
c f j
"""
import sys
from typing import List
class Solution:
@staticmethod
def next_greatest_letter(letters: List[str], target: str) -> str:
... | [
"1297611505@qq.com"
] | 1297611505@qq.com |
5eb112988098db6980600c2ca4c2ab2b15e030fc | 11705b5971757122772cc420912b509b1f39255c | /web/service/github/api/v3/repositories/Repositories.py | bc527209990819a483f3582a0a1b6414ed875d15 | [
"CC0-1.0",
"Unlicense",
"Apache-2.0",
"MIT"
] | permissive | ytyaru/GitHub.Upload.Delete.CommentAndFile.201703281815 | 4bff9cba1e6bb2bec596d1190eb653169a01c839 | ce4d6c3830bff9d9c152d1d6224ad317f46ea778 | refs/heads/master | 2021-01-20T08:54:00.762565 | 2017-05-03T22:37:38 | 2017-05-03T22:37:38 | 90,199,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,598 | py | #!python3
#encoding
import requests
import urllib.parse
import json
import web.http.Response
class Repositories:
def __init__(self, data, reqp, response):
self.data = data
self.reqp = reqp
self.response = response
def create(self, name, description=None, homepage=None):
... | [
"ytyaru@outlook.jp"
] | ytyaru@outlook.jp |
10c388059eabb303f3a11a60b8fac735303683bb | e828fca9d0622710b43222c377adf954df072220 | /shabanipy/quantum_hall/conversion.py | acaf9ac2185f0ef01f596d08336c2ef3d946b958 | [
"MIT"
] | permissive | jnt299/shabanipy | f42cb4abb648e1ce42501a4d1187a74f2a78011c | 1c2b5b861849ccf76b5ea6aaf0fcbf429aa6bfcf | refs/heads/master | 2022-11-30T17:58:22.295183 | 2020-08-13T19:56:37 | 2020-08-13T19:56:37 | 288,523,531 | 1 | 0 | null | 2020-08-18T17:41:35 | 2020-08-18T17:41:34 | null | UTF-8 | Python | false | false | 3,538 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2019 by ShabaniPy Authors, see AUTHORS for more details.
#
# Distributed under the terms of the MIT license.
#
# The full license is in the file LICENCE, distributed with this software.
# ----------------... | [
"marul@laposte.net"
] | marul@laposte.net |
54b6d697974e94e58e1db9e716971b7d5af3e9b6 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/list_issue_comments_v4_request.py | 52fa5da1dc3b94983d614e5dad194057809f34b9 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 4,887 | py | # coding: utf-8
import pprint
import re
import six
class ListIssueCommentsV4Request:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and t... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
e6af66b8ae690c09cd953e9196226280a0bd603b | a6590941fea4880593d5b1cd23eedfe696f4e446 | /ABC01_99/ABC95/a.py | 980ed436328727063428b248fda3aaaf39cf0aaa | [] | no_license | cod4i3/MyAtcoder | 9fb92f2dd06c5b6217e925a82d8db4f91355a70f | 53bdac3fa7eb4ac48ca6d5c70461639beb6aa81d | refs/heads/master | 2023-02-17T09:15:16.282873 | 2021-01-15T13:34:03 | 2021-01-15T13:34:03 | 232,006,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | s = input()
print(700 + s.count('o') * 100)
| [
"imasdaisukiproducermasu@gmail.com"
] | imasdaisukiproducermasu@gmail.com |
24ab81ff2c511dd5587eebf58083e235fd9bdec7 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fc/apinninglbl.py | f7b4c92b96d82adacf7230e8ed621d61e9384b9f | [] | 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 | 4,523 | 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 |
31212698b833a9003fd16b7a5fc99096aa8e5d13 | b39b0625795b0640a6a68151f2012ce139f423b8 | /iaas/test/test_flavor_profile_api.py | 095a47c5a2b57f517a3c35c6945e5b54508299a9 | [] | no_license | darrylcauldwell/casCodegen | 8e82b1f08e8260482996aec3d8be10934a65dd03 | 1f1ff9ab8a33102bcfcb8be276d51992d96bcb61 | refs/heads/master | 2020-07-27T14:42:28.550855 | 2019-09-17T18:30:28 | 2019-09-17T18:30:28 | 209,127,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | # coding: utf-8
"""
VMware Cloud Assembly IaaS API
A multi-cloud IaaS API for Cloud Automation Services # noqa: E501
OpenAPI spec version: 2019-01-15
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_cli... | [
"dcauldwell@dcauldwell-a01.vmware.com"
] | dcauldwell@dcauldwell-a01.vmware.com |
1ba90dd656c8980eff31b4972d50accaaff84971 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Quantization/trend_MovingAverage/cycle_30/ar_/test_artificial_1024_Quantization_MovingAverage_30__20.py | 1d8cd7fcd6989efe67729b85e14bd6887518a581 | [
"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 | 273 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 30, transform = "Quantization", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
e0d15eea5b6d89432ba750f5c3a61bdb7bd0ce84 | 730103ddecd23142238defe2a2b1ab3c582cdc45 | /onnx2tf/ops/ReverseSequence.py | c2c8dc8337c257539be89abccb5dab2eb3372482 | [
"Apache-2.0",
"MIT"
] | permissive | PINTO0309/onnx2tf | dcfb0fd8a4810ef1262aa565ba42b5124012bdb2 | b0e7d106cc69c0ea0fd464c4dd9064a5b0d6668b | refs/heads/main | 2023-08-30T23:28:56.386741 | 2023-08-29T01:48:40 | 2023-08-29T01:48:40 | 541,831,874 | 345 | 45 | MIT | 2023-09-14T16:53:12 | 2022-09-27T00:06:32 | Python | UTF-8 | Python | false | false | 3,308 | py | import random
random.seed(0)
import numpy as np
np.random.seed(0)
import tensorflow as tf
import onnx_graphsurgeon as gs
from onnx2tf.utils.common_functions import (
get_constant_or_variable,
print_node_info,
inverted_operation_enable_disable,
make_tf_node_info,
get_replacement_parameter,
pre_pr... | [
"rmsdh122@yahoo.co.jp"
] | rmsdh122@yahoo.co.jp |
979b699a367d604f9353cf9805004d4f0d43b7c5 | 966280ab617298a3ced79bc60189b301c795067a | /Sliding-Window/239_sliding_window_maximum.py | 445ece104ef138fc8ad1d83b3627505908fe52ce | [] | no_license | Rishabhh/LeetCode-Solutions | c0382e5ba5b77832322c992418f697f42213620f | 2536744423ee9dc7da30e739eb0bca521c216f00 | refs/heads/master | 2020-06-10T02:37:42.103289 | 2019-05-29T06:38:02 | 2019-05-29T06:38:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | import collections
class Solution:
def max_sliding_window(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: List[int]
"""
res = []
q = collections.deque()
n = len(nums)
for i in range(n):
while q and q[-1][1] <= nums... | [
"weihewang2012@gmail.com"
] | weihewang2012@gmail.com |
879ed203a95faf1ad6a9ca1ed7ab98c3695fd4b6 | bd2a975f5f6cd771393f994ebd428e43142ee869 | /new_render_data/input/p/script/abort/kafka/consumer/group.py | 54a3711aeb79c67b8eeaec2a9f8a97e0c5b52feb | [] | no_license | sol87/Pycharm_python36 | 1a297c9432462fc0d3189a1dc7393fdce26cb501 | fa7d53990040d888309a349cfa458a537b8d5f04 | refs/heads/master | 2023-03-16T10:35:55.697402 | 2018-11-08T09:52:14 | 2018-11-08T09:52:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,351 | py | from __future__ import absolute_import
import copy
import logging
import socket
import sys
import time
from kafka.errors import KafkaConfigurationError, UnsupportedVersionError
from kafka.vendor import six
from kafka.client_async import KafkaClient, selectors
from kafka.consumer.fetcher import Fetcher
from kafka.co... | [
"superdkk@gmail.com"
] | superdkk@gmail.com |
c16526cc565c48f7f41dbc963e284d4f5ce44160 | 3e1fcf34eae508a3f3d4668edfb334069a88db3d | /court_scraper/configs.py | 3c97d17d3c3bde34e18c1f667fb59a09be10a102 | [
"ISC"
] | permissive | mscarey/court-scraper | 26d32cb7354b05bb5d5d27a55bf4042e5dde1a4d | e29135331526a11aa5eb0445a9223fc3f7630895 | refs/heads/main | 2023-07-14T20:23:33.488766 | 2020-08-31T14:02:19 | 2020-08-31T14:02:19 | 384,977,976 | 0 | 0 | ISC | 2021-07-11T15:04:57 | 2021-07-11T15:04:57 | null | UTF-8 | Python | false | false | 539 | py | import os
from pathlib import Path
class Configs:
def __init__(self):
try:
self.cache_dir = os.environ['COURT_SCRAPER_DIR']
except KeyError:
self.cache_dir = str(
Path(os.path.expanduser('~'))\
.joinpath('.court-scraper')
)
... | [
"zstumgoren@gmail.com"
] | zstumgoren@gmail.com |
4686304e5272d38d5559b24f2410068350599bea | 9130bdbd90b7a70ac4ae491ddd0d6564c1c733e0 | /venv/lib/python3.8/site-packages/pylsp/python_lsp.py | 78c538c324a0083a40dd1865f74748fc992446cd | [] | no_license | baruwaa12/Projects | 6ca92561fb440c63eb48c9d1114b3fc8fa43f593 | 0d9a7b833f24729095308332b28c1cde63e9414d | refs/heads/main | 2022-10-21T14:13:47.551218 | 2022-10-09T11:03:49 | 2022-10-09T11:03:49 | 160,078,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/aa/42/2f/669662002785de21312365d0e6f7beb46001f06bc2fa9fd2af8f9da7e6 | [
"45532744+baruwaa12@users.noreply.github.com"
] | 45532744+baruwaa12@users.noreply.github.com |
5f2aa8ca47d120e199ee3e9b6210bbc7d474e2f3 | 4a0348ccb890c73ebd88feafafc279af26e05f25 | /django/django_intro/first2/manage.py | 9fdc1b41afe7cc2a027d9ccbcbc59b711bd4fda3 | [] | no_license | wadeeeawwad/python_stack | 00936837103b9f78f66961d88ae3a6233adbbea3 | 6d2c3712c40b035e0d43cc7a27b2e2f48d4a8281 | refs/heads/master | 2023-07-11T14:59:02.617899 | 2021-08-23T11:37:15 | 2021-08-23T11:37:15 | 364,533,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'first2.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportE... | [
"wadee_awwad@hotmail.com"
] | wadee_awwad@hotmail.com |
a94d4f6646875930d94d09068b21013e8e11c0b4 | 19d47d47c9614dddcf2f8d744d883a90ade0ce82 | /pynsxt/swagger_client/models/app_info_host_vm_list_in_csv_format.py | c68bd8aec7c8d133e43bc961f5b83387b9a11720 | [] | no_license | darshanhuang1/pynsxt-1 | 9ed7c0da9b3a64e837a26cbbd8b228e811cee823 | fb1091dff1af7f8b8f01aec715682dea60765eb8 | refs/heads/master | 2020-05-25T14:51:09.932853 | 2018-05-16T12:43:48 | 2018-05-16T12:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,356 | py | # coding: utf-8
"""
NSX API
VMware NSX REST API # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from swagger_client.models.app_info_host_vm_csv_record import AppInfoHostVmCsvRecord... | [
"tcraft@pivotal.io"
] | tcraft@pivotal.io |
6f1ce69f66b79c11989426517bab38e317a3e9f1 | 0b63f38c7fb468e478e5be82c685de1b7ddb87e5 | /meiduo/meiduo_mall/meiduo_mall/apps/goods/serializers.py | 5f87ef206f4094af198abe31f08914950ba75438 | [
"MIT"
] | permissive | Highsir/Simplestore | fcf5ef81a754604c0953a3c1433a7bc09290c121 | 5fc4d9930b0cd1e115f8c6ebf51cd9e28922d263 | refs/heads/master | 2020-09-01T07:55:45.362457 | 2019-11-01T04:55:48 | 2019-11-01T04:55:48 | 218,913,913 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from drf_haystack.serializers import HaystackSerializer
from rest_framework import serializers
from goods.models import GoodsCategory, GoodsChannel, SKU
from goods.search_indexes import SKUIndex
class CategorySerializer(serializers.ModelSerializer):
"""类别序列化器"""
class Meta:
model = GoodsCategory
... | [
"highsir421@163.com"
] | highsir421@163.com |
1979d64a1540d510194a1064ab3dd19ceaa3585b | b511bcf3b3c8724a321caa95f381956f56c81197 | /collective/wpadmin/widgets/draft.py | c1c4dd4bfba27029e4bbf9f9d56d38ede2eb8eca | [] | no_license | toutpt/collective.wpadmin | 6957f8fadd5f62a12e4b5cd3eb40794874712cea | b5f2384ff2421f1529f7f844d75c1cb4073ac959 | refs/heads/master | 2016-08-05T00:30:36.097097 | 2013-01-18T10:37:26 | 2013-01-18T10:37:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | from zope import component
from plone import api
from plone.registry.interfaces import IRegistry
from collective.wpadmin.widgets import widget
from collective.wpadmin import i18n
_ = i18n.messageFactory
class Draft(widget.Widget):
name = "draft"
title = _(u"Draft")
content_template_name = "draft.pt"
... | [
"toutpt@gmail.com"
] | toutpt@gmail.com |
00766e298a33dcae5f92d7859cc87d876ccca112 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2463/60782/304860.py | a0914fcd8b479f7c6f75f9999f2477a83b960f6a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | """
题目描述
给定一个已按照升序排列 的有序数组,找到两个数使得它们相加之和等于目标数。
函数应该返回这两个下标值 index1 和 index2,其中 index1 必须小于 index2。
说明:
返回的下标值(index1 和 index2)不是从零开始的。
你可以假设每个输入只对应唯一的答案,而且你不可以重复使用相同的元素。
"""
class Solution(object):
def twoSum(self, numbers, target):
"""
:type numbers: List[int]
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
a9003fdff24c89d3d9fa50bcfc64c24a0cc79586 | a24a03163cf643249922edc29bc2086517615e53 | /thewema/urls.py | 7bcf11a899a1294d7c8cbb12dff05605f0faab60 | [] | no_license | ErickMwazonga/The-Wema-Academy | 165203e8e337459f6bae4f7178b3bfad715f052a | 61f9b778e423326d8dbd2c04f2dd6ce19e15e2a9 | refs/heads/master | 2021-01-19T14:22:00.568982 | 2017-04-13T10:41:06 | 2017-04-13T10:41:06 | 88,153,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,004 | py | """wema URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"erickmwazonga@gmail.com"
] | erickmwazonga@gmail.com |
bd0ba877cb6b849000ce9ea154a7506ab94dbb97 | 2d735cd72f1b2a17e58397a1214d3bcc2b8f113f | /PYTHON_FUNCTIONS/any_all_in_python.py | c4e84d22e60c5fd4da0ce9f654e5655dd7651839 | [] | no_license | shubhamrocks888/python | 3b95b5b53be8e0857efe72b8797e01e959d230f4 | 7313ddd0d09a0b478df928a07a6094930b597132 | refs/heads/master | 2022-12-15T00:03:40.261942 | 2020-08-29T18:00:42 | 2020-08-29T18:00:42 | 279,280,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | Truth table :-
any all
All true values True True
All false values False False
One True(all others are False) True False
One False(all others are True) True False
Empty ... | [
"shubhamrocks888@gmail.com"
] | shubhamrocks888@gmail.com |
c22f8acacd79b8afcf53558dbd03b826832af27a | 8580fd92512c236deae692d155bdb5eab2e00508 | /DarkTrails/asgi.py | 7b723533039a12cf02182a7076964bb2881d83f3 | [] | no_license | JackSnowdon/DownDT | d5d7f04acf92b5102cf67c5aa70cda2ebc4062fd | 17924b0b64da39d29c892fee4c7746d09b76fd8c | refs/heads/master | 2023-04-01T00:25:16.382696 | 2021-03-28T16:19:26 | 2021-03-28T16:19:26 | 352,373,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for DarkTrails project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
2bdaf389b5e48d429d1b3b05b8a493621a9a7ed6 | 144d8f2a5a5c751cebaabc73f2e2b82fa23c61c1 | /nebula_sniffer/nebula_sniffer/main.py | 6a4f42627e97abb132cf4cf0da49e18e7fe9ab3a | [
"Apache-2.0"
] | permissive | bradbann/sniffer | f248697cf4b483a7af1e43a08d3cc6e420b21d99 | 3ef3ad5316942669f32cda7d0c96f5a8c441efc2 | refs/heads/master | 2020-04-28T04:38:00.496351 | 2019-03-11T10:56:37 | 2019-03-11T10:56:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,663 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
import os
import logging
import traceback
import gevent
import gevent.queue
import settings
from threathunter_common.metrics.metricsrecorder import MetricsRecorder
from nebula_parser.autoparser import get_current_generators
from .urltree import URLTree... | [
"zengjinping@threathunter.cn"
] | zengjinping@threathunter.cn |
8b23a3fffb6859b0622210f0f50699c660b3ef3f | 50ee2f4f1a7d2e5ff7ac35118c5ac45f9b923865 | /0x01-python-if_else_loops_functions/1-last_digit.py | c7b28ae9d733661962aa47ddbb2e987589ebc1b4 | [] | no_license | spencerhcheng/holbertonschool-higher_level_programming | b489fbe8eba6109ef1eaa0d9363f3477e7eb16c4 | f8e1dbc24fcf8fb40ca135d2700872eb773e481e | refs/heads/master | 2021-01-20T06:54:35.044899 | 2018-05-20T05:09:59 | 2018-05-20T05:09:59 | 89,943,332 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | #!/usr/bin/python3
import random
number = random.randint(-10000, 10000)
if number > 0:
lastNum = number % 10
elif number <= 0:
lastNum = number % -10
print('Last digit of {:d} is {:d}'. format(number, lastNum), end=" ")
if lastNum > 5:
print('and is greater than 5')
elif lastNum == 0:
print('and is 0')
... | [
"spencerhcheng@gmail.com"
] | spencerhcheng@gmail.com |
6aaadd38872c563c7e3b4fd9a31a6d2edfb79945 | 41b73ecc4fa00a58609c1c3b8e717bbbc13cdee6 | /test/test_all.py | d7bd3837fc94c5de55e932b9801ad5547ef409f3 | [] | no_license | ahwillia/sinkdiv | 70c2f689af43cf80dd8c3951199885f3792d9ac3 | 85bd51f369855b78e5c0e1d5bb2aa8928d85c428 | refs/heads/master | 2023-01-31T10:56:08.481608 | 2020-12-18T04:41:26 | 2020-12-18T04:41:26 | 298,928,192 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | import pytest
import numpy as np
from numpy.testing import assert_allclose
from sinkdiv import OTCost, ForwardKL, Balanced
from scipy.optimize import approx_fprime
def test_entropy_increases(make_fig=False):
"""
Check that increasing epsilon increases blur in the
transport plan.
"""
epsilons = (0.... | [
"alex.h.willia@gmail.com"
] | alex.h.willia@gmail.com |
6aca78d446a771d1bdc8bb31bbbc2bb778bacfba | 206c10808b6224f7d8236e27cc555e723af695d9 | /tests/test_empty_service.py | 8ab14bce925b0271890c48c84c359ad361d40e51 | [
"MIT"
] | permissive | xdmiodz/tomodachi | 3280209ae49100ec902e3b15c323b38e7480cdd3 | 7ca998a421dd724df5967d5baa0cf79f5112b79b | refs/heads/master | 2023-03-15T19:22:16.381212 | 2023-01-20T07:34:48 | 2023-01-20T07:34:48 | 200,020,833 | 0 | 2 | MIT | 2023-03-08T00:00:01 | 2019-08-01T09:30:22 | Python | UTF-8 | Python | false | false | 674 | py | from typing import Any
from run_test_service_helper import start_service
def test_empty_service(monkeypatch: Any, capsys: Any, loop: Any) -> None:
services, future = start_service("tests/services/empty_service.py", monkeypatch)
loop.run_until_complete(future)
out, err = capsys.readouterr()
assert "... | [
"hello@carloscar.com"
] | hello@carloscar.com |
cfb9ff1a1089622084ea929a8ceebf87da9d0687 | 45799ccc3a16c785ab3c65f3296d66f8463590dc | /docs/_downloads/b9951f29cd54bc08237c8fb75b9c2476/q1314.py | b487939c8e11b9a0513ff9639257664f5e82d07a | [
"MIT"
] | permissive | odys-z/hello | 9d29b7af68ea8c490b43994cf16d75c0e8ace08e | fedd0aec7273f3170aa77316d0d5f317cc18a979 | refs/heads/master | 2023-08-19T03:25:58.684050 | 2023-08-18T08:07:27 | 2023-08-18T08:07:27 | 154,006,292 | 0 | 0 | MIT | 2023-04-18T22:50:56 | 2018-10-21T12:34:12 | C++ | UTF-8 | Python | false | false | 2,347 | py | '''
1314. Matrix Block Sum
https://leetcode.com/problems/matrix-block-sum/
Given a m * n matrix mat and an integer K, return a matrix answer where each answer[i][j] is
the sum of all elements mat[r][c] for i - K <= r <= i + K, j - K <= c <= j + K, and (r, c)
is a valid position in the matrix.
Example 1:
Input: m... | [
"odysseusj@163.com"
] | odysseusj@163.com |
17fe19b4e80f15be0aa96d6afc0197167630396f | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Yfksxs7kyJf6B3yvK_21.py | 3d96e93dc0ddaedcb2d4e9ec9ecf8a4618a5d7cd | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | """
Given a list of integers, return the smallest _positive_ integer _not present
in the list_.
Here is a representative example. Consider the list:
[-2, 6, 4, 5, 7, -1, 7, 1, 3, 6, 6, -2, 9, 10, 2, 2]
After reordering, the list becomes:
[-2, -2, -1, 1, 2, 2, 3, 4, 5, 6, 6, 6, 7, 7, 9, 10]
... from whic... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ce23796651ea87049745a818cb08caafa35cc580 | 9eef3e4cf39a659268694cf08a4a799af8fb13e2 | /packages/dpdprops/dpdprops/__init__.py | c42c51871769928dd028add49df137aafa25b487 | [] | no_license | cselab/tRBC-UQ | c30ec370939b949c989d2e9cd30137073b53e7d2 | cd7711b76c76e86bc6382914111f4fa42aa78f2c | refs/heads/master | 2023-04-18T03:06:49.175259 | 2022-10-25T15:45:07 | 2022-10-25T15:45:07 | 483,407,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from .fluid import *
from .dpdparams import (DPDParams,
create_dpd_params_from_str,
create_dpd_params_from_Re_Ma,
create_dpd_params_from_props)
from .membrane import *
from .membraneparams import (MembraneParams,
Kan... | [
"lucas.amoudruz@wanadoo.fr"
] | lucas.amoudruz@wanadoo.fr |
e9fb301ce413574e49d9b5dab04e7840eb52ae8b | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnetonian.py | 43b62a44c0b174541904a814c37cf4917415a758 | [] | 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 | 62 | py | ii = [('ClarGE3.py', 2), ('DibdTRL.py', 1), ('DibdTBR.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
ceed057825798d46c509ddab61ac189ced30ad29 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-oms/setup.py | b81b7515b7d134fa9438170ce81a39929b9463d6 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # coding: utf-8
from os import path
from setuptools import setup, find_packages
NAME = "huaweicloudsdkoms"
VERSION = "3.0.52"
AUTHOR = "HuaweiCloud SDK"
AUTHOR_EMAIL = "hwcloudsdk@huawei.com"
URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"
DESCRIPTION = "OMS"
this_directory = path.abspath(path.dirna... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
d5ddd74869a157b83c40a72dcab563c596578394 | ce196aba0adde47ea2767eae1d7983a1ef548bb8 | /T083_求用0—7所能组成的奇数个数.py | 0fb0007220933911a99ceca79ed911aaae9783bb | [] | no_license | xiang-daode/Python3_codes | 5d2639ffd5d65065b98d029e79b8f3608a37cf0b | 06c64f85ce2c299aef7f9311e9473e0203a05b09 | refs/heads/main | 2023-08-30T14:59:55.123128 | 2021-11-03T05:12:24 | 2021-11-03T05:12:24 | 333,632,892 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # 在这里写上你的代码 :-)
'''
题目083:求0—7所能组成的奇数个数。
'''
def tm083():
'''
【个人备注】:没说组成几位数或是否重复使用。假设1-8位都可以,且不能重复使用。
直接用排列函数,累加然后去重,就得到答案了。
'''
s = [i for i in '01234567']
import itertools #有排列与组合函数
arr = []
for i in range(1,9):
a = list(itertools.permutations(s,i)) # 长度1-8左右排列
l... | [
"noreply@github.com"
] | xiang-daode.noreply@github.com |
6e27170626bd5d4c4cb409cc4fe8e7ed80e75715 | dc9f2638209a9be235a1c4acc44fe2a26256c4b4 | /venv/projects/lib/python3.8/site-packages/pip/_vendor/chardet/mbcharsetprober.py | f875974d3c29050ff39044e0bf631df473d0e087 | [] | no_license | alwinruby/RealWorld | 4f5fcaed68fdd2d9fc37f5973fec365195cb3e9e | ec446f96f3545cb847429b5e33cefdc4f00ce432 | refs/heads/main | 2023-08-13T10:28:40.528047 | 2021-10-10T14:58:23 | 2021-10-10T14:58:23 | 408,079,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,413 | py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Universal charset detector code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer. All R... | [
"alwinsolanky@gmail.com"
] | alwinsolanky@gmail.com |
95b09bf9b3e4db89414199c59be246b83df7e9f0 | 835881ade89eaff933f81d186e69fcf9695d9392 | /bolero/utils/setup.py | dcce793f7c39de9bdf163a6985c1d62c94056aed | [
"BSD-3-Clause"
] | permissive | MMKrell/bolero | 9e056a88aa89332762c0f06d4f8e43fc4ac64018 | 0e011de35f2b364bb3bb7509bc38491762026643 | refs/heads/master | 2021-01-21T15:19:20.012273 | 2017-05-19T13:38:47 | 2017-05-19T13:38:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | def configuration(parent_package="", top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration("utils", parent_package, top_path)
config.set_options(ignore_setup_xxx_py=True,
assume_default_configuration=True,
delegate_options_t... | [
"afabisch@informatik.uni-bremen.de"
] | afabisch@informatik.uni-bremen.de |
eff44ce1869cc6d0c340bdadc54f92b6e8ba7f01 | 817f6b5a69b53599589b798b94efecd8ed1d8e17 | /exercises/1901100282/d07/mymodule/main.py | 2eb3cc635245118bc6dace1675a2ec08d1d02312 | [] | no_license | oneisonly/selfteaching-python-camp | 2422a16c0c9efe787f18fa48833b0bdc8e245982 | 2f26872d31c7392f9530ee1aa7be7958109aaec3 | refs/heads/master | 2020-07-04T23:17:39.750702 | 2019-12-03T04:38:43 | 2019-12-03T04:38:43 | 202,078,442 | 0 | 0 | null | 2019-08-13T06:24:02 | 2019-08-13T06:24:01 | null | UTF-8 | Python | false | false | 3,999 | py | text = '''
愚公移⼭山
太⾏行行,王屋⼆二⼭山的北北⾯面,住了了⼀一個九⼗十歲的⽼老老翁,名叫愚公。⼆二⼭山佔地廣闊,擋住去路路,使他
和家⼈人往來來極為不不便便。
⼀一天,愚公召集家⼈人說:「讓我們各盡其⼒力力,剷平⼆二⼭山,開條道路路,直通豫州,你們認為怎
樣?」
⼤大家都異異⼝口同聲贊成,只有他的妻⼦子表示懷疑,並說:「你連開鑿⼀一個⼩小丘的⼒力力量量都沒有,怎
可能剷平太⾏行行、王屋⼆二⼭山呢?況且,鑿出的⼟土⽯石⼜又丟到哪裏去呢?」
⼤大家都熱烈烈地說:「把⼟土⽯石丟進渤海海裏。」
於是愚公就和兒孫,⼀一起開挖⼟土,把⼟土⽯石搬運到渤海海去。
愚公的鄰居是個寡婦,有個兒⼦子⼋八歲也興致勃勃地⾛走來來幫忙。
寒來來... | [
"43633521+liujiayi0042@users.noreply.github.com"
] | 43633521+liujiayi0042@users.noreply.github.com |
aae01e5ea480127d1b556c6aea6273ee7d32d993 | cccf8da8d41ae2c14f5f4313c1edcf03a27956bb | /python/python2latex/writeLTXtextnormal.py | 2f9ea1c10c926e3827f58c7bf4835b22cb57fa58 | [] | no_license | LucaDiStasio/transpilers | e8f8ac4d99be3b42a050148ca8fbc5d025b83290 | c55d4f5240083ffd512f76cd1d39cff1016909b8 | refs/heads/master | 2021-01-12T01:57:00.540331 | 2017-11-01T13:59:55 | 2017-11-01T13:59:55 | 78,448,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,293 | py | # Autogenerated with SMOP
from smop.core import *
#
@function
def writeLTXtextnormal(filepath=None,args=None,options=None,*args,**kwargs):
varargin = writeLTXtextnormal.varargin
nargin = writeLTXtextnormal.nargin
##
#==============================================================================
# C... | [
"luca.distasio@gmail.com"
] | luca.distasio@gmail.com |
4a60de6be31da7bf31c87e44c1819edbb0b124a0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_040/ch20_2020_03_05_18_36_09_760355.py | f61391c93f57ceb3a39f6885c928eb85d74c21f9 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | distancia=float(input("Qual distância você deseja percorrer: "))
if (distancia<=200):
print ("R$",(distancia:.2f*0.5))
else:
print ("R$",(200*0.5+(distancia:.2f-200)*0.45)) | [
"you@example.com"
] | you@example.com |
5b1b804ba412f88488a66775b1cd8af3b8f2a81e | 517d461257edd1d6b239200b931c6c001b99f6da | /Circuit_Playground/CircuitPython/Data_Logging/typing/typing_original_.py | 5b9aa66386ae0b84741b00930ee46fc0dee033a7 | [] | no_license | cmontalvo251/Microcontrollers | 7911e173badff93fc29e52fbdce287aab1314608 | 09ff976f2ee042b9182fb5a732978225561d151a | refs/heads/master | 2023-06-23T16:35:51.940859 | 2023-06-16T19:29:30 | 2023-06-16T19:29:30 | 229,314,291 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | # Circuit Playground Express Data Time/Light Intensity/Temp
# Log data to a spreadsheet on-screen
# Open Spreadsheet beforehand and position to start (A,1)
# Use slide switch to start and stop sensor readings
# Time values are seconds since board powered on (relative time)
import time
from digitalio import DigitalInO... | [
"cmontalvo251@gmail.com"
] | cmontalvo251@gmail.com |
64d2855cd04459ab7a7b86a9e703c6518a7c19f3 | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/not/sample_good666.py | 3687c9337e2f798525c72cf0779d606b08e582b2 | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | import random
import re
import array
import textwrap
import readline
nterms = 195
n1, n2 = 0, 1
if nterms <= 0:
print("Please provide a positive integer.")
elif nterms == 1:
print("Fibonacci sequence upto", nterms, ":")
print(n1)
else:
print("Fibonacci sequence:")
count = 0
while 0 < 195:
print(n1)
nth = n1 +... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
6730aafef63549f62e2673d9ec48a2b98ce7cfcc | d044e88e622d9f4ca350aa4fd9d95d7ba2fae50b | /application/dataentry/migrations/0192_auto_20210722_1359.py | 7e1c663d3fec4392b13dc51e6c16f22fc0f16cee | [] | no_license | Tiny-Hands/tinyhands | 337d5845ab99861ae189de2b97b8b36203c33eef | 77aa0bdcbd6f2cbedc7eaa1fa4779bb559d88584 | refs/heads/develop | 2023-09-06T04:23:06.330489 | 2023-08-31T11:31:17 | 2023-08-31T11:31:17 | 24,202,150 | 7 | 3 | null | 2023-08-31T11:31:18 | 2014-09-18T19:35:02 | PLpgSQL | UTF-8 | Python | false | false | 497 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2021-07-22 13:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dataentry', '0191_auto_20210712_1433'),
]
operations = [
migrations.AlterF... | [
"scrishel@sbcglobal.net"
] | scrishel@sbcglobal.net |
9efe0099db495a6abf8ec4e5391c09aec9b087d3 | 525bdfe2c7d33c901598a501c145df94a3e162b0 | /math_projects/kateryna/bin/constants.py | c2f278310902832628add1fa859476272f1c01ff | [] | no_license | davendiy/ads_course2 | f0a52108f1cab8619b2e6e2c6c4383a1a4615c15 | e44bf2b535b34bc31fb323c20901a77b0b3072f2 | refs/heads/master | 2020-04-06T09:37:12.983564 | 2019-05-09T10:28:22 | 2019-05-09T10:28:22 | 157,349,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | #!/usr/bin/env python3
# -*-encoding: utf-8-*-
import logging
DEFAULT_N = 1000 # к-ть елементів, які повертає пошук за умовчанням
# типи елементів (значення - назви таблиць у БД)
KEY_WORD = 'Key_words'
SITE = 'Sites'
LINK = 'Links'
CATEGORIES = 'Categories' # назва таблиці категорій
DEFAULT_DATABASE = 'data... | [
"davendiy@gmail.com"
] | davendiy@gmail.com |
34109b133c9e51f5fe159c8a970393a67ac6d7d8 | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/python/ops/gradients.py | 9fa8e27d5cb51e0c2dd0b7926756a579d38841d2 | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 1,240 | py | # Copyright 2015 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 applica... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
68d509c7c66a8393f202ba51444e4af380bc3c9b | 9ca9cad46f2358717394f39e2cfac2af4a2f5aca | /Week16/MainHW/MainHW Week16_KSY.py | 86af737749bde01e82c6dcf8a85382d1d4c33cd5 | [] | no_license | Artinto/Python_and_AI_Study | ddfd165d1598914e99a125c3019a740a7791f6f6 | 953ff3780287825afe9ed5f9b45017359707d07a | refs/heads/main | 2023-05-05T15:42:25.963855 | 2021-05-24T12:24:31 | 2021-05-24T12:24:31 | 325,218,591 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,897 | py | '''
This script shows how to predict stock prices using a basic RNN
'''
import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import os
import matplotlib
torch.manual_seed(777) # reproducibility
import matplotlib.pyplot as plt
def MinMaxScaler(data):
''' Min Max Normalizat... | [
"noreply@github.com"
] | Artinto.noreply@github.com |
0861a3ba0e77e14cd38e259cec9bfe9413d33873 | e7d5555eb0b80ad59e7c76dd31e5fa9a23ec4a4c | /muddery/worlddata/dao/dialogue_sentences_mapper.py | 6e08b22dd51bc6ba16bc055d6d3aed08c566c4e2 | [
"BSD-3-Clause"
] | permissive | noahzaozao/muddery | 4d1ef24b4a7f0ef178a1c28c367a441cbb57ee5c | 294da6fb73cb04c62e5ba6eefe49b595ca76832a | refs/heads/master | 2023-01-25T02:23:50.123889 | 2018-06-10T17:12:22 | 2018-06-10T17:12:22 | 137,031,119 | 0 | 0 | NOASSERTION | 2019-10-28T15:04:26 | 2018-06-12T07:05:42 | Python | UTF-8 | Python | false | false | 691 | py | """
Query and deal common tables.
"""
from __future__ import print_function
from evennia.utils import logger
from django.apps import apps
from django.conf import settings
class DialogueSentencesMapper(object):
"""
NPC's dialogue sentences.
"""
def __init__(self):
self.model_name = "dialogue_... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
ea86b165173183397c78e5aa1e6322ec98a122de | 740cd3a198c8ebb815da04c0e7a549696ab6a84c | /virtual/bin/wheel | 4ef50c7f2679686ea22a122921d06bdaa0c52a4f | [] | no_license | kahenya-anita/Simple-Ecommerce | 3a3734e8b9f8c5ce489404042c456449adbca724 | ff9d7d06869c52d595304ab238f797a1c65947d0 | refs/heads/master | 2023-03-03T13:40:43.930809 | 2021-02-09T15:24:56 | 2021-02-09T15:24:56 | 337,444,815 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/home/toshiba/Documents/Ecommerce_Django-master/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"anitakahenya1@gmail.com"
] | anitakahenya1@gmail.com | |
6b34dfae513fa55c66c92dd64ea87fa9d1207242 | 45a924e5cd1dfc75a2088d3d4463995803a06a09 | /frappe/email/doctype/email_unsubscribe/test_email_unsubscribe.py | 602840fe3b30b30238661516ade48243176ea9b0 | [
"MIT"
] | permissive | joe-santy/frappe | 7cad66295f07f60176fbbc24766af5e38ac1e9d2 | a6d9170e5fd9fdff462eee7967409ff7e23b6d2f | refs/heads/develop | 2023-07-15T15:59:03.226729 | 2021-08-09T16:20:11 | 2021-08-09T16:20:11 | 394,489,040 | 0 | 0 | MIT | 2021-08-13T13:12:31 | 2021-08-10T01:22:17 | null | UTF-8 | Python | false | false | 258 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
import frappe
import unittest
# test_records = frappe.get_test_records('Email Unsubscribe')
class TestEmailUnsubscribe(unittest.TestCase):
pass
| [
"rmehta@gmail.com"
] | rmehta@gmail.com |
5271e0aa4d4bd54e4dc811366c02c1b6de9d5155 | e7069d85fd4a6fac4958f19b4d14503ffa42b4bb | /connecting_silos_kththesis_TCOMK_CINTE/mysite/polls/library/Canvas-master/compute_list_of_KTH_play_URLs_on_pages_in_course3.py | 3320841678f5de02e64319ba7c296b48e4a75a03 | [] | no_license | ShivaBP/Bechelor-degree-project | cd062ff10e207e380a2c59bc0a50f073c2e866bd | 9f055d69ec9deabb6bd8ab3768c9d56787eed94d | refs/heads/master | 2022-07-21T01:18:41.893027 | 2018-11-16T14:38:13 | 2018-11-16T14:38:13 | 137,949,087 | 0 | 0 | null | 2022-07-06T19:49:14 | 2018-06-19T21:47:51 | HTML | UTF-8 | Python | false | false | 16,355 | py | #!/usr/bin/python3
#
# ./compute_list_of_KTH_play_URLs_on_pages_in_course3.py course_id
#
# walks all of the course pages, the syllabus, and assignments
#
# it outputs a CSV file with the name URLs_for_course_xx.csv
# where xx is the course_id
#
# G. Q. Maguire Jr.
#
# 2017.04.21
# based on earlier program: compute_... | [
"shivabp@icloud.com"
] | shivabp@icloud.com |
74b0a2c23703cb4e5ab03f2b4f26df4d4bbbd55f | c705b2620119df0d60e925e55228bfbb5de3f568 | /archives/twitter/add_to_list.py | b07b820c711aef611ff33b5d19f9e517e8424b05 | [
"Apache-2.0"
] | permissive | mcxiaoke/python-labs | 5aa63ce90de5da56d59ca2954f6b3aeae7833559 | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | refs/heads/master | 2021-08-05T03:47:51.844979 | 2021-07-24T11:06:13 | 2021-07-24T11:06:13 | 21,690,171 | 7 | 7 | Apache-2.0 | 2020-08-07T01:52:32 | 2014-07-10T10:20:17 | Python | UTF-8 | Python | false | false | 1,023 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: mcxiaoke
# @Date: 2016-01-04 14:39:15
from __future__ import print_function, unicode_literals
import os
import sys
import codecs
import requests
import tweepy
from config import OWNER, OWNER_ID, CONSUMER_KEY, CONSUMER_SECRET, ACCESSS_TOKEN_KEY, ACCESS_TOKEN_SEC... | [
"mcxiaoke@gmail.com"
] | mcxiaoke@gmail.com |
1cf91c973076f5cd1c46e4f58e68999f1a89e80d | a2f67003e0eededb0c2d7645d83243d19af71340 | /exam_subject/Subject/apps/topic/migrations/0010_answer_analysis.py | 117680a8d906da18fcca8540dbfdcda5856ebd05 | [] | no_license | john123951/SubjectSystem | c6bf118627aa54ba56bd367f73528e66f51dcd58 | a7f8e6014f81ec4376f3c5f437a280e801ab22e4 | refs/heads/master | 2020-07-13T16:36:15.663952 | 2019-06-19T07:02:14 | 2019-06-19T07:02:14 | 205,115,935 | 7 | 0 | null | 2019-08-29T08:23:00 | 2019-08-29T08:22:59 | null | UTF-8 | Python | false | false | 422 | py | # Generated by Django 2.0.2 on 2019-05-05 22:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('topic', '0009_examtime_exam_number'),
]
operations = [
migrations.AddField(
model_name='answer',
name='analysis',
... | [
"you@example.com"
] | you@example.com |
c5708367337a0c64f2df12dcce951050022001b6 | 2af1e6357f51d0d08b1a991e2bd922b7bdc8c0b6 | /baekjoon/accepted/15480 LCA와 쿼리.py | 8220d3407e8cfb7390cba36119d50b67d795abeb | [] | no_license | grasshopperTrainer/coding_practice | 530e9912b10952c866d35d69f12c99b96959a22d | d1e5e6d6fa3f71f1a0105940fff1785068aec8b0 | refs/heads/master | 2023-06-01T13:30:15.362657 | 2021-06-08T08:40:15 | 2021-06-08T08:40:15 | 267,359,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | # not accepted
from sys import stdin
from collections import deque
def solution(N, edges, asked):
nd_tree = {}
for a, b in edges:
nd_tree.setdefault(a, []).append(b)
nd_tree.setdefault(b, []).append(a)
answers = []
for root, a, b in asked:
# find directed tree and depth
... | [
"grasshoppertrainer@gmail.com"
] | grasshoppertrainer@gmail.com |
6a3307afb49fd8cb535570b49aaeafc631f3394b | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/network/v20170301/get_endpoint.py | 7e85c2b2da6288d9cba3d474eec4981e754e7d0c | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 8,850 | 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
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
e048837fa12f55157f9452e0736edb9ff1bd7cf7 | eeb7e70b0b68decbdcb32682351e54e0be99a5b0 | /kaggle/python_files/sample904.py | 82ab437aca033f7a777414cf29125f255fb92898 | [] | no_license | SocioProphet/CodeGraph | 8bafd7f03204f20da8f54ab23b04f3844e6d24de | 215ac4d16d21d07e87964fe9a97a5bf36f4c7d64 | refs/heads/master | 2023-02-16T02:51:27.791886 | 2021-01-15T07:00:41 | 2021-01-15T07:00:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,371 | py | #!/usr/bin/env python
# coding: utf-8
# **Notebook Objective:**
#
# Objective of the notebook is to look at the different pretrained embeddings provided in the dataset and to see how they are useful in the model building process.
#
# First let us import the necessary modules and read the input data.
# In[ ]:
imp... | [
"mccusker@gmail.com"
] | mccusker@gmail.com |
ed66afc6b66bb066763ac8e3bfe8202fffbd4239 | 9c61ec2a55e897e4a3bb9145296081c648d812c4 | /docs/cd/06443007程式碼/ch10/10-7.py | 12e0599c6cd9b2461a1e86381e5859ddb809a4da | [] | no_license | wildboy2arthur/ML-Class | 47899246251d12972a6d3875160c1cc8d1052202 | 345c86e3f8890919d59a63a79674acbdcd4577c4 | refs/heads/main | 2023-07-16T11:32:07.683652 | 2021-08-24T08:25:04 | 2021-08-24T08:25:04 | 399,388,026 | 0 | 0 | null | 2021-08-24T08:18:36 | 2021-08-24T08:18:35 | null | UTF-8 | Python | false | false | 74 | py | sns.scatterplot(x='mean radius', y='mean texture', data=df, hue='target'); | [
"1101404110@nkust.edu.tw"
] | 1101404110@nkust.edu.tw |
3ec63c24410051f8a1dc64905bbeb91ff0b787ea | 4839df5ce210b0d2d74a67677a2ec3d4faacf74d | /tally_ho/apps/tally/tests/views/reports/test_administrative_areas_reports.py | 4bc221d7f49dadf7c0978dcd26137ff7772fdb3b | [
"Apache-2.0"
] | permissive | hashem92/tally-ho | 5bf7f8f30804362ccf862d5d9a920bb1ce4bb17b | f1667a5dbef808f37c8717ebfacf53499333370c | refs/heads/master | 2023-05-05T08:01:14.968280 | 2020-11-05T13:48:21 | 2020-11-05T13:48:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,634 | py | from django.test import RequestFactory
from tally_ho.libs.permissions import groups
from tally_ho.apps.tally.models.sub_constituency import SubConstituency
from tally_ho.apps.tally.views.reports import administrative_areas_reports
from tally_ho.libs.tests.test_base import create_result_form,\
create_station, creat... | [
"jmwashuma@live.com"
] | jmwashuma@live.com |
e35702ff865d77d881bb1f8c662a0694bcae1d85 | 027bdfb0f5dd6e7fe86189324a2c7ebd3a1ebea9 | /hydrus/client/db/ClientDBMappingsCacheSpecificStorage.py | 83ba6be205cd310a23f5eb700d6bfbe24c4fb7c0 | [
"WTFPL"
] | permissive | pianomanx/hydrus | 5299a1bcc383760b7ed349e047467f6ac8fa6a43 | 368309645f85ecff832c0a968b3492bf582cdad5 | refs/heads/master | 2023-09-02T14:19:42.516186 | 2023-08-30T21:00:53 | 2023-08-30T21:00:53 | 90,190,997 | 0 | 0 | NOASSERTION | 2023-09-14T09:10:58 | 2017-05-03T20:33:50 | Python | UTF-8 | Python | false | false | 29,320 | py | import collections
import itertools
import sqlite3
import typing
from hydrus.core import HydrusConstants as HC
from hydrus.core import HydrusData
from hydrus.core import HydrusDBBase
from hydrus.core import HydrusLists
from hydrus.core import HydrusTime
from hydrus.client.db import ClientDBFilesStorage
from hydrus.cl... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
cfe01345e37aadfec5a5a2ccb5e0ad6c4a9df927 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/doctor/migrations/0192_auto_20190125_1514.py | 3779ca4d7f242aa5bd1e5ad30a90d32209c5bc7d | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 2.0.5 on 2019-01-25 09:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('doctor', '0191_auto_20190124_1845'),
]
operations = [
migrations.AlterField(
model_name='cancellationreason',
name='... | [
"shashanks@policybazaar.com"
] | shashanks@policybazaar.com |
4ae82fbb54695b12dbf2f6d5842e6919c8a8330b | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/1111.py | a46d75a4bf3135788b1b71ced5eaa6713ed67828 | [] | 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 | 981 | py | # Program to solve C. Recycled Numbers
def is_recycled_pair(a, b, call):
astr = str(a)
bstr = str(b)
if len(astr) != len(bstr) or len(astr) == 1:
return False
for i in range(1, len(astr)):
if astr == (bstr[len(astr) - i:] + bstr[:len(astr) - i]):
return True
if call == 1:
return is_re... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8e5e8ca0317d169947d49cf752033de72b169638 | 0f4823e4e8dcedf64b0061c9f02d2bf4b410c0e0 | /autotest/t000_testscripts.py | 4394523e616b8f2de32d6d4ce65a26d645f47bda | [
"BSD-3-Clause"
] | permissive | MJKnowling/flopy | cfa4383c8c834fbc57341511621d3f2401726224 | f480ff304e5728ccaa5e663d3fa77ec025cb0ba8 | refs/heads/master | 2021-09-20T23:57:13.032896 | 2017-12-01T18:57:09 | 2017-12-01T18:57:09 | 113,387,250 | 0 | 0 | null | 2017-12-07T01:33:03 | 2017-12-07T01:33:02 | null | UTF-8 | Python | false | false | 1,809 | py | # Remove the temp directory and then create a fresh one
from __future__ import print_function
import os
import sys
import shutil
exclude = ['flopy_swi2_ex2.py', 'flopy_swi2_ex5.py']
for arg in sys.argv:
if arg.lower() == '--all':
exclude = []
sdir = os.path.join('..', 'examples', 'scripts')
# make workin... | [
"jdhughes@usgs.gov"
] | jdhughes@usgs.gov |
9978938d6c89dfc4cbef5d0b474f6ea5d568ee40 | 04fb46ffbf635ca5090b860e39098c366a3a84e4 | /fpga/mqnic/fb2CG/fpga_100g/tb/fpga_core/test_fpga_core.py | f115c4c4cb3c16eeba80e3ad6828388750820cf1 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | yangcc2019/corundum | 46b7c7126973976617e065373bb7666df71cdc3c | 7c8abe261b2ec3e653da7bc881f769668a231bde | refs/heads/master | 2023-02-24T11:17:47.471315 | 2021-02-02T05:55:07 | 2021-02-02T05:55:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,033 | py | """
Copyright 2020, The Regents of the University of California.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this ... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
eb239b21952da625554fc6c3c1b389fd1c3d1bfe | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03293/s450382229.py | 6fbb1ed548a962cfbf8b0a5267d97027111aea93 | [] | 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 | 107 | py | S,T=input(),input()
for i in range(len(T)):
if S==T:print('Yes');exit()
S=S[-1]+S[0:-1]
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
95b54f2914a61f9a045c2fd26d9d46b9767a42c4 | 0b953c73458679beeef3b95f366601c834cff9b4 | /hunter/longest palindrome substring within string.py | 9f907b18b130617c943cd267d9545d83c25ece09 | [] | no_license | Sravaniram/Python-Programming | 41531de40e547f0f461e77b88e4c0d562faa041c | f6f2a4e3a6274ecab2795062af8899c2a06c9dc1 | refs/heads/master | 2020-04-11T12:49:18.677561 | 2018-06-04T18:04:13 | 2018-06-04T18:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | a=raw_input()
l=[]
m=[]
for i in range(0,len(a)):
for j in range(i,len(a)):
z=a[i:j+1]
y=z[::-1]
if z==y:
l.append(z)
m.append(len(z))
y=max(m)
for i in range(0,len(a)):
if m[i]==y:
print l[i]
break
| [
"noreply@github.com"
] | Sravaniram.noreply@github.com |
aaa1bebc04e41b15d7bbd59b3e874ecfad08e1e6 | ebde1fadfbe336fa52bc20c8a2f74de8d1d90cf3 | /src/moca_modules/moca_share/__init__.py | 53ea1bfc999d299bbc568895421ca67f221548ec | [
"MIT"
] | permissive | el-ideal-ideas/MocaTwitterUtils | be2481ce9eb0f9e53e8e0bd54b1b265c80e4f959 | 544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3 | refs/heads/master | 2023-02-18T23:27:31.056121 | 2021-01-23T07:41:16 | 2021-01-23T07:41:16 | 321,014,400 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # -- Imports --------------------------------------------------------------------------
from .MocaMultiProcessLock import MocaMultiProcessLock
from .MocaSharedMemory import MocaSharedMemory
# -------------------------------------------------------------------------- Imports --
"""
This module can share data between ... | [
"el.idealideas@gmail.com"
] | el.idealideas@gmail.com |
81b6659ce41232ce1546045cddc849edadb44f22 | 3a2af7b4b801d9ba8d78713dcd1ed57ee35c0992 | /zerver/webhooks/errbit/view.py | a47ccae2f0fc9f5a3b1841a1b5be747b0a7ea1b3 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | timabbott/zulip | 2b69bd3bb63539adbfc4c732a3ff9d52657f40ac | 42f239915526180a1a0cd6c3761c0efcd13ffe6f | refs/heads/master | 2023-08-30T21:45:39.197724 | 2020-02-13T23:09:22 | 2020-06-25T21:46:33 | 43,171,533 | 6 | 9 | Apache-2.0 | 2020-02-24T20:12:52 | 2015-09-25T19:34:16 | Python | UTF-8 | Python | false | false | 1,333 | py | from typing import Any, Dict
from django.http import HttpRequest, HttpResponse
from zerver.decorator import api_key_only_webhook_view
from zerver.lib.request import REQ, has_request_variables
from zerver.lib.response import json_success
from zerver.lib.webhooks.common import check_send_webhook_message
from zerver.mod... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
b157b3943a5da0075b79e5476fd9dc13cb5f888d | f0e25779a563c2d570cbc22687c614565501130a | /Think_Python/rotate.py | 88a2a43db71c667c9424a08799bd16968e7efbd5 | [] | no_license | XyK0907/for_work | 8dcae9026f6f25708c14531a83a6593c77b38296 | 85f71621c54f6b0029f3a2746f022f89dd7419d9 | refs/heads/master | 2023-04-25T04:18:44.615982 | 2021-05-15T12:10:26 | 2021-05-15T12:10:26 | 293,845,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | """This module contains code from
Think Python by Allen B. Downey
http://thinkpython.com
Copyright 2012 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
import string
def rotate_letter(letter, n):
"""Rotates a letter by n places. Does not change other chars.
letter: single-lett... | [
"cherry.kong0907@gmail.com"
] | cherry.kong0907@gmail.com |
77ab9cecf9571229a858bc319ec4530650f8d96c | 4a48593a04284ef997f377abee8db61d6332c322 | /python/opencv/opencv_2/gui/opencv_with_tkinter.py | c38c3d8a121d82026b7644085f0fe74574998ae3 | [
"MIT"
] | permissive | jeremiedecock/snippets | 8feaed5a8d873d67932ef798e16cb6d2c47609f0 | b90a444041c42d176d096fed14852d20d19adaa7 | refs/heads/master | 2023-08-31T04:28:09.302968 | 2023-08-21T07:22:38 | 2023-08-21T07:22:38 | 36,926,494 | 26 | 9 | MIT | 2023-06-06T02:17:44 | 2015-06-05T10:19:09 | Python | UTF-8 | Python | false | false | 3,408 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2015 Jérémie DECOCK (http://www.jdhp.org)
"""
OpenCV - Trackbar widget.
Required: opencv library (Debian: aptitude install python-opencv)
See: https://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_gui/py_trackbar/py_trackbar.html#track... | [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
05569309e30bae8fa01d77141b06eb6f922b24e6 | 43c24c890221d6c98e4a45cd63dba4f1aa859f55 | /test/tests/os_test.py | cb10509f1d7cdb4b47c62f144aadf5f27e252502 | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jmgc/pyston | c8e4df03c33c6b81d20b7d51a781d9e10148238e | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | refs/heads/master | 2020-12-11T07:51:58.968440 | 2020-09-11T14:38:38 | 2020-09-11T14:38:38 | 39,242,644 | 0 | 0 | NOASSERTION | 2020-09-11T14:38:39 | 2015-07-17T08:09:31 | Python | UTF-8 | Python | false | false | 673 | py | #
# currently broken:
# import os.path
import os
r1 = os.urandom(8)
r2 = os.urandom(8)
print len(r1), len(r2), type(r1), type(r2), r1 == r2
print type(os.stat("/dev/null"))
print os.path.expanduser("~") == os.environ["HOME"]
print os.path.isfile("/dev/null")
print os.path.isfile("/should_not_exist!")
e = OSError... | [
"kmod@dropbox.com"
] | kmod@dropbox.com |
4b12cb36cca7db69add9afd812f75a2819c4b7f7 | 2ec26d004a653c0576594e48ac13dd71f539b30a | /crikey/conditional_audio/fruit_binned_slow_mse/fruitspeecher_binned_slow_mse.py | c5d16460509e10da90e3e3c6c64df5e5c6b1c737 | [] | no_license | kastnerkyle/research_megarepo | 6aca5b2c3b2413e0def1093b23f2826e3e7e5e97 | ab182667650fd59b99f75d4b599d7ace77a3f30b | refs/heads/master | 2021-01-17T20:31:52.250050 | 2016-12-27T01:28:54 | 2016-12-27T01:28:54 | 68,341,074 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 24,969 | py | import numpy as np
import theano
from theano import tensor
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
from scipy.io import wavfile
import os
import sys
from kdllib import load_checkpoint, theano_one_hot, concatenate
from kdllib import fetch_fruitspeech_spectrogram, list_iterator
from kdllib i... | [
"kastnerkyle@gmail.com"
] | kastnerkyle@gmail.com |
781a83a87d5fb9e980be34d090ce68cf1aba93a2 | 66c3ff83c3e3e63bf8642742356f6c1817a30eca | /.vim/tmp/neocomplete/buffer_cache/=+home=+dante=+proyectos=+django-1.9=+sermul=+manage.py | dca2c396a7c3a45e15f9cbfa9f80d467b50c38e8 | [] | no_license | pacifi/vim | 0a708e8bc741b4510a8da37da0d0e1eabb05ec83 | 22e706704357b961acb584e74689c7080e86a800 | refs/heads/master | 2021-05-20T17:18:10.481921 | 2020-08-06T12:38:58 | 2020-08-06T12:38:58 | 30,074,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | {'usr', 'bin', 'env', 'python', 'import', 'os', 'sys', 'if', '__name__', '__main__', 'environ', 'setdefault', 'DJANGO_SETTINGS_MODULE', 'sermul', 'settings', 'from', 'django', 'core', 'management', 'execute_from_command_line', 'argv'}
| [
"pacifi.bnr@gmail.com"
] | pacifi.bnr@gmail.com |
ac00ac4bb96ebe184493e06849d1d2e99492b860 | 2f96d0e69ce3d6b1ea4623ed5b4c1741d9634ea9 | /tests/dummy_repo/tvm/python/tvm/hybrid/util.py | 556ede1519e92fb2666ef894fd89ca5bfffa2590 | [
"Apache-2.0"
] | permissive | tqchen/ffi-navigator | ae1e8923e4d5be589beabfadba91f4a3b39e03dd | 46b0d0c6bce388a8e1e2cb7ed28062e889e4596c | refs/heads/main | 2023-02-06T22:32:54.214871 | 2023-02-05T16:25:16 | 2023-02-05T16:25:16 | 230,478,838 | 217 | 24 | Apache-2.0 | 2023-02-05T16:25:18 | 2019-12-27T16:44:58 | Python | UTF-8 | Python | false | false | 921 | py | import ast
import inspect
import logging
import sys
import numpy
from .. import api as _api
from .. import make as _make
from .. import expr as _expr
from .. import stmt as _stmt
from .._ffi.base import numeric_types
from ..tensor import Tensor
from ..container import Array
def replace_io(body, rmap):
"""Replacing... | [
"noreply@github.com"
] | tqchen.noreply@github.com |
6f6476757e06d7a487ecf584035e507e47e98cb6 | 9e9d23e7a57c46da27a491a61f19c7239d066bf8 | /biliup/__init__.py | e1ff55cbd324da2fcb10188ba6f6f304a81fa7ea | [
"MIT"
] | permissive | vmcole/bilibiliupload | f7c667927bfcc4a0c1c5eba96b674729ae776e62 | b5c416451f66c2ebe550694d4c4957129d0e966e | refs/heads/master | 2023-06-09T19:58:33.813073 | 2021-07-06T14:50:18 | 2021-07-06T14:50:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | import asyncio
from .common.reload import AutoReload
from .common.timer import Timer
from .engine.event import EventManager, Event
from .engine import config, invert_dict, Plugin
from . import plugins
__version__ = "0.0.8"
def create_event_manager():
streamer_url = {k: v['url'] for k, v in config['streamers'].... | [
"34411314+ForgQi@users.noreply.github.com"
] | 34411314+ForgQi@users.noreply.github.com |
274332a28662cdd27514f4e4d6ea6d2fb35d89f7 | 82db461036ffb2adbf0424a6f0575cd9d24b48a8 | /main.py | aa2b3ceb4b62ba95ae0a6123184a319dd03db241 | [] | no_license | webclinic017/option_pdt | fdc559f02cc529b54278e90e04170713fe93684f | dd302c6b2661e26dbfcbea0384b99e85ae9584e1 | refs/heads/master | 2023-03-24T10:43:35.998775 | 2021-03-19T14:08:38 | 2021-03-19T14:08:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,828 | py | import sys
import os
parent_path = os.path.dirname(sys.path[0])
if parent_path not in sys.path:
sys.path.append(parent_path)
import json
import pickle
import logging
import pandas as pd
import numpy as np
from datetime import datetime
from library import get_strategy
from utils.util_func import *
from optpars... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
e8d6832b01ddb153bea7721f9728d12768dc77a3 | 3c259a3755fa81dbaa5a33591c4bcedb79c20314 | /config/ssef/ssef_eval_cqg_masked_2015.config | 897b88fb2d2d418c25f44140fa30a4d2702f637a | [
"MIT"
] | permissive | djgagne/hagelslag | f96bea7395d2d967e1dc84faccf910e01b83157b | 17757de7b55737f65f615e5dccad379604961832 | refs/heads/master | 2023-07-24T20:13:07.659540 | 2023-07-13T17:02:00 | 2023-07-13T17:02:00 | 37,555,335 | 64 | 26 | MIT | 2023-07-13T17:02:01 | 2015-06-16T20:48:43 | Jupyter Notebook | UTF-8 | Python | false | false | 3,621 | config | #!/usr/bin/env python
from datetime import datetime
import numpy as np
ensemble_members = ["wrf-s3cn_arw"] + ["wrf-s3m{0:d}_arw".format(m) for m in range(3, 14)]
scratch_path = "/sharp/djgagne/"
experiment_name = "cqg_masked"
config = dict(ensemble_name="SSEF",
ensemble_members=ensemble_members,
... | [
"djgagne@ou.edu"
] | djgagne@ou.edu |
12712fe4e23a5c73bf59f892cdc1ef0041cd1ab4 | 5410700e83210d003f1ffbdb75499062008df0d6 | /leetcode/isHappy.py | 92bdf82a57b5d864724396b17b24897d123370fd | [] | no_license | lilyandcy/python3 | 81182c35ab8b61fb86f67f7796e057936adf3ab7 | 11ef4ace7aa1f875491163d036935dd76d8b89e0 | refs/heads/master | 2021-06-14T18:41:42.089534 | 2019-10-22T00:24:30 | 2019-10-22T00:24:30 | 144,527,289 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | class Solution:
def isHappy(self, n):
"""
:type n: int
:rtype: bool
"""
looplist = []
num = n
while num != 1:
if num not in looplist:
looplist.append(num)
else:
return False
num = self.sumLoca... | [
"myyan_yan@msn.com"
] | myyan_yan@msn.com |
a0602524e8bd8ee7ffd9da50880916d0a4c0a3da | adea9fc9697f5201f4cb215571025b0493e96b25 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/global_/timers/spf/state/__init__.py | baee691cec8aaf70f22e9f69662878b17b753e95 | [
"Apache-2.0"
] | permissive | andyjsharp/napalm-yang | d8a8b51896ef7c6490f011fe265db46f63f54248 | ef80ebbfb50e188f09486380c88b058db673c896 | refs/heads/develop | 2021-09-09T02:09:36.151629 | 2018-03-08T22:44:04 | 2018-03-08T22:44:04 | 114,273,455 | 0 | 0 | null | 2018-03-08T22:44:05 | 2017-12-14T16:33:35 | Python | UTF-8 | Python | false | false | 31,796 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.y... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
994523ad13eaf886d1e9b898c2b4e1e3021ae3a6 | fac37d77a8d00e3d13106bcd728d51a455dd16f2 | /kmer.py | 2c016a97eb7bf7903ce31d36c4622ef1926e080c | [] | no_license | anu-bioinfo/rosalind-4 | c6a628bba94f647cf4a34bdf505f1527af4346a9 | 3ddc659d44298f4dd4b5dde66d7833b4d27a2580 | refs/heads/master | 2020-03-25T13:47:39.521215 | 2014-09-14T02:30:54 | 2014-09-14T02:30:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | #!/usr/bin/env python
from __future__ import print_function
import os
from revp import read_fasta
from subs import substring_find
from lexf import lexf_order
def kmer_composition(dna_string):
output = []
for p in lexf_order(4, 'ACGT'):
pos = list(substring_find(dna_string, ''.join(p)))
outpu... | [
"luiz.irber@gmail.com"
] | luiz.irber@gmail.com |
3f532246345c6898340e9b5f2125626a978ca0cf | fed6c6bdb6276d195bc565e527c3f19369d22b74 | /galaxy-galaxy lensing/prepare_cata/Fourier_Quad_cata/gather_raw_cata.py | 4e38e9d277633610cb84172ab6665238c0c69d4e | [] | no_license | hekunlie/astrophy-research | edbe12d8dde83e0896e982f08b463fdcd3279bab | 7b2b7ada7e7421585e8993192f6111282c9cbb38 | refs/heads/master | 2021-11-15T05:08:51.271669 | 2021-11-13T08:53:33 | 2021-11-13T08:53:33 | 85,927,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,291 | py | import matplotlib
matplotlib.use("Agg")
import os
my_home = os.popen("echo $MYWORK_DIR").readlines()[0][:-1]
from sys import path
path.append('%s/work/mylib/'%my_home)
import tool_box
import h5py
from mpi4py import MPI
import numpy
import time
from subprocess import Popen
import warnings
warnings.filterwarnings('error'... | [
"hekun_lee@sjtu.edu.cn"
] | hekun_lee@sjtu.edu.cn |
038be3106c05dcfa1cf28d115152639a38956939 | aa2645c96047d775061e0443299c64fc5b255027 | /0405 if1.py | a77e5980ffceb18e44a2854875622938e9a1089f | [] | no_license | sunnyhyo/Problem-Solving-and-SW-programming | ca63b705b27ebb49d32a0a6591211250f213d019 | 8689b9728c028a870dfba7a4d16601a248c7e792 | refs/heads/master | 2021-03-30T21:07:27.276272 | 2018-06-14T15:27:22 | 2018-06-14T15:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py |
#조건문 1/4
score=input("점수입력")
score=int(score)
if score > 90:
print("합격!!!")
print("장학금도 받을 수 있음")
| [
"sunnyhyo77@gmail.com"
] | sunnyhyo77@gmail.com |
3ee2e5b8231c35ed791296508519b38ff68c5c91 | 063775cfd2642614feb1d340a19740d3be3b4239 | /rich/console.py | 774f1bcf16f2c27f2bd2a00e20e9bc16f4c9ddd5 | [
"MIT"
] | permissive | adamchainz/rich | 7e0a328a6a5d0673255aa7f364d22e802a51b3e3 | 7b00f0ecb15a4698931d49922a665a6f02782e29 | refs/heads/master | 2023-08-18T13:40:07.405137 | 2020-01-26T17:24:55 | 2020-01-26T17:24:55 | 236,697,550 | 0 | 0 | MIT | 2020-01-28T09:18:29 | 2020-01-28T09:18:28 | null | UTF-8 | Python | false | false | 32,567 | py | from collections import ChainMap
from collections.abc import Mapping, Sequence
from contextlib import contextmanager
from dataclasses import dataclass, replace
from enum import Enum
import inspect
from itertools import chain
import os
from operator import itemgetter
import re
import shutil
import sys
from typing import... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
9d54ff837c1a8f276a97e819ccf6c7a49e66713b | 24144f83276705fe2f4df295ee50199c2035ca7b | /active/theses-mainz.py | 0acd9b145b345b370518620e935b1280fb1eaed5 | [] | no_license | AcidBurn429/ejlmod | a2e4eb6bb28bcb6bbccc3d83e2e24f5aed23d4eb | dec50edbb14380686072d7311589a2363ef5cd00 | refs/heads/master | 2023-08-14T21:19:10.890194 | 2021-09-28T13:39:06 | 2021-09-28T13:39:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,405 | py | # -*- coding: utf-8 -*-
#harvest theses from Mainz U.
#FS: 2020-01-27
import getopt
import sys
import os
import urllib2
import urlparse
from bs4 import BeautifulSoup
import re
import ejlmod2
import codecs
import datetime
import time
import json
xmldir = '/afs/desy.de/user/l/library/inspire/ejl'
retfiles_path = "/afs/... | [
"florian.schwennsen@desy.de"
] | florian.schwennsen@desy.de |
d49bcc85fb670923856b90cd4b3431c31b19fed9 | 8671856181ef218f147f23f367fd0b1dc7592e1a | /realtor/migrations/0020_auto_20190918_1213.py | 69d2a3d67932c1247662582520c4265d41e2eef5 | [] | no_license | Alishrf/Shop_Website | e4fef9618aec2db6f4a655ff643aa68cf42dbb68 | 971d4a2ff8b7a68a0157681ff26404fe403502e6 | refs/heads/master | 2020-08-11T06:03:47.642870 | 2019-10-14T14:29:30 | 2019-10-14T14:29:30 | 214,504,737 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # Generated by Django 2.2.4 on 2019-09-18 07:43
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('realtor', '0019_auto_20190918_1203'),
]
operations = [
migrations.AlterField(
model_name='realtor'... | [
"a.sharifzadeh11@gmail.com"
] | a.sharifzadeh11@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.