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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1dfff3e38b3bd651bc5e903568e8aa7247b364f1 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/pj4.py | 6ecdcb6b9d818aa3e4621cbb324d9ffa9af3f15b | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
27e868793db98eef333ee957194365c10f92a86a | 8f0b0ec0a0a2db00e2134b62a1515f0777d69060 | /scripts/study_case/ID_4/torch_geometric/datasets/bitcoin_otc.py | 9cac9650c2ef9f7325312ec171fffdd37d82203a | [
"Apache-2.0",
"MIT"
] | permissive | Liang813/GRIST | 2add5b4620c3d4207e7661eba20a79cfcb0022b5 | 544e843c5430abdd58138cdf1c79dcf240168a5f | refs/heads/main | 2023-06-09T19:07:03.995094 | 2021-06-30T05:12:19 | 2021-06-30T05:12:19 | 429,016,034 | 0 | 0 | Apache-2.0 | 2021-11-17T11:19:48 | 2021-11-17T11:19:47 | null | UTF-8 | Python | false | false | 3,837 | py | import os
import datetime
import torch
from scripts.study_case.ID_4.torch_geometric.data import (InMemoryDataset, Data, download_url,
extract_gz)
class BitcoinOTC(InMemoryDataset):
r"""The Bitcoin-OTC dataset from the `"EvolveGCN: Evolving Graph
Convolutional Networks for D... | [
"793679547@qq.com"
] | 793679547@qq.com |
9956649fc2bc0a6cc026fe3bd808a5b1a8da2e4e | d267ec32822b24092f617e88da919d1709549394 | /wproject1m/ecommerce2/TenktoTwentyk/models.py | f78b309280257f8852d46a33c1555ea55c31b2bf | [] | no_license | sam-student/Evaluation | 42fcccae54358fbb6a8bef8c5f9d80a7bc075864 | 3ba7842a15e431d30618c28819ea9b64c618ef2a | refs/heads/master | 2020-05-17T04:23:08.997952 | 2019-04-25T21:05:46 | 2019-04-25T21:05:46 | 183,507,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,780 | py | import random
import os
from django.db import models
from django.urls import reverse
# Create your models here.
from django.db.models.signals import pre_save, post_save
from ecommerce.utils import unique_slug_generator
def get_filename_ext(filename):
base_name=os.path.basename(filename)
name, ext = os.path.sp... | [
"abc@gmail.com"
] | abc@gmail.com |
2ad335d965ff4c2914b730c674f63af56e5b0f11 | d2921434222a8df14c5a6bfe428637887f40db00 | /code/inference/Object_Detection_Tracking/deep_sort/utils.py | 9064a7493f6814a5dc84b4f007afc194e421425e | [
"Apache-2.0"
] | permissive | JunweiLiang/social-distancing-prediction | d8d17fc6d512704e8662cf36e1c5161ca83f11ad | cec744ab2f32e429a016312f5cdce89bff9935f4 | refs/heads/master | 2023-04-20T23:14:27.731826 | 2023-04-06T05:05:58 | 2023-04-06T05:05:58 | 253,086,544 | 44 | 22 | Apache-2.0 | 2020-04-25T13:10:23 | 2020-04-04T19:50:35 | Python | UTF-8 | Python | false | false | 3,937 | py | import numpy as np
from deep_sort.detection import Detection
from bisect import bisect
def create_obj_infos(cur_frame, final_boxes, final_probs, final_labels,
box_feats, targetid2class, tracking_objs, min_confidence,
min_detection_height, scale, is_coco_model=False,
... | [
"junweil@cs.cmu.edu"
] | junweil@cs.cmu.edu |
b05dc270889047f4ca8b6c93a64fa44312707097 | 1654ad47bd1de7b7fb05360ee6d47d4ebfe39f34 | /members/test_models.py | 2d74f0e667b8ffb2e647f580c099d22ad8b40533 | [
"BSD-3-Clause"
] | permissive | profbiyi/djangoproject.com | c710906be7c3673170614fb189111bde11bd5877 | 5bc906c7b12d470aa7523d2571c4796abd89ff4c | refs/heads/master | 2021-01-11T22:25:41.736810 | 2016-12-20T17:43:56 | 2017-01-13T14:08:28 | 78,961,009 | 1 | 0 | null | 2017-01-14T19:13:21 | 2017-01-14T19:13:21 | null | UTF-8 | Python | false | false | 3,520 | py | from datetime import date, timedelta
from django.test import TestCase
from members.models import (
GOLD_MEMBERSHIP, PLATINUM_MEMBERSHIP, SILVER_MEMBERSHIP, CorporateMember,
IndividualMember,
)
class IndividualMemberTests(TestCase):
@classmethod
def setUpTestData(cls):
cls.member = Individua... | [
"timograham@gmail.com"
] | timograham@gmail.com |
24f6e018158e90f2c109f768638959edd9a0a6cb | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/425/usersdata/348/92052/submittedfiles/dec2bin.py | e404d059cc03a30fd24404f893496bf348e67fee | [] | 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 | 446 | py | # -*- coding: utf-8 -*-
#contador de digitos
def ContaDigitos (n):
cont = 1
while (n//10>0):
n = n//10
cont += 1
return cont
# somar digitos
def somardigitos(g):
soma = 0
while g is not 0:
soma += g%10
g = int(g/10)
return soma
p = int(input('informe o p: ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d71a1ebc17c2d56f748a33eca26b61a4659f11e8 | b4a527447b2063333ad28d2fc29d6128de0e75f5 | /nevpro_orient_addons/psd_warehouse/__init__.py | 3c4e8b24634642b90d878dbfb7b0aba6d4492bff | [] | no_license | shreyaskamath22/sample_code | ab693cc83c86dd696339dc7f03790720d5114435 | 33d80a2e88ac954f391a80146bdea95b4f3119c8 | refs/heads/master | 2021-05-12T13:17:38.136713 | 2018-01-10T10:03:47 | 2018-01-10T10:03:47 | 116,930,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"gituser123@gmail.com"
] | gituser123@gmail.com |
fa01652f7626b82391e281ce015ba9461201d5fc | e28978d62cd1db2ef1c4e8f45a1fa58ceba81714 | /upload_cardapio/migrations/0004_auto_20161110_0014.py | a616820b15e1662364b272434fcf37bfa8a6eb6a | [] | no_license | robertocsp/bipy3 | 749af8e83172bf9afca2724a95660c7869202ce6 | 6ae18c3bdbebdbe6ffe04ffe9d521f1aa54871e0 | refs/heads/master | 2020-04-09T13:30:55.799384 | 2017-03-22T13:17:00 | 2017-03-22T13:17:00 | 62,016,005 | 0 | 0 | null | 2016-10-20T13:20:19 | 2016-06-27T01:10:24 | JavaScript | UTF-8 | Python | false | false | 573 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-11-11 00:22
from __future__ import unicode_literals
from django.db import migrations
import django.db.models.deletion
import utils.bigint
class Migration(migrations.Migration):
dependencies = [
('loja', '0008_bigint_20161110_0004'),
]
... | [
"gustavo.guly@gmail.com"
] | gustavo.guly@gmail.com |
c0c3bb2377ffb17d151d44f8e2220410d3ca089f | 99ddc4733f832dcabb4dad5e190b927ce9e0e629 | /result_data/publications_links.py | 364d0b517876d8d438320ea4718829a468a12791 | [] | no_license | Casyfill/scrapingMID | 41f760a560a4cd368784f66c6771d9fec426a2c6 | 433bcca3c9e4f6effb1851983f1b39c4ca1a2eb4 | refs/heads/master | 2021-01-20T10:46:06.816792 | 2015-06-17T15:17:56 | 2015-06-17T15:17:56 | 37,602,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
## Philipp Kats (c) June 2015
## scraping MID : Публикации
import requests, scraperwiki #, json, urllib, time,random
from datetime import datetime
import lxml.html
def scrapePageSMI(link, earl):
'''
scraping page from MID: answers to SMI;
'''
unique_keys =... | [
"casyfill@gmail.com"
] | casyfill@gmail.com |
ac7200650548a96aa75c494dea0cd0ff98b1f957 | cab7ef4e4e7cac671f141f5f798ff10182bb91a3 | /test/cli_test.py | 9750307a6679441a631a7cdfc2ac1aa11eef8935 | [] | no_license | beesperester/python-scriptable-houdini | be547299232fa47f111727201fc3b66ea4785564 | 34183bff5cb79b18d4f680341a31ea8796cd4a1d | refs/heads/master | 2022-12-08T08:20:18.014984 | 2020-08-30T19:52:57 | 2020-08-30T19:52:57 | 291,506,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | import unittest
# pydini
from pydini.cli import cli
class TestCliMethods(unittest.TestCase):
def test_cli(self):
self.assertTrue(cli("file /Users/bernhardesperester/git/python-scriptable-houdini/examples/example"))
| [
"bernhard@esperester.de"
] | bernhard@esperester.de |
be4cae57c6d7553aad6194966e21bce7945d3b4a | 6e932aa6ec9424ae0238c559112fdd0214c52be6 | /ffawp/ch03/7_pandas_excel_column_by_index.py | 46091c546d93d0be59c779e56143d2e0a2105ffe | [] | no_license | LingChenBill/python_first_introduce | d1c780dcd3653ef4cda39cc4a0c631a99071f088 | 32ff4a16fe10505fcb49e4762fc573f5f1c62167 | refs/heads/master | 2020-07-29T13:03:15.447728 | 2020-06-09T13:39:07 | 2020-06-09T13:39:07 | 209,813,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | # Date:2020/5/25
# Author:Lingchen
# Mark: 利用pandas来筛选特定的列
# python3 7_pandas_excel_column_by_index.py data/sales_2013.xlsx data/output/7_output_pandas.xlsx
import pandas as pd
import sys
input_file = sys.argv[1]
output_file = sys.argv[2]
data_frame = pd.read_excel(input_file, sheet_name='january_2013', index_c... | [
"lingchen1316@163.com"
] | lingchen1316@163.com |
ae6a32413cd11a7b2c1641750e2e0ab5eaf0098f | 4519b4b24f3907da1dde513f72d432fd9b4391f4 | /crds/jwst/specs/niriss_amplifier.spec | 6ccec0f5c173fcc470d0acdec4afa258d7e69b7b | [
"BSD-2-Clause"
] | permissive | spacetelescope/crds | 0bd712b7c7c6864c274987e7ba94a051e19d1e48 | 08da10721c0e979877dc9579b4092c79f4ceee27 | refs/heads/master | 2023-07-23T17:07:33.889579 | 2023-06-29T20:04:56 | 2023-06-29T20:04:56 | 52,045,957 | 9 | 29 | NOASSERTION | 2023-09-14T17:42:28 | 2016-02-18T23:15:38 | Python | UTF-8 | Python | false | false | 512 | spec | {
'derived_from' : 'cloning tool 0.03b (2012-09-11)',
'file_ext' : '.fits',
'filekind' : 'AMPLIFIER',
'filetype' : 'DETECTOR PARAMETERS',
'instrument' : 'NIRISS',
'mapping' : 'REFERENCE',
'name' : 'jwst_niriss_amplifier_0000.rmap',
'observatory' : 'JWST',
'parkey' : (('META.INSTRUMEN... | [
"jmiller@stsci.edu@stsci.edu"
] | jmiller@stsci.edu@stsci.edu |
3d9b2d060a77f242efcf80aa17c7928b76186008 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/2245. Maximum Trailing Zeros in a Cornered Path/2245.py | 9c763ab4b9a81598a2bd4acdb95e98b4aed48aa7 | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 2,034 | py | class Solution:
def maxTrailingZeros(self, grid: List[List[int]]) -> int:
m = len(grid)
n = len(grid[0])
# leftPrefix2[i][j] := # of 2 in grid[i][0..j]
# leftPrefix5[i][j] := # of 5 in grid[i][0..j]
# topPrefix2[i][j] := # of 2 in grid[0..i][j]
# topPrefix5[i][j] := # of 5 in grid[0..i][j]
... | [
"me@pengyuc.com"
] | me@pengyuc.com |
c0c7402354a7cb6102aa6435284b924201a99110 | 6b41558f2c07b86da06c69dbf06363a43f08b644 | /python-gui/venv/lib/python3.7/site-packages/nidaqmx/_task_modules/channels/di_channel.py | 9c664c03946a3ba63e5b5793548a9ba507b291df | [] | no_license | Sammyalhashe/Charter-cp | 5222ed249e50d3b5eeb468d90bc9dc34cb5eccd4 | 1652d7b25c986d0a4c1f08bc68252132ed3566d0 | refs/heads/master | 2023-03-14T13:00:08.591094 | 2019-10-26T04:21:37 | 2019-10-26T04:21:37 | 174,767,319 | 0 | 0 | null | 2023-02-28T10:40:37 | 2019-03-10T02:05:10 | Python | UTF-8 | Python | false | false | 29,368 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import ctypes
import numpy
from nidaqmx._lib import lib_importer, ctypes_byte_str, c_bool32
from nidaqmx.errors import (
check_for_error, is_string_buffer_... | [
"sammy.alhashemi@mail.utoronto.ca"
] | sammy.alhashemi@mail.utoronto.ca |
8a52c13095581ba0eee722b2e42eeb95fa47e209 | 41f7085fffd12bb53222fdba00d033a43b9d7081 | /products/admin.py | 0f57b3b447ba98103af25b0208b0a22595fdd971 | [] | no_license | arifgafizov/online_store | b852e1bd32149268bbed9159f1037561a3d7e9a0 | 25c32f0ae65469e904509772d414a79a743ae31b | refs/heads/master | 2023-08-01T06:28:47.302377 | 2021-09-18T18:30:28 | 2021-09-18T18:30:28 | 345,300,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | from django.contrib import admin
from .models import Product
@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
list_display = ['id', 'title', 'price', 'is_deleted']
| [
"agafizov@gmail.com"
] | agafizov@gmail.com |
86bd70e1a02f04d78b2b80ea47b7f1e989034403 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binaryTree2_20200617161517.py | f3a4b120336aedbc1fa778594b3da68fe9568879 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | # Create a node and assign a value to the node
# A tree node contains data then pointer to left child and pointer to right child
class Node:
def __init__(self,data):
# designate one node as root
self.data = data
# then the two others as child nodes
self.left = None
self.... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
006c90cf7df9ec40ff716c95f1414cc597574d4a | e9689e5ba11f19acec215fcdd89a931e0a8a81d4 | /erp/productlist/migrations/0031_auto_20170912_0013.py | 4c5197ce958c73b9c14fcb62b5cdcad112426e2e | [] | no_license | PythonAlan/foshan | 75d670954b3f18d239dcbddd3ed47243778aaeb9 | 256cfddd1ec47d723dd10c1a0aff0cb82bfcef2c | refs/heads/master | 2021-08-27T22:30:46.799845 | 2017-12-10T15:46:12 | 2017-12-10T15:46:12 | 113,762,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-09-11 16:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('productlist', '0030_auto_20170911_2301'),
]
operations = [
migrations.Remov... | [
"371725153@qq.com"
] | 371725153@qq.com |
b80d738afde2fe45dab32ac015d8f265ad3ccfa2 | 0a0cf2e17282131b83c5f3d3435e1d081d3b5037 | /migrations/versions/0a7626501af1_.py | afc3eeea672afd26e2c06c635e2a320d270e9ce4 | [
"MIT"
] | permissive | Anioko/landingpage_cms | cd60bed31e0544604768db92c3b354f6d9897e11 | b2d68d28287dd163de7d420b2c20b19050a2326a | refs/heads/master | 2023-03-20T07:10:47.734109 | 2020-09-17T07:52:32 | 2020-09-17T07:52:32 | 292,569,342 | 0 | 0 | MIT | 2021-03-20T05:03:31 | 2020-09-03T12:52:14 | JavaScript | UTF-8 | Python | false | false | 680 | py | """empty message
Revision ID: 0a7626501af1
Revises: c60b807c925f
Create Date: 2020-09-11 18:09:06.489717
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0a7626501af1'
down_revision = 'c60b807c925f'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"aniekanokono@gmail.com"
] | aniekanokono@gmail.com |
fe2be4bf5bc9911ba5caca98dd735e0bff98f479 | 642526009a434c2a6e04fe0293279a151b216d0a | /dkube/sdk/internal/dkube_client/models/job_model_parameters_priority.py | 7316475303e09acb141fd218235d1971be7f1c38 | [] | no_license | mak-454/dkube-sdk | d4b8e7f7b1d8c0b0f64b10940ae42ab9d62f4654 | d2ba78a0abbda589efc0dbd957d9a8f6fd227464 | refs/heads/master | 2022-12-26T03:17:55.627379 | 2020-05-09T17:29:08 | 2020-05-09T17:29:08 | 262,622,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | # coding: utf-8
"""
Dkube api server
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
impor... | [
"ahmed.khan@oneconvergence.com"
] | ahmed.khan@oneconvergence.com |
d049c3c74d2100798cda7d028d6b079ab09bfbb4 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/gnome/ui/ClientFlags.py | dc2b27b1eacf58d4d878690ec3b7a3534e2cf74e | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # encoding: utf-8
# module gnome.ui
# from /usr/lib64/python2.6/site-packages/gtk-2.0/gnome/ui.so
# by generator 1.136
# no doc
# imports
import gnome.canvas as __gnome_canvas
import gobject as __gobject
import gobject._gobject as __gobject__gobject
import gtk as __gtk
class ClientFlags(__gobject.GFlags):
# no d... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
524afc62015a0cd257dfba6628c5205137ad6313 | eb297ff1e0011438fd184cc338b3fb86859b81c9 | /Chapter 12/12-1_to_12-4/settings.py | 1f495b3be6af5b5b83cdf8d2e2daf1fd3cf6d1e8 | [] | no_license | mynameisbenzo/PythonCrashCourse | c73a4505d9cdfe4df78e3ed01adb3491debf8a9b | 831a9962a3c6cab53ecfdb1d2cceb0dd2d9c5a0a | refs/heads/master | 2021-04-12T08:13:51.772957 | 2018-05-02T05:54:57 | 2018-05-02T05:54:57 | 126,091,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | class Settings():
def __init__(self):
self.screen_width = 1200
self.screen_height = 800
self.bg_color = (0,0,255) | [
"lorhernandez@csumb.edu"
] | lorhernandez@csumb.edu |
1ae6cd3692d693cd46ca4890d7b34ff6b0683c0f | fc678a0a5ede80f593a29ea8f43911236ed1b862 | /448-FindAllNumbersDisappearedinanArray.py | f73f5870bf962bf167c0b485af3190b4941dc7ea | [] | no_license | dq-code/leetcode | 4be0b1b154f8467aa0c07e08b5e0b6bd93863e62 | 14dcf9029486283b5e4685d95ebfe9979ade03c3 | refs/heads/master | 2020-12-13T15:57:30.171516 | 2017-11-07T17:43:19 | 2017-11-07T17:43:19 | 35,846,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | class Solution(object):
def findDisappearedNumbers(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
if len(nums) == 0:
return []
res = []
for item in nums:
nums[abs(item) - 1] = - abs(nums[abs(item) - 1])
for i in r... | [
"dengqianwork@gmail.com"
] | dengqianwork@gmail.com |
1be4c37c2a99ea4adec64445e7ebee8d5a4b3480 | 4ca8ed85f527bdb21bad5909c1181a877e4267be | /migrations/pre-srid-change-versions/2a237f9c430f_trail_geom_to_multi.py | eebffb89c1efd13dcb88936db129193ead676c50 | [] | no_license | abkfenris/baxter-flask | 5401dbf1ea7e2f140d3cf367ce39027ad7cd0f83 | bb12ea90857f908cccc302b01572d4a05415551f | refs/heads/master | 2021-01-23T11:40:46.925152 | 2015-03-07T23:18:59 | 2015-03-07T23:18:59 | 27,469,198 | 0 | 1 | null | 2019-07-22T18:47:16 | 2014-12-03T04:28:21 | CSS | UTF-8 | Python | false | false | 805 | py | """trail.geom to multi
Revision ID: 2a237f9c430f
Revises: 2dec8c5c859d
Create Date: 2014-12-03 19:24:46.501525
"""
# revision identifiers, used by Alembic.
revision = '2a237f9c430f'
down_revision = '2dec8c5c859d'
from alembic import op
import sqlalchemy as sa
import geoalchemy2
def upgrade():
### commands aut... | [
"abk@mac.com"
] | abk@mac.com |
aec23938e4512a08fac5a1da29b3208c286b64af | c37b599dc08153dd72436c69933243ce60048391 | /homeassistant/components/dynalite/light.py | a5b7139803c174d36bd0fcb0c68d809d8b4b9699 | [
"Apache-2.0"
] | permissive | perara/home-assistant | 2abb44b88ae248e086c4d4e568d79a993152f1ab | dee557872bfbc759555bd73e006e46f9ecb16063 | refs/heads/dev | 2020-04-01T19:06:37.239471 | 2020-03-30T23:06:53 | 2020-03-30T23:06:53 | 153,535,277 | 2 | 1 | Apache-2.0 | 2018-10-18T23:30:09 | 2018-10-17T23:14:37 | Python | UTF-8 | Python | false | false | 1,215 | py | """Support for Dynalite channels as lights."""
from homeassistant.components.light import SUPPORT_BRIGHTNESS, Light
from .dynalitebase import DynaliteBase, async_setup_entry_base
async def async_setup_entry(hass, config_entry, async_add_entities):
"""Record the async_add_entities function to add them later when ... | [
"noreply@github.com"
] | perara.noreply@github.com |
81f8b77a11ef68786112511c0d6bfd66ad71ce07 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/test_einsum_0d_tensor.py | a401b1300bfd6164aa2f0cd6eec16bf15d500dcd | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 5,600 | py | # Copyright (c) 2022 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 |
998a9c753ebd475dc1b6e2cc7b84b17f6ad7a63f | dffb316df646b2d1c4739e30f9547a6860867ccf | /leetcode/_076_MinimumWindowSubstring.py | 6ed05691b3c6a54cfcf066e9c63f9265e2487277 | [] | no_license | scolphew/leetcode_python | 50051f78085e3dd13a39e51bf50c40db9abb8295 | 86352d3f51ab030afdb7b472a80bc8cab7260c08 | refs/heads/master | 2022-09-13T02:47:05.900375 | 2022-09-07T06:17:14 | 2022-09-07T06:17:14 | 68,989,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | class Solution(object):
def minWindow(self, s, t):
"""
最短匹配字串(无序)
:type s: str
:type t: str
:rtype: str
"""
from collections import Counter
length = len(t)
i = l = 0
r = len(s) - 1
chars = Counter(t)
for j, c in enumerat... | [
"scolphew@pku.edu.cn"
] | scolphew@pku.edu.cn |
04407fe7fe7b1da9c27528714b4b0cb29e591bb6 | 66e45a2760db8a1fc580689586806c2e3cce0517 | /pymontecarlo/formats/hdf5/options/sample/inclusion.py | d1f3a0b6104e8b02cbf194cc9c64a814164eda5f | [] | no_license | arooney/pymontecarlo | 4b5b65c88737de6fac867135bc05a175c8114e48 | d2abbb3e9d3bb903ffec6dd56472470e15928b46 | refs/heads/master | 2020-12-02T18:01:42.525323 | 2017-05-19T16:44:30 | 2017-05-19T16:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | """"""
# Standard library modules.
# Third party modules.
# Local modules.
from pymontecarlo.formats.hdf5.options.sample.base import SampleHDF5Handler
from pymontecarlo.options.sample.inclusion import InclusionSample
# Globals and constants variables.
class InclusionSampleHDF5Handler(SampleHDF5Handler):
ATTR_... | [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
16ff6ea4934763e46b88417c1101be732e65186d | da330d765af398d2311da9f40b084542ef0601fa | /PIEROALFARO/ejercicio7.py | 4881db9997354fa83773147a8fdcec145aeaf95b | [] | no_license | Piero942/TRABAJO5 | 47d6db57a1b8d9f6bdcabcc8ba0a72856f7107ef | 316d876f1f9784398379c51a8fb15d1286e94622 | refs/heads/master | 2020-09-06T18:26:23.893283 | 2019-11-08T19:20:38 | 2019-11-08T19:20:38 | 220,508,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | #Input
numero1=float(input("Ingresar el numero1:"))
numero2=float(input("Ingresar el numero2:"))
#Processing
raiz=(numero1*numero2)**(1/2)
#verificador
raiz_exacta=(raiz==int(raiz))
#Ouput
print("###########################################################")
print("# Algoritmo para hallar la raiz cuadrada de un produ... | [
"palfaro@unprg.edu.pe"
] | palfaro@unprg.edu.pe |
5e648c1406bc63369c7226dc1885659d93d3d136 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/web/get_connection_gateway.py | 87b3497031acb7f2160abb330a3dd79088b17089 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 4,640 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | morrell.noreply@github.com |
ee7b4229fc9121b417dc23e93f1d10f1cf40aaac | cd052f960846ea33e22abdded3106fb492f16c31 | /爬虫项目/spider/spiders/pdd_goods_sales_check_v6.py | f1b5dff22aba509722dc7bc8a26a040b9e042124 | [] | no_license | byst4nder/his_spider | 2d96457b70894c36506e8061d8a3201ac337a5d0 | a51e31acff41292e568ac22b0e213e6cb48218fa | refs/heads/master | 2020-07-21T12:06:28.952083 | 2019-09-06T14:25:58 | 2019-09-06T14:25:58 | 206,857,595 | 1 | 0 | null | 2019-09-06T19:04:02 | 2019-09-06T19:04:02 | null | UTF-8 | Python | false | false | 8,602 | py | # -*- coding: utf-8 -*-
import datetime
import string
import scrapy
import json, time, sys, random, re, pyssdb, os, setting, logging, redis
from spider.items import CategoryGoodsItem
from scrapy.utils.project import get_project_settings
from scrapy.spidermiddlewares.httperror import HttpError
from twisted.i... | [
"mac@macdeMacBook-Pro.local"
] | mac@macdeMacBook-Pro.local |
26f621a9c761445ee563b7f3a9dc1a9e574bfe6b | df789505c99974c0ba45adc57e52fc7865ff2a28 | /day5/xml/xml处理模块.py | 6b1965229767f70c1f5aea7a550d731503657531 | [] | no_license | zhiwenwei/python | 6fc231e47a9fbb555efa287ac121546e07b70f06 | 76d267e68f762ee9d7706e1800f160929544a0a3 | refs/heads/master | 2021-01-20T04:21:44.825752 | 2018-12-19T06:20:10 | 2018-12-19T06:20:10 | 89,676,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | #coding:utf-8
#Author:Mr Zhi
import xml.etree.cElementTree as ET
tree = ET.parse('xml_test.xml') #打开xml文件并赋值变量
r = tree.getroot() #getroot用于得到xml文档元素
print(r,r.tag)
#遍历xml文档
for child in r:
print(child.tag,child.attrib)
for i in child:
print(i.tag,i.text)
#只遍历year节点
for node in r.iter('year'):
prin... | [
"ddzhiwenwei@163.com"
] | ddzhiwenwei@163.com |
4c735325dbdaeb3995c3c8ccad4aa475b828eab4 | 9b3cc618ae323c10810b05be84c573b89daff30c | /scrapper/django101/env/bin/easy_install | f95c4e4f6e64764039a42bae2d7bb84978836dcb | [] | no_license | kohlishivam/codingblocks-chatbot | 15f123cbad6ca48987825fe3593b83e5ee643d16 | df3178c1a1effee2970188331fb34cc08fd4afbf | refs/heads/master | 2021-01-13T10:56:38.322959 | 2016-10-08T05:22:40 | 2016-10-08T05:22:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | #!/home/vishrut/Desktop/coding/scrapper/django101/env/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kohlivishrut@gmail.com"
] | kohlivishrut@gmail.com | |
50df1528e3f59cd108f46ff7c6be293e58da3965 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_62/30.py | 89032cc6a2cb8909b4d32a9190f3a2e343f5cf2c | [] | 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 | 640 | py | # -*- coding: utf-8 -*-
fname = "A-large"
fin = open(fname+".in","r")
fout = open(fname+".out","w")
def gcj_read():
linestr = fin.readline().strip()
linebits = [int(numb) for numb in linestr.split()]
if len(linebits) == 1:
return linebits[0]
else:
return linebits
numcases = gcj_read()
for caseno in ra... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
050a1d1e7db16f4ff227405a5701f54ea2609395 | 3fc00c49c6b5a5d3edb4f5a97a86ecc8f59a3035 | /grais/migrations/0010_auto_20210324_0830.py | 0d9f79095ebd65b2e04272b76be9764d84c135d9 | [] | no_license | yc-hu/dm_apps | 9e640ef08da8ecefcd7008ee2d4f8f268ec9062e | 483f855b19876fd60c0017a270df74e076aa0d8b | refs/heads/master | 2023-04-07T13:13:55.999058 | 2021-04-12T10:19:21 | 2021-04-12T10:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # Generated by Django 3.1.6 on 2021-03-24 11:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('grais', '0009_auto_20210324_0830'),
]
operations = [
migrations.RenameField(
model_name='incidentalreport',
old_name='longit... | [
"davjfish@gmail.com"
] | davjfish@gmail.com |
0b7f9448ad198984d5e0f3b0be28d96adcbb2d88 | a58a75b2a6185df177e125cac9b5382baa472d73 | /Python/Lab30/Lab30_3.py | e8a007f2da8cc17c8bdc1df17e3978dae17ee390 | [] | no_license | aska1987/MachineLearning-DeepLearning_SDAcademy | dff4a86927be47aff2900d702f838e3571406379 | 873fd8967c9fa086e8efb29cfafc14c1911dbb36 | refs/heads/master | 2021-10-09T04:38:39.508647 | 2018-12-21T09:17:56 | 2018-12-21T09:17:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,513 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 15 12:21:25 2018
삼성전자 주가분석
@author: SDEDU
"""
import pandas as pd
import pandas_datareader.data as web
import matplotlib.pyplot as plt
import datetime as dt
import numpy as np
from sklearn.preprocessing import MinMaxScaler
import keras
from keras.models import Sequential
... | [
"ljg95924@naver.com"
] | ljg95924@naver.com |
0bb8a81c53cdbc5c9e9545831de1d9dc510d807d | 9a486a87e028303a551fbd0d1e1b6b650387ea14 | /propose/server.py | 54c36384f75cfeb5af7c313afc26e755514bccf5 | [] | no_license | shanlihou/pythonFunc | 7b8e7064fddd4522e492c915c086cc6c5abc6eec | 646920256551ccd8335446dd4fe11aa4b9916f64 | refs/heads/master | 2022-08-24T20:33:12.287464 | 2022-07-21T12:00:10 | 2022-07-21T12:00:10 | 24,311,639 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # coding=utf-8
import asyncio
from aiohttp import web
from aiohttp import web_runner
from RPC import RPC
import threading
async def cmd(request):
data = await request.json()
RPC().parseCmd(data)
return web.json_response({'result': 'success'})
async def init(loop):
app = web.Application(loop=loop)
... | [
"shanlihou@gmail.com"
] | shanlihou@gmail.com |
c437368336842d4d934a9270c7860c427ac24094 | 5c0f0dde1a7e473d58b530898183976cae7db329 | /Python/project/entities_templates/m14_00_00_00_entities.py | be787fb8ddf19c58cc59297e72f2fd8190b92f3b | [] | no_license | Grimrukh/SoulsModifier | 4e8dc162d07cfabf0c6b533c60b5fa0634b9b22a | 090a1e44be9d6dc00755b961ed6aba679e34ea93 | refs/heads/master | 2023-08-16T22:07:34.937988 | 2021-09-29T23:57:25 | 2021-09-29T23:57:25 | 411,862,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,860 | py | from soulstruct.games import DARK_SOULS_DSR
from soulstruct.game_types import *
class Objects(Object):
"""`Object` entity IDs for MSB and EVS use."""
# noinspection PyMethodParameters
def _generate_next_value_(name, _, count, __):
return Object.auto_generate(count, DARK_SOULS_DSR, 1400000)
o... | [
"swj.mooney@gmail.com"
] | swj.mooney@gmail.com |
def92ca21c2334e8b7306aee491f61d2a8346706 | 53fca3fa4662a5d04e99445c3baeaaa4169083a1 | /train_gnn0853.py | 59a58485351bc6f67fffae025f96bc4b1e3b85bb | [] | no_license | yougoforward/Iter_ParseNet | 223b99aa5eef70b83f2fa5493c26549266a11fe9 | 39367c3332b076678105489ce4a5cf8f250491e5 | refs/heads/master | 2021-07-12T20:49:19.866085 | 2020-09-06T12:32:35 | 2020-09-06T12:32:35 | 200,991,268 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,461 | py | import argparse
import os
import random
import sys
import time
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torchvision
from tensorboardX import SummaryWriter
from torch.nn import functional as F
from torch.nn.parallel.scatter_gather import gather
from torch.utils import data
from dataset.d... | [
"908865817@qq.com"
] | 908865817@qq.com |
58c9ed061d5357c515f41e3107e0c6c5b080a1ff | f12d64a7a2481a6abd329131cd5f4a57d3152d64 | /hzzg/cfg.py | 858e1e740242cafc2b0c52ca3a240777886353d6 | [] | no_license | fclm1316/mypy | 40cd1c252759503658c23d5a25150cb1d2c4b15e | b932cf211b1ce2888155bfc5ccc07e2f1347ee24 | refs/heads/master | 2021-12-22T02:44:35.924671 | 2021-01-05T11:39:06 | 2021-01-05T11:39:06 | 124,316,322 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | #!/usr/bin/python3
# coding:utf-8
url = "http://172.1.2.136:10098/b_imageapi/"
org = "102335407507"
operid = "102101"
operpwd = "111111"
# 类别
ckrlb = ['02', '03', '18']
# 证件种类
zjzl = ['02001', '02002', '02039']
# 账户
input_id = 100000000
input_str = 'test1'
# 文件
file1 = "C:\\1_申请书.pdf"
file2 = "C:\\2_营业执照.pdf"
file3... | [
"fbfclm@qq.com"
] | fbfclm@qq.com |
bc7691b83313ba1f79397d4ddb2398d9d8db7aab | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_049/ch42_2019_09_30_20_07_41_171353.py | 6e0f29b3a62b54f1bdda5646e7c3c9dd5ba30882 | [] | 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 | 152 | py | n=input("Número: ")
def quantos_uns(n):
i=0
uns=0
while i < len(n):
if n[i] == '1':
uns+=1
i+=1
return uns | [
"you@example.com"
] | you@example.com |
10f6d889c2d1f9267826ff6f284bf9d4b535c98a | a939e018333a9ecd26ddc618f99835b7eb381686 | /deploy/vertical_crawler_tvseries_top/le_crawler/core/.svn/text-base/page_writer.py.svn-base | 7520a2abc0c881d71620a5a35f06b8609b657513 | [] | no_license | cash2one/crawl_youtube | bff5ba254001c2f31f770e55a4aca39bc54e45ee | 0dc40186a1d89da2b00f29d4f4edfdc5470eb4fc | refs/heads/master | 2021-01-16T22:30:17.800282 | 2016-02-18T11:50:09 | 2016-02-18T11:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,530 | #!/usr/bin/python
#
# Copyright 2014 LeTV Inc. All Rights Reserved.
__author__ = 'guoxiaohe@letv.com'
import time
import Queue
import threading
from scrapy import log
from scrapy.utils.misc import load_object
from scrapy.utils.project import get_project_settings
writer_handlers = '''
le_crawler.core.page_writer.Pa... | [
"zjc0516@126.com"
] | zjc0516@126.com | |
3461dc237908e378f9612bb9081cef3b33719e06 | d53a274a61ffe894a6e5648edf86f78145f0af7b | /delogger/handlers/slack.py | 2f88be1f628ead8c1cd94d22c49474344c0bad20 | [
"MIT"
] | permissive | deresmos/delogger | 8611d88714ffffddb5fa9bc12586fffb89fb8c11 | c185e4fd844414d561f521103975b95bd31aff43 | refs/heads/main | 2021-06-02T23:10:02.814473 | 2020-10-19T13:53:27 | 2020-10-19T13:53:27 | 153,235,270 | 5 | 0 | MIT | 2020-10-19T13:53:29 | 2018-10-16T06:40:46 | Python | UTF-8 | Python | false | false | 4,859 | py | import json
from logging import CRITICAL
from logging import DEBUG
from logging import ERROR
from logging import Handler
from logging import INFO
from logging import NOTSET
from logging import WARNING
from typing import Any
from typing import Dict
from typing import Optional
import urllib.request
class SlackHandler(H... | [
"deresmos@gmail.com"
] | deresmos@gmail.com |
c5bb446fff6c4db1fcd1ee3197f8abaa77a12f4c | 372647ad5f8a40754116c2b79914708e46960aef | /ivi/agilent/agilentDSOX3102A.py | e2d3b3daf9ffb636d1d6f53512ed864f70673330 | [
"MIT"
] | permissive | edupo/python-ivi | 52392decb01bc89c6e1b42cbcbd1295a131e91f5 | 8105d8064503725dde781f0378d75db58defaecb | refs/heads/master | 2020-03-31T21:06:02.059885 | 2018-10-04T12:34:38 | 2018-10-04T12:34:38 | 152,567,486 | 0 | 0 | MIT | 2018-10-11T09:40:35 | 2018-10-11T09:40:32 | Python | UTF-8 | Python | false | false | 1,692 | py | """
Python Interchangeable Virtual Instrument Library
Copyright (c) 2012-2016 Alex Forencich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
058202bfdb3490cd33baf7a219aab8196257fdb8 | ce058b1b39854bf40d46edffb9daaeeebcbe652b | /PortFolio/models.py | 330c9e19abc32907fc2d93f2009f95f23441a856 | [] | no_license | Pagante/SimpleProject | a1c5354446af9c0e7b9c09eab3a05d0da52a4e9f | 042c50b862c312cbd9b4ac6de28b5c2dfb34d38b | refs/heads/master | 2023-04-02T14:35:35.874942 | 2021-04-17T21:03:38 | 2021-04-17T21:03:38 | 358,924,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from django.db import models
# Create your models here.
class Course(models.Model):
image = models.ImageField(upload_to='images/')
summary = models.CharField(max_length = 200)
def __str__(self):
return self.summary
| [
"55301195+Pagante@users.noreply.github.com"
] | 55301195+Pagante@users.noreply.github.com |
b7f3f14bcd9275609d6ac63bd04d741776860206 | e3a10251156e6d83d2ae5b9b21953c6f143fc844 | /home/management/commands/load_initial_data.py | ec31b5aedff5b6ef38608608806c4bebbb49da98 | [] | no_license | TylerCrowdboticsTest/tyler-crowdboticstest-30 | 27fcc88371b3da25240ef138cad968fc45fb7007 | bd73f4183aaf8026517d1601c1dcd7959dd3b0da | refs/heads/master | 2020-03-18T04:33:44.110907 | 2018-05-21T16:14:42 | 2018-05-21T16:14:42 | 134,293,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py |
from django.core.management import BaseCommand
from home.models import CustomText, HomePage
def load_initial_data():
homepage_body = """
<h1 class="display-4 text-center">tyler-crowdboticstest-30</h1>
<p class="lead">
This is the sample application created and deployed from the crowd... | [
"tyler@crowdbotics.com"
] | tyler@crowdbotics.com |
693014d552af09d724f2600f2bfc832d44c5286b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_publisher.py | e68c9685de50649bf0b08c443667c77862c6b837 | [
"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 | 424 | py |
#calss header
class _PUBLISHER():
def __init__(self,):
self.name = "PUBLISHER"
self.definitions = [u'an organization that publishes text or music', u'an employee of a publishing company who has responsibility for deciding what is published']
self.parents = []
self.childen = []
self.properties = []
self... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
724a21786a232a3446f95b579aa06fd411f6faf8 | 32b29be894b27a3aa41ce2c7ee7b3c917f342ce8 | /Caltech256/sorted_10_100_hard_to_easy.py | d1b3d5fe33683180599d11760010cf9b0602c2d8 | [
"Apache-2.0"
] | permissive | shiqiuwang/sample_distillation | 1c56f1a24345bd1bfa43a8c0cf128751f1ef0b2c | 1eae0a0efe614b0f01e97fb405e70b11297c3da8 | refs/heads/master | 2023-07-31T20:31:13.693139 | 2021-09-14T03:13:26 | 2021-09-14T03:13:26 | 406,187,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,590 | py | # -*- coding: utf-8 -*-
'''
@Time : 2021/7/16 10:16
@Author : Qiushi Wang
@FileName: sorted_10_100_hard_to_easy.py
@Software: PyCharm
'''
import numpy as np
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
import torchvision.transforms as transforms
import torchvision.models as models
fr... | [
"2714049089@qq.com"
] | 2714049089@qq.com |
9e883e0b3bc10957af982963b81de7b2c94bf219 | 7b4820948845f55274b211d676ab8a6253a6298b | /addons/plugin.video.teevee/resources/lib/resolvers/hdcast.py | 2c903c724f68132baff05a1cb70f60285362a44b | [] | no_license | bopopescu/mw | 524c57d4b859751e298b907a12e44e9711ef72a6 | 5ef2acea0fb4150578e53201463c6bc5da37be20 | refs/heads/master | 2021-05-30T19:33:11.750160 | 2016-01-11T05:28:46 | 2016-01-11T05:28:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | # -*- coding: utf-8 -*-
'''
Genesis Add-on
Copyright (C) 2015 lambda
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your opt... | [
"bialagary@Garys-Mac-mini.local"
] | bialagary@Garys-Mac-mini.local |
f7a8d4ea26f22ff13d2f2fbe5242f9f8960e2b9b | e646b094a8a6845199bc2913192a84b103c708f9 | /optix/helpers.py | 4d7fb802fa315eeb99ca5bf8c6f000efc80bc907 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | usuaero/Optix | 39f0aed229ffe1651c46d116abfc0d5f5d7fab5a | 4c4de6e7d09c40165b5a499abc7ae513a0baf47e | refs/heads/master | 2022-08-12T06:12:52.189120 | 2022-08-08T15:00:45 | 2022-08-08T15:00:45 | 50,153,448 | 10 | 3 | null | 2016-08-15T16:09:35 | 2016-01-22T02:57:58 | Python | UTF-8 | Python | false | false | 5,924 | py | import numpy as np
import optix.classes as c
def print_setup(n_vars, x_start, n_cstr, n_ineq_cstr, settings):
# Starts the terminal output
print()
print("Optix.py from USU AeroLab")
print()
print('---------- Variables ----------')
print("Optimizing in {0} variables.".format(n_vars))
pri... | [
"cory.goates@aggiemail.usu.edu"
] | cory.goates@aggiemail.usu.edu |
079329d4288d12f8a68c30dc6b471c558b6d5109 | 449147399b91db8ca3192e9960834a73967cd01d | /pandas-ml-quant/pandas_ml_quant/analysis/alias.py | 553dd7eb133af4fdbfb3447818e6d07d1d5dcd1d | [
"MIT"
] | permissive | brunoreisportela/pandas-ml-quant | 04b81568b900d226bb7028ccbe81ea97d0c00587 | a80b06aab28f38c3c6cb298e96f497e4fcdb95a5 | refs/heads/master | 2022-12-18T23:51:38.297857 | 2020-09-08T06:14:16 | 2020-09-08T06:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | from pandas_ml_quant.analysis import ta_one_hot_encode_discrete as _ta_one_hot_encode_discrete
# -------------------------------------------------------------------------------------------------------------------- #
# A L I A S E S ... | [
"kic@kic.kic"
] | kic@kic.kic |
113ed14ae64be4d7420545b98b55565bd8c12db8 | 1600d6548f9d274fb152b97770fb947de1f69bbc | /blockchain_demo.py | 7ecc328deb581049020bd9f55b2a2145b5a5b3a2 | [] | no_license | xartisan/blockchain-learning-path | 692e5739854617b3658c12a17cabaf1bf9d0ed4e | 4fd35e6cf8ab661f007c96a67bef149bd33eff88 | refs/heads/master | 2020-03-18T21:45:39.408977 | 2018-05-29T13:36:29 | 2018-05-29T13:36:29 | 135,301,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,240 | py | import hashlib
import json
import time
import uuid
from urllib.parse import urlparse
from flask import json, Flask, jsonify, request
class Blockchain:
def __init__(self):
self.chain = []
self.current_transactions = []
self.nodes = set()
# genesis block
self.new_block(1, '... | [
"codeartisan@outlook.com"
] | codeartisan@outlook.com |
ed649cac7caab4cb1e57de1a268ecbdba42fb302 | fa89ef4a8eb06dc2015d7116637f230b6891eb8d | /refinery/units/formats/archive/xtcpio.py | 3f150aa83297bad6db7062a3b5fb6e7285fb28c7 | [
"BSD-3-Clause"
] | permissive | binref/refinery | f61878d9fddf616fee8edf226df22f6a35238940 | 4c7c3717ae45543b9d7bae60a4af4c00993cf719 | refs/heads/master | 2023-08-17T17:02:34.357138 | 2023-08-14T08:43:05 | 2023-08-14T08:43:05 | 228,019,736 | 439 | 48 | NOASSERTION | 2023-09-11T10:26:02 | 2019-12-14T12:32:06 | Python | UTF-8 | Python | false | false | 1,857 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from contextlib import suppress
from datetime import datetime
from refinery.lib.structures import EOF, Struct, StructReader
from refinery.units.formats.archive import ArchiveUnit
class CPIOEntry(Struct):
def __init__(self, reader: StructReader):
def readint(... | [
"rattle@nullteilerfrei.de"
] | rattle@nullteilerfrei.de |
e2dbb5a62cddc5054eae0d990e05544fad5e5cfd | 93451cbf07343b1db9b03be2e16cccce157a9f52 | /backup/2021-09-26/diy/addexport.py | dd174a51a8caa3fb665a85742f9bd69c902f2042 | [] | no_license | New-Sina/Oreomeow_JD_Diy | 89b9c7c40de76b6ee7c268bdedaa5aa2000de5b8 | 823d5478de8c4f40993dd297f9511266b1163b53 | refs/heads/master | 2023-08-22T08:55:04.276757 | 2021-10-28T01:50:47 | 2021-10-28T01:50:47 | 401,222,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,995 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import asyncio
import os
import re
import sys
from asyncio import exceptions
from telethon import events, Button
from .. import chat_id, jdbot, logger, ch_name, BOT_SET
from ..bot.utils import press_event, V4
from ..diy.utils import read, write
@jdbot.on(events.NewMe... | [
"chiupam@126.com"
] | chiupam@126.com |
3539a5ae726c07f79ee69cc28ef08da0c6f3afcb | 0c4cadb67bb119d77988e9486be99dedc162ef2f | /venv/bin/django-admin.py | b909e84aa9e55f03fc157b17eb58f9f4ae0dc555 | [] | no_license | Ruldane/FirstDJangoPorject | e13fe45ea8d7f1685e6c0db6908e16956b6e010c | c0d565c053d4c2af41e7766a23e9066c691e58b3 | refs/heads/master | 2020-06-09T21:42:01.671954 | 2019-06-25T09:48:07 | 2019-06-25T09:48:07 | 193,511,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | #!/home/ruldane/PycharmProjects/djangoTest/venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"l.nizzoli@gmail.com"
] | l.nizzoli@gmail.com |
35b84308b5b61c76d84794e69fc78ab844a27f9e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/30/usersdata/102/9282/submittedfiles/atividade.py | 38f7c8a9a7e0d6b77d6282c1b84ae70d3a702ed5 | [] | 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 | 219 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
n=int(input('digite o valor de n:')
soma=0
i=1
if n=n*(-1)
while n>=0:
soma=soma+(i/n)
i=i+1
n=n-i
print('%.5f%soma')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6f02fb4344c3be4c3f90d0b9316beefe4561e8e6 | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst/initial_35062.py | 4f985fb96da85cb84c2131048f1de67cef5fe84e | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,958 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
ece86d47ce8759b14543c87eadc5d627daab5d39 | b971ce2edc64b59d53f55648fa187015a1445c2f | /TriviaProject/urls.py | 554bc06de4beccfddc69d86180d11ce5d3d9f604 | [] | no_license | Jallnutt1/TriviaProject | 9273f67ff24541e8161287d767dc22e39447fa67 | dd573c4535b5c04b36644517543a1f19c1768829 | refs/heads/master | 2023-06-24T08:35:34.170169 | 2021-07-28T01:19:06 | 2021-07-28T01:19:06 | 381,841,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | """TriviaProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
b6591ae0f1be27232df748b87e6accb470c5d64c | eec1b698e06b8ee0b9aed965e3607555aee88ea9 | /backend/mobile_dev_7098/wsgi.py | d0359b688aacdfe878818770602592152f252192 | [] | no_license | crowdbotics-apps/mobile-dev-7098 | 295ee8d19b921dfcb4fb34217409d5d8724d0243 | 1d6d2b804e12af0a137d8d4dac731a70a1ae321d | refs/heads/master | 2022-11-15T09:54:58.597191 | 2020-07-06T08:53:01 | 2020-07-06T08:53:01 | 277,486,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for mobile_dev_7098 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("DJAN... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4a4c282ff5d5f81f26f5a5ef7aec382f4a24a68c | 5456502f97627278cbd6e16d002d50f1de3da7bb | /components/history/content/browser/DEPS | fa2769f44dd832f3ade3d70ffd1ca13df0a42acf | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | include_rules = [
"+components/visitedlink/browser",
"+content/public/browser",
]
| [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com | |
4381fc7be02a7f9f7cc579d4500daa21687fd6d6 | dfc686228834750216b2cd6eea14d2a6d12422e4 | /Hackerrank_Python_solution/Sets/SetunionOperation.py | e8abd96c05e93e2a34788c9b4041e0d3ff044452 | [] | no_license | Parth-Ps/python | 8466e8856bf301908544eb60ae4a68338ccf4550 | bb448c2a7996d17883214fe8eb11caa61e211400 | refs/heads/master | 2023-01-22T13:30:50.507021 | 2020-12-02T07:59:53 | 2020-12-02T07:59:53 | 317,788,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | '''
Title : Set .union() Operation
Subdomain : Sets
Domain : Python
Author : Ahmedur Rahman Shovon
Created : 15 July 2016
'''
n = input()
eng = set(map(int,input().split()))
b = input()
fre = set(map(int,input().split()))
print(len(eng.union(fre)))
| [
"parth0129.certificate@gmail.com"
] | parth0129.certificate@gmail.com |
94b13f2e971dbd9e10d96b9bc018bc13dcb2ad99 | 14bad9231bef3ae79ba7b0c3837b34f6c89bc49b | /min.py | 1f50e62b4bb419854160d6fdcdd0e69acc3fa786 | [] | no_license | Nagajothikp/Nagajothi | 80dc36d167a1143c203c594d25d9dc31892bd239 | 0d80c40c47d315cbcbc2d43bb2d77887d17414d4 | refs/heads/master | 2022-01-25T18:58:24.173042 | 2019-08-07T06:36:11 | 2019-08-07T06:36:11 | 194,424,732 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | array=[10,20,30,40,50]
print("the minimum element is:",min(array)) | [
"kpnagajothi1999@gmail.com"
] | kpnagajothi1999@gmail.com |
fac4a021744c4a95e81f72073a2f4f6166370c41 | f6c7084f91434566a9aa1b821d2739edede036f8 | /Calender/CalenderSample.py | 9dd31a906b5672b411b3dff65674cf54e3973e53 | [] | no_license | GANESH0080/Python-WorkPlace | 87fc3776e693d254661c476bfe977c696d087276 | 43196086bee26cbeae25fb7bbacb8dbbde85d648 | refs/heads/master | 2020-09-20T03:45:13.824696 | 2019-11-27T07:27:17 | 2019-11-27T07:27:17 | 224,369,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | import calendar
# Create an Plain text Calender
# Selection of starting day, Here we have selected an SUNDAY
c = calendar.TextCalendar(calendar.SUNDAY)
# Selection of Year and month , Here we have selected 2019 and Feb
str = c.formatmonth(2019,2)
# Printing an String / Calendar
print(str)
| [
"ganusalunkhe@gmail.com"
] | ganusalunkhe@gmail.com |
d77247011ff99369bac23ac38fcddcf4005caa7b | a4410fa34651da92dbce9ea0807d4a72a4802177 | /python/hsfs/core/feature_store_api.py | db47f5c85271cf4d512a44fbdfff8191595dd524 | [
"Apache-2.0"
] | permissive | logicalclocks/feature-store-api | 33797e2b4681d8948998d292a3ef8f551979ac08 | 3e67b26271e43b1ce38bd1e872bfb4c9212bb372 | refs/heads/master | 2023-09-01T03:41:47.750367 | 2023-08-30T18:25:59 | 2023-08-30T18:25:59 | 232,286,451 | 59 | 42 | Apache-2.0 | 2023-09-13T11:52:55 | 2020-01-07T09:10:14 | Python | UTF-8 | Python | false | false | 1,238 | py | #
# Copyright 2020 Logical Clocks AB
#
# 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 ag... | [
"noreply@github.com"
] | logicalclocks.noreply@github.com |
abe9e538638eee1c7724af0b63350d12215b50bc | b7bf838246bfc80edd67c297da6e96b6ef7fd68e | /bproducts/models.py | 3661a1026cdad831669f3422b48ddd0f631947f4 | [] | no_license | pratikmishra356/Django-blog | 97a84aa3ba06142f25cea04ba37cfc6d299fd3d2 | 2067dd43416bc67bcdec57c5df21e98dcc697d18 | refs/heads/master | 2020-04-14T03:23:15.255568 | 2019-02-20T05:48:56 | 2019-02-20T05:48:56 | 163,606,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from django.db import models
class Product(models.Model):
title=models.TextField()
description=models.TextField()
price=models.TextField()
| [
"you@example.com"
] | you@example.com |
dc4bdaa362692436a34d80d172905da662057223 | 266947fd84eed629ed0c21f6d91134239512afd9 | /BeginnerContest114/a.py | 947b97d2f7463a190c6096abbb3ecfad8fa773c1 | [] | no_license | SkiMsyk/AtCoder | c86adeec4fa470ec14c1be7400c9fc8b3fb301cd | 8102b99cf0fb6d7fa304edb942d21cf7016cba7d | refs/heads/master | 2022-09-03T01:23:10.748038 | 2022-08-15T01:19:55 | 2022-08-15T01:19:55 | 239,656,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | x = int(input())
if x in [3,7,5]:
print('YES')
else:
print('NO') | [
"Sakai.Masayuki@keio.jp"
] | Sakai.Masayuki@keio.jp |
3559850adb8c0d1118387f47ede74ad9c8f83784 | b05fee086482565ef48785f2a9c57cfe2c169f68 | /part_one/8-abs_factory_pattern/assignment/__main__.py | 38066e5597434f36a291103b6ffbc4acfd68c129 | [] | no_license | diegogcc/py-design_patterns | 76db926878d5baf9aea1f3d2f6a09f4866c3ce1e | 2b49b981f2d3514bbd02796fe9a8ec083df6bb38 | refs/heads/master | 2023-04-01T08:28:53.211024 | 2021-04-05T11:48:19 | 2021-04-05T11:48:19 | 304,145,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | from factories.investor import Investor
from factories.saver import Saver
for factory in Investor, Saver:
cust = factory.create_commercial()
cust = cust('Acme Corp')
cust.report_type()
cust = factory.create_government()
cust = cust('Prussia')
cust.report_type()
cust = factory.create_retail(... | [
"diegoc906@gmail.com"
] | diegoc906@gmail.com |
3a12ec4619b02475c9b5a487f510f0dc86d57a12 | 03d07de94fc22d1583c45ca84c711a06df8a40ff | /algorithm/graph/mst_prime.py | 6504e0bcc56524b1de75dfcd043e301c036961c1 | [] | no_license | gaopenghigh/algorithm | 94e04293c69a2ad6903495e1cf6e1b75556535bb | f5d78c98c7201c56f9d4c3a9c0c76e9447a17985 | refs/heads/master | 2022-03-11T18:46:38.712923 | 2022-02-20T14:20:54 | 2022-02-20T14:20:54 | 54,484,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,327 | py | # 最小生成树的 Prime 算法
# 使用邻接表实现图
import sys
class Graph:
def __init__(self) -> None:
self.graph = {}
def add_edge(self, e: tuple):
# edge is tuple: (src, dst, weight)
# 无向图,所以实际上需要添加 2 条边
src, dst, weight = e
if src in self.graph:
self.graph[src].append(e)
... | [
"jh.gao@ucloud.cn"
] | jh.gao@ucloud.cn |
12e630c139320956c4196bdf1ae26c13b30a8109 | d250ff521ed87aca7d53d2c8557f904b32d9ce3b | /sba-4-api/com_sba_api/user/api.py | bfa302d6ecda33f1296eafaf41626e58c887d27b | [] | no_license | taepd/ML-study | 9dc6f341761caf854a8a36a1fe0a903a4d41af9a | 7e987d5eb638fc375105472a35c2d9d5a14c14b9 | refs/heads/master | 2023-01-05T02:14:42.555096 | 2020-10-27T02:43:16 | 2020-10-27T02:43:16 | 303,552,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,490 | py | from typing import List
from flask import request
from flask_restful import Resource, reqparse
from com_sba_api.user.dao import UserDao
from com_sba_api.user.dto import UserDto, UserVo
import json
from flask import jsonify
parser = reqparse.RequestParser() # only allow price changes, no name changes allowed
parser.ad... | [
"taepd1@gmail.com"
] | taepd1@gmail.com |
d7531540afbe3fc687761a3916342b1bac9a1e63 | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/flask_admin/tests/mongoengine/test_basic.py | 574fb4a98e9dfda8bff15a6be382e074c89494f1 | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 33,284 | py | from nose.tools import eq_, ok_
from wtforms import fields, validators
from flask_admin import form
from flask_admin._compat import as_unicode
from flask_admin.contrib.mongoengine import ModelView
from . import setup
from datetime import datetime
class CustomModelView(ModelView):
def __init__(
self, m... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
5b5a9e3642f917d9e5eda1346e7154ddf55317a6 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/437/usersdata/309/95268/submittedfiles/funcoes1.py | e45745305d55627c26aaf3f14c08877d14a7e05b | [] | 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,121 | py | # -*- coding: utf-8 -*-
# Inicio da função p/ verificação de lista crescente
def crescente (lista):
k=0
for i in range (0,n,1):
if lista[i]<lista[i+1]:
k=k+1
if k==n:
print("S")
else:
print("N")
# Fim da função crescente
def decrescente (lista):
k=0... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
cc9a3b428a68567bc30135b5bb0122f289239b62 | 1e35944fcd9a0e2209e069fb0056f23597e3196c | /0x0F-python-object_relational_mapping/4-cities_by_state.py | 9a4fdd74077afaad18fdd7639c1f597445cba69c | [] | no_license | sonnentag/holbertonschool-higher_level_programming | 1496be9390f557cfa7a3e31bb74b208a7dfbb98f | 5992e3c7ff97ab3fefe33bec5632bdca4d3d8a05 | refs/heads/master | 2022-12-23T12:47:02.957781 | 2020-09-25T04:01:27 | 2020-09-25T04:01:27 | 259,382,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | #!/usr/bin/python3
""" lists all states from a database providing connection info as args"""
from sys import argv
import MySQLdb
if __name__ == '__main__':
db_user = argv[1]
db_pass = argv[2]
db_name = argv[3]
db = MySQLdb.connect("localhost", db_user, db_pass, db_name)
cur = db.cursor()
s... | [
"zocle@zocle.net"
] | zocle@zocle.net |
3007f46a26fc055b1f0396a4f4f799231cd2b494 | c1cc813825b2ed30ebcf283da9dd9661f9bcf233 | /unixpackage/package_group.py | 0ebcf0981465d4cab5d2d9d5898c516eea560dc2 | [
"BSD-3-Clause"
] | permissive | chrysa/unixpackage | 90cd7c51b982680621abd9e734d93cfcb7c7b164 | 355562ee750fdfa247bd0c6a039ce921a0cc1241 | refs/heads/master | 2021-01-13T15:51:33.812181 | 2016-10-15T14:04:47 | 2016-10-15T14:04:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,217 | py | from unixpackage import exceptions
from unixpackage import utils
from sys import stdout
from os import path
import platform
import json
import sys
import os
class PackageGroup(object):
"""Representation of a group of generic packages from generic package names."""
need_sudo = True
def __init__(self, gene... | [
"colm.oconnor.github@gmail.com"
] | colm.oconnor.github@gmail.com |
e47a1317f5ac84ea58fe249f129ca35303e272bb | 3056c2834fadfd62716e4f2ee3d46f4eeb7734f4 | /drfs/routers.py | b604e91e33183d70c9787082b3c415e62091a8a7 | [] | no_license | gerasev-kirill/django-rest-framework-generator | 666495baef72514ac3fd3d9cde3e2746e11011a6 | c311f5fba6fd72b0c133122dce441c9114b5ab24 | refs/heads/master | 2023-06-09T13:43:06.239417 | 2023-05-27T16:43:25 | 2023-05-27T16:43:25 | 67,436,994 | 0 | 0 | null | 2023-04-17T11:18:11 | 2016-09-05T16:49:45 | Python | UTF-8 | Python | false | false | 9,714 | py |
from collections import namedtuple
from django.core.exceptions import ImproperlyConfigured
from rest_framework.routers import SimpleRouter as BaseSimpleRouter, DefaultRouter as BaseDefaultRouter, Route
from rest_framework.routers import flatten
from . import helpers
try:
from django.urls import re_path
except:
... | [
"gerasev.kirill@gmail.com"
] | gerasev.kirill@gmail.com |
cde967a18ca61ec55b9d7884aef9228a628744d2 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/aio/operations_async/_express_route_circuits_operations_async.py | 83de78a03a7948da2e8130c48bf2acbcbbcb18ff | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 51,205 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
9d102757a6fd276872da65975028ab95f77f4b59 | e585beae48f36af5aac3e586cce47fe66aec09c9 | /tests/api/test_holder.py | 69c1fba168aa3b928e1f36e8727036b3f3a70921 | [
"MIT"
] | permissive | yinianfangxia/zvt-1 | 973b6fa20ab23060d975a30b1e7007f265aeeb5f | dac2a29863a87e4467fd45009f233e40a4902f65 | refs/heads/master | 2020-05-25T22:46:29.566558 | 2019-09-09T03:57:17 | 2019-09-09T03:57:17 | 188,021,722 | 2 | 1 | null | 2019-05-22T11:06:27 | 2019-05-22T11:06:27 | null | UTF-8 | Python | false | false | 1,966 | py | from zvdata.domain import get_db_session
from zvt.api.api import get_top_ten_holder, get_top_ten_tradable_holder
from ..context import init_test_context
init_test_context()
from typing import List
from zvt.domain import TopTenHolder, TopTenTradableHolder
session = get_db_session(provider='eastmoney', db_name='holde... | [
"5533061@qq.com"
] | 5533061@qq.com |
867ed117ac09238f8476b2ab358ec442d4e5574c | 3bfe35a518869c4354ab1f817fd2060f0446313e | /examples/core_display_line_properties.py | a9777b99f2c9bcf8a377377bae4ef06d281ae125 | [] | no_license | tankvn/pythonocc-demos-with-thumb-preview | b16b6d00b6e14bda6e4b765a354691255a7d2d43 | 36746225ddd8406dcce9b12a9ccd6489aa281694 | refs/heads/master | 2023-04-26T16:43:30.377812 | 2021-05-04T06:12:36 | 2021-05-04T06:12:36 | 362,368,937 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | #!/usr/bin/env python
##Copyright 2017 Emad Dlala (emad.dlala@gmail.com)
##
##This file is part of pythonOCC.
##
##pythonOCC is free software: you can redistribute it and/or modify
##it under the terms of the GNU Lesser General Public License as published by
##the Free Software Foundation, either version 3 of the Lice... | [
"tpaviot@gmail.com"
] | tpaviot@gmail.com |
61061a91877f2c1997ae1814ccb557ac6404ef6b | 4cf3f8845d64ed31737bd7795581753c6e682922 | /.history/GPAWarrior_20200118154452.py | 59cc0b63fcc613395fb21c2f2276beb991e50814 | [] | no_license | rtshkmr/hack-roll | 9bc75175eb9746b79ff0dfa9307b32cfd1417029 | 3ea480a8bf6d0067155b279740b4edc1673f406d | refs/heads/master | 2021-12-23T12:26:56.642705 | 2020-01-19T04:26:39 | 2020-01-19T04:26:39 | 234,702,684 | 1 | 0 | null | 2021-12-13T20:30:54 | 2020-01-18T08:12:52 | Python | UTF-8 | Python | false | false | 1,764 | py | import requests
from bottle import Bottle, response, request as bottle_request
import json
class BotHandlerMixin:
BOT_URL = None
def get_chat_id(self, data):
"""
Method to extract chat id from telegram request.
"""
chat_id = data['message']['chat']['id']
return chat_... | [
"ritesh@emerald.pink"
] | ritesh@emerald.pink |
9085ea98b7d3c507399ddb85c428ecf21b7578bf | e78ce85bac254f720e021f5f0ad172189da3ab77 | /panoramica/views.py | f75f96aefa05842269c3fa84e689255fa9fa284b | [] | no_license | lldenisll/backend_papaiz | 4d1a0a0b427e708551d57381591614b9c8bf9c55 | 71f1eceafadbaf120f8ef9c87741fa8e431d192a | refs/heads/master | 2023-07-29T10:28:09.634047 | 2021-09-10T13:01:50 | 2021-09-10T13:01:50 | 405,077,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from django.shortcuts import render
from django.contrib.auth import get_user_model
from .models import Panoramica
from rest_framework.viewsets import ModelViewSet
from .serializer import PanoramicaSerializer
class PanoramicaView(ModelViewSet):
queryset = Panoramica.objects.all()
serializer_class = P... | [
"namorado@TFGcos-MacBook-Pro.local"
] | namorado@TFGcos-MacBook-Pro.local |
fe8886dd04eadd6427ba239efad1280a425452b6 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/DATA_STRUC_PYTHON_NOTES/python-prac/mini-scripts/python_Convert_from_Python_to_JSON_3.txt.py | 7174ce0d78826dcc17941c1bb56a981c1f614bfd | [
"MIT",
"Python-2.0"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 320 | py | import json
x = {
"name": "sanu",
"age": 324,
"married": True,
"divorced": False,
"children": ("Ann", "Billy"),
"pets": None,
"cars": [{"model": "BMW 230", "mpg": 27.5}, {"model": "Ford Edge", "mpg": 24.1}],
}
# convert into JSON:
y = json.dumps(x)
# the result is a JSON string:
print(y)
| [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
3508b2a9738d2630a26f1b68a9eb7bb55d8ac130 | 955b968d46b4c436be55daf8aa1b8fc8fe402610 | /ch07/with_example_01.py | 76d0c179247ad0967c0f97479c4ee6696b2a3b96 | [] | no_license | han-huang/python_selenium | 1c8159fd1421b1f0e87cb0df20ae4fe82450f879 | 56f9f5e5687cf533c678a1c12e1ecaa4c50a7795 | refs/heads/master | 2020-03-09T02:24:48.882279 | 2018-04-07T15:06:18 | 2018-04-07T15:06:18 | 128,535,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# https://blog.gtwang.org/programming/python-with-context-manager-tutorial/
# http://linbo.github.io/2013/01/08/python-with
# http://icodding.blogspot.tw/2016/05/python-with-as.html
# 緊跟with後面的語句被求值後,返回物件的 __enter__() 方法被呼叫,這個方法的返回值將被賦值給as後面的變數。
# 當with後面的程式碼塊全部被執行完之後,將呼... | [
"vagrant@LaravelDemoSite"
] | vagrant@LaravelDemoSite |
8a594bff438929250ef3768a1478cf3232e87b8e | b9ca689e2994507beb8f97816fd3178c920cea3e | /production/pygsl-0.9.5/tests/blas_test.py | 55f102e8eef96d21cebbff8dfa80cd93f1a54c66 | [
"GPL-2.0-only",
"MIT"
] | permissive | juhnowski/FishingRod | 78f117f1d91c55ed5ba0aa0e582d0837ca5f3872 | 457e7afb5cab424296dff95e1acf10ebf70d32a9 | refs/heads/master | 2021-03-12T23:46:24.171759 | 2014-12-27T20:56:13 | 2014-12-27T20:56:13 | 28,544,669 | 0 | 1 | MIT | 2018-10-02T06:27:42 | 2014-12-27T19:38:05 | C | UTF-8 | Python | false | false | 12,731 | py | # Author : Fabian Jakobs
import unittest
from gsl_test import *
from pygsl._numobj import *
from pygsl.errors import gsl_Error
from pygsl.blas import *
from pygsl import _gslwrap, Float, Complex
import pygsl.blas
#print pygsl.blas
#print pygsl.blas._gslwrap
class BlasTestCase(GSLTestCase):
def testDdot(self):
... | [
"info@phreebie.net"
] | info@phreebie.net |
7699b850d7f8f1209eb691a2b5e13451afec93d5 | 18f8abb90efece37949f5b5758c7752b1602fb12 | /defcon/blacksheep/core/security/sheep/shepherd.py | 7be0610dc1765ba0a200dbb7a5584efc7e011fe6 | [] | no_license | marceltoben/evandrix.github.com | caa7d4c2ef84ba8c5a9a6ace2126e8fd6db1a516 | abc3fbfb34f791f84e9a9d4dc522966421778ab2 | refs/heads/master | 2021-08-02T06:18:12.953567 | 2011-08-23T16:49:33 | 2011-08-23T16:49:33 | 2,267,457 | 3 | 5 | null | 2021-07-28T11:39:25 | 2011-08-25T11:18:56 | C | UTF-8 | Python | false | false | 1,038 | py | #!/usr/bin/env python
"""
BlackSheep -- Penetration testing framework
by Romain Gaucher <r@rgaucher.info> - http://rgaucher.info
Copyright (c) 2008-2010 Romain Gaucher <r@rgaucher.info>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the... | [
"evandrix@gmail.com"
] | evandrix@gmail.com |
1fad529fea53997258a14c7bf73c5507eaa5a032 | a9756859f597cc97593145cda2e0d0e795da0342 | /apps/friend/urls.py | ee1b574a2b63372fa044a69454d5ecb26dd25b6f | [] | no_license | cprus/friendsdeploy | 02442dac7ebedb421753abf5f9b293332f665492 | 4da1af1e73fac8829e86df2b880ee2d3ca0801d1 | refs/heads/master | 2021-05-15T10:42:42.742608 | 2017-10-25T00:41:42 | 2017-10-25T00:41:42 | 108,200,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from django.conf.urls import url
from . import views # This line is new!
urlpatterns = [
url(r'^home$', views.index),
url(r'^add/(?P<user_id>\d+)$', views.add),
url(r'^remove/(?P<friend_id>\d+)$', views.remove),
url(r'^(?P<emailuser>.+)$', views.show),
]
| [
"collinprusse@mac.com"
] | collinprusse@mac.com |
a958d4ec3df017c60d0096dba7743f5e83ef8324 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_20196.py | f0a49749a975599b5edb06de7b0c2a419d8d31b3 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | # How to print part of output from a subprocess
for line in p.stdout:
if "Number of" in line:
print line
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
0b1520c3b308202510788bac022e408abdcb67ea | 58e15fca047ece58bfa391a6efb88ec1b46997b2 | /venv/lib/python3.8/site-packages/trio/_core/tests/test_run.py | 937f0a4de4a906403740b009ac69d9e512eb6dfd | [] | no_license | su2708/WebScraper | 6594f102336de0bb0ebc2c3feafdb4d87da52ad3 | a084afce4a8dacb4d4beb43924aa85a831c3b4ec | refs/heads/main | 2023-02-20T15:43:37.246448 | 2023-01-15T17:26:28 | 2023-01-15T17:26:28 | 323,025,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/e1/d2/29/32cf94b05c10d33348675dbc7076b9c475ccfd87c2269bfc7d0dde9dd9 | [
"46125751+su2708@users.noreply.github.com"
] | 46125751+su2708@users.noreply.github.com |
74c560a1b01accc1e4ec2283082eccf6c043c729 | 1f33b0c862f7bfa95bcc3bf67a34b43dae75d670 | /car_project/manage.py | 205c02d84ec5eb56eb298fbc34e1dc5f5681dc61 | [] | no_license | joegotflow83/concept_car_insider | 87933190b057401ea56650c765caa9f118b10d43 | 1af86cae78ceba2148da59449f906225ad7ccb65 | refs/heads/master | 2021-01-10T09:53:21.567035 | 2016-02-14T22:15:01 | 2016-02-14T22:15:01 | 51,716,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "car_project.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"joe@absolutod.com"
] | joe@absolutod.com |
93a5c318afc698caa19b6f49c5dc462fab5d3708 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_oxford.py | ff2f453474f0d37b0956dafdcc1cc7d114aa7409 | [
"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 | 424 | py |
#calss header
class _OXFORD():
def __init__(self,):
self.name = "OXFORD"
self.definitions = [u'a city in south east England, famous for its university', u"a type of fairly formal man's shoe, usually made of leather, that fastens with laces"]
self.parents = []
self.childen = []
self.properties = []
self... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2138ece616eccdfba99bad86ba6bfeb9cac40cee | d160bb839227b14bb25e6b1b70c8dffb8d270274 | /MCMS/Main/Scripts/IsdnEncryption_03.py | e65b65163d3996534a4bf200cc73acec986397f8 | [] | no_license | somesh-ballia/mcms | 62a58baffee123a2af427b21fa7979beb1e39dd3 | 41aaa87d5f3b38bc186749861140fef464ddadd4 | refs/heads/master | 2020-12-02T22:04:46.442309 | 2017-07-03T06:02:21 | 2017-07-03T06:02:21 | 96,075,113 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,441 | py | #!/usr/bin/python
#*PROCESSES_PROFILE_FOR_SCRIPT=Profile_No_Valgrind
#############################################################################
#
# Date: 22/01/08
# By : Ron S.
#############################################################################
from McmsConnection import *
import os
#-------------... | [
"somesh.ballia@gmail.com"
] | somesh.ballia@gmail.com |
480a98701ad3ef5b1c3050243640565d061425f2 | db053c220094368ecb784fbe62375378c97457c2 | /423.reconstruct-original-digits-from-english.py | 40095b74e88b81bfdd3f39c30f771ecc2f29e027 | [] | no_license | thegamingcoder/leetcode | 8c16e7ac9bda3e34ba15955671a91ad072e87d94 | 131facec0a0c70d319982e78e772ed1cb94bc461 | refs/heads/master | 2020-03-22T14:51:45.246495 | 2018-07-09T00:00:06 | 2018-07-09T00:00:06 | 140,211,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | #
# [423] Reconstruct Original Digits from English
#
# https://leetcode.com/problems/reconstruct-original-digits-from-english/description/
#
# algorithms
# Medium (44.82%)
# Total Accepted: 15.4K
# Total Submissions: 34.3K
# Testcase Example: '"owoztneoer"'
#
# Given a non-empty string containing an out-of-order En... | [
"sharanbale@yahoo-inc.com"
] | sharanbale@yahoo-inc.com |
165f232abaa5bb01c9a9f1b8e6d2b4e3f31a41e8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_009/ch25_2019_08_23_19_19_21_190391.py | 128ebfc360e41093ad00394aeb4f9d65762ab0f3 | [] | 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 | 134 | py | km = int(input('km: '))
if km <= 200:
print('{0:.2f}'.format(km/2))
else:
print('{0:.2f}'.format((200 * km) + ((km - 200)*0.45))) | [
"you@example.com"
] | you@example.com |
2d7a94489300e90aa1a93f214ef82262119299c1 | a689a72d3699883d7b58bd4ee3103373270bd0d5 | /BOJ/Python/Failed/BOJ1800.py | 773ce4c784a3c0fdf5a42b3b7ea5ad69c9392da3 | [] | no_license | Oizys18/Algo | 4670748c850dc9472b6cfb9f828a3ccad9c18981 | 45caafe22a8a8c9134e4ff3b227f5f0be94eefe7 | refs/heads/master | 2022-05-11T08:35:06.812539 | 2022-05-07T01:30:41 | 2022-05-07T01:30:41 | 202,690,024 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,434 | py | # BOJ1800 인터넷 설치
import sys
sys.stdin = open('BOJ1800.txt','r')
from pprint import pprint as pp
from time import time
from collections import deque,defaultdict
start = time()
# N,P,K = map(int,input().split())
# edges = {i:[] for i in range(N+1)}
# mat = [list(map(int,input().split())) for _ in range(P)]
# for p in... | [
"oizys18@gmail.com"
] | oizys18@gmail.com |
6dd66ea5a131d6eebcb51931f9595b0a2836ddf6 | e905abd9bb7bd7017657d0a0c4d724d16e37044c | /.history/article/spiders/ieee_20210208201519.py | 575940035182bc3a960690ba8440873c591fc9f5 | [] | no_license | tabdelbari/articles | a8b921841f84fb473f5ed1cdcda743863e6bc246 | f0e1dfdc9e818e43095933139b6379a232647898 | refs/heads/main | 2023-03-05T10:21:35.565767 | 2021-02-10T13:35:14 | 2021-02-10T13:35:14 | 325,654,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,981 | py | import scrapy
import logging
import re
from scrapy_splash import SplashRequest, request
from article.items import ArticleItem
import json
class IeeeSpider(scrapy.Spider):
name = 'ieee'
allowed_domains = ['ieee.org']
lua_script = """
function main(splash, args)
assert(splash:go{
splash.a... | [
"abdelbari1996@hotmail.com"
] | abdelbari1996@hotmail.com |
18984251d9f4fae631b8f22c0f8c9fde8f7da367 | 4da3cedb744321f5e0f9cdd0b6c836c27f449338 | /losses.py | 0c46fbc5b70b1497196431e9b09c678b54ea7e6f | [
"MIT"
] | permissive | standardgalactic/SplinePosEnc | 99dabfee822c383d7c2588fbc70792ddf2c96deb | af63f825e715ebd45849d57692e3ab057f735b9f | refs/heads/main | 2023-07-27T15:49:37.517004 | 2021-09-09T08:46:11 | 2021-09-09T08:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,663 | py | import torch
import numpy as np
def calc_gradient(y, x, grad_outputs=None):
if grad_outputs is None:
grad_outputs = torch.ones_like(y)
grad = torch.autograd.grad(y, [x], grad_outputs=grad_outputs, create_graph=True)[0]
return grad
def img_mse(output, gt):
return 0.5 * ((output - gt) ** 2).mea... | [
"wangps@hotmail.com"
] | wangps@hotmail.com |
938a05198f81eaf287bb0566ef1a8628d6681c23 | 13ad53bd54e0fea96a8718a12486e6bca2cde5e3 | /Python/8kyu/Welcome.py | 5fd31656bb4d9a59a3763b19e4283c13686dfb39 | [] | no_license | WinrichSy/Codewars_Solutions | 5cb354b15998167010416bba0b09855e717019b2 | 6904719eb05cf804694f26dbbb11277b90296d97 | refs/heads/master | 2023-02-02T22:09:08.453192 | 2020-12-23T19:51:30 | 2020-12-23T19:51:30 | 256,636,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | #Welcome!
#https://www.codewars.com/kata/577ff15ad648a14b780000e7
languages = {'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': '... | [
"winrichsy@gmail.com"
] | winrichsy@gmail.com |
c58e946efa472d449f869ec60f578c026b41af1b | b24e45267a8d01b7d3584d062ac9441b01fd7b35 | /Usuario/.history/models_20191023123702.py | 9c2c0df4995f068de96ebbef424adb8e5d294125 | [] | no_license | slalbertojesus/merixo-rest | 1707b198f31293ced38930a31ab524c0f9a6696c | 5c12790fd5bc7ec457baad07260ca26a8641785d | refs/heads/master | 2022-12-10T18:56:36.346159 | 2020-05-02T00:42:39 | 2020-05-02T00:42:39 | 212,175,889 | 0 | 0 | null | 2022-12-08T07:00:07 | 2019-10-01T18:56:45 | Python | UTF-8 | Python | false | false | 1,756 | py | from django.db import models
class Usuario(models.Model):
nombre = models.CharField(max_length = 50)
usuario = models.CharField(max_length = 50, null = True, unique=True)
rol = models.CharField(max_length = 50)
identificador = models.CharField(max_length = 250)
foto_perfil = models.FileField(upload... | [
"slalbertojesus@gmail.com"
] | slalbertojesus@gmail.com |
30fe088a88568b630c58d8dbbc1baeae26cc42a3 | e9538b7ad6d0ce0ccfbb8e10c458f9e0b73926f6 | /plugins/module_utils/network/enos/enos.py | 69627326d19e7716cec4cbf89a4f643a88929b59 | [] | no_license | ansible-collection-migration/misc.not_a_real_collection | b3ef8090c59de9ac30aca083c746ec3595d7f5f5 | 7ab1af924a3db4ada2f714b09bb392614344cb1e | refs/heads/master | 2020-12-18T13:48:51.849567 | 2020-01-22T17:39:18 | 2020-01-22T17:39:18 | 235,400,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,506 | py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by
# Ansible still belong to the author of the module, and may assign their own
# license to the complete wo... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
3236f8a1d88b3f9d8286a2812fae2edada8d734d | 7659eacd729cae7f1a87d1790094907835fe2158 | /Web+Python学习笔记/day79(批量生成学生学习记录、modelformset组件)/IgCrm/app01/migrations/0009_auto_20181120_0929.py | 8c7d2f110015e6693541fea5fde0dce527863d32 | [] | no_license | 13950090228/Web-Python-LearningNotes | a75fc0bdbb82f22b3562dcc0b130ddbc8e171b3c | 092266c23bd79d3d05fabf0fd145c1b53604bf0d | refs/heads/master | 2023-01-05T11:41:24.822471 | 2020-11-07T15:55:15 | 2020-11-07T15:55:15 | 310,878,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # Generated by Django 2.1.1 on 2018-11-20 01:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app01', '0008_classstudyrecord_student_studentstudyrecord'),
]
operations = [
migrations.AlterField(
model_name='classstudyrecor... | [
"506713537@qq.com"
] | 506713537@qq.com |
febf32fa9f505264caded121629c8410240194df | 0ef924c1e06156c58e93b96fe097082a070d5fc1 | /iatikit/standard/organisation_schema.py | db2b3b28797a872a37206942f753113339760451 | [
"MIT"
] | permissive | codeforIATI/iatikit | 1ee0e16120595feb21a7fe04e937689dd7af221c | dd2e7ab2295f0512f85696eed547af9d0e9cf999 | refs/heads/dev | 2022-09-21T20:33:19.919439 | 2022-08-25T20:35:39 | 2022-08-25T20:35:39 | 148,625,048 | 4 | 0 | MIT | 2021-05-07T00:54:49 | 2018-09-13T11:00:14 | Python | UTF-8 | Python | false | false | 1,747 | py | from ..utils.exceptions import SchemaError
from ..utils.types import StringType
# pylint: disable=too-many-ancestors
class OrganisationSchema101(object):
version = '1.01'
@classmethod
def id(cls): # pylint: disable=invalid-name
return cls.org_identifier()
@classmethod
def org_identifier... | [
"a.lulham@gmail.com"
] | a.lulham@gmail.com |
386e6e90a9f6652646b748e1ef70372e0391f205 | e7a87d9eca87d8be7b23b3a57c1d49f0ad6d20bc | /django_evolution/mutations/sql_mutation.py | cbbaeee8271a02deb7bf574a1880d64abf690929 | [
"BSD-2-Clause"
] | permissive | beanbaginc/django-evolution | 19a775a223b61861f503925216fb236b822122c0 | 756eedeacc41f77111a557fc13dee559cb94f433 | refs/heads/master | 2023-06-22T07:25:32.401292 | 2022-11-10T03:23:50 | 2022-11-10T03:23:50 | 14,189,401 | 22 | 13 | null | 2015-01-07T01:15:08 | 2013-11-07T00:04:43 | Python | UTF-8 | Python | false | false | 5,192 | py | """Mutation for executing SQL statements.
Version Added:
2.2
"""
from __future__ import unicode_literals
import inspect
from django_evolution.errors import CannotSimulate
from django_evolution.mutations.base import BaseMutation
from django_evolution.signature import ProjectSignature
class SQLMutation(BaseMuta... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
d6454d893aca1f750a68a8ae6116fe4e38c6dd44 | 5dd8ce7f11c8f568e19fa821f07bb238733da972 | /Src/xmds2_0/Test/xpdeint/MomentGroupElement.py | 0b0acbf8da9aa2418058342a43bce3fd79c2dabb | [] | no_license | htsenyasa/MachineLearningGrossPitaevskiiEq | fba9fa92879c2c805288950d344333f60d8c7ae4 | cae0b690841a55fda9d3ec49df7f8321a9835b95 | refs/heads/master | 2023-06-23T00:58:21.036638 | 2021-03-07T22:19:10 | 2021-03-07T22:19:10 | 345,210,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,245 | py | #!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import builtins as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatibleV... | [
"htsenyasa@gmail.com"
] | htsenyasa@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.