blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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): ... | [
"[email protected]"
] | |
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:
""... | [
"[email protected]"
] | |
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" | [
"[email protected]"
] | |
40e89b7989c5e6d8f7aad0954bd436b90cc7752d | f62fd455e593a7ad203a5c268e23129473d968b6 | /neutron-10.0.2/neutron/tests/functional/agent/l3/test_legacy_router.py | fe6f7135012ce38ba46e1d9bdbb27aacecd5bbf3 | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 19,223 | py | # Copyright (c) 2014 Red Hat, Inc.
# 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 require... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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, ... | [
"[email protected]"
] | |
74a43811de7ca3ae9cbfc985a1b448131b33fde9 | fe4f2aeb889f939ea6caf4a34371a3558064abcd | /vlmap_memft/model_vlmap_wordset_only_withatt.py | 55a10294930c0cb98ffa90ac98ff4e0ca9d52a50 | [
"MIT"
] | permissive | HyeonwooNoh/VQA-Transfer-ExternalData | cf9c1b82dd55389dfe5f52d8fd196780dd3d4629 | d21b700bcdc3ba3c392ff793b3f5efe23eb68ed6 | refs/heads/master | 2021-10-25T22:58:00.318492 | 2019-04-08T04:52:46 | 2019-04-08T04:52:46 | 122,662,354 | 21 | 3 | null | null | null | null | UTF-8 | Python | false | false | 28,746 | py | import cPickle
import os
import tensorflow as tf
from vlmap import modules
TOP_K = 5
W_DIM = 300 # Word dimension
L_DIM = 1024 # Language dimension
V_DIM = 1024
class Model(object):
def __init__(self, batch, config, is_train=True):
self.batch = batch
self.config = config
self.data_cfg... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
adf1685660cd92543833062dc2a15281ab6c7339 | bd4dcd90d41aa228f0384c9ba03edd105a93d7ec | /products/migrations/0093_auto_20200221_2053.py | 68291c6f83fef49583f1309c16f7b5252bc349da | [] | no_license | deganoth/mu-shop | 0be0bb0cfa635986b37edbe371daf8373f09aefd | dc1a77ecf6217286c005d762b559fe3f61ef2f6d | refs/heads/master | 2023-02-17T08:23:36.339586 | 2023-01-10T17:51:21 | 2023-01-10T17:51:21 | 243,972,792 | 0 | 1 | null | 2023-02-15T23:10:09 | 2020-02-29T13:22:02 | Python | UTF-8 | Python | false | false | 6,720 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2020-02-21 20:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import djmoney.models.fields
class Migration(migrations.Migration):
dependencies = [
('products', '0092_auto_2020022... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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,... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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 * ... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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)... | [
"[email protected]"
] | |
9827a807920d3270208ee5ee2d316ba711ac1c8e | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/ENTERASYS-SERVICE-LEVEL-REPORTING-MIB.py | 5932cdfda88a0855bdbd278ce5d375e416b10dbd | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 65,271 | py | #
# PySNMP MIB module ENTERASYS-SERVICE-LEVEL-REPORTING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-SERVICE-LEVEL-REPORTING-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:04:36 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
#... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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"... | [
"[email protected]"
] | |
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)
... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
e52af5f18448cc2cbf4a1ceababf69ed635d5df8 | a17cf805fc6a4dc187355e62c9480c6b3c834d53 | /dashboard/dashboard/pinpoint/models/quest/read_value.py | a2f98a65c2c6352536ec5730b49f6da453b9f51d | [
"BSD-3-Clause"
] | permissive | shreya99oak/catapult | 6a42740bfea5eb7513e0054b66b13fab3ffd26b7 | 8d2c28ec7666a034afe50a59f862ea94cef42d9a | refs/heads/master | 2020-03-21T14:53:09.065230 | 2018-06-22T23:30:37 | 2018-06-25T16:57:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,414 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
from dashboard.common import histogram_helpers
from dashboard.pinpoint.models.quest import execution
from dashboard.pinpoint.models.quest import... | [
"[email protected]"
] | |
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, ... | [
"[email protected]"
] | |
bf5db3fd4ad992f0cb25f1ba501df5f3e33e269f | 1797576f7ebc6eea049fea3ff91831cb140afa35 | /Assignments/Assignment-2/list/insert.py | a16c82d590cd0399dd5378f5613687032f77a77f | [] | no_license | Ayushd70/OCF-Python | 8dd44f9ec08509d9610a6d8310622354e88097c2 | bea41d997056235051db9f54f66790f66d7d8a2a | refs/heads/master | 2023-06-03T20:38:52.701002 | 2021-06-23T15:38:56 | 2021-06-23T15:39:46 | 367,636,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | array = [1, 2, 3]
array.insert(3, 4)
print(array)
| [
"[email protected]"
] | |
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는 연결이 되어 있다.)
그런데 이왕이면 컴퓨터를 연결하는 비용을 최소로 하여야 컴퓨터를 연결하는 비용 외에 다른 곳에 돈을 더 쓸 수 있을 것이다.
이제 각 컴퓨터를 연결하... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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
... | [
"[email protected]"
] | |
d6619223f734f4b59730aa074511c946bf2bf25b | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp210_7500.py | ab7b4126c72afe657e76d8c4e239c1fa696ad9df | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,841 | py | ITEM: TIMESTEP
7500
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-1.6751876986904989e+02 2.1471876986909422e+02
-1.6751876986904989e+02 2.1471876986909422e+02
-1.6751876986904989e+02 2.1471876986909422e+02
ITEM: ATOMS id type xs ys zs
1964 1 0.200108 0.00740567 0.00345244
1335 1 0.797577 0.0218471 0.00283992
33... | [
"[email protected]"
] | |
8603cf60ef58ca914e68ca90dc7218b1cb8c56d1 | 9e567b8241ce00e9d53843f5aba11c4a119b079f | /tags/basemap_v0_1_1/toolkits/basemap/lib/matplotlib/toolkits/basemap/basemap.py | 5a5f2e8a998ca09e38a45384a108347f6f0e0790 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-us-govt-public-domain",
"MIT"
] | permissive | neilpanchal/matplotlib | 3d2a7133e858c4eefbb6c2939eb3f7a328b18118 | 7565d1f2943e0e7b4a3f11ce692dfb9b548d0b83 | refs/heads/master | 2020-06-11T09:20:43.941323 | 2011-01-21T21:50:16 | 2011-01-21T21:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,037 | py | from matplotlib.collections import LineCollection
from matplotlib.patches import Polygon
from matplotlib.lines import Line2D
import numarray as N
from numarray import nd_image
import sys, os, MLab
from proj import Proj
_datadir = os.path.join(sys.prefix,'share/basemap')
class Basemap:
"""
Set up a basemap with ... | [
"(no author)@f61c4167-ca0d-0410-bb4a-bb21726e55ed"
] | (no author)@f61c4167-ca0d-0410-bb4a-bb21726e55ed |
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__ = '[email protected]'
__status__ = 'Development'
__all__ = [
'objectify',
'oxml'
] | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
a30eee4d854f094ff7638bc79860ddac7bac2068 | 73e939e797cc28aa33a4f55c234237c47167033e | /ynab_api/model/accounts_response.py | 7de75c556b7c9e317bf693bd9bcb8b75435ccea8 | [] | no_license | dmlerner/ynab-api | b883a086e6ce7c5d2bdb5b17f3f0a40dbb380046 | df94b620d9ec626eacb9ce23bfd313f1c589b03a | refs/heads/master | 2023-08-17T14:22:17.606633 | 2023-07-03T17:05:16 | 2023-07-03T17:05:16 | 223,287,209 | 27 | 13 | null | 2023-08-05T18:58:58 | 2019-11-21T23:58:22 | Python | UTF-8 | Python | false | false | 11,661 | py | """
YNAB API Endpoints
Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com # noqa: E5... | [
"[email protected]"
] | |
7caf461078f991bbcf206acdbbaa9a22473746a1 | c913c952cf4019d67f02bf1971917116da375c81 | /Data/OMIMresults/omimResults1080to1100.py | 0089d41eff4948e4c4d053e3541df062149e7619 | [] | no_license | jiangchb/OMIMscraping | 57afa5b2f8b7ca975e7459814e0410a872f71990 | 27d4ac8faea526b1c70937317caec064bed00a0a | refs/heads/master | 2022-03-14T21:35:56.102665 | 2019-11-22T15:48:48 | 2019-11-22T15:48:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83,915 | py | omim = {'omim': {
'version': '1.0',
'searchResponse': {
'search': '*',
'expandedSearch': '*:*',
'parsedSearch': '+*:* ()',
'searchSuggestion': None,
'searchSpelling': None,
'filter': '',
'expandedFilter': None,
'fields': '',
'searchReport': None,
'totalResults': 7368,
'startIndex': 1080,
'endIndex': 1099, ... | [
"[email protected]"
] | |
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):
... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
93c606579fc91423361e30cfdc8a82a968dbac37 | 326a026bcc6bad962159677110d78d3d836532ed | /wsgi.py | 6574317bc1bf00a24d2f009827fb1d6f7d1c3299 | [
"MIT"
] | permissive | Frederick-S/markote | f63a5007fd0a70ce4b3ae9d03425ae9f9c8b54f3 | 095dabe3da83b5d8809593758661eb78fa527f49 | refs/heads/master | 2023-03-04T16:50:30.541147 | 2022-08-12T01:24:43 | 2022-08-12T01:24:43 | 110,396,888 | 9 | 2 | MIT | 2023-03-04T13:11:38 | 2017-11-12T02:04:32 | Vue | UTF-8 | Python | false | false | 115 | py | from markote.bootstrap import create_app
app = create_app('production')
if __name__ == '__main__':
app.run()
| [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
2385a5660b0dce3abf0c6aac0db65604a5708974 | 93e631e4558f5ae5731dd2e35b1ddc6d4ba91506 | /yaldevtools/source_generators/interface.py | 0edc0d192d38e2a2576b41239712a650d08cc152 | [
"Apache-2.0"
] | permissive | xpoy1/libyal | 2744bff33ce53e70678966ed0c372e2a5f654cc3 | d4a7bded52eb6fa2dc20160ee75905b897827cf1 | refs/heads/main | 2023-04-26T02:00:50.310037 | 2021-05-22T09:51:56 | 2021-05-22T09:52:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,606 | py | # -*- coding: utf-8 -*-
"""The source file generator interface."""
from __future__ import unicode_literals
import abc
import datetime
import io
import logging
import os
import string
import time
from yaldevtools import source_file
from yaldevtools import source_formatter
class SourceFileGenerator(object):
"""Sou... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
83f94bd9c3c121ff9ada41cf8536eca2c0433b1e | 4e29395020ce78f435e75e0b3f1e09b227f6f4d8 | /ataraxia/algorithm/Eval/lib/io_hybrid.py | 32928d5b699ae213791d6a62d1a611549f9ab357 | [] | no_license | luoyangustc/argus | 8b332d94af331a2594f5b1715ef74a4dd98041ad | 2ad0df5d7355c3b81484f6625b82530b38b248f3 | refs/heads/master | 2020-05-25T21:57:37.815370 | 2019-05-22T09:42:40 | 2019-05-22T09:42:40 | 188,005,059 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 17,763 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import logging
import mxnet as mx
import cv2
import numpy as np
from config import cfg
class empty_image(Exception):
'''
catch empty image error
'''
pass
def check_dir(path):
'''
'''
dirname = ... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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 | [
"[email protected]"
] | |
bea3144283716bdbdbe71f6b44d09fa8d6a03de0 | b59bc650ae07b18757b455e1b5cb7cfde91714a4 | /.env/local/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/base.py | 01589adb44061010c8af1db52d5e2584728f1cb0 | [] | no_license | jhashubham28/BE_Project_SpeakerRecognition | d07c584359a5ebc6b524b3b4617b072c58724d17 | ede8fd53e79973e4116030e5a36f9deaa61dcc63 | refs/heads/master | 2020-05-29T20:42:15.055659 | 2019-05-30T20:17:30 | 2019-05-30T20:17:30 | 189,354,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | /home/pi/Downloads/BE_Project-SpeakerRecognition-master/.env/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/base.py | [
"[email protected]"
] | |
8f84d88db14358d73e9ecb453a7653f76aa97d00 | 43e11969cddd18fea322ce5de8a40de0eae8c47c | /clients/python/test/test_stats_history.py | 05dfe605166afc8f031a9af367d96fb721d96ce4 | [] | no_license | bottlecapper/api-connectors | 60b03de028a45f2a1dee0d41c7a899afeff07333 | b202c2889d59979c80386875f53d031b9ad430e7 | refs/heads/master | 2021-07-17T07:33:34.650031 | 2017-10-20T08:55:07 | 2017-10-20T08:55:07 | 106,418,690 | 1 | 0 | null | 2017-10-10T13:09:53 | 2017-10-10T13:09:53 | null | UTF-8 | Python | false | false | 2,296 | py | # coding: utf-8
"""
BitMEX API
## REST API for the BitMEX Trading Platform [View Changelog](/app/apiChangelog) #### Getting Started ##### Fetching Data All REST endpoints are documented below. You can try out any query right from this interface. Most table queries accept `count`, `start`, and `reverse... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
af69540816f7419ffc2f77af3c390426b6e34f54 | f08e50d55bbbb90e4c8f9a8811eaede98ede2694 | /erpbee/accounts/doctype/pricing_rule/test_pricing_rule.py | 6c4c239ce0ed4aa6d247e7e5efd87cdbd727019e | [] | no_license | mohrezbak/erpbee | bc48472a99a7f4357aa7b82ff3a9c1a4c98ba017 | 1134156ad337fd472e14cf347479c17bd8db7b33 | refs/heads/main | 2023-02-12T01:32:07.858555 | 2021-01-08T17:25:23 | 2021-01-08T17:25:23 | 327,872,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,469 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import unittest
import frappe
from erpbee.selling.doctype.sales_order.test_sales_order import make_sales_order
from erpbee.accounts.doctype.sales_invoi... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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, ... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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(... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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))
... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
ebf4a1a93a43e70e379c629e7655ea0504e22e52 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp210_10000.py | 082ba610673f7da75273657839b7b5ca28e987a1 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,768 | py | ITEM: TIMESTEP
10000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-1.7253288531241989e+02 2.1973288531246422e+02
-1.7253288531241989e+02 2.1973288531246422e+02
-1.7253288531241989e+02 2.1973288531246422e+02
ITEM: ATOMS id type xs ys zs
1454 1 0.695244 0.477366 0.481338
1279 1 0.312395 0.0513861 0.0145019
437 1 ... | [
"[email protected]"
] | |
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(
{
... | [
"[email protected]"
] | |
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
... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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) | [
"[email protected]"
] | |
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())
| [
"[email protected]"
] | |
d16b1b41a1fb590da1c4bb249c860c9a341c9b6b | 830465731dfda87b4141546262f20d74c29297bf | /CRYPTO/BambooFox/AttackOnHash/secret.py | d3cf7e8f7cd06fa222aa2906c4912017de846386 | [] | no_license | jchen8tw-research/CTF | f559d7ca0e16a730335b11caeeae208c42e8bf17 | f49615c24437a9cc6a2c20d6b30cb5abf7a32b71 | refs/heads/master | 2023-03-17T12:29:08.630613 | 2021-03-23T06:31:26 | 2021-03-23T06:31:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | flag = 'FAKE'
salt = 'a' * 40
| [
"[email protected]"
] | |
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):... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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) | [
"[email protected]"
] | |
5d83e9f566fba4eac5dbe32b32a2a952e9f7359a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_049/ch71_2019_06_07_01_05_04_054986.py | 288d8e6e8a79edcd51e9bbbaa024bd8e1f5605da | [] | 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 | 81 | py | def esconde_senha(string):
senha_nova="*" * len(string)
return senha_nova | [
"[email protected]"
] | |
96494d65b735f2b56baa0d19449ddb69bcacc03f | f03bd5bd7873c5cc33b4ef5199f219539f3a340e | /CAAPR/CAAPR_AstroMagic/PTS/pts/core/plot/scatter.py | 9fe0c5fd106f27cc39c302f413694a7e00a06ed3 | [
"MIT",
"GPL-1.0-or-later",
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-philippe-de-muyter"
] | permissive | Stargrazer82301/CAAPR | 5f8a7033b16792f23abd5d07021b53b9228a5db4 | 62b2339beb2eb956565e1605d44d92f934361ad7 | refs/heads/master | 2022-08-29T02:53:33.658022 | 2022-08-05T19:06:46 | 2022-08-05T19:06:46 | 49,977,601 | 8 | 1 | MIT | 2022-08-05T19:06:47 | 2016-01-19T19:32:42 | Python | UTF-8 | Python | false | false | 10,466 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
d80ec6633dabfba7c9a1e14b38c97b6429cd2a70 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa2/sample/stmt_list_assign-28.py | c3f3f4a22b92fb70cf62afd2003cfb3858329b4a | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | x:[int] = None
y:[object] = None
x = [$Literal, 2]
y = [None]
x[0] = 3
x[1] = y[0] = 4
| [
"[email protected]"
] | |
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 <[email protected]> , Jun 20 2019
Version: 1.4
Module: SecureTea
"""
import json
from securete... | [
"[email protected]"
] | |
77b5f4f0d26d396c24550978a83d7223fbf2497e | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/wpt_tools/wpt/tools/manifest/__init__.py | 8c8f189070eaa3201bf0d8e7a37618cf39a65743 | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"Apache-2.0"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 63 | py | from . import item, manifest, sourcefile, update # noqa: F401
| [
"[email protected]"
] | |
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 =... | [
"[email protected]"
] | |
0ae9d9691f12345ae7d85bd3246ba0ddd6639a08 | d525935af3c80584fb2175623591a1fc86349db5 | /Problems/Arithmetic mean/tests.py | 381339f215755dd7874bf71a568020d119169d2b | [] | no_license | TonyNewbie/CoffeeMachine | 63822ffdec8570166ebf44c0ffe51bfa14d33810 | 319c41189ede6a2e6e33bd15ae675101c3377b62 | refs/heads/master | 2022-04-22T13:23:47.904126 | 2020-04-26T07:25:44 | 2020-04-26T07:25:44 | 258,960,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from test_helper import check_samples
if __name__ == '__main__':
check_samples(samples=[["10 15 1 6 3","7.0"]]) | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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():
... | [
"[email protected]"
] | |
31e3583bf955816d864b8e81b269523797df9360 | 4275e285b5868d7709d4d491f79906824d7a2770 | /test_site/__init__.py | c3ff3b7a2975204be2289bbc87f166225f6f0680 | [
"MIT"
] | permissive | MarkLark/dstore-test-site | 3bde86b88437bda45672d6c86c413bf4bd1de85c | c353179f65a502412ce3f696d87a47537f2f6143 | refs/heads/master | 2021-01-23T04:53:09.250107 | 2017-01-30T10:38:13 | 2017-01-30T10:38:13 | 80,403,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | from . import app
__all__ = [ "app" ]
| [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
bada444bc3e6bdb38b1d1eb129778f62c66ec57a | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/storage-preview/azext_storage_preview/vendored_sdks/azure_storagev2/blob/v2022_11_02/_generated/operations/_service_operations.py | 75e0f8a8f2f9fde88e1833572a315c4220a645db | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 50,925 | 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... | [
"[email protected]"
] | |
dc5ce011053d51bc444a7a253c7fd41a38ec9dfb | 74eafe55252eff97fd9a2e1e6564ecf243f7c058 | /print_numbers.py | 905050698fd2de935082c1635734d8584b74115a | [] | no_license | srikanthpragada/demo_24_june_2019 | c5ddef71eb721367d656924d312e9ca7ac80c34a | fa7aca273d1ffe6ded34795a639910ab91ce66a0 | refs/heads/master | 2020-06-11T10:19:22.384096 | 2019-08-01T15:28:26 | 2019-08-01T15:28:26 | 193,929,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | # print numbers from 1 to 10
n = 1
while n <= 10:
print(n)
n += 1
for n in range(1, 11, 2):
print(n)
| [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
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']
| [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
28338e414ad6403322decc57220ab896441e6b99 | 11078f43584f75608e86cc4dcbaa37a5a13f24db | /bulk/management/commands/bulk_export.py | 448929cc4f0c74d2896e2f1b63dc5e46a14aa12a | [
"MIT"
] | permissive | tophers42/openstates.org | 90d8cb217f21421c1284fa831c522e90125e5e04 | 76708aa255e3e646ea4f8351a38cf01e286ca7a7 | refs/heads/master | 2022-09-27T08:25:46.413675 | 2020-05-19T15:27:29 | 2020-05-19T15:27:29 | 266,882,535 | 0 | 0 | MIT | 2020-05-25T21:21:20 | 2020-05-25T21:21:20 | null | UTF-8 | Python | false | false | 9,960 | py | import os
import csv
import json
import datetime
import tempfile
import zipfile
import uuid
import boto3
import base62
from django.core.management.base import BaseCommand
from django.db.models import F
from openstates_metadata import STATES_BY_NAME
from openstates.data.models import (
LegislativeSession,
Bill,
... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] | |
b85f0c1051c650952f431887a123586c06dde8a1 | dae8e0070b093d662fdeea026e3eb48814af73c5 | /Autosampler/startRHX.py | aef73c56a5e8509ca416b314aa8ee12e017a7281 | [] | no_license | clipo/RHX | 43d3dc8e0f2a4d90a8c83ec2a9e4fc0be30fddae | 93286e17df1ec05d98d791671d641d86b7f588b9 | refs/heads/master | 2021-01-02T23:06:23.023476 | 2013-04-27T21:42:01 | 2013-04-27T21:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80,221 | py | ###Simple program that moves the motors and the arms - used for finding positions.
##Imports
import sys
import easygui
# comment while on Mac OS X
#sys.path.insert(0, "/usr/local/lib/python2.7/site-packages/")
import easygui
import logging
import communication
from Tkinter import *
import tkFileDialog
fr... | [
"[email protected]"
] | |
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") | [
"[email protected]"
] | |
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},
... | [
"[email protected]"
] | |
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... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.