blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cfdc5c14013630e610a586b320bf708cda421dd0 | 871107e8ac9e7631057c9c9b02d3fd733e00fe2c | /Client/screens/introscreen.py | 602202fdfd03760e173b0f4593127a50fce4d43b | [] | no_license | jamesfowkes/Snackspace | 40993cfc26b23463939ebaa8fa37f666086be3c9 | d93633aaf25039b9a548b073e69d8f23c94b71e3 | refs/heads/master | 2018-12-30T10:56:48.786485 | 2013-10-24T20:49:04 | 2013-10-24T20:49:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,157 | py | """
introscreen.py
The first screen to be displayed when snackspace starts.
"""
from .displayconstants import Colours, Screens
from .screen import Screen
from .introscreen_gui import IntroScreenGUI
class IntroScreen(Screen, IntroScreenGUI):
""" Implementation of introduction screen """
def __init__(self, wi... | [
"jamesfowkes@gmail.com"
] | jamesfowkes@gmail.com |
3dd8660eed53064c4439f1f5d6692774495f1ed8 | 4e139c024f09eb547304c2cb2d1399a334f66c92 | /wikigen/settings.py | 615f81170857207c997a2aa14e95fc6fc85ecc86 | [] | no_license | epochx/PEER | 04dd77fd638858fe285c9fcee3ad6a4ccd283e9a | de52c45d121b63dee28f72b68de2625c8ec2bb66 | refs/heads/master | 2023-02-27T15:29:09.086756 | 2021-02-01T07:54:29 | 2021-02-01T07:54:29 | 264,897,876 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | #!/usr/bin/env python
# -*-coding: utf8 -*-
import os
CODE_ROOT = os.path.dirname(os.path.realpath(__file__))
HOME = os.environ["HOME"]
DATA_PATH = os.path.join(HOME, "data", "PEER")
SPLITS_PATH = os.path.join(DATA_PATH, "splits")
EDITS_PATH = os.path.join(DATA_PATH, "edits")
RESULTS_PATH = os.path.join(HOME, "res... | [
"edison_marrese@hotmail.com"
] | edison_marrese@hotmail.com |
d6b5386e2ea175f5f51171bffa0c9efee0e4d949 | c9094a4ed256260bc026514a00f93f0b09a5d60c | /homeassistant/helpers/debounce.py | 23727c2a00fe774c1bdc55970457e11e4ddccf7a | [
"Apache-2.0"
] | permissive | turbokongen/home-assistant | 824bc4704906ec0057f3ebd6d92788e096431f56 | 4ab0151fb1cbefb31def23ba850e197da0a5027f | refs/heads/dev | 2023-03-12T05:49:44.508713 | 2021-02-17T14:06:16 | 2021-02-17T14:06:16 | 50,231,140 | 4 | 1 | Apache-2.0 | 2023-02-22T06:14:30 | 2016-01-23T08:55:09 | Python | UTF-8 | Python | false | false | 3,861 | py | """Debounce helper."""
import asyncio
from logging import Logger
from typing import Any, Awaitable, Callable, Optional
from homeassistant.core import HassJob, HomeAssistant, callback
class Debouncer:
"""Class to rate limit calls to a specific command."""
def __init__(
self,
hass: HomeAssista... | [
"noreply@github.com"
] | turbokongen.noreply@github.com |
81608d1980eaa0bcd10242f77e99c0a5aad22b73 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-apm/huaweicloudsdkapm/v1/model/delete_app_request.py | 7b641893dbfb446555ef0b94333f7954ceaf7ae2 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,007 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DeleteAppRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute n... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
cbd694d67c5985c58ecb43d81a9b857bc29e0727 | 1afa1b1929d1cd463cd9970174dd58ce2ca6eb1e | /configs/mobilenet_v3/lraspp_m-v3s-d8_scratch_512x1024_320k_cityscapes.py | a5507b4beaae675a1e5075a8fbd154ca5b5265c5 | [
"Apache-2.0"
] | permissive | CAU-HE/CMCDNet | 2328594bf4b883384c691099c72e119b65909121 | 31e660f81f3b625916a4c4d60cd606dcc8717f81 | refs/heads/main | 2023-08-08T17:21:57.199728 | 2023-07-28T07:34:40 | 2023-07-28T07:34:40 | 589,927,845 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | _base_ = './lraspp_m-v3-d8_scratch_512x1024_320k_cityscapes.py'
norm_cfg = dict(type='SyncBN', eps=0.001, requires_grad=True)
model = dict(
type='EncoderDecoder',
backbone=dict(
type='MobileNetV3',
arch='small',
out_indices=(0, 1, 12),
norm_cfg=norm_cfg),
decode_head... | [
"flyhxn@qq.com"
] | flyhxn@qq.com |
df348e14d755b39f5502493836abc26b73a94792 | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python3/324.Wiggle Sort II(摆动排序 II).py | d276668f063a9cc860cd18310872f77ccd38876f | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | """
<p>Given an unsorted array <code>nums</code>, reorder it such that <code>nums[0] < nums[1] > nums[2] < nums[3]...</code>.</p>
<p><b>Example 1:</b></p>
<pre>
<strong>Input: </strong><code>nums = [1, 5, 1, 1, 6, 4]</code>
<strong>Output: </strong>One possible answer is <code>[1, 4, 1, 5, 1, 6]</code>.</pre... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
74780552abdcb29cbb2ff55c2bfafc323a3c67a6 | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/PostenMapping/Model/Post060371615.py | f8c41c27b0114312043dc81cf23f0e87d9548eb3 | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 4,410 | py | # coding=utf-8
from OTLMOW.PostenMapping.StandaardPost import StandaardPost
from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping
# Generated with PostenCreator. To modify: extend, do not edit
class Post060371615(StandaardPost):
def __init__(self):
super().__init__(
nummer... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
27bbcd1397596207d47f148c356105873636a5e2 | b76ae361ab277923d0fed969b795074a1ecb400b | /project/python_fullstack/day13/property.py | 77fec9d5cf94c99f3b42f8fbcc1616c6cbd3e6c0 | [] | no_license | RobotNo42/old_coed | 995df921e31d5a9b65f1609380235330edb546ad | 59f82e5d58965dd5c6340f4daf4ef43d1d311252 | refs/heads/master | 2021-07-18T00:07:33.450173 | 2020-06-16T13:51:11 | 2020-06-16T13:51:11 | 180,384,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | class People:
def __init__(self, name, age, weight, height):
self.name = name
self.age =age
self.weight = weight
self.height = height
@property
def dmi(self):
d = self.weight / (self.height ** 2)
return round(d, 2)
g = People('wzc', 20, 75, 1.7)
print(g.dmi... | [
"chengge1124@gmail.com"
] | chengge1124@gmail.com |
22acc2dddc23d9c0fc2317a07bff8b04cb194b7e | 580f9928174741d07720141107879878091a2640 | /dlib-example/face-detector/cnn_face_detector.py | 01f7d8ae4592d4d0937b596b43b56ea97a2940fc | [] | no_license | zengzhiying/machine_learning | 08aa323e4bcf42f208ce81297249ceed9818844c | 7b6a3c19580f000b1fa4ae54305749c3857b91a6 | refs/heads/master | 2023-02-27T20:08:43.384000 | 2021-02-07T14:20:48 | 2021-02-07T14:20:48 | 99,288,444 | 3 | 1 | null | 2020-10-12T22:02:52 | 2017-08-04T01:07:32 | MATLAB | UTF-8 | Python | false | false | 3,819 | py | #!/usr/bin/python3
# The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt
#
# This example shows how to run a CNN based face detector using dlib. The
# example loads a pretrained model and uses it to find faces in images. The
# CNN model is much more accurate than the HOG bas... | [
"yingzhi_zeng@126.com"
] | yingzhi_zeng@126.com |
5523a954cd910bce70946a3ab248b803adcc2d11 | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/dash_html_components/Tbody.py | 6c69bce7274c8ffc23ad59c3a25b5f69c48d2621 | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 5,310 | py | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Tbody(Component):
"""A Tbody component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional): The children of this component
- id (string; optional): ... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
ad965770425ffb7514c7eae370f4dda72d70789c | a29b8d6ae6642ef80d04ae99d721b703de06db69 | /maro/rl/rl_component/rl_component_bundle.py | cd18accdf0d03c47cf335a0de68f3444b0a88656 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/maro | 6aab1a4e86fddabf7f242f0d1020d985a5f7a5f3 | b3c6a589ad9036b03221e776a6929b2bc1eb4680 | refs/heads/master | 2023-08-24T16:52:38.250279 | 2023-05-15T04:31:58 | 2023-05-15T04:31:58 | 230,389,247 | 764 | 158 | MIT | 2023-07-25T20:59:06 | 2019-12-27T06:48:27 | Python | UTF-8 | Python | false | false | 4,598 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from typing import Any, Dict, List
from maro.rl.policy import AbsPolicy, RLPolicy
from maro.rl.rollout import AbsEnvSampler
from maro.rl.training import AbsTrainer
from maro.rl.workflows.callback import Callback
class RLComponentBundle:
""... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
cc0c55576ca8c77495cb64ff56021fd3e2852733 | e3d9592ff05f225433e1689ec70253043a360ee2 | /hackerrank/python/regex_and_parsing/roman_numerals.py | a754d0a19b5448bb11bc357181bcb56b1a1b9310 | [] | no_license | jreiher2003/code_challenges | cad28cac57b6e14ffd30d2b7fe00abdba8b3fa47 | ac03c868b28e1cfa22d8257366e7a0f8f757ad8c | refs/heads/master | 2020-04-16T02:25:26.267418 | 2016-12-12T01:23:56 | 2016-12-12T01:23:56 | 58,969,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | import re
pattern = "^M{0,3}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$"
if re.search(pattern, "MMMM"):
print "True"
else:
print "False" | [
"jreiher2003@yahoo.com"
] | jreiher2003@yahoo.com |
5ae87f822d3e84a9ad09251271d260615c2fb3e0 | 913674143b4cbc8df4b93975169758c17e4d7972 | /MyScrapyTencent/MyScrapyTencent/pipelines.py | 58a79ba46c011cefb115bb334ef40f9692f9d9c6 | [] | no_license | HeywoodKing/Scrapy-Examples | e8dca55767537609d5a6e5ba426c58dbb4669610 | e6e5415cc42c234c25ce43ad0c4227364798af3c | refs/heads/master | 2020-05-16T12:51:25.206950 | 2019-04-26T12:25:34 | 2019-04-26T12:25:34 | 183,056,875 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
class MyscrapytencentPipeline(object):
"""
功能:保存item数据
"""
def __init__(self):
self.filena... | [
"opencoding@hotmail.com"
] | opencoding@hotmail.com |
6da511645e7a197feda5f07313d5b595c8da81ab | bb726031eb8ab8e690786a766b679f0666695c10 | /urlhunter/blueprints/main.py | d01b118d39775b17480b5a7e51a603c41b8cc29b | [] | no_license | nsdown/urlhunter | 01fd9348fc36b2e7f6cebb3488ea5fb021e54fef | 1181d89d2f8c731e9693ec14a2fc4beee5b85d71 | refs/heads/master | 2020-04-13T01:18:56.216614 | 2018-12-23T04:17:52 | 2018-12-23T04:17:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,085 | py | import requests
from more_itertools import flatten
from flask import Blueprint, render_template, flash, redirect, url_for, request, current_app, Markup
from flask_login import login_required, current_user
from urlhunter.forms import URLForm, RegexForm
from urlhunter.utils import links
from urlhunter.models import Url, ... | [
"2582347430@qq.com"
] | 2582347430@qq.com |
b93b4f5be48c893c85210950d92f8401699b04e8 | 3e7acb0962da48f29875d581c424ebbd3a98437c | /test/test_timeslotpage.py | cff39a4c93196a3844ea72a47ba486249dc72d75 | [] | no_license | crazypoo/geniusbar-reserver | ae02373bfaf24c5fdcd230c747c162ef259c2396 | b5d1981b59d998d8f110c87e8c5aa7ebe067f96c | refs/heads/master | 2021-01-21T08:14:52.607615 | 2014-12-13T05:41:14 | 2014-12-13T05:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import sys
if '../' not in sys.path:
sys.path.append('../')
from sites.apple_main import AppleGeniusBarReservation
from sites.apple_genius_bar.store_page import GeniusbarPage
import sys
reload(sys)
import os
sys.setdefaultencoding('utf-8')
cwd = os.path.abspath(os.getcwd())
# sites
sys.path.append(os.path.join(cwd... | [
"flowinair@gmail.com"
] | flowinair@gmail.com |
dda50d0d9bf5a626f3b2921adbcb876a38c06129 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/temp_man/lombok_database_family/idea_family/game_head.py | 8f2901d0914575e6572ca848757d9392e89f1bf6 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.Translator.API;
namespace CSharp_TranslateSample
{
public class Program
{
private const string SubscriptionKey = "774041bc63961f2d2f59c34b29325acd"; //Enter here the Key from your Microsoft Translator... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
656c9f58562a43a8ffa99171fc48c4ef5fad535a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/177/usersdata/271/100509/submittedfiles/pico.py | 392e7558a7b348a1605eca85241f40ce1d490a13 | [] | 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 | 1,668 | py | # -*- coding: utf-8 -*-
#FUNÇÕES
def crescente(lista) :
if len(lista)==1 :
return(False)
cont = 0
for i in range(0,len(lista),1) :
if (i==0) :
if(lista[i]<lista[i+1]) :
cont = cont+1
elif (i==len(lista)-1) :
if lista[len(lista-2)] < lista[len(l... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
567deda66b4abddd9fbccea623c2fb3c285bc502 | 21dd7d56c370ea9a02b66654525fd96a398a9e49 | /apps/userprofile/migrations/0012_auto_20150706_1530.py | f76414aec2906f0309739ccb3346f2edf38718b3 | [] | no_license | hqpr/fame | fdad5d03bf9ee7ca31ae8a4701ff05bafd49540f | 8b77e3a822ae70ee6d79a8003e1d9f9bc5ba8355 | refs/heads/master | 2023-01-14T16:58:46.533090 | 2015-08-31T15:37:09 | 2015-08-31T15:37:09 | 35,205,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('userprofile', '0011_auto_20150705_1058'),
]
operations = [
migrations.AlterField(
model_name='us... | [
"adubnyak@gmail.com"
] | adubnyak@gmail.com |
a3720504b0405edeb5fa1836f9f6c46354683a49 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/kombu/utils/limits.py | 833cb96a47fce4401f66851a80cdda399eb46c6a | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 2,195 | py | """
kombu.utils.limits
==================
Token bucket implementation for rate limiting.
"""
from __future__ import absolute_import
from kombu.five import monotonic
__all__ = ['TokenBucket']
class TokenBucket(object):
"""Token Bucket Algorithm.
See http://en.wikipedia.org/wiki/Token_Bucket
Most of th... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
395d5d325531f6a44e47ababe037cd9701a736b0 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/artifacts/files/__init__.py | efc655f736b989835c4478beee69c049eda522b7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 1,222 | py | # -*- coding: utf-8 -*- #
# Copyright 2022 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
d28b2ba189d4cd74c177b25d287aeae3ef6cade1 | 74091dce735f281188d38d2f00d1a68e1d38ff7a | /pytest_udemy_params_datadriven_crossbrowser/tests/conftest.py | 8e184dcf876ae8b91e9a90573978768b1f73f6a5 | [] | no_license | nbiadrytski-zz/python-training | 96741aa0ef37bda32d049fde5938191025fe2924 | 559a64aae2db51e11812cea5ff602f25953e8070 | refs/heads/master | 2023-05-07T04:08:23.898161 | 2019-12-10T12:12:59 | 2019-12-10T12:12:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from pytest import fixture
from selenium import webdriver
import json
data_path = 'test_data.json'
def load_test_data(path):
with open(path) as data_file:
data = json.load(data_file)
return data
@fixture(params=load_test_data(data_path))
def tv_brand(request):
data = request.param
retu... | [
"Mikalai_Biadrytski@epam.com"
] | Mikalai_Biadrytski@epam.com |
e42d622c1426a68b75b5c9503972b27ca2794746 | f04089bf7df2b7cd4058f8df3ffe747c349afd60 | /multiply_strings.py | 77836126e3b8f258f7bf2527d3d6e09eaf5f1475 | [] | no_license | dbialon/LeetCode | d2a674f7c5ba51a3714ca46026d2a5d37681919d | d28c63779212519fe38e98b9f0e0cbf48137bc43 | refs/heads/master | 2023-01-12T06:27:32.516504 | 2020-11-18T11:35:00 | 2020-11-18T11:35:00 | 259,928,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | # https://leetcode.com/problems/multiply-strings/
# given two non-negative integers num1 and num2 represented
# as strings, return the product of num1 and num2, also
# represented as a string.
def multiply(num1: str, num2: str) -> str:
if num1 == "0" or num2 == "0":
return "0"
table = {"1": 1, "2": 2,... | [
"dbialon79@outlook.com"
] | dbialon79@outlook.com |
be74904cdc25d4d4c7cf0e60588433a0cca13e45 | c7cbbd4b1c1e281cef5f4a0c4e3d4a97cee2241e | /froide/foirequest/feeds.py | f7f5013a62598bd972ecd4613d1f94601890043d | [
"MIT"
] | permissive | manonthemat/froide | 078cf78a6eb35226512c0bdfa2ac9043bcc81ad9 | 698c49935eaf2e922f3c9f6a46af0fd545ccbbbb | refs/heads/master | 2020-08-14T08:19:36.215473 | 2019-10-14T19:43:16 | 2019-10-14T19:43:16 | 215,129,869 | 0 | 0 | MIT | 2019-10-14T19:35:49 | 2019-10-14T19:35:49 | null | UTF-8 | Python | false | false | 4,189 | py | import re
from django.conf import settings
from django.contrib.syndication.views import Feed
from django.utils.feedgenerator import Atom1Feed
from django.utils.translation import ugettext_lazy as _
from django.urls import reverse
from django.shortcuts import get_object_or_404
from .models import FoiRequest
from .filt... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
e68fc4550c477bbbfcb9e72f120f12025db3050e | 648411bd760b9c7018da516b4617b05a0d3a5dee | /core/config.py | 15bb43be748390910230122b73bbe541489e7487 | [
"Apache-2.0"
] | permissive | cartel32/ChefAPI | 6de457a4e4f7fd0a2123da1c97058565ccdcdc34 | bb622db1fb09feb85488438a6d840e0b6383b679 | refs/heads/main | 2023-06-09T15:09:27.923326 | 2021-06-26T02:03:38 | 2021-06-26T02:03:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | import secrets
from typing import Any, Dict, List, Optional, Union
from pydantic import AnyHttpUrl, BaseSettings, EmailStr, Field, HttpUrl, PostgresDsn, validator
class Settings(BaseSettings):
API_V1_STR = "/api/v1"
SECRET_KEY: str = secrets.token_urlsafe(64)
ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * ... | [
"yasserth19@gmail.com"
] | yasserth19@gmail.com |
d020b391aa17fab9770e8607e005440b02e93769 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Keras_tensorflow_nightly/source2.7/google/protobuf/internal/factory_test1_pb2.py | 8240f242a12b6b761056dc5e7317920be7dc0c1c | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | true | 7,816 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/protobuf/internal/factory_test1.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from googl... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
549bed9daf0f4ef8d0ed86767a77ca00430090ef | 5b70fbd53b534306c146ffb98a0f99d2343a948f | /src/Python/Problem587.py | 2ba944f8d8d9652b2e76c40f120339f18f824584 | [] | no_license | aniruddhamurali/Project-Euler | 1f4ff3aa1e9c4efbc2a85026821e19a28b5edf90 | 408b3098fbc98ff3954679602c0468ddb56ea0ac | refs/heads/master | 2020-03-20T23:07:22.178103 | 2018-07-27T01:40:46 | 2018-07-27T01:40:46 | 137,830,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | # Problem 587
# Answer: 2240
import math
import itertools
def main():
# The indefinite integral of (1 - sqrt(2x - x^2)) dx.
def integral(x):
t = x - 1.0
return t - (math.sqrt(x * (2.0 - x)) * t + math.asin(t)) / 2.0
lsectionarea = 1.0 - math.pi/4.0
for i in itertools.count(1)... | [
"aniruddha.murali@gmail.com"
] | aniruddha.murali@gmail.com |
f8772b8d3610eba283c33f7c31d167ed869482c9 | 7f29e2c30e047ec59fb104d4f0953a8a8bbead51 | /rb/complexity/rhythm/usage.py | 6c65f3db5628a3b48d6c2209ab3f4b4d85d86f6e | [
"Apache-2.0"
] | permissive | rwth-acis/readerbenchpy | 69597dc1f2d500aea2be49981799aa20a0e6ea68 | 1a070ae678f58ccd6f358c0802bdf0b3b3dde9d3 | refs/heads/main | 2023-07-17T11:57:25.507494 | 2021-09-03T12:49:10 | 2021-09-03T12:49:10 | 348,343,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | from rb.core.document import Document
from rb.core.lang import Lang
from rb.core.text_element_type import TextElementType
from rb.complexity.measure_function import MeasureFunction
from rb.complexity.rhythm.no_alliterations import NoAlliterations
from rb.complexity.rhythm.no_assonances import NoAssonances
# import n... | [
"karlydiamond214@gmail.com"
] | karlydiamond214@gmail.com |
e29ee6ad0af2ac05c635f6f43c64c1d6f67ddf13 | c9ab605cdd2dbf92c9de05768ade0ecf1718be02 | /api 활용/rest.py | 5edba3b8356a963deb8a80da2fff32a437fe3817 | [] | no_license | PyeongGang-Kim/TIL | 42d69308cf99d2e07644b51d7636e1b64551a697 | 8711501d131ee7d78fdaac544dda2008adf820a1 | refs/heads/master | 2023-01-12T21:10:38.027946 | 2021-10-23T07:19:48 | 2021-10-23T07:19:48 | 195,937,990 | 10 | 1 | null | 2023-01-07T11:25:30 | 2019-07-09T05:22:45 | HTML | UTF-8 | Python | false | false | 977 | py | import requests, json
def ans():
global data
data["yourAnswer"] = input()
def seturl():
global url
url = urlbase+res.json()['nextUrl']
r = []
data = {
"nickname": "구미1반김평강",
"yourAnswer":"1"
}
urlbase = "http://13.125.222.176/quiz/"
idx = "jordan"
url = urlbase+idx
header = {
"Accept"... | [
"pyeonggangkim@gmail.com"
] | pyeonggangkim@gmail.com |
aa790bc34441cd4186ce10350ab783afe7095ad8 | 1edd52cf197e5ae67b5939a3beb3e70761334e62 | /Notes/Notes/Udemy/Aws_boto3_refresh/Session-5-Waiters/tags1.py | 81cc86fb506d96deb89eae42df117690eaa4687a | [] | no_license | sandeepmchary/Devops_wordpress_Notes | bdcd85d526780d03c494ecb93e714e7ffe0a4d58 | ffd2092162073e1e7342c6066d023d04e6ca8c1c | refs/heads/master | 2022-06-18T21:33:02.471025 | 2022-06-12T11:14:47 | 2022-06-12T11:14:47 | 154,679,658 | 1 | 4 | null | 2022-05-19T16:59:57 | 2018-10-25T13:51:40 | HTML | UTF-8 | Python | false | false | 517 | py | import boto3
from pprint import pprint
ec2_re = boto3.resource('ec2',)
ec2_cli = boto3.client('ec2',)
response=ec2_cli.describe_tags()
values_list=[]
for each_in in ec2_cli.describe_instances()['Reservations']:
for each_res in each_in['Instances']:
for each_tag in response['Tags']:
values_list.append(each_tag)
... | [
"awssandeepchary@gmail.com"
] | awssandeepchary@gmail.com |
ae83b1bf593af03cf04cf0ad76ea4689908db278 | e3d061e3692c4003b616dfc9b7655ad7889b5b10 | /apps/strawberry_fields_listener.py | b3c6c3d0731862f381a18fc1bda242ac3335093e | [
"Apache-2.0"
] | permissive | nuzumco/blackbird | 515a84a40e4a98eefb18e7c98cbc358d848f45d9 | 1e78aa210d9c1acfabf12ee12d25b22bafbe51e1 | refs/heads/master | 2020-05-18T08:55:42.843764 | 2019-04-26T18:57:56 | 2019-04-26T18:57:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,349 | py | # Copyright 2019 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | [
"josh146@gmail.com"
] | josh146@gmail.com |
c8f7dcd011aa4533b5ba8dec9e3a4ed1b8232057 | 12362aa3c315e2b72ed29193ee24e3fd7f1a57db | /LeetCode/0780-Reaching Points/main.py | 0176d04c47bb9471fbfb6eb85d0b18ce9355da7a | [] | no_license | PRKKILLER/Algorithm_Practice | f2f4662352516965777605ccf116dd7945c4b94a | 73654b6567fdb282af84a868608929be234075c5 | refs/heads/master | 2023-07-03T23:24:15.081892 | 2021-08-09T03:55:12 | 2021-08-09T03:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | """
A move consists of taking a point (x, y) and transforming it to either (x, x+y) or (x+y, y).
Given a starting point (sx, sy) and a target point (tx, ty), return True if and only if a sequence of moves
exists to transform the point (sx, sy) to (tx, ty). Otherwise, return False.
Examples:
Input: sx = 1, sy = 1, ... | [
"dw6000@163.com"
] | dw6000@163.com |
d9633abec836d4892c3fe68ab2a30b5749261f2b | 7952f66758b685f4bf045c7eb28efa3a22412a89 | /백준/1922.py | d83d5726dbf2078356865eda4bbcbadf8e1a0325 | [] | no_license | PingPingE/Algorithm | b418fa13528c27840bb220e305933800c5b4c00a | 89a55309c44320f01d2d6fe5480181a4c5816fd2 | refs/heads/master | 2023-08-31T01:43:09.690729 | 2023-08-27T13:12:22 | 2023-08-27T13:12:22 | 172,465,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | '''
문제)
도현이는 컴퓨터와 컴퓨터를 모두 연결하는 네트워크를 구축하려 한다. 하지만 아쉽게도 허브가 있지 않아 컴퓨터와 컴퓨터를 직접 연결하여야 한다.
그런데 모두가 자료를 공유하기 위해서는 모든 컴퓨터가 연결이 되어 있어야 한다.
(a와 b가 연결이 되어 있다는 말은 a에서 b로의 경로가 존재한다는 것을 의미한다. a에서 b를 연결하는 선이 있고, b와 c를 연결하는 선이 있으면 a와 c는 연결이 되어 있다.)
그런데 이왕이면 컴퓨터를 연결하는 비용을 최소로 하여야 컴퓨터를 연결하는 비용 외에 다른 곳에 돈을 더 쓸 수 있을 것이다.
이제 각 컴퓨터를 연결하... | [
"ds03023@gmail.com"
] | ds03023@gmail.com |
037faa78b61a3f33646a5ddad2d55b313f992ef0 | f42863aac5aa5cf41fea07a155b3d24cdec94847 | /oop/system_split/main.py | 445d75ab1065151f742ef12ba46fb48c28a93c28 | [] | no_license | stanislavkozlovski/python_exercises | bd03a50fd724b0e084cb816560a69359a228358b | 6c8e75d692c92f15d42e71cbf6a9f8da6bf802cb | refs/heads/master | 2023-05-15T00:19:48.305862 | 2019-04-17T13:49:34 | 2019-04-17T13:49:34 | 64,744,975 | 3 | 2 | null | 2021-06-11T17:43:53 | 2016-08-02T09:48:16 | Python | UTF-8 | Python | false | false | 4,944 | py | import re
from hardware import PowerHardware, HeavyHardware
from software import ExpressSoftwareComponent, LightSoftwareComponent
class TheSystem:
def __init__(self):
self.hardwares = {}
def register_power_hardware(self, name, capacity, memory):
self.hardwares[name] = PowerHardware(name, cap... | [
"familyguyuser192@windowslive.com"
] | familyguyuser192@windowslive.com |
b8db621f5d1e3979942cd6b63d3b82486aabdd35 | ba602dc67ad7bb50133aeb312f3c6c54627b3dec | /data/3943/WA_py/518940.py | 3b0b14e911ecd75205e252df366bd906589fb946 | [] | no_license | Dearyyyyy/TCG | 0d21d89275906157372d775f33309ce337e6bc95 | 7b80de16de2d3f5d95a7c4ed95d45a9e38882e67 | refs/heads/master | 2020-12-27T23:19:44.845918 | 2020-02-04T01:59:23 | 2020-02-04T01:59:23 | 238,101,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | # coding=utf-8
q=[]
def order(n,begin,end):
global q
if begin>=end:
q+=n
else :
i=begin
for num in range(begin,end):
n[num],n[i]=n[i],n[num]
order(n,begin+1,end)
n[num],n[i]=n[i],n[num]
while True :
n=int(input())
if n==0:
break
... | [
"543271544@qq.com"
] | 543271544@qq.com |
e7eef688a513394c0ad13daa03a804f5f7b78d13 | 4610d0284416361643095ca9c3f404ad82ca63c2 | /src/sploitego/xmltools/__init__.py | 794eae10734f7233002fc04e4d2c183fdddf298b | [] | no_license | mshelton/sploitego | 165a32874d955621c857552fb9692ecf79e77b7e | 3944451a110f851a626459767d114569d80a158c | refs/heads/master | 2020-12-25T03:11:58.071280 | 2012-08-16T22:33:10 | 2012-08-16T22:33:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | #!/usr/bin/env python
__author__ = 'Nadeem Douba'
__copyright__ = 'Copyright 2012, Sploitego Project'
__credits__ = ['Nadeem Douba']
__license__ = 'GPL'
__version__ = '0.1'
__maintainer__ = 'Nadeem Douba'
__email__ = 'ndouba@gmail.com'
__status__ = 'Development'
__all__ = [
'objectify',
'oxml'
] | [
"ndouba@gmail.com"
] | ndouba@gmail.com |
ad6e4a658bf93bbdaa02f01a60c6f4f8f44bb105 | 8f9b10acd4b7b8c94ee65c21e6bdb06555d8f669 | /anti/migrations/0001_initial.py | a78244a7828ec5d6f51faee450d03d6a3de23072 | [] | no_license | leezichanga/unmask-corruption | d848d814118ab785482b57a2c5fcebd5067c2183 | 231cdb517a2c5a0c2a8bd2a0d9cbec9349106a56 | refs/heads/master | 2020-03-18T23:26:41.418951 | 2018-06-04T12:59:28 | 2018-06-04T12:59:28 | 135,403,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-03 10:32
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations... | [
"elizabbethichanga@yahoo.com"
] | elizabbethichanga@yahoo.com |
a88be202976fb580308f95fcb529d4d3e32b61d1 | 1b764845ceab76ab91d12a4a067cb49fa3296001 | /interface testing/tests/test_laGou.py | c3ed52590ca07ee3d1a11b689e4723a7cfee59d2 | [
"Apache-2.0"
] | permissive | mychristopher/test | c5e11aef178d025d25d54afde4fb836a18001a23 | 9977d36bab3fcc47f0e1dd42bbf5a99b39112a2f | refs/heads/master | 2023-07-31T14:58:22.303817 | 2020-09-05T04:26:07 | 2020-09-05T04:26:07 | 276,136,931 | 0 | 0 | Apache-2.0 | 2023-07-14T16:39:16 | 2020-06-30T15:21:29 | HTML | UTF-8 | Python | false | false | 1,394 | py | #!/use/bin/env python
#coding:utf-8
#Author:WuYa
import unittest
import json
from base.method import Method,IsContent
from page.laGou import *
from utils.public import *
from utils.operationExcel import OperationExcel
from utils.operationJson import OperationJson
class LaGou(unittest.TestCase):
def setUp(self):
... | [
"1366254420@qq.com"
] | 1366254420@qq.com |
b96ea4e4315057da353749698369e86cf59a095c | 601533bee6393d550fdf60e66599d9c69fb31a68 | /tools/nvme_utils/configshell-fb-1.1.fb18/setup.py | cb4827ef1b1ab44c478077dbde709c53cba74c99 | [
"Apache-2.0"
] | permissive | truenas/chelsiouwire | 7043978301e0e28be6c39ac39bbf483af370464f | 4739d295d543fc8164c96356d4cb1ed63e091a90 | refs/heads/master | 2023-08-21T16:54:22.911750 | 2022-07-13T18:26:48 | 2022-07-13T18:26:48 | 383,461,654 | 1 | 0 | null | 2022-07-13T18:29:13 | 2021-07-06T12:30:41 | C | UTF-8 | Python | false | false | 1,181 | py | #! /usr/bin/env python
'''
This file is part of ConfigShell.
Copyright (c) 2011-2013 by Datera, Inc
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
U... | [
"waqarahmedjoyia@live.com"
] | waqarahmedjoyia@live.com |
73947b723523e74ea45af363ab25a8f80eeaccd7 | bbc1001ec110c7cd0bf873bcff8519f8e713b42e | /dy/asgi.py | c700249231a0301e1efd89aab2d973a8372f4911 | [] | no_license | zamanehsani/dy | b141f98ab52bcdc21bfec593fe971b054e2f74f6 | 675915430e20f5c137f00016d99946f5cd814aa9 | refs/heads/master | 2023-03-16T18:53:38.416480 | 2021-03-05T14:13:45 | 2021-03-05T14:13:45 | 324,432,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | """
ASGI config for dy project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_M... | [
"zamanehsani@gmail.com"
] | zamanehsani@gmail.com |
3c2631144ed941c39aba487fac120978f680355c | 183e4126b2fdb9c4276a504ff3ace42f4fbcdb16 | /I семестр/Програмування (Python)/Лабораторні/Братун 6305/Labs/LABA7/counter/counter_2.py | f72f5c76c3f4a527bff955d3e92c75781b03a0c9 | [] | no_license | Computer-engineering-FICT/Computer-engineering-FICT | ab625e2ca421af8bcaff74f0d37ac1f7d363f203 | 80b64b43d2254e15338060aa4a6d946e8bd43424 | refs/heads/master | 2023-08-10T08:02:34.873229 | 2019-06-22T22:06:19 | 2019-06-22T22:06:19 | 193,206,403 | 3 | 0 | null | 2023-07-22T09:01:05 | 2019-06-22T07:41:22 | HTML | UTF-8 | Python | false | false | 554 | py | import os
os.chdir('C:\lab7\Bratun')
def get_line():
with open( r'v5.txt', "r", encoding="cp1251") as f:
tmp = f.readlines()
f.close()
return tmp
def change():
core = round(len(fileinline) / 2)
for i in range(core):
fileinline[i], fileinline[-i - 1] = filein... | [
"mazanyan027@gmail.com"
] | mazanyan027@gmail.com |
fa9d0ee477d8f85e5679caa53d6217ad43c68753 | 6cd3de9d6aa0c52602010aa857966d5dc4d57442 | /mlprodict/onnxrt/validate/data/__init__.py | 68432ec182456d8c49ed21a9d675ee84cce8bc08 | [
"MIT"
] | permissive | xadupre/mlprodict | 2307ca96eafeeafff08d5322184399bb5dc1c37e | f82c8a26a60104948c67849b1c4af95ca812c153 | refs/heads/master | 2022-12-10T18:50:36.953032 | 2020-09-03T08:53:58 | 2020-09-03T08:53:58 | 292,824,744 | 1 | 0 | NOASSERTION | 2020-09-04T10:56:45 | 2020-09-04T10:56:44 | null | UTF-8 | Python | false | false | 555 | py | """
@file
@brief Datasets to tests models.
"""
import os
from pandas import read_csv
def load_audit():
"""
Use to test conversion of
:epkg:`sklearn:ensemble:GradientBoostingClassifier`
into :epkg:`ONNX`.
.. runpython::
:showcode:
from mlprodict.onnxrt.validate.data import load_au... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
518d213b2c92fa19522c41e572a3645a8ff0e7a6 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/tests/fm/FM_ManageUsers.py | ce9d8d8d13ce6dfefd8d1b6b16a7cc23900bf55b | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,994 | py | '''
Testsuite
1.1.10.2 Administration - Users
1.1.10.2.4 Create many user(over 100 user account)
MODELING FOR NORMAL CASES
-------------------------
Inputs
- totalUsers
Internal Variables
- name_prefix: likes 'user_'
Expected Results
- able to create more than a hundred of users
Testscript
+ Config:
- Initializ... | [
"tan@xx.com"
] | tan@xx.com |
f494dcb113132af32c65f8eef89c23905b98c3fe | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_150/ch14_2020_03_16_15_58_26_897959.py | 886c16b139252dc0fd5ccfdbc257e43fc08191ee | [] | 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 | 207 | py | import math
def calcula_distancia_do_projetil(v, θ, y0, g):
parte1 = (v**2)/2*g
parte2 = (1+(1+(2*g*y0)/(v**2*(math.sin(θ))**2))**(1/2))
parte3 = math.sin(2*θ)
return parte1*parte2*parte3 | [
"you@example.com"
] | you@example.com |
081bf346fd7fa7c71ec3a2819deb97613cfcba02 | e37a1aab1dde2339c7e34ac7e7a158767fcd9023 | /Solutions/solution_018.py | 61dd1f757ab7cd414491e152fa2e956eceff3651 | [
"WTFPL"
] | permissive | idayat092/Project-Euler | f90ffa71e12a80b6f54de4f469e898fedc9877fe | 8fcd0d4cb126612d238516e88778a4bfd685ccf2 | refs/heads/master | 2022-03-07T18:21:38.103277 | 2019-11-09T05:30:01 | 2019-11-09T05:30:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | """Problem 18: Maximum path sum I
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
Find the maximum total from top to bottom of the triangle below:
NOTE: As th... | [
"solomonghost9@gmail.com"
] | solomonghost9@gmail.com |
8edb1fa30b3189a1ec7c551c9d73c662805ee0de | ddd002cff6b4668c47a14e740ec780f2c03dcbd9 | /algorithms/quicksort.py | 30e026c5c0a83e1f09bff25e8aea55ff0667aaab | [] | no_license | wangonya/python_practice | 53b93bdf93b7a586df75040d4c26d25793b59ed9 | 70f45f950fb6e9619e4054cb1ea5f8d8db988f0e | refs/heads/master | 2020-04-02T07:33:06.647605 | 2018-12-19T07:25:26 | 2018-12-19T07:25:26 | 154,202,248 | 2 | 0 | null | 2018-12-16T05:02:05 | 2018-10-22T19:19:43 | Python | UTF-8 | Python | false | false | 526 | py | def quickSort(arr):
less = []
pivotList = []
more = []
if len(arr) <= 1:
return arr
else:
pivot = arr[0]
for i in arr:
if i < pivot:
less.append(i)
elif i > pivot:
more.append(i)
else:
pivotL... | [
"kwangonya@gmail.com"
] | kwangonya@gmail.com |
a956c5437ef70e9646509d41f4eb1a179730eac6 | ca0c3c1cdfdd714c7780c27fcecd4a2ae39d1474 | /src/fmf/apps/core/migrations/0001_initial.py | 19696394a44e5650c93214f629650c85c09d6a98 | [] | no_license | vasyabigi/fmf | fce88a45fb47f3f7652995af40b567ffdf27a4a0 | 988ba668f3ce6da2670b987a1eeae3c87761eac5 | refs/heads/master | 2021-01-23T07:29:52.185306 | 2012-08-27T13:11:51 | 2012-08-27T13:11:51 | 2,803,493 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,435 | py | # encoding: 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 'IndexSliderImage'
db.create_table('core_indexsliderimage', (
('id', self.gf('d... | [
"vasyl.stanislavchuk@djangostars.com"
] | vasyl.stanislavchuk@djangostars.com |
61a6e75b11db9f3519abe6b262fd42d9f9963545 | 1f63dde39fcc5f8be29f2acb947c41f1b6f1683e | /Boss2D/addon/tensorflow-1.2.1_for_boss/tensorflow/contrib/tfprof/python/tools/tfprof/print_model_analysis_test.py | c3e9fc9cc099f144f81235a944221fa05b6b398c | [
"MIT",
"Apache-2.0"
] | permissive | koobonil/Boss2D | 09ca948823e0df5a5a53b64a10033c4f3665483a | e5eb355b57228a701495f2660f137bd05628c202 | refs/heads/master | 2022-10-20T09:02:51.341143 | 2019-07-18T02:13:44 | 2019-07-18T02:13:44 | 105,999,368 | 7 | 2 | MIT | 2022-10-04T23:31:12 | 2017-10-06T11:57:07 | C++ | UTF-8 | Python | false | false | 7,110 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"slacealic@gmail.com"
] | slacealic@gmail.com |
eabe3ee069129823ec57dca7dea81d3a8c2f7f0f | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/2023/0530_743_Network_Delay_Time/Euihyun.py | 7b37ba25dc97c748f4d9722f0e74732f52b04da8 | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 1,766 | py | # 흠 오랜만에 다익스트라 푸니까 못풀겠네요... 솔루션 봤습니다.
# 그래서 리뷰는 괜찮아요!
import heapq
class Solution(object):
def networkDelayTime(self, times, n, k):
# 그래프 초기화
# 인접 리스트로 그래프 표현
graph = [[] for _ in range(n+1)]
for u, v, w in times:
# u에서 v로 가는 간선의 정보 저장
graph[u].append((v, ... | [
"noreply@github.com"
] | ai-kmu.noreply@github.com |
fa5e2514f9cf03fda65eafbc2e83da73caeab49e | 3abe579ffc36cffef882bd23139c8112dc18b5eb | /nodeeditor/node_edge.py | 7380edde1767614f6725da1367c056ef702d0e36 | [] | no_license | huazhicai/nodeEditor | 3663950221a2fa8ee9a9aa9f5718d20722d9ecf4 | cb9ed8c1e57614c9bc2242b948ce8361d71fa4be | refs/heads/master | 2020-07-06T05:34:55.186396 | 2019-09-02T08:12:38 | 2019-09-02T08:12:38 | 202,908,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,970 | py | from nodeeditor.node_graphics_edge import *
EDGE_TYPE_DIRECT = 1
EDGE_TYPE_BEZIER = 2
DEBUG = False
class Edge(Serializable):
def __init__(self, scene, start_socket=None, end_socket=None, edge_type=EDGE_TYPE_DIRECT):
super().__init__()
self.scene = scene
# default init
self._sta... | [
"936844218@qq.com"
] | 936844218@qq.com |
c6a43174111768e064e7f6c251e16fa309e4c6ac | 057d2d1e2a78fc89851154e87b0b229e1e1f003b | /venv/Lib/site-packages/keystoneauth1/tests/unit/k2k_fixtures.py | f78cb0ef084ac7c36a3534ff0e66d62666f5d365 | [
"Apache-2.0"
] | permissive | prasoon-uta/IBM-Cloud-Secure-File-Storage | 276dcbd143bd50b71121a73bc01c8e04fe3f76b0 | 82a6876316715efbd0b492d0d467dde0ab26a56b | refs/heads/master | 2022-12-13T00:03:31.363281 | 2018-02-22T02:24:11 | 2018-02-22T02:24:11 | 122,420,622 | 0 | 2 | Apache-2.0 | 2022-12-08T05:15:19 | 2018-02-22T02:26:48 | Python | UTF-8 | Python | false | false | 5,454 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"prasoon1812@gmail.com"
] | prasoon1812@gmail.com |
620722b8e666fc4571d412bce02d149322242609 | 07b41bc2423e5d073ddcd1da47e534d981ccbe78 | /backend/marjan_fashion_24858/wsgi.py | 73586b0a2cd945c35d8ed73ebf117886439c5c00 | [] | no_license | crowdbotics-apps/marjan-fashion-24858 | e1fe2cba555d9fef7b17d74e31cd9dc7b72f8a80 | aafa62f5fb59466ce4028e774d7e401dc712294f | refs/heads/master | 2023-03-21T15:28:10.057904 | 2021-03-05T04:12:52 | 2021-03-05T04:12:52 | 344,690,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for marjan_fashion_24858 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
148a6f9052995914110fda1fdc097a42f961f4ed | bc5c8585b401ebcb90932571cae11b9603e2ef56 | /tests/test_modules/test_pmac/test_rawmotorcspart.py | fd4179ec25a4cec13f729c1f71ef46e207b2dd2c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jamesmudd/pymalcolm | 8e22a9e20868d9f0d04dfb3a6b276aaa3e202590 | 66993756c802cadca70ea07b437c5c2395af3f67 | refs/heads/master | 2020-04-19T10:54:38.766494 | 2019-01-29T12:48:22 | 2019-01-29T12:48:22 | 168,153,411 | 0 | 0 | null | 2019-01-29T12:46:41 | 2019-01-29T12:46:41 | null | UTF-8 | Python | false | false | 2,817 | py | import unittest
from mock import patch
from malcolm.core import Process, AlarmSeverity
from malcolm.modules.builtin.controllers import StatefulController
from malcolm.modules.pmac.parts import RawMotorCSPart
class castr(str):
ok = True
severity = 0
class caenum(int):
ok = True
severity = 0
enum... | [
"tom.cobb@diamond.ac.uk"
] | tom.cobb@diamond.ac.uk |
b1abce58ea0b8c1778eb52d4460c4b39051b3a84 | 5e381364c2ab31ff3618369085afffba6caa8edb | /recipes/vulkan-memory-allocator/all/test_package/conanfile.py | 7ef741773e9b018c9294979a6fd565987ff4c823 | [
"MIT"
] | permissive | CAMOBAP/conan-center-index | 16aea68a6d22da22831ba985773125e8eda08f00 | 67d57532bdad549fef3fa6cb8fcdfa86bc55e4f1 | refs/heads/master | 2023-07-30T08:58:57.285571 | 2021-10-02T14:57:54 | 2021-10-02T14:57:54 | 323,262,699 | 1 | 0 | MIT | 2021-05-29T13:37:04 | 2020-12-21T07:30:02 | Python | UTF-8 | Python | false | false | 453 | py | import os
from conans import ConanFile, CMake, tools
class VulkanMemoryAllocatorTestConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
if not to... | [
"noreply@github.com"
] | CAMOBAP.noreply@github.com |
28a9ef3e533c226aefda479bb8b0e46a24cb8edb | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/point-mutations/4b3ba2b7e4d141ba80593132e1355e5f.py | 353661c3c32ce019cb5d2a587d707fb05742eeeb | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 453 | py | class DNA(object):
"""Class representing DNA strand."""
def __init__(self, strand):
self.strand = strand
def hamming_distance(self, strand):
"""Method calculating Hamming distance between object's DNA strand
and given one."""
n = min(len(self.strand), len(strand))
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
7aeec444fe3ba90e5d5ed5656787c5901123d63e | f3179576d85369e9834df0810d57289c04c0b929 | /account/migrations/0001_initial.py | a779a9f50a0b638e654c6fe796a6aac162e6f182 | [] | no_license | kolamor/template_django_site | cadd75931b460790a162ee6d5e3371140fd2098e | ee7972ca1a65e006a750bbe67f6605ac89248956 | refs/heads/master | 2022-12-11T00:43:17.809358 | 2020-09-16T20:21:27 | 2020-09-16T20:21:27 | 295,774,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # Generated by Django 3.1.1 on 2020-09-14 20:20
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"kolamorev@mail.ru"
] | kolamorev@mail.ru |
85665dbe43d1c321ad12f2506b472e4a46306b5e | ac32e4a76b519a4f9d043ebb3835ad42b9ff6a3c | /tests/tokenize/test_tokenize_json.py | 80ca3e3ae813a3479c5e0bcd38471a72225a6e8e | [
"BSD-3-Clause"
] | permissive | rubbish822/typesystem | e63286f43672aa2d860c7dffe18431e3984f7439 | fe201aecf871b3995b2d73ef647d34c1fedb36f1 | refs/heads/master | 2023-04-02T15:11:43.780011 | 2019-03-11T14:07:46 | 2019-03-11T14:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,167 | py | from json.decoder import JSONDecodeError
import pytest
from typesystem.tokenize.tokenize_json import tokenize_json
from typesystem.tokenize.tokens import DictToken, ListToken, ScalarToken
def test_tokenize_object():
token = tokenize_json('{"a": [1, 2, 3], "b": "test"}')
expected = DictToken(
{
... | [
"tom@tomchristie.com"
] | tom@tomchristie.com |
e8eed13eedde2a1f73d5dd4d40462d475f7aef3f | a367a015dbc36287ca933955ded1ee58b5a2a61a | /swagger_client/models/fluid_consumption_rate_through_nozzle.py | 925475d390d001c905e9a980b4d6954c0d2df360 | [] | no_license | kerniee/inno_intership_1_test_task | 70211e153450011c427df595a02e3574dfe7ed9f | fc0619ef54b00806a3b59f3c07c1c1684682d65b | refs/heads/master | 2023-05-23T02:24:40.083723 | 2021-06-21T16:15:04 | 2021-06-21T16:15:04 | 365,855,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,525 | py | # coding: utf-8
"""
Teleagronom
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
... | [
"karapys.mor@gmail.com"
] | karapys.mor@gmail.com |
7ab87edf7fb834a8eaaf7973e70732fa4778a974 | 9dd33333caebc0b6f516ededa9aeebe707476852 | /qc/qc/middlewares.py | 78bd401ea4445eed71a7954552fa2c3aba118b7f | [] | no_license | zx490336534/spider-review | 4ef0cebd9d92bce0a42f4aeef5b03ae9695c2364 | c7a3cdf7abc74732c556bc4b8c9928a20e7c4c78 | refs/heads/master | 2020-04-09T02:20:26.533103 | 2018-12-03T15:04:15 | 2018-12-03T15:04:15 | 159,937,120 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
import random
import redis
import hashlib
from scrapy import signals
from scrapy.exceptions import IgnoreRequest
from qc.settings import USER_AGENT as u... | [
"490336534@qq.com"
] | 490336534@qq.com |
a1be92f9773850b2fb15a33da32c81a191883f7c | 2c8c415c1b386eb7e168a7cb17d55a73ab08ac36 | /UrlHandler/migrations/0001_initial.py | a28550bdde5c621735367268f25788211c6fe269 | [
"MIT"
] | permissive | TanimSk/Help-The-Helpless | 888b72b3faca9d307f5a0e41c05424050bc2c423 | bdf6ad2c1d873831cb80f09cb62e068cba43e203 | refs/heads/main | 2023-02-02T13:37:27.407966 | 2020-12-23T07:25:22 | 2020-12-23T07:25:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | # Generated by Django 3.1.4 on 2020-12-23 06:42
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UrlLinks',
fields=[
('id', models.AutoField... | [
"61817579+baseplate-admin@users.noreply.github.com"
] | 61817579+baseplate-admin@users.noreply.github.com |
c85721734e624cc87ceb5ad6f0d8bd65975de78a | c1e87e9a7f0f2e81e3113821c21378f7b6436b6f | /Щелчок/24/24_52.py | 69e3935c47b9be84d6bb1164ad23e1c9dffd7548 | [] | no_license | Pochemu/Activity | 8e2a7ec4f6b7fd233c0ee48e893733b077aac7a4 | 1b21e674635ff95104e18e93241c30020032e26a | refs/heads/main | 2023-07-09T04:04:06.337321 | 2021-07-06T21:38:26 | 2021-07-06T21:38:26 | 337,492,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | f = open('shkolkovo_2.txt')
cnt = 0
cnt_max = 0
for s in f:
if s.count('A') < 25:
for i in range(ord('A'), ord('Z')+1):
cnt = s.rindex(chr(i)) - s.index(chr(i))
cnt_max = max(cnt, cnt_max)
print(cnt_max) | [
"48361330+Pochemu@users.noreply.github.com"
] | 48361330+Pochemu@users.noreply.github.com |
7916f1c0dcf1066cc49205d234ec76a5db1cf997 | 4e30c855c253cc1d972d29e83edb9d5ef662d30a | /daybook/forms.py | 78fc660f041185c9829b162003142e5d49f5e0cc | [
"MIT"
] | permissive | rajeshr188/django-onex | 8b531fc2f519d004d1da64f87b10ffacbd0f2719 | 0a190ca9bcf96cf44f7773686205f2c1f83f3769 | refs/heads/master | 2023-08-21T22:36:43.898564 | 2023-08-15T12:08:24 | 2023-08-15T12:08:24 | 163,012,755 | 2 | 0 | NOASSERTION | 2023-07-22T09:47:28 | 2018-12-24T17:46:35 | Python | UTF-8 | Python | false | false | 168 | py | from django import forms
from django.contrib.admin.widgets import AdminDateWidget
class daybookform(forms.Form):
date = forms.DateField(widget=AdminDateWidget())
| [
"rajeshrathodh@gmail.com"
] | rajeshrathodh@gmail.com |
f20c8a872358b9fb3614dae96f4a639ff2d38ed1 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /13_Deep_Learning_with_Python/13/decay_drop_based.py | 7a7df9ff76b941850db37b74bf66d0353ae9cb4f | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | # Drop-Based Learning Rate Decay
import math
from keras.callbacks import LearningRateScheduler
from keras.layers import Dense
from keras.models import Sequential
from keras.optimizers import SGD
from pandas import read_csv
from sklearn.preprocessing import LabelEncoder
# learning rate schedule
def step_decay(epoch):... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
7b703bc2896e3cd0f8b426c39ecbb5420161c927 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/tests/unittest_py/op/backends/host/test_relu6_op.py | e47927da98e69c262b7712e29005b73d40fe45f7 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | Python | false | false | 1,680 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
c96ebeab3ec93603bfbe70fbec041ad533547e03 | e0980f704a573894350e285f66f4cf390837238e | /.history/news/models_20201125123239.py | 55e05516581b090c070f2f6ce249d636eccf8f32 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | from django.db import models
from modelcluster.models import ParentalKey
from wagtail.contrib.forms.models import AbstractEmailForm, AbstractFormField
from wagtail.admin.edit_handlers import FieldPanel, InlinePanel
from wagtail.images.edit_handlers import ImageChooserPanel
from wagtail.core.fields import RichTextFi... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
99b8d312c2b0f1dd950dc13681e497b85cb2db8b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/305/78885/submittedfiles/testes.py | c9fd898511eec6ab3f5fd5d3e4799a1e4e204ad4 | [] | 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 | 142 | py | # -*- coding: utf-8 -*-
import math
#COMECE A PARTIR DAQUI!
h = float(input('digite o valor de : '))
P = ((72.7*h) - 58)
print('%.2f' %P) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
82037c643ef27e2ed8ebad5f7e521367051eb0fd | cc382cc8fc521c3427f582adedc1ff7b93a754de | /Python/Quiz/P_sum.py | 2797c7c578f859d95f4094f7d758468e6d29fb69 | [] | no_license | jbro321/Python | c33e899145ea47db41038fcc117789ce821c4131 | 36854890aefd0384567b05600cbb849094cd9f91 | refs/heads/main | 2023-06-05T19:53:40.144922 | 2021-06-24T13:29:24 | 2021-06-24T13:29:24 | 331,165,120 | 2 | 3 | null | 2021-04-05T03:46:58 | 2021-01-20T02:06:00 | Python | UTF-8 | Python | false | false | 755 | py | # 문제
# ***a,b,c,d 변수 4개를 초기 입력으로 받는다
# *** 출력문 작성 시 a+b를 직접 사용해서 합을 출력하지 않는다.
# *** 아래 출력을 그대로 출력한다. 대신 []안에 내용은 출력하지 않아도 된다.
# *** 수1 + 수2 = 합 문장을 출력하면 된다.
# 출력
# --------------------
# a[입력받은 값] + b[입력받은값] = 합
# c[입력받은 값] + d[입력받은값] = 합
#1
from datetime import datetime
now = datetime.now()
print(now)
import s... | [
"jaehyung0321@gmail.com"
] | jaehyung0321@gmail.com |
0f4e7e981575a48924e04e71394b1f46bc2b670b | 2e643989fad07bb54b75e178998bb1546540317a | /securetea/lib/auto_server_patcher/patcher.py | 9181df1b1a141221e9970c3cb444903c1c5dc750 | [
"MIT"
] | permissive | fijimunkii/SecureTea-Project | 4fa89c3a28120cc4dbdd4fc6adac204a3c1ae99a | e3752e358d9837ed4677984e1b29a2dd3818dfe6 | refs/heads/master | 2020-06-23T00:19:49.464335 | 2019-07-23T09:12:51 | 2019-07-23T09:12:51 | 198,443,213 | 1 | 0 | MIT | 2019-07-23T14:05:36 | 2019-07-23T14:05:35 | null | UTF-8 | Python | false | false | 7,457 | py | # -*- coding: utf-8 -*-
u"""Patcher for SecureTea Auto Server Patcher
Project:
╔═╗┌─┐┌─┐┬ ┬┬─┐┌─┐╔╦╗┌─┐┌─┐
╚═╗├┤ │ │ │├┬┘├┤ ║ ├┤ ├─┤
╚═╝└─┘└─┘└─┘┴└─└─┘ ╩ └─┘┴ ┴
Author: Abhishek Sharma <abhishek_official@hotmail.com> , Jun 20 2019
Version: 1.4
Module: SecureTea
"""
import json
from securete... | [
"abhishek_official@hotmail.com"
] | abhishek_official@hotmail.com |
d6a216950d956f0368d07afdb48bf084b58ff7e5 | 8e3a3c845ca3320483b233e8a0db4081aa3b8664 | /clases/migrations/0007_contadorpreguntas.py | 4a29e06d54f68db53637390cbb6553b607a32b13 | [] | no_license | sofide/loiprocesos | 7d56398395e6f3302f4d9ec3627ed1b4c24bc17a | 4047fa02d0cfbcf744c80d59e3402215f8b294d3 | refs/heads/master | 2021-07-08T03:26:55.171459 | 2020-08-04T03:23:10 | 2020-08-04T03:23:10 | 61,167,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-24 02:12
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('clases', '0006_auto_20160623_0041'),
]
operations =... | [
"sofi.denner@gmail.com"
] | sofi.denner@gmail.com |
ede826fd675c4a60c307a3e7000c07f5f2902746 | 12f83344cdfe561db39ad9106dbf263ccd919f7e | /Projects/miami_metro/platformdatafetcher/producturlsextractor.py | 544ed8554122d5443bb722cf9841e792d34c5f67 | [] | no_license | TopWebGhost/Angular-Influencer | ebcd28f83a77a92d240c41f11d82927b98bcea9e | 2f15c4ddd8bbb112c407d222ae48746b626c674f | refs/heads/master | 2021-01-19T10:45:47.039673 | 2016-12-05T01:59:26 | 2016-12-05T01:59:26 | 82,214,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | import logging
import time
import baker
from celery.decorators import task
import requests
import lxml.html
from django.conf import settings
from selenium.webdriver.support.ui import WebDriverWait
from xpathscraper import utils
from xpathscraper import xbrowser
log = logging.getLogger('platformdatafetcher.productur... | [
"ivanfridrich1981129@yandex.com"
] | ivanfridrich1981129@yandex.com |
60e328a06c3e1fdb001548de48de55c0eb23e0fb | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/2722.py | d7f75c386beda85c91ab2587d1ef7524e8e9592a | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | #Author: Alexander Peel
a = open("small-a.gen.in", "r")
b = open("small-a.gen.out", "r")
charMap = {'z': 'q', 'q': 'z'}
revCharMap = {'q': 'z'}
j=0
for x in range(3):
line = a.readline()
gLine = b.readline()
for i in range(min(len(gLine),len(line))):
if line[i] not in charMap.keys():
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6a33b0bb6c094e98d634895bdc96a009efda9df4 | 5e8d86f6ddfd516b9768e8617ced0baca8112f4c | /core-python/Core_Python/regexpkg/Regex_As_3.py | d04581509fb9cb7e606dd55ed7907e899e3dc795 | [
"MIT"
] | permissive | bharat-kadchha/tutorials | 0a96ce5a3da1a0ceb39a0d464c8f3e2ff397da7c | cd77b0373c270eab923a6db5b9f34c52543b8664 | refs/heads/master | 2022-12-23T11:49:34.042820 | 2020-10-06T03:51:20 | 2020-10-06T03:51:20 | 272,891,375 | 1 | 0 | MIT | 2020-06-17T06:04:33 | 2020-06-17T06:04:33 | null | UTF-8 | Python | false | false | 1,211 | py | ''' The contains_acronym function checks the text for the presence of 2 or more
characters or digits surrounded by parentheses, with at least the first character
in uppercase (if it's a letter), returning True if the condition is met, or False
otherwise. For example, "Instant messaging (IM) is a set of comm... | [
"deeppatel.dd@gmail.com"
] | deeppatel.dd@gmail.com |
97f89bd27f13c0f02aecc8b7b6338f2d4ceb35d4 | aa9a0acc85a7328969a81527f3ed7c155a245727 | /chapter_7/mountain_poll.py | 1cbe3e263c36adbf0e5ad45eaf8e28e5f361de72 | [] | no_license | mwnickerson/python-crash-course | 7035e21e1ee60c05d1d475ebcf04bd6a93c5967a | 18784c7e3abfb74f85f8c96cb0f8e606cab6dccc | refs/heads/main | 2023-08-03T20:14:49.883626 | 2021-09-25T05:31:12 | 2021-09-25T05:31:12 | 400,644,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | # mountain poll
# set a flag to indicate that polling is active
responses = {}
# set a flag to stop
polling_active = True
while polling_active:
# prompt for the person's name and response
name = input("\nWhat is your name? ")
response = input("Which mountain would you like to climb someday? ")
# store... | [
"82531659+mwnickerson@users.noreply.github.com"
] | 82531659+mwnickerson@users.noreply.github.com |
f61d55e3301a8e2accce79dfa29797592506b149 | 01ebe45440f08158c796466cca679dec9687d93c | /tests/cx_devices/devices_test.py | c069a3a600767508066fdd74089c959fea2e6c90 | [
"MIT"
] | permissive | ilarrain/controllerx | 694211a247055d2a7417ba3648cdb099468c857b | 0a1ef68b3fd2b6dbb2a499b6b9920e6b3bfa2185 | refs/heads/master | 2023-02-01T00:50:23.731673 | 2020-09-19T22:00:14 | 2020-09-19T22:00:14 | 297,980,184 | 0 | 0 | null | 2020-09-23T13:33:42 | 2020-09-23T13:33:41 | null | UTF-8 | Python | false | false | 1,911 | py | import cx_devices as devices_module
from cx_core import Controller
from cx_core.controller import ReleaseHoldController
from tests.test_utils import get_instances
def check_mapping(mapping, all_possible_actions, device):
device_name = device.__class__.__name__
if mapping is None:
return
if issubcl... | [
"xaviml.93@gmail.com"
] | xaviml.93@gmail.com |
a357e72273bb8edb1f639d91c440f562df43333f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_stagehands.py | 1e2b38dd0830cac5b9bb7439a49fbae6ba2fda40 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#calss header
class _STAGEHANDS():
def __init__(self,):
self.name = "STAGEHANDS"
self.definitions = stagehand
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['stagehand']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f6f1ad958285f676ec5c7f6800454799dbcb29b6 | c77148a25435b50a35fceab36112fba18dbb0866 | /backup/Jun13/units/ZemoraVoidbringer.py | 2e0ac05310a366bbc1dee0479db209f1851a9f09 | [] | no_license | SozBroz/PrismataBot | 51fbecf90950d13eb52606a5b18984b5474746ba | f375ca8dc396abbca4134f70cb262fc78b90a17e | refs/heads/master | 2020-05-31T13:37:50.102010 | 2019-06-06T02:48:01 | 2019-06-06T02:48:01 | 136,826,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | #!/usr/bin.python3.6
class ZemoraVoidbringer:
def __init__(self,owner):
self.owner=owner
self.lifespan=-1
self.frontline=False
self.cooldown=6
self.defaultBlocking=False
self.assignedBlocking=False
self.health=20
self.fragile=True
self.attack=8
self.startTurnDict={
}
self.onClickDict={
"gold... | [
"Phil@oc1140302110.ibm.com"
] | Phil@oc1140302110.ibm.com |
ac6069daea455c23cbfa5a901efeccb900fd13c5 | 5785d7ed431b024dd910b642f10a6781df50e4aa | /revise-daily/google/educative/dp/10_subset_sum_partition.py | 8731a79078aa769c5036698c2d03b4fcc1f54262 | [] | no_license | kashyapa/interview-prep | 45d77324446da34d99bf8efedb3544b367b5523e | 7060c090c40602fb9c4778eace2078e1b51e235b | refs/heads/master | 2023-07-28T13:12:49.515299 | 2021-09-06T14:33:25 | 2021-09-06T14:33:25 | 403,706,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # Given a set of positive numbers, find if we can partition it into two subsets such that the sum of elements in both the subsets is equal.
def equal_subset_sum_partition(nums):
s = sum(nums)
def rec(idx, remaining_sum):
if idx == len(nums):
return remaining_sum == 0
if remaining... | [
"schandra2@godaddy.com"
] | schandra2@godaddy.com |
497f21accdf90e5db6cfc9b223630ab19336cddb | 85fc4fcd841226c30b1a5824468eae95e6da3cd1 | /oddities.py | 3aadbd44e0062fdb114cb855a0e00371b739b293 | [] | no_license | a5vh/kattis | 1676060acfc6eef1d7c558299063646f3b7fcbf3 | 093cbeba31149fa0182ecc1bc8a43c60cdb1fa36 | refs/heads/master | 2020-08-17T19:54:11.754205 | 2019-11-26T01:34:29 | 2019-11-26T01:34:29 | 215,705,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | times = int(input())
for i in range(times):
num = int(input())
if num % 2 == 0:
print(num, " is even")
elif num % 2 != 0:
print(num, " is odd") | [
"august.hummert5@gmail.com"
] | august.hummert5@gmail.com |
23452b8aa23ec30902431afb8e033d9650a11a27 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4050/186004050.py | 0ef5e94fd43a44abe1431659b10050e7af9dfadf | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 4,983 | py | from bots.botsconfig import *
from records004050 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'UW',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'CUR', MIN: 0, MAX: 1},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
5f656012f1f9e8a1142bd5fbe97e5773232143b6 | f35259cdae65259d41d5c86f09351d6888a81de6 | /module6.py | 87ce2236305191b49e11e2aa5db13fd19e0d7fba | [
"MIT"
] | permissive | RajeshKumar-1998/python-web | 9dbc71da656baec7946b9dae9f36919ac60be0ca | a4a7823752ce91a7a5bd3aaa1210c9ddad7ea55e | refs/heads/master | 2022-04-18T04:57:12.274235 | 2020-04-23T12:28:14 | 2020-04-23T12:28:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: Rajesh
#
# Created: 26-12-2019
# Copyright: (c) Rajesh 2019
# Licence: <your licence>
#-------------------------------------------------------------------------------
import os
i... | [
"57509232+Rajeshkumar-dev-cloud@users.noreply.github.com"
] | 57509232+Rajeshkumar-dev-cloud@users.noreply.github.com |
be90ebc66d52f4050ebf05b9127d53fc6025b638 | b09e71b77dd41d5db266733d1eedb845cb56d5c2 | /models/ts_hred/src/hred/read_data.py | e4fab39a8fee951ef16fc947503a9388aea060df | [] | no_license | lingxiao/neural-chatbot | 1bcaaea5ede06d0cdc7232f3905b2c813f97f36d | 70dc9366c9d419c26cfb51086187026503820267 | refs/heads/master | 2021-01-20T07:51:26.398642 | 2017-12-26T07:05:11 | 2017-12-26T07:05:11 | 90,052,227 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | import tensorflow as tf
import os
import numpy as np
import subprocess
import pickle
import os
import logging as logger
def read_batch( data_file
, batch_size = 80
, eoq_symbol = 1
, pad_symbol = 2
, max_seq_len = 50 ):
batch = ([], [])
from sys imp... | [
"lingxiao@seas.upenn.edu"
] | lingxiao@seas.upenn.edu |
eae14d10395cebb9005075be962dbccde8e96453 | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/bugs/core_6496_test.py | 83add6fecce024bf4fe791101f323a6d8fe430ef | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 934 | py | #coding:utf-8
"""
ID: issue-6726
ISSUE: 6726
TITLE: string_to_datetime and '\\0' symbol
DESCRIPTION:
ascii_char(0) was allowed to be concatenated with string and pass then to cast(... as timestamp)
up to 4.0.0.1227 (29-09-2018), and is forbidden since 4.0.0.1346 (17.12.2018).
FB 3.x allows t... | [
"pcisar@ibphoenix.cz"
] | pcisar@ibphoenix.cz |
3f6b0953d0bf05f639da4bc89ab48e385ff3d3df | ec1deb682fb96a1f937f2fca5f161aa951462876 | /pythonTextBook/exercises/classes/ex-9.6.py | e5f26b58f5dd3a61052ca7291d86c4b458d68fef | [] | no_license | AnatoliKosarev/Python-beginner-course--Teclado- | 31d82f5e9a1f39e2970323bed9de1fd539990565 | fa91199938d6975b5874341585343566caaf3600 | refs/heads/main | 2023-06-30T12:14:33.779827 | 2021-07-24T11:16:19 | 2021-07-24T11:16:19 | 376,371,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from HelloWorld.pythonTextBook.exercises.classes.exNineFour import Restaurant
class IceCreamStand(Restaurant):
def __init__(self, restaurant_name, cuisine_type):
super().__init__(restaurant_name, cuisine_type)
self.flavours = ["vanilla", "chocolate", "strawberry"]
def show_flavours(self):
... | [
"anatoli.kosarev@gmail.com"
] | anatoli.kosarev@gmail.com |
7dfd66da43d55823453a16f8a9f215ffd604f136 | 17e0b82a3481dc857be371e3189f2d5ec158111a | /src/service/connections/__init__.py | f54aa4f85d6c79e0450907ffa9a4baebf3b8b502 | [
"Apache-2.0"
] | permissive | deeso/service-utilities | 582cc34cb944734ac16b42dd57815a44e59f9f0e | 9a3ebdcad9a1d0049a23e3486d7ea99a6d08f81a | refs/heads/master | 2021-05-14T14:53:37.536862 | 2018-01-23T11:37:12 | 2018-01-23T11:53:16 | 115,980,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from .base_connection import ConnectionFactory
from .kombu_connection import KombuConnection
from .mongo_connection import MongoConnection
from .socket_connection import TCPConnection, UDPConnection
from .jsonline_connection import JsonTCPLineConnection, JsonUDPLineConnection
ConnectionFactory.register_connection(Komb... | [
"adam.pridgen@thecoverofnight.com"
] | adam.pridgen@thecoverofnight.com |
cf2f2d7f88dda9d9c3caa6fbe711331cf4e416d8 | 019fd2c29b8239d7b0a3906cfbdddfd440362417 | /datacatalog/google/cloud/datacatalog_v1beta1/proto/policytagmanagerserialization_pb2_grpc.py | 74a7fdcfa5f77b46313389513bcdf64342f64c96 | [
"Apache-2.0"
] | permissive | tswast/google-cloud-python | 1334d26cdb994293f307d889251d7daef5fcb826 | d897d56bce03d1fda98b79afb08264e51d46c421 | refs/heads/master | 2021-06-10T17:40:06.968584 | 2020-01-11T17:41:29 | 2020-01-11T17:41:29 | 58,775,221 | 1 | 1 | Apache-2.0 | 2019-04-10T17:09:46 | 2016-05-13T22:06:37 | Python | UTF-8 | Python | false | false | 3,846 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.cloud.datacatalog_v1beta1.proto import (
policytagmanagerserialization_pb2 as google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_policytagmanagerserialization__pb2,
)
class PolicyTagManagerSerializationStub(object)... | [
"noreply@github.com"
] | tswast.noreply@github.com |
e9c38467e2a787714831f7864bb435bcedfaeca4 | 3e8acb5749ff67add92a50718ed44f5e80b589b1 | /app/helpers/sqlalchemy_helpers.py | edcae3444a81f58899f7e98b474581afeacd69a1 | [] | no_license | jeffthemaximum/mtinator | a43b0dc93575742b161373a460e0f883da1c0f35 | a15eccf2acc727c32d8c0e0b31922f27edd3e386 | refs/heads/master | 2022-10-09T23:15:12.092352 | 2019-09-09T18:37:22 | 2019-09-09T18:37:22 | 207,014,198 | 0 | 0 | null | 2022-09-23T22:27:43 | 2019-09-07T19:09:13 | Python | UTF-8 | Python | false | false | 2,239 | py | import datetime
from app.models import Line, Status
def get_or_create(db_session, model, **kwargs):
created = False
instance = db_session.query(model).filter_by(**kwargs).first()
if instance:
return instance, created
else:
instance = model(**kwargs)
db_session.add(instance)
... | [
"frey.maxim@gmail.com"
] | frey.maxim@gmail.com |
62f22b123e3f5dd0e4c74c13925b4c37009df1a8 | 33a50bb13812090a36257078522b798762978c66 | /top/api/rest/JushitaJdpUserAddRequest.py | 3936dcb28e2258dc2e002dc64d4199ecc712998e | [] | no_license | aa3632840/quanlin | 52ac862073608cd5b977769c14a7f6dcfb556678 | 2890d35fa87367d77e295009f2d911d4b9b56761 | refs/heads/master | 2021-01-10T22:05:14.076949 | 2014-10-25T02:28:15 | 2014-10-25T02:28:15 | 23,178,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | '''
Created by auto_sdk on 2014-09-08 16:48:02
'''
from top.api.base import RestApi
class JushitaJdpUserAddRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.rds_name = None
def getapiname(self):
return 'taobao.jushita.jdp.user.add'
| [
"262708239@qq.com"
] | 262708239@qq.com |
be29efc36f6a969ab3bd214e43536e35705e975e | 9b722ca41671eb2cea19bac5126d0920639261bd | /.history/app_20201122215937.py | 6289174e858ea6631f102042e9c2fb4ba21ac8be | [] | no_license | thawalk/db_flask_server | 7928fd481f99d30bdccc60d97f02db78324cfdbe | cd55f1c9bf84c734457ee02d9f64a6833e295fad | refs/heads/master | 2023-01-25T02:40:19.097457 | 2020-12-06T07:45:50 | 2020-12-06T07:45:50 | 314,229,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,946 | py | import json
from flask import Flask, jsonify, url_for, request, redirect,Response,Request
# from flask_pymongo import PyMongo
import pymongo
from bson.json_util import dumps
import mysql.connector
from werkzeug.serving import run_simple
import os
from dotenv import load_dotenv
import datetime
import time
app = Flask(_... | [
"akmal_hakim_teo@hotmail.com"
] | akmal_hakim_teo@hotmail.com |
b356dcb3f63d9429c49159d66a995e1973602e26 | 53e90091d10a2454e14a02ecc689e355ac2a7cc1 | /book/pylisting/code_stemmer_indexing.py | dfdae82f171252f3d61a071abec893db065ea0a1 | [] | no_license | dougalg/nltk.github.com | aac74cf03d17475adc177ac08691359cb1f4adb6 | 9a04ac5264f5ef08d87d6b920580c9160042f1a0 | refs/heads/master | 2020-12-07T17:15:15.894232 | 2014-04-21T14:11:17 | 2014-04-21T14:11:17 | 18,965,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # Natural Language Toolkit: code_stemmer_indexing
class IndexedText(object):
def __init__(self, stemmer, text):
self._text = text
self._stemmer = stemmer
self._index = nltk.Index((self._stem(word), i)
for (i, word) in enumerate(text))
def concordance(s... | [
"stevenbird1@gmail.com"
] | stevenbird1@gmail.com |
bf2bdb42b6618a874bea7a69332aef8708faac3e | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /xNxZx7DDr6BumJLaB_18.py | 8aa7e4f2ef2b69ac807c4f99c801cd1f3a29e0e7 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | """
**Mubashir** wants to remove numbers from a given string!
Help him by fixing the code in the code tab to pass this challenge. Look at
the examples below to get an idea of what the function should do.
### Examples
remove_numbers("mubashir1") ➞ "mubashir"
remove_numbers("12ma23tt") ➞ "matt"
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2bbe287656c0e9eb6579f80e9e43e6a9663f4f51 | 4bf5f83a8e5cd4c3ee700569e4a6f07a87dd209c | /students/13th/hyungukkim/project_westagram/user/models.py | 2bf6fc0ee085860322a503e233755d2382c454b0 | [] | no_license | gledong12/westagram-backend | 6e066f4c741aa19df13224ba530b0d9f43a405f7 | 1842f065c599885ad5dcb9ec5fb267eaf3295872 | refs/heads/master | 2023-03-11T20:32:47.055525 | 2021-03-04T01:04:31 | 2021-03-04T01:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from django.db import models
class Account(models.Model):
name = models.CharField(max_length=45)
email = models.CharField(max_length=45)
phone = models.CharField(max_length=45)
password = models.CharField(max_length=200)
followers = models.IntegerField(default=0)
followees = models.IntegerField(def... | [
"lsheon93@gmail.com"
] | lsheon93@gmail.com |
22b9c617a333f0820997c188219ab0230f75f0bb | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/tests/util/test_doc.py | c9b12b5c490713603c6c109debfbd33547c8c5b0 | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 1,582 | py | from textwrap import dedent
from pandas.util._decorators import doc
@doc(method="cumsum", operation="sum")
def cumsum(whatever):
"""
This is the {method} method.
It computes the cumulative {operation}.
"""
@doc(
cumsum,
dedent(
"""
Examples
------... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
1496f4e20eb8bd4117fbf6f91248ff6bc0e67fb0 | 9d3b264a75264a28bafa0d22889c0bf6c429bbf4 | /fluent_contents/tests/utils.py | 2d9bed0d2676c3d7b2df627df2b062d241e50491 | [
"Apache-2.0"
] | permissive | hexenxp14/django-fluent-contents | a799b3864c826edf9ed67f4132589f73a4cf7807 | 613a4cd51ac201b86adfd5434e08f9a56eebfa2d | refs/heads/master | 2020-12-30T19:22:42.340848 | 2014-10-30T12:41:13 | 2014-10-30T12:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,536 | py | from __future__ import print_function
from future.builtins import str
from functools import wraps
from django.conf import settings, UserSettingsHolder
from django.contrib.auth.models import User
from django.core.management import call_command
from django.contrib.sites.models import Site
from django.db.models import loa... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
4346489444cdc929ef4cbf646a290ff6bb17a126 | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/tests/unittest_py/op/test_generate_proposals_op.py | e2f0d972640dd4077b6189d8870238550a6c648a | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | Python | false | false | 5,294 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
f586fe3dbe958a601f1a99e6f4f461331e4eb4b8 | a42c73c33f0ed093a57b077ee726eb60bd3a9410 | /tests/res/mnist.py | 5ad533e2b2b65691e6655eef9b540c700fd6ceb5 | [] | no_license | chriamue/mnistclassifier | 81485e70bc6d94aeea5bb84ae66ac45fe5dbac51 | 1c02663f2444bbe195356b65a9ce4deecd763100 | refs/heads/master | 2020-04-14T05:04:57.706819 | 2019-01-07T09:44:11 | 2019-01-07T09:44:11 | 163,652,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # source: https://github.com/pytorch/examples/blob/master/mnist/main.py
import torch
import torch.nn as nn
import torch.nn.functional as F
class mnist(nn.Module):
def __init__(self, **kwargs):
super(mnist, self).__init__()
self.conv1 = nn.Conv2d(1, 20, 5, 1)
self.conv2 = nn.Conv2d(20, 50, ... | [
"chriamue@gmail.com"
] | chriamue@gmail.com |
7f6038af767e1779c691a01c5838ef93949692f0 | 2beecbbcc8d3b21d6c536885dc10570bf20044bb | /week_four/media_clone/media_app/models.py | 9d3dc421e33c69a41301b3d6ba06b11aa7a32289 | [] | no_license | MTaylorfullStack/python_april | 05724dff121370f72b14beaf9737bcd39292111b | e15a496dc5ea3e0cb5f966000bfb7ad30c6bce28 | refs/heads/master | 2022-07-22T15:55:21.335557 | 2020-05-21T01:02:11 | 2020-05-21T01:02:11 | 255,476,577 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from django.db import models
class User(models.Model):
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Message_Post(models.Model):
message = models... | [
"mtaylor@codingdojo.com"
] | mtaylor@codingdojo.com |
81d7c0b15b03f6fd57c59e9e2efe51c989c26b7f | dc3c88f1fe5c80147e4c52ee6ec3136307ec9702 | /copyPluginName/readMe_model.py | e68cca9deb5a4c208e6e7256e693996c1687b6a5 | [] | no_license | ypapax/all_sublime_plugins | 062f9b9992a093a02e6b905c1329c681c8532034 | 8b10e471233bd6c2e77907cf5569b0ddccfc88f9 | refs/heads/master | 2021-01-15T21:10:08.029750 | 2015-08-16T06:32:51 | 2015-08-16T06:32:51 | 40,391,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import re
import sys
sys.path.insert(0, '/Users/maks/Library/Application Support/Sublime Text 3/Packages/moveNearReplace')
import filer2
def read(self):
view = self.window.active_view()
filename = view.file_name()
data = filer2.read(filename)
return data
def windowPluginName(self):
data = read(self... | [
"maxYefr@gmail.com"
] | maxYefr@gmail.com |
7902e49a5df27303eec60da89c20f7aefa4c720d | 7db3916d8ac8a66a954d230e43bb74b37f81357c | /15day/06-用进程池创建进程.py | 8f6ee1c366d1b43c8dca4fa6d5a3c44a7a884afe | [] | no_license | 2001128/2_1805 | 2fc96bc6f8e2afcd9d4743891ecd87b754c28cc8 | b3d4bfab2703a7c6aa1c280669376efeab28cad1 | refs/heads/master | 2020-03-22T20:53:14.903808 | 2018-07-30T06:04:49 | 2018-07-30T06:04:49 | 140,639,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | from multiprocessing import Pool
import time
def work(msg):
for i in range(10):
time.sleep(1)
print("嘿嘿嘿%s"%msg)
p = Pool(3)#最大装3个进程
for i in range(6):
p.apply_async(work,(i,))#非阻塞
#p.apply(work,(i,))#阻塞
print("添加一个")
p.close()
p.join()
| [
"335775879@qq.com"
] | 335775879@qq.com |
d711b04956217dda83f8d47d7a2a5a5ee2d06a86 | 14e36010b98895e08bd9edfcbc60dce30cbfb82b | /oneflow/compatible_single_client_python/framework/local_blob.py | 8983fd0ce3ae9d403eddf84b197066a33689b23e | [
"Apache-2.0"
] | permissive | duzhanyuan/oneflow | a9719befbfe112a7e2dd0361ccbd6d71012958fb | c6b47a3e4c9b5f97f5bc9f60bc1401313adc32c5 | refs/heads/master | 2023-06-21T20:31:55.828179 | 2021-07-20T16:10:02 | 2021-07-20T16:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | duzhanyuan.noreply@github.com |
60f4317f06b40db9362ee145924634045e727923 | d3cac61f30d7a76eb61560ac54b0b8d11fd63a19 | /src/model/model.py | 33a6eee5e2b1a4916972b46a64914ee6f015bb93 | [
"MIT"
] | permissive | Lukeeeeee/FISDNN | a676f7f73b8f7b54386054daf320b6a683d89b02 | 49361770fe987337b16a296c00cfd6562a7e95ed | refs/heads/master | 2021-08-24T00:59:46.587476 | 2017-12-07T10:32:58 | 2017-12-07T10:32:58 | 113,009,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import tensorflow as tf
class Model(object):
standard_key_list = []
def __init__(self, config, sess_flag=False, data=None):
self.config = config
self.data = data
self.net = None
if sess_flag is True:
self.sess = tf.InteractiveSession()
def create_model(self, *... | [
"lukedong123@gmail.com"
] | lukedong123@gmail.com |
9cb2f1bdd1bdc428bbeab2a4bcd011661e134f04 | bad44a92fb338260f9c077689d7fa5472526c3fe | /models/tensorflow/google_bert/optimization_test.py | 4f2dcf133f1bc4d4531fc9b82432d149be054b21 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/nnfusion | ebc4c06331b8e93dbf5e176e5ecd3382e322ff21 | bd4f6feed217a43c9ee9be16f02fa8529953579a | refs/heads/main | 2023-08-25T17:41:37.517769 | 2022-09-16T05:59:01 | 2022-09-16T05:59:01 | 252,069,995 | 872 | 157 | MIT | 2023-07-19T03:06:21 | 2020-04-01T04:15:38 | C++ | UTF-8 | Python | false | false | 1,721 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.