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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25d52bc48c0c1e46e64ae213475cb5bb3e50b79b | bab76d8cf312ee3eae66472b6abd119903e17e8e | /438. Find All Anagrams in a String.py | 0d977c68ad1af0bbc708940c3356227c7fd4c24f | [] | no_license | lixuanhong/LeetCode | 91131825d5eca144a46abe82a2ef04ea1f3ff025 | 48d436701840f8c162829cb101ecde444def2307 | refs/heads/master | 2020-04-05T02:54:52.473259 | 2018-11-07T05:31:30 | 2018-11-07T05:31:30 | 156,494,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | """
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.
Strings consists of lowercase English letters only and the length of both strings s and p will not be larger than 20,100.
The order of output does not matter.
Example 1:
Input:
s: "cbaebabacd" p: "abc"
Output:
[0, 6]
E... | [
"lixuan.hong@gmail.com"
] | lixuan.hong@gmail.com |
3adf389285bdbe9e0d2c777d2bdeb0f79b9e58c4 | 4a43dc3e8465c66dcce55027586f0b1fe1e74c99 | /service/generated_flatbuffers/tflite/CustomQuantization.py | 8f6b32aaabd829eb8a72424270f9f309338319fb | [
"Apache-2.0"
] | permissive | stewartmiles/falken | e1613d0d83edfd4485c1b78f54734e9b33b51fa5 | 26ab377a6853463b2efce40970e54d44b91e79ca | refs/heads/main | 2023-06-05T12:01:13.099531 | 2021-06-17T22:22:16 | 2021-06-17T22:22:16 | 377,912,626 | 1 | 0 | Apache-2.0 | 2021-06-17T17:34:21 | 2021-06-17T17:34:20 | null | UTF-8 | Python | false | false | 4,421 | py | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
4ffada5f483bbe664ae997fa51be0b40382b131b | a43f5be94a9a9bb043508848d034ef38009b65ec | /app.py | 13c971037ed5b657b7270168b0ca1a6f6d2e678e | [] | no_license | reikamoon/fortune_form | 9ffea272bc5f6f8d46126679d9476de83b517168 | 5f199e3c3669fd3eadf4f0638c3682a112bfdb32 | refs/heads/master | 2020-08-27T13:59:43.641482 | 2020-06-05T07:47:25 | 2020-06-05T07:47:25 | 217,396,520 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | from flask import Flask, request, render_template
app = Flask(__name__)
@app.route('/')
def show_form():
return render_template('fortune_form.html')
@app.route('/fortune_results', methods=['GET'])
def show_results():
name = request.args.get('name')
chara = request.args.get('chara')
favebluelion = req... | [
"ambrosio.anjelica@gmail.com"
] | ambrosio.anjelica@gmail.com |
2947d4d4da637866c7a643f5a0fc9132bc0cd2db | 67d86df6fa000f6464d756193e95bd9ddbf902e6 | /samples/meals/migrations/0001_initial.py | 476bf31bb2de45dc5ba9d0226317c92f5482749c | [
"CC-BY-3.0",
"MIT"
] | permissive | Tayloirt/dj4e-samples | 32f5c9b1ba1497f35026271b984a93f6b96b34e4 | 9e2d76e28d98d12a9d175b2acbf32d33d78f01ee | refs/heads/master | 2020-05-03T00:02:37.641635 | 2019-03-28T21:03:40 | 2019-03-28T21:03:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | # Generated by Django 2.1.7 on 2019-03-27 13:01
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"csev@umich.edu"
] | csev@umich.edu |
3e828440290fffe516687aead2dfc94b89dc802a | 14bca3c05f5d8de455c16ec19ac7782653da97b2 | /lib/kubernetes/client/models/v1beta1_ip_block.py | 33df548f9f12d06141c67336223a3f08c9e9f4f5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hovu96/splunk_as_a_service_app | 167f50012c8993879afbeb88a1f2ba962cdf12ea | 9da46cd4f45603c5c4f63ddce5b607fa25ca89de | refs/heads/master | 2020-06-19T08:35:21.103208 | 2020-06-16T19:07:00 | 2020-06-16T19:07:00 | 196,641,210 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,368 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteri... | [
"robert.fujara@gmail.com"
] | robert.fujara@gmail.com |
d0576b9bc4723d189470388fa102539469b8f530 | 9ac205e4d8f111608d1abbcfa78b5b6598c17955 | /818.赛车.py | 8c5a4151224ac76404dfacd82a0111cea7d48527 | [] | no_license | oceanbei333/leetcode | 41ff0666da41750f7d3c82db53ec6f7f27125d3e | 5d29bcf7ea1a9e489a92bc36d2158456de25829e | refs/heads/main | 2023-03-16T18:17:25.232522 | 2021-02-28T04:56:40 | 2021-02-28T04:56:40 | 319,561,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | #
# @lc app=leetcode.cn id=818 lang=python3
#
# [818] 赛车
#
# @lc code=start
class Solution:
def racecar(self, target):
dp = [0, 1, 4] + [float('inf')] * target
for t in range(3, target + 1):
# k 是第一个超过t的步数
k = t.bit_length()
# 如果只前进就可以到达
if t == 2**k ... | [
"hyram@wudun.net"
] | hyram@wudun.net |
94e45025ceb346ed7156b1fc501e16e55c3a9901 | 15676ff938d417c1bc1d0e510db899accfd3d05a | /Classes/LTSpreadsheet.py | 52baed1046a4c766f44e9207a3c680a30a47a71a | [] | no_license | Eric-Wonbin-Sang/SAL | d4a5d441b2c335c04809da5f61d7251258a1681d | 5869b6cb47bea1b20ec4d3f9b53370ffada30926 | refs/heads/master | 2022-12-29T08:32:27.567281 | 2020-10-17T23:51:07 | 2020-10-17T23:51:07 | 287,887,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | from lib import Google
from Classes import LTSheet
from General import ListHelp
class LTSpreadsheet(Google.Spreadsheet):
def __init__(self, google_sheets_credentials_json):
super().__init__("LT Sheets", google_sheets_credentials_json)
self.helps_sheet_title = "help_sheet"
self.help_di... | [
"eric.wonbin.sang@gmail.com"
] | eric.wonbin.sang@gmail.com |
dcf263e0a809016df6fbf28694ba9a3202232b9e | 6979547e7abaa3f34c023ac2cd691d8e862b6ad9 | /CookiesPool/cookiespool/tester.py | 742bcc272983b10673291e984fe22d2b65b6f588 | [] | no_license | kingking888/-Cookies-Pool | b53bf984cf3dd850cd138eb9d2cd231f5f3a7e60 | c7daade01b27ec84637b06d8bb84631586f2f6d5 | refs/heads/master | 2020-07-22T02:38:01.041009 | 2019-03-30T11:25:52 | 2019-03-30T11:25:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | py | import json
import requests
from requests.exceptions import ConnectionError
from cookiespool.db import *
class ValidTester(object):
def __init__(self, website='default'):
self.website = website
self.cookies_db = RedisClient('cookies', self.website)
self.accounts_db = RedisClient('accounts'... | [
"17319296359@163.com"
] | 17319296359@163.com |
7f92c72e8a01bc1058e134634d5a5dda45ab2311 | 2f38331b8a0bc8867859d853d352f9f5cc9cd1b5 | /day07/test/thread.py | 518e82f72d5c1bd696072f97c88969b1468f258f | [] | no_license | Chenhuaqi6/python_net | aaf66a15a2f438e1f3fc67f338abd15e2bbfd6a3 | 56efd53bbaa1212a86c65e9cd3b29d2f5f30b752 | refs/heads/master | 2020-04-09T08:30:20.817513 | 2019-01-19T06:51:41 | 2019-01-19T06:51:41 | 160,196,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from test import *
import threading
import time
def io():
write()
read()
jobs = []
t = time.time()
for i in range(10):
th = threading.Thread(target=io)
jobs.append(th)
th.start()
for i in jobs:
i.join()
print("Thread cpu",time.time()-t) | [
"466940759@qq.com"
] | 466940759@qq.com |
f4862ee84c1051bc93e717cd6f49b047e091c3dc | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_16215.py | f2b022a5629056ea5ec22621618332b3c1dfa852 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | # Python list of strings and list of regexes, clean way to find strings which don't match anything?
[key for key in keys if not any(re.match(pattern, key) for pattern in patterns)]
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
5c372b53088ab4f84dcfffede2845b06bd6e939a | 7db0883137d119565540f2d071638c4016f39213 | /Note/Python基础/7-内置函数、作用域、闭包、递归/02内置函数、作用域、闭包、递归.py | c43fa61e643f63ef1bbb5f492bbfd9401fde462b | [] | no_license | PhilHuang-d/python--- | cf22a4cc00d4beaaf75ef7ca87a4c5d31a9d5efe | 152c18f51838ce652b79a0cd24765b1a1c237eee | refs/heads/master | 2021-09-13T05:32:53.754865 | 2018-04-25T13:36:40 | 2018-04-25T13:36:40 | 108,812,447 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,172 | py | #python 函数
#回顾
'''
1.函数定义 def fun_name ():
2.参数:1.不需传参 2.必备参数 3.默认参数 4.不定长 *arg **kwarg
3.return: 1.返回函数的运行结果 2.函数结束标志
4.lambda: 匿名函数
'''
#内置函数 python自带
'''
type(1)
max(1,4)
min()
print()
len()
sorted()
reversed()
help()
id()
range()
'''
li = dir(__builtins__)
li.index('abs')
li[81:]
len(li[81:])
###补充
... | [
"32259595+PhilHuang-d@users.noreply.github.com"
] | 32259595+PhilHuang-d@users.noreply.github.com |
8859a380f3da203d0efdb9feb54e3315f0dbd9d9 | 78f54f911d47019da0deeeb6579c7e9e65bb8d21 | /src/api/views/operation/DataOperationJobExecutionLogPageResource.py | 77d470c14c53ecf808a4b9fdffc2504abd0d6b73 | [
"MIT"
] | permissive | jedicontributors/pythondataintegrator | 02f8ae1a50cf5ddd85341da738c24aa6a320c442 | 3e877b367ab9b20185476128ec053db41087879f | refs/heads/main | 2023-06-15T07:37:13.313988 | 2021-07-03T15:46:43 | 2021-07-03T15:46:43 | 354,021,102 | 0 | 0 | MIT | 2021-07-03T15:46:44 | 2021-04-02T13:03:12 | Python | UTF-8 | Python | false | false | 883 | py | from flask import make_response
from injector import inject
from domain.operation.page.DataOperationJobExecutionLogPage import DataOperationJobExecutionLogPage
from IocManager import IocManager
from infrastructor.api.ResourceBase import ResourceBase
from views.operation.PageModels import PageModels
@PageModels.ns.rou... | [
"ahmetcagriakca@gmail.com"
] | ahmetcagriakca@gmail.com |
e3678ab79ffc6937784d904012f9b0e3439544af | 9dc3ab405ab31c959738868cd48c1b62e0730de0 | /src/685.冗余连接-ii.py | 8d4da2edeeff3ba7a967f874cb427a69f3fc92b8 | [] | no_license | gwy15/leetcode | 2d062496f43ad9f98f133f0eb61fc81bb7014b5a | 5ce829760205674965eae81b191a364022b80ae2 | refs/heads/master | 2022-07-21T09:07:24.763917 | 2022-07-10T11:36:28 | 2022-07-10T11:36:28 | 230,042,980 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,576 | py | #
# @lc app=leetcode.cn id=685 lang=python3
#
# [685] 冗余连接 II
#
from typing import List
from utils import *
# @lc code=start
class UnionFind:
def __init__(self, n):
self.parent = [i for i in range(n+1)]
def find(self, i):
if self.parent[i] != i:
self.parent[i] = self.find(self.par... | [
"gwy15thu@gmail.com"
] | gwy15thu@gmail.com |
d3eac81e4df285bb6ef2fa5f20f85a236f7cd7b5 | ac75338258efe0c85b2e850c423f66261185da19 | /scripts/check_disk.py | 0af7e7855d9ee6443c538b59faaf437887bc3f07 | [] | no_license | yindashan/vongfong | 63d662f5413d07d0ee43552c707d2600118b6d23 | e608b78b65a536668cffdeb1babdf5b2d53a851d | refs/heads/master | 2021-01-22T04:53:48.271579 | 2014-10-20T10:59:30 | 2014-10-20T10:59:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,499 | py | #!/opt/virtual_python/bin/python
# -*- coding: utf-8 -*-
import os
import sys
def error_handler(error_message=""):
# print error_message
print "HOST_STATUS | SYS_DISK_MAX=-1, SYS_DISK_AVG=-1"
sys.exit(1)
def success_handler(disk_max, disk_avg):
print "HOST_STATUS | SYS_DISK_MAX=%.0f, SYS_DISK_AVG=%.0... | [
"="
] | = |
4f7c9089efcf8f9093fe948eb1c1a65059d82aa6 | 759806e04d87388ffb4679c679603a67e403d62c | /deeppy/parameter.py | 73314c42fb2e681090ff6f698494e146dab241df | [
"MIT"
] | permissive | MengjiaoZhang/deeppy | 631ce30ea62b869d2ce6057f09006327a1a3fe04 | 61bcce2cdcdb235e49e18ae2adc36cec2b819e4f | refs/heads/master | 2021-10-20T05:28:36.403591 | 2019-02-26T03:50:39 | 2019-02-26T03:50:39 | 100,334,957 | 0 | 0 | null | 2017-08-15T03:31:47 | 2017-08-15T03:31:46 | null | UTF-8 | Python | false | false | 3,524 | py | import numpy as np
import cudarray as ca
from .base import PickleMixin
from .filler import Filler
import logging
log = logging.getLogger(__name__)
class Parameter(PickleMixin):
def __init__(self, fill, name='', learn_rate=1.0, weight_decay=0.0,
monitor=False):
self.filler = Filler.from_a... | [
"anders.bll@gmail.com"
] | anders.bll@gmail.com |
ac906df3d26c13e011ddd08ebbcf547d5f8ba997 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /d6wR7bcs4M6QdzpFj_22.py | a974df204fe74c1916514354b94bda9a854aff69 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py |
def repeat(lst, n):
lst *= n
return lst
def add(lst, x):
lst += [x]
return lst
def remove(lst, i, j):
del lst[i:j+1]
return lst
def concat(lst, lst2):
lst += lst2
return lst
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5c6afaf97d882a3b09cfa1be1d484a2d2eb8d85c | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/surface/compute/forwarding_rules/export.py | 775970417bc23256a2773e03cb330b01b5ea2d48 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 3,335 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 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 requir... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
9a8245d81cce37a1d13ffea383b345472f241fc8 | 7ce761781e7f5b57b2469adce459a71b4758694d | /env/lib/python2.7/site-packages/graphlab/toolkits/recommender/__init__.py | 5f0dfa5a49dccfd2fd8cf72102ad6275e594a3a1 | [] | no_license | hophamtenquang/RecSys | c4fa18d1ba262670a284b2fba2ca97b882ef0f4c | 535472844a046cadd9230302da647a54afff95e8 | refs/heads/master | 2021-01-19T17:00:32.924064 | 2017-08-30T10:31:32 | 2017-08-30T10:31:32 | 101,031,687 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,967 | py | """
The GraphLab Create recommender toolkit provides a unified interface to train a
variety of recommender models and use them to make recommendations.
Recommender models can be created using :meth:`graphlab.recommender.create` or
loaded from a previously saved model using :meth:`graphlab.load_model`. The
input data m... | [
"hophamtenquang@gmail.com"
] | hophamtenquang@gmail.com |
b9d68622ad7adf86c83d7f228b67ced8d4b3615c | 7c21136fe921f1097777aad4c165e030ae6fbdca | /main/urls.py | 662eddb13e4e684f3a619a689fe1f332de028bf7 | [] | no_license | shikhers/aten | a5936b6cc9e0c943e4e58fadfb5ec66babbee370 | 17c41727762291f19b0a8e768666e708042c61c9 | refs/heads/master | 2020-04-07T04:10:31.316223 | 2018-11-17T15:14:47 | 2018-11-17T15:14:47 | 158,043,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from django.urls import path
from . import views
urlpatterns = [
#main page url
path('',views.mainview,name='index'),
#second page url
path('Second/<int:pk>/',views.Secondview.as_view(),name='second'),
path('about/',views.Aboutview,name='about'),
path('contect/',views.contectview,name='contect'),
]... | [
"you@example.com"
] | you@example.com |
1d092762a0b45a750803ffedb53b03155370f85f | 060967fa3e6e390ac0504172e6dea8421ffb9d98 | /2020/python2020/tests/test_day22.py | cfded87b5bbec592ff78f352e469d4d80e101641 | [] | no_license | mreishus/aoc | 677afd18521b62c9fd141a45fec4b7bc844be259 | e89db235837d2d05848210a18c9c2a4456085570 | refs/heads/master | 2023-02-22T12:00:52.508701 | 2023-02-09T04:37:50 | 2023-02-09T04:39:44 | 159,991,022 | 16 | 3 | null | 2023-01-05T10:00:46 | 2018-12-01T22:00:22 | Python | UTF-8 | Python | false | false | 597 | py | #!/usr/bin/env python3
"""
Test Day22.
"""
import unittest
from aoc.day22 import Day22
class TestDay22(unittest.TestCase):
"""Test Day22."""
def test_part1(self):
"""Test part1"""
self.assertEqual(Day22.part1("../inputs/22/input_small_1.txt"), 306)
self.assertEqual(Day22.part1("../in... | [
"mreishus@users.noreply.github.com"
] | mreishus@users.noreply.github.com |
d195307b1898f670469145acccd129888c63926c | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/plugin/core/functiongraph/graph/vertex/FGVertexTooltipProvider.pyi | 90091176bc9a55644e80fe9887447263f4cf6fe0 | [
"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 | 1,537 | pyi | import ghidra.app.plugin.core.functiongraph.graph
import ghidra.app.plugin.core.functiongraph.graph.vertex
import ghidra.graph.viewer.event.mouse
import java.awt.event
import java.lang
import javax.swing
class FGVertexTooltipProvider(object, ghidra.graph.viewer.event.mouse.VertexTooltipProvider):
def __init__... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
cb7472c7c24bdec2eb46f50ba68c8aeefb86daa3 | 48c65330f577d11cedb29fd970aee35788ab72c6 | /model_flfact_tpv__mg2_payment_raw.py | e7fb8831e6a95edb90ba11186ebb2e2c0bc5f4ee | [] | no_license | yeboyebo/elganso_sync | 309ecbaba3127493abe001cd1704cc7098234baa | 66f033a0e27a05c1fc6704ec6ba2bd474d204b7e | refs/heads/master | 2023-07-22T00:17:48.201252 | 2023-07-19T07:48:40 | 2023-07-19T07:48:40 | 173,096,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | from YBLEGACY import qsatype
from models.flsyncppal.objects.aqmodel_raw import AQModel
class Mg2Payment(AQModel):
def __init__(self, init_data, params=None):
super().__init__("tpv_pagoscomanda", init_data, params)
def get_cursor(self):
cursor = super().get_cursor()
cursor.setActivat... | [
"jesus.yeboyebo@gmail.com"
] | jesus.yeboyebo@gmail.com |
a837d7545e6069b4dea1f52e9ec3aa6febe7c33d | da479c879d3a0b4e7f07b4e8bf559629ffe83cb3 | /data/aligned_dataset.py | 5f213873674814b16afc0bacaa4bc93b5c7640ce | [] | no_license | phymhan/supervised-gan | c85ae3d20de8488d465c41fd243e10b5d8c8fdb4 | b96543e6afa32e91236a53caf9a009c830a3ab03 | refs/heads/master | 2021-05-06T10:09:54.390099 | 2018-03-05T07:35:48 | 2018-03-05T07:35:48 | 114,100,930 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | import os.path
import random
import torchvision.transforms as transforms
import torch
from data.base_dataset import BaseDataset
from data.image_folder import make_dataset
from PIL import Image
class AlignedDataset(BaseDataset):
def initialize(self, opt):
self.opt = opt
self.root = opt.dataroot
... | [
"hanligong@gmail.com"
] | hanligong@gmail.com |
0ff10119cdfd162cfb8fb9750c6fd4d9094d7688 | 9855a6472fa9cd0a0ed75d5d1110eb5450e38c35 | /connections/migrations/0001_initial.py | e92347dc57e1dc6ed9c496d063a45d9cc00497f1 | [] | no_license | JessAtBlocBoxCo/blocbox | efef025333b689e4c9e0fb6a7bfb2237fcdc72a0 | 0966fd0ba096b2107bd6bd05e08c43b4902e6ff2 | refs/heads/master | 2020-04-11T04:30:25.792700 | 2015-09-22T04:41:34 | 2015-09-22T04:41:34 | 23,008,502 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
m... | [
"jess@blocbox.co"
] | jess@blocbox.co |
4aa43e0f48613691853187fff376281c03792037 | b2f1a91dcf58dfe3a106e4db1a37df00918a4327 | /to_do/bdAttrUtils_v01.py | 84fc1b3a9b6c79b9837148da6159f219a2abb933 | [] | no_license | 8secz-johndpope/bdScripts | 0baf50ea49c36ef341f0755477ac1cf925f3697e | ccafe5280afafe8f91ae6cd5549516620b95aac9 | refs/heads/master | 2022-02-01T02:38:57.003873 | 2019-06-13T09:22:43 | 2019-06-13T09:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,004 | py | import pymel.core as pm
class AttributesHolder():
def __init__(self, *args, **kargs):
self.attrHolder = self.bdGetHolder()
self.attrList = []
self.attrReconstruct = []
self.attrReconstructConnections = []
self.attrReconstructValues = []
self.attrReconstructType = []... | [
"ender_bd@yahoo.com"
] | ender_bd@yahoo.com |
311bd7afad27eb6ccfbf661bea184e15cd4618c8 | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - lab5/set2/KENNEDY K BATCHLER_9402_assignsubmission_file_Lab5/lab5/Lab5_Q3.py | 5e970aee8d023ff311670ed9cfd1f813355003d0 | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | def checkprime(n):
'''check if integer n is a prim '''
n=abs(int(n))
if n < 2:
return False
if n == 2:
return True
if not n & 1:
return False
for x in range (3,int(n**0.5)+1,2):
if n % x ==0:
return False
return True
print checkprime(3)
print checkprime(255) | [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
e3474d01bb0de6fd542f3e92b38fda2d97e616a5 | 478422b7042926f243a6dcfa90d9c8640e37ec83 | /BasicOperations/05_Pandas/date_range.py | 5740480ffdd01d67974487b770b17f67848b720a | [
"MIT"
] | permissive | JohnnyDankseed/midProjects | c70e4c19680af50c1a3869726cca4e9ea2cd4de7 | ed6086e74f68b1b89f725abe0b270e67cf8993a8 | refs/heads/master | 2021-06-03T05:24:32.691310 | 2016-07-25T17:13:04 | 2016-07-25T17:13:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | import numpy as np
import pandas as pd
np.random.seed(123456)
bymin = pd.Series(np.random.randn(24*60*90),
pd.date_range('2014-08-01',
'2014-10-29 23:59',
freq='T'))
#print(bymin)
#print(bymin['2014-08-01 00:02':'2014-08-01 00:10'])
dti = pd.date_range('2014-08-29', '2014-09-05', freq='B')... | [
"upsea@upsea.cn"
] | upsea@upsea.cn |
8bb91ae2916c4d2788f758d11c7fe023b3ae847d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_230/ch138_2020_04_01_19_11_08_153239.py | 892d1d92e4acf3e252656b210a7de8eab78dec62 | [] | 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 | 485 | py | executa=input("Código está executando?")
avancar=0
while not avancar:
executa=input("Código está executando?")
if executa=="n":
print("Corrija o código e tente de novo")
if executa=="s":
avancar=True
resultado=input("O código produz o resultado correto?")
if resultado=="n":
... | [
"you@example.com"
] | you@example.com |
1bc24b959a7ad0e561d59bda9b245178f151d1b8 | 73e943ca6a4e44f36b896a8e232c544849513a80 | /Python practice/LeetCode/duplicates_game.py | 695de7cdc6ef766a07a2a446202f0d1a5c41528b | [] | no_license | AntonyXXu/Learning | 269649b53531a9340b64ca7864b141077c427c4c | 56ba997b34818cb38e1ad38ab0fdd1533c7c6fc5 | refs/heads/main | 2023-08-12T18:01:19.727220 | 2021-10-15T03:37:15 | 2021-10-15T03:37:15 | 334,278,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | def dup(numbers):
alice = False
for i in range(len(numbers) - 1):
if i >= len(numbers)-1:
break
if numbers[i] == numbers[i+1]:
numbers.pop(i)
numbers.pop(i)
alice = not alice
i -= 2
if alice:
return "Alice"
else:
... | [
"77988513+AntonyXXu@users.noreply.github.com"
] | 77988513+AntonyXXu@users.noreply.github.com |
645ae889cdf4e96cbb7d523528578d4cd8f662e4 | bc356db1ab8455c08583777011c9a1b7cdc18474 | /config.py | 78b941571521bae028ed114079bad3832ed0258d | [] | no_license | ml-lab/simulated-unsupervised-tensorflow | 5f2b98738c7a911d0120b906573a0e4efb8e20b6 | 93a3088d74844eb22b180a9fbe6db11dd354e034 | refs/heads/master | 2021-04-28T22:28:29.362286 | 2016-12-30T16:37:49 | 2016-12-30T18:09:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,402 | py | #-*- coding: utf-8 -*-
import argparse
def str2bool(v):
return v.lower() in ('true', '1')
arg_lists = []
parser = argparse.ArgumentParser()
def add_argument_group(name):
arg = parser.add_argument_group(name)
arg_lists.append(arg)
return arg
# Network
net_arg = add_argument_group('Network')
net_arg.add_argum... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
e1408030addb09c8ab3f77f561512687ffad4f4f | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Project Workshop/pygame/extra/game_9.py | 4ea514cdfec2d45d851d0e2e39a1e7338148b92e | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:132822ee9a64f4c196c2d6fba260a6da4a51f5c6c930d273e1016c5af491b54f
size 2056
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
861d849b7ec7c8b954dc91f64edfdb99cc82c13f | fc8d456219862ce98fef17afc7031b05d235bf6f | /py_intro/functions/Solutions/add_nums.py | d69afcac2e2efb35ecf48d3bd7b029aa236cef79 | [] | no_license | tspeigner/pythonlearning | ba515606bd622088c19b58bffbc2b2be065cc30f | b6ce2189cd888076352ff9070590239d7f86ea2d | refs/heads/master | 2020-07-07T00:55:44.312141 | 2019-08-19T15:24:42 | 2019-08-19T15:24:42 | 203,192,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | def add_nums(num1,num2):
sum = num1 + num2
print(num1, '+', num2, ' = ', sum)
def main():
add_nums(3,6)
add_nums(10,12)
main() | [
"tspeigner@gmail.com"
] | tspeigner@gmail.com |
f8ac824ce5ca137b4f1602efb578071fcd488688 | 880dbde608a17d37b325f35e97be3674006051a5 | /HGTP_socket3/app/jie_kou_test/just_run/change_request_after.py | dd5208bc2a791071f9905b74c72b588b370f7f95 | [] | no_license | UserWangjn/JY_local_server | 03aaa6b7666856361a582102e7dbf93b54ba48b0 | 31f9aa7efe294e623d4b3d2ecb208644ae66a9e8 | refs/heads/master | 2022-09-22T03:59:26.383147 | 2019-12-20T03:08:25 | 2019-12-20T03:08:25 | 229,176,327 | 0 | 0 | null | 2022-09-16T03:28:12 | 2019-12-20T02:38:41 | HTML | UTF-8 | Python | false | false | 1,246 | py | # -*- coding: utf-8 -*-
# uncompyle6 version 3.3.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.7.3 (default, Jun 24 2019, 04:54:02)
# [GCC 9.1.0]
# Embedded file name: C:\jieyuelianhe\old_all_server\test_local\HGTP_socket3\app\jie_kou_test\just_run\change_request_after.py
# Compiled at: 2018-08-06 13:46:... | [
"wjntest@163.com"
] | wjntest@163.com |
4fcef7e0387ddb43dc2bc169bc9d771340f38c3d | f707303e4dfe383cf82c23a6bb42ccfdc4cfdb67 | /pandas-ta-quant/pandas_ta_quant/technical_analysis/indicators/__init__.py | fd724c94c31b3c904e7f10a40b5d5d5c0854edc4 | [
"MIT"
] | permissive | jcoffi/pandas-ml-quant | 1830ec256f8c09c04f1aa77e2eecfba07d34fe68 | 650a8e8f77bc4d71136518d1c7ee65c194a99cf0 | refs/heads/master | 2023-08-31T06:45:38.060737 | 2021-09-09T04:44:35 | 2021-09-09T04:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | from pandas_ml_common import pd as _pd, suitable_kwargs as _select_kwargs
from pandas_ta_quant._decorators import *
from .multi_object import *
from .single_object import *
from .time import *
from ..encoders.candles import ta_candle_category, ta_candles_as_culb
# this is executing all technical indicators into one h... | [
"kic@kic.kic"
] | kic@kic.kic |
9f1962f97f62c047f0e444a61bac5317e461ed08 | 25873da962b0acdcf2c46b60695866d29008c11d | /src/programr/config/brain/tokenizer.py | 82a0f1a054a21b7b859c72dcd94209b6c331a4b1 | [] | no_license | LombeC/program-r | 79f81fa82a617f053ccde1115af3344369b1cfa5 | a7eb6820696a2e5314d29f8d82aaad45a0dc0362 | refs/heads/master | 2022-12-01T14:40:40.208360 | 2020-08-10T21:10:30 | 2020-08-10T21:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | from programr.config.section import BaseSectionConfigurationData
from programr.utils.logging.ylogger import YLogger
from programr.config.base import BaseConfigurationData
class BrainTokenizerConfiguration(BaseSectionConfigurationData):
def __init__(self):
super().__init__(name="tokenizer")
self.... | [
"hilbert.cantor@gmail.com"
] | hilbert.cantor@gmail.com |
3250d5bf3b47890c577273d1cb66ea2b6d61e04c | 1b350aa181df07744d6cee613d93212d82e034c7 | /report/migrations/0002_auto_20201223_1633.py | e8004746f304d81f60e62a2cf2b6c12377e60cbd | [] | no_license | DimasGithub/SIPJASA | 86ca901834cb0be767094bfcd4b474c06a5e275b | 9b9f720471d4946aabec77a9baa3cf336c026b83 | refs/heads/master | 2023-06-14T06:59:57.795734 | 2021-07-12T05:58:18 | 2021-07-12T05:58:18 | 326,883,650 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # Generated by Django 3.0.7 on 2020-12-23 09:33
import django.core.files.storage
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('report', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='report',
... | [
"dim.dim10032000@gmail.com"
] | dim.dim10032000@gmail.com |
af254cb37de0b9b4330b32c98250948e074c8ca8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02844/s734181861.py | 789f95ae626ab4403fea493e65cdb0c605402d31 | [] | 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 | 432 | py | N = int(input())
S =list(str(input()))
a=[]
ans=0
for i in range(10):
for u in range(10):
for y in range(10):
moji=[str(i),str(u),str(y)]
ti=0
for t in range(N):
if S[t]==moji[ti]:
ti+=1
if ti==3:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2b775ad406f172a4ce4856cbad0fa4090b82fb04 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /abEZ5AEPaDBHFjfJG_13.py | f97aa8b266028a05067e1faf02b46d40dcce690b | [] | 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 | 760 | py | """
Create a function that takes a string and returns `True` or `False` depending
on whether or not the given formula is correct.
### Examples
formula("6 * 4 = 24") ➞ True
formula("18 / 17 = 2") ➞ False
formula("") ➞ None
### Notes
* You have to figure out what `a` is.
* Ignore the spac... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ffd39035446f9d6ef479217fabd81676c9d14ff7 | b62563d791382e75f65ec9cc281882c58baa1444 | /account/models.py | 3035f4836fa837d481ada840038f660b01ed4393 | [] | no_license | moses-mugoya/Farmers-Machinery-Management-System | 4fda328f1813041c9a6ae64bf618a7eb0b23d78b | 0221c33e5b5936edee3c32baa98f486c9a4726a4 | refs/heads/master | 2020-05-19T03:59:05.148558 | 2019-05-03T20:06:04 | 2019-05-03T20:06:04 | 184,814,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from django.db import models
from django.conf import settings
from django.contrib.auth.models import User
class Profile(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
address = models.CharField(max_length=50, blank=True, null=True)
def __str__(self):
... | [
"mosesmugoya31@gmail.com"
] | mosesmugoya31@gmail.com |
2383aa867d125f3ddcb44267243e7c2d13d823c8 | ec7ecc5abbdd03fb55f24e89dbbdfa23ebd7b60f | /double string.py | 9d330e8e216d109ba7db19cd2b6938cd5dc0ba01 | [] | no_license | poojithayadavalli/codekata | cd290e009cf3e2f504c99dd4f6de9171f217c6be | 1885c45a277cf1023e483bd77edf0c6edf8d95f3 | refs/heads/master | 2020-07-18T14:06:17.190229 | 2020-05-30T09:00:29 | 2020-05-30T09:00:29 | 206,259,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | y=list(input())
l=[]
flag=False
x=y
for i in range(len(y)):
l.append(x[:i]+x[i+1:])
#print(l)
for i in l:
if i[:len(i)//2]==i[len(i)//2:]:
print("YES")
flag=True
break
if not flag:
print("NO")
| [
"poojithareddyyadavalli@gmail.com"
] | poojithareddyyadavalli@gmail.com |
b4694639bd69eec6ea1b5b79593ec04a7ffb909a | 88fb8127709404ba2f03c21734b75fba2b2825e9 | /network/loss/similarity.py | 8a7e7ea681cd62edabadd73ed20d85b9f6fb7a34 | [] | no_license | mahi97/local-loss | 0a2cfa0c03754c0e1d98e3348e82f9be33453a19 | 57bfedd5f6b4649f219cf57799955ae3b863823c | refs/heads/master | 2023-06-23T07:45:35.731066 | 2021-07-20T09:10:28 | 2021-07-20T09:10:28 | 386,665,308 | 0 | 0 | null | 2021-07-20T00:30:33 | 2021-07-16T14:29:27 | Python | UTF-8 | Python | false | false | 1,734 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
def similarity_matrix(x, no_similarity_std=False):
""" Calculate adjusted cosine similarity matrix of size x.size(0) x x.size(0). """
if x.dim() == 4:
if not no_similarity_std and x.size(1) > 3 and x.size(2) > 1:
z = x.view... | [
"mohammadmahdi76@gmail.com"
] | mohammadmahdi76@gmail.com |
b04ffccf942cbbe37c5719db77f1d2e4a37b6e76 | b9481ebae49cf19de3b5718c69b84f1b59a8e421 | /apps/products/migrations/0013_auto_20151006_1316.py | f3e5d290a069be7c5b3362f08fadf607f5138a55 | [] | no_license | arun-skaria/eracks | 06db7e3715afa2c6992fe09f05d6546520c65459 | 532d8a2be31199e7b78ca5e29944deb0a1400753 | refs/heads/master | 2023-01-08T01:40:10.036585 | 2017-07-13T13:10:42 | 2017-07-13T13:10:42 | 97,123,722 | 0 | 0 | null | 2022-12-26T20:16:17 | 2017-07-13T13:08:12 | HTML | UTF-8 | Python | false | false | 1,532 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0012_auto_20151003_1814'),
]
operations = [
migrations.RemoveField(
model_name='choice',
... | [
"nijap@techversantinfotech.com"
] | nijap@techversantinfotech.com |
268af8e834a6936ed7babc905779bbda441b1ba7 | 0bed1250a4805866f871d037c1bce3e5c8757101 | /MISC/TCS extra/pangram.py | 221fe70479ccbf9566baf586f3811efb71416391 | [] | no_license | Srinjana/CC_practice | 13018f5fd09f8a058e7b634a8626668a0058929a | 01793556c1c73e6c4196a0444e8840b5a0e2ab24 | refs/heads/main | 2023-08-02T05:42:49.016104 | 2021-09-20T15:39:24 | 2021-09-20T15:39:24 | 358,312,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | # Given a string check if it is Pangram or not. A pangram is a sentence containing every letter in the English Alphabet.
# Examples : The quick brown fox jumps over the lazy dog ” is a Pangram [Contains all the characters from ‘a’ to ‘z’]
# “The quick brown fox jumps over the dog” is not a Pangram [Doesn’t contains al... | [
"srinjanap.official@gmail.com"
] | srinjanap.official@gmail.com |
c707cb936afd2868fc0ddd270b0da9766909c20c | bbf874cf4abb20e7ec5c66e808e97ae6f2043c3f | /0x0F-python-object_relational_mapping/model_state.py | 7bb97ecf69b4b0f8b8f152df04033a35b690dd39 | [] | no_license | imperfectskillz/holbertonschool-higher_level_programming | 105fd80c2bea8fbb60eb786ce9019b3f63188342 | 704e99b29125d6449db32b9d52ede443318df620 | refs/heads/master | 2021-09-14T10:44:22.551896 | 2018-05-12T03:38:59 | 2018-05-12T03:38:59 | 113,130,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | #!/usr/bin/python3
"""
Base class State
"""
from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class State(Base):
"""
Class State Table
"""
__tablename__ = 'states'
id = Column(Integer, primary_key=True, nullable=False... | [
"j.choi.89@gmail.com"
] | j.choi.89@gmail.com |
353ce8271b6ff5a78f660ee0a9a7d9d98cb6d386 | c29f7a8c6c9fae126bdef6c43bd1a1e2ebbaf556 | /day11/myFlask01.py | a570a140890714521dbc57c1f3c44b4acd22103a | [] | no_license | wnsgur5303/EducatedPython | 8c95746d821ea2842e624de3ee3e06f5d3ac6416 | bbd956807c3efcff8a4129a9eefa901475b49797 | refs/heads/master | 2023-04-06T18:17:40.914066 | 2021-04-15T07:31:12 | 2021-04-15T07:31:12 | 358,161,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from flask import Flask
from flask import request
from flask.templating import render_template
from flask import Flask, request, render_template, redirect
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello Flask!"
@app.route("/param", methods=['GET','POST'])
def param():
if request.method == "P... | [
"wnsgur5303@gmail.com"
] | wnsgur5303@gmail.com |
56b29c14f1615c70acd6db5106ff2fcb72a49369 | 63276f63ef64064444463a82717e8a75d16093d0 | /usim/_primitives/notification.py | b4c621869f19351d55c4c5d1c2494e6596f9b591 | [
"MIT"
] | permissive | rhdeck/usim | d8f3ed1271b9a6fb1d9a74281c20b9b4af832c9a | 54695a2cdb51ed95616d9e2630a45707e7313f4c | refs/heads/master | 2022-11-08T05:15:03.445508 | 2020-06-29T15:38:26 | 2020-06-29T15:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,170 | py | from typing import List, Tuple, Coroutine, Optional
from contextlib import contextmanager
from .._core.loop import Interrupt, __LOOP_STATE__, __HIBERNATE__
# TODO: add protocol for destroying a notification
class NoSubscribers(Exception):
...
async def postpone():
"""
Postpone a coroutine in the curr... | [
"maxfischer2781@gmail.com"
] | maxfischer2781@gmail.com |
c8e2ed4738a433f2bf4dcfa0a45ad87f60007992 | 94dc06322cac0ea9da6207c152b0b7211804a9fa | /cocos/tests/test_numerics/test_arith/test_binary.py | 10161a1a8873bd8127dc6496cdc48dd05a2ee749 | [
"MIT"
] | permissive | michaelnowotny/cocos | 667d2c0d966debf81869a8121dd3556d1cbeceb1 | 3c34940d7d9eb8592a97788a5df84b8d472f2928 | refs/heads/master | 2021-09-10T06:10:49.447188 | 2021-09-01T15:33:11 | 2021-09-01T15:33:11 | 176,014,832 | 104 | 5 | MIT | 2020-11-05T11:30:01 | 2019-03-16T19:20:15 | Python | UTF-8 | Python | false | false | 2,769 | py | import cocos.device
import cocos.numerics as cn
import numpy as np
import pytest
test_data_int = [(np.array([[1, 2, -3],
[4, -5, 6],
[7, 8, 20]],
dtype=np.int32),
np.array([[2, 1, 5],
[4, 5... | [
"nowotnym@gmail.com"
] | nowotnym@gmail.com |
922484cb8b1a9d1556c1560a5b265bdd34a9f621 | 136c4241843a000020062413ad6ff4d6de8bdf58 | /flexget/plugins/operate/proxy.py | 49c908285e293c7efba7717f2b59ad070ab7664e | [
"MIT"
] | permissive | ebadenes/Flexget-Origin | d580b9d0bcd65999d2bba6a7051ed19713c7792d | abc05c8bb99f5241b509c3e403eb399413a60dac | refs/heads/master | 2021-01-16T19:22:39.003993 | 2013-04-29T17:32:32 | 2013-04-29T17:32:32 | 9,701,035 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | from __future__ import unicode_literals, division, absolute_import
import os
import logging
from flexget import plugin
from flexget import validator
log = logging.getLogger('proxy')
PROTOCOLS = ['http', 'https', 'ftp']
class Proxy(object):
"""Adds a proxy to the requests session."""
def validator(self):
... | [
"chase.sterling@gmail.com"
] | chase.sterling@gmail.com |
511c5660579144e3edf77430190fb25d2ad97851 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /u5WsfTX8rXb2phrNp_21.py | 80e637786714e09b3949b5bfe7ee343bd95969e7 | [] | 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 | 651 | py | """
Kinetic energy can be calculated with the following formula:

* **m** is mass in kg
* **v** is velocity in m/s
* **KE** is kinetic energy in J
Return the Kinetic Energy in _Joules_ , given the mass and velocity. For the
purposes of t... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
29240da84246e9a43d7c37c8482d2dc29f566ab9 | ecd27923efba50703a7bfbfa2ba37a8cc78560ea | /automatic_scraper/config/bid/liriqing/neimenggu_bayanzhuoer_jiaotong_ztb_config.py | 57b408aff01ec04a56a98e1077566f66845d2cb1 | [] | no_license | yougecn/work | fb691b072a736731083777e489712dee199e6c75 | 1b58525e5ee8a3bdecca87fdee35a80e93d89856 | refs/heads/master | 2022-03-03T19:14:17.234929 | 2018-04-17T12:29:19 | 2018-04-17T12:29:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | # coding: utf-8
import time
import logging
import re
logger = logging.getLogger(__name__)
author = "liriqing"
web_title = u"巴彦淖尔市交通运输局"
data_source = 'http://www.bynrjt.gov.cn'
start_urls = [
##政府
#招标
"http://www.bynrjt.gov.cn/ShowClass.asp?classid=2012102617859481",
#中标
"http://www.bynrjt.gov.... | [
"iwechen123@gmail.com"
] | iwechen123@gmail.com |
549b56e9d5ce8cac7c79f2455808cff2a626bfb9 | ac1e944eb288c8b13a0bef0ee7de85ee6d30b4c0 | /django/the-downloaders-master/audio/migrations/0002_auto_20210403_1616.py | cf3abba1884488f2a559c76cb2eb72acc2f68ff0 | [] | no_license | Jayson7/random-projects | 05dd175d00e9bd62cb39973c3439846f641675c8 | cdbebb896a0ecea0de543f16ecf4661e519ec0bb | refs/heads/master | 2023-06-19T01:54:08.339954 | 2021-07-19T01:40:09 | 2021-07-19T01:40:09 | 383,971,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # Generated by Django 3.1.7 on 2021-04-03 15:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('audio', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='audio',
name='File',
field=... | [
"lexxiijoo70@gmail.com"
] | lexxiijoo70@gmail.com |
99fb17683567f8beb00d636ce4a368f46ef6b7cd | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/390/usersdata/338/77405/submittedfiles/ex1.py | fd58363344945842bd95b5e3e55f701f8c4cdb17 | [] | 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 | 325 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = (input('Digite a: '))
b = (input('Digite b: '))
c = (input('Digite c: '))
#COMECE A PARTIR DAQUI!
delta = ((b)**2 - (4*(a)*(c)))
x1 = ((-(b)+(delta)**0.5))/2*(a)))
x2 = ((-(b)-(delta)**0.5))/2*(a)))
if delta >= 0:
print(x1)
print(x2)
else:
print... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
31871b11a1067775e5da892e1ed94aa6382f4bb4 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_None/model_control_one_enabled_None_LinearTrend_Seasonal_Second_NoAR.py | aa428bb2af4aad5ed1b0f6b3b8fa01c756f1722c | [
"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 | 156 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['None'] , ['LinearTrend'] , ['Seasonal_Second'] , ['NoAR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
984220bd21697ab0dab1070f0531b1dd7d9780fb | 603519e0d087967caac72cce854dc7f1dfaa5262 | /bioinformatics armory/CLUS.py | 3b02d6a798de01dfedb838a3d437ba64dad378ea | [] | no_license | Morpheus2112/Rosalind-exercise | e591570521a12905864cb7e7f72b66816da7ae3a | e1047a5f6725e07c8cbf17594bfe4969cbc5d708 | refs/heads/master | 2022-07-25T00:07:17.316099 | 2020-02-16T07:18:21 | 2020-02-16T07:18:21 | 240,848,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 04 12:58:20 2018
@author: Memphis
"""
"""
run Clustal Omega
I use the Phylogenetic Tree to find the answer.
For branch length, check the 'real' length. Then the answer is clear.
"""
| [
"palandswd@gmail.com"
] | palandswd@gmail.com |
71f3b380404147f9adada8756a20c00ae06a5968 | 46183b20d715715731b8ad31fd41b6a2f4bff824 | /src/morphforge/simulation/neuron/simulationdatacontainers/__init__.py | 72d8dfe794b57b01bd2aec05bf588d68028bc9a0 | [
"BSD-2-Clause"
] | permissive | mikehulluk/morphforge | 452265a9880157863a2bc8d236fe5fb4dd3af024 | 2a95096f144ed4ea487decb735ce66706357d3c7 | refs/heads/master | 2021-01-25T10:21:15.574461 | 2015-11-11T21:44:57 | 2015-11-11T21:44:57 | 3,786,364 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are m... | [
"mikehulluk@googlemail.com"
] | mikehulluk@googlemail.com |
c9e1e6b662968c66817abc6316390550d918f004 | cfd230633ecd8b699b515b5e9d687db0b796e4e4 | /cadence/samples/hello_activity_async.py | 6243fb0b248a93bf6fedf5bff1b9beef36661d44 | [
"MIT"
] | permissive | jakubbrzeski/cadence-python | dce4efdab7f5ac4ee825b0b3bb981406be1fc9ea | 26dfa447bfc118fb4cf2bbba321f6115dba73c1d | refs/heads/master | 2021-04-13T20:36:24.271222 | 2020-03-22T10:11:00 | 2020-03-22T10:11:00 | 249,186,406 | 0 | 0 | MIT | 2020-03-22T13:13:13 | 2020-03-22T13:13:12 | null | UTF-8 | Python | false | false | 2,093 | py | import sys
import logging
from time import sleep
from cadence.activity_method import activity_method
from cadence.workerfactory import WorkerFactory
from cadence.workflow import workflow_method, Workflow, WorkflowClient
logging.basicConfig(level=logging.DEBUG)
TASK_LIST = "HelloActivity-python-tasklist"
DOMAIN = "sa... | [
"firdaus.halim@gmail.com"
] | firdaus.halim@gmail.com |
0f3fec97335a5c21230a73c3bb374fcb0d4af0ef | bfaf79f294427f7ff89a8ec0f4b43d40e5d43523 | /everhash/albums/models.py | 9b89f39913c0c7fc090a193a6ed7a981cbbffd4d | [] | no_license | hguochen/everhash | 4e2c857d63f0282e7fc8fb7979e6bcf02733c918 | 45d3f5b66b4fe56899a931c3e87be7ad707c10a8 | refs/heads/master | 2021-01-23T05:35:33.686831 | 2014-07-01T08:52:51 | 2014-07-01T08:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | # std lib imports
# django imports
from django.db import models
from django.db.models.query import QuerySet
from django.contrib.auth.models import User
from django.utils import timezone
# third-party app imports
# app imports
class AlbumManager(models.Manager):
"""
Album model manager class with proxy querysets
"... | [
"hguochen@gmail.com"
] | hguochen@gmail.com |
908ae0debbd5901c3b50ae6af66a6236ea2e681b | 4baf8fcdb301ce034920fecc0a0454634c0a8ac1 | /vihds/ode.py | 461d8979332f3f01d5bbaa5803e2dfc112699194 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/vi-hds | 19a89faf4d95eb46db0b7da13018af2a27ce3627 | 007b40a13342ca5410126ea122585a12fba60137 | refs/heads/main | 2023-08-10T13:57:52.051570 | 2022-11-28T19:09:53 | 2022-11-28T19:09:53 | 186,619,423 | 48 | 15 | MIT | 2022-11-28T19:09:55 | 2019-05-14T12:39:59 | Python | UTF-8 | Python | false | false | 6,007 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
# ------------------------------------
import torch
import torch.nn as nn
import torchdiffeq
from vihds.solvers import modified_euler_integrate, modified_euler_while
from vihds.utils import default_get_value... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
4d51f31d189387774eed152d2df552b829ca007f | d73e2fc86125455c189767438282891a56a74f66 | /backend/wallet/migrations/0001_initial.py | f7a91372d1299869a061b14eb81bf3633da0bde1 | [] | no_license | crowdbotics-apps/calendar-25722 | 35598e6c287306368e7555a3ea0bf536a4b3e43e | 94e3c4fccf3e4353144d8df92d66ba1cc1594c80 | refs/heads/master | 2023-07-05T21:05:14.754055 | 2021-04-16T04:42:06 | 2021-04-16T04:42:06 | 358,361,635 | 0 | 0 | null | 2021-08-03T14:44:03 | 2021-04-15T18:52:18 | Python | UTF-8 | Python | false | false | 6,258 | py | # Generated by Django 2.2.19 on 2021-04-15 22:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
("task_profile", "0001_initial"),
("task", "0001_initial"),
]
operations = [
mig... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
484f9807a8f81c7b3a34d3e891fad6c044a3a6da | 08ddcf2752244f23c86afd9530ed27df8a3ea11c | /backend/course/api/v1/viewsets.py | 48b381d1a5f4a5c62b9f649173dc083457aca938 | [] | no_license | crowdbotics-apps/healthos-22078 | a0c21288656c372b601953ee3633d62d04c50679 | 06718bb43539b63180300164a83ac4e69bcb4558 | refs/heads/master | 2023-01-06T09:04:04.601787 | 2020-10-29T04:18:11 | 2020-10-29T04:18:11 | 308,214,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,400 | py | from rest_framework import authentication
from course.models import (
Recording,
Event,
Subscription,
Course,
Group,
Module,
PaymentMethod,
SubscriptionType,
Enrollment,
Lesson,
Category,
)
from .serializers import (
RecordingSerializer,
EventSerializer,
Subscript... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e4739aab2305a91cd4abe90a2e247b5657bc2342 | 83064dee14ea9fd1e5a5fc6c9c1ff2f3f9f8af9e | /app/snippets/urls/django_view.py | c0d89e0c43f9f45e26ba194dad42184c863fb77b | [] | no_license | Ryanden/Drf-tutorial | 096d5ea41ae819876c65946795bee247e2fdbd5a | 8526255b9f3416bc63569c49be1ab3f9bb564260 | refs/heads/master | 2020-03-23T10:00:41.098213 | 2018-07-26T06:24:57 | 2018-07-26T06:24:57 | 141,420,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.urls import path
from ..views import django_view as views
urlpatterns = [
path('snippets/', views.snippet_list, name='snippet-list'),
path('snippets/<int:pk>/', views.snippet_detail, name='snippet-detail'),
]
| [
"lockstom@gmail.com"
] | lockstom@gmail.com |
7956e960787c7f95ab15213568b3c3f976755086 | 1aba1a1d118d70deeef0c3c9adc375e31f684f97 | /main/urls.py | a8d2b91b98799dee256bba99604d1effad98f95c | [] | no_license | Dekatron322/rest | cd4a1a39a1dac5aed921b0288fb988b9d8ae038e | 6fa4ab7ec71a5307abbb6077f6b7c3c8383c6355 | refs/heads/main | 2022-12-29T14:27:26.160905 | 2020-10-15T09:13:09 | 2020-10-15T09:13:09 | 304,249,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.index, name='index'),
path('about/', views.about, name='about'),
path('reservation/', views.reservation, name='reservation'),
path('contact/', views.contact, name='contact'),
path('specialties/', views.specialties, name='spec... | [
"muritalaibrahim097@gmail.com"
] | muritalaibrahim097@gmail.com |
e2c35c9c617bc44233cf48a816f6b50e57c56f73 | c6d6f62b89e063759f69e179bf7983a13c8180b5 | /src/customers/migrations/0039_countfiles.py | 345ae76baa109620dad5d69d76a65efcdcf44ae3 | [] | no_license | gtsarik/GSI | 170bba1b21b98a44f0fc0f7b9e25bc4b3ae31e9f | e625a189ebb79ebb772f752fbe6230a3e9f68acb | refs/heads/master | 2021-01-21T17:06:34.026805 | 2018-01-25T13:13:59 | 2018-01-25T13:13:59 | 47,333,208 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('customers', '0038_attributesreport_statis... | [
"artgrem@gmail.com"
] | artgrem@gmail.com |
88a1c20cad04443ee696d10f59ba01afb2819587 | 4a8ece747496f0b5e3cc8c37797081c9d4fe9760 | /pyecharts/charts/effectscatter.py | 49c225f05de9e4cbd267deff7be43c6a3db19aff | [
"MIT"
] | permissive | RohitJacob/pyecharts | b1244fae1957f9452b3d0b188e2e6560da2426e5 | 83081195db612cda7ae9e548af2f0372f1dba7a5 | refs/heads/master | 2021-01-01T19:44:22.374223 | 2017-07-28T08:40:15 | 2017-07-28T08:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | #!/usr/bin/env python
#coding=utf-8
from pyecharts.charts.scatter import Scatter
from pyecharts.option import get_all_options
class EffectScatter(Scatter):
"""
<<< 带有涟漪特效动画的散点图 >>>
利用动画特效可以将某些想要突出的数据进行视觉突出。
"""
def __init__(self, title="", subtitle="", **kwargs):
super(EffectScatter, self)... | [
"chenjiandongx@qq.com"
] | chenjiandongx@qq.com |
67e23a11fcd2b2184addce87b95fe8607c32b723 | 65f3ada144f45bd5dbaf3d37ca9366ff54796f0c | /month5/equationsPossible.py | ec70b000f583128d5fae37563412d64c47a27c65 | [] | no_license | BruceHi/leetcode | 43977db045d9b78bef3062b16d04ae3999fe9ba7 | 0324d247a5567745cc1a48b215066d4aa796abd8 | refs/heads/master | 2022-09-22T14:18:41.022161 | 2022-09-11T23:45:21 | 2022-09-11T23:45:21 | 248,240,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,486 | py | # 等式方程的可满足性
from typing import List
# class UnionFind:
# def __init__(self):
# self.parent = list(range(26))
#
# def find(self, i):
# if self.parent[i] != i:
# self.parent[i] = self.find(self.parent[i])
# return self.parent[i]
#
# # 未使用按 rank 合并
# def uoion(self, x, ... | [
"BruceHi@users.github.com"
] | BruceHi@users.github.com |
3a6f823c7c5507bfd23178417471253a3e317036 | 97149b75bd21fb9f82aed657ab5180f765927746 | /ietf/person/migrations/0011_auto_20200608_1212.py | ea64411aa71282370f0fccced42eb3dcff2c7235 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hassanakbar4/ietfdb-filter-repo | c74e7cbfdd5acb8f55ca0fcff6757166582d68db | 67513183b7035014b494bfdd982f9f3990ee0647 | refs/heads/main | 2023-08-25T09:47:28.900431 | 2021-11-09T22:16:24 | 2021-11-09T22:16:24 | 426,613,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | # Generated by Django 2.0.13 on 2020-06-08 12:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('person', '0010_auto_20200415_1133'),
]
operations = [
migrations.AlterField(
model_name='personalapikey',
name='end... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
715397fef4b60c3803b49691804a5a1b8c0a5366 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/hanging.py | 75f5821ace2f5858c76f3f07b38c76480dd18487 | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('hanging', __name__, url_prefix='/hanging')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('repub... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
edb7128586aa182d0e0a36ee341fc4156fc04b00 | b65009a75a71f67db28583c98a2c9fd1881222a9 | /test/model/bank_test.py | e7a0f1c1d04260927b4cb0103d5f97094d165fb8 | [] | no_license | jofemodo/Application | f2d9adfee4f08fac32062bb99093b86ff9be51e9 | a808e2a7b9c8179d877ffa7b64366255430a807d | refs/heads/master | 2020-12-28T23:46:24.926992 | 2016-09-19T11:40:13 | 2016-09-19T11:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | # -*- coding: utf-8 -*-
import unittest
from architecture.BankError import BankError
from architecture.privatemethod import privatemethod
from model.Bank import Bank
from model.Patch import Patch
class BankTest(unittest.TestCase):
@privatemethod
def generate_bank(self, name):
return {
"... | [
"mateus.moura@hotmail.com"
] | mateus.moura@hotmail.com |
9c7c8f7db44bb2e07e3e362bccf0d14fe1bd14c7 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/trainer_v2/per_project/transparency/mmp/alignment/runner/run_reduce_local.py | bb110dbbad1bb865ca8721841b1c94b9e2d78d61 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 501 | py | import sys
from collections import Counter
from trainer_v2.per_project.transparency.mmp.alignment.reduce_local_to_global import sum_summarize_local_aligns_paired
from trainer_v2.per_project.transparency.mmp.when_corpus_based.runner.when_global_align import when_raw_tf
def main():
input_file_path = sys.argv[1]
... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
a12eb3598359daaf1d7fddb121cc0b26ca60bcdf | 5e9b46d0ff7b330954fd770533e4b6b33acea710 | /apps/api/urls.py | 14b0014cec8278c0ffb046731d2674ec50a19b4a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ghuntley/NewsBlur | 19348e65575f66db8443751004fd99e4e41bfa45 | ce52a329c2624a5b596a25416606356cfbfe4d9c | refs/heads/master | 2021-01-20T23:20:41.514433 | 2012-09-21T20:03:38 | 2012-09-21T20:03:38 | 5,935,658 | 0 | 0 | MIT | 2020-01-18T22:49:04 | 2012-09-24T14:24:56 | Python | UTF-8 | Python | false | false | 634 | py | from django.conf.urls.defaults import *
from apps.api import views
urlpatterns = patterns('',
url(r'^logout', views.logout, name='api-logout'),
url(r'^login', views.login, name='api-login'),
url(r'^signup', views.signup, name='api-signup'),
url(r'^add_site_load_script/(?P<token>\w+)', views.add_site_lo... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
b18d5ac3d59e508b8f751ea640ab754c7505079a | 16c1174d8d6c194e01e7172de8249f599e8f9781 | /deluge/plugins/manhole/webui.py | 50ec5d3ad46ae80ea067b7fd78bcc168ee2910bd | [] | no_license | UfSoft/deluge-manhole | 8f6be69b3b8203c863da27254d4b16784d2de9c7 | ebdbe73cb3bbbc1af11bf0f2e33e2037960c7a9e | refs/heads/master | 2021-01-16T17:48:45.532794 | 2011-07-06T10:19:15 | 2011-07-06T10:19:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | #
# webui.py
#
# Copyright (C) 2011 Pedro Algarvio <ufs@ufsoft.org>
#
# Basic plugin template created by:
# Copyright (C) 2008 Martijn Voncken <mvoncken@gmail.com>
# Copyright (C) 2007-2009 Andrew Resch <andrewresch@gmail.com>
# Copyright (C) 2009 Damien Churchill <damoxc@gmail.com>
# Copyright (C) 2010 Pedro Algarvio ... | [
"pedro@algarvio.me"
] | pedro@algarvio.me |
7ae62a6889b6fcd008c804bf53acae52f9aaca9b | 5218af1c8b2e49af7ff37ef1294bf4eb3301487a | /tensorflow_app/rnn/LSTMMnist.py | c4e29dc0834587b82eb1c9b3372dba2f3ccdb16d | [] | no_license | sealire/python-ai | e35e807e06609ceb913b31f5456ade5f3d3d78a5 | 56791446b38837ca4e3b46985be0e4527faf3669 | refs/heads/master | 2020-04-02T20:06:18.761958 | 2019-03-03T14:49:31 | 2019-03-03T14:49:31 | 154,758,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jun 3 06:00:19 2017
@author: 代码医生 qq群:40016981,公众号:xiangyuejiqiren
@blog:http://blog.csdn.net/lijin6249
"""
import tensorflow as tf
# 导入 MINST 数据集
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("../mnist/", one_hot=True)
n_inp... | [
"leesia@aliyun.com"
] | leesia@aliyun.com |
c969f0fb930ffff215fc919310d5648df1607600 | a867ac6ef1ac7b6589778718e2bea7d465c5cabd | /resources/Python/3.2 The Growth of Functions/3.2.22b_matplotlib.py | 5240f173b6ecc73d98755ff903c028569aadd728 | [] | no_license | chris-hamberg/proofs | f33aaf5f6f3e91559519ffe1b16bdebe218b211e | 6be2096dcda5405372134fe718b475cac325cf2c | refs/heads/master | 2020-04-25T07:25:52.054975 | 2019-07-10T01:57:53 | 2019-07-10T01:57:53 | 172,613,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | from math import factorial, floor, ceil, log
import matplotlib.pyplot as plt
import numpy as np
# Name
name = '3.2.22b'
title = 'x'
# Constant witnesses
C1, C2, k = 4, 1, 7
# Hypothetical complexity
f = lambda x: 3*x + 7
ftext = 'f(x) = 3x + 7'
cftext = 'C|f(x)|'
# big Bounding function for f(x)
g = lambda x: x
gte... | [
"chris.hamberg@programmer.net"
] | chris.hamberg@programmer.net |
d64de45901397e3f574fc442194049962e2151e2 | a82aa8430e32eaf62df0f44b20afb0e7d50c3d7b | /ippon/club/authorizations.py | 97e935f9b3bd91f284e955b316064ed9f3cb82c6 | [
"MIT"
] | permissive | morynicz/ippon_back | 314daac99f79247b749dc46d59a645a6eb840263 | dce901bfc649c6f8efbbf0907654e0860606b3e3 | refs/heads/master | 2022-12-20T23:33:10.898738 | 2021-10-17T09:25:39 | 2021-10-17T09:25:39 | 124,851,931 | 0 | 2 | MIT | 2022-12-08T12:37:26 | 2018-03-12T07:43:17 | Python | UTF-8 | Python | false | false | 478 | py | from rest_framework.response import Response
import ippon.models.club as cl
def has_club_authorization(club_id, request):
try:
admin = cl.ClubAdmin.objects.get(user=request.user.id, club=club_id)
is_admin = False
if admin is not None:
is_admin = True
return Response({
... | [
"morynicz@gmail.com"
] | morynicz@gmail.com |
ad453369d5eb6606b7c939575acff9e5df278ce7 | 7d75018c3d8e2ac85ea0f5bbaf52ce5eae9761ca | /project/base/admin.py | a350060c0b2babb6a3c163f4a5f688f43d4688de | [] | no_license | AVS18/sdp-sem5 | fff484331d9b588558b928e557a974f05652adcb | 238dcc7dfe50dda9678383590a43b23bbcd99553 | refs/heads/main | 2023-01-14T01:01:18.297711 | 2020-11-14T13:43:55 | 2020-11-14T13:43:55 | 288,098,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from django.contrib import admin
from .models import Contact,User, Profile,SiteAnnouncement,Message,ContactSupport
# Register your models here.
class ContactRef(admin.ModelAdmin):
list_display = ['name','email','phone']
admin.site.register(Contact,ContactRef)
admin.site.register(User)
admin.site.register(Profile)... | [
"avsadityavardhan18bcs@iiitkottayam.ac.in"
] | avsadityavardhan18bcs@iiitkottayam.ac.in |
ea3799fcbcbbaf45422177557c8d277e08d8f62a | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-mrsp.0/mrsp_ut=3.5_rd=0.8_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=25/params.py | 4f16a00666eb72bbbf6b54b0da86dc853dea6960 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.568167',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 25,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
099cc46a2fbb4762f801570a6401deda6bfb4fc7 | d80c8178dfef933fc6f65bab8e38356b2ac9eea0 | /mymbahome/home/models.py | d4bd7eb2e7301ea0ae595ac417276c3bcd7b8602 | [] | no_license | Mymba/mymba-home | b22a7924ee196f161c0def98b44bd6025772e558 | 41cfac57fedaafbc6e41b5d6cf473e8016536042 | refs/heads/master | 2023-08-10T09:23:48.209793 | 2021-09-21T13:19:37 | 2021-09-21T13:19:37 | 402,787,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | import os
from django.core.validators import ValidationError
from django.db import models
def validador_image_size(image):
file_size = image.file.size
limit_mb = 1
if file_size > limit_mb * 1024 * 1024:
raise ValidationError("A imagem possui %s mb. O tamanho máximo de ve ser de %s mb." % (file_si... | [
"fernando.posser@hotmail.com"
] | fernando.posser@hotmail.com |
ff71d7c0136f6076607b8a3943c9b73a603f5886 | 4144df22392350035a9a24fcbc23fd1c6bce5c12 | /setup.py | 6e1c9a3296c4471d85750db72f5c90b2739d5195 | [
"BSD-3-Clause",
"Adobe-Glyph"
] | permissive | danielgrumer/glyphNameFormatter | 55b6076684bed7ff4cc6e37ce4a0bb0e2ce86a4a | 9a41b3ef02c01cd18afe0232f6e436a2f7379178 | refs/heads/master | 2020-12-11T05:35:47.835908 | 2016-03-19T09:50:33 | 2016-03-19T09:50:33 | 53,578,090 | 0 | 0 | null | 2016-03-10T11:07:31 | 2016-03-10T11:07:30 | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
from distutils.core import setup
setup(name = "Glyph Name Formatter",
version = "0.1",
description = "Generate list of glyphnames from unicode names.",
author = "Erik van Blokland, Frederik Berlaen",
author_email = "erik@letterror.com, frederik@typemytype.com",
url ... | [
"frederik@typemytype.com"
] | frederik@typemytype.com |
faafadb540ed668fcec1a8c265e730161a450ce0 | fce5eda4745578557f7120104188c2437529b98f | /data_hora/data_binary.py | f425d46a4ccfb0aa785821fadc96e6aa7b1a34d6 | [] | no_license | weguri/python | 70e61584e8072125a4b4c57e73284ee4eb10f33b | d5195f82428104d85b0e6215b75e31ee260e5370 | refs/heads/master | 2022-12-01T08:26:36.248787 | 2020-08-23T03:30:46 | 2020-08-23T03:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from datetime import datetime
"""
Converte a data atual para binary
"""
data = bin(int(datetime.now().timestamp()))
#
datetime.fromtimestamp(int(data, 2))
| [
"welguri@gmail.com"
] | welguri@gmail.com |
0eea5ac17d2d63b1045e1405c92ed74489851bd6 | 98e1716c1c3d071b2fedef0ac029eb410f55762c | /part9-Manipulating-DataFrames-with-pandas/No06-Using-map-with-a-dictionary.py | b15828b7491e4d515578e628a360ddd88e32fbe3 | [] | no_license | iamashu/Data-Camp-exercise-PythonTrack | 564531bcf1dff119949cbb75e1fd63d89cb2779f | c72a4e806494f0e263ced9594597dc8882c2131c | refs/heads/master | 2020-07-22T00:23:12.024386 | 2019-04-12T09:24:42 | 2019-04-12T09:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | #Using .map() with a dictionary
'''
The .map() method is used to transform values according to a Python dictionary look-up. In this exercise you'll practice this method while returning to working with the election DataFrame, which has been pre-loaded for you.
Your job is to use a dictionary to map the values 'Obama' a... | [
"beiran@hotmail.com"
] | beiran@hotmail.com |
b297fced63d50a2933e3a7958e361a438cb5e549 | fd326562890d4f1987c384fc7c60374938231222 | /petstagram/petstagram/settings.py | 20f016f80c89944e7dc08bdd5ff45e91d77465eb | [] | no_license | miro-lp/SoftUni | cc3b0ff742218c9ceaf93f05c319ccfeed5bc8a4 | 283d9328537919de49f7f6a301e58593bae9ca2a | refs/heads/main | 2023-08-23T21:22:07.856226 | 2021-08-25T15:10:18 | 2021-08-25T15:10:18 | 318,134,101 | 2 | 1 | null | 2021-08-10T12:51:54 | 2020-12-03T09:03:08 | Python | UTF-8 | Python | false | false | 3,615 | py | """
Django settings for petstagram project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
... | [
"miro_lp@abv.bg"
] | miro_lp@abv.bg |
4dd77a0593fc96b681eb6628428dc183f1774156 | d7ccc0ccfc77cb450a240979a40634b02ae1d1c2 | /djcaptcha/utils.py | fa6c03ed9312a9670a09d9ba8282e21b710c9a51 | [] | no_license | eos87/luciernaga | 880bac1435725b4d5d697c32d7231e2656ac68c5 | 288f22b35b7920a5973b42f0f6abf9bfaf741fc5 | refs/heads/master | 2020-06-03T03:43:48.016663 | 2011-08-31T06:40:08 | 2011-08-31T06:40:08 | 955,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | # -*- coding: utf-8 -*-
import random
CAPTCHA_LENGTH = 5
CAPTCHA_CHALLENGE_FUNCT = 'luciernaga.djcaptcha.utils.code_generator'
CAPTCHA_CHALLENGE_FUNCT = 'luciernaga.djcaptcha.utils.code_generator'
CAPTCHA_NOISE_FUNCTIONS = ('luciernaga.djcaptcha.utils.noise_arcs','luciernaga.djcaptcha.utils.noise_dots',)
CAPTCHA_FILTE... | [
"helmygb@gmail.com"
] | helmygb@gmail.com |
566fc16b7be06240224ad7c5ad582688c5192b12 | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/tensorflow/contrib/opt/python/training/delay_compensated_gradient_descent.py | 17c2bfacfab9640c5bde92b1ee8e75096e12b714 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:499d09317fe599aa02978a758841560c71cdaf89c02ddbb60f7419bf9a4d7c15
size 11386
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
e9c2cb71f141c87c35897c3bcbfd6917250763e4 | d780df6e068ab8a0f8007acb68bc88554a9d5b50 | /python/g1/files/tests/test_locks.py | 83aa990b7007ac809d2f2a6843a1111df8719e8e | [
"MIT"
] | permissive | clchiou/garage | ed3d314ceea487b46568c14b51e96b990a50ed6f | 1d72863d3a5f5d620b170f4dd36f605e6b72054f | refs/heads/master | 2023-08-27T13:57:14.498182 | 2023-08-15T07:09:57 | 2023-08-15T19:53:52 | 32,647,497 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,693 | py | import unittest
import contextlib
import subprocess
import tempfile
from pathlib import Path
from g1.files import locks
try:
from g1.devtools.tests import filelocks
except ImportError:
filelocks = None
@unittest.skipUnless(filelocks, 'g1.tests.filelocks unavailable')
class LocksTest(
unittest.TestCase,... | [
"clchiou@gmail.com"
] | clchiou@gmail.com |
055e1f9f002770776cd23c275fe7f9a45497c8a5 | c3477dc5c9c2886d3e7e0e33a3347ccde756c0b7 | /None Algorithm/012. Integer to Roman.py | 071490f375670115ef358a186a1241f5d8a7b718 | [] | no_license | Nora-Wang/Leetcode_python3 | b8d7b93b61faea6aacd31a0c357c661571f6695c | b4ce775f366ae096d90d2302199a75023b2dcc17 | refs/heads/master | 2023-09-04T07:09:30.162702 | 2023-08-28T13:41:48 | 2023-08-28T13:41:48 | 204,764,804 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000
For example, two is written as II in Roman numeral, just two one's added together. Twelve is wri... | [
"noreply@github.com"
] | Nora-Wang.noreply@github.com |
4f16265dcb87bfcfcffe8b3a190f3e6d355c2561 | e1dd6d9dccb822d472b7f4f9e8446dd9202eb5a1 | /sdk/test/test_io_k8s_api_policy_v1beta1_pod_disruption_budget_list.py | 819e69f44490082c19c3683cc0168c4db469032f | [] | no_license | swiftdiaries/argo_client | 8af73e8df6a28f9ea5f938b5894ab8b7825e4cc2 | b93758a22d890cb33cbd81934042cfc3c12169c7 | refs/heads/master | 2020-05-17T12:11:57.556216 | 2019-07-24T23:23:33 | 2019-07-24T23:23:33 | 183,701,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | # coding: utf-8
"""
Argo API Client
Generated python client for the Argo Workflows # noqa: E501
OpenAPI spec version: v1.14.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import argo.sdk
from models.io_k8s_api_pol... | [
"adhita94@gmail.com"
] | adhita94@gmail.com |
7003a02618ff41ca0417c13349636dd439da610e | b289cc5016d394ff3137e85cf924d9c361c4d223 | /test/通信世界.py | 23442684a7e6e30cb1295ff79d01f766aeaf7f28 | [] | no_license | thundernova/spider | 0b409fccbe21998bb4179794dc46c887e2203608 | ebf5198e5bffa4c1c6282a88245fdf41ec37b86c | refs/heads/master | 2022-12-28T16:28:48.416976 | 2019-09-26T09:43:08 | 2019-09-26T09:43:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,154 | py | #encoding=utf-8
import requests,re,bs4,time,sys,hashlib,uuid,time,json,base64,rsa,platform,datetime,os,urllib
UserAgent = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36'
Cookie = 'JSESSIONID=971488AAFE2DD32BAC02DF1BEF8B8597.tomcat2; Hm_lvt_b8386baf89eebcc... | [
"315909056@qq.com"
] | 315909056@qq.com |
a3b24a171c397406911f6e5ae5d8e9c13548fce4 | 7892b34f96f80b6ac4d2cb89d1f2b7a2f330d1e1 | /tests/test_combine_sorted_lists.py | d6edb600e826fd25d590ffab0389a736125e5596 | [] | no_license | geomeza/assignment-problems | 30a979accbbcac08e43811d861f103d1b9e725dc | 00dbdb172c588452d9da14ffe286146705e8dd84 | refs/heads/master | 2023-03-05T18:37:55.058370 | 2021-02-11T20:30:36 | 2021-02-11T20:30:36 | 279,968,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import sys
sys.path.append('src')
from combine_sorted_lists import combine_sorted_lists
sorted_arrays = [[[1,3,4,5,7],[2,6]], [[1,5,8,9,12],[4,5,9,20]], [[2,2,2,2,2],[2,2,2,2]], [[1,2,3,4,5,6],[2,3,4]]]
for i in range(len(sorted_arrays)):
print('Test',i+1)
print(combine_sorted_lists(sorted_arrays[i])) | [
"replituser@example.com"
] | replituser@example.com |
63de5ec7ae7f43be36a539d53b1383e4d7fbfbc3 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_265/ch27_2020_09_14_20_19_00_627904.py | 6533208c339bfd912a9c0612c64b8bf78f26f19a | [] | 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 | tem_duvida = True
while tem_duvida:
a = input('Tem dúvida? ')
if a != 'não':
print ('Pratique mais')
else:
tem_duvida = False
print ('Até a próxima') | [
"you@example.com"
] | you@example.com |
4a112a6109326c65ff46b656ae4fd62a0acfd25b | 5ce1c0ab1b6147428fc30bcd1698e4d0e53b688e | /1170.py | 6c973208ddc9bd75f91769c4de9ce847a206351d | [] | no_license | junyang10734/leetcode-python | 035b12df3f7d9fc33553140d1eb0692750b44f0a | eff322f04d22ffbc4f9b10e77f97c28aac5c7004 | refs/heads/master | 2023-07-22T11:16:38.740863 | 2023-07-14T00:22:00 | 2023-07-14T00:22:00 | 189,197,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | # 1170. Compare Strings by Frequency of the Smallest Character
# hash / binary search
# https://blog.csdn.net/fuxuemingzhu/article/details/100179198
# hash
# running time: faster than 84.17%
class Solution1:
def numSmallerByFrequency(self, queries: List[str], words: List[str]) -> List[int]:
d = {}
... | [
"junyang2019@outlook.com"
] | junyang2019@outlook.com |
afd542e5cdc7431b02c8411eadacae2a69790c8a | 5dbf8039a281c4ba13e9cb19453a4bace0f2b6bd | /rides/migrations/0009_auto_20161206_1617.py | fae591ade1137e9114a400777210873317a1e20f | [] | no_license | adamtlord/ease | e605d901fc944d48212c4283998e1b4995c09324 | 51e7e0e79e21dad6fa7bdd360cd0a5c0ba3c9d41 | refs/heads/master | 2021-01-18T22:24:12.146024 | 2019-07-30T17:48:14 | 2019-07-30T17:48:14 | 72,482,564 | 0 | 0 | null | 2019-01-02T17:15:51 | 2016-10-31T22:15:56 | CSS | UTF-8 | Python | false | false | 627 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-12-07 00:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rides', '0008_ride_request_time'),
]
operations = [
migrations.AddField(
... | [
"adam.lord@gmail.com"
] | adam.lord@gmail.com |
134d80246fa09563d7138c6f7dacfc6898629845 | 44cf72925aafd9b51423540ad5310b4ae56d822c | /mapping/aspace_agent_mapping/agent_parsers/test_create_corpname_json.py | 6c0250189b5d51b5ca52bd46963ff02da3737122 | [] | no_license | djpillen/bentley_code | 6598e6b5bea3853452e18817a92912a633fb68b5 | ea2bd1f0e3ad8d367d67efa00b7f1bab773a8b07 | refs/heads/master | 2020-12-25T13:12:40.963399 | 2016-04-05T14:41:19 | 2016-04-05T14:41:19 | 52,804,274 | 1 | 0 | null | 2016-02-29T16:06:27 | 2016-02-29T16:06:26 | null | UTF-8 | Python | false | false | 3,074 | py | # coding=utf-8
import unittest
from mapping.aspace_agent_mapping.agent_parsers.create_corpname_json import parse_corpname as parse
class TestParsePersname(unittest.TestCase):
def setUp(self):
self.keys = [u"primary_name",
u"subordinate_name_1",
u"subordinate_name... | [
"wboyle13@gmail.com"
] | wboyle13@gmail.com |
519b9ea91098f50ec26e432ef80654c269cb17d4 | 8d1d910a5616b3a84d0d205727bc39689eeb55bd | /src/edrn/__init__.py | e1490ef6c5952c1ed110904a58e6555ee338f1a5 | [] | no_license | EDRN/edrn.labcas.policy | d7c9e99a709628d1c14ca4d96e75b72c888fa830 | 812a15885be0bf71d25a1250cc659f572ef149b9 | refs/heads/master | 2020-06-05T17:45:04.396183 | 2015-07-12T22:56:41 | 2015-07-12T22:56:41 | 38,981,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | # encoding: utf-8
u'''EDRN — Namespace'''
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
| [
"kelly@seankelly.biz"
] | kelly@seankelly.biz |
90f8a60a8c3573f737fa18442615e9a88a433a61 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_96/1136.py | 2bd1d3af70c1f1a2e4c1606a1c9ade664d3c5176 | [] | 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 | 2,986 | py | import math
file = 'B-large'
#Input
with open(file + '.in', 'r') as input:
T = int(input.readline())
cases = []
for line in input.readlines():
numbers = map(int, line.split(' '))
cases.append({
'surprise': numbers[1], # number of surprising triplets
'min_score': nu... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
62d14e969c1b97140de7a53d112c0e8346b76634 | d0f11aa36b8c594a09aa06ff15080d508e2f294c | /leecode/1-500/401-500/437-路径总和Ⅲ.py | 9551666eedcdebcc122ab9938055a039f076271f | [] | no_license | saycmily/vtk-and-python | 153c1fe9953fce685903f938e174d3719eada0f5 | 5045d7c44a5af5c16df5a3b72c157e9a2928a563 | refs/heads/master | 2023-01-28T14:02:59.970115 | 2021-04-28T09:03:32 | 2021-04-28T09:03:32 | 161,468,316 | 1 | 1 | null | 2023-01-12T05:59:39 | 2018-12-12T10:00:08 | Python | UTF-8 | Python | false | false | 586 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def pathSum(self, root: TreeNode, sum: int) -> int:
if not root:
return 0
return self.co... | [
"1786386686@qq.com"
] | 1786386686@qq.com |
b61a72a55b3d3ca4f8e750a36a8cb437d1411657 | c26ee38f974ff36646a6225ea20c63d027d97622 | /tag/Trie/1268. Search Suggestions System.py | be264860e538430a1c92b30c439e17e5637145cc | [] | no_license | khlee12/python-leetcode | 78416d1512831eb762b3700461b8a2b492d7d5b5 | c0801d9d40d454213e29a42286d6e5fdbc3f6c3c | refs/heads/master | 2021-07-19T13:25:29.094937 | 2020-05-11T11:02:07 | 2020-05-11T11:02:07 | 158,390,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,924 | py | '''
1268. Search Suggestions System
Medium
Given an array of strings products and a string searchWord. We want to design a system that suggests at most three product names from products after each character of searchWord is typed. Suggested products should have common prefix with the searchWord. If there are more than ... | [
"noreply@github.com"
] | khlee12.noreply@github.com |
5bdcddbff921b412b47d78e7cbf8ce9b013052f3 | 0dee7cc69ae44e30c5cb372eb17f2e469635056b | /holbertonschool-higher_level_programming/0x0C-python-almost_a_circle/models/base.py | 9fe9cfc3d738ceb951af27fc1fddc8e764fac537 | [] | no_license | HausCloud/Holberton | 00cd25b4a489041e041551ea8f87674d53f43713 | b39c5978698e02b9e746121d6c55d791b73e6d9b | refs/heads/master | 2022-12-13T01:06:18.968047 | 2020-09-05T18:23:00 | 2020-09-05T18:23:00 | 293,129,232 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,932 | py | #!/usr/bin/python3
""" This is a module. It contains .. a class. That is it."""
import json
class Base:
""" the Base class
Args:
id: identity of class
Attributes:
__nb_objects: number of class objects created from Base
"""
__nb_objects = 0
def __init__(self, id=None):
... | [
"hauscloud.me@gmail.com"
] | hauscloud.me@gmail.com |
e55cb18c335a389601680ec33db2f563b10add5d | 34ee54332afe5fa6198624bead95a9ceb2af0958 | /Exe2_numeros_ordem_inversa.py | 2f3a1c895c5cf3bcc5da684dc5f920b9a62f2d36 | [
"MIT"
] | permissive | lucaslk122/Exercicios-com-lista | fbcb46011bdfa4b0c33fb3887d1c6d86704d9244 | 3e614a865f93afa2ff6a32f8da04abb0c0716cdc | refs/heads/main | 2023-01-04T17:59:57.690476 | 2020-10-26T19:33:37 | 2020-10-26T19:33:37 | 305,730,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | lista = []
for i in range(10):
real = float(input("Digite um numero: "))
lista.append(real)
print(lista)
print(lista[::-1])
| [
"71664028+lucaslk122@users.noreply.github.com"
] | 71664028+lucaslk122@users.noreply.github.com |
2aef52df684164732cddec9f2698e2004d61263c | 7f74c236881176d673fd5b8bed6e18283232deca | /modules/boost/simd/ieee/doc/ldexp.py | a9656f6324997c8b0c83b0e21020f6e231a2f534 | [
"BSL-1.0"
] | permissive | pesterie/nt2 | 57a3cbe4e3631d5eacbd1703b79af769f40b13f1 | 94e4062794466136987bf0afd9a94d43275b13cf | refs/heads/master | 2021-01-18T06:52:52.070291 | 2011-08-31T12:04:16 | 2011-08-31T12:04:16 | 1,566,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | [ ## this file was manually modified by jt
{
'functor' : {
'module' : 'boost',
'arity' : '2',
'call_types' : ['T', 'iT'],
'ret_arity' : '0',
'rturn' : {
'default' : 'T',
},
'simd_types' : ['real_'],
'type_defs' : ['typedef ... | [
"jtlapreste@gmail.com"
] | jtlapreste@gmail.com |
96bf5da1ec6edac07375a28e2f671b2c6337642a | 153d134935280b55f238c6c22f9281b147b69d93 | /express/migrations/0003_auto_20190519_1031.py | 90de64867ecc6e94bd581658fc1c44a02122ea17 | [] | no_license | uniquehou/reward | e5525a7e29a9d9811f6158c9cde20e0805e42ac2 | 50f8c0207ac1975001577ee129e6d057581dc6b4 | refs/heads/master | 2020-05-17T18:43:43.636301 | 2019-05-23T01:50:00 | 2019-05-23T01:50:00 | 183,893,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2019-05-19 02:31
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
... | [
"919863463@qq.com"
] | 919863463@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.