blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e5fc3b96e27fd580d60715aa2a9faae4dfa0113f | 7f7ba9fa96eb7741e3a7956aae439802376099d1 | /excel_sync/db/models/mixins.py | 27dc97215b789f0bf7f1c8a652037d36b68db776 | [
"BSD-3-Clause"
] | permissive | FriedrichK/django-excel-sync | bd34911960fab6580985378da7427f7823163bf7 | 3e649231dcdd26b29278dc2e9563ad0ab67d9f1c | refs/heads/master | 2021-01-02T14:46:34.420031 | 2014-04-21T09:59:47 | 2014-04-21T09:59:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | from excel_sync.db.models.fields import SpreadsheetMixin
class SpreadsheetModelMixin:
@staticmethod
def import_spreadsheet_data(klass):
source = get_spreadsheet_datasource(klass)
fields_with_spreadsheet_metadata = get_fields_with_spreadsheet_metadata(klass)
field_settings = build_field... | [
"friedrich@cartogami.com"
] | friedrich@cartogami.com |
17044f509ab7656dd2a0f90537d7b43bd6c089c7 | b026d650dd82704c89e4dd1ead291985758340f5 | /docadmin/uploadfile/uploadFileController/uploadFileController.py | 65f3d871b537c1991aea1b762d84e1b934ada82a | [] | no_license | RiteshM1993/document-management-system | 9c253405f62f501a5dcd463cbe47a95305f809cb | 31c142bfa9450c2fd91f7909a400d575d3e5d305 | refs/heads/master | 2020-04-08T09:19:14.702209 | 2018-11-26T19:04:54 | 2018-11-26T19:04:54 | 159,217,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | import json
from rest_framework.decorators import api_view
from django.http import HttpResponse
from django.core.serializers.json import DjangoJSONEncoder
from docadmin.uploadfile.uploadFileService.uploadFileService import docsUpload
import time
@api_view(['POST'])
def savepdf(request):
pdfFile = request.FILES['f... | [
"riteshmahajan302@gmail.com"
] | riteshmahajan302@gmail.com |
d0d69744673378fb17a20fe4185d3a6f630df2a7 | e278ebf57ad195d6790c02f255a4aef872b82761 | /store/migrations/0010_auto_20170305_1808.py | cceb45739aebadc1c9746211614fa2251a32ddcd | [] | no_license | Georgerowberry/ArthursAntlers-WebShop | 97c63abcffed12dacc4adddbf49c0e70a691b403 | 74787f0f4a29d21956d9231f7efa816fcf111c01 | refs/heads/master | 2020-05-20T18:00:25.267667 | 2017-09-16T11:26:01 | 2017-09-16T11:26:01 | 84,499,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-06 02:08
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('store', '0009_auto_20170305_1805'),
]
operations = [
migrations.RenameModel(
... | [
"george.rowberry@gmail.com"
] | george.rowberry@gmail.com |
2657d73570f09dbfee9cfc8dbda13278d9b56ded | b33515c51737edef52d8e578118b240e198b404b | /Refactoring/utils/deprecatedWarn.py | be494bc79ce1e7dc1d8bb884a15ecd4568f137b8 | [] | no_license | Panlq/NoteBook | 8e82419b3bf92872257697775610cd5c95beae40 | 0bc0b9605db750787bf0ef629f52f6f8df759052 | refs/heads/master | 2021-07-08T02:46:15.486364 | 2020-07-30T05:08:45 | 2020-07-30T05:08:45 | 164,087,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py |
"""
警告消息通常写入 sys.stderr
警告过滤器可以用来控制是否发出警告信息, 是一些匹配规则和动作的序列
reference: http://blog.konghy.cn/2017/12/16/python-warnings/
"""
import warnings
import functools
def deprecated(func):
"""This is a decorator which can be used to mark functions
as deprecated. It will result in a warning being emitted
when t... | [
"18960311163@163.com"
] | 18960311163@163.com |
ff93f4c4e03c2723185097e82af8b56b2598c151 | 16be53c2dc4eee5602d3f7a38c599917009fb802 | /account/migrations/0002_remove_profile_address.py | 02e0e499ef82da7cbf16355972f4610131d12c84 | [] | no_license | surajit003/mubango | 35f37fb992782ae168a407922b494c3be0605e00 | 603e13cd07417d200330ca7292d9032af568a0b9 | refs/heads/main | 2023-03-28T07:59:57.967026 | 2021-03-27T09:34:46 | 2021-03-27T09:34:46 | 315,040,701 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | # Generated by Django 3.0.4 on 2021-01-12 21:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("account", "0001_initial"),
]
operations = [
migrations.RemoveField(
model_name="profile",
name="address",
),
]
| [
"surajit@poweredbypeople.io"
] | surajit@poweredbypeople.io |
e8e45e3e8945903fca914b84a2bd036df033d91b | 96c432c6d1083ca664111fd9b90161f077b43fbc | /001 - valid binary search tree/my_solution_01.py | 24d59df9d88ae4737a686570c6b5a017f218e93c | [] | no_license | rafa761/tech-series-algorithms | e9a5c1e9f99f70c50b88b997a56b7b37dfae4f12 | 1f88410f1c4f943c4af300e714b383c5a93588cd | refs/heads/master | 2022-12-01T23:12:45.909146 | 2020-08-06T11:20:49 | 2020-08-06T11:20:49 | 285,551,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | def print_tree_traverse(root):
""" Just to print the tree, not used in the solution"""
current_level = [root]
while current_level:
print(' '.join(str(node) for node in current_level))
next_level = list()
for n in current_level:
if n.left:
next_level.append(n.left)
if n.right:
next_level.append(n.... | [
"rafael.antunes@terceiroslinx.com.br"
] | rafael.antunes@terceiroslinx.com.br |
a4d09a2daee01e432a211c7250828e7db3f6b2a1 | 250538d7e39c4757e90afa2aae91e5141ac4c1bf | /task/chapter3_game.py | f02594d94399dfc1eda517c9e18a5afaa7cdc9f7 | [] | no_license | SakaiMasato/pythonTest | e9c518d43cf19b2cf5003475830b3f5d3d7b7518 | a653f1f2870a37212457f5cdf8188be097ed78da | refs/heads/master | 2020-05-30T04:39:02.024203 | 2020-01-09T10:17:00 | 2020-01-09T10:17:00 | 189,543,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
' guess number game '
__author__ = 'Bob Bao'
try_number = 7
def game_logic(num):
global try_number
index = 0
while index < try_number:
print('please guess the number, range from 1~10: ', end='')
guess_number = int(input())
if (guess_n... | [
"bob.bao@ericsson.com"
] | bob.bao@ericsson.com |
a1707473ebf79ec49b00af1832a855ac2897e02f | 8b2d1894d99c332950362042d2a12c138ab696fa | /main.py | b85bf401d3262e63b069a477e9fc0c4599b810a1 | [] | no_license | bijoyh1/assignment3 | 0a1f50ad43fd225abd499a9dde45c37c8b90372d | 3a5b08f5797e0cd5afc1c3ce6d3693e9b892e5ca | refs/heads/main | 2023-04-10T05:19:26.767289 | 2021-04-12T02:15:59 | 2021-04-12T02:15:59 | 357,005,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | import math
def feistel(input, k):
L0 = input[:4]
R0 = input[4:]
L1 = R0
R1 = exclusiveOr(L0, F(R0, k))
temp = R1
R1 = L1
L1 = temp
return L1 + R1
def exclusiveOr(a, b):
xor = ""
for x in range(4):
if a[x] == b[x]:
xor = xor + "0"
else:
... | [
"noreply@github.com"
] | bijoyh1.noreply@github.com |
6435cc8890aee49f3317639662d17b1144870d8f | 0a96c45ea627fea8aacce176c30d8c4e3e31d798 | /trapezoid.py | 0d9bbc4dc73b523226cbc533d425602c77793e27 | [] | no_license | aomsk/GeoCal | 6e87407e81a43c30e0e43acba3f67d5dade0e649 | 63245a8453c052231099eff816bac85373377c27 | refs/heads/master | 2023-03-19T01:29:53.773751 | 2019-12-14T11:28:03 | 2019-12-14T11:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | import turtle, re
import tkinter as tk
from math import pi, sin, asin, radians, degrees, sqrt, acos
root = tk.Tk()
screen = turtle.Screen()
root.title("Geometric Shape Calculator")
w_px = root.winfo_screenwidth()
h_px = root.winfo_screenheight()
#Estimation of the amount of pixel in a 1 cm line in any direction
px_cm =... | [
"50584701+R0C0KY@users.noreply.github.com"
] | 50584701+R0C0KY@users.noreply.github.com |
299477b4f7e66032e1ed0e16cfad287e693edfdb | 59d7b904615c7a387b99d180c144d16ac8d2fd43 | /e_beautiful_strings.py | 667d93902ed65cca39b8a78ffaa208f38356c99a | [] | no_license | gtenorio/Code-Eval-Challenges | 03b8365d112eb594dde2d3a021cdcb7b212ac33f | 670c223d6029bb5ce1d38f3c56a8c1ca6a3dd2ca | refs/heads/master | 2021-01-20T02:15:59.847947 | 2015-01-07T03:08:27 | 2015-01-07T03:08:27 | 26,451,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | __author__ = 'Gio'
#Code Eval: Beautiful Strings
import sys
test_cases = open(sys.argv[1], 'r')
for test in test_cases:
lib = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
test = test.lower()
total = 0
mult = 1
for i in test:
s = ord(i)
if s >= 97 and s <= 122:
s -= 97
lib[s] += 1
lib = sorted(... | [
"gtenorio868@gmail.com"
] | gtenorio868@gmail.com |
7111f32084156c05493026e38ec44b185622bb09 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_198/ch73_2019_09_03_19_31_47_647277.py | 33be594abb99268b65cbb1ae31306829a17afa62 | [] | 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 | 126 | py | def remove_vogais(palavra):
return palavra.replace('a','').replace('e','').replace('i','').replace('o','').replace('u','') | [
"you@example.com"
] | you@example.com |
0589f953505604a5789640d057e5e0234c0d7c2c | 6dda9390f5f7a1063a295a58a3303ec03239774c | /counting-characters/counting.py | 8168c0cfb74257de639a70f4af034501de35dfc9 | [] | no_license | vinshe1169/build-a-blog | 32d70da1056bae5228d85393d1bdd5dcb1d6ecb1 | ca85d7f14bc81a5226438f5552402d3b9b785ee8 | refs/heads/master | 2021-01-11T14:23:51.601312 | 2017-02-23T14:09:32 | 2017-02-23T14:09:32 | 81,372,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc accumsan sem ut ligula scelerisque sollicitudin. Ut at sagittis augue. Praesent quis rhoncus justo. Aliquam erat volutpat. Donec sit amet suscipit metus, non lobortis massa. Vestibulum augue ex, dapibus ac suscipit vel, volutpat eget massa. Donec nec... | [
"vinman99@gmail.com"
] | vinman99@gmail.com |
417a581449ba402868c72f98069ca79db1a6fbc1 | 461a52411199fd05853ea7044ce0170226e70049 | /scheduler/post_scheduler/migrations/0002_schedule.py | 51842ed5b5838e5d9175c3eb007ce414219ccc9e | [
"MIT"
] | permissive | Awinja-j/Social-Media-post-Scheduler | 46a6c1306c672bd689f6b9c6c51abe0c7da209d1 | 4f95b4bb2ca3f890d3e22bcda859b94ebc483b87 | refs/heads/main | 2023-08-25T19:34:56.066898 | 2021-10-29T12:31:40 | 2021-10-29T12:31:40 | 339,370,705 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | # Generated by Django 3.2.8 on 2021-10-28 20:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('post_scheduler', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Schedule',
fields=[
... | [
"ingari61@hotmail.com"
] | ingari61@hotmail.com |
2398d673bdef1187105868a48ac3e87d4555d20f | 3c01d7928029e74a19d646f5a40b3bf099b281a7 | /typeshed/stdlib/mimetypes.pyi | 5a3ec91acbcdb71fb39f59656555c7233be0d66e | [
"MIT"
] | permissive | arpancodes/protectsql | f3ced238c103fca72615902a9cb719c44ee2b5ba | 6392bb7a86d1f62b86faf98943a302f7ea3fce4c | refs/heads/main | 2023-08-07T16:33:57.496144 | 2021-09-24T19:44:51 | 2021-09-24T19:44:51 | 409,894,807 | 0 | 1 | MIT | 2021-09-24T19:44:52 | 2021-09-24T08:46:02 | Python | UTF-8 | Python | false | false | 1,554 | pyi | import sys
from _typeshed import StrPath
from typing import IO, Sequence, Tuple
if sys.version_info >= (3, 8):
def guess_type(url: StrPath, strict: bool = ...) -> Tuple[str | None, str | None]: ...
else:
def guess_type(url: str, strict: bool = ...) -> Tuple[str | None, str | None]: ...
def guess_all_extensio... | [
"arpanforbusiness@gmail.com"
] | arpanforbusiness@gmail.com |
18c97960a1dea255841b8afaa63e1c9984fe45ed | 034158bee04f7b03dc3dcf53dfed4bdfe6923121 | /gbdxtools/__init__.py | 5d52720ad43871087ffc77fcc9fe9e2a819f41dd | [
"MIT"
] | permissive | SeanFoley123/gbdxtools | 3141de4884b4276366046c28c4f7e583438354a8 | aa82a5c684f2dd959b4be93cc038dc5d0da7c392 | refs/heads/master | 2021-01-19T06:24:14.144019 | 2017-04-06T18:21:10 | 2017-04-06T18:21:10 | 87,461,645 | 1 | 0 | null | 2017-04-06T18:26:53 | 2017-04-06T18:26:53 | null | UTF-8 | Python | false | false | 71 | py | from __future__ import absolute_import
from .interface import Interface | [
"nate@rickl.in"
] | nate@rickl.in |
8be67a4123d82e52566b9ddbcd25f0c0e664ead7 | f9fe197a099f92b6467775e4584b19783ac0a835 | /阿里云服务器上传文件/python/momosite/pay/models.py | 49c69d681b2d5877156951e13e7e1aa9ac1ab3e0 | [] | no_license | MoMoLT/Mo- | 2b7d9ec2b123a56e1f6816544f8839d835d7899c | 4a26e232cbe6c83cc09cffe3ca85117cd2c87c61 | refs/heads/master | 2021-02-06T17:29:02.502936 | 2020-02-29T09:39:15 | 2020-02-29T09:39:15 | 243,935,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | from django.db import models
# Create your models here.
# 一张订单表, 两张充值信息表
class OrdersInfo(models.Model):
订单号 = models.CharField(max_length=100, unique=True)
充值类型 = models.CharField(max_length=20)
充值金额 = models.FloatField()
创建时间 = models.DateTimeField(auto_now_add=True)
支付状态 = models.BooleanField(de... | [
"957869702@qq.com"
] | 957869702@qq.com |
b4891a5b540f1bd8e420aa57dab3d7ec38f825b6 | 232d0a99df3ad03ce7811b4e96ebb6982cc0f865 | /aggregate.py | 396c21a0343add8ef7e949e48692f0f5f77f2ad8 | [] | no_license | tomalrussell/aggregation-case-study | 9e6db17e3a43f436dfce8cb84e608cb61b607239 | d23217d94e61d89043baffcfd157883fc474b8ae | refs/heads/master | 2020-06-23T03:46:44.340892 | 2016-11-24T11:23:43 | 2016-11-24T11:23:43 | 74,666,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,478 | py | from __future__ import print_function
import argparse
from collections import namedtuple
import fiona
from shapely.geometry import shape
from rtree import index
def proportion_of_a_intersecting_b(a, b):
intersection = a.intersection(b)
return intersection.area / a.area
ShapeWithValue = namedtuple('ShapeWithVa... | [
"tomalrussell@gmail.com"
] | tomalrussell@gmail.com |
846b95f2235f52cf23529b41d7ec6866aa1da566 | 8fdb93b6dfddf3d67281523fb10c7da52b5b501b | /testing/nested_patch/mocked_my_module.py | ebbe62715b4ae57d46f451d6158a306bd7a6e1e6 | [] | no_license | ishtiaq2/python | e40a0f8e7ab151d5dc460513f267a943d9ec3b9f | dc96a63f2a3755634752267182950dfaf515b698 | refs/heads/master | 2020-12-19T23:01:39.510101 | 2020-04-27T15:46:10 | 2020-04-27T15:46:10 | 235,876,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | def mocked_db_get_data():
return {
'Car': 'BMW'
} | [
"ishtiaq2@kth.se"
] | ishtiaq2@kth.se |
3b8168d0607de48f6eda586dccf7a0aa45bfa983 | 038a9ab71cb7d4283f8bda1a881a6ea0926aff6f | /questions/migrations/0003_auto_20190514_0120.py | 08456216eed7c88f56549947b86ecb255b07f217 | [] | no_license | mikeaerickson/interviewrepo | ff35e8b20c6152fde19cb7e1927d0a5f90d7b601 | 593bf30f20f124d0369334d0e56ff8a77761d8dd | refs/heads/master | 2023-05-01T16:51:26.763552 | 2019-06-30T22:21:00 | 2019-06-30T22:21:00 | 194,566,649 | 0 | 0 | null | 2023-04-21T20:33:10 | 2019-06-30T22:22:41 | Python | UTF-8 | Python | false | false | 458 | py | # Generated by Django 2.2.1 on 2019-05-14 01:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('questions', '0002_auto_20190512_2248'),
]
operations = [
migrations.AlterField(
model_name='question',
name='belongs... | [
"michaelanderickson@gmail.com"
] | michaelanderickson@gmail.com |
ba683fa2671b6bcd12fa5fce3c7356675c5f5a60 | db697271157368eb39ee9d9479d0c6a7eb9d06dd | /virtual/bin/easy_install | f22e90e735bfeae51bc3a727bc7716715ebadcd1 | [
"MIT"
] | permissive | amoskipz/instagram | 5edaf03fd784c44fb325dc9f294fab41acc7bc4c | 120e5ef1213567297689e04d5b8620508ce18fea | refs/heads/master | 2023-04-09T13:09:27.379801 | 2021-04-10T17:29:14 | 2021-04-10T17:29:14 | 352,740,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | #!/home/moringa/Desktop/amoz/amosinstagram/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"oduorthomas14@gmail.com"
] | oduorthomas14@gmail.com | |
720cdd79d38734149af95e62f0400a403dd01f09 | f747153527426d40e999ae9e1c8c7f17d74eb408 | /ML/pa2/KNN.py | bed265e545bdf42732c933aa080c118944713d4e | [] | no_license | philipz1/ML | 927ed7b1f38034321af405af0d837d50b89e8cb2 | 9198ca6f6503e378610a715cbdda88c87050c930 | refs/heads/master | 2021-03-08T19:26:15.313846 | 2017-06-01T04:11:29 | 2017-06-01T04:11:29 | 56,735,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | import pandas as pd
import numpy as np
import time
def dist(p1, p2):
'''
uses the distance squared metric
'''
J = 0
for i in range(len(p1)):
J += (p1[i] - p2[i]) ** 2
return np.sqrt(J)
def knn(data, k):
'''
returns a dictionary of dictionaries where key: key: distance between keys
'''
n,... | [
"noreply@github.com"
] | philipz1.noreply@github.com |
7649515b25b4617c91af001997ef656027e0ba82 | fea1a96ae970490ff582b031b6c78aae38829cb5 | /.history/app_20210831071818.py | 51d29ef19efdab19aa229919d2dac37dcc1f8313 | [] | no_license | endomasato/flask_hayatasu | 03fc77be9e44dc50d796640c4c1fd84d5ea03074 | 08f933b920c909d43f3b87d2638e6963d577cb6f | refs/heads/master | 2023-08-01T06:28:54.605717 | 2021-09-04T13:36:57 | 2021-09-04T13:36:57 | 400,898,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | from datetime import datetime
from flask import Flask, render_template, request, redirect
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///todo.db'
db = SQLAlchemy(app)
class Post(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db... | [
""
] | |
0a33b5f374481795feb5819c3626f7fee2d520e3 | a5cdd65d990693950410502575ff6ceb5a8bae46 | /Main Program (зубр, ценовое позиционирование)/zavedis AKOM/zavECO.py | 0bc612f62437c3ee11d04c58cd15bec5c3db5db9 | [] | no_license | AlexCruel/Web-Scrapping-Application | be696ce1d3ce5b158c90e138857537689ac9fe0b | 8e971cc745be9b38f2d36c189e0f18391f628295 | refs/heads/master | 2023-07-10T21:46:28.083003 | 2021-08-10T17:58:59 | 2021-08-10T17:58:59 | 276,294,591 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | from main import Site
zav59 = Site('https://www.rimir.by/', 'https://zavedis.by/vibor-po-marke-akb/akkumulyator-rusbat-6st-75-evro')
find_str = "find('div', class_='product-price-old').get_text(strip=True)"
zav59.parser('div', 'product-price-old', find_str, 'G14')
zav59 = Site('https://www.rimir.by/', 'https://zavedi... | [
"sasha.karpenkov.34@gmail.com"
] | sasha.karpenkov.34@gmail.com |
7206562dcaae23b8ffd1ffd4ad6f50ea934181ac | 066d6c62f7271e99694a8e54190d192b9f73df8b | /level1/행렬의 덧셈.py | d510eae418f7cf6bd045212d0f026002547becf8 | [] | no_license | chankyu11/programmers | ebb904461a2585ac298c9d00d14973e472b7a36d | dfa8b1dd3948db66c404f8ccc15ce1c0804a2bb2 | refs/heads/master | 2023-07-12T02:38:45.808813 | 2021-08-23T09:08:47 | 2021-08-23T09:08:47 | 381,300,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # https://programmers.co.kr/learn/courses/30/lessons/12950
def solution(arr1, arr2):
answer = []
for i, j in zip(arr1,arr2):
tmp = []
for m in range(len(i)):
tmp.append(i[m]+j[m])
answer.append(tmp)
return answer
def solution(arr1, arr2):
answer = [[c + d for c, d ... | [
"lck1130@naver.com"
] | lck1130@naver.com |
0571f647ae3ab197917c302a532b8449f7afe44d | f504253210cec1c4ec6c3ea50a45564db7d6cd7f | /scripts/parse_pyi.py | d4b35524274e7a8a2fb6d2ba5b401434ca6486d5 | [
"MIT"
] | permissive | phil65/PrettyQt | b1150cb4dce982b9b8d62f38f56694959b720a3e | f00500d992d1befb0f2c2ae62fd2a8aafba7fd45 | refs/heads/master | 2023-08-30T21:00:08.905444 | 2023-08-17T12:24:45 | 2023-08-17T12:24:45 | 177,451,205 | 17 | 5 | MIT | 2020-08-15T22:21:18 | 2019-03-24T18:10:21 | Python | UTF-8 | Python | false | false | 1,049 | py | import pathlib
import sys
from typed_ast import ast3
def add_parents(tree):
for node in ast3.walk(tree):
for child in ast3.iter_child_nodes(node):
child.parent = node # type: ignore
def find_enums(tree):
for node in ast3.walk(tree):
if not isinstance(node, ast3.Assign):
... | [
"philipptemminghoff@googlemail.com"
] | philipptemminghoff@googlemail.com |
59de5f4d684f1fcbb412201731cec5a17abe4081 | 08f42d68aaea64c986a532b86562365f2a6fe3b5 | /src/addlayouttable.py | 3e32ab12ae34fdcd43ccd0ad5cf36d01a2dfbff6 | [
"MIT"
] | permissive | sos82/micropython-microbit-v2 | da65da0c4ae8a3e2189bb598f75fec43d4628007 | a44573c623a9e935257c8db51a3f0c2e75ea10aa | refs/heads/master | 2023-07-19T07:03:40.101099 | 2021-09-11T15:13:42 | 2021-09-11T15:13:42 | 402,835,132 | 0 | 0 | MIT | 2021-09-11T15:13:43 | 2021-09-03T16:35:34 | null | UTF-8 | Python | false | false | 7,683 | py | #!/usr/bin/env python3
"""
Add a flash layout table to a hex firmware for MicroPython on the micro:bit.
Usage: ./addlayouttable.py <firmware.hex> <firmware.map> [-o <combined.hex>]
Output goes to stdout if no filename is given.
The layout table is a sequence of 16-byte entries. The last entry contains the
header (... | [
"damien@micropython.org"
] | damien@micropython.org |
af3d10e72f46f60903f229b8c409d1372fd9b5e8 | b282ccdc65f969e45b36630f9008f54d2087b9c1 | /thrift-0.11.0/test/py/gen-py-slots/ThriftTest/ThriftTest.py | 3f67ce151c41cbf8af305c8a581a5e09db97f816 | [
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"FSFAP",
"Apache-2.0"
] | permissive | jdencala10/Proyecto-Distribuidos | 36727fb314159393eda86385d8908bb3ae70a549 | 5b34ece54cc9e8240e9f0106ffbf76449fea507d | refs/heads/master | 2020-03-24T02:26:52.556503 | 2018-08-23T07:44:08 | 2018-08-23T07:44:08 | 142,375,884 | 1 | 0 | null | 2018-07-26T04:59:33 | 2018-07-26T02:10:13 | Python | UTF-8 | Python | false | true | 160,877 | py | #
# Autogenerated by Thrift Compiler (0.11.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py:slots
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursiv... | [
"lufezuro@gmail.com"
] | lufezuro@gmail.com |
7d1848df9c7503861b5d6999a25c43feae4a4c14 | d6b984433d6674f6f31a441726659ec65d2d7eb1 | /teco/dproj/piel/models.py | 1062722c5e1a327b1715ffe0af4fe0417ba2c564 | [] | no_license | jjconti/twisted-examples | f0de8dc7a3b2b97c9f9f81fcac969805a7573167 | badbec8196164919b773b427f1130bf432ea98f4 | refs/heads/master | 2016-09-06T03:13:53.252380 | 2011-03-09T20:29:56 | 2011-03-09T20:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,541 | py | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# Feel free to rename the models, but don't rename db_table values or field names.
#
# Also note: You'll have to ... | [
"jjconti@c17424ab-9666-0410-ad2c-99304602335c"
] | jjconti@c17424ab-9666-0410-ad2c-99304602335c |
053d0a2b38d37b96a8c34261610917f248080b94 | a27d1d9d264df6667def06ec7f17c47ec9ab1e94 | /apps/auth/migrations/0001_initial.py | 5a118c35532a74c15fe9282bfd914be1699f979e | [] | no_license | maxrevilo/barachiel-server | 47d3cad9b0319e32824623863d2c3e6ea25c7bae | 0d1506e1b33ad7d160355027ca4a6b356a1a3c9a | refs/heads/master | 2021-01-14T11:48:57.524534 | 2015-04-12T22:28:58 | 2015-04-12T22:47:42 | 25,367,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,049 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Permission'
db.create_table(u'auth_permission', (
... | [
"oliver.a.perez.c@gmail.com"
] | oliver.a.perez.c@gmail.com |
41bfd5f933f91531e6dc13ac226c7483fe24d43f | 6b7a05e55adacfebf9374ad83bc4c7221b070089 | /1_learning/setup_notes.py | 352dfa532a78363b176521df3c17676d61a283f5 | [] | no_license | xcaperton/sandbox | 33c051dce900aea40b6e28a7c2efaa78a37fed96 | 824ab0d445bce7b5eb6608085f1dff0f1f7f5aec | refs/heads/master | 2021-01-20T11:50:22.750251 | 2017-09-26T05:23:08 | 2017-09-26T05:23:08 | 101,691,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py |
'''
- Install Xcode
- Homebrew
- Install Python3
- Install virtualenv
- Set up virtualenv
- Install Sublime Text 3
- Install Package Manager
- Install Anoconda, BracketHighligther, Enhanced Sidebar
- Adjust Anoconda setting
- Install Virtual Env and add to the path with virtualenv locations
'''
'''
1. Star... | [
"capertja@gmail.com"
] | capertja@gmail.com |
732f101b290d2baa7f1a5ae0864a6806f02bd45d | 8648ab97e7bc1c2027c72c4fd02a5409e0af4338 | /App/opencv_detect.py | baeecee4dcf0ec9a01b123bba1fd8863427a789a | [] | no_license | Dom1nik/cloud-face-recognition | 2d10223be6cb829b23c6d61c2066fbe8f446f096 | 43a9896e8ef7107ca28e52b66bac2ffac95d6076 | refs/heads/master | 2020-09-21T06:01:28.684474 | 2016-09-08T13:29:30 | 2016-09-08T13:29:30 | 67,703,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
@author: Dominik
DESCRIPTION:
Function for detecting frontal faces on an input frame.
Detection is done with the haar classifier library using pretrained face model .xml file (included in standard OpenCV build).
INPUT:
img = cv2.imread("/path/to/image/img")
"""
impo... | [
"dominik.bezevan@gmail.com"
] | dominik.bezevan@gmail.com |
65e514a1d5bbf9f7ee9f075596c4c977c659d98a | a6f2e58d4afd73386477cfd55a868016ac36061a | /Tkinter/07_windows_example.py | 8a30d77b1d7e622a2035385fcb4a19c3039ba894 | [] | no_license | griadooss/HowTos | c3d2d4862da7072aa4dcba47fcd0c448aecd9e74 | 97c881f7b4855ba73fda5648ecd5b9e45a5fd0fb | refs/heads/master | 2021-01-06T20:41:48.196407 | 2014-11-22T06:28:36 | 2014-11-22T06:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
ZetCode Tkinter tutorial
In this script, we use the grid
manager to create a more complicated
layout.
author: Jan Bodnar
last modified: December 2010
website: www.zetcode.com
"""
#In this example, we will use a Label widget, a Text widget and four buttons.
from Tkinter i... | [
"github@zimpics.com"
] | github@zimpics.com |
ddee9b71d0ccc3475deacdbbc5ebffbed153f8ab | 2b6d1170a26480e2b54a01a47448247cbb7ace72 | /blog/forms.py | 8a3fbb3b983996a908fbb1cfcf4b71edacb7d717 | [] | no_license | BillyBoy26/MyBlog | 9a03db86cc58b679f76e4d1ad03e11b8ae970387 | 4718c585da569c7b252dc32253db0aec8980cca6 | refs/heads/master | 2021-01-01T19:41:26.035524 | 2017-08-08T18:26:47 | 2017-08-08T18:26:47 | 98,651,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | from django import forms
from blog.models import Article
from blog.widgets import RichText
class ContactForm(forms.Form):
sujet = forms.CharField(max_length=100)
message = forms.CharField(widget=forms.Textarea)
sender = forms.EmailField(label="Votre adresse email")
resend = forms.BooleanField(help_tex... | [
"benjamin.scheinhardt@gmail.com"
] | benjamin.scheinhardt@gmail.com |
ffca2ea84bc267e1b18b0a67ac1f41fbc0a91093 | fb5d1d93c7432912f7f5e1d9ff50309f49bf6b16 | /average_diff.py | eea61b3f8dcf731fcdab15da8a4e21fc6cfeea17 | [] | no_license | Eileencaraway/Joyjit-s-Python-Script | 0089635bdd8609d9ae28aa03f0029304d16542b0 | 48c29fa7f1a0060b7fc5b791ce635e1ecdeb2e98 | refs/heads/master | 2021-09-20T15:21:14.717982 | 2018-08-11T06:56:57 | 2018-08-11T06:56:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,970 | py | #! /usr/bin/env python
# given a datafile with energy, pressure, stress,... data, perform averages
import sys
import os
import StringIO
import math
import numpy
from numpy import *
def readlines(filename):
file = open(filename)
sys.stderr.write('import '+filename)
data = file.readlines()
file.close()
... | [
"noreply@github.com"
] | Eileencaraway.noreply@github.com |
1132ad23972287ae21036c12c2e792127aab84a5 | 79eaba10d7ab519a374766abbb136f3789dafb02 | /src/torch/src/transforms/random_rotate.py | dc1a20bffd53c216d77b501db786a7c95b0bfcf4 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jelmr/pc_temporal_interpolation | 878e28c35fb9ec3689a5058de66c1206c0db08f7 | 0bc230ca0855876ef7aa8c1fe8a16764097a8a25 | refs/heads/master | 2022-01-22T02:33:25.710936 | 2022-01-13T18:34:19 | 2022-01-13T18:34:19 | 202,586,854 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | import math
import random
import torch
class RandomRotate(object):
r""" Rotates along the specified axis.
Args:
degree_range (tuple): Range from which rotation degree is sampled
axis (int, optional): The rotation axis
"""
def __init__(self, degree_range=(0, 360), axis=0):
se... | [
"jelmer@jelmermulder.dev"
] | jelmer@jelmermulder.dev |
5a9b7f424fc004b04e1fb24d613acf643a7e9ce9 | 7f664a130d13acbbdc52d93cf7a674b58694383e | /graph2geojson.py | dfc8a4f13fa06cea69058d9e70da1401bb5b63ec | [] | no_license | mitragithub/MorseAnalysis | 0569c7d4ae9f8ce02dce00cfa38e0488a63d57f0 | be91e80972b873fcb4345171a66582e1ba69995a | refs/heads/master | 2021-10-24T21:03:35.118160 | 2019-03-28T22:22:51 | 2019-03-28T22:22:51 | 175,226,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | import os
import sys
from geojson import Feature, FeatureCollection, LineString
import geojson as gjson
def make_geojson(vertices, edges, output_path):
dir_path = os.path.dirname(output_path)
if not os.path.isdir(dir_path):
os.mkdir(dir_path)
features = []
for i in range(len(edges)):
e... | [
"1257332448@qq.com"
] | 1257332448@qq.com |
9b7adb5678f71064de435ee4ec62090b3e6ba879 | 951fd820620ce0056574399fbc349f86b70be61e | /pic2video.py | 8df9d002c0d0eedd0546aafc975edc37f358e23c | [] | no_license | nzhang258/script | 7adbf8e583f6c09a2de7b1324ffd903e3ff6f6f4 | dade3fdf5351cb5da9ed9a3ca97bb79011bacdd6 | refs/heads/master | 2021-08-08T02:19:32.544219 | 2020-09-08T03:48:58 | 2020-09-08T03:48:58 | 217,058,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | import os
import cv2
import sys
def v2p(path):
cap = cv2.VideoCapture(path)
suc = cap.isOpened() # 是否成功打开
frame_count = 0
pics=[]
while suc:
frame_count += 1
suc, frame = cap.read()
if suc:
pics.append(frame)
cap.release()
return pics
def p2v(pic, out, ... | [
"zhangning2@sensetime.com"
] | zhangning2@sensetime.com |
68288fa5a676dae1fae0a2c54eae585c3ac4a8fc | 185219fb50e0c39ac15bd3a748995890072bd3e3 | /twitoff/__init__.py | 4dff86edd3e9ba852e9f39dbd436e0ebbffc3841 | [
"MIT"
] | permissive | standroidbeta/TwitOff | 02e2631f64c12da726b526e6edba3859a6002fb8 | e036efc9fabefa285b9455bef666b59a2c8ca190 | refs/heads/master | 2022-12-14T11:58:00.403599 | 2020-03-31T00:46:53 | 2020-03-31T00:46:53 | 192,377,327 | 0 | 1 | MIT | 2022-12-08T03:12:53 | 2019-06-17T15:57:42 | Python | UTF-8 | Python | false | false | 101 | py | """
Entry point of TwitOff flask application.
"""
from .app import create_app
APP = create_app()
| [
"43893890+standroidbeta@users.noreply.github.com"
] | 43893890+standroidbeta@users.noreply.github.com |
0d1da58ff7e050c877c7671d26db53edf573d298 | bc0f6c2b0e2a338e26c8999d82420f1c46d5914f | /0x0F-python-object_relational_mapping/12-model_state_update_id_2.py | b77314b0283c5d2e3bb85f68d553ceb5d22e7ce6 | [] | no_license | kingsleyabonyi/alx-higher_level_programming | 4ea72b42a14dbdf0ae3d7c1064118fc70ddf491f | e7331951fda92475181fae63829699fe7e1ad5be | refs/heads/main | 2023-03-18T15:40:53.473874 | 2023-01-23T17:13:57 | 2023-01-23T17:13:57 | 507,995,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | #!/usr/bin/python3
""" a script that changes an object property and saves changes to the
database and lists all State objects from the database hbtn_0e_6_usa
"""
from sys import argv
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from model_state import Base, State
if __name__ == "_... | [
"kinabonyi@gmail.com"
] | kinabonyi@gmail.com |
4ae8bba43babc3a0e6cb78977983aa4716d69be8 | 7e4ab0da41d47d953f517a4e15e6163ecd2368ef | /ufindAPI/urls.py | 69d8a19a65e3fa04923c79d0b28df397e63fc0d6 | [] | no_license | EkhlasMridha/ufind | 8318d7117274a726da649d74df85a4131ace0aa6 | f5d3eb2d962cbabf586a1c3bf48047416bc79fcb | refs/heads/master | 2023-03-06T12:30:37.317579 | 2021-02-21T13:42:02 | 2021-02-21T13:42:02 | 335,329,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | from django.urls import path, include
from ufindAPI.identityapi import (
login_api_view,
register_api_view,
get_profile_api,
get_userlist_view,
reset_request_view,
change_password
)
from ufindAPI.missingpersonapi import (
submit_case_view,
get_cases_view,
case_data_found,
get_al... | [
"41969194+EkhlasMridha@users.noreply.github.com"
] | 41969194+EkhlasMridha@users.noreply.github.com |
afaefbecf4649d448df7f63bf2a5ebeca8d36bd7 | e96a98171cfa49a318717ce0189f3143109846ad | /StartupOracle.py | 532fa20c7ea23452a8dba5104715848f35a6cab4 | [] | no_license | ixxl/python | cab4343ccad8f665b02582e922d3ccaa58e27c0f | 98e8ad7afec021ea0e2840aa00f4f50ab606b862 | refs/heads/main | 2023-08-04T16:34:00.023484 | 2021-09-10T01:28:30 | 2021-09-10T01:28:30 | 398,481,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | import cx_Oracle
import xlrd
import paramiko
Sheet = xlrd.open_workbook(r'C:\Users\Administrator\Desktop\Python\工控机程序更新\IPList.xlsx')
data = Sheet.sheets()[0]
nrow = data.nrows
TimeoutList = []
# 获取连接信息
def _create_ssh(ip):
transport = paramiko.Transport((ip, 22))
transport.connect(username='root', password=... | [
"15251768772@163.com"
] | 15251768772@163.com |
d885da387b228b60ffedd347951d8fb392ee92ea | 4f2f3888a1f3085224459ea3860ca1ad1abc0c96 | /include/cpf_cnpj.py | 736662742ea564f942bede00e421f7560417c276 | [] | no_license | iegawa/Cadastro | 3ae228c43f422893b21d8c53b5d85b0205cb997c | 2e958609dd881c2232792b6166a69b9e9c760a69 | refs/heads/main | 2023-02-16T02:15:58.005606 | 2021-01-07T13:26:03 | 2021-01-07T13:26:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | from validate_docbr import CPF, CNPJ
class Documento():
@staticmethod
def criaDocumento(documento):
tamanho_documento = len(str(documento))
if tamanho_documento == 11:
return Cpf(documento)
elif tamanho_documento == 14:
return Cnpj(documento)
else:
... | [
"fabianaiegawa@gmail.com"
] | fabianaiegawa@gmail.com |
e2c9dd04f446e45635efa13aa746f7b4f1de12b4 | 91ac211b67cc7bffffecbc0faf514e69f5a7d22c | /app/models.py | baf994975e5b27ec40ae2f1bfa963191b23237fc | [] | no_license | UDTechLLC/python-web-camera | 35acfb36bec245b08e912d8761090ea3ad6dc5ac | ff71cca791b8bb7e4d1c777f284a7e360698c75f | refs/heads/master | 2020-04-13T08:37:05.535156 | 2018-12-25T13:47:59 | 2018-12-25T13:47:59 | 163,086,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,606 | py | from sqlalchemy.orm import validates
from sqlalchemy import event
import transliterate
from transliterate import detect_language, translit
from web.app import db
from web.app.serverside.serverside_table import ServerSideTable
from web.app.serverside import table_schemas
class Package(db.Model):
id = db.Column(db... | [
"kolyvayko@gmail.com"
] | kolyvayko@gmail.com |
2f2592e1db11f7bff6d903d41fb51c84de5aea81 | 2095905eb285d2faae2df8367db6a99049b654cf | /stvenv/Scripts/rst2odt.py | 86f8bb13fe84d1e246459200c571495ea18811ef | [] | no_license | andreishvaidyuk/sattracker | f9124cfa7ec7775af0f240554c32cabeeaadb77d | e19ba543667c135fc67d04b188bcc68e1b1096d6 | refs/heads/master | 2020-04-27T12:20:45.679874 | 2019-05-31T12:07:46 | 2019-05-31T12:07:46 | 174,328,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | #!C:\Users\a.shvaidyuk\PythonProjects\sattracker\stvenv\Scripts\python.exe
# $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $
# Author: Dave Kuhlman <dkuhlman@rexx.com>
# Copyright: This module has been placed in the public domain.
"""
A front end to the Docutils Publisher, producing OpenOffice documents.
"""
im... | [
"a.shvaidyuk@Ghalam.local"
] | a.shvaidyuk@Ghalam.local |
5c15640b4f7eb55c5d541c9c3602492e2224363a | 3eedbb6f656cda07068177bf8959800c6b5a3948 | /main.py | e92505bbc7bde7077980eaffefae33c1cfdd130d | [] | no_license | 0-Raigi-0/SPO | 904a7d54e9ed0b12463d330cf6c063a0f42f1640 | 52ed3dcf9de7dc962785385488ab0a690cbd195a | refs/heads/main | 2023-06-08T03:08:57.880591 | 2021-07-01T17:31:10 | 2021-07-01T17:31:10 | 382,109,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from Core import Lex, StM, Par
if __name__ == '__main__':
L = Lex()
L.get_term('code.txt')
print('Tokens:', L.l_tokens)
try:
P = Par(L.l_tokens)
Tree = P.S()
print('Tree:\n', Tree)
StM = StM(Tree.children)
StM.start()
except BaseException:
print('Syn... | [
"noreply@github.com"
] | 0-Raigi-0.noreply@github.com |
0e992fc36e36b4801a93c466630e5c1fdd4a911a | 18cee46b76f00ba73fcaa0aa00f694dcf8c453ec | /coroutine/study/queue.py | 8317ceed7ed6d8d8a93e88578ba5858a5477bf21 | [] | no_license | segmond/pythonThingz | 7450b9c36c6853627495b75512e78af80b238065 | 87404f3ee24c01e4db0d32595bfd2bc54090a9ee | refs/heads/master | 2021-01-18T22:43:57.861336 | 2017-01-18T03:26:57 | 2017-01-18T03:26:57 | 40,515,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | # produce/consume simulation
from random import randint
class Queue:
queue = []
queue_capacity = 5
def full(self):
if len(self.queue) >= self.queue_capacity:
return True
else:
return False
def empty(self):
return len(self.queue) <= 0
def add(self, i... | [
"segmond@gmail.com"
] | segmond@gmail.com |
6fbfbe2d2e8c8222273f9d6a135e3b09b4b3a9ca | 72cb090038db3195013db7908c3922e7a58e220f | /python基础/code/chapter17.py | 68b786622c42d930de939962794f8b64b026fc18 | [] | no_license | iceAcmen/whole-Python | 086f568a6ac29f5d8ffba735cc0b8ae2521b3063 | 114bf86a071317d592cff2ba2ce92360b87cd48a | refs/heads/master | 2020-03-21T17:03:40.219813 | 2018-02-12T08:35:37 | 2018-02-12T08:35:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # -*- coding: utf-8 -*-
# @Author: cbbfcd
# @Date: 2017-09-17 00:57:16
# @Last Modified by: cbbfcd
# @Last Modified time: 2017-09-17 01:33:07
# type()动态创建一个类
def fn(self, name='Tom'):
print('Hello, {}'.format(name))
Hello = type('Hello', (object,), dict(hello=fn)) # 创建Hello class
s = Hello()
s.hello() # Hello,... | [
"2890636389@qq.com"
] | 2890636389@qq.com |
ea6e2ff4f377fb08bbe4ce580e46de2cced32cc3 | 5096eb6e15b30cf37093b775bcf5ecdcbd1d83d5 | /mc_oi.spec | 7a7010a012f8bc3962a7666dce4e1a49c232cfef | [] | no_license | rs9960821/mc_oi | 1680d591d82f20f90c6fba9fb6336c20bb82086f | 3cb28f0599f1d62788bfad7757fadf2c6ff6bf75 | refs/heads/master | 2022-10-11T17:54:03.805344 | 2020-05-26T09:36:27 | 2020-05-26T09:47:24 | 266,990,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['mc_oi.py'],
pathex=['C:\\Users\\rs996\\Desktop\\mc_oi'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
... | [
"rs9960821@gmail.com"
] | rs9960821@gmail.com |
d2e0b7afe0e2cbcce829206bfb592a728881c7f8 | 1b0f0258a1ac6f606a8ba473cef785aa7eb20792 | /screen.py | 6a33ba4866d2185b9642c42c47280b0384463ad6 | [
"MIT"
] | permissive | pierav/pyhack | 653294a8cef4cce11c1318914d516b106116ed1b | af5c86fb721053d8a3e819ab772c8144a23b86bf | refs/heads/master | 2022-03-27T13:43:15.541079 | 2019-12-23T15:41:47 | 2019-12-23T15:41:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,036 | py | #!/usr/bin/env python3
# pylint: disable=C0103
"""
Définie la classe Screen
"""
# http://nicofo.tuxfamily.org/index.php?post/2007/01/10/19-mouvement-du-curseur-dans-le-terminal
# https://rosettacode.org/wiki/Terminal_control/Preserve_screen#Python
import sys
import termios
import os
from vect import Vect
class Scre... | [
"pierreafe@gmail.com"
] | pierreafe@gmail.com |
66d5f8a4a8f55335aea9dc12b7b063af44729eef | ace7319dffe3856b0bf1323a2c91a0a506a19356 | /covidportal/covidportal/urls.py | e2c98ff40ec025617b192420ee3e764896689b66 | [] | no_license | Gayathritl/django-apps | 8ba8861be16b7bc56ec175ed682dbe3c2e1c8ce8 | e3ffeae804c9a0f1f62c12a921f3e2312079a2dc | refs/heads/master | 2023-04-27T08:45:30.387492 | 2021-05-21T16:18:03 | 2021-05-21T16:18:03 | 369,592,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """covidportal URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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-b... | [
"gayathri219018@sahrdaya.ac.in"
] | gayathri219018@sahrdaya.ac.in |
0d00c9e9aa486a1e5076f911892411a3a5d9780d | 54ab8e214bf5d8909aa8a7c503ca001f74009d08 | /Desafio094 - Unindo Dicionários e Listas.py | f0f2e2f9d3d01c3bcf342fc71724bec43e444a5c | [
"MIT"
] | permissive | kleberfsobrinho/python | a43fb6fd98d731e6ef052d9760792ee2412d7018 | 34739d127c1a3908f5a2fd5a7ef07d4c78658802 | refs/heads/main | 2023-03-05T19:24:36.981429 | 2021-02-13T03:28:41 | 2021-02-13T03:28:41 | 338,488,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | dados = dict()
grupo = list()
soma_idades = 0
while True:
dados['Nome'] = str(input('Nome: '))
sexo = str(input('Sexo: [M/F] ')).upper()[0]
if sexo not in 'MmFf':
while True:
sexo = str(input('Tente novamente. Sexo: [M/F] ')).upper()[0]
if sexo in 'MF':
break
... | [
"kleber.sobrinho@ccc.ufcg.edu.br"
] | kleber.sobrinho@ccc.ufcg.edu.br |
f5ff0644bf5236dde7c565093912b84160b487ec | cd8a6f89a28c302840f6860b9e82f28123442a22 | /zwad/nn.py | 1286632706d8856c99296a06ac14a42cbb1409a4 | [] | no_license | RossyNguyen/zwad | 2d2bcc97c9ac936b4bfa849d47a5bb4311706876 | 58e25d1c5bce54ccf187282131a7d417f64a4a98 | refs/heads/master | 2023-04-09T15:29:41.566721 | 2021-04-13T13:46:44 | 2021-04-13T13:46:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | #!/usr/bin/env python3
import pandas as pd
import numpy as np
import sys
import argparse
from sklearn.neighbors import NearestNeighbors
from zwad.utils import load_data
parser = argparse.ArgumentParser(description='Lookup for nearest neighbors')
parser.add_argument('--oid', metavar='FILENAME', action='append', hel... | [
"matwey.kornilov@gmail.com"
] | matwey.kornilov@gmail.com |
67b2a9dd24d52509e01bfca824c18c8a25229ef6 | 52e2224538bfa7e69f9e0688dc49c53a247070d7 | /app/api/serializers/offers.py | 5a8539cca5bad81d59223205eb8855f955c825cc | [] | no_license | averdier/epsi_my_learning_chain_api | 2958f8ab6333e87f8b5d1a97f8d485361cdcba9d | ea85dced579f6285f3acd0edd0d64ead4f6f2332 | refs/heads/master | 2022-12-09T19:56:27.836637 | 2018-04-13T09:23:46 | 2018-04-13T09:23:46 | 129,227,310 | 1 | 0 | null | 2022-12-08T01:02:30 | 2018-04-12T09:32:18 | Python | UTF-8 | Python | false | false | 1,666 | py | # -*- coding: utf-8 -*-
from flask_restplus import fields
from .nested import facilitator_nested, api
offer_post_model = api.model('Offer POST model', {
'name': fields.String(required=True, min_length=4, description='Name'),
'tags': fields.List(fields.String(), required=False, description='Tags'),
'price... | [
"a.verdier@outlook.fr"
] | a.verdier@outlook.fr |
2c526fc3a80edcb39c640cc7e108a307f03c6a26 | 7964ef4f32540c35cf3c092da86b5fe11990c38b | /ch10 - Files and Exceptions/10-11. Favorite Number.py | 1442fe89790ddb6cfa47ace7d2903c890a586f21 | [] | no_license | ziolkowskid06/Python_Crash_Course | eb5135756f24af230b234be5a739b559fc1fe67a | d7aab8ffd4856f39a4cc18fcf6e0389beca1c800 | refs/heads/main | 2023-01-07T22:02:14.438349 | 2020-11-13T20:43:20 | 2020-11-13T20:43:20 | 306,506,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | """
Save and load a file in the json format.
"""
"""
write: favorite_number_write.py
import json
"""
number = input("What's your favorite number? ")
with open('favorite_number.json', 'w') as f:
json.dump(number, f)
print("Number is saved!")
"""
write: favorite_number_read.py
import json
... | [
"noreply@github.com"
] | ziolkowskid06.noreply@github.com |
d68e16cc929d228633b588ce362aa9510f90ddaa | b83fe134f6040b26eebe2d7d34a1f612760102d5 | /migrations/versions/8d98d38b2349_.py | 98b2d95bea1afd124f7dddb53b5b3077c7f810f1 | [] | no_license | Rdubya54/6_Gun_Backend | 378224ebbea5dd418258d062e4bbbc00ba75440a | d5197219835c934c474a96fa92cafcfeadcdcb26 | refs/heads/main | 2023-06-18T04:41:54.061812 | 2021-03-27T23:36:37 | 2021-03-27T23:36:37 | 352,198,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | """empty message
Revision ID: 8d98d38b2349
Revises:
Create Date: 2021-03-24 23:45:45.777933
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '8d98d38b2349'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"ryan.wortmann@yahoo.com"
] | ryan.wortmann@yahoo.com |
9fa6b44e795832c396a26de1768c92c41cc0470e | 019457a7027be385ba117a58a3579b7e527120e5 | /LeetCode/Top Interview Questions/Arrays and Strings/Longest Palindromic Substring.py | b857e1d1b17623455327b866614bfd3c50cf4516 | [] | no_license | msaei/coding | e3bc5a31ee775a575b95cf05fd799525e7bc5b76 | 47d48d261e15d567e4a6c0bb2ff5abcbf206fcb4 | refs/heads/master | 2020-11-29T02:55:22.760934 | 2020-01-26T15:38:29 | 2020-01-26T15:38:29 | 230,000,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | #Longest Palindromic Substring
#https://leetcode.com/explore/interview/card/top-interview-questions-medium/103/array-and-strings/780/
class Solution:
def longestPalindrome(self, s: str) -> str:
def isPalindrome(word: str) -> bool:
return word == word[::-1]
l = len... | [
"mahdi.saeikhalili@gmail.com"
] | mahdi.saeikhalili@gmail.com |
ec04d383ac47c225f76a07964b2467c6ad5a0251 | 79eb0177704239bb8b243c8baa77fadcdcb56d57 | /celerytasks/chef_mock.py | 61e19abfc5600b7afad3e76cb576bfd119dbf481 | [
"Apache-2.0"
] | permissive | wojons/deis | 5b2490d49dd6f7a7736aa64fcd2e5adb93e94ff5 | 07e62395492dafff012d773349beeb5b8c0edc1b | refs/heads/master | 2021-01-18T09:40:21.684840 | 2013-09-15T18:48:40 | 2013-09-15T18:48:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | """
https://github.com/coderanger/pychef
We want a simpler version for making API calls
"""
import json
class ChefAPI(object):
def __init__(self, chef_url, client_name, client_key):
self.server_url = chef_url
self.client_name = client_name
self.client_key = client_key
def request(se... | [
"matt@opdemand.com"
] | matt@opdemand.com |
68bce261a32438af944cc7a39d301fd1bed0c9b1 | e260e72c6d8f24ef250173025b2ecf129960cf03 | /src/python/py27hash/key.py | 34b6e925ab62923b6e110a518a7371a6aa5cb145 | [
"MIT"
] | permissive | neuml/py27hash | 1cdce30b9480ff338ca0488c2d80a196fc783370 | 4d814de4ab616f33bb2d74c687e74fa57c399a56 | refs/heads/master | 2022-11-23T21:21:56.220330 | 2022-11-20T12:45:21 | 2022-11-20T12:45:21 | 223,510,843 | 11 | 3 | MIT | 2022-03-27T14:46:02 | 2019-11-23T00:57:33 | Python | UTF-8 | Python | false | false | 5,425 | py | """
Compatibility methods to support Python 2.7 style key iteration in Python 3.X+
This is designed for compatibility not performance.
"""
import ctypes
# pylint: disable = E0401
from .hash import Hash
class Keys(object):
"""
Compatibility class to support Python 2.7 style iteration in Python 3.X+
Logi... | [
"561939+davidmezzetti@users.noreply.github.com"
] | 561939+davidmezzetti@users.noreply.github.com |
36a243a77291606073c6f41f866295e112ab605a | 632400054c08a0074e13dd5def5f78dbb870519b | /tensorbreeze/data/samplers/balanced_batch_sampler.py | 2b4b9c9961d4ca29c03a1990114797fc8dea4583 | [
"MIT"
] | permissive | mingruimingrui/TensorBreeze | ab14d78a28148e549834a08ef9aebf8c9832300e | 5373ab1d10f276b1e9c08c75af471ff74da635fe | refs/heads/master | 2020-04-09T00:27:27.914452 | 2019-04-10T16:27:12 | 2019-04-10T16:27:12 | 159,867,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | import random
import torchvision
class BalancedBatchSampler(object):
def __init__(self, dataset, num_iter=1, cls_per_batch=40, img_per_cls=20):
assert isinstance(dataset, torchvision.datasets.DatasetFolder)
class_idx_to_item_idx = []
for c in dataset.classes:
class_idx_to_item_... | [
"mingruimingrui@hotmail.com"
] | mingruimingrui@hotmail.com |
168a739a384072e0b09f5869c67327961f27634c | 78ecfb3ec5d747e11cfff98e473bf820ebad0e2b | /inventario/models.py | 7f5097f7312253c8f11f87cd0a303eb4b4d8f249 | [] | no_license | leonardo1497/inventario-upshirts | 0a53aea7702c4bd5c21b8aa724f6ab802bc8e88d | 5d7ce0775760aa5b1410187ef5f189b27e5b79e2 | refs/heads/master | 2021-06-19T21:16:38.944509 | 2019-07-27T23:48:06 | 2019-07-27T23:48:06 | 198,448,227 | 0 | 0 | null | 2021-06-10T21:45:29 | 2019-07-23T14:33:17 | Python | UTF-8 | Python | false | false | 310 | py | from django.db import models
from django.contrib.postgres.fields import JSONField
# Create your models here.
class Inventario(models.Model):
Modelo = models.CharField(max_length=200,null=False)
Imagen = models.TextField(null=False)
Precio = models.FloatField(null=False)
Cantidad = JSONField() | [
"1497enrique@gmail.com"
] | 1497enrique@gmail.com |
f30eba5f8057a09dfde4f71d67c088c7ba54857f | cd2fdedba5baf3e049f712f885ea38ed2d31c94a | /env/lib/python3.10/site-packages/lazy_object_proxy/slots.py | 24d2f7e72b6c904b6faa25d7bcf50cbdb973100b | [] | no_license | Michael-okojie/contact-app | b090908b7624d713a04fc03e136a7669e9028828 | d6f473e54ea08a62c3e5b915b95434079c76dd8d | refs/heads/master | 2023-07-08T12:01:32.747768 | 2023-06-21T15:20:57 | 2023-06-21T15:20:57 | 266,363,404 | 0 | 0 | null | 2022-12-02T04:18:27 | 2020-05-23T15:22:41 | JavaScript | UTF-8 | Python | false | false | 12,502 | py | import operator
from .compat import PY2
from .compat import PY3
from .compat import string_types
from .compat import with_metaclass
from .utils import await_
from .utils import identity
class _ProxyMethods(object):
# We use properties to override the values of __module__ and
# __doc__. If we add these in Obj... | [
"michaelokojie1@gmail.com"
] | michaelokojie1@gmail.com |
7274e0ec3bae37dc044fe026a5f528c981f2e609 | 65a3b321cb2e39902b20aa184483f756e615e442 | /SyntheticGenerator/Distribution/Distribution.py | 3e38a3a72b92c19bc23d06923e52c933f3f614a4 | [
"MIT"
] | permissive | duncankmckinnon/SyntheticDataGenerator | cfa8c32d421e9753c0fcabe2771f6faa6c474542 | 5a69401d6920e640af30f998b8ed2f8d511fe811 | refs/heads/master | 2020-12-10T22:14:58.406762 | 2020-01-16T20:40:36 | 2020-01-16T20:40:36 | 233,727,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,079 | py | import numpy as np
class Distribution:
"""
Distribution class - generates values to be used when weighting
attribute prevalence
Properties:
- name (str) - the object name (Distribution)
- type (str) - the type of distribution (constant, uniform, etc.)
- weights (n... | [
"noreply@github.com"
] | duncankmckinnon.noreply@github.com |
5d579d00095c6fb5555a6ecc7604850a52b775ad | 272c2841e9c573c84db4e66dbdde991791d37a65 | /plz.py | b88f32ebf02481cea8d55d2201720ef40baeb239 | [] | no_license | LiamMZ/Robotics-Project | 88296bec54e0f72fe48ce586719ba9b1511c9193 | 488e1db801174d3601ff15c1a1fab79e41531f2f | refs/heads/master | 2021-08-06T11:31:39.388739 | 2019-12-18T21:15:23 | 2019-12-18T21:15:23 | 224,291,728 | 0 | 0 | null | 2019-12-12T18:43:09 | 2019-11-26T21:46:04 | JavaScript | UTF-8 | Python | false | false | 2,663 | py | import intera_interface
import rospy
import copy
from geometry_msgs.msg import Pose, Point, Quaternion
g_limb = None
g_orientation_hand_down = None
g_position_neutral = None
def init():
global g_limb, g_orientation_hand_down, g_position_neutral
rospy.init_node('cairo_sawyer_ik_example')
g_limb = intera_... | [
"noreply@github.com"
] | LiamMZ.noreply@github.com |
a05e4847b2d7972adce0b18ac5c613042fe367e5 | c658112eb18c9533687265af06f8203ad26201f6 | /patient/management/commands/sync_employee.py | de06002513e35c90440df1bd4f4e522084414c00 | [] | no_license | yagami-cerberus/ukump_linebot | 7f3281779d33a15f0a73a4d1852f9752284832ff | af72a4aabc0bac098f93c2aeea2685d832a850fe | refs/heads/master | 2021-05-11T13:56:50.174425 | 2018-01-24T02:39:22 | 2018-01-24T02:39:22 | 117,690,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py |
from django.core.management.base import BaseCommand
from ukumpcore.crm.agile import get_employees_from_crm_document, update_employee_from_from_csv
class Command(BaseCommand):
help = 'Sync employee from CRM document'
def handle(self, *args, **options):
created, updated_from_hr_id, updated_from_email ... | [
"yagami-cerberus@users.noreply.github.com"
] | yagami-cerberus@users.noreply.github.com |
47d761b1e62239c2d51a5ce04645eb29f2697524 | d7b3865f1669739ca2487f65b4af24ec0087f8cf | /plot/interference_3d_static.py | 7dd4d4f6bfe8e15ce586d7a4a7e01ac374e724ce | [] | no_license | agutikov/stuff | 78bee46eacfb67da4ce445dd5b7bd90924aad7de | 41ab186219440de6acfa537758dcfd66c35d320d | refs/heads/master | 2023-01-21T13:27:35.569670 | 2023-01-10T04:07:26 | 2023-01-10T04:07:26 | 8,577,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!/usr/bin/env ipython3
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
X = np.linspace(-5*np.pi, 10*np.pi, 100)
Y = np.linspace(-5*np.pi, 10*np.pi, 100)
X, Y = np.meshgrid(X, Y)
R1 = np.sqrt(X**2 + Y**2)
R2 =... | [
"gutikoff@gmail.com"
] | gutikoff@gmail.com |
c3cfc3ac8bc731907ffbc6077dd34a584ed27d63 | 6881046de7ea357c00003c4e0aefb82b6ce4156f | /app/recipe/views.py | ac4f8d3a3af79fc6d77fea6d1a60b9bb3256cc20 | [
"MIT"
] | permissive | MGellman88/recipe-app-api | 9fa9bdda5bec7c958d218f7c393129f3a33975fb | 2831b67f8a10b01cfc5278f47981dd9ca2fb25df | refs/heads/master | 2020-04-24T07:03:53.974919 | 2019-03-25T23:00:26 | 2019-03-25T23:00:26 | 171,786,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import viewsets, mixins, status
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from core.models import Tag, Ingredient, Recipe
from recipe... | [
"mikegellman88@gmail.com"
] | mikegellman88@gmail.com |
b8a96f06ba637a59d59b4af4aed4b0643dd6e7bf | 02ee9dd5b30093e6435340c460f245f0d922a406 | /cloudorite/wsgi.py | a27d7450e764e6ec8c6653b67f9f4e55e4ffad4f | [] | no_license | aavilagallego/Cloud-o-rite | 547c93908d5b62d80d9676b21ed755d4a3518389 | b7853d1e9ca6887f3287af1ce9834ffb54471812 | refs/heads/master | 2021-01-01T15:30:41.110224 | 2012-09-26T19:08:47 | 2012-09-26T19:08:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | """
WSGI config for cloudorite project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION... | [
"aavila@stock.ovh.net"
] | aavila@stock.ovh.net |
f1310946b614eb233fa50231567ff73d07c47218 | b02b1df555c9ede3bc422030b681966e0d2a389c | /IC/Stacks_Queues/max_stack.py | 004a81f9c34fb58e86941c05c92dded89f81e63a | [] | no_license | april-april/CTCI | 015709393550ff582c8ef775d0771b47209dc881 | cffaffa36cef807ae59d199fc7c1a9b0e4ed12da | refs/heads/master | 2020-03-20T16:55:31.584943 | 2018-09-07T04:32:28 | 2018-09-07T04:32:28 | 137,548,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | class MaxStack(object):
def __init__(self):
self.stack = Stack()
self.maxes_stack = Stack()
def push(self, item):
"""Add a new item to the top of our stack."""
self.stack.push(item)
# If the item is greater than or equal to the last item in maxes_stack,
# it's ... | [
"vincentluoster93@gmail.com"
] | vincentluoster93@gmail.com |
fc451ae5171ff6413eb5371ac7f7c792cf544866 | e874e3b4312b2beebaa42fa1489b50c618055190 | /venv/Lib/site-packages/onyx/core/datatypes/rdate.py | 96d0f5c2af82ec4900dac49253b490f6f1a8a386 | [] | no_license | CarlosDinart/PUC-SP | 611a9acb6a82b7db2174d2d439b5666db48a530e | 5f5f1ea4b9c55c7d20b2dcd92c461b3d8ebbb664 | refs/heads/master | 2023-01-23T06:46:42.492764 | 2020-12-09T19:41:01 | 2020-12-09T19:41:01 | 320,058,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,973 | py | ###############################################################################
#
# Copyright: (c) 2015 Carlo Sbraccia
#
# 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:/... | [
"cdinart@hotmail.com"
] | cdinart@hotmail.com |
b64be8f6065e5f3cd6c50ef246393c68a057757f | 767276e6c64a091c9b700330de2c0063a36e9259 | /search.py | 6a611f62e4890827f2ea951d919380a4199bd2dc | [] | no_license | PykeChen/pythonBasicGramer | 02ad11ceada4ed45ab9f503d90b40e2c12946e22 | 2599be5274ffb736973a7cef69751e699ff98095 | refs/heads/master | 2020-05-26T23:36:34.560476 | 2019-07-28T13:35:55 | 2019-07-28T13:35:55 | 188,412,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | """ 深度搜索和广度搜索算法 """
import queue
class Node:
def __init__(self, value, left, right):
self.value = value
self.left = left
self.right = right
node4 = Node(4, None, None)
node5 = Node(5, None, None)
node6 = Node(6, None, None)
node7 = Node(7, None, None)
node2 = Node(2, node4, node5)
node... | [
"cpy@meitu.com"
] | cpy@meitu.com |
e3b445263cacce5e32b206c66090017617afc249 | 20d3f13b70142794a34e7029b939eb680583d3db | /Kick Start 2019/Practice Round/mural.py | 85f40c75a8e88b2f6241c8ae961f1bcc9dbdac76 | [] | no_license | ninilo97/CodeWithGoogle-2019 | 6b5c6c3e77a683de78e18c9eecb58453a62cfe74 | 4874c7a85f4c83193736c945b4ac8ca1d815cf35 | refs/heads/master | 2020-05-05T10:33:58.448778 | 2019-07-12T15:38:00 | 2019-07-12T15:38:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | def simple_beauty(mural):
mural_size_to_check = int((len(mural)+1)/2)
lst = []
for i in range(mural_size_to_check):
lst.append(sum(mural[i:i+mural_size_to_check]))
return max(lst)
def complex_beauty():
mural_size = int(input())
mural = [int(num) for num in str(input())]
mural_size_t... | [
"nikhillondhe36@gmail.com"
] | nikhillondhe36@gmail.com |
d90237cf9cb94f95a505e029df2cd390ab0b7cb5 | 71be505051c80905ec0e1712bbb8b6d58e600c01 | /baseline/optimizer/__init__.py | 6e375ac06e1aa463ca234e5ba6634d75f7e371a8 | [] | no_license | justHungryMan/tf-template | 77ae46db0ae72e44cfb6805960f5433fe3bed749 | 82680686f85d58580fbfd4eb6b2949f8593a15dc | refs/heads/main | 2023-08-22T09:15:39.005135 | 2021-10-13T04:55:50 | 2021-10-13T04:55:50 | 411,306,897 | 0 | 0 | null | 2021-10-13T04:55:50 | 2021-09-28T14:05:06 | null | UTF-8 | Python | false | false | 948 | py | import tensorflow as tf
import tensorflow_addons as tfa
from baseline.utils import get_logger
log = get_logger(__name__)
def create(config, model=None):
opt_type = config["type"].lower()
if opt_type == "sgd":
log.info(f"[optimizer] create {opt_type}")
return tf.keras.optimizers.SGD(**config... | [
"justhungryman@gmail.com"
] | justhungryman@gmail.com |
6828a845e8b4a33abe9c434db3f96ee98f8001fa | 36b624c0b7f0e691772f7521695c02f0709f9f89 | /day8.py | cc9d00263a5a71ed2da284db2e9df17031b7dd4f | [] | no_license | alex-huff/advent-of-code-2020 | 4ee30fdcd6b67aceb0c0fb919de9a18f61d9987c | 701cfcba1c952710c0bf0b9336f670141a9ac276 | refs/heads/main | 2023-02-02T13:51:37.722815 | 2020-12-22T01:32:21 | 2020-12-22T01:32:21 | 323,081,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | def getValueBeforeLoop(code):
acc = 0
pc = 0
executionSet = set()
finished = False
while True:
if pc == len(code) - 1:
finished = True
break
if pc in executionSet:
break
inst = code[pc][0]
value = code[pc][1]
executionS... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
e3ffc675d896a299e817c812e15db8153b2ae2e7 | 8d09c41c5d91c01a6f39b8c57b3003cd7ee6e5df | /gena/codes/mesh_parse/sup_mirn_bar.py | 9cf679dce9ba50f098484132d2c91745e8d622f8 | [] | no_license | w4-dykim/Capstone-2017-2 | 56007dcfc46c07c661d621cf4a7369389a198a9d | db9efba5ff77c3ad1f2c09f47a6018997f579c45 | refs/heads/master | 2021-01-02T09:28:17.517931 | 2017-08-02T16:10:22 | 2017-08-02T16:11:12 | 99,217,084 | 0 | 0 | null | 2017-08-03T09:45:13 | 2017-08-03T09:45:13 | null | UTF-8 | Python | false | false | 499 | py | import pymysql
import re
conn = pymysql.connect(autocommit ='True', host='localhost', user='hogking', password='',db='HUBMED', charset='utf8')
curs = conn.cursor(pymysql.cursors.DictCursor)
query = "SELECT * FROM SUP WHERE S_NAME REGEXP 'MIRN-';"
curs.execute(query)
rows = curs.fetchall()
for row in rows:
o... | [
"noreply@github.com"
] | w4-dykim.noreply@github.com |
8637b6b9113c9b3cdbea2416eece9da64b7b3193 | 3a967c9583209dc7b3a3528dc45f057851194327 | /isim soy isim deneme.py | a67c0530a6121a521a0bb95a41d4fea4581657b0 | [] | no_license | mechibo/Isim-soyisim-eslestirme | d87968e369828f25c32e4a437c79688db7577e05 | 93322894466a336627ceddee58cfea64db54498f | refs/heads/main | 2023-06-11T22:21:28.286014 | 2021-07-01T13:16:41 | 2021-07-01T13:16:41 | 382,038,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | isimler = ["Kerim", "Tarık", "Ezgi", "Kemal", "İlkay", "Şükran", "Merve"]
soyisimler = ["Yılmaz", "Öztürk", "Dağdeviren", "Atatürk", "Dikmen", "Kaya", "Polat"]
liste = list(zip(isimler,soyisimler))
def eşleştirme(demet):
return demet[0] + "\t" + demet[1]
liste2 = list(map(eşleştirme,liste))
for i ... | [
"noreply@github.com"
] | mechibo.noreply@github.com |
5fab325e48d296dbf2d5195cff7aac8bee3addb0 | 43a70287e5facf33105463dfff3e55ae380440b0 | /bg_matching/vis/demo.py | fae7664d91cfbfc4200251e2bd4a2d696ff07a6a | [] | no_license | rohitgirdhar-cmu-experimental/MemexScripts | 84a5caaaaea6b688cbe744556faee648b3956936 | c37b4b4d59118ebe0c702580541b218ab13161a2 | refs/heads/master | 2021-01-13T02:02:59.478684 | 2015-12-22T22:34:15 | 2015-12-22T22:34:15 | 33,696,076 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,917 | py | import sys
sys.path.append('/home/rgirdhar/data/Software/coding-utils/PyHTMLWriter/src');
from Element import Element
from TableRow import TableRow
from Table import Table
from TableWriter import TableWriter
import os
def readRetrievals(fpath, ):
f = open(fpath, 'r')
lines = f.read().splitlines()
f.close()
imi... | [
"rgirdhar@andrew.cmu.edu"
] | rgirdhar@andrew.cmu.edu |
53051da9bc0451d17f7ded9986eaae7087ff679c | f013772126aae88ca306462d26b5becf63735803 | /scanhosts/admin.py | 31537473700cbc66f7a61cbe58b79fd724144adc | [] | no_license | ninesunzhang/CMDB | 1e8fd89d31a146c5844cf8f8343cf3a404930d92 | fd765c21438d0f532a1efa9a5a5a65445870e137 | refs/heads/master | 2022-11-21T00:59:36.944450 | 2020-07-30T02:56:25 | 2020-07-30T02:56:25 | 283,654,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.contrib import admin
from .models import Server
# Register your models here.
admin.site.register(Server) | [
"823260878@qq.com"
] | 823260878@qq.com |
4a1df82c4f42ea938817956162ff327bf22882ec | f19779713d72b0471309a2813dc8efffd4017f8f | /books/migrations/0022_auto_20200819_0543.py | 145aa6588c8dcf3eace2108262d417406be8a3c9 | [] | no_license | skyeoh06/assign4-ecommence | 4fbfca1f1bff4825c30f87f83d8494a681881c6c | b2a3932ebc3b7da5bf67b4e27249824d61234260 | refs/heads/master | 2022-12-07T12:17:38.366261 | 2020-08-28T15:39:58 | 2020-08-28T15:39:58 | 285,970,589 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | # Generated by Django 2.2.14 on 2020-08-19 05:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0021_auto_20200818_1148'),
]
operations = [
migrations.RemoveField(
model_name='author',
name='cover',
... | [
"felyciayeoh@yahoo.com"
] | felyciayeoh@yahoo.com |
301d507040d644d6ddc8e77d11c75c42c9c382f2 | 81fe7f2faea91785ee13cb0297ef9228d832be93 | /HackerRank/Contests/101Hack42/cutting_paper_squares.py | fc51e8c2e28f90db86021f38bf68df6bf3be5567 | [] | no_license | blegloannec/CodeProblems | 92349c36e1a35cfc1c48206943d9c2686ea526f8 | 77fd0fa1f1a519d4d55265b9a7abf12f1bd7d19e | refs/heads/master | 2022-05-16T20:20:40.578760 | 2021-12-30T11:10:25 | 2022-04-22T08:11:07 | 54,330,243 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | #!/usr/bin/env python
import sys
# any way of cutting is minimal and uses n*m-1 cuts
n,m = map(int,sys.stdin.readline().split())
print n*m-1
| [
"blg@gmx.com"
] | blg@gmx.com |
e3f89f91d8c69abb44601e70897a53673388b28d | 87fdd8850df131b1f5df60ecad781ce0e79b1d28 | /models4CWProject/models4CWProject/urls.py | c80e8822580ca1366f5b958b11c6c5ceffeca4e2 | [] | no_license | cs-fullstack-2019-spring/django-models4-cw-Joshtg1104 | 3e1094fca12df27abbed756b137ff5f8d14a730c | 7a3e1e8a6e965ad63f9a9cc1799f55a89aa9f4d6 | refs/heads/master | 2020-04-24T12:09:08.907751 | 2019-02-24T22:17:19 | 2019-02-24T22:17:19 | 171,947,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | """models4CWProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/dev/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')
Cl... | [
"joshtg1104@gmail.com"
] | joshtg1104@gmail.com |
300abebbed2333e357357a47e73f19850524efd9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/392/usersdata/310/71048/submittedfiles/formula.py | ea9ddc63827097528e7fa6c3641fd8e29889c94f | [] | 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 | 208 | py | # -*- coding: utf-8 -*-
# STARTING
p = float(input('Digite o valor de p: '))
i = float(input('Digite o valor de i: '))
n = float(input('Digite o valor de n: '))
v = p*((((1+i)**n)-1)/i)
print ('%.2f' %v )
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1d41b0546aac11192f42c3e5c6f39a712bc4a9e3 | 546afbb1e9d0f4a7852e71f9d5f19e1e06ed71bc | /mliac3/trees.py | 83f82c72659b6001eaa2a9327c16d653fbfa80e4 | [] | no_license | QuentinYao/mlia | 93f3c4f96f97e063aa7debf32e46c86f1eb6187f | aa17d2fad9c3ebbd1a55b696038c99578f76c86b | refs/heads/master | 2020-05-23T11:38:37.240710 | 2019-05-29T01:56:28 | 2019-05-29T01:56:28 | 186,740,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,394 | py | '''
Created on Oct 12, 2010
Decision Tree Source Code for Machine Learning in Action Ch. 3
@author: Peter Harrington
'''
from math import log
import operator
import treePlotter
def createDataSet():
dataSet = [[1, 1, 'yes'],
[1, 1, 'yes'],
[1, 0, 'no'],
[0, 1, 'no'],
... | [
"quentinyao75@gmail.com"
] | quentinyao75@gmail.com |
b4bba40f994e2408d97fcfb2cfd899c4a3556edb | d41043cec2e07369327219c8773c0fda94f5494c | /RawData/ProtozoaAnalysis/Figure2.py | 476438f2becd6ef187979c3a9857e8136a6cc1d3 | [] | no_license | Gurkan-Korkmaz/Stop-Codon-Frequencies | 652145c7d4cbe2336f7ee7ba469e6ebc7f405dba | bffd805719b4a8e61f6cbdd2b81bb16dd18479d0 | refs/heads/master | 2021-10-18T22:46:55.198613 | 2019-02-14T22:51:21 | 2019-02-14T22:51:21 | 112,545,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | from matplotlib import pyplot as plt
from matplotlib import style
import csv
import pylab
#style.use('ggplot') #Uses the style ggplot
Title = 'Protozoa - CDS Off Stops'
plt.title(Title)
plt.xlabel ('GC (%)')
plt.ylabel ('frequency')
#pylab.xlim([0.1,0.8])#Changes the range of the x axis
pylab.xlim([0,1])
GC ... | [
"noreply@github.com"
] | Gurkan-Korkmaz.noreply@github.com |
513c734e5f42fa3c0906eb3309cba7ef169d6c1b | a7da58ad91b007b3650003708eb91928f1e3684a | /bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/SupplyLine_init.py | c4b6e6d09c91538afb94bb6ecf72091943ac25a9 | [] | no_license | jgpjuniorj/j | 042d1bd7710fa2830355d4312a6b76103e29639d | dc02bfa887ffab9841abebc3f5c16d874388cef5 | refs/heads/master | 2021-01-01T09:26:36.121339 | 2020-01-31T10:34:17 | 2020-02-07T04:39:18 | 239,214,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # XXX Set a resource for the supply line inside a resource
parent_value = context.getParentValue()
if parent_value.getPortalType() in context.getPortalResourceTypeList():
context.setResourceValue(parent_value)
# Predicate ?
context.setMappedValuePropertyList([
'base_price', 'additional_price',
... | [
"georgios.dagkakis@nexedi.com"
] | georgios.dagkakis@nexedi.com |
83cfd75e6a045e7d8436f6ddee6100018566b76e | 9c693f7c8494270b66c892d46ae864f1db645ff4 | /PyPoll/main.py | 5cb25604235357416b1f5145faa1ac3697fccb9f | [] | no_license | epayne323/python-challenge | 861c55c6453b6d7d9b96a5c8f8de59d8d677e3e2 | 89d83bf01239751d6c6dc7271e5ca1935ffe10ad | refs/heads/master | 2020-08-21T22:33:16.944470 | 2019-10-25T02:51:48 | 2019-10-25T02:51:48 | 216,262,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | import os
import csv
# the instructions state:
# Your scripts should work for each dataset provided. Run your script for each dataset separately
# to make sure that the code works for different data.
# However, there are only two csv files for this assignment, and they are formatted differently.
# to make this appl... | [
"epayne323@gmail.com"
] | epayne323@gmail.com |
5e31ad4713e4435f047cee7f725c63e2f902aae6 | 193414c23fbda38b58111faa5478a6fad99555bc | /venv/bin/sqlformat | 15328fb53550ff26c0fcad5024e3691bca08b0c4 | [] | no_license | davidchoi-dev/facebookclone | 8efc7b9661785e55a786c8ea3c73de525ff6f1f0 | 81b3585e2b03b1fd8296f6c06bd2fb28570fee88 | refs/heads/master | 2022-04-16T01:41:26.115332 | 2020-04-14T16:38:34 | 2020-04-14T16:38:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | #!/workspace/facebook/facebookclone/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"woody@spacecloud.kr"
] | woody@spacecloud.kr | |
ca721489a0ab13c9992fa01fbfad93d381e71012 | 85b8a0b07942e206c1c0eb66035fd90ba3493865 | /resturants/jrlm.py | a9014d703cf7242eb23c9c674d9b0a9678466b25 | [] | no_license | XGYu/rrs | fe8b35dcb413b0309b80ed01b1ff390fdb7a8539 | 00206e5fa4b426f28f877f0ba138cd0ecde6299b | refs/heads/main | 2023-04-28T19:55:20.462160 | 2021-05-13T08:31:29 | 2021-05-13T08:31:29 | 349,459,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | from gensim.models import word2vec
import numpy as np
sentences = word2vec.LineSentence('./data/nyc_jrlm_sentence.txt')
model = word2vec.Word2Vec(sentences, sg=0)
vec_dict = {}
for item in model.wv.vocab:
vec_dict[item] = model.wv.get_vector(item)
def pairwise_distance(vector_a, vector_b):
vector_a = np.mat(... | [
"1643513827@qq.com"
] | 1643513827@qq.com |
437f732ec69d6729576a3de3bdcfdc71d1bfb0b6 | 08d3b4903ed9aac0022724e7d9ef46ffa25de4d5 | /meiduo_mall/meiduo_mall/apps/verifications/serializers.py | 8dd33381b87e27cb25e318ead4556858849a9804 | [] | no_license | 22014471/shangchen_Django | d8dfcafd896f29141de8d4a31420fc315ce87c9c | bc1a908d91084e88061437435f4e9bed30072f69 | refs/heads/master | 2020-09-08T21:37:02.770088 | 2019-11-12T15:34:11 | 2019-11-12T15:34:11 | 221,249,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | from django_redis import get_redis_connection
from rest_framework import serializers
class ImageCodeCheckSerializer(serializers.Serializer):
image_code_id = serializers.UUIDField()
text = serializers.CharField(max_length=4,min_length=4)
def validate(self, attrs):
redis_conn = get_redis_connection... | [
"22014471@qq.com"
] | 22014471@qq.com |
2d157e6b043c49bbf4392ba1010da1ab43617f94 | 1698fe3ff15a6737c70501741b32b24fe68052f4 | /py-elasticsearch-django-master/spider/ESearch/spiders/haoyang_spider.py | a227d4b4b41603f8a992a695342ceb534df4a4bb | [] | no_license | menhswu/djangoapps | 4f3718244c8678640af2d2a095d20a405e337884 | 039a42aa9d1537e7beb4071d86bea7a42253d8b3 | refs/heads/master | 2023-03-04T03:56:01.070921 | 2021-01-28T07:35:02 | 2021-01-28T07:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,937 | py | # -*- coding:utf-8 -*-
import scrapy
import re
import urllib2
from scrapy.http import Request
from scrapy import Selector
from ESearch.items import XiangmuItem
from ESearch.utils.common import get_md5
# 32406
class DmozSpider(scrapy.Spider):
name = "haoyang"
start_urls = []
main_url = "http:... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
44b3f8b9bf6336102b52df080e47ad6e0a0e1c8d | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/python/gyp/test/win/gyptest-quoting-commands.py | c6e3167e76c582ad10c5852afaa2c21f62439533 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 565 | py |
"""
Make sure batch files run as actions. Regression test for previously missing
trailing quote on command line. cmd typically will implicitly insert a missing
quote, but if the command ends in a quote, it will not insert another, so the
command can sometimes become unterminated.
"""
import TestGyp
import sys
... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
5405911e05a84503d8d66160aa95f7173d528a58 | e173eb4404c512e010492804e1d866016f070d41 | /cqbtest.py | 44b71d79294e18a7376bc15444e194d9cf2e20e8 | [] | no_license | biao-666/game01 | 721e363ec5973c5aa89fc1ad0a530c500ca4c9ca | 201215d9b11de2a385279eb547cd625873569c06 | refs/heads/master | 2023-03-21T14:54:38.139029 | 2021-03-18T15:55:47 | 2021-03-18T15:55:47 | 343,121,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
' a test module '
__author__ = 'cqb'
class Test:
def __init__(self):
self.aaa = 111
print("我是类被实例化时就会执行")
def test001(self):
print(123)
self.test003 = "wc"
def test002(self):
self.test001()
print(self.test003)
print(Test)
print(Test())
# Test()
a = T... | [
"1160410692@qq.com"
] | 1160410692@qq.com |
4ea5efef6caeb4a300a0dd8119c8a18fa5e25b88 | d7d24dc45da25922e84ac2536167689fbfde09a4 | /00 Renderer - Creating dataset/createh5format.py | e94b04589f0ccb3ccfce34262fe02943ff364b1d | [] | no_license | sarathcani/3D-Reconstruction-from-Single-Image | 3b8a4eab1b890be9fa6fc57185993abb70821b99 | 163dae7da4b701753c10ec4af91d9197f5102285 | refs/heads/master | 2023-06-03T10:50:34.079048 | 2021-06-21T11:14:12 | 2021-06-21T11:14:12 | 359,438,299 | 2 | 3 | null | 2021-06-08T17:31:17 | 2021-04-19T11:42:08 | Jupyter Notebook | UTF-8 | Python | false | false | 2,055 | py | ### Script for creating the rendered data into hdf5 format
#
#
# Install
# - h5py
# - numpy
# - imageio
# - tqdm (not necessary)
#
# Define
# - CURR_DIR
# - DATA_DIR (recommended to keep the data in './data')
# - LABEL
# - FILENAME
# Importing Libraries
import h5py
import os
import numpy as np
import imagei... | [
"mailsforsarath@cet.ac.in"
] | mailsforsarath@cet.ac.in |
e60bc54cc535f4ab73531ba9f4f5eac45fce071c | 09145b3b07273e0e064a855cf2302220cebcf181 | /textwrap_ex.py | 95b08fe738e17f49e6c04d9e5cc134b0a91c315a | [] | no_license | 01x01/python3-standard-library | 7fa762a12cbcb3535bd8b31128bd9c3aed167e10 | 1af424a04d3f16abf1c6bc42abf80ae357e35920 | refs/heads/master | 2020-06-24T12:23:38.563609 | 2019-08-12T09:42:34 | 2019-08-12T09:42:34 | 168,808,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | # coding: utf-8
# 文本段落格式化处理
# 主要功能: 类似文件编辑器覆盖或填充特性的编程功能
# 文本内容
sample_text = '''The textwrap module can be used to format text for output in
situations where pretty-printing is desired. It offers
programmatic functionality similar to the paragraph wrapping
or filling features found in many text editors.
... | [
"John.Wen@ehealth.com"
] | John.Wen@ehealth.com |
3c1d55877a00b6212503b3eab710b25288f0ecfb | 7e7982178d17a956ec6bf10a4282858a6db709fa | /pro_etc_2017/make_text.py | f8d6c3b87dae35f722638b308fe3450363d1a6ea | [] | no_license | beomso0/datajournalism-team-1 | 675622a6df14bc4edda3673b00f1f52321b6e62c | 26b547d3825f1732983217f9b465fcc640ccf183 | refs/heads/master | 2021-10-08T18:44:56.298234 | 2018-12-16T04:21:18 | 2018-12-16T04:21:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,517 | py | from bs4 import BeautifulSoup
import urllib.request
#1quarter
pro1 = 'balchick'
pro2 = 'voguemom'
pro3 = 'semobang'
pro4 = 'sectiontv'
pro5 = 'showmusic'
pro6 = 'ojimagic'
urlfile = '{}2017_url{}.txt'
textfile = '{}2017_text{}qt.txt'
'''
with open(urlfile.format(pro1, '1'), 'r') as f:
naver_u... | [
"noreply@github.com"
] | beomso0.noreply@github.com |
cd94e17736402eba7a404538056255ad735a4111 | 6a8cb51c24fc08cfe0cbf79173b8b52cf1e11e98 | /parking/parking.py | acedfa2a32a295ab6869e0cf750749da9756265c | [] | no_license | ouyangqinjp/selenium-projects | 7f4a482f89de8550dd349223d8fe9b4089da47d1 | 370779d7de9914d470d86f8105bd7fdfdce808aa | refs/heads/master | 2021-01-10T06:01:11.248746 | 2015-11-30T22:06:02 | 2015-11-30T22:06:02 | 47,145,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | import unittest
import time
#from datetime import datetime, date, time
from selenium.webdriver.common.by import By
from selenium import webdriver
import page
import os
import sys
class PythonOrgSearch(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
self.driver.get(... | [
"ouyangqinjp@yahoo.co.jp"
] | ouyangqinjp@yahoo.co.jp |
2901fab515399e58fb5deb81bdf31895765d505b | 742dd08e388faaf15d3d30134246cac39c8d5f20 | /src/network/layer/detection_target_region_mask.py | 16a85c483b50a711ddf7a94ef69b022c109322b3 | [] | no_license | taashi-s/Mask_RCNN_Kreas | b10b4636706795263af9b0eeb5dd894c3a8807ed | e88e9ace2ec40a57d129729cd033c27588b632cf | refs/heads/master | 2020-03-22T23:56:42.022715 | 2018-07-19T06:12:03 | 2018-07-19T06:12:03 | 140,835,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,093 | py | """
TODO : Write description
Detection Target Region Mask Layer Module
"""
import tensorflow as tf
import keras.engine.base_layer as KELayer
import keras.backend as KB
import keras.utils.conv_utils as KCUtils
from utils.regions_utils import RegionsUtils
class DetectionTargetRegionMask(KELayer.Layer):
"""
TO... | [
"x7286x_ayk@yahoo.co.jp"
] | x7286x_ayk@yahoo.co.jp |
451b6207a23cffde0aefe69af7d33dc267b5371d | 6f1eb859e88bd2ce069a733531bf47a1fb0b0ccc | /src/trainer.py | b220941aa43c064ccf9e13767acc4cce4631dbf2 | [] | no_license | caoqian1995/simple-fairseq | e21ae523a7fbb5be7144774df762f3d8be66283a | 32a1886026b1993933ed022568d162ffbf452b3e | refs/heads/master | 2020-05-16T09:46:37.867599 | 2019-05-02T08:30:31 | 2019-05-02T08:30:31 | 182,961,193 | 0 | 0 | null | 2019-04-28T14:10:08 | 2019-04-23T07:40:17 | Python | UTF-8 | Python | false | false | 4,140 | py | from tqdm import tqdm
from logging import getLogger
import torch
from torch.nn.utils import clip_grad_norm_
from src.utils import get_optimizer
import torch.distributed as dist
logger = getLogger()
class TrainerMT():
def __init__(self, encoder, decoder, data, params, num_updates):
self.encode... | [
"rgwt1234@gmail.com"
] | rgwt1234@gmail.com |
10a1ae6338cc526f0c59cb27113e894dc878228c | 260ca90bc92f59bad610c8dbff428dba9d8dd4c4 | /preprocessing/ulog2csv_core.py | 5303b81adaf9d358c63eb7289bb999fb1092817b | [
"BSD-3-Clause"
] | permissive | majuid/DeepNav | 22d770c75384fe19d70f58db8a846662e3bff91c | 2ac3cbed300a6d599bcce47650956414f0d1c692 | refs/heads/master | 2023-07-29T17:07:51.540262 | 2021-09-14T17:52:36 | 2021-09-14T17:52:36 | 313,142,695 | 50 | 5 | null | null | null | null | UTF-8 | Python | false | false | 33,456 | py | """
Main Module to load and parse an ULog file
This script was obtained from
https://github.com/PX4/pyulog/blob/master/pyulog/core.py
without any modification
"""
from __future__ import print_function
import struct
import sys
import numpy as np
#pylint: disable=too-many-instance-attributes, unused-argument, miss... | [
"62520510+majuid@users.noreply.github.com"
] | 62520510+majuid@users.noreply.github.com |
b741fb5ad71c5f866583c59b99471308f3687b26 | f3fb46ec8167c3d7e451265a76e1646aef78233f | /world/stat_checks/utils.py | 3d228a15fb3d369bed4b3c54c83fd1a965011308 | [
"MIT"
] | permissive | Arx-Game/arxcode | d1196941db4b551bb8ec96024241787cf4f34af3 | 363a1f14fd1a640580a4bf4486a1afe776757557 | refs/heads/stable_orphan | 2023-08-03T04:27:24.388330 | 2023-07-29T15:10:38 | 2023-07-29T15:10:38 | 144,421,010 | 52 | 45 | MIT | 2023-08-19T00:52:23 | 2018-08-11T22:06:07 | Python | UTF-8 | Python | false | false | 685 | py | """
Just a few utilities. Should NOT import anything in global scope to avoid
circular imports.
"""
def get_check_by_name(name: str):
"""
Convenience method to avoid worrying about circular imports when
fetching checks.
"""
from world.stat_checks.models import StatCheck
check = StatCheck.get_... | [
"surly.mime@gmail.com"
] | surly.mime@gmail.com |
b3ceee13afd1ce7d15f2359a57e07019d7e67fac | c518166735f921122d7de9043a6cd386041e8668 | /examples/cifar10/edit_model.py | 3361c72a41107c76b78bcfa412da0680e4c47624 | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | AkiChen/Correlative-Filters-Caffe | a84eeb81e983fe115684d0316a82bdfce907645b | 406153c3c4c5311ac5a5ad5054b9d9b653b2003b | refs/heads/master | 2021-01-11T07:36:07.648880 | 2015-08-27T11:24:09 | 2015-08-27T11:24:09 | 40,585,857 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,639 | py | #!/usr/bin/python
import sys
import re
def append(file_name):
... | [
"payenjoe@qq.com"
] | payenjoe@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.