blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c32a495bfbdac69877d7c9e4948d4c7ad7fb658 | e2b003488a88a671868291ed5889d208bc07c416 | /GasPlatform/mygas/models.py | dff8372f26663a382c2d3b3d0caf4d13ea48f9c3 | [] | no_license | Kcrystalwll/FeijuProject | 4409ed334670e231e71fa47f2e1dc740f1734e9a | 89def3887adc9c833bcf8c0181a51313275ce2e0 | refs/heads/master | 2020-06-05T03:19:18.336770 | 2019-06-17T07:27:41 | 2019-06-17T07:27:41 | 192,295,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,834 | py | from django.db import models
from rbac.models import User_info
from django.contrib.auth.models import User
# Create your models here.
#管理所有厂商
class Manufacture(models.Model):
ManufactureName = models.CharField(max_length=30,verbose_name="生产厂商")
code = models.CharField(max_length=2,verbose_name="生产厂商代码")
c... | [
"lu951120@163.com"
] | lu951120@163.com |
1488d8d1105bcc2a1c82f5ce153d9133fcd078ed | c11ea18bf126f4d4342ea66d0b4d7aa1cf9ab5f1 | /backend/base/urls/product_urls.py | d576db9fb7e9501351e9ad4daed1d1806e0e84d3 | [] | no_license | anoosh96/crow-shop | 2e0286160523de30a66ea9b16816804dcefd9b51 | ab9f4e228913f3ff44f70bb570c36119cb4578a3 | refs/heads/master | 2023-07-14T15:28:05.413236 | 2021-08-31T20:23:50 | 2021-08-31T20:23:50 | 399,087,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.urls import path
from ..views import product_views as views
urlpatterns = [
path('',views.getProducts,name="products"),
path('<int:pk>/',views.getProduct,name="productDetail"),
] | [
"ahmed@kaloncouture.com"
] | ahmed@kaloncouture.com |
f95199ebe8d2e29d27355593b7a7a581061306cd | 65f03862400819dc09204c6036629ef3ab40194a | /plugin/default/crypto.py | 9ae774b1f60ae2af05caf1d11d18947c6af4a0ae | [
"MIT"
] | permissive | dpsbot-project/DPSBot | e6c2a1cb038655117f81bdcbe50416c91b2c1e93 | 90db398d9d5a0e4ce3dac3dfcd63d902440250af | refs/heads/master | 2023-03-09T12:48:53.687211 | 2022-12-05T00:14:06 | 2022-12-05T00:14:06 | 143,755,913 | 0 | 0 | MIT | 2023-02-07T21:53:20 | 2018-08-06T16:37:34 | Python | UTF-8 | Python | false | false | 1,092 | py | import asyncio
from discord.ext import commands
from cryptography.fernet import Fernet
class cryptoclass():
def __init__(self, bot):
self.bot = bot
privatekey = Fernet.generate_key()
self.cipher_suite = Fernet(privatekey)
@commands.command(name="encrypt", aliases=["암호화"], pass_context... | [
"jh001007@gmail.com"
] | jh001007@gmail.com |
5d50b7230df3a58ddc09184f562a48db1f72f001 | 01956c956446066768f2e1242e69966bab7286e8 | /utils/basefile.py | 3810eced9db3495554a729d921c6fd62a7ede2d1 | [] | no_license | sharly2012/wechat-applet-test | b6f627862c52f2eec7df267707c36bae4a285e7d | dd6ba913509865151a45926262ac96268cdc02bf | refs/heads/master | 2022-12-10T08:24:49.195097 | 2019-04-29T09:57:16 | 2019-04-29T09:57:16 | 184,044,678 | 1 | 0 | null | 2022-12-08T05:02:38 | 2019-04-29T09:50:51 | Python | UTF-8 | Python | false | false | 1,629 | py | import os
import shutil
from utils.logger import Logger
from utils.baseutil import BaseUtil
logger = Logger("basefile").get_log()
def files_and_dirs_list(dir_path):
"""ls the files in the folder"""
for root, dirs, files in os.walk(dir_path):
logger.info("The root is: %s" % root)
logger.info("... | [
"xingl@elab-plus.com"
] | xingl@elab-plus.com |
45647e63c1b0158accfd7b668922f9f549e5fd56 | 39522478bc38ac586b6bafa5e8462cedaddffaf1 | /asynchronous IO/asyncio_task1.py | ae8051c053327b78d1303ba7b63515fe96f534c7 | [] | no_license | Miyanaqy/PythonLearn | 011eeef631693a832d9798e43e3dbf83edb3b77d | ed4636d02e43e6c362ebef5c5f845a839a5bdae0 | refs/heads/master | 2021-01-19T08:02:08.851507 | 2017-05-20T09:31:14 | 2017-05-20T09:31:14 | 87,596,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import threading
import asyncio
@asyncio.coroutine
def hello():
print('Hello world! (%s)' % threading.currentThread())
yield from asyncio.sleep(1)
print('Hello again! (%s)' % threading.currentThread())
loop = asyncio.get_event_loop()
tasks = [hello(), hello(), hello()]
loop.run_until_complete(asyncio.wait... | [
"2247762766@qq.com"
] | 2247762766@qq.com |
a10d864424683827df934951ff4cb07416e8d969 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_12_01/aio/operations/_private_link_resources_operations.py | a7c4a66aa9351e0ab6a575929711ac78f42085cb | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 5,000 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
cf68f6c4ab005f0fe8ee4f5b2477383a7c5b3c99 | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /tests/models/test_param.py | 3529f0360cdcfbcedfe6aa3802c9aedb473ab05d | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 9,932 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
f4056f860df1771e62dd5010d3a51ea2059537d3 | 6dc761a30cf5efa045f1154aaff2acfa139b835a | /LeetCode/Python/majorityElement.py | 2c3a07d29edec31ce28f3cebf1b76d1b29269efe | [] | no_license | snail15/AlgorithmPractice | 4e58beee3ff76498a389268dd4cc207dcabf778e | 9e8885953ad50e966454c45c460e81dbb6e48be0 | refs/heads/master | 2021-08-17T06:30:02.290260 | 2021-06-08T01:15:07 | 2021-06-08T01:15:07 | 98,246,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.
# You may assume that the array is non-empty and the majority element always exist in the array.
# Example 1:
# Input: [3,2,3]
# Output: 3
# Example 2:
# Input: [2,2,1,1,1,2,2]
# Output: 2
... | [
"jungs@uchicago.edu"
] | jungs@uchicago.edu |
ba98c671a10f8e25d9232aa6261b7662b7fed330 | 4c3a950fbc7c23187d55be6c9d6cd5756a9c2b89 | /mezzanine_blocks/urls.py | 97e594d263863eee2cb64439151c37600c2d624c | [
"BSD-2-Clause"
] | permissive | dfalk/mezzanine-blocks | a0e35b0a3e7f37e824f8075c6d8becdf5e051d76 | cad7cc1b8bc9336093a7716bb57727e3d8080cc1 | refs/heads/master | 2021-01-16T18:53:46.662802 | 2012-06-02T07:35:54 | 2012-06-02T07:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from django.conf.urls.defaults import patterns, url
from django.contrib.admin.views.decorators import staff_member_required
from views import edit
urlpatterns = patterns('',
url('^edit/(?P<pk>\d+)/$', staff_member_required(edit), name='blocks-edit')
)
| [
"renyi.ace@gmail.com"
] | renyi.ace@gmail.com |
bca5cd8e84a3c9d4f35f76a723f21cf1146bba0d | 02565573516bba93467736c97541971f343327be | /ranks/ranks/spiders/rank_collecto.py | 0c069ab2590fa996327dbc9acb536a7262ff3a5c | [] | no_license | qiaoxiaoqiao1/Math564Project | 42e6fa9690dd29b8104f2e7f60f3db178fb6ede0 | 2b672189beb0134c5ca5e9fb9ed0fdcc038e4e70 | refs/heads/master | 2020-04-03T21:52:37.881989 | 2018-10-31T18:34:05 | 2018-10-31T18:34:05 | 155,585,207 | 0 | 0 | null | 2018-10-31T15:59:47 | 2018-10-31T15:59:46 | null | UTF-8 | Python | false | false | 1,471 | py | # -*- coding: utf-8 -*-
import scrapy
class RankCollectoSpider(scrapy.Spider):
name = 'rank_collecto'
# allowed_domains = ['www.espn.com/nba/standings/_/season/2018/group/league']
start_urls = ['http://www.espn.com/nba/standings/_/season/2014/group/league/']
def parse(self, response):
team_names = response.xpa... | [
"cli112@hawk.iit.edu"
] | cli112@hawk.iit.edu |
ab1409aaf95d2bf69bc496ba2c8a4938816631bd | 3b7b6648b72910046b6a227db30f71aeee2cba9c | /2020-12-18-neural-style-transfer/deeptools/preprocessing/RandomSingleCropPreprocessor.py | 4ddf0ecef9eedb517ec472e48447e933c6d54b45 | [] | no_license | ken2190/deep-learning-study | f2abeb1cd302e405a15bbb52188ae44ffb414e2f | f2998be89d0c931176f158ae5f48ca562786e171 | refs/heads/main | 2023-04-02T05:07:08.504212 | 2021-04-11T15:11:22 | 2021-04-11T15:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | from sklearn.feature_extraction.image import extract_patches_2d
# this processor randomly crop an image of fixed size.
class RandomSingleCropPreprocessor:
def __init__(self, width, height):
self.width = width
self.height = height
def preprocess(self, image):
return extract_patches_2d... | [
"machingclee@gmail.com"
] | machingclee@gmail.com |
b890716819c35bfdf6811e2bfe263b08a7d67c29 | 06e987d21c6e0cdad48bd45bcf602b841490c428 | /src/translator/modules/fx.py | 6c0e11c4f3d05eb6b291beb2ab942d8b03003456 | [] | no_license | westlicht/omxone | 5f2512ec0493eb637a4f211073175c647805db7f | af92fb08c654eb50ea583199c94d626867326699 | refs/heads/master | 2021-01-15T19:45:20.313616 | 2018-09-29T19:10:05 | 2018-09-29T19:10:05 | 1,063,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py |
import time
from log import Logger
from translator.base import Translator
from translator.factory import TranslatorFactory
class TranslatorFx(Translator):
STATE_NORMAL = 0
STATE_MUTE = 1
STATE_FX1 = 2
STATE_FX2 = 3
SWITCH_INTERVAL = 0.02
state_names = {
STATE_NORMAL ... | [
"simon.kallweit@intefo.ch"
] | simon.kallweit@intefo.ch |
94681de536cc366afc4fbb90e2cae9b34317ef5d | 9b28c1650cf42c65cba5e63e989da0912729b8b2 | /titanic/knn.py | 073b7502bafc94583d36550e48a5977b5955b1e6 | [
"MIT"
] | permissive | chung1905-dump/kaggle_comp | a3108f523f06ec3df22b0de1adb4ef5ed459d87a | 2381620ee9a6ec170b0471c055405a2451169bc6 | refs/heads/master | 2022-07-09T13:05:20.521700 | 2020-05-02T12:08:02 | 2020-05-02T12:08:02 | 259,271,183 | 0 | 0 | MIT | 2022-06-22T01:50:51 | 2020-04-27T09:46:41 | Python | UTF-8 | Python | false | false | 1,345 | py | from collections import namedtuple
from typing import List
import numpy as np
train_data: List[List[float]] = []
Neighbor = namedtuple('Neighbor', 'nclass distance')
def _euclidean_distance(instance1: List[float], instance2: List[float]) -> float:
if not len(instance1) == len(instance2):
raise Exception... | [
"chung1905@gmail.com"
] | chung1905@gmail.com |
883b131aab7cc6403a4eb04a14315ce599a3fb52 | 60d6b8501d0be546437b26a6ee1f9fab97ec3897 | /platypush/message/event/zigbee/mqtt.py | e3179407f6aa9291e1c47fb4fbf836c0c6dbf740 | [
"MIT"
] | permissive | BlackLight/platypush | 68284a85b2f9eef303d26b04530f075927b5834a | 446bc2f67493d3554c5422242ff91d5b5c76d78a | refs/heads/master | 2023-08-31T21:01:53.519960 | 2023-08-29T22:05:38 | 2023-08-29T22:05:38 | 109,421,017 | 265 | 25 | MIT | 2023-09-01T23:15:49 | 2017-11-03T16:56:24 | Python | UTF-8 | Python | false | false | 5,542 | py | from typing import Dict, Any
from platypush.message.event import Event
class ZigbeeMqttEvent(Event):
pass
class ZigbeeMqttOnlineEvent(ZigbeeMqttEvent):
"""
Triggered when a zigbee2mqtt service goes online.
"""
def __init__(self, host: str, port: int, *args, **kwargs):
super().__init__(*... | [
"blacklight86@gmail.com"
] | blacklight86@gmail.com |
48a5ecc56a364e379ab32c82cdb8a6c1567cbdb3 | 47005bd473fd78e5026adf3be6708996f3d5c8d7 | /core/migrations/0012_playerstats_receptions.py | d16bc4f19e25813a9da5d7a468ec1cfaa19b8d83 | [] | no_license | andrijan/mfl-commish | 7cfd2d96323484341e20215ff85e4e5cf081e5a1 | a3db2d346e8d21f13c68e791a35ec20a13973c45 | refs/heads/master | 2023-08-23T03:29:05.834989 | 2023-08-03T20:30:20 | 2023-08-03T20:30:20 | 193,875,362 | 1 | 0 | null | 2022-12-08T10:55:05 | 2019-06-26T09:40:03 | Python | UTF-8 | Python | false | false | 380 | py | # Generated by Django 3.1 on 2021-08-05 22:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0011_playerstats'),
]
operations = [
migrations.AddField(
model_name='playerstats',
name='receptions',
... | [
"andrijan@gmail.com"
] | andrijan@gmail.com |
642dace9a98ba086429328e4a3bb682bf656ef68 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03139/s354736213.py | c172482303f5c5982f40aa05ddff89c507c32649 | [] | 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 | 85 | py | a,b,c = [int(i) for i in input().split()]
print(min(b,c),b+c-a if b + c >= a else 0) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4157b1dda27ee6318c2f824112b3276fa99c85df | 7625dbb2792d2d139b151868afdf04dffe7540b1 | /test.py | de17f3c17a8b85a04c5de81a3a0a1a2be7f1eb6f | [] | no_license | Asphilia/Numerik2 | a5cd045aa7cb076be2c32ac35188542378b011e9 | 48972763c357b570ef0431daf394a47cf84901bb | refs/heads/master | 2022-11-14T03:07:41.957605 | 2020-07-13T13:03:40 | 2020-07-13T13:03:40 | 278,065,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,496 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 8 09:46:50 2020
@author: felix
"""
#!/usr/bin/env python3
import plotly.graph_objects as go
import plotly.express as px
import pandas as pd
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
import scipy.fftpack as sfft
impor... | [
"reichlin@hm.edu"
] | reichlin@hm.edu |
c0887733727dd48a5860810b037f39ae174f2319 | 6b94e53e414700a47d626c0bedad2989665f3cbe | /ardana_service/osinstall.py | d4c1604485651167f2e7786f6a187a667a658f79 | [
"Apache-2.0"
] | permissive | toabctl/ardana-service | 2e6a013bb7b42d948dc52c0f5eafc885213e2341 | 5ae470b4efdb9932b173be860d69b57eca55c5cd | refs/heads/master | 2021-01-02T09:06:13.814438 | 2017-07-31T20:51:35 | 2017-07-31T23:11:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from flask import Blueprint
import logging
LOG = logging.getLogger(__name__)
bp = Blueprint('osinstall', __name__)
@bp.route("/api/v2/osinstall", methods=['POST'])
def start_os_install():
return 'OS Install initiated', 201
@bp.route("/api/v2/osinstall", methods=['GET'])
def get_os_install_status():
return ... | [
"gary.smith@suse.com"
] | gary.smith@suse.com |
d1eb06dc28e84efc58bbc3b666fa0f1fb7bc8c48 | c5b608aadf67c7d5159543bc13e09b510bab7b8e | /pylib/cile_torquescript.py | 9e57b675459195cfc8d94f2cf860d00d3cfbf440 | [] | no_license | Torque3D-Resources/KomodoTS | cdc45f6d326f837a803c1664ba4c1b95dedb7ba7 | b49abef919899ba7a2d0357f0385cf2246c192e1 | refs/heads/master | 2020-12-02T16:23:38.246521 | 2015-08-20T19:07:22 | 2015-08-20T19:07:22 | 96,546,272 | 0 | 0 | null | 2017-07-07T14:25:05 | 2017-07-07T14:25:05 | null | UTF-8 | Python | false | false | 12,155 | py | #!/usr/bin/env python
"""A Code Intelligence Language Engine for the TorqueScript language.
A "Language Engine" is responsible for scanning content of
its language and generating CIX output that represents an outline of
the code elements in that content. See the CIX (Code Intelligence XML)
format:
http://communit... | [
"elfprince13@gmail.com"
] | elfprince13@gmail.com |
aeb889eaa9e03351923091f9dba2aa050c7ddbb4 | 0107b9b0b2af36b1bd82ba1f7f0d912c58ef6b33 | /article/urls.py | 64f5be1403374ba5f42779b1f510088b5bc11095 | [] | no_license | 704296546/learndj2 | 348ade1c1c920c0c616ebac54434bc995975929d | d843fabdd76e09fd979e41270c09f289ebbc7547 | refs/heads/master | 2020-08-07T17:01:30.089747 | 2019-10-08T02:36:40 | 2019-10-08T02:36:40 | 213,532,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | from django.urls import path
from django.urls import re_path
app_name = 'article' # 一定要写这一行,否则html中会报错 'article' is not a registered namespace
from . import views, list_views
app_name = 'article' # 一定要写这一行,否则html中会报错 'article' is not a registered namespace
urlpatterns = [
path('article-column/', views.article... | [
"51222598+704296546@users.noreply.github.com"
] | 51222598+704296546@users.noreply.github.com |
a472c103c0b1f3c1f8c566e750f7ba8e53639190 | 65cc6a8877896ef69dd03d7b5eee5bed56e5371f | /example/attpc-daq/web/attpcdaq/daq/templatetags/daq_model_tags.py | 600bbc1d51d3e665f9f57b9b0ce19ce3797deda5 | [] | no_license | wuhongyi/DjangoNote | 34bdb9e82fc379e19b1df0bd7c90e504fa70a40d | 81ad949ff895feda8131d8bdf5fa1439f962ae37 | refs/heads/master | 2020-05-02T17:54:12.270297 | 2019-05-22T14:37:32 | 2019-05-22T14:37:32 | 178,112,720 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | from django import template
from ..models import DataSource
register = template.Library()
def get_datasource_attr_from_choices(attr_name, choices):
value = getattr(DataSource, attr_name, None)
# Verify that the result is a valid member of the set of choices.
# This also ensures that we're not just retur... | [
"wuhongyi@pku.edu.cn"
] | wuhongyi@pku.edu.cn |
4150071abeda7b1b600c232b55e47d2a2e57dc48 | 20daa1f21ba2cb1bd86fa14fc3550c5229bc99b4 | /Img_Crawler/anime_crawl/run.py | dfa4e1c6448cc9c891443a6c9f2a84707e01b7eb | [] | no_license | hakanaku1234/Keras-Illustration2Vec | e6ca3359f1a8397b957218df777d5ebf68f49fbf | 7987f3721230eaf443f10c27c2023e6ef8588520 | refs/heads/master | 2020-09-05T05:44:47.471353 | 2019-01-17T06:14:06 | 2019-01-17T06:14:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from scrapy import cmdline
import sys
frac = sys.argv[1]
maxfrac = sys.argv[2]
cmdline.execute(("scrapy crawl anime -o tags_%s.csv -a frac=%s -a maxfrac=%s" %(frac,frac,maxfrac)).split())
| [
"30581485+seekerzz@users.noreply.github.com"
] | 30581485+seekerzz@users.noreply.github.com |
c5b9da01ce23e0b136581d317876cd16c3166c6a | 1078937a951f97f1e0c32db9642151195bdcc27e | /TestPara/pymp/par.py | 310d0c213d345c2bd33bf29496641f78cfa95aec | [] | no_license | AmilaWeerasinghe/e15-4yp-Real-Time-Data-processing-and-AI-for-Distributed-IoT | 0b61b7ab29539c60b84997fbb322575d84e2d037 | 43eb3a343f1d6351865d3ed44ccf5ea05e539116 | refs/heads/main | 2023-04-13T22:46:02.023941 | 2021-04-20T11:23:25 | 2021-04-20T11:23:25 | 359,160,012 | 1 | 0 | null | 2021-04-18T18:56:29 | 2021-04-18T14:05:20 | null | UTF-8 | Python | false | false | 372 | py | from __future__ import print_function
import pymp
ex_array = pymp.shared.array((100,), dtype='uint8')
if __name__ == '__main__':
with pymp.Parallel(4) as p:
for index in p.range(0, 100):
ex_array[index] = 1
# The parallel print function takes care of asynchronous output.
... | [
"noreply@github.com"
] | noreply@github.com |
cc16d1697225baee47a86dda51adb9016bdd330c | 3f394cd47a1aaf0ae2f8de5ab9854f52341e017a | /tests/conftest.py | 0ec2f5ef473a93e1446046c292552c5de1df0cff | [
"MIT"
] | permissive | devildeveloper/Clay | e3771d97d23ae3ba7d866d8921102d50e95a6562 | ca419ee4cfe191724ed68e3507515a5b258bb4bb | refs/heads/master | 2021-01-18T02:27:22.094481 | 2013-11-18T20:24:02 | 2013-11-18T20:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # -*- coding: utf-8 -*-
"""
Directory-specific fixtures, hooks, etc. for py.test
"""
from clay import Clay
import pytest
from .helpers import TESTS
@pytest.fixture()
def c():
return Clay(TESTS)
@pytest.fixture()
def t(c):
return c.get_test_client()
| [
"juanpablo@lucumalabs.com"
] | juanpablo@lucumalabs.com |
db15a4704fc528cd8642dd3381dc5a68d2cc81e1 | 069d70243971685c39f8b8a6952ab7a2dad29ac4 | /lab5.1/q1_051.py | ce56a3b6975580b032dd03652a5626745812ded9 | [] | no_license | oisinhenry/CA117-2018 | 3679c762163178e863cfd6aa0bbfa65770d66a69 | 9f55dd4d7fa73e72191d6753c0fd7d198137b2b0 | refs/heads/master | 2021-01-24T11:59:08.404124 | 2018-04-18T13:03:03 | 2018-04-18T13:03:03 | 123,111,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import sys
s = sys.argv[1]
new_s = ""
if len(s) > 1:
i = 1
while i < len(s):
new_s += s[i]
new_s += s[i-1]
i += 2
if len(s) % 2 != 0:
new_s += s[-1]
else:
new_s = s
print(new_s) | [
"oisinhenry@gmail.com"
] | oisinhenry@gmail.com |
f7111d3baed74859346e502aea7afd028bf342d0 | 1426a57b8df011ae2666220bec6e189b2b28e454 | /examples/tutorials/lines.py | 10db830926997bae45a9a8ebb4cd77472ccc35dd | [
"BSD-3-Clause"
] | permissive | srijac/pygmt | 848604e734e7a11dbd5d8835735e70df59fa0a68 | cd822ca2c01f98a1496c63cc0bff8cc6661cb3bb | refs/heads/main | 2023-07-13T04:51:08.833644 | 2021-08-17T09:43:31 | 2021-08-17T09:43:31 | 397,364,498 | 1 | 0 | BSD-3-Clause | 2021-08-19T20:58:03 | 2021-08-17T19:06:21 | null | UTF-8 | Python | false | false | 3,501 | py | """
Plotting lines
==============
Plotting lines is handled by :meth:`pygmt.Figure.plot`.
"""
# sphinx_gallery_thumbnail_number = 3
import pygmt
########################################################################################
# Plot lines
# ----------
#
# Create a Cartesian figure using ``projection`` parame... | [
"noreply@github.com"
] | noreply@github.com |
04cd109df9311d85682f4e577ed1c3f8f976fcc7 | f7054d931c43f5b209b2e3648e4af812b48935d2 | /interfaces/storage-server/requires.py | 32c05f5af53cdca945566cbd57a04f761c37b383 | [] | no_license | zhougit86/demo_charm | c610a944a360e068762a610435d932c2f88b442c | c108df5d04804e12cdb7f3542686255bca88b0d0 | refs/heads/master | 2021-01-18T15:45:29.387199 | 2017-05-22T04:40:57 | 2017-05-22T04:40:57 | 86,680,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,940 | py | from charms.reactive import RelationBase
from charms.reactive import hook
from charms.reactive import scopes
class ServerStorageRequires(RelationBase):
scope = scopes.UNIT
@hook('{requires:server-storage}-relation-{joined,changed}')
def changed(self):
conv = self.conversation()
if conv.ge... | [
"fengxia_41103@hotmail.com"
] | fengxia_41103@hotmail.com |
d546c510a58b01a177c9d64ec2c323aa473720ae | c5d68f58c9523257a8b41954553f5cff2cd5f487 | /Secao_13_Lista_Ex_29e/ex_27.py | 5ab77700769e25293337bd239ed838f3bd7ed0dc | [] | no_license | SouzaCadu/guppe | 04bfcde82d4404eb9ec795006c6931ba07dc72b6 | 1f8a672230c5c27712f522e1e34516591c012453 | refs/heads/master | 2023-03-13T01:32:51.019871 | 2021-02-25T17:02:59 | 2021-02-25T17:02:59 | 320,908,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,378 | py | """
27) Faça um programa para gerenciar as notas dos alunos de uma turma salva em um arquivo. O programa deverá ter um menu
contendo as seguinte opções:
(a) Definir informações da turma;
(b) Inserir aluno e notas;
(c) Exibir alunos e médias;
(d) Exibir alunos aprovados;
(e) Exibir alunos reprova... | [
"cadu.souza81@gmail.com"
] | cadu.souza81@gmail.com |
f4a1d83f9e722ad21f7b9e6333b1b6b8bdb56c50 | 2919d686fb37acf8f533f48c64f4138f95b6915e | /MNIST_Null_Space_Tuning/mnist_standard/data.py | 04c4b70f742555d5c89fad5748f19dd8d3c9f075 | [] | no_license | hanscol/Null_Space_Classification | c8d0cc13f49785b074af37dd9a589c5aebfbe712 | 949961243a29ab6c6335055972857cb8de668a54 | refs/heads/master | 2020-04-12T04:49:33.761875 | 2020-02-23T21:38:07 | 2020-02-23T21:38:07 | 162,306,940 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | from __future__ import print_function, division
import torch
import torchvision
import os
from skimage import io, transform
import numpy as np
from torch.utils.data import Dataset
import random
import matplotlib.pyplot as plt
from datetime import datetime
import warnings
warnings.filterwarnings("ignore")
def train_fi... | [
"hanscol45@outlook.com"
] | hanscol45@outlook.com |
0052e096e35f38a3d6307d9a0a87f726012af309 | 06bab191a6aad5d57b70b44a6549373491a7c364 | /predict.py | 81facd0140b071eed079856f8aed7e845613343f | [
"MIT"
] | permissive | ufwt/TreeGen | 4db97ab910531329128841ba8b0d6b370e0a7dec | 3f01f8f40329b334dd03e41f41673a761d44bef8 | refs/heads/master | 2022-12-01T20:38:14.817423 | 2020-08-11T08:36:07 | 2020-08-11T08:36:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,809 | py | #-*-coding:utf-8-*-
import sys
from code_generate_model import *
from resolve_data import *
import os
import tensorflow as tf
import numpy as np
import os
import math
import queue as Q
from copy import deepcopy
from tqdm import tqdm
project = str(sys.argv[1]) + "/"
os.environ["CUDA_VISIBLE_DEVICES"]="5"
vocabu = {}
t... | [
"anonymous@anonymous.none"
] | anonymous@anonymous.none |
f7d0ebc5b5c74035f2e5e648525b0bdabb67d31e | ee53b0262007b2f0db0fe15b2ad85f65fafa4e25 | /Leetcode/441. Arranging Coins.py | dfa616241b4d3e2f18fe71fc819dff41930a76d6 | [] | no_license | xiaohuanlin/Algorithms | bd48caacb08295fc5756acdac609be78e143a760 | 157cbaeeff74130e5105e58a6b4cdf66403a8a6f | refs/heads/master | 2023-08-09T05:18:06.221485 | 2023-08-08T11:53:15 | 2023-08-08T11:53:15 | 131,491,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | '''
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins.
Given n, find the total number of full staircase rows that can be formed.
n is a non-negative integer and fits within the range of a 32-bit signed integer.
Example 1:
n = 5
The coins can for... | [
"derek.xiao@loftk.us"
] | derek.xiao@loftk.us |
0b3ecd57bb1f62bd8d1743686431eb9fbfac136e | 4e33860067fa214b4553070b4bd4126e52bf0d75 | /out/production/code/python/13-roman-to-integer.py | f3f6f1f9d2ba9b6202c2e4e3cb785cbddd9af3fb | [] | no_license | echocheergo/algorithms | d5bd0c586de70ab5af4f27202ab6cf06eba50fd9 | ce13bc1d05438f01272e52d21990c1b08bc683f7 | refs/heads/master | 2020-03-27T21:13:53.304610 | 2018-10-07T21:50:38 | 2018-10-07T21:50:38 | 147,126,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | #!/usr/bin/env python
# alternatively use a dictionary to map value
# index remember to update in each case
class Solution:
def __init__(self):
pass
def value(self, c):
if (c == 'I'):
return 1
if (c == 'V'):
return 5
if (c == 'X'):
... | [
"wuyan20080604@gnmail.com"
] | wuyan20080604@gnmail.com |
da67a21badb1298f5bc31646c651fdfe11dfdd15 | 7a68bc916060f003089754519d778a24f4c3f6da | /scripts/generate_synthetic_data.py | c92c8016403ddc5dec24f85826ce1a9237b00d6c | [] | no_license | Asashou/ffn-tracer | 167276c9a0e7152078466422a56e80f07844dfe5 | cbcdea5a6e7d82006646a593ae0408e5437ac24b | refs/heads/master | 2023-02-28T05:19:49.341189 | 2020-03-06T01:34:06 | 2020-03-06T01:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | """
Generate a synthetic dataset for testing.
usage:
python generate_synthetic_data.py --out_dir ./synthetic-data
"""
import argparse
from fftracer.datasets.synthetic import SyntheticDataset2D
def main(out_dir, num_training_coords):
dset = SyntheticDataset2D()
dset.initialize_synthetic_data_patch(dataset_sh... | [
"joshua.patrick.gardner@gmail.com"
] | joshua.patrick.gardner@gmail.com |
cfc155b48e7139b1bf1bea71e66f59e91f6f6b50 | d7c527d5d59719eed5f8b7e75b3dc069418f4f17 | /main/_pythonSnippet1_backup/61/views.py | 3e9bacefeb4c0afffa4042075dad295c84f00a02 | [] | no_license | Aivree/SnippetMatcher | 3e348cea9a61e4342e5ad59a48552002a03bf59a | c8954dfcad8d1f63e6e5e1550bc78df16bc419d1 | refs/heads/master | 2021-01-21T01:20:59.144157 | 2015-01-07T04:35:29 | 2015-01-07T04:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | from django.shortcuts import render_to_response
from django.template import Template, Context, RequestContext
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.template.loader import get_template
import datetime
from django import forms
from runner.forms import Doc... | [
"prateek1404@gmail.com"
] | prateek1404@gmail.com |
42dc6d18884578c84f4ca5272b7590683a423d4d | 532549735aab20e7948511b63e0fb77cc5aedacf | /chaussette/backend/_fastgevent.py | c43809bd8d374be7c03b29174b2ce058a6b65653 | [
"Apache-2.0"
] | permissive | ericem/chaussette | f71ac35990b2b7aa41610ec4be867321ce3be89f | fe62725ca1d018bb26c024f796447b6c761f00e0 | refs/heads/master | 2021-01-18T10:52:43.720192 | 2013-05-02T13:38:23 | 2013-05-02T13:38:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | import socket
from gevent.wsgi import WSGIServer
from gevent import monkey
from chaussette.util import create_socket
class Server(WSGIServer):
address_family = socket.AF_INET
socket_type = socket.SOCK_STREAM
def __init__(self, listener, application=None, backlog=None,
spawn='default', ... | [
"tarek@ziade.org"
] | tarek@ziade.org |
17cd33c5d17289d833d5794b6651cf7fe8007a50 | c67467031f40610be2bfdbb8e6adb4c5fcd0a6d2 | /python_fileio/sys_argv.py | 11cefd1fcfe0e42313d9e88097d1b131fb82b9fe | [] | no_license | Hankang-Hu/python_code | 1685b9b7c0b24abf6ebc7bd87368a84457d0e131 | 378a9adf9e123bb6d897b1247eda9de3edadf768 | refs/heads/master | 2020-03-10T08:11:03.040878 | 2018-05-11T05:15:40 | 2018-05-11T05:15:40 | 129,279,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | import sys
print('you entered',len(sys.argv),'arguments')
print('you entered:',sys.argv)
| [
"1121394540@qq.com"
] | 1121394540@qq.com |
71674dfa6ff7c8aca9d8e0aa4fb282ba0b9c47c7 | 7ec745b4b881d571c66c4ca41b6739425552c617 | /rangepractice_1.py | 0eb23ec1690161d9803ad34d6fca0a8a1fb8e788 | [] | no_license | JafarSoftware/python102 | 1e0a3c1b6c98d359db8a7ea6dbf6d600951d15d2 | c8ee7727bf9b337697a39d19f4e950d52c3334cc | refs/heads/master | 2022-12-06T09:04:00.716916 | 2020-08-21T02:53:41 | 2020-08-21T02:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | #this is a range program, it is for practice. delete after use.
letter = range (1000)
print(letter) | [
"69733769+Softjafar00@users.noreply.github.com"
] | 69733769+Softjafar00@users.noreply.github.com |
382edcead6cce954feaded0e363727a072ae9a8c | f079ff39d64b967f4235d9c22252064fdecda469 | /pfg/donationform/cart.py | 5315322d673ef646b1e14765df5ab6dabdfad477 | [] | no_license | collective/pfg.donationform | 80b2aa2227af99632d357591dbf49cbfe1f58b5a | 1dcbc023a816ac2e37629d7e065d278b9625d587 | refs/heads/master | 2023-06-26T16:39:07.666882 | 2017-10-06T14:54:33 | 2017-10-06T14:54:33 | 105,947,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,366 | py | from zope.event import notify
from zope.component import adapts, queryUtility
from zope.interface import implements, alsoProvides
from getpaid.core.interfaces import ILineItemFactory, IShoppingCart
from getpaid.core.item import PayableLineItem, RecurringLineItem
from pfg.donationform.interfaces import IDonationFieldSet... | [
"david@glicksoftware.com"
] | david@glicksoftware.com |
cf1aea9c373dd9423399867736861e3d9fddb55f | f4c9f0b4254f878820b7003d6a73b03f3a95b54b | /surveyapp/urls.py | 58a8391346baa3fccc31394a28dc9073a5e156e4 | [] | no_license | carlomoan/surveyapp | c3a7235baf2cbf269aea839d5746871938161d7c | 3c4bd4d59e250eaf1f0a1d2a92c21925eb002bc6 | refs/heads/main | 2023-06-05T11:23:40.508620 | 2021-06-19T11:32:53 | 2021-06-19T11:32:53 | 342,884,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | """surveyapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-bas... | [
"agbbelly89@gmail.com"
] | agbbelly89@gmail.com |
40e14b319898e3aa7c0b8261d42eea8d55f52f5d | 1c2cd5951f82a5fb12142621a3b9baea14cf4a31 | /ABC012/ABC012B.py | 93560073a8f77c4f747fddf4fd00cc740a476428 | [] | no_license | ksera332/Atcoder_records | 55ef832eb3e517b99334eb00d2287cd4a1bc83cd | f8b1f13211bae79b7da6d63ba9b1bd177031aef9 | refs/heads/master | 2022-12-08T19:25:26.834948 | 2020-08-29T12:55:30 | 2020-08-29T12:55:30 | 263,906,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py |
# coding: utf-8
# In[37]:
import time
N = int(input())
print(time.strftime('%H:%M:%S', time.gmtime(N)))
| [
"ksera6@gmail.com"
] | ksera6@gmail.com |
f9331a0b224367efbac047a5657beb72ee78ef42 | 968a2fafd0aef64e9e182f19408a7f3b19f545aa | /test.py | 0e67c413dc8a0a78e70386744fcd310f8050712a | [] | no_license | winniex0412/arm-robot | 218137752eb02cbefde301814261176015ebb072 | f425617a2d38b4afb9fe5e1536bc3b753d523831 | refs/heads/master | 2022-07-18T10:00:48.072058 | 2020-05-19T01:02:01 | 2020-05-19T01:02:01 | 265,103,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | import numpy
pts1 = [1, 2]
for i in range(2):
A.append([[pts1[i], 1], [pts1[i], 1]) | [
"winniex0412@gmail.com"
] | winniex0412@gmail.com |
453df2757c93d60538dfe166be1476dceac2238d | a82cacae7081f4a04fabdf87cb2833d4ce8bc6db | /venv/bin/easy_install-3.7 | 24bbc69ec06fbb08b587a66a965844a5e5c05e2c | [] | no_license | sadhikari89/mfscrm | 55909712f808344611d8ed3b45b3cc17d88125e9 | ea1275f8a97542a07e0ffc08d5b597d7e95d2490 | refs/heads/master | 2020-03-31T06:30:01.629465 | 2018-10-08T05:11:38 | 2018-10-08T05:11:38 | 151,985,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | 7 | #!/Users/surajadhikari/Desktop/Suraj/foodservice/mfscrm/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scri... | [
"surajadhikari@unomaha.edu"
] | surajadhikari@unomaha.edu |
21e280b471783f50c1733739e8d58cef548fa3c4 | e93b4e5306e168067129d7272cf234476a837fcf | /Python3/utils/download.py | 0d811f43e8527a92bd075c86929a62b732d36ec7 | [] | no_license | OFShare/Records | 0648e2649514f69c3819a83e4e542e2923012f4f | 06cfbf74e2617082842dee4c40509fcc024d1e50 | refs/heads/master | 2022-02-07T09:05:50.677146 | 2022-01-26T06:49:41 | 2022-01-26T06:49:41 | 231,546,626 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | import gzip
import os
import time
import shutil
import tempfile
import numpy as np
from six.moves import urllib
import tensorflow as tf
def download(directory, filename):
"""Download images of filename to directory"""
if not tf.gfile.Exists(directory):
tf.gfile.MakeDirs(directory)
with open(filena... | [
"OFShare@outlook.com"
] | OFShare@outlook.com |
bdb98d4915ddab916a9a01b0e1eaf94996469c75 | f46f73b81a39b6ed87bad97db9a8b8a51cc66e3d | /django_project/django_project/settings.py | ad09bbda76036e317ea600e423df88a8ce107927 | [] | no_license | mspstead/FloodSite | 3c875e8eee8febfdf5fe80824585752ce7acd849 | 1bc30d1105671492190339417ed4782aa51b6af7 | refs/heads/master | 2021-07-05T17:40:03.874018 | 2020-07-05T16:07:42 | 2020-07-05T16:07:42 | 52,359,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | """
Django settings for django_project project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ..... | [
"mspstead@gmail.com"
] | mspstead@gmail.com |
56b5f1fee43c2e8ebbd8a2c77d56f436829efdf3 | 015bddd50c0e2ac5ecb689030bdcc901420f2e4a | /generic/__init__.py | b54ed53db095f36abaa9f8d4dffb5ff094042d42 | [] | no_license | KobaLarrieu/metaheuristique | 1cf651a5679bdba30274ce556c98934b69c0202f | 2b5daa53081fe48947ad69d90bd22422c4ed5a70 | refs/heads/master | 2023-03-17T00:56:10.156553 | 2019-05-23T10:42:53 | 2019-05-23T10:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from local_search_algorithm import LocalSearchAlgorithm
from population_search_algorithm import PopulationSearchAlgorithm
from solution import Solution, BinarySolution, PermutationSolution, RealSolution, VectorBinarySolution
from problem import Problem
from evolution_... | [
"clement.bellanger3@etu.univ-lorraine.fr"
] | clement.bellanger3@etu.univ-lorraine.fr |
e9222d3599e353156217730a4903521d6e392997 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT1QHRKLkwaHDV6TyY9H4ZU9ZwGuwZ1TWPfg_babylon.py | 69dc0227141ef450501ea7063314cad598bd84b6 | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,170 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1QHRKLkwaHDV6TyY9H4ZU9ZwGuwZ1TWPfg_babylon(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
078e7534de86ed7c579a2ba0c616d3db8756b6be | d32a1eff193052dd62ad05f638346c7132796c2e | /python/pyspark/pandas/tests/connect/test_parity_groupby_slow.py | 375dc703d956f229358f88f2ca4bde9e8f96075a | [
"CC0-1.0",
"MIT",
"Python-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown",
"EPL-1.0",
"Classpath-exception-2.0",
"GCC-exception... | permissive | Kyligence/spark | c266dc19c7c2e2914eea34c9922f97ba17011075 | f29502acf2fe96e23525268b0a29a6338b41bce6 | refs/heads/master | 2023-08-31T08:42:15.254881 | 2023-04-22T00:30:53 | 2023-04-22T00:30:53 | 100,349,194 | 6 | 61 | Apache-2.0 | 2023-09-14T06:29:07 | 2017-08-15T07:04:07 | Scala | UTF-8 | Python | false | false | 2,010 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
"gurwls223@apache.org"
] | gurwls223@apache.org |
53869b1c06476c15712838b6b978e6f1f9dd61ec | 17884d3aa81bd3d3cade878c9519d002f0190903 | /server/api/chat.py | 6f2d857be8a0b8a6781fbd567ecadfd4f2f2c535 | [] | no_license | ar3s3ru/uChan3 | 10b17cd684055ebadec28036886efc6a5911a2c7 | 5ef0803c904e7b37bfded7df379b3f39f2dedec9 | refs/heads/master | 2021-01-09T06:58:01.823259 | 2016-01-24T23:02:16 | 2016-01-24T23:02:16 | 49,897,591 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,964 | py | from server import uchan
from server.api import AuthEntity
from server.api import handler, handler_data, handler_args
from server.models import User, ThreadUser, ChatRequest, Chat, Message
from server.common import responses, JSONRepresentation
from server.common.routines import str_to_bool
# ------------------------... | [
"b.zurchiele80@gmail.com"
] | b.zurchiele80@gmail.com |
601207597dad05b93d97e0c28bba76bc1248a8c9 | 80da118a0c597a9ff883d482ae9a3a2e437369c0 | /street_app_server/app/database/model.py | 56dc512f3ed16ee02851e298fc16170b73edae76 | [] | no_license | ChaosJohn/temple_light | 51fc37ef99b450bdf321a4ae1341579675b2336a | fb3f6af916ffa0c72a60ec8ebac7cd88adfc8a6c | refs/heads/master | 2023-01-04T13:42:08.632680 | 2020-06-14T12:22:29 | 2020-06-14T12:22:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,826 | py | #!/usr/bin/env python3
# coding: utf8
# 20170220 anChaOs
import json
from datetime import datetime, timedelta
# from sqlalchemy import Column, Integer, String, DateTime, Text
from werkzeug.security import generate_password_hash, check_password_hash
from flask.ext.login import UserMixin
from sqlalchemy.sql import fu... | [
"zacon365@gmail.com"
] | zacon365@gmail.com |
ce79c51c61434ab88a8e781669db0c84c32eb6de | 253fcf11f4c5d78d99123eac929a36e397270f48 | /day5/day-5-2.py | f0032d17b9dc6850b74aaea6b4761909411c14e8 | [] | no_license | TheShrug/Advent-of-Code | 1074a24f3dba861fde0727d420b79428267ad067 | 62c3d035f24560ed14fde877d5aeff2a38abf3dd | refs/heads/master | 2020-04-09T15:13:13.258338 | 2019-02-28T16:56:38 | 2019-02-28T16:56:38 | 160,416,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | def fully_react_polymer(polymer_string):
string = polymer_string
current_index = 0
while current_index < string.__len__():
if current_index != string.__len__() - 1:
if string[current_index].islower():
if string[current_index + 1].isupper() and string[current_index + 1] ==... | [
"stewart.m.gordon@gmail.com"
] | stewart.m.gordon@gmail.com |
6db6663f7cee2d709649d0b6d0edd779bd94baec | 6ae8c2695d2f1c001af4bd7f7b61a1532e765a45 | /home/migrations/0001_initial.py | 8f978831311e500a686d5822330e1b0e810f925d | [] | no_license | sandro-pasquali/nrmp-django | 6fa1962d9107788fbd17c6cfc03fa19e0b7c79bc | 91f4b495bd6ed1024788bc36c7f18023f3559f8a | refs/heads/master | 2021-01-25T08:54:33.094578 | 2012-08-31T04:49:30 | 2012-08-31T04:49:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,923 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Candidate'
db.create_table('home_candidate', (
('id', self.gf('django.db.models.... | [
"ozandlb@gmail.com"
] | ozandlb@gmail.com |
655ff647c8559dc41793aa823380c655f5c10e9b | ebd3106842ac51a500898c2618e1c292125b57c3 | /models/shakeshake.py | d404871c21949a776be080587a760516f82acfe9 | [
"MIT"
] | permissive | SURF-2021/ups | 9593489a3b5194f45e1013bcdfbd1eafbf6a99b3 | b8a1d33326d3b65f2ae9b3554d1b42505b263ae7 | refs/heads/main | 2023-07-07T14:48:54.590409 | 2021-08-13T13:06:46 | 2021-08-13T13:06:46 | 398,540,312 | 0 | 0 | MIT | 2021-08-21T11:27:17 | 2021-08-21T11:27:16 | null | UTF-8 | Python | false | false | 11,443 | py | # Copyright (c) 2018, Curious AI Ltd. All rights reserved.
#
# This work is licensed under the Creative Commons Attribution-NonCommercial
# 4.0 International License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to
# Creative Commons, PO Box 1866, Mountain View... | [
"nayeemrizve@gmail.com"
] | nayeemrizve@gmail.com |
c8050899cf89ee9924b87c4ca03e3b2303d99a97 | e73b062ddf811fb1758f58dd8da4b50868e8b85d | /shaktimaan/bashmenu/menu_decrypt | 5db5be318f44a69e24246b196634da0f752fd217 | [] | no_license | coflin/Intrusion-Detection-System | aaf046a4545e628dc4bbd8b7bfdf5150a40f34f7 | 76c2f0be80ccf0d80a57185f1a30ed57133d0b6d | refs/heads/master | 2020-04-27T18:29:08.719180 | 2019-03-11T14:30:34 | 2019-03-11T14:30:34 | 174,572,474 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | #!/usr/bin/python
import os
print "*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-"
print "Note that only the .bsv files will be decrypted"
print "*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-"
def decrypt(filename):
f=open(filename,"r")
filename1=filename[:-4]
f1=... | [
"noreply@github.com"
] | noreply@github.com | |
5dbc661f755795eb4062633fde62f23ccdd77609 | 2a6b3f08c637e2c0599c1b3542f5cc3c4720e1e7 | /py/Djangooo/products/models.py | 1dbba5d69e4c456680bfbbf470c05398655078aa | [] | no_license | TheSleepingAssassin/CodeFolder | 481dfb75368c9366e29a1b9084d3a171deece333 | e7058f8b757e924995da359f99e702a9c8adf56f | refs/heads/main | 2023-06-20T14:39:41.249833 | 2021-07-12T11:15:26 | 2021-07-12T11:15:26 | 385,210,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from django.db import models
class Product(models.Model):
name = models.CharField(max_length=255)
price = models.FloatField()
stock = models.IntegerField()
imageUrl = models.CharField(max_length=2083)
| [
"premmilindnaik2007@gmail.com"
] | premmilindnaik2007@gmail.com |
9c3c6cf93bb864ea24eb88b611b0e18ec6f8254f | cd09c484dab7fd835ec7da37355ca18796f7d04b | /bd6final.py | 0ecb1038f9cb805d3cb88c8403516a299100d6db | [] | no_license | Jcgo3003/Funtions-Python | 01f16444169772d68a313f7463c1cc9e81c64c48 | 2e29abe7f1b3a050e06299a5224dfd90fe06be34 | refs/heads/master | 2020-05-14T15:56:08.019616 | 2019-04-17T12:49:25 | 2019-04-17T12:49:25 | 181,863,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,055 | py | # Librerias
import sqlite3
import time
import os.path
from datetime import datetime, timedelta
# Creando nombre para la BD apartir de la fecha
nombrebd = time.strftime('%d%m%y',time.localtime()) + ".db"
# Lista que se encarga de contar el numero de rondas registradas en la BD
ron_a = [ 0 , 0 , 0 ]
ron_b = [ 0 , 0 , 0... | [
"noreply@github.com"
] | noreply@github.com |
67d0a2a954213d42ddd71266366f19adab9b7138 | 71678f708e7bb80577b560ab660af2d965f7fa88 | /test.py | 23bb3cfd232d7d25db37f4d52705132a55b38aeb | [] | no_license | natepill/CS-1.2-Tweet-Generator | 7c09b396f37b56c5be45edfa603821389848853f | 64736b69a3701c34ba5f36153af1fa4ad0fef84c | refs/heads/master | 2020-04-02T18:25:45.848092 | 2019-03-13T17:05:47 | 2019-03-13T17:05:47 | 154,699,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | from string import ascii_lowercase as al
print(al)
| [
"natepill@gmail.com"
] | natepill@gmail.com |
41f288bd19aa9b05ca5271135fc73d166ec9a820 | d83b4b27c9abc634dac38315269dcf3de06bbe51 | /tests/spaces/test_utils.py | 9443e711a6cb4da6700c07a6f5b7d3d615f70d9d | [
"MIT"
] | permissive | ivannz/gym | 3817ecf8de9f22ea8f8b4d20ff309acbddd4d3bd | a7e1861f5c4aba1bf2f95d1d7de03e5fc5cbd530 | refs/heads/master | 2022-06-29T23:58:49.385077 | 2022-06-16T16:29:50 | 2022-06-16T16:29:50 | 241,954,848 | 0 | 0 | NOASSERTION | 2020-02-20T18:06:02 | 2020-02-20T18:06:01 | null | UTF-8 | Python | false | false | 9,801 | py | from collections import OrderedDict
import numpy as np
import pytest
from gym.spaces import (
Box,
Dict,
Discrete,
Graph,
MultiBinary,
MultiDiscrete,
Tuple,
utils,
)
homogeneous_spaces = [
Discrete(3),
Box(low=0.0, high=np.inf, shape=(2, 2)),
Box(low=0.0, high=np.inf, shap... | [
"noreply@github.com"
] | noreply@github.com |
9447b7349c9b860843a4f913b233ccf07a5219f4 | 16102a426b34dc71573cf056ef5fdf2285fa9266 | /myschool/details/admin.py | 5ea6fc10b8b8fc81757a25ddbe52e989fac74475 | [] | no_license | shreyajaggi/Django-LoginSystem | ae15b439c16ca505b5dc0ed815e5ac110369f5df | 2462e1c78365614f7a4748d11beb96bb0dd5e7ca | refs/heads/master | 2020-04-06T09:47:41.195334 | 2018-01-12T09:35:43 | 2018-01-12T09:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from details.models import Teacher , Student , Class, Homework
# Register your models here.
admin.site.register(Class)
admin.site.register(Teacher)
admin.site.register(Student)
admin.site.register(Homework) | [
"dishamendiratta@gmail.com"
] | dishamendiratta@gmail.com |
9a34d006505c0eb7e0cea42b26ab77fca7370299 | b927f3d572a33d4528efb1bd5315fd53a5905660 | /audioname.py | 6a18d3618f7af0a9b07eed5c144d3486ab7a3e4d | [] | no_license | OSU-Mapper/osu_file_process | 5de00440ccc952108171e82fb380165c47e7f5c0 | d77ef4060f4e6e6db6ac280c26a8d3458441bdad | refs/heads/master | 2021-01-19T10:39:24.483680 | 2017-04-28T02:26:00 | 2017-04-28T02:26:00 | 87,887,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | import sys
import argparse
def searchSublevel(x, y):
with open(sys.argv[1], 'r') as my_file:
lines = my_file.readlines()
line_iter = iter(lines)
find = False
target = "[" + x + "]"
for line in line_iter:
if target in line:
find = True
... | [
"ly976@nyu.edu"
] | ly976@nyu.edu |
eee558f9a6af4b9e43f71b98cab0b09ae33c1e81 | f4087f2c8dbcc250e67aa6f1ed0a52d33ef10f1c | /BOTS/node_modules/nodegit/binding.gyp | a499bf2dfd055d72dbc5e7fe3693fbc96f5fe0dc | [
"MIT"
] | permissive | Grey-Wolf-PO/Fudsonstead-Main | 32cc560e9205fd93213ffd19d6fb445e68f14690 | ee91d7bb3f4fa52f0f2c9862a4544dab1fc901eb | refs/heads/master | 2021-01-10T17:41:23.903881 | 2016-02-29T18:43:45 | 2016-02-29T18:43:45 | 55,607,993 | 0 | 1 | null | 2016-04-06T13:24:47 | 2016-04-06T13:24:47 | null | UTF-8 | Python | false | false | 5,249 | gyp | # // This is a generated file, modify: generate/templates/binding.gyp.
{
"targets": [{
"target_name": "nodegit",
"dependencies": [
"vendor/libgit2.gyp:libgit2"
],
"variables": {
"coverage%": 0
},
"sources": [
"src/lock_master.cc",
"src/nodegit.cc",
"src/init_s... | [
"littlelnu2@yahoo.com"
] | littlelnu2@yahoo.com |
df0732ff6db9870819104b3cb75ff8aa2279e786 | bf235b33e11013f42cc585eb5919e8b835bdf12c | /musical/audio/source.py | f842be347aa71cc229025a45c013bd97035d1802 | [] | no_license | Slater-Victoroff/BerkleeMusicHack | 98c3b4758d4bdd5ba0acc4f2c8fa96837935c099 | f8ff7d4e35132917d335aa37880bebb9de8fad4f | refs/heads/master | 2016-09-06T05:14:47.220950 | 2015-02-06T22:56:48 | 2015-02-06T22:56:48 | 18,229,937 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | from collections import deque
import math
import random
import numpy
from scipy.signal import waveforms
def silence(length, rate=44100):
''' Generate 'length' seconds of silence at 'rate'
'''
return numpy.zeros(int(length * rate))
def pygamesound(sound):
''' Create numpy array from pygame sound object
... | [
"ezra.varady@students.olin.edu"
] | ezra.varady@students.olin.edu |
2d441b942de17b1981ea070088659addc116d4ac | 4f3a4c194451eae32f1ff7cf3b0db947e3892365 | /142/main.py | 7dd2d69286c4280a2dc6408e5232b45fffb6d8a6 | [] | no_license | szhongren/leetcode | 84dd848edbfd728b344927f4f3c376b89b6a81f4 | 8cda0518440488992d7e2c70cb8555ec7b34083f | refs/heads/master | 2021-12-01T01:34:54.639508 | 2021-11-30T05:54:45 | 2021-11-30T05:54:45 | 83,624,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | """
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Note: Do not modify the linked list.
Follow up:
Can you solve it without using extra space?
"""
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
... | [
"shao.zhongren@gmail.com"
] | shao.zhongren@gmail.com |
f22619865182d3c103c4581589755fccfd1cdb48 | d835c2969b79d28dc034313ec2799deffdbf0f80 | /Products/models.py | 8fff49ed6b8744ed7a0fec113fbf5b2f0e850c18 | [] | no_license | RoodrigoRoot/Agroquimicos | 139e087cf4e14f369704f1d2ab8cd4293f22ca1f | 431d553c24b92c5f3cd5305944035ec01f723f15 | refs/heads/master | 2021-03-03T17:20:41.328778 | 2020-03-09T08:01:02 | 2020-03-09T08:01:02 | 245,975,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,016 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils.text import slugify
from django.db.models.signals import pre_save
# Create your models here.
class Category(models.Model):
CATEGORY = [
("Liquido","Liquido"),
("Polvo", "Po... | [
"roodrigo@gmail.com"
] | roodrigo@gmail.com |
ca30c1b795a7461a9b22a0129327db6d5ad19be3 | 92cdfaf5e5b134845ba20b08bfd08c33b1c6ed61 | /logging.py | 00db9be4ddbec52558c0433158ac25453239dd1f | [] | no_license | NETsharing/LOG_coloring | d1bce7eb31a0bd2ee859922ed255c907061626b7 | 8d3eb5bf15ad897d446c2d7f2ee24bff32254a6c | refs/heads/master | 2022-10-28T00:04:02.843176 | 2020-06-10T08:03:49 | 2020-06-10T08:03:49 | 271,216,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | logging.addLevelName(logging.DEBUG, "\033[1;34m{}\033[1;0m".format(logging.getLevelName(logging.DEBUG)))
logging.addLevelName(logging.INFO, "\033[1;32m{}\033[1;0m".format(logging.getLevelName(logging.INFO)))
logging.addLevelName(logging.WARNING, "\033[1;33m{}\033[1;0m".format(logging.getLevelName(logging.WARNING)))
log... | [
"noreply@github.com"
] | noreply@github.com |
f2b84c17b5f2dc1d5d4926d53f21fd58c01a5549 | 8049ed737af21d9a4696b6a403f549393c099088 | /TP4/tp4-parte4.py | 7d1f0287d0fcf069b53e7794bf6d2c301f8f2e41 | [] | no_license | Rcastagnola/PDS | ed122c6d9182cd53d48b477da490a1baecb85abc | 22e7e502f867a7f5766d29464fa69060f0e2569c | refs/heads/master | 2020-03-30T06:45:04.165112 | 2018-12-21T19:51:19 | 2018-12-21T19:51:19 | 150,881,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,751 | py | import warnings
warnings.filterwarnings('ignore')
import scipy.signal as sig
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import scipy.io as sio
def vertical_flaten(a):
return a.reshape(a.shape[0],1)
mpl.rcParams['figure.figsize'] = (5,4)
sio.whosmat('ECG_TP4.mat')
mat_struct ... | [
"r.castagnola00@gmail.com"
] | r.castagnola00@gmail.com |
023f79199e787217370b883af1d2f8132672ba3d | 2107ca4708056eca65427748269d4fc810202840 | /examples/sites/holoviews/holoviews/core/data/pandas.py | c3898e37805556e1a6cc3a5d2969806d849581b5 | [] | permissive | python411/nbsite | 0fd98dbf889a3851df53ab920ae45f50d79c6c43 | 8977cce7cf54c73a687fc0ff705eee4644bc2684 | refs/heads/master | 2022-12-21T14:21:52.444689 | 2020-10-01T17:48:36 | 2020-10-01T17:48:36 | 300,369,678 | 0 | 0 | BSD-3-Clause | 2020-10-01T17:48:37 | 2020-10-01T17:44:31 | null | UTF-8 | Python | false | false | 11,330 | py | from __future__ import absolute_import
from distutils.version import LooseVersion
try:
import itertools.izip as zip
except ImportError:
pass
import numpy as np
import pandas as pd
from .interface import Interface, DataError
from ..dimension import Dimension
from ..element import Element
from ..dimension imp... | [
"noreply@github.com"
] | noreply@github.com |
d38191fa73340cb4127b28ff81cd00de74e6b5bc | e292dca36b668e661dc9b4fcd99a1cc7b4ebed5f | /polls/views.py | 0746b8cde3d1b26bb63bfaa680bcd51edfa6537b | [] | no_license | luochenUmich/Polls-Django- | 768e6d3c32f9b76a70bdde7c8f06c2f7186adf02 | a12068a227bf25111329da1d9c7feceff36c1107 | refs/heads/master | 2021-01-18T13:54:12.886719 | 2015-01-05T00:09:30 | 2015-01-05T00:09:30 | 28,781,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | from django.shortcuts import render, get_object_or_404
from django.http import Http404
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext, loader
from django.core.urlresolvers import reverse
from django.views import generic
from polls.models import Question
# Create... | [
"luochen@umich.edu"
] | luochen@umich.edu |
f4be1784fe13e6274c766985a165f620b822bcb1 | 930309163b930559929323647b8d82238724f392 | /abc216_e.py | b2c5d66d2e922c823160cdcb8e9ca31ca835c4d4 | [] | no_license | GINK03/atcoder-solvers | 874251dffc9f23b187faa77c439b445e53f8dfe1 | b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7 | refs/heads/master | 2021-11-07T14:16:52.138894 | 2021-09-12T13:32:29 | 2021-09-12T13:32:29 | 11,724,396 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py |
import sys
import logging
def main():
n, k = map(int, input().split())
a = list(map(int, input().split()))
a = sorted(a, reverse=True) + [0]
def cumsum(x):
return x * (x + 1) // 2
k_remaining = k
ans = 0
for i in range(n):
if a[i] == a[i + 1]:
continue
... | [
"gim.kobayashi@gmail.com"
] | gim.kobayashi@gmail.com |
5327fd472f360b5a2ea48a5007c7a3dbba670729 | 8a69d04987be9171ef2074249d5577cec1da4d1a | /utilities/custom_logger.py | 28d6b9692a4d320c5fbbec67fbd3cb476e3503ee | [] | no_license | ppapazov/LKI | ca3646f775c24dae6bfee7ab7926d600f1994acd | 1ab8841dcd0251f4b9a8e059f34c7be6b8089de8 | refs/heads/master | 2021-05-10T16:57:50.050963 | 2018-01-28T11:49:25 | 2018-01-28T11:49:25 | 118,594,616 | 0 | 0 | null | 2018-01-28T11:07:29 | 2018-01-23T10:25:59 | Python | UTF-8 | Python | false | false | 650 | py | import inspect
import logging
def customLogger(logLevel=logging.DEBUG):
# Gets the name of the class / method from where this method was called
loggerName = inspect.stack()[1][3]
logger = logging.getLogger(loggerName)
# By default log all messages
logger.setLevel(logging.DEBUG)
fileHandler = l... | [
"4work.tasks@gmail.com"
] | 4work.tasks@gmail.com |
d3dcbf4bdf17db168481586b6de9e68c9e6a9311 | f6242191f90e0b0f40a84c44028b3bf1a0372b68 | /src/simulator/aurora.py | 9c90ae8450c9d79aac5166e2033225df7fa1031c | [
"Apache-2.0"
] | permissive | gcgeng/PCC-RL | c4daa2507df39202c74cd01c6ec989e1b83974e0 | 43f04fe4ee1378c6c2ea67254b2e4b598254d05e | refs/heads/master | 2023-09-06T05:32:12.385796 | 2021-07-27T06:27:37 | 2021-07-27T06:27:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,969 | py | import csv
import logging
import multiprocessing as mp
import os
import shutil
import time
import types
from typing import List
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
from mpi4py.MPI import COMM_WORLD
from mpi4py.futures import MPIPoolExecutor
import gym
import numpy as np
impo... | [
"kevinxzx95@gmail.com"
] | kevinxzx95@gmail.com |
37d88f3dc7fd2bf9f1bf31b65ed2a7117f9dd1ae | 92c7311a8c145b2d415901991a459bf7d2734929 | /venv/bin/sphinx-apidoc | 59f39fc0d44d64080a0014d328825aa96e92b50c | [] | no_license | liuyanglxh/py-web | 3aa1043b672a034d548bce7042c8e0cf8faa24b2 | 441ed2077faeabf38f1449762a6ce692bb6a1115 | refs/heads/master | 2022-11-20T15:37:39.612580 | 2020-05-29T10:41:32 | 2020-05-29T10:41:32 | 267,832,787 | 0 | 0 | null | 2022-11-17T15:08:32 | 2020-05-29T10:40:30 | Python | UTF-8 | Python | false | false | 251 | #!/Users/liuyang/Documents/python/web/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sphinx.ext.apidoc import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"yang.liu@mail.dealmoon.com"
] | yang.liu@mail.dealmoon.com | |
fb3c1d8faf3f4c7f4a59af63fb46a030978ecd4e | f167dffa2f767a0419aa82bf434852069a8baeb8 | /lib/youtube_dl/extractor/einthusan.py | 4e0f8bc819c70730a476ca31cd4320cecdc25b3d | [
"MIT"
] | permissive | firsttris/plugin.video.sendtokodi | d634490b55149adfdcb62c1af1eb77568b8da3f5 | 1095c58e2bc21de4ab6fcb67a70e4f0f04febbc3 | refs/heads/master | 2023-08-18T10:10:39.544848 | 2023-08-15T17:06:44 | 2023-08-15T17:06:44 | 84,665,460 | 111 | 31 | MIT | 2022-11-11T08:05:21 | 2017-03-11T16:53:06 | Python | UTF-8 | Python | false | false | 3,720 | py | # coding: utf-8
from __future__ import unicode_literals
import json
import re
from .common import InfoExtractor
from ..compat import (
compat_b64decode,
compat_str,
compat_urlparse,
)
from ..utils import (
extract_attributes,
ExtractorError,
get_elements_by_class,
urlencode_postdata,
)
c... | [
"noreply@github.com"
] | noreply@github.com |
805f5305ff5d9047e6485ff2c23901ee79710e57 | a6b7dbdf66de11f6e04bac5b9da5cb2d71b8e111 | /vae/model.py | efdd7033b7af95ea32786a5a77e5c666a476d2dd | [] | no_license | gabrielwong159/tf | 9b9e144682daab3901c5cde703d39d5ee1a68b72 | bd506341034ecb47ea50a0b38040c1765003deb3 | refs/heads/master | 2021-07-03T23:50:22.391246 | 2019-03-15T10:29:25 | 2019-03-15T10:29:25 | 143,256,201 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,285 | py | import tensorflow as tf
import tensorflow.contrib.slim as slim
class VAE(object):
latent_size = 2
def __init__(self):
self.x = tf.placeholder(tf.float32, [None, 28, 28, 1])
batch_size = tf.shape(self.x)[0]
z_mean, z_log_var = VAE.encoder_network(self.x)
... | [
"gabrielwong159@gmail.com"
] | gabrielwong159@gmail.com |
afef5e088c4a797fddf972b908f3d05308a8a5c5 | a512b8893b0d2de827d6292e810f3a98b41e132c | /Week6/Day1/Solutions/Python/prog4.py | 8f234ad7cc815e2ff244fd79557baa2595b427a1 | [] | no_license | Audarya07/Daily-Flash-Codes | d771079fd0d470e2d3e05679f17f32fb64b4f426 | cf96ca2b1676b038e243fac67be778381492ffeb | refs/heads/master | 2022-11-06T15:37:47.180729 | 2020-06-25T16:20:55 | 2020-06-25T16:20:55 | 274,960,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | for i in range(5):
num = 5
for j in range(5):
if i>j:
print(" ",end=" ")
else:
print(num,end=" ")
num-=1
print()
| [
"audiuttarwar2000@gmail.com"
] | audiuttarwar2000@gmail.com |
1b2708b9fd69527e897aec7549fa95a9ed7fafd3 | 6d11eda98e529286c775942f63013619f37246c5 | /examples/potsdam/semantic_segmentation.py | a3ad3085dd6f3c7d8d3532839dfb3cf35057feda | [
"Apache-2.0"
] | permissive | Pandinosaurus/raster-vision-examples | 388438ddd58c2c0fd8a7eced5be02cc5518e80f8 | d6957a5de6d49fbe7d419da67979725eaab43ee7 | refs/heads/master | 2021-07-18T08:17:33.274224 | 2020-07-03T02:52:20 | 2020-07-03T02:52:20 | 184,796,275 | 1 | 0 | NOASSERTION | 2020-07-03T04:10:43 | 2019-05-03T17:38:55 | Jupyter Notebook | UTF-8 | Python | false | false | 5,610 | py | import os
from os.path import join
import rastervision as rv
from examples.utils import str_to_bool, save_image_crop
class PotsdamSemanticSegmentation(rv.ExperimentSet):
def exp_main(self, raw_uri, processed_uri, root_uri, test=False, use_tf=False):
"""Run an experiment on the ISPRS Potsdam dataset.
... | [
"lewfish@gmail.com"
] | lewfish@gmail.com |
198f188e62ceb56ee34ba2c6a0977e5976402eb1 | 12ecf8911eeb150afee3925e1d3b02713478ed10 | /GenomeDecrypter/modeOneMeasureTime.py | ef860e9aee8dd9d1e201452de2d637aa0d196892 | [] | no_license | dimitreortt/Iniciacao-Cientifica---Biologia-Computacional | cbf1adfb766f9e7453690e6fe03f3f093b167caf | 74a933f756d2ea35f25224d5d9c957b15db50c64 | refs/heads/master | 2021-01-01T22:23:58.566605 | 2020-02-09T20:52:57 | 2020-02-09T20:52:57 | 239,368,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,107 | py | import sys
import os
from mpi4py import MPI
#from modeOne_paralelo_ops import *
import MOops.modeOne_paralelo_ops as ops
import MOops.results as results
comm = MPI.COMM_WORLD
size = comm.Get_size()
rank = comm.Get_rank()
#rank = 0
if rank == 0:
print ('o numero de comm.size eh: %d' % size)
outputDir = os.getcwd(... | [
"dimiortt@gmail.com"
] | dimiortt@gmail.com |
c1596616ba13010400e6d2581bcc6100afca0493 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_10_01/operations/_maintenance_configurations_operations.py | 1ff70644846346ec7ed89b8078257c9d68991e1e | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 26,102 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | noreply@github.com |
e7b69c6f075b17d67552da7d91dd5b80b77ed235 | 5f0eeef355fa84b165d4e0707e8874755cc03259 | /chp02_forces/Exercise_2_10_attractrepel/Attractor.py | b265f28a642f9d31b8c7540541527dd188cd2d56 | [] | no_license | kidult00/NatureOfCode-Examples-Python | 5835fbed114f3991b9986852f31d29a0a46d7e53 | 42461590deebbe305d5815ff0d207ff974335ad5 | refs/heads/master | 2021-05-11T04:47:53.999705 | 2018-03-07T15:54:12 | 2018-03-07T15:54:12 | 117,946,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,195 | py | # The Nature of Code - Python Version
# [kidult00](https://github.com/kidult00)
# A class for a draggable attractive body in our world
# Attraction = G * M1 * M2 / Distance^2
class Attractor(object):
def __init__(self):
self.mass = 10.0 # Mass, tied to size
self.g = 1.0 # Gravitational Constan... | [
"sysulj@gmail.com"
] | sysulj@gmail.com |
0f4fc7fbb6095bba090fe5261983d14f9663c9f0 | a0d26a8f908d1cd23495d2a838764ac58deeb0eb | /Week8/Date.py | 264681158473ffaa0d3d8fad169851704f2bc91a | [] | no_license | NOSC1985/UniversityWorkshopsCP1404 | 69dd606e0b6011300d7a3c93b5208a749f51c0ef | 4be286d065c9f796280b247365157077834f5413 | refs/heads/master | 2021-01-21T14:23:50.907064 | 2016-06-15T09:40:39 | 2016-06-15T09:40:39 | 58,850,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,923 | py | """
Class: Date
Author: Nicholas Stanton-Cook
Program Set: Week eight Workshop Tasks
This Class will store information about calendar Dates and will include the following information.
-day_of_month
-month_in_year
-year
Includes the following Methods
add_days(self, amount)
This method will increase the calendar days ... | [
"nicholas.stantoncook@my.jcu.edu.au"
] | nicholas.stantoncook@my.jcu.edu.au |
aa57d25f4f98ea632dc3ad4e479ab2f02967e662 | 2491620e581d8a5c20c721427b0c91625468bacd | /todo/models.py | 6bbaed49091bf0151651b13771c85fa23a235acb | [] | no_license | gaofen355/djtodo | 48e20e356158b52cb90b8291cb649e41f22b8e47 | a4d1d2538bccfddcc3d436ff506c1d3ec444f29e | refs/heads/master | 2023-01-28T00:22:24.328288 | 2020-12-10T12:37:05 | 2020-12-10T12:37:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | from django.db import models
PRIORITY = (('danger', 'high'), ('info', 'normal'), ('success', 'low'))
class TodoModel(models.Model):
title = models.CharField(max_length=100)
memo = models.TextField()
auther = models.CharField(max_length=100)
priority = models.CharField(
max_length=50,
... | [
"gao.fen@leadinge.co.jp"
] | gao.fen@leadinge.co.jp |
44c0b71d24dbf1b79651671039505c6dcec3cb4b | 26b2fb06a74a4bc5a3ad22ac456fcf25f304b8c2 | /array/findDiagonalOrder.py | 5b666dbbba532dca05e7cd5ac983a1ab9fa1c652 | [
"MIT"
] | permissive | ifwrite/algorithm | 8c2875400c85804884d73af0ccd466581f1583e6 | 1f2a3a7d25ebe5fd317fdde8235197138b086f89 | refs/heads/master | 2022-01-28T09:03:07.277655 | 2019-05-07T09:30:30 | 2019-05-07T09:30:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | class Solution:
def findDiagonalOrder(self, matrix):
"""
498. Diagonal Traverse
https://leetcode.com/problems/diagonal-traverse/
"""
if not matrix: return []
i, j, k = 0, 0, 1
w, h = len(matrix), len(matrix[0])
ans = []
for x in range(w * h):
... | [
"swifterfit@gmail.com"
] | swifterfit@gmail.com |
504153549247c489d9a2d6456727360a899b2db8 | 119febf1dd0263bacde9ea5f8105b12d800cdc5a | /migrations/versions/fb7cd547da7a_.py | 07f65f2619bd957782b1725302028faf5dfa3106 | [] | no_license | bogeresiraje/cinemax | b677682c27fe42c6377fcded8fbf8ba734bd528c | aaea20d06220a2a45cdc43df082d922deec97919 | refs/heads/master | 2020-04-06T10:34:03.043888 | 2018-11-14T11:29:46 | 2018-11-14T11:29:46 | 157,384,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | """empty message
Revision ID: fb7cd547da7a
Revises: bd51c8ed0c45
Create Date: 2018-11-02 18:03:24.126600
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'fb7cd547da7a'
down_revision = 'bd51c8ed0c45'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"hannzjavas@gmail.com"
] | hannzjavas@gmail.com |
7d6fcce96473e7cf43c76ca8bf3a9c710adf3912 | c951c43a6edeaadd824c4da2be5636d5ff4c89c1 | /sharppy/io/nucaps_decoder.py | 307ef5abfc0a3ec4d98d4f933116465353105922 | [
"BSD-3-Clause"
] | permissive | wcarthur/SHARPpy | 3e9d723835b2310ca0cb7cfa88f4b8e955dbbec3 | 357a14e87b656723204dba03cb60be031201b141 | refs/heads/master | 2023-08-17T05:45:03.900874 | 2022-07-15T21:07:01 | 2022-07-15T21:07:01 | 241,231,994 | 0 | 0 | NOASSERTION | 2020-02-17T23:46:55 | 2020-02-17T23:46:54 | null | UTF-8 | Python | false | false | 4,654 | py |
import numpy as np
import sharppy.sharptab.profile as profile
import sharppy.sharptab.prof_collection as prof_collection
from .decoder import Decoder
from sutils.utils import is_py3
try:
from StringIO import StringIO
except ImportError:
from io import BytesIO
from datetime import datetime, timedelta
__fmtna... | [
"jeff.szkodzinski@gmail.com"
] | jeff.szkodzinski@gmail.com |
61d4cb8321da42565846731f5508d076faf517b3 | 79b3f4fc9795addb1b581613d1183d6c0c3332e9 | /evaluation/ruby/first_run_gear_images_without_cache.py | c442aff97873cfc685b1316387f69fe357e63b09 | [
"Apache-2.0"
] | permissive | seveirbian/gear-framework | 2da2cdff683df3b8775857218835fd69f5fd12ef | 8d3529a9bf42e652a9d7475c9d14e9a6afc69a76 | refs/heads/master | 2022-06-24T18:24:24.871336 | 2019-11-20T07:03:35 | 2019-11-20T07:03:35 | 171,786,603 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,337 | py | import sys
# package need to be installed, pip install docker
import docker
import time
import yaml
import os
import random
import subprocess
import signal
import urllib2
import shutil
import xlwt
# package need to be installed, pip install elasticsearch
from elasticsearch import Elasticsearch
auto = False
private_r... | [
"bianshengwei@gmail.com"
] | bianshengwei@gmail.com |
9b0612a4597a28b9bfac2f4dc745eb4104ab302c | 384d0be5ac54b306b945cf38c10d9b0a44c975ea | /devstack/tools/uec/meta.py | 5b845d81a69b19773c66ea4fb61a1a9065a88c47 | [] | no_license | ashokcse/openstack-bill | 05ae313637b3cfecba946d2a9b32e8c7609fc721 | 1a3d7575d4b341f64fa1764ed47e47a7504a9bcc | refs/heads/master | 2021-01-18T14:05:24.696165 | 2012-09-12T11:29:20 | 2012-09-12T11:29:20 | 5,424,267 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | import sys
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from SimpleHTTPServer import SimpleHTTPRequestHandler
def main(host, port, HandlerClass = SimpleHTTPRequestHandler,
ServerClass = HTTPServer, protocol="HTTP/1.0"):
"""simple http server that listens on a give address:port"""
ser... | [
"ashokcse@live.com"
] | ashokcse@live.com |
d49ea65ea1d608754984e1885d288d255efbf3a9 | a8f615e6f2e00bcc72cd67475c5dd4a9ff0e6c14 | /imdemo/imdemo/pages/nodes/pin.py | 15058ecdfab3a662b795bd45d0d98c33f047f968 | [
"MIT"
] | permissive | KangWeon/arcade-imgui | fcf43f2399f56960b5249bd80e4e16d8639be8e2 | 24a8d423440cd9adaf3373a9c2492d04d8862062 | refs/heads/master | 2023-01-01T03:04:05.605347 | 2020-10-18T08:04:21 | 2020-10-18T08:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | class Pin:
def __init__(self, node, name):
self.node = node
self.name = name
self.x = 0
self.y = 0
def set_position(self, pos):
self.x, self.y = pos
def get_position(self):
return (self.x, self.y)
def draw(self):
pass
class Input(Pin):
pass... | [
"kurtisfields@gmail.com"
] | kurtisfields@gmail.com |
4e377d1f7248561c289f1ac5873fcfb9141ac04e | 1b0307d05796d32980685633a4aba60023cdbe9e | /models.py | 13c690a6b69843810dd87dbd2f36dc93ffe4c9fe | [] | no_license | LBWright/fun-flask | b6512279337d6272f6d3968af10198e93211f7a0 | db88e1b1fcedc465c86238fedbd3757ab31b82d7 | refs/heads/master | 2020-04-08T12:44:33.133699 | 2018-11-27T15:43:19 | 2018-11-27T15:43:19 | 159,359,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from app import db
class BlogPost(db.Model):
__tablename__ = 'posts'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
title = db.Column(db.String, nullable=False)
description = db.Column(db.String, nullable=False)
def __init__(self, title, description):
self.title = title... | [
"logan.wright@valic.com"
] | logan.wright@valic.com |
e64d6d01efc28836c6313cd98f7361ab953147d2 | 6a81e51745fc9598d24fb51e8a3d817c707435d7 | /jornalismo_de_dados_V2.0/portal/migrations/0001_initial.py | 4784abad8d02bb8d2bed218bee03d3f27c90b2db | [] | no_license | bmedeirosneto/TacProgWeb | fbd7ecb9191ef2703580edc9300d15ee71d37058 | 1daeda3b97bb901bd4f69d649c1d735c3509d9de | refs/heads/master | 2021-12-03T21:19:58.212572 | 2021-08-25T12:35:36 | 2021-08-25T12:35:36 | 226,856,253 | 0 | 13 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # Generated by Django 2.2.7 on 2019-11-26 01:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Tweet',
fields=[
('id', models.AutoField(au... | [
"pv.mizuno@hotmail.com"
] | pv.mizuno@hotmail.com |
bf288f5f82e3d595ef0789d16294877cdc8f90df | 29a188c4767ef5fcea15fb43b94ee97397b2e35c | /JobMightNewOne.py | cd2db690ad4241a255c104d25e69379f0074134c | [] | no_license | mariapot/FirstRepo | 29bc5d666101b4fcff08972dd168eed81b0f2fea | 9906ccbbaa94e66b35312af3c6f78e8d6fc686fc | refs/heads/main | 2023-01-24T18:45:40.617943 | 2020-12-04T20:53:32 | 2020-12-04T20:53:32 | 303,777,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# import time
driver = webdriver.Firefox()
driver.get("http://jobmight.com/session/emp/signin")
email_input: object = Web... | [
"noreply@github.com"
] | noreply@github.com |
a1c7925648cc2d66e5c4b229965f8d80d6f98026 | bc7315f96a6ac9c16a5bf0cdd9c2721b73639fc4 | /djangoLab/wsgi.py | f1946819f0bdb5d8e0db13d9a989690411a033f8 | [] | no_license | jeffersonchaves/django_lab | e87cb7841b8498665f0dc0a546a2553517faaf2f | 50fa4fd5ae62210af9c4e8b2be863af0eec2d5e2 | refs/heads/master | 2020-05-02T22:43:32.710134 | 2019-03-28T17:37:49 | 2019-03-28T17:37:49 | 178,260,141 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for djangoLab project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"jeffersong.s@hotmail.com"
] | jeffersong.s@hotmail.com |
bef4ed0adc518bd890aba6eb08948e612e7755b4 | 9eaa2c64a777bd24a3cccd0230da5f81231ef612 | /study/1905/month01/code/Stage1/day04/exercise02.py | 4527340f5bf057badc200a68d1b1fcc8edce6772 | [
"MIT"
] | permissive | Dython-sky/AID1908 | 4528932f2ca66b844d8a3fcab5ed8bf84d20eb0c | 46cd54a7b36b5f009974f2bbb7005a4ad440ca1a | refs/heads/master | 2022-04-14T12:23:30.426270 | 2020-04-01T18:05:19 | 2020-04-01T18:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | """
一张纸的厚度是0.01mm
对折多少次厚度能超过珠穆朗玛峰(8844.43米)
"""
thickness = 0.01 / 1000
count = 0
while thickness <= 8848.43:
thickness *= 2
count += 1
# print(thickness)
print("一张纸对折{}次能超过珠穆朗玛峰".format(count))
| [
"dong_1998_dream@163.com"
] | dong_1998_dream@163.com |
23ecb343416fabc155c73a1bb540335f8d9e39bc | 352e6a9e339a691d8d658732016b0c38b736946c | /lab1/lab1.py | 9a610d5946e6d7bfe61d9f6f1da688948096157b | [] | no_license | guapstudent1337/COS | 16355d429f8353d88e77c6a687ea20c2e06bc46c | cdc5f55da2eb36824692803820b68e66a639325e | refs/heads/master | 2022-04-19T01:41:16.615930 | 2020-04-21T11:58:49 | 2020-04-21T11:58:49 | 257,057,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,075 | py | def split_signals(signal_amplitudes):
"""
Ищет начала и концы сигналов
:signal_amplitudes: амплитуды сигнала
:returns: словарь с началами и концами сигналов
"""
# Ищем отдельные сигналы
count = 0
start_signal = 0
end_signal = 0
start_end_siganl_dots = {}
is_siganl_detected... | [
"guapstudent1337@users.noreply.github.com"
] | guapstudent1337@users.noreply.github.com |
b197533d33ff3b4d9f3b749b5dd0b0c867975e10 | d913554b362cbe96cbaa54aad1d6008242235462 | /textsnipet/textsharing/admin.py | 9b2b37dd4e8026d11d5f0bc0c20f3c1f6ae6fe9f | [] | no_license | pavanbhole123/sample-app | 8b92c61a7faaf0da1f58ca9df07ee7a584326c2c | 9d9341130bc7bf4d7df85099b314bf6ee80cee2a | refs/heads/master | 2023-04-07T15:49:44.179676 | 2021-01-05T14:51:08 | 2021-01-05T14:51:08 | 356,517,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from django.contrib import admin
# Register your models here.
from .models import TextInfo
admin.site.register(TextInfo) | [
"pavan.bhole@fixstream.com"
] | pavan.bhole@fixstream.com |
2f93202632a69772d24c30765753aca99416cc21 | f5470f3ad79e7a049d0394d20525609f7be20dd3 | /dev/test/test_array_products.py | f33fbfab8098e9fcc963fcb0e1dd0efcffe95872 | [] | no_license | AutomatedDevOwl/array-products-python-task | 23711514cce3fa4b1fa298a2aa2ecafcab39cff1 | 66e5f03c1f1415139d6b61ba06d2ea8c6981c6f3 | refs/heads/master | 2020-07-13T03:33:00.370767 | 2019-08-28T16:55:25 | 2019-08-28T16:55:25 | 204,978,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | import sys
import pytest
from .test_case_array_products import TestCaseWebHost
class TestWebHost(TestCaseWebHost):
def test_site88(self, example_fixture):
# Print example pytest fixture.
sys.stdout.write('hello world')
| [
"noreply@github.com"
] | noreply@github.com |
7082e9376a128de6d7830ad8452ef3ec978f1464 | fa44a1b7110d93c2ea02e99aae727f999d064135 | /Vcenter/Cluster.py | eec5680d4bafda6a539f1c2679d9c1086635103b | [
"Apache-2.0"
] | permissive | 2spmohanty/NSX-V | 47469856b8522c30c3fe9a8eb6fb691e266b34c4 | f5bdbaf28808d665653a400a705980174f71b1db | refs/heads/master | 2020-12-09T18:59:05.399097 | 2020-01-12T12:54:23 | 2020-01-12T12:54:23 | 233,389,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,472 | py | __author__ = 'smrutim'
from pyVmomi import vim
#from logging import error, warning, info, debug
from Datacenter import GetAllClusters,GetClusters,GetCluster
from VDS import wait_for_task
import time
import re
import simpleTimer
#import logging
#from threadPool import ThreadPool
"""
For Any Code changes.
Please update... | [
"2spmohanty@gmail.com"
] | 2spmohanty@gmail.com |
6bd597aadeb0f3d7450abea0a689fad71da320c9 | 4f80e032b697644c57afd6475eada5c2253bcb7a | /7.demo app/backend/landmark_detection.py | 67e13092d175e0a7ae8a56ec97f116b3534ba7ad | [] | no_license | DriverDrowsinessDetection/driver_drowsiness_detection_public | 349040079d0e73af1d756a557d61e4cdc5afc8ff | a01cf18532716e6ba0ca36416ec5046c559af7e0 | refs/heads/master | 2023-03-09T14:02:15.430008 | 2021-02-28T18:04:23 | 2021-02-28T18:04:23 | 342,894,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,515 | py | import math
from imutils import face_utils
import time
import dlib
import cv2
from numpy import mean
import numpy as np
from scipy.spatial import distance as dist
import tensorflow as tf
# define three constants.
# You can later experiment with these constants by changing them to adaptive variables.
EAR_THRESHOLD = ... | [
"driverdrowsinessdetection2020@gmail.com"
] | driverdrowsinessdetection2020@gmail.com |
68067a23ea3aef03df8310a252dd5a13741112e9 | 4ecf8c53154656308b4c9397bbaa02fd77a201d7 | /cuadernosite/accounts/serializers.py | d3991381bd67589c2e05fc09efcb0189cc1f8fe9 | [] | no_license | sebastiendossot/cuaderno-project | 6acfe148e6dd957b1979b04b74b14c4a3272c17f | 727705dff0fcd8013af3a66d9e50222ea042d6e0 | refs/heads/master | 2023-01-09T18:42:35.171533 | 2020-01-31T22:23:20 | 2020-01-31T22:23:20 | 237,331,890 | 0 | 0 | null | 2022-12-06T23:10:08 | 2020-01-31T00:19:51 | JavaScript | UTF-8 | Python | false | false | 1,029 | py | from rest_framework import serializers
from django.contrib.auth.models import User
from django.contrib.auth import authenticate
from cuadernos.models import Cuaderno
# User Serializer
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'username', 'email')
# Register ... | [
"sebastien.dossot@gmail.com"
] | sebastien.dossot@gmail.com |
42792d1e385efd9b78b83f7eeaa72bf3322ff1a7 | c035ed90998ac943885f8f615991df490f041869 | /ex098.py | 265d8a358a209a59fc0d7292c18499a1630ed7fb | [] | no_license | ThiagoFTelles/python_course | 311b7370d4c7c901c205f8c8fc1cb8eaa409c4b7 | 0f74bbc8c2e16f28798131b1b8645019dd7e82eb | refs/heads/main | 2023-06-14T11:01:34.568936 | 2021-06-28T00:44:07 | 2021-06-28T00:44:07 | 380,862,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | """
Faça um programa que tenha uma função chamada contador(), que receba três parâmetros: início, fim e passo. Seu programa tem que realizar três contagens através da função criada:
a) de 1 até 10, de 1 em 1
b) de 10 até 0, de 2 em 2
c) uma contagem personalizada
"""
from time import sleep
def contador(i, f, p):
... | [
"atendimento.telles@gmail.com"
] | atendimento.telles@gmail.com |
311b252fcafda3be30a0ef65d230b9e80034b49b | 4b3d25e20d710442eb63ed0a655c1ae1cfe68303 | /admin/xstat.py | f3ab436a10a6b2750beeccd42aad970000f8aaa4 | [
"ISC"
] | permissive | openafs-contrib/afs-tools | ad720ae6c56a9500734eed2d84d11b7f58f01f67 | 6509810b8c66454e78514c78bb30d12281067edb | refs/heads/master | 2022-10-21T03:06:27.350718 | 2022-10-11T19:19:55 | 2022-10-14T17:56:01 | 6,767,969 | 5 | 6 | ISC | 2021-07-08T13:39:37 | 2012-11-19T21:54:11 | Perl | UTF-8 | Python | false | false | 10,758 | py | #!/usr/bin/env python
# Copyright (c) 2014-2017 Sine Nomine Associates
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of cond... | [
"mmeffie@sinenomine.net"
] | mmeffie@sinenomine.net |
8da13cd142ec6b62a14d15b73cfe977ec43475ff | a97fb0584709e292a475defc8506eeb85bb24339 | /source code/code/ch203.py | 3aa2f981b9a6399e15c03b0b1aeb0e4e562fef35 | [] | no_license | AAQ6291/PYCATCH | bd297858051042613739819ed70c535901569079 | 27ec4094be785810074be8b16ef84c85048065b5 | refs/heads/master | 2020-03-26T13:54:57.051016 | 2018-08-17T09:05:19 | 2018-08-17T09:05:19 | 144,963,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #!/usr/bin/env python
#coding=utf-8
from __future__ import print_function
## 宣告x, y, z變數,各分別為tuple, list, dict資料型態。
x, y, z = (), [], {}
## 雖然都是空的結構,但是它們之間並不相等。
if x == y == z:
print(x, y, z, "相等")
else:
print(x, y, z, "不相等")
if x == None:
print(x, " 相等 None")
else:
print(x, " 不相等 None")
if y == None:
... | [
"angelak.tw@gmail.com"
] | angelak.tw@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.