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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
118e4b1974f84443f4a7aff55f59536929fc7f86 | 9f3b478d39f1a8b706813c1b4993614a376a045d | /pycryptics/utils/ngrams.py | f5b4948ad7ec29d344d4bdd141514be91e173c58 | [
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | kod3r/cryptics | a201c62bdd2ecafee5937d2d7af9c29dcd38ec67 | 4bd17d24202b6fabce8c7ad378a61e77eb7562a7 | refs/heads/master | 2020-12-25T16:36:25.800144 | 2013-03-09T06:12:35 | 2013-03-09T06:12:35 | 10,188,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import cPickle as pickle
import os.path
INITIAL_NGRAMS = dict()
NGRAMS = dict()
i = 0
while True:
if os.path.exists('data/ngrams.%02d.pck' % i):
with open('data/initial_ngrams.%02d.pck' % i, 'rb') as f:
d = pickle.load(f)
INITIAL_NGRAMS.update(d)
with open('data/ngrams.%02d... | [
"robin.deits@gmail.com"
] | robin.deits@gmail.com |
6eead2339d7beb6299ea75b3f6f188d0abada27a | 180ed6c8ff26b365e56c63d878a69c2e9d9b8c54 | /code/Day_04/01_xml.py | e218c1a1a13919328e7e183d4d19d9fc0e95e7c4 | [] | no_license | archeranimesh/python_devu_in | 9af46503b07f82a137d4b820920fa72f96a5067b | 3d77e9e7b150aae15375b236e3de7f573da4bdce | refs/heads/master | 2020-06-08T21:22:24.329530 | 2019-07-14T11:22:55 | 2019-07-14T11:22:55 | 193,308,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # Read from XML.
import xml.etree.ElementTree as ET
file_path = r"code/Day_04/data_files/data.xml"
f = ET.parse(file_path)
print("type(f): ", type(f))
# get the root.
root = f.getroot()
print("type(root): ", type(root))
print("---" * 30)
for i in root.iter():
print(i.tag)
print(i.text)
print("---" * 5)... | [
"animeshb@archerimagine.com"
] | animeshb@archerimagine.com |
0d37212ad0a4f29125a824731a08f3d1111d8ae1 | 30e7173cd25d0c60bf3aecb009366c375e11411a | /articulos/templatetags/dict_key.py | a9144c06451ff0fe29b455948e58eb9ca08bbdd4 | [] | no_license | arm98sub/djangoHospital | 55eb8ab437d1fb2036f55d9247d41fc577978e1e | bef771676b336d9b98f750e2e0648324cb259056 | refs/heads/master | 2023-05-17T14:39:54.510044 | 2021-06-01T23:36:06 | 2021-06-01T23:36:06 | 372,985,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.template.defaultfilters import register
@register.filter(name='dict_key')
def dict_key(d,k):
return d.get(str(k)).get('cantidad') | [
"vagrant@ubuntu1804.localdomain"
] | vagrant@ubuntu1804.localdomain |
cc30e097c5a8e1be0b554cb3c5dce3428c0620e4 | 4af59c0cd941f0ebe5f0ce447a4db90914585d23 | /tensorflow_federated/python/core/impl/compiler/local_computation_factory_base.py | 9297be8cd44edaf0ccebc7d3d4ab82a6af1935f9 | [
"Apache-2.0"
] | permissive | ali-yaz/federated | bbabac58c8a5e96f95cef2b7558f61c6a8610651 | 8e3d60ae6129611b5ebf8f94755c50082d97d45a | refs/heads/master | 2023-03-10T21:19:43.160733 | 2021-02-23T09:11:10 | 2021-02-23T09:11:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | # Copyright 2021, The TensorFlow Federated Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
fbb2860ca4221244c0a63770d79e6e96dac90529 | 3603f8f76ff81ea75bfc916888bdcfa55b7f12e4 | /alds/alds1_6_c.py | ac675e72489195bfa0b40dd0da0ab01f62841d94 | [] | no_license | kimotot/aizu | 4de0319959a3b166b8c2c4940ab7b701b6ee3395 | 315be1240cff733e1c6a7cd98942a95b3bd7ec96 | refs/heads/master | 2021-07-24T12:37:41.935302 | 2021-03-10T09:05:05 | 2021-03-10T09:05:05 | 91,927,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | def decode():
n = int(input())
cards = []
for i in range(n):
[m, v] = input().split()
cards.append((m, int(v), i))
return n, cards
def partition(a, p, r):
x = a[r][1]
i = p - 1
for j in range(p, r):
if a[j][1] <= x:
i += 1
t = a[j]
... | [
"god4bid@hear.to"
] | god4bid@hear.to |
5e3fbd7e68a9f9a546b5ab547039decf8d759b24 | c50cf19707ecf44c8e15acf0e994d288fe4f01a7 | /credit/admin.py | d27528df722953df4b3f2fcffcb8d2b79e4637f8 | [
"MIT"
] | permissive | JeremyParker/idlecars-backend | ee5981356c60161dee05c22e01e5c913e73083c0 | 819cce48e4679d61164b238b81dab0e4d51b8afa | refs/heads/master | 2021-03-16T04:29:43.287760 | 2018-03-03T23:16:02 | 2018-03-03T23:16:02 | 31,734,223 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # -*- encoding:utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from credit import models
class CustomerAdmin(admin.ModelAdmin):
readonly_fields = [
'user',
'invite_code',
'invitor_code',
'invitor_credited',
]
list_display = [
'use... | [
"github@jeremyparker.org"
] | github@jeremyparker.org |
ec81c5347f900f5b8390d51c5ec6dc1d24fd7dd3 | b29349323954d7a7036f56cef4139ed2c8fcb4f0 | /scripts/color_sample.py | cbecd9d3b9924273ebb76deaaba6cd36e6b5d975 | [
"MIT"
] | permissive | JDevlieghere/dotfiles | e23098fb0241367764243531804c8b9f0ef41ac5 | 09fbb4369c2e54dd38c2566a283eb05864499068 | refs/heads/main | 2023-09-01T02:23:14.303513 | 2023-08-23T16:36:05 | 2023-08-23T16:36:05 | 39,687,300 | 336 | 123 | MIT | 2020-02-24T05:32:45 | 2015-07-25T13:52:36 | Perl | UTF-8 | Python | false | false | 2,707 | py | #!/usr/bin/python3
"""
usage: color_sample.py [-h] [file]
Color a call tree file generated by sample
positional arguments:
file sample file
optional arguments:
-h, --help show this help message and exit
"""
import re
import argparse
import fileinput
import bisect
END_MARKER = "Total number in stack"
BE... | [
"jonas@devlieghere.com"
] | jonas@devlieghere.com |
ce580dc80f9d1e254df39bbd9c803c0514315380 | ffaba5d94ea820281fee39be0841e3bf08ed157c | /setup.py | c3e69ea047bbcb8f389a65050e82f6fedcd67a85 | [
"MIT"
] | permissive | arruda/Twitter-Get-Old-Tweets-Scraper | d532e316ce013f94426bb9c999112c554b0f585f | 6999a2c72df3866cb4a196370172c50b90b57e8d | refs/heads/master | 2020-03-19T17:29:46.926370 | 2018-06-10T06:09:32 | 2018-06-10T06:09:32 | 136,762,748 | 1 | 1 | MIT | 2020-03-19T06:35:05 | 2018-06-09T22:35:46 | Python | UTF-8 | Python | false | false | 1,202 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.md') as readme_file:
readme = readme_file.read()
requirements = [
"pyquery>=1.2.17",
"requests>=2.13.0",
]
setup_requirements = [ ]
test_requirements = [ ]
setup(
au... | [
"felipe.arruda.pontes@gmail.com"
] | felipe.arruda.pontes@gmail.com |
09a6fa7f3033f4fb40be0af0bda8c23201095e4a | 4d097d0e8c571874761463f698f5d34e38e549a0 | /python/b_1002 터렛.py | dbb3151cd939c0f0d6da6eb38b86c8cf3d2fd6e3 | [] | no_license | sondongmin0419/study | 533832151958fe8ae178d8aee183edf91ffa7e12 | 0c863e2c9111b35a15ccfaec3cc64828c584beb1 | refs/heads/master | 2023-03-24T11:54:04.139399 | 2021-03-15T13:40:21 | 2021-03-15T13:40:21 | 281,695,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import sys
input = sys.stdin.readline
n = int(input())
for TC in range(n):
x1, y1, r1, x2, y2, r2 = map(int, input().rstrip().split())
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
if x1 == x2 and y1 == y2:
if r1 == r2:
print(-1)
else:
print(0)
elif r1 + ... | [
"dongmin.dev0419@gmail.com"
] | dongmin.dev0419@gmail.com |
eb6166eec43fe151d8738787a51a433ff70d1972 | 5b9f7edaf22297d0d6d0239135f1b2484fd24b34 | /module07.mysql.with.python/exercise08.py | 9aad91a512ff126d042535a8a26bd58f3cb5c995 | [
"MIT"
] | permissive | deepcloudlabs/dcl162-2020-sep-02 | 925791b5c7adae8263e82a3c9a6a406d0b68eb0e | abd21c59d89985e9f5922df65fd1a5ccab019de4 | refs/heads/master | 2022-12-12T16:10:58.497846 | 2020-09-04T18:16:06 | 2020-09-04T18:16:06 | 291,666,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import mysql.connector
my_connection = mysql.connector.connect(host="localhost", user="root", password="Secret_123", database="world")
my_cursor = my_connection.cursor()
sql = "select ctry.name, city.name from country as ctry inner join city as city on ctry.capital = city.id limit 10"
my_cursor.execute(sql)
result... | [
"deepcloudlabs@gmail.com"
] | deepcloudlabs@gmail.com |
8439d19170cf896f5580caa519a737b1e0e12471 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/o11_j200739+544516/sdB_O11_J200739+544516_lc.py | c712c7ed5a3afda832ff3ba22080131102af8479 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[301.9125,54.754444], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_O11_J200739+544516 /sdB_O11_J200739+544516_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
44a88ef6c47660f70db2f79b8fdd1d06f0611b66 | 875b9c5093efd688f79fada905bee80c42380ec1 | /tests/test_pygame_player.py | 20237226009ceb731a7dd5490eed46043acf0029 | [
"MIT"
] | permissive | chaheeee/PyGamePlayer | 945e64819b3e862757e1bf9dbf622ac844f6dbed | 430ced572eddcd638a2db5eb906e5f2016ac7250 | refs/heads/master | 2023-02-21T19:42:18.229341 | 2021-01-22T02:22:52 | 2021-01-22T02:22:52 | 330,974,347 | 0 | 0 | MIT | 2021-01-21T15:05:27 | 2021-01-19T12:35:22 | Python | UTF-8 | Python | false | false | 3,064 | py | import time
import pygame
from unittest import TestCase
from pygame_player import PyGamePlayer
class DummyPyGamePlayer(PyGamePlayer):
def __init__(self, force_game_fps=10, run_real_time=False):
super(DummyPyGamePlayer, self).__init__(force_game_fps=force_game_fps, run_real_time=run_real_time)
def get... | [
"danielslaterishere@gmail.com"
] | danielslaterishere@gmail.com |
5171ac07d2be35016805b504c4184d500421005d | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/mrp_subcontracting/models/stock_picking.py | 34f266a39dd33ebb2f957f12845bc85be08de33c | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,173 | py | # -*- coding: utf-8 -*-
# Part of Harpiya. See LICENSE file for full copyright and licensing details.
from datetime import timedelta
from harpiya import api, fields, models
class StockPicking(models.Model):
_inherit = 'stock.picking'
display_action_record_components = fields.Boolean(compute='_compute_displ... | [
"yasir@harpiya.com"
] | yasir@harpiya.com |
b3b434b287cc143cda89ffc6336037d41c32a53d | e00bfd4ef4bc3bfd97cc26e0b6fa08eae90090a4 | /mnist_tf_nn.py | 67e01351550ff086596638d6ae855b0c8471c259 | [] | no_license | benjaminhuanghuang/dl-study | 4995f99ed3776e7e01de8eef8e635ec9295a2e51 | 180f315da5c679f10b101ad0731f26bd21aa5772 | refs/heads/master | 2021-01-25T13:05:08.687512 | 2018-04-19T03:01:06 | 2018-04-19T03:01:06 | 123,523,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,069 | py | '''
TensorFlow Tutorials(1)——Windows下环境搭建
https://www.youtube.com/watch?v=gItz_fBTeLM
TensorFlow系列教程(2)——手写数字的识别
https://www.youtube.com/watch?v=gx7iEa9Q-Vs
TensorFlow Tutorials(3)——FC预测自己手写的图片
https://www.youtube.com/watch?v=WKHP6QBlb8Q
'''
import os
import tensorflow as tf
import nump... | [
"bhuang@rms.com"
] | bhuang@rms.com |
60a7352ea9fa28baf709bc3938aeeb9ae85a08f7 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/third_party/logging_v2/gapic/config_service_v2_client_config.py | 918b29fd0f8ebf1f3e73a5596dbf58efcd6af258 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 3,721 | py | # Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"gcloud@google.com"
] | gcloud@google.com |
8eb00965d7fe2515246764e9e28869e4defe30b5 | 35fe9e62ab96038705c3bd09147f17ca1225a84e | /a10_ansible/library/a10_gslb_zone_service_dns_srv_record.py | 6af19cd9ec408f7a280cb3b28bd71ada0d1abc4f | [] | no_license | bmeidell/a10-ansible | 6f55fb4bcc6ab683ebe1aabf5d0d1080bf848668 | 25fdde8d83946dadf1d5b9cebd28bc49b75be94d | refs/heads/master | 2020-03-19T08:40:57.863038 | 2018-03-27T18:25:40 | 2018-03-27T18:25:40 | 136,226,910 | 0 | 0 | null | 2018-06-05T19:45:36 | 2018-06-05T19:45:36 | null | UTF-8 | Python | false | false | 6,346 | py | #!/usr/bin/python
REQUIRED_NOT_SET = (False, "One of ({}) must be set.")
REQUIRED_MUTEX = (False, "Only one of ({}) can be set.")
REQUIRED_VALID = (True, "")
DOCUMENTATION = """
module: a10_dns-srv-record
description:
-
author: A10 Networks 2018
version_added: 1.8
options:
srv-name:
description... | [
"mdurrant@a10networks.com"
] | mdurrant@a10networks.com |
0a41178fc20f8607e3279660130613dca66b6169 | 4a22da169b96b9d8d4cf30c5ea7e167cdbd1e802 | /cluster_uva/simulation35xu_rivanna/simulation35xu_rivanna_8.py | b78fb63ba51f2061a43dfc5f5f6aae48c9fbb2a9 | [] | no_license | LiYan1988/simulationsYuxin | 543fbeaac362f71513c71ceb1d1c300cabf04173 | 5997cecb5d772194900feddd07d7c5001c39b037 | refs/heads/master | 2021-01-19T13:50:15.968470 | 2017-03-17T21:52:33 | 2017-03-17T21:52:33 | 82,420,737 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 25 22:06:02 2017
@author: misWin
This is a template of python files for simulation 3 and 5 with Xu's algorithem on hebbe
"""
from milp2_xu import *
np.random.seed(0)
batch_id = 8
network_cost = pd.read_csv('nsf-24nodes.csv', header=None, index_col=None)
network_cost = ... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
22da5ff4314cfc620cb8d225b70570619873fe70 | efb7180c05964aee07756dbd4f9982f81559d7e3 | /TradeBot/tradebotapp/migrations/0002_auto_20191005_1543.py | 49018395ae8bfb3525d48159fd3e3be4939ec2eb | [] | no_license | ShunnoSaiful/Trade-Bot | 920ba75225d921f54530fc9f0d10a8eb9eabdaaf | d07489dea5fcf1d1d51a918a3127f620682107f2 | refs/heads/master | 2022-11-24T08:22:00.946773 | 2019-10-29T05:20:08 | 2019-10-29T05:20:08 | 218,207,062 | 0 | 0 | null | 2022-11-22T04:18:04 | 2019-10-29T04:54:41 | JavaScript | UTF-8 | Python | false | false | 673 | py | # Generated by Django 2.1 on 2019-10-05 15:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tradebotapp', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='question',
... | [
"sunnosaiful@gmail.com"
] | sunnosaiful@gmail.com |
298c589f469654840e1fabc25a5a868de853909a | d2304891c5757e0cdb393d95b0c3d3495f6fbf76 | /fourier.py | 3ae0c47f18598a85df9bd0a14022cc42226f6cb0 | [] | no_license | phisyche/Python | 8b555e540f5aeb243434a6f3eceec3ee3835d288 | f8897f008723821fdc8a1d9a3bdf462d2c42e49c | refs/heads/master | 2023-03-15T04:49:51.586572 | 2021-03-26T13:45:08 | 2021-03-26T13:45:08 | 52,379,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | import scipy
import matplotlib . pyplot as plt
pi = scipy .pi
signal_length = 0.5 #[ seconds ]
sample_rate =500 # sampling rate [Hz]
dt = 1./ sample_rate # time between two samples [s]
df = 1/ signal_length # frequency between points in
#in frequency domain [Hz]
t= scipy . arange (0, signal_length ,dt) #the time vector... | [
"kwellingtonmwaura@gmail.com"
] | kwellingtonmwaura@gmail.com |
6d49a356fda1c916ac953c333cbc4535b0d6a8f6 | 7bb34b9837b6304ceac6ab45ce482b570526ed3c | /external/webkit/Tools/Scripts/webkitpy/layout_tests/port/test_files.py | fbbbea565812a9dfcef1d6ac1700e9fe164ef72c | [
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.1-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ghsecuritylab/android_platform_sony_nicki | 7533bca5c13d32a8d2a42696344cc10249bd2fd8 | 526381be7808e5202d7865aa10303cb5d249388a | refs/heads/master | 2021-02-28T20:27:31.390188 | 2013-10-15T07:57:51 | 2013-10-15T07:57:51 | 245,730,217 | 0 | 0 | Apache-2.0 | 2020-03-08T00:59:27 | 2020-03-08T00:59:26 | null | UTF-8 | Python | false | false | 4,698 | py | #!/usr/bin/env python
# Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list ... | [
"gahlotpercy@gmail.com"
] | gahlotpercy@gmail.com |
b4e837341ad2ead1653cd1863d71a44210732c3f | a463f5858c663199b6f6e38d9b2dc93e9a9ae730 | /problem/2003/00_200316/3143_가장빠른문자열타이핑-1.py | cac1f53330c94396e5da0297c859ffa05c118f54 | [] | no_license | do-park/swexpertacademy | 4993f79e3a73697ecdc71e0f654306466626b00b | 7cbbb0957ce5191cb44cd35094da5b0d29783e49 | refs/heads/master | 2020-12-22T19:26:35.257666 | 2020-10-19T02:02:32 | 2020-10-19T02:02:32 | 236,907,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | for tc in range(1, int(input()) + 1):
A, B = input().split()
t = A.count(B)
print(f'#{tc} {len(A) - t * len(B) + t}') | [
"dohee.pa@gmail.com"
] | dohee.pa@gmail.com |
c22f7efdcb2f21f4d80fc3b4b564f22666cc7f70 | ddb3fc95f44733e20312c0cbfdb37fc7fd1da5e8 | /torch_server.py | bb5ab48b0490566d51b8c5ffed176c3bd852ae15 | [] | no_license | ShenDezhou/EXLNet | 2068ffecb3bebdc705bf49d5ca50076ebd50fab2 | e1700c2d455205e8760c68e83f43520e03e67367 | refs/heads/master | 2023-03-08T17:05:43.205497 | 2021-02-24T07:05:17 | 2021-02-24T07:05:17 | 330,310,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,577 | py | import argparse
import itertools
import logging
import os
import time
from types import SimpleNamespace
import falcon
import pandas
import torch
from falcon_cors import CORS
import waitress
import numpy as np
import json
import re
from torch.utils.data import DataLoader
from data import Data
from evaluate import eval... | [
"bangtech@sina.com"
] | bangtech@sina.com |
a285078b484c69bd8ed5c87ab10b6da5ede6f928 | cf0ab8503d4d704045070deea1e2125375711e86 | /apps/metrics/v1/urls.py | 94ae63aec636a2d71a2111dd8c53dd21cbddec4c | [] | no_license | faierbol/syncano-platform | c3c6468600115752fd9fa5e46a0ad59f75f6bc9c | 879111874d1ef70418b4890cf970720b0a2be4d8 | refs/heads/master | 2023-07-20T10:13:40.066127 | 2021-02-08T15:01:13 | 2021-02-08T15:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # coding=UTF8
from django.urls import path
from rest_framework.routers import SimpleRouter
from apps.metrics import views
router = SimpleRouter()
router.register('hourly', views.HourlyStatsViewSet, base_name='hour-aggregate')
router.register('daily', views.DailyStatsViewSet, base_name='day-aggregate')
urlpatterns = ... | [
"rk@23doors.com"
] | rk@23doors.com |
9dce403fd0a95cf1630555d797f78315313c6029 | c2a2e40309bb86e36ec1cd283c5aaa3149e28afd | /dev/_import.py | caad219057d7da4bd4fc66308afeedc8fa245d1a | [
"MIT"
] | permissive | ossdev07/asn1crypto | 5fc9f864eec3f109812050fa4ed50d1f343a6aad | 213e4fb24f5f1a7f78c9f08862b0b8728fec1510 | refs/heads/master | 2020-12-03T23:33:55.056818 | 2019-12-29T06:46:19 | 2019-12-29T06:46:19 | 229,199,270 | 0 | 1 | MIT | 2019-12-20T05:53:29 | 2019-12-20T05:53:29 | null | UTF-8 | Python | false | false | 3,279 | py | # coding: utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
import imp
import sys
import os
from . import build_root, package_name, package_root
if sys.version_info < (3,):
getcwd = os.getcwdu
else:
getcwd = os.getcwd
def _import_from(mod, path, mod_dir=None, allow_er... | [
"will@wbond.net"
] | will@wbond.net |
14b2409d1b96d2af04379ef25da43b732b845361 | 77bb6b9fd3efdad268a99c19da3b104a0914801b | /Binary Tree/binary_tree_to_doubly_link_list.py | 2d0e72b857549cf35681bc53df47b26b164d521b | [] | no_license | Akasurde/Algorithms | 2dc72a9b5fd30b20aba9ddce61e763a6b086c628 | b6b79f267d39e3f352ffb4c91c544bdbd042092e | refs/heads/master | 2021-01-14T08:55:07.928438 | 2015-06-21T20:21:21 | 2015-06-21T20:21:21 | 65,351,103 | 0 | 1 | null | 2016-08-10T04:41:13 | 2016-08-10T04:41:13 | null | UTF-8 | Python | false | false | 737 | py | # -*- coding: UTF-8 -*-
# Convert a given Binary Tree to Doubly Linked List
import binary_tree
def convert_to_doubly_linked_list(root):
if not root:
return
if root.left:
left = convert_to_doubly_linked_list(root.left)
while left.right:
left = left.right
left.right = root
root.left = left
if root... | [
"charul.agrawal@pagalguy.com"
] | charul.agrawal@pagalguy.com |
ff09c2d5e520b2eb37116dfc90e2c1cffa1cad18 | 8039c88ee57447e6d3b973853aae8c3421ffa8e9 | /backend/todoapp/migrations/0001_initial.py | 57b9a5013f42dabf23f8ddf73d723da991e2d32b | [] | no_license | mahidulmoon/djreact-ExpenceTracker | 3553ebe2a141bf0a5b67a46ce6871d675c4ec098 | 196c73cc7f484d3ef423699c8527c8f4f8422e9f | refs/heads/master | 2023-02-09T06:43:33.292205 | 2020-06-05T12:44:18 | 2020-06-05T12:44:18 | 269,003,222 | 2 | 0 | null | 2021-01-06T03:53:52 | 2020-06-03T06:04:32 | JavaScript | UTF-8 | Python | false | false | 726 | py | # Generated by Django 3.0.6 on 2020-06-02 05:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"mahidulmoon@gmail.com"
] | mahidulmoon@gmail.com |
2c0ae8a4900e9a3dbe5fc23d17c814448e073a6d | eb0bb5267035c0222da0c072c5dcd85b46099904 | /test/tw-1630.t | c4c0bd1e81926ba3b08e72cc170987370ae53fb3 | [
"MIT"
] | permissive | bjornreppen/task | 6d96f578eec7b9cceeb4d728caeda87e7a446949 | a9eac8bb715ac8f51073c080ac439bf5c09493e8 | refs/heads/master | 2021-05-30T07:48:39.263967 | 2015-10-21T20:50:42 | 2015-10-21T20:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | t | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
###############################################################################
#
# Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentatio... | [
"paul@beckingham.net"
] | paul@beckingham.net |
3a51822baafc23044111a837cfa2333102d2ba8b | a869f208770692f65c265563a11333d6577b1d94 | /callback_python.py | 6a4dbd97f0cd0194b3e8584e457ad764ef6c765d | [] | no_license | malep2007/python-scripts | 8ea1c7fb78b5111348f5c4f54e084612f82647e4 | e57c01f79447be3dcf193a427db6bbabe4a06665 | refs/heads/master | 2020-08-03T14:53:57.424520 | 2019-09-29T12:16:01 | 2019-09-29T12:16:01 | 211,792,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | def copy_and_manipulate(array, callback):
output = []
for i in array:
output.append(callback(i))
return output
def add_one(num):
num+=1 # freaking weird that python needs to evaluate this before it is returned
return num
print(copy_and_manipulate([1,2,3], add_one))
| [
"ephraim.malinga@gmail.com"
] | ephraim.malinga@gmail.com |
65ed4e161dfa15a766e3541d97ca7beeebb6d745 | 1d9595555d45c9f31edc164275c392f9d4fc001a | /xmlutils/renderer/base.py | 39d84cc6c8f5ddd5e1bce3a6a9d138dc13bd919a | [
"BSD-2-Clause"
] | permissive | tokibito/python-xmlutils | 9a0f364df3c32b15d4ae58e3ccf07fb3c9e004e0 | f173b8ef01fb740d097d1875f205f714982b5829 | refs/heads/master | 2020-07-25T07:52:37.899389 | 2010-03-30T11:55:52 | 2010-03-30T11:55:52 | 208,221,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | class BaseRenderer(object):
def __init__(self, *args, **kwargs):
pass
def render(self, node):
raise NotImplementedError
| [
"xxshss@yahoo.co.jp"
] | xxshss@yahoo.co.jp |
552877857c701781809eee505c222d299fae243a | 3b9bf497cd29cea9c24462e0411fa8adbfa6ba60 | /leetcode/Problems/1032--Stream-of-Characters-Hard.py | 9ce827464f36efa080a24e21215caae9b4642bae | [] | no_license | niteesh2268/coding-prepation | 918823cb7f4965bec096ec476c639a06a9dd9692 | 19be0766f6b9c298fb32754f66416f79567843c1 | refs/heads/master | 2023-01-02T05:30:59.662890 | 2020-10-17T13:12:34 | 2020-10-17T13:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | class TrieNode:
def __init__(self):
self.children = defaultdict()
self.isWordEnd = False
class StreamChecker:
def __init__(self, words: List[str]):
self.root = TrieNode()
self.maxLen = 0
for word in words:
self.maxLen = max(self.maxLen ,len(word))
... | [
"akualajayaprakash@gmailcom"
] | akualajayaprakash@gmailcom |
a883655d8a3bb0994ede721e1eb19c5f49814972 | 17856275ae788e15d3b089dd2f9f291488a0af78 | /modules/post_details.py | 30721d6d9358938a23693f952d8171cc9c022371 | [] | no_license | Bawya1098/OfficeCafe-Projects | 71a603cb1e307b039ed414ebc8421e25d46811f6 | 346be83bcdee9e410e4ba6980bed49b24f70ca2c | refs/heads/master | 2020-04-22T03:17:33.667193 | 2019-03-11T06:40:31 | 2019-03-11T06:40:31 | 170,081,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | def post_data(connection, user_data):
cursor = connection.cursor()
cursor.execute("""insert into orders(employee_id,cart_items) values(%s,%s);""",
(user_data['employee_id'], user_data['cart_items']))
connection.commit()
cursor.close()
| [
"admin@Intern3-MacBook-Pro.local"
] | admin@Intern3-MacBook-Pro.local |
c6ddb80fc7ad55e16f7e31c3afd45024cca8d9a0 | ea9e9756f6b5b7022015049d92c399ee03cfde67 | /知吾煮/AutoTest_DL/interface/test_upload.py | e094f84e214ffe6d284efa82d6cc51de6ce3045b | [] | no_license | Godlovesli/jiaojiewendang | 724e0f01028cc5cbcc9ce5807bd057e15172eb91 | 579551eabfc83226804ccfbf8b868192614d7166 | refs/heads/master | 2020-04-05T03:38:41.212627 | 2018-11-07T09:31:51 | 2018-11-07T09:31:51 | 156,521,937 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,890 | py | #!/usr/bin/env python
#_*_ coding:utf-8 _*_
# -*- __author__ = 'feng' -*-
from base.base import MyTest
from base.login import Login
import unittest
import json
from HTMLTestRunner import HTMLTestRunner
import urllib, urllib2
from poster.encode import multipart_encode
from poster.streaminghttp import register_openers
fr... | [
"1107095622@qq.com"
] | 1107095622@qq.com |
9fef8d5dc64926520d73300c46c095a61f502d6b | 9045393c9ace1cfb50b4c03efaafcf815ccce472 | /tests/test_flow.py | 5ea479c7f7be45454b6d21e1c7f9b4ed9adb4aaf | [
"MIT"
] | permissive | pombredanne/single_file_module-project | 554aa3aaa63e32eb1c5473085b968b1160eef9ec | 243f4c9cd9e6ef04ec7e8a48a0fed9645d6933b2 | refs/heads/master | 2021-01-23T06:06:07.098548 | 2017-07-14T21:53:35 | 2017-07-14T21:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
import pytest
from sfm import flow
def bet_and_win(lower=1, upper=100, threshold=50):
value = random.randint(lower, upper)
if value > threshold:
return value
else:
raise Exception("%s point, You Lose!" % value)
def test_try_nti... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
e3863a265db5c7c39dd3f86727766c78fc33f2b4 | d498d66fbe9bae2f86161f5c157d52c9433c6a8c | /mysite/mysite/urls.py | a577c6e46d6f5fde2d75a5260689f6c54dccb1ee | [] | no_license | sulembutproton/promosys | 9330176d175f29d1e86991d93570981f6cad8317 | 2f67f08e2f07ab9ae0f25d9ac67905ebb1bbbda2 | refs/heads/master | 2023-03-11T20:31:06.152814 | 2021-03-01T15:52:31 | 2021-03-01T15:52:31 | 343,463,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,291 | py | """
samples URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"sulembut@protonmail.com"
] | sulembut@protonmail.com |
5b3c899903378bc31aeee6e2a698d7b316d2b9ed | a1352de184b2a60295b90ba5472579c6dc8abb29 | /misc/python/strucdump.py | a7ea13d9294eccf04d1da1d6211a77fe61beb026 | [] | no_license | gunmetalbackupgooglecode/corkami | 2b5e99b1cfd94f716e35293e915d536e468aec75 | 1a52e71ec205f1cb7ce493789474209dd1b47911 | refs/heads/master | 2016-09-16T06:33:52.261541 | 2015-02-11T18:41:13 | 2015-02-11T18:41:13 | 32,167,637 | 25 | 11 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | #simple hex structure viewer
#TODO: classify!
# Ange Albertini, BSD Licence, 2011
import struct
import sys
fn = sys.argv[1]
last = -1
lastdata = []
lastrend = -1
INDENT = "\t"
COLS = 2
tags_types = [
('BOGUSTYPE', 50829),
]
TAGS = dict([(i[1], i[0]) for i in tags_types] + tags_types)
for i,j... | [
"ange.albertini@gmail.com"
] | ange.albertini@gmail.com |
2aa508143b15c41cf17a324f991bc0fe83031d58 | 5c2e4266abf6d2be9102d5309bf94071a1eae1db | /02 高级语法系列/cp 爬虫/基础/v18.py | 478a6d18945b1ac16874c9eb6b549f405533e545 | [] | no_license | 13834319675/python | 8176d5da47136b9b3ec290eaa0b699c6b1e7a8ab | 3e6f04670f6f01006f827794865488dd40bca380 | refs/heads/master | 2021-07-11T18:29:12.894401 | 2021-07-05T08:29:27 | 2021-07-05T08:29:27 | 171,112,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py |
'''
破解有道词典
V1
'''
from urllib import request, parse
def youdao():
k = input("请输入要翻译的内容:")
url = "http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule"
data = {
"i": k,
"from":"AUTO",
"to": "AUTO",
"smartresult": "dict",
"client": "fanyideskweb",
... | [
"1134876981@qq.com"
] | 1134876981@qq.com |
62750b17337dd5468a944195eea64784f470b4ac | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/284/92253/submittedfiles/testes.py | e388e395e0c9c5be69b317d970dd592eb7e72f48 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,020 | py | linha = []
coluna = []
for linha in range (0,3,1):
for coluna in range (0,3,1):
print('%d %d' %(linha,coluna))
import random
def solicitaSimboloDoHumano():
letra = 0
while not (letra == 'O' or letra == 'X'):
print('Qual símbolo você deseja utilizar no jogo? ')
letra = input... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1f52fc7b98a2980e9da9429774fccee2b8e054d2 | ba8d566fe1fca8584601d70e209fef358d5aea16 | /pyntcloud/sampling/s_mesh.py | 5eb979a4acd73d38bf46e280431bc1d48fbb5e2b | [] | no_license | threerivers3d-jc/pyntcloud | 6d316954fdedbd0d336e51ca0c887913f077c6cb | 81311d4cbca037a755353dc5fcf80acad9189513 | refs/heads/master | 2021-01-21T15:26:53.939132 | 2017-06-21T17:41:48 | 2017-06-21T17:41:48 | 91,844,119 | 0 | 0 | null | 2017-05-19T20:46:30 | 2017-05-19T20:46:30 | null | UTF-8 | Python | false | false | 3,658 | py | import numpy as np
import pandas as pd
from ..base import Sampling
from ..geometry.areas import triangle_area_multi
class Sampling_Mesh(Sampling):
"""
"""
def __init__(self, pyntcloud, rgb=False, normals=False):
super().__init__(pyntcloud)
self.rgb = rgb
self.normals = norm... | [
"daviddelaiglesiacastro@gmail.com"
] | daviddelaiglesiacastro@gmail.com |
f10d28f05fae8ab19c89469f1599948f39a0b6c6 | 9fbab0fd689ba1abbae4439a0e5bda315932f177 | /tools/effectiveT3/effectiveT3.py | 0254f325166f39f946564fa379f1c4f90dbfa794 | [
"MIT"
] | permissive | Imoteph/pico_galaxy | 437cb5c9b231896fcfcafec902a0ed1f1c9646b3 | 2c81bd9f238aacf7fb2ac2b027706eff31d23cc5 | refs/heads/master | 2021-01-11T23:00:08.239492 | 2016-11-04T12:06:36 | 2016-11-04T12:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,603 | py | #!/usr/bin/env python
"""Wrapper for EffectiveT3 v1.0.1 for use in Galaxy.
This script takes exactly five command line arguments:
* model name (e.g. TTSS_STD-1.0.1.jar)
* threshold (selective or sensitive)
* an input protein FASTA filename
* output tabular filename
It then calls the standalone Effective T3 v1.0.1... | [
"p.j.a.cock@googlemail.com"
] | p.j.a.cock@googlemail.com |
622607fa7a7c60daa2e8c156f9d58d46032e3a4a | f1f21ba2236da38a49a8185ce33b3ce4a4424c1d | /apps/drug_target_interaction/moltrans_dti/preprocess.py | 3919994d6fa4be6c6b1b0d8c44ecb5fd98b3b5e8 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleHelix | 75a07c2f14475e56e72f4573b2cf82a91d1cbfda | e6ab0261eb719c21806bbadfd94001ecfe27de45 | refs/heads/dev | 2023-08-05T03:34:55.009355 | 2023-08-01T09:30:44 | 2023-08-01T09:30:44 | 314,704,349 | 771 | 197 | Apache-2.0 | 2023-08-01T09:15:07 | 2020-11-21T00:53:39 | Python | UTF-8 | Python | false | false | 5,501 | py | # Copyright (c) 2021 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 |
bf27c415d0043fd1bc4f0ca0022fb76d57c961a7 | c73e8286579e7ba673440bac44bd527d416beaef | /MyNeutronSimHitAnalyzer/test_myneutronsimhitanalyzer_cfg.py | fefea3af0908ab0115fa557d29761f7fc67dfbf8 | [] | no_license | pietverwilligen/MyAnalyzers | 6815cec717f2ede3f44070466e33c9b292d5b452 | ccd04521747625d82a19174ebebb6a2cba53ddf2 | refs/heads/master | 2023-05-24T12:42:17.134907 | 2023-05-18T11:55:05 | 2023-05-18T11:55:05 | 16,079,295 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,417 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Demo")
process.load("FWCore.MessageService.MessageLogger_cfi")
# process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
# process.load('Configuration.Geometry.GeometryExtended_cff')
# process.load('Configuration.Geometry.Geometr... | [
"piet.verwilligen@cern.ch"
] | piet.verwilligen@cern.ch |
763c3a099affc2ad5ad0175153483332b443d153 | d0efa2026b7ed22ff4f9aa76c27ae2474c30f26d | /openapi_client/models/location.py | f6293ef80984ebfdac4c0af34fa105e138e19331 | [] | no_license | begum-akbay/Python | 2075650e0ddbf1c51823ebd749742646bf221603 | fe8b47e29aae609b7510af2d21e53b8a575857d8 | refs/heads/master | 2023-03-28T00:11:00.997194 | 2021-03-25T16:38:17 | 2021-03-25T16:38:17 | 351,499,957 | 0 | 0 | null | 2021-03-25T16:38:17 | 2021-03-25T16:15:16 | Python | UTF-8 | Python | false | false | 7,016 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
ad7e6bc02120ef80805bcd33c41a5689fdc3b3ae | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4327/codes/1685_2471.py | 3839f412181a0170517221e3c9d2dc2bcfbbf2a6 | [] | 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 | 361 | py | ida=int(input("idade:"))
imc=float(input("imc:"))
print("Entradas: {} anos e IMC {}".format(ida,imc))
if ((ida<=0 or ida>130) and imc<=0):
print("Dados invalidos")
elif(ida<45 and imc<22):
print("Risco: Baixo")
elif(ida>=45 and imc<22):
print("Risco: Medio")
elif(ida<45 and imc>=22):
print("Risco: Medio")
elif(id... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
245ae97ad6a1378e1321ff246b20b6073791fbf7 | d30855895ee0c6ddaef493039dd0e0f1298eeae6 | /demo3.py | 05468c0c352ed93b62578658570a7927fdf16d41 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"MIT"
] | permissive | Ezhil-Language-Foundation/open-tamil | f5f28463bff4400aa131b4a428e8f3e17aa63997 | 8ea745440f96fe587cf0959d12e990ad7923e60e | refs/heads/main | 2022-12-23T13:50:19.758812 | 2022-12-16T21:56:02 | 2022-12-16T21:56:02 | 14,263,826 | 246 | 72 | MIT | 2022-09-24T17:49:10 | 2013-11-09T19:48:48 | JavaScript | UTF-8 | Python | false | false | 531 | py | # -*- coding: utf-8 -*-
## (C) 2019 Muthiah Annamalai,
## This module is part of solthiruthi project under open-tamil umbrella.
## This code maybe used/distributed under MIT LICENSE.
from solthiruthi.dictionary import DictionaryBuilder, TamilVU
from solthiruthi.tamil99kbd import inv_confusion_matrix as kbd_cm
from solt... | [
"ezhillang@gmail.com"
] | ezhillang@gmail.com |
dc8c9b4ea75f3e8b25d8678b445eb24ee988d0e3 | c03c8d7363a3626b1178d241af3aa93a7b0b15e2 | /unidesign/transients/__init__.py | 3d50473e4a0abd9fdb247dd1784c2cc73cd211c5 | [] | no_license | luntan365/unidesign | 0c9aa82df215fcff6be32840709ea51588cad805 | ee24a7152d937d1b95c2bb67b3f050966850d50f | refs/heads/master | 2020-12-01T07:50:18.444676 | 2011-09-11T10:54:41 | 2011-09-11T10:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | """
Transient Dynamics for Neural Processing
Building Blocks
- Network N for the neuroanatomy with nodes representing neurons and edges representing connection weight
- A set of input pattern I extended in time, representing a spatio-temporal entity, thought of as the
activation of a subset of neurons that would be ac... | [
"git@unidesign.ch"
] | git@unidesign.ch |
523a6572bc48a5326a93e982133be5b30218128c | acf8fe77e599f8372adf4fc971012394715795d6 | /flask/EGG-INFO/enstaller/post_egginst.py | e91b753a7dca7f316b1ea217b327a33c095849ad | [] | no_license | shaheershantk/Blog-Engine-Using-Flask | 3e2f1457a59f282c336bbb63ff48171f938f5108 | 450e76a8bde0bd702d995fa7bb746ed920917f98 | refs/heads/master | 2021-01-01T19:42:03.401554 | 2014-11-10T15:01:08 | 2014-11-10T15:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | """
converts the old "__egginst__.txt" files to "egginst.json"
and "_info.json" files
"""
import os
import re
import sys
import json
import time
from os.path import abspath, isdir, isfile, join
def read_old(path):
d1 = {'installed_size': -1}
execfile(path, d1)
d2 = {}
for name in ['egg_name', 'prefix'... | [
"shaheer.shan@gmail.com"
] | shaheer.shan@gmail.com |
a41def6a23f404b4cc471342fface1cd38551c6b | bbd65a48e9fb340b29f39082483680969d6e2571 | /python/misc/double_letters.py | 3c887a4d9ac46b613773398829e3c96f93bf0139 | [
"MIT"
] | permissive | christopher-burke/warmups | 2784eef3b959bca5c270b3e642b505f3b4c0b790 | 140c96ada87ec5e9faa4622504ddee18840dce4a | refs/heads/master | 2022-05-24T11:26:40.046650 | 2022-03-28T16:47:16 | 2022-03-28T16:47:16 | 152,440,792 | 0 | 0 | MIT | 2022-03-13T03:25:43 | 2018-10-10T14:51:43 | Python | UTF-8 | Python | false | false | 712 | py | #!/usr/bin/env python3
"""Double Letters.
Create a function that takes a word and returns true if the word
as two consecutive identical letters.
Source:
https://edabit.com/challenge/q3JMk2yqXfNyHWE9c
"""
import re
def double_letters(text: str) -> bool:
"""Determine if text contains two consecutive identical l... | [
"christopherjamesburke@gmail.com"
] | christopherjamesburke@gmail.com |
75ad74f6d506bc120e99ee767e0028402f3c0bfa | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/format/elf/ElfStringTable.pyi | eb2f888abcb4090c19e2aa10f46f1b875549534a | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,508 | pyi | import ghidra.app.util.bin
import ghidra.app.util.bin.format
import ghidra.app.util.bin.format.elf
import ghidra.program.model.data
import java.lang
class ElfStringTable(object, ghidra.app.util.bin.format.elf.ElfFileSection):
ASCII: ghidra.program.model.data.DataType = char
BYTE: ghidra.program.model.data.Dat... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
b082b3c7ad5a4453378668650eaa7575368881ca | bbbc0e8660cf32334ff5156d974c59e9936b5fa2 | /aliyun-python-sdk-workbench-inner/aliyunsdkworkbench_inner/request/v20210121/InnerGetSolutionRequest.py | d5c15d8ea09248a0672e2c3c739550bddb972c1d | [
"Apache-2.0"
] | permissive | stevenQiang/aliyun-openapi-python-sdk | a201062ec1df0df44e4f540e1ae11ef35ce5eb12 | a7e33abb4af88674be42d45db821a173c3a9dc60 | refs/heads/master | 2023-06-21T07:29:18.142415 | 2021-07-13T07:52:54 | 2021-07-13T07:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | 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 not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
ad4b2dc8435b7049cde996a489f1a5cd634e4b65 | 61050d0d7f0c0a60474e4e85d30be4e5ea7c6b04 | /vnf/scripting/itask.py | 7ce7e28ed7a4fa2376510dad889f520aecf393de | [] | no_license | danse-inelastic/vnf | 8173f06f32b4a2fa2b71fddfe0fecf9c19e05e9a | be989448577f14f424aca4ce852c7198304ca57b | refs/heads/master | 2021-01-22T01:06:00.294100 | 2015-05-02T23:25:45 | 2015-05-02T23:25:45 | 34,947,878 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2011 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
6d78cb4e690e54c41470accfc57a37d54d557d9b | 7002919119e429faac734099bb18d75047e49673 | /data/course/migrations/0002_auto_20201012_1724.py | 7a34d9c9167def4aad8410dc81a0960926d33509 | [] | no_license | Polydelta-ai/competency_model_prototype | 47f86353a4157f68f8e3a6fd961223bd81fa3c23 | 8162ec6df5679143e3f3165a3779c1619f9c925f | refs/heads/main | 2022-12-30T19:21:41.044344 | 2020-10-14T11:09:37 | 2020-10-14T11:09:37 | 301,813,276 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | # Generated by Django 3.0 on 2020-10-12 21:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='course',
name='groups',
),
... | [
"adrian@webb.sh"
] | adrian@webb.sh |
b7044d0662504d59b77b29979428fa9a0beec204 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Tensorflow_Pandas_Numpy/source3.6/tensorflow/contrib/rnn/python/ops/gru_ops.py | 75536e3f5f8cbe44231f19d4d455537e654f7a08 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 7,762 | py | # Copyright 2016 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... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
8d61d262ed2d32d78b76380c88292faa89d7ea96 | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/bugs/core_0859_test.py | e3bbec9126ee000bf0fd91d4a9fcfd15bf56912b | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 1,291 | py | #coding:utf-8
"""
ID: issue-1249
ISSUE: 1249
TITLE: Sorting is allowed for blobs and arrays
DESCRIPTION:
NOTES:
For now we test that such operations raise an exception, as we restored the legacy
behavior until we're able to implement DISTINCT for blobs properly,
JIRA: CORE-859
FBTEST: ... | [
"pcisar@ibphoenix.cz"
] | pcisar@ibphoenix.cz |
9eab2697aa461aa64c7d4d36bb6a56ea7a48521d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_brands.py | 764cf25e586cb39ea7275ee9a182cbf0ea77c8e2 | [
"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 | 218 | py |
#calss header
class _BRANDS():
def __init__(self,):
self.name = "BRANDS"
self.definitions = brand
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['brand']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f953387192ad4b6709f38021023a8739e849e939 | 3ed70536d4d06b2ac43b64976ddc43a5d7025b31 | /uri2253.py | 06119c5d13870da281433a9120affdffd464344a | [] | no_license | LuisHenrique01/Questoes_URI | 7f1d397e3cd055349939184603eb86cb4bf43d65 | 35c8e77eb7cd9da96df4268b5d71f3ad87446c89 | refs/heads/master | 2020-07-22T08:12:12.700484 | 2020-04-12T17:39:29 | 2020-04-12T17:39:29 | 207,126,339 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | def main():
while True:
try:
senha = input()
num = False
ma = False
mi = False
eh_l = True
if len(senha) < 6 or len(senha) > 32:
print('Senha invalida.')
else:
for i in range(len(senha)):
... | [
"luizbueno1201@gmail.com"
] | luizbueno1201@gmail.com |
056a5a7fd69c9b3926985847bd9c38c278137345 | c885e1ca19bb24f167f5284c020673246a0fc260 | /synthesis/experiments/cnf_batch.py | f60be95380335a8023939af372da650722d5b95b | [] | no_license | suomela/counting | 6c800a2c9c56c44d0b8aac8117c79c78e6b92d8b | 5a9f96f6cabdbb54d2cd24da014aff31f4baf05d | refs/heads/master | 2022-02-25T23:07:03.078165 | 2022-01-27T19:08:49 | 2022-01-27T19:08:49 | 9,413,189 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | #! /usr/bin/env python
import os.path
import sys
PATH = sys.argv[1]
SOLVER = sys.argv[5]
SEED = int(sys.argv[4])
RANDOM_SEEDS = int(sys.argv[3])
PREFIX_PATH = sys.argv[2]
from batch import *
def cmd_out(**params):
prefix = "{path}/n{nodes}-s{states}-f{faulty}-t{time}-{cyclicity}-{id}-seed{seed}".format(path=PRE... | [
"jukka.suomela@iki.fi"
] | jukka.suomela@iki.fi |
34d2fc4a840a02f8646dcc1a23a0e36187588c06 | ffd5e689f88c49ab7af3554c22dc0c36301084fa | /longest_common_subsequence.py | aa5fed409ca1f399f6f93be3e79b73ae04292dfd | [] | no_license | ellismckenzielee/codewars-python | 1710e6f0499047139479de386927c7dbd5f1cdf6 | af3f4b4534798a58115d0565730aae28ce87437e | refs/heads/master | 2023-08-09T13:38:40.964141 | 2023-08-01T14:45:22 | 2023-08-01T14:45:22 | 168,981,376 | 45 | 18 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | #longest common subsequence kata
#https://www.codewars.com/kata/52756e5ad454534f220001ef
def lcs(x, y):
x = list(filter(lambda x1: x1 in y,x))
y = list(filter(lambda x1: x1 in x,y))
if [] in (x,y):
return ''
elif x == y:
return ''.join(x)
else:
both = [x, y]
lens = [... | [
"ellismckenzielee@gmail.com"
] | ellismckenzielee@gmail.com |
e5b3b507e9fa57753b9a2e6d8e08d05cc8cbe038 | ce20062fedae07a1f0ea00a7e5ab0b86e05ebe69 | /pytests_stale/cbas/cbas_sql++_composability.py | 0c58a774b01ed031c02d263c49c8a3c878c82beb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | AnithaKuberan/TAF | 256f9ee850275be5461e4d19a671c9dd19edb9f5 | 9824c6a4f1680c320ab065e23c720ffa92d530d9 | refs/heads/master | 2022-03-18T16:17:08.876692 | 2022-03-03T09:57:52 | 2022-03-03T09:57:52 | 206,016,123 | 0 | 0 | Apache-2.0 | 2019-09-03T07:30:18 | 2019-09-03T07:30:18 | null | UTF-8 | Python | false | false | 3,323 | py | '''
Created on Mar 8, 2018
@author: riteshagarwal
'''
'''
Created on Jan 4, 2018
@author: riteshagarwal
'''
import json
import os
import time
from cbas_base import CBASBaseTest, TestInputSingleton
from lib.memcached.helper.data_helper import MemcachedClientHelper
from membase.api.rest_client import RestConnection
... | [
"ritesh.agarwal@couchbase.com"
] | ritesh.agarwal@couchbase.com |
eef1da102ec3c444d29d4f92f426ecbc184f2898 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/core/2015/12/hue.py | 77672c9aaf56db21fbbfaa6f7afeb2d80e53470e | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 7,899 | py | """
homeassistant.components.light.hue
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Support for Hue lights.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/light.hue/
"""
import json
import logging
import os
import socket
import random
from datetime import timedelt... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
d6a628d30cd50796fad7346cedd8050cae518409 | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW03_20210706185704.py | 4de89390673cdc7ea96c6258834fddd35d0d6aae | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | """
Georgia Institute of Technology - CS1301
HW03 - Strings and Lists
Collaboration Statement:
"""
#########################################
"""
Function Name: movieNight()
Parameters: subtitle (str)
Returns: fixed subtitle (str)
"""
#########################################
########## WRITE FUNCTIO... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
6ffb5a7913c10d585f3deb2048cc818c0cfc1870 | e0c8662a56d89730043146ddc340e9e0b9f7de72 | /plugin/117c19ce-1596.py | c48b541558f6dace7b69689c04f13acc0ba485e2 | [] | no_license | izj007/bugscan_poc | f2ef5903b30b15c230b292a1ff2dc6cea6836940 | 4490f3c36d4033bdef380577333722deed7bc758 | refs/heads/master | 2020-09-22T17:20:50.408078 | 2019-01-18T09:42:47 | 2019-01-18T09:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | #coding:utf-8
from lib.curl import *
# -*- coding: utf-8 -*-
# FE5.5
# http://www.wooyun.org/bugs/wooyun-2010-086697
def assign(service, arg):
if service == "yongyou_fe":
return True, arg
def audit(arg):
url = arg + '/common/treeXml.jsp?type=sort&lx=3&code=1%27'
_, head, body, _, _ = curl.curl(url)... | [
"yudekui@wsmtec.com"
] | yudekui@wsmtec.com |
ed530119e7417142f6eadadd59dea9e964ffb5dd | 535f6b7a0635233dead58a4d8ef203b32c43ff2a | /实验/AI2019_SA19225404_吴语港_Lab4_TF1.x/量化个人教学/假量化/generate.py | 0d79b3a5b26dbcb9fe2aa08daee608ec403dafc4 | [] | no_license | jessenmeng/USTC_SSE_AI | 6cff7c6a1671a4e503727eea4ef9b455d41b166d | fa7891d69edfa719b509d1af894f7b6aa23e0b7e | refs/heads/master | 2022-12-25T19:32:39.320723 | 2020-10-10T06:08:19 | 2020-10-10T06:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | from captcha.image import ImageCaptcha # pip install captcha
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
import random
import cv2
#生成字符对应的验证码
class generateCaptcha():
alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
... | [
"321699849@qq.com"
] | 321699849@qq.com |
56f4aa1fac68ae607b647d5e6fbc8b7e2273b221 | 393a393bb593ec5813aa16a96384a62128eed643 | /ocr/src/processor/utility/common.py | a2e4d435f20872df95db8efa7de86379206bf01a | [] | no_license | normanyahq/kejinyan | 4b0d40559b0f6b715107aa38fe800539ba485f27 | 486403fcf393077fefb441cb64c217a2289aaf3e | refs/heads/master | 2023-06-24T13:43:52.740419 | 2017-10-09T04:29:50 | 2017-10-09T04:29:50 | 84,788,246 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import random
import datetime
import string
import time
def getSquareDist(p1, p2):
return (int(p1[0])-int(p2[0])) ** 2 + (int(p1[1])-int(p2[1]))**2
def generateFileName():
return getToken() + ".png"
def getToken():
return datetime.datetime.now().strftime("%Y%m%d%H%M%S") \
+ "".join([random.choi... | [
"normanyahq@gmail.com"
] | normanyahq@gmail.com |
eb3fc4058efee853d8bc2aa246422e6bdbc51da6 | d2b81eacad849b66066b3b5d244b59f0144e8a0e | /python_do_sth/cv_3.py | aeda29e7cdd4d57cd02874d675fcffcae122bafc | [] | no_license | Kaiping23/Automatic_operation_and_maintenance | ba88d7c2590fb6a23c20167d7273e06b037dfc52 | 4a659c91c44a0ef7c4701199f1ee49072bad98dd | refs/heads/master | 2021-07-13T23:28:20.890603 | 2020-12-01T07:23:47 | 2020-12-01T07:23:47 | 222,401,688 | 0 | 2 | null | 2020-09-14T03:18:31 | 2019-11-18T08:42:26 | Shell | UTF-8 | Python | false | false | 860 | py | #!/usr/bin/python3
# _*_coding=utf-8 _*_
# @author lkp
# @date 2020/3/31 17:50
from PIL import Image, ImageDraw, ImageFont
import cv2
import os
def draw(pic):
img = cv2.imread('pic/' + pic)
img = img[:, :, (2, 1, 0)]
blank = Image.new("RGB", [len(img[0]), len(img), "white"])
drawObj = ImageDraw.Draw(... | [
"admin@example.com"
] | admin@example.com |
1b73266fec9ad8adc485a161f7ef19f92c9e3161 | 536bce6ca78a9a151247b51acb8c375c9db7445f | /chapter2/2.33-fact.py | f39322d3d7ba4b95c64460e082de81bd82d43e19 | [] | no_license | clicianaldoni/aprimeronpython | 57de34313f4fd2a0c69637fefd60b0fb5861f859 | a917b62bec669765a238c4b310cc52b79c7df0c9 | refs/heads/master | 2023-01-28T18:02:31.175511 | 2023-01-23T08:14:57 | 2023-01-23T08:14:57 | 112,872,454 | 0 | 0 | null | 2017-12-02T19:55:40 | 2017-12-02T19:55:40 | null | UTF-8 | Python | false | false | 189 | py | """
Implement the factorial function
"""
def fact(n):
if n == 1 or n == 0:
return n
sum = 1
while n > 1:
sum *= n
n -= 1
return sum
print fact(4)
| [
"martin@rodvand.net"
] | martin@rodvand.net |
f5beb8c7f2fe29d2b3875d2c777fa120da672849 | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0095_Unique_Binary_Search_Trees_II/__init__.py | 9d3b0685feaf5e1088c97cabc9af771655025d5e | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 1,040 | py | ID = '95'
TITLE = 'Unique Binary Search Trees II'
DIFFICULTY = 'Medium'
URL = 'https://oj.leetcode.com/problems/unique-binary-search-trees-ii/'
BOOK = False
PROBLEM = r"""Given _n_, generate all structurally unique **BST's** (binary search trees)
that store values 1..._n_.
For example,
Given _n_ = 3, your program sh... | [
"romain_li@163.com"
] | romain_li@163.com |
b0b3f0dbcdb5f3398cb9d799cf00fb967cd0f87f | 466912406272829982f75854cf0104c6ce8c9814 | /data/spider2/migrate/domain_2_beian.py | 85b21c4c99d1c2c7c4d92cd71141911c01a78701 | [] | no_license | logonmy/Codes | 9631fa103fc499663361fa7eeccd7cedb9bb08e4 | 92723efdeccfc193f9ee5d0ab77203c254f34bc2 | refs/heads/master | 2021-09-21T18:07:22.985184 | 2018-08-30T05:53:26 | 2018-08-30T05:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | # -*- coding: utf-8 -*-
import os, sys
from pymongo import MongoClient
import pymongo
reload(sys)
sys.setdefaultencoding("utf-8")
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '../../util'))
import loghelper, config
import db
import name_helper
#logger
loghelper.init_logger("domain_2_beia... | [
"hush_guo@163.com"
] | hush_guo@163.com |
274d97a41930b485884225a410ffc761c904177b | 254ef44b90485767a3aea8cbe77dc6bf77dddaeb | /605种花问题.py | d57acf9ac517c69f15cf6872c969cf4d6f949943 | [] | no_license | XinZhaoFu/leetcode_moyu | fae00d52a52c090901021717df87b78d78192bdb | e80489923c60ed716d54c1bdeaaf52133d4e1209 | refs/heads/main | 2023-06-19T02:50:05.256149 | 2021-07-09T00:50:41 | 2021-07-09T00:50:41 | 331,243,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | """
假设有一个很长的花坛,一部分地块种植了花,另一部分却没有。可是,花不能种植在相邻的地块上,它们会争夺水源,两者都会死去。
给你一个整数数组 flowerbed 表示花坛,由若干 0 和 1 组成,其中 0 表示没种植花,1 表示种植了花。另有一个数 n ,能否在不打破种植规则的情况下种入 n 朵花?能则返回 true ,不能则返回 false。
示例 1:
输入:flowerbed = [1,0,0,0,1], n = 1
输出:true
"""
class Solution(object):
def canPlaceFlowers(self, flowerbed, n):
"""
... | [
"948244817@qq.com"
] | 948244817@qq.com |
1bc65433c162da913b092d7c9fdf5baab419a75a | 8853462a79608b7e5b7af94dbfa6c0a63c1f6b6a | /2. Crawlers/CASNET_policy/Generated_data/temp.py | f77dd43e3977f455dd80c26bb735b579e07b95d0 | [] | no_license | Ashish017/CASNET | eaae2552f8d56413f756c7d3839cd6f548a6e1ef | 73ec542c4c3fa1f97686796f0c385c71cad3e8d5 | refs/heads/master | 2023-02-06T06:53:27.362356 | 2020-12-27T04:43:34 | 2020-12-27T04:43:34 | 270,657,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import pandas as pd
import matplotlib.pyplot as plt
t1 = pd.read_csv("test_1.csv")
t2 = pd.read_csv("test_2.csv")
t3 = pd.read_csv("test_3.csv")
files = [t1,t2,t3]
di = {}
for i, file in enumerate(files):
for col in file.columns:
if col[0] != "U":
name = col + "_seed_{}".format(i+1)
di[name] = file[col]
f... | [
"ashishmalik7017@gmail.com"
] | ashishmalik7017@gmail.com |
383d7a4ec52c2853b77bfe31e940ffda2d8eb356 | 82b50cebff69927d4394378522ae96524950fff4 | /pointnet_ops/python/ops/interpolate_ops_test.py | f6a478248088b8f9c2a5e4775093df4d606239aa | [
"MIT"
] | permissive | jackd/pointnet_ops | 1b8a44bccbb2d9d3d5763b725f8972ad096a8a14 | 26d9b85ce4b503fac7547b965e233442aa243430 | refs/heads/master | 2020-04-29T01:35:10.644187 | 2019-11-07T00:08:01 | 2019-11-07T00:08:01 | 175,735,495 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | # Copyright 2018 The Sonnet Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"thedomjack@gmail.com"
] | thedomjack@gmail.com |
7fd7d2d3435692240151409412192953b899d325 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /cherrypy/test/test_wsgi_vhost.py | a7cbc1e110cbfd03a130821cba176cd2cc2bc53c | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | #Embedded file name: cherrypy/test\test_wsgi_vhost.py
import cherrypy
from cherrypy.test import helper
class WSGI_VirtualHost_Test(helper.CPWebCase):
def setup_server():
class ClassOfRoot(object):
def __init__(self, name):
self.name = name
def index(self):
... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
891131987930169977089ef3876a01ab735f4942 | a3e34daf7cf75f98d54b7d183f68e50277a6479b | /sources/XML projects/IBN EZRA/parse.py | 71b51b7d8f32ca018977270a23b497b3c19866af | [] | no_license | TomaszWaszczyk/Sefaria-Data | 2d0f1544c071340bffd87585e6883ef77df41495 | db2e136a14c6d08d98925da3afdf6373fec92de1 | refs/heads/master | 2023-06-07T07:56:24.332834 | 2021-06-20T15:53:56 | 2021-06-20T15:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | # -*- coding: utf-8 -*-
__author__ = 'stevenkaplan'
from sources.functions import *
from sefaria.model import *
from data_utilities.XML_to_JaggedArray import XML_to_JaggedArray
from sefaria.helper.schema import *
import bleach
SERVER = "https://ste.cauldron.sefaria.org"
def reorder_modify(text):
return bleach.cl... | [
"steve@sefaria.org"
] | steve@sefaria.org |
fbe5b3bc53d4ca5e5279b5e32b1207f84aea771a | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210714191430.py | 04f5745a8803874ada846022a476fba426fada70 | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,729 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
a65e513b2a58d300144f7c80b24d882cad985edc | a0ca6e78f0500e6bfc874cdb4ad79869c0fc4e81 | /plot_admitted.py | 027c0de8432efea3e6c2e5c09fc897a98567b1f0 | [] | no_license | kshedden/micovid | e25fc834e4fe9f55fdd80a40d68c134a9912bc3c | 1f85d84645707d4bb5e6bc913e667d666ce10a85 | refs/heads/master | 2022-11-23T23:46:09.794802 | 2020-07-20T02:57:57 | 2020-07-20T02:57:57 | 275,910,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import matplotlib.dates as mdates
import json
import gzip
months = mdates.MonthLocator()
months_fmt = mdates.DateFormatter("%b")
with gzip.open("/nfs/kshedden/Daniel_Keyes/ratio_results.json.gz"... | [
"kshedden@umich.edu"
] | kshedden@umich.edu |
d1de944f71e0ff37476071f7eb2400ef4bf5ca6e | d4e9fd6dd51d29ad374b460a2cfbd467502ede7d | /ros2doctor/test/test_qos_compatibility.py | cb21bedba5e8d26abe78afc768015c3139e5efed | [
"Apache-2.0"
] | permissive | ros2/ros2cli | 3f7b93ff44d18b2292a50d3b6ff119494142328b | 351ef3c7442f49013d84084dea23fe399517690f | refs/heads/rolling | 2023-08-07T03:53:23.635067 | 2023-08-03T19:50:28 | 2023-08-03T19:50:28 | 93,568,427 | 142 | 157 | Apache-2.0 | 2023-09-14T07:36:46 | 2017-06-06T22:13:14 | Python | UTF-8 | Python | false | false | 6,588 | py | # Copyright 2021 Open Source Robotics Foundation, 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 applicable law... | [
"noreply@github.com"
] | ros2.noreply@github.com |
5c8bec34b3455da38460275936f45236a1356b09 | 921aa4d0dddc868b61fe1ea3805cf15c36853bc0 | /client/k8s_client/models/v1beta1_ingress_list.py | 597dd9d514517fbd656459a07921c530ef9f056d | [] | no_license | mbohlool/k8s-python-client | 56d569071326820ebb5e11319ca230a272282a56 | e083a1991e03f05d69a39f43b02b9bd5ede0a2b7 | refs/heads/master | 2021-01-09T20:29:17.339112 | 2016-08-18T23:16:49 | 2016-08-18T23:16:49 | 65,772,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,235 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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... | [
"mehdy@google.com"
] | mehdy@google.com |
e6265d295615293256a409e7286b429a02cc5609 | 61747f324eaa757f3365fd7bf5ddd53ea0db47d1 | /casepro/contacts/migrations/0001_initial.py | 6d0a371e168bc8f557ce07d0e5145cb99d59cf58 | [
"BSD-3-Clause"
] | permissive | BlueRidgeLabs/casepro | f8b0eefa8f961dd2fdb5da26a48b619ebc1f8c12 | 8ef509326f3dfa80bb44beae00b60cc6c4ac7a24 | refs/heads/master | 2022-01-24T09:01:18.881548 | 2017-12-05T18:46:05 | 2017-12-05T18:49:42 | 113,502,588 | 0 | 0 | null | 2017-12-07T21:57:37 | 2017-12-07T21:57:37 | null | UTF-8 | Python | false | false | 3,306 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orgs', '0014_auto_20150722_1419'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[... | [
"rowanseymour@gmail.com"
] | rowanseymour@gmail.com |
796b55262c5939d604def2ffdc5807697e8ce051 | 26eb818572061109b55e498ab4f123a4ff9b9499 | /Stochastic_Evolutionary_Game/Stochastic_Game_Nowak_Code/Prisoners_Dilemma_Game/Matlab_Version/data.py | 80b1c7a3ca6a564a7c4dd0b6db60554e709bee0a | [] | no_license | Dcomplexity/Researches | 550e49b5a5951dca11df062aae1f86e2c12945c5 | 4eb55e2550970223c2f4006d289d8f4ba70a611a | refs/heads/master | 2022-04-04T02:13:56.976901 | 2020-02-01T14:34:44 | 2020-02-01T14:34:44 | 147,739,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | import pylab
import scipy.io as scio
data = scio.loadmat('Coop_Time')
coopS = data['ans'][0]
coop1 = data['ans'][1]
coop2 = data['ans'][2]
pylab.figure()
pylab.title('Cooperation Rate with Time')
pylab.xlabel('Time')
pylab.ylabel('Cooperation Fraction')
pylab.plot(coopS, 'k')
pylab.plot(coop1, 'r')
pylab.plot(coop2,... | [
"cdengcnc@sjtu.edu.cn"
] | cdengcnc@sjtu.edu.cn |
4b6cbd25b8649a1363aba2a0743f9bef3b0bf588 | 6b6bd222658ab11b51afc27d507abf4ef7d8e57b | /chapter6/kmeans.py | 72b173ecb14ac98ea75d4c245148844914a34c87 | [] | no_license | JessicaFeng0926/classic_computer_science_problems | 2347851f051e6e2afb2340258d5bf2d0a20e1571 | 68e44f4569a774553b763685050101357124d4a5 | refs/heads/master | 2022-11-13T16:29:45.396010 | 2020-07-08T02:11:04 | 2020-07-08T02:11:04 | 274,041,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,792 | py | from __future__ import annotations
from typing import TypeVar, Generic, List, Sequence, Optional
from copy import deepcopy
from functools import partial
from random import uniform
from statistics import mean, pstdev
from dataclasses import dataclass
from data_point import DataPoint
def zscores(original: Seq... | [
"hasayake.hi@163.com"
] | hasayake.hi@163.com |
71cfbf8a60c7c3ba6f029a3dbb93bebf0062f36d | 99a83749bc5976d78acb2eaa43139662a52629d4 | /msked/placements/utils_old.py | 73ea061533d9d83cf90c722c21b3c623905a9774 | [] | no_license | tommydangerous/msked | 16856ca484a98f0aa5785bc37355c33b436c6c37 | 681f48c386da17da64abbb24565efcce4cc0f10d | refs/heads/master | 2020-04-16T15:15:57.992175 | 2013-11-07T06:37:16 | 2013-11-07T06:37:16 | 8,272,061 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,445 | py | from collections import defaultdict
from django.conf import settings
from django.db.models import Q
from employees.models import Employee
from employees.utils import tier_lab_sum, tier_lab_balance_check
from random import shuffle
from tasks.utils import task_check
from undos.models import Undo
from works.utils ... | [
"quantumventuress@gmail.com"
] | quantumventuress@gmail.com |
c484c984aa678a25c17ee8984e4c160b9abfbc25 | feea5b7e71dbcc491dc9fe9b1686b5c13949369e | /mods/channels/__init__.py | 21139372dfe1438fafc7a060196c47bd3261c615 | [] | no_license | IsmaelRLG/UserBot | 232660971f98db1838263f821f40f0c879f00030 | 1ed21d0c0274c022b0de66ecc48547d9dab8be2b | refs/heads/master | 2021-01-17T07:08:13.342496 | 2016-03-11T19:08:30 | 2016-03-11T19:08:30 | 39,799,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | # -*- coding: utf-8 -*-
"""
UserBot module
Copyright 2015, Ismael R. Lugo G.
"""
import channels
reload(channels)
from sysb import commands
from channels import lang
from channels import _
commands.addHandler('channels', 'chan register( (?P<channel>[^ ]+))?', {
'sintax': 'chan register <channel>?',
'example... | [
"ismaelrlgv@gmail.com"
] | ismaelrlgv@gmail.com |
42262be31f9c9c5961d6f718490d0a8e36264f3f | 52f8ac63714421e1930d7b90cb8200bb24d6ac42 | /milove/shop/migrations/0011_auto_20170914_1954.py | a24d6b8e68833b9780ce5f3322a7f656ff9f7926 | [] | no_license | richardchien/milove-backend | ccc7afa17e88b17199ad3878b9315e12c2af8ef1 | 0310f2a60ebcbc3143d0aedcc6cb5842ba264a43 | refs/heads/master | 2023-07-06T12:45:13.622032 | 2017-10-02T04:40:00 | 2017-10-02T04:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-09-14 11:54
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('shop', '0010_auto_20170911_1831'),
]
operations = ... | [
"richardchienthebest@gmail.com"
] | richardchienthebest@gmail.com |
d2ff44c7f4f8ddc697ff528d785f404eda63cd11 | 64c8d431c751b1b7a7cb7224107ee40f67fbc982 | /code/python/echomesh/base/Path.py | f72ecbc1483d9983735ec38c6681592f9d32e01b | [
"MIT"
] | permissive | silky/echomesh | 6ac4755e4ff5ea3aa2b2b671c0979068c7605116 | 2fe5a00a79c215b4aca4083e5252fcdcbd0507aa | refs/heads/master | 2021-01-12T20:26:59.294649 | 2013-11-16T23:29:05 | 2013-11-16T23:29:05 | 14,458,268 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,625 | py | from __future__ import absolute_import, division, print_function, unicode_literals
from echomesh.base import MakeEmptyProject
from echomesh.base import Platform
import getpass
import os
import os.path
import sys
ECHOMESH_EXTERNALS_OVERRIDE_SYSTEM_PACKAGES = True
# If this is True, you want Echomesh to use its own ex... | [
"tom@swirly.com"
] | tom@swirly.com |
07ffac3ce1e2a9ef29d17775d50bc2c6979df431 | 3f6c16ea158a8fb4318b8f069156f1c8d5cff576 | /.PyCharm2019.1/system/python_stubs/1707563220/resource.py | cfb221481b898c344ab21274ba2bd7f905e9409f | [] | no_license | sarthak-patidar/dotfiles | 08494170d2c0fedc0bbe719cc7c60263ce6fd095 | b62cd46f3491fd3f50c704f0255730af682d1f80 | refs/heads/master | 2020-06-28T23:42:17.236273 | 2019-10-01T13:56:27 | 2019-10-01T13:56:27 | 200,369,900 | 0 | 0 | null | 2019-08-03T12:56:33 | 2019-08-03T11:53:29 | Shell | UTF-8 | Python | false | false | 5,485 | py | # encoding: utf-8
# module resource
# from /usr/lib/python3.6/lib-dynload/resource.cpython-36m-x86_64-linux-gnu.so
# by generator 1.147
# no doc
# no imports
# Variables with simple values
RLIMIT_AS = 9
RLIMIT_CORE = 4
RLIMIT_CPU = 0
RLIMIT_DATA = 2
RLIMIT_FSIZE = 1
RLIMIT_MEMLOCK = 8
RLIMIT_MSGQUEUE = 12
RLIMIT_NICE... | [
"sarthakpatidar15@gmail.com"
] | sarthakpatidar15@gmail.com |
38b4d90fe79dceeac78c45f1b1931845c7c16df1 | f62fd455e593a7ad203a5c268e23129473d968b6 | /python-barbicanclient-4.2.0/functionaltests/cli/v1/behaviors/secret_behaviors.py | 783db8bcdceadd3bb8c49600d77926bb52b65eca | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 4,527 | py | # Copyright (c) 2015 Rackspace, 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 applicable law or agreed to in wr... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
63e3cad549c027b04f4f2aeabb6948e59f1936fe | 15de7f67ac019324d99076906e7864e2b3d52218 | /Part 3/Ch1.py | c6c9fd87d0c1035be6d4c4b6f26a3055489bf39b | [] | no_license | ankiwoong/Web_Scraping_in_Python | df97aebc36b43d125f5d4ff55ab47cd114656c51 | dcc0950ee7fb5e4b9acaec581a2fcd590d27bb4a | refs/heads/master | 2022-12-03T07:58:38.626717 | 2020-08-30T02:37:13 | 2020-08-30T02:37:13 | 289,597,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import mechanicalsoup
browser = mechanicalsoup.Browser()
# browser() 객체는 head가 없는 웹 브라우저를 나타낸다.
# URL을 .get() 메소드에 전달하여 인터넷에서 페이지를 요청할 수 있다.
url = "http://olympus.realpython.org/login"
page = browser.get(url)
# 출력
print(page)
# MechanicalSoup은 요청에서 HTML을 구문 분석하기 위해 Beautiful Soup을 사용한다.
# 페이지에는 BeautifulSoup 개체를 나타... | [
"ankiwoong@gmail.com"
] | ankiwoong@gmail.com |
0cce371b26cc503d2072a6754493cd4e3c5ce7cb | 4749d3cf395522d90cb74d1842087d2f5671fa87 | /alice/LC686.py | 67bed14402b09716dbc8ef161fcd6f9c04fb99e2 | [] | no_license | AliceTTXu/LeetCode | c1ad763c3fa229362350ce3227498dfb1f022ab0 | ed15eb27936b39980d4cb5fb61cd937ec7ddcb6a | refs/heads/master | 2021-01-23T11:49:49.903285 | 2018-08-03T06:00:16 | 2018-08-03T06:00:16 | 33,470,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | class Solution(object):
def repeatedStringMatch(self, A, B):
"""
:type A: str
:type B: str
:rtype: int
"""
temp_out = len(B) / len(A)
end = self.find_substring_ending(A * (temp_out + 2), B)
if end == -1:
return -1
else:
... | [
"aliceadelice@gmail.com"
] | aliceadelice@gmail.com |
3bcdcd1ec3d8551f1937844d1b5049ba7f40e0de | 21bbcc4898cc653d2a81b91f500293f7e6932fc8 | /users/views/bet.py | 44bac74410fd01c5813a9e733895dec785afbeca | [] | no_license | ewgen19892/auction | 7e116354008349bbde147b42ee1a909cac7fc00b | 1449156a4985ca7757e342613e0762e11ed9aa30 | refs/heads/master | 2023-05-31T23:02:14.539923 | 2021-06-30T13:21:13 | 2021-06-30T13:21:13 | 381,708,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | """Bets views."""
from rest_framework.generics import GenericAPIView
from rest_framework.mixins import (
CreateModelMixin,
ListModelMixin,
RetrieveModelMixin,
)
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from users.models.bet import Bet
from users.se... | [
"e.bohovchuk@admitad.com"
] | e.bohovchuk@admitad.com |
5b3f7af6254318f0492a9a4656e243ea1a650008 | 18f776553a59a89faf05144ed1a69dc563dc4e9e | /Algorithm/insert_sort.py | cbdb6501102014039571662e8f5b9136479ee6a9 | [] | no_license | g-lyc/LeetCode | 274feff3b6c61da0ec8726deac0b298baed5cf10 | fa45cd44c3d4e7b0205833efcdc708d1638cbbe4 | refs/heads/master | 2022-12-13T14:50:02.976951 | 2020-09-03T09:39:58 | 2020-09-03T09:39:58 | 259,212,315 | 15 | 1 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | # coding:utf-8
def insert_sort(alist):
"""插入排序"""
n = len(alist)
# 从右边的无序序列中取出多少个元素执行这样的过程
for j in range(1, n):
# j = [1, 2, 3, n-1]
# i 代表内层循环起始值
i = j
# 执行从右边的无序序列中取出第一个元素,即i位置的元素,然后将其插入到前面的正确位置中
while i > 0:
if alist[i] < alist[i-1]:
... | [
"309080979@qq.com"
] | 309080979@qq.com |
6aca02bb5efcef065a9dbd7d46d07f6bb6937bf1 | 76e8afe527e191e6291562c6140606c16d7385df | /wsgi.py | 75ad6b25013956a7af77660d24fbd9058b5cb79c | [] | no_license | socek/tklive2013 | dfa896800713832d3f1b4a11f35aecf723e09328 | 2fa8c6fd099a66b7f84fc5df94d0a2b542a44f75 | refs/heads/master | 2021-01-22T05:16:34.001073 | 2013-02-25T13:14:43 | 2013-02-25T13:14:43 | 42,201,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #!/home/socek/www/2013.turniejkosza.pl/venv/bin/python
import os, sys
sys.path.append('/home/socek/www/2013.turniejkosza.pl/tklive')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' # this is your settings.py file
os.environ['PYTHON_EGG_CACHE'] = '/tmp'
import django.core.handlers.wsgi
application = django.core.han... | [
"msocek@gmail.com"
] | msocek@gmail.com |
253c9632016a2b5d45b61ace6d16cc791687be0b | 20f2f9c4728cc8380062c557b838af45d65b909b | /tests/basetypes.py | ad5a3e8fe487b3e4dd897fef64492948ff945397 | [] | no_license | dankamongmen/everpad | 5cea529cab55f2c4a8f4fc5588807c35b2a61aef | 4eea1d6c9b322cbad021453f3a0dc57582fb5c6a | refs/heads/master | 2021-01-16T19:51:27.598790 | 2012-12-06T09:28:28 | 2012-12-06T09:37:13 | 7,032,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | import sys
sys.path.append('..')
from everpad.basetypes import Tag, DbusSendable
import unittest
class TestBaseTypes(unittest.TestCase):
def test_signature(self):
class Fake(DbusSendable):
fields = (
('id', 'i'),
('name', 's'),
)
self.assert... | [
"nvbn.rm@gmail.com"
] | nvbn.rm@gmail.com |
e2001593d3dace8fffbd229e25b81b7d1a5932c2 | e54c04a919a21af0564c6d3f77c92c84a097e58b | /src/front-door/azext_front_door/vendored_sdks/models/frontend_endpoint_link_py3.py | 2777bd8e09b27cfb2d1604822a29b8ac26415ee0 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | rlrossiter/azure-cli-extensions | b8b4acad5394edbff545f4fd145cf24255db7453 | e8a640e6623e69e21fa7118eceb1ae28d134bb9a | refs/heads/master | 2021-08-06T18:17:29.141297 | 2019-09-22T13:37:04 | 2019-09-22T13:37:04 | 210,704,389 | 1 | 0 | MIT | 2019-09-24T21:56:44 | 2019-09-24T21:56:43 | null | UTF-8 | Python | false | false | 905 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# C... | [
"tjprescott@users.noreply.github.com"
] | tjprescott@users.noreply.github.com |
e165f515f5a8171ea465a2a3904e19bda27ebe4a | ad2090cc9591d38456621951d4901276481b55fd | /python编程技巧提高/day03/ex3_实现反向迭代.py | 389dd1920cf2aee18456d949fadf7f3918a3afae | [] | no_license | GuangGuangLi-Artist/LearningPython | 9d17366c4b64f5b3d53b885b71f1cf9bd4d2f53f | 0810ff6d0cc557f4d5ed8c024ce413a93183a6da | refs/heads/master | 2023-08-18T16:32:03.595418 | 2023-07-30T09:47:48 | 2023-07-30T09:47:48 | 201,511,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | #coding=utf-8
class FloatRange():
def __init__(self,start,end,step=0.1):
self.start = start
self.end = end
self.step = step
def __iter__(self):
t = self.start
while t <= self.end:
yield t
t += self.step
def __reversed__(self):
t = s... | [
"15607521232@163.com"
] | 15607521232@163.com |
6033d53dbc557f177f5618eb13bead953214860f | 39d4504ec1da8975fac526d6801b94f4348b6b61 | /official/utils/logs/hooks_helper_test.py | 5adb5fdc343ad00cfab2557436de927e68501743 | [
"Apache-2.0"
] | permissive | vincentcheny/models | fe0ff5888e6ee00a0d4fa5ee14154acdbeebe7ad | afb1a59fc1bc792ac72d1a3e22e2469020529788 | refs/heads/master | 2020-07-23T21:38:24.559521 | 2019-11-15T07:50:11 | 2019-11-15T07:50:11 | 207,712,649 | 1 | 0 | Apache-2.0 | 2019-09-11T03:12:31 | 2019-09-11T03:12:31 | null | UTF-8 | Python | false | false | 2,777 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"1155107977@link.cuhk.edu.hk"
] | 1155107977@link.cuhk.edu.hk |
ad0e22e38a0cabad285892fabed6f049c4e102a0 | ba9fc166ea9adb64e522471a4fc96e1810862516 | /examples/simple_rpc_server.py | db4cdd58130f340bb9dc83a573bde92b1e461b2d | [
"MIT"
] | permissive | martincolladodotcom/amqpstorm | 30ca347234f86b653ea6c0327ba93b7d40b8dee6 | 8c320601b92482472f3e5fe366221fa276c49004 | refs/heads/master | 2021-08-07T13:52:53.570087 | 2017-11-08T07:54:59 | 2017-11-08T07:54:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | """
RPC Server example based on code from the official RabbitMQ Tutorial.
http://www.rabbitmq.com/tutorials/tutorial-six-python.html
"""
import amqpstorm
from amqpstorm import Message
CONNECTION = amqpstorm.Connection('127.0.0.1', 'guest', 'guest')
CHANNEL = CONNECTION.channel()
CHANNEL.queue.declare(queue='rpc_queue... | [
"me@eandersson.net"
] | me@eandersson.net |
9af698eb1b9e10126a05c34812ef09e3ca26db5f | c4079336265fcaa2eb8be72d5a755d2dd3c95b1c | /bin/service.py | 114b11a3ee9f2e3e925d41730aab7de2ddb60201 | [
"MIT"
] | permissive | alexhsamuel/absence | 3bdd5e9b6f20f995b4b71ffc6ad94c52c7757c59 | 2dcb1e14f4ec0d90b1dad3ca03ebba7fa5a3d3ff | refs/heads/master | 2020-03-11T06:39:26.328341 | 2018-04-17T03:37:55 | 2018-04-17T03:37:55 | 129,835,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | #!/usr/bin/env python
import argparse
import flask
import logging
from pathlib import Path
import absence.api
import absence.api.service
from absence.db import SqliteDB
#-------------------------------------------------------------------------------
app = flask.Flask(__name__)
app.register_blueprint(absence.api... | [
"alex@alexsamuel.net"
] | alex@alexsamuel.net |
9851e0e373c9fa6897b1f6abde21d140a495945e | b7620d0f1a90390224c8ab71774b9c906ab3e8e9 | /aliyun-python-sdk-gpdb/aliyunsdkgpdb/request/v20160503/DescribeSQLLogsOnSliceRequest.py | 6c001777dbc8db958ef3c54d9c3f181732da9bde | [
"Apache-2.0"
] | permissive | YaoYinYing/aliyun-openapi-python-sdk | e9c62940baee1a35b9ec4a9fbd1e4eb0aaf93b2f | e9a93cc94bd8290d1b1a391a9cb0fad2e6c64627 | refs/heads/master | 2022-10-17T16:39:04.515562 | 2022-10-10T15:18:34 | 2022-10-10T15:18:34 | 117,057,304 | 0 | 0 | null | 2018-01-11T06:03:02 | 2018-01-11T06:03:01 | null | UTF-8 | Python | false | false | 2,838 | 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 not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
06c1b7128e4e03525c80978f40c0045334e11190 | c5d68f58c9523257a8b41954553f5cff2cd5f487 | /Secao_08_Lista_Ex_73e/ex_67.py | b48841401026d069e655abe6f4ea6e4a504e6079 | [] | no_license | SouzaCadu/guppe | 04bfcde82d4404eb9ec795006c6931ba07dc72b6 | 1f8a672230c5c27712f522e1e34516591c012453 | refs/heads/master | 2023-03-13T01:32:51.019871 | 2021-02-25T17:02:59 | 2021-02-25T17:02:59 | 320,908,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | """
faça uma rotina que receba como parâmetro um vetor de caracteres e
seu tamanho. a função deverá de ler uma string do teclado, caractere por caractere
usando a função getchat() até que o usuário digite enter ou o tamanho máximo do
vetor seja alcançado.
"""
def getchar():
"""
Função que retorna o caractere ... | [
"cadu.souza81@gmail.com"
] | cadu.souza81@gmail.com |
f2d735b073eda95981eb74d263efe7b8b08b0939 | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/101-200/week 178/1368. Minimum Cost to Make at Least One Valid Path in a Grid/Minimum Cost to Make at Least One Valid Path in a Grid.py | c0f974e882a945b86410b30ef80cb3fbd07b4071 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: Wayne
@contact: wangye.hope@gmail.com
@software: PyCharm
@file: Minimum Cost to Make at Least One Valid Path in a Grid
@time: 2020/3/5 14:47
"""
class Solution:
def minCost(self, A: list(list())):
n, m, inf, k = len(A), len(A[0]), 10 ** 9, 0
dp... | [
"905317742@qq.com"
] | 905317742@qq.com |
70cfde39fc00d4c6dbdb49f823c1d203e72aeaa0 | d09ad52c0911a83a5e5a03850bb5371d22446226 | /metrics.py | c0c926ae23018f66d249ffebc51658a841faf430 | [] | no_license | hzfmer/pyawp | 88d0ea24b47aa02a8ef4a89e59335b636a5c205b | aff564d59c1f00ada2755ab239980fbfa0a8d9cb | refs/heads/main | 2023-05-08T07:37:53.603933 | 2021-05-27T18:51:56 | 2021-05-27T18:51:56 | 371,476,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,102 | py | import sympy as sp
def covariant_basis(x, r):
"""
Compute covariant basis vectors.
Arguments:
x : List of mappings of physical coordinates to parameter coordinates
r : List of parameter coordinates.
Returns:
a : Covariant basis (list of vectors). For example, `a[0]` gives the... | [
"hzfmer94@gmail.com"
] | hzfmer94@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.