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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2cb1f8982b090714861599ef6348264f5529594f | b8cb97b76b78837473cae3530b1fd10e1994c5b0 | /app/fac/migrations/0003_auto_20201001_2358.py | aa7d9e2848aec1aeef5128b105f510a7d3b00d14 | [] | no_license | NestorMonroy/compras | c0fcd5c54e0f33f3dcba941147a164b08096ce5c | 597a3927256a02673c58013cc4455a99757e829a | refs/heads/master | 2022-12-29T06:23:01.247909 | 2020-10-03T05:37:05 | 2020-10-03T05:37:05 | 298,443,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | # Generated by Django 3.1.1 on 2020-10-02 04:58
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('fac', '0002_facturadet_facturaenc'),
]
operations = [
migrations.AlterModelOptions(
name='facturadet',
options={'permissions... | [
"nestor.monroy.90@gmail.com"
] | nestor.monroy.90@gmail.com |
06d534b76ba40b7975ee2e4e024b0964ee24653c | cad8e1841c8fe0b3030533affdab3fd94ef487f3 | /MRIO/old/EB3Parse.py | 0de21b1d13dbfcf3428438d0b42b0e858b644223 | [] | no_license | IndEcol/IEF | 3687cfee5af74a75020ea014ad85cd18e48fb3f9 | dfa2975e6da61e74c126ad9507ddce74d09653ea | refs/heads/master | 2023-04-24T17:13:13.113424 | 2021-05-07T12:29:52 | 2021-05-07T12:29:52 | 130,960,348 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,286 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 23 14:48:42 2014
Modified Aug 22 2017 to Dec 2017
@author: pauliuk
"""
# Script IoC_SupplyChains.py
# Import required libraries:
#%%
import os
import sys
import logging
import xlrd, xlwt
import numpy as np
import time
import datetime
import scipy.io
# import string as... | [
"="
] | = |
e9d62f20b7539c731e8392797178a9ac2ddb4fee | cd2ea0b9f0f8e01950ea4dd629a325ef26f914ad | /topics/Arrays/SubArrayKSum.py | b2804529f600612275990b582add13a4346d6dae | [] | no_license | akhandsingh17/assignments | df5f1af44486ffefe1fefcccc643e6818ac1c55d | c89f40dcd7a8067fa78ed95d3fecc36cb1ca7b5d | refs/heads/master | 2023-08-24T18:00:32.938254 | 2021-10-06T06:01:32 | 2021-10-06T06:01:32 | 305,913,409 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | """
Given an array of integers nums and an integer k, return the total number of continuous subarrays whose sum equals to k.
Example 1:
Input: nums = [1,1,1], k = 2
Output: 2
Example 2:
Input: nums = [1,2,3], k = 3
Output: 2
"""
def AllSubArraySum(nums, k):
result = []
dict = {}
dict.setdefault(0, []... | [
"akhans@amazon.com"
] | akhans@amazon.com |
2770b9cc6d72890b13bb14c98a9b266b9ad637a9 | 96ec28c68204fdc5ca8e7c649b50079c8c8c2156 | /boqn/langermann_test_runner.py | cac4dbfa62b7105138780e2c73104dbb3a0ecd08 | [
"MIT"
] | permissive | RaulAstudillo06/BOQN | f2fea969cf8171e11565ec082c99fa7f35dd55ce | dc31980bbf195c299632c94119b99cbd27f47ea9 | refs/heads/master | 2023-08-31T04:15:37.347362 | 2021-11-05T19:17:49 | 2021-11-05T19:17:49 | 257,744,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,006 | py | import os
import sys
import time
import numpy as np
import torch
torch.set_default_dtype(torch.float64)
import botorch
from botorch.settings import debug
debug._set_state(True)
# Get script directory
script_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
project_path = script_dir[:-5]
# Simulator setup
from lang... | [
"astudillo0606@gmail.com"
] | astudillo0606@gmail.com |
cc2a31c17e682e4483e91eb82f053d624cfc98d5 | 7e5ed1aeff7287dd71b91afc9bd32d9ab6351db7 | /TopicPlatform/urls.py | 596db9415ebb261e7a4490455c7cf16b63f60eb6 | [] | no_license | amurakho/TopicPlatform | f62a59bb79d543df0cf270bf05600ed4e06ed910 | 8d2687025820cf6e83e4c12f8de09d30d72da004 | refs/heads/master | 2022-12-31T11:03:38.988484 | 2020-10-17T13:11:37 | 2020-10-17T13:11:37 | 301,210,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | """TopicPlatform URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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... | [
"amurakho@gmail.com"
] | amurakho@gmail.com |
2819e8255873fba0d6c3d88f5c79d3e5a0fe9256 | 3c48725a9ef2745ad529d3bd8abacf7d1bfb9a46 | /20180918_Data_Engineering_at_Traditional_Factory/server/src/boards/models.py | 2a7e301d09021d74db9ab6bac1bd02077c8afb22 | [
"ISC"
] | permissive | komoda/kaohsiung.py_talk | 8216ca9954ddff0a83a12cd68b569e085316e7fe | a21e08c54b0e039cb031a37997eac8d90ecae150 | refs/heads/master | 2020-03-29T01:44:12.933624 | 2018-09-18T05:20:14 | 2018-09-18T05:20:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,644 | py | # boards/models.py
import uuid
from django.conf import settings
from django.db import models
from django.db.models import F, Count, Q
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.urls import reverse
from django.contrib.auth import get_user_model
# Create your... | [
"chairco@gmail.com"
] | chairco@gmail.com |
fcdaa4ead19c14f592dd9aa8277f4f17b47b4a39 | c89e59b4d018e8a2d7dc0dbc3bb7a3768024f849 | /before2021/python/day15_problem/venv/Scripts/easy_install-script.py | e908d35611fcc05f41c3214d6d1397089d1d403f | [] | no_license | leeiopd/algorithm | ff32103a43e467a5a091257cc07cf35365ecbf91 | e41647d3918c3099110d97f455c5ebf9a38d571e | refs/heads/master | 2023-03-08T23:46:34.919991 | 2023-02-22T09:39:46 | 2023-02-22T09:39:46 | 166,131,885 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 488 | py | #!C:\Users\student\Desktop\ÀÌÁÖÈ£\algorithm\day15_problem\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] ... | [
"leeiopd@hanmail.net"
] | leeiopd@hanmail.net |
54a16a51979070970b9f206717fe9f3402d54dba | 0b6e98e67970df29219fbcd26ae4ccd974cfc73c | /app/libs/redprint.py | ffec416842eb330c212a127f806a59b1079b092d | [] | no_license | huanshenyi/flask_book_demo | 918a4fc4ce113d3a213b2947647e460d6e58554f | 44e0ea7895946f7347280ea44ad16b18182871d5 | refs/heads/master | 2020-06-28T21:20:44.520062 | 2019-08-07T13:23:06 | 2019-08-07T13:23:06 | 200,345,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | class RedPrint:
def __init__(self, name):
self.name = name
self.mound = []
def route(self, rule, **options):
def decorator(f):
self.mound.append((f, rule, options))
return f
return decorator
def register(self, bp, url_prefix=None):
if url_pre... | [
"txy1226052@gmail.com"
] | txy1226052@gmail.com |
7bff8fef0463f6208a9982d10affe00c65658dfd | a9063fd669162d4ce0e1d6cd2e35974274851547 | /swagger_client/models/inline_response20083_question_details.py | 65978f345705294ccbc6c81fa9bc48f585e862c0 | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,673 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
91319e4d26347da2783891dfb1cd27f33d51518e | 78e3a131d0b3e095ab34c4ff30f308a53f4572cf | /patchalerts/games/battlerite.py | dc8e313b8889fe6149aab4569fa73a90be8823cf | [
"MIT"
] | permissive | JustForkin/PatchAlerts | 551eb3146296c8469dd1ced44613fcd76fa01bd4 | d28aea88529a1e619e530ab35e54ee23ea6eb372 | refs/heads/master | 2020-04-07T11:56:48.509664 | 2018-11-05T00:36:27 | 2018-11-05T00:36:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | from wrappers.update import Update
from games.base_class import Site
from util import loader
class Battlerite(Site):
def __init__(self):
super().__init__('Battlerite', icon='https://i.imgur.com/dDIezWP.png', homepage='https://www.battlerite.com/')
def scan(self):
soup = loader.soup("https://blog.battlerite.com... | [
"theshadowmoose@gmail.com"
] | theshadowmoose@gmail.com |
b41bf93b1e6a9d453b57761ea0dea8b2c8181404 | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /tools/perf/page_sets/helpers/override_online.py | 6c76b73de5aa7018663f1972f916a45abad35ca4 | [
"Zlib",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"APSL-2.0",
"MIT",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 371 | py | # Copyright 2020 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.
""" A script that will override navigator.onLine to always return true. """
ALWAYS_ONLINE = '''
Object.defineProperty(window.navigator, 'onLine', {
get... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
f989dbcfb47274b9577aee063811086a75f285d9 | 6b5e49b4b644e88b3be88c0425e322af01e8f21a | /taobao/top/api/rest/MbcPromotionUseRequest.py | 012c185ee4451d5b1c1103e1f10ec308956d6972 | [
"MIT"
] | permissive | CooperLuan/devops.notes | d4fcce0c7e10184f2e894666a3f41b6be800ecbe | 3bcd96d0ebdadc382489406d8c4a34eb7e1c2317 | refs/heads/master | 2016-09-06T06:54:28.558516 | 2015-02-09T11:09:40 | 2015-02-09T11:09:40 | 17,585,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | '''
Created by auto_sdk on 2014-12-17 17:22:51
'''
from top.api.base import RestApi
class MbcPromotionUseRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.actual_fee = None
self.discount_fee = None
self.end_time = None
self.outer_no = ... | [
"gc.suprs@gmail.com"
] | gc.suprs@gmail.com |
eabb7fa7463b2914ebae705e2e4b9ec7733429e3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/82/usersdata/178/43408/submittedfiles/decimal2bin.py | 0b0fe588b357b81eefdbf45e58dd18ff0f8af5a1 | [] | 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 | 165 | py | # -*- coding: utf-8 -*-
b=int(input('Digite o num binario:'))
soma=0
i=0
while b>0:
resto=b%10
soma=soma+(2**i)*resto
b=b//10
i=i+1
print (soma)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
16486c11e83ad817308126b35c52edb0ca80ac19 | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /xlsxwriter/test/comparison/test_chart_date04.py | 37353366de115157c978f9687c10901d0dbfa1f4 | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 2,039 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org
#
from datetime import date
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import W... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
3255d3f72916e7ae60b7847cc8e639b1cf94974c | d842a95213e48e30139b9a8227fb7e757f834784 | /gcloud/google-cloud-sdk/.install/.backup/lib/surface/compute/images/describe_from_family.py | c79e963e5e48fad0a63e6b9fba735ff08a159e48 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/JobSniperRails | f37a15edb89f54916cc272884b36dcd83cdc868a | 39e7f871887176770de0f4fc6789e9ddc7f32b1f | refs/heads/master | 2022-11-22T18:12:37.972441 | 2019-09-20T22:43:14 | 2019-09-20T22:43:14 | 282,293,504 | 0 | 0 | MIT | 2020-07-24T18:47:35 | 2020-07-24T18:47:34 | null | UTF-8 | Python | false | false | 2,052 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 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... | [
"luizfper@gmail.com"
] | luizfper@gmail.com |
5be4a687817a26cd27cece4bdc0fe8d7aba0aff9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_088/ch16_2020_09_11_13_26_54_761777.py | 0575fd66c0e4e95520d1dea6a81f44fa3872123f | [] | 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 | 128 | py | conta=float(input('Qual a conta? '))
acrescimo=conta*1,1
acrescimo=print( "Valor da conta com 10%: R${0:.2f}".format(acrescimo)) | [
"you@example.com"
] | you@example.com |
fc9ded3654a410d26d1ab0b14744441265d5f578 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/gui/scaleform/daapi/view/lobby/exchange/exchangefreetotankmanxpwindow.py | 4ba33f57f9481c0b69c53d6de8105d8d004b3a49 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 7,525 | py | # 2015.11.18 11:53:53 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/exchange/ExchangeFreeToTankmanXpWindow.py
from gui.ClientUpdateManager import g_clientUpdateManager
from gui.shared.tooltips import ACTION_TOOLTIPS_TYPE, ACTION_TOOLTIPS_STATE
from gui.Scaleform.daapi.vi... | [
"info@webium.sk"
] | info@webium.sk |
9f389bc34caffe2275f05d8db91150b37b70f2ba | a4949df03443cdecf602b0a238e370be3a540248 | /experiments/experiment_1/database/work/y1992.py | f956fdf3ca9a700ea553e40417d588a36cd7182b | [
"MIT"
] | permissive | gems-uff/hybrid-strategies | b13d4c60dd68c430eb344e056bdc751a4c5980ff | 1d37ed72270e901db36f6b5ae6ebb03ba734f2e1 | refs/heads/master | 2021-03-27T16:14:59.715371 | 2019-06-19T19:29:16 | 2019-06-19T19:29:16 | 109,733,311 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,589 | py | # coding: utf-8
from datetime import datetime
from snowballing.models import *
from ..places import *
basili1992a = DB(WorkUnrelated(
1992, "Software modeling and measurement: The goal/question/metric paradigm",
display="basili",
authors="Basili, V.R.",
place=FAKE,
entrytype="article",
note="ci... | [
"ericamourao@gmail.com"
] | ericamourao@gmail.com |
a24dde91e30735eeed44c8accf4f68c736f1736b | 7d42db73c5c5ea7445a593f1dcfa726b4e184998 | /python_work/5_cars.py | 27a51b4f8295c102942d0df6bb1203828fd8802a | [] | no_license | hefangcan/python | 1a89fab280b510333dfa9e9b8094d28dac3ccebb | 6e073dcb400a2cd9c9adb529c9c83588901bd4c7 | refs/heads/master | 2020-06-10T12:51:58.463585 | 2019-07-03T03:02:54 | 2019-07-03T03:02:54 | 193,647,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | #coding:utf-8
#第5章,IF语句
cars=['audi','bmw','subaru','toyata']
user="subaru"
for car in cars:
if car=='bmw':
print car.upper()
else:
print car.title()
#检查user是否包在cars
print user in cars
#检查user是否不包含在cars
print user not in cars
age=18
if age>=18:
print "you are old enough to vote!"
else:
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
0755545b422ca3d9d05c22214fcf03ae3f41622e | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/T/taekim630/seattlecode_1.py | 439de9e11403d867c9b8efa12575362ad078e793 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,814 | py | import scraperwiki
import urllib2
import lxml.html
import lxml.etree
import json
# http://data.seattle.gov/api/docs
# http://data.seattle.gov/api/docs/views (search for /api/views/(view ID)/rows )
# http://lxml.de/cssselect.html
# https://scraperwiki.com/editor/raw/tutorial-lxml-html
NUMROWS = 10
codeviolated = ... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
47f2c5170e3054f62e95895f95b3a7fdf4a1034b | 349873b00d111c71eae973d833631659cfbf6e99 | /myuserapp/migrations/0031_auto_20200912_0153.py | 06658e3fd0db92cd086108e0e987ffd5371c6ad1 | [] | no_license | wilsonmwiti/Django-affiliates | 10e7ba5f2959db83afca012837e8217b9574823e | b3f06ff823229bef5c6345520e486e2b5c9015aa | refs/heads/master | 2023-08-31T00:41:48.979792 | 2021-10-21T01:58:27 | 2021-10-21T01:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 2.2.2 on 2020-09-11 20:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myuserapp', '0030_generatequeryform_lead_source'),
]
operations = [
migrations.AlterField(
model_name='generatequeryform',
... | [
"looklikeme05@gmail.com"
] | looklikeme05@gmail.com |
57bb5ce907a0b4d4f356902171abb81cb094d1fb | d16a47e32f6b19b916f006b884abe4b47bdbf61f | /tests/commit/app/test__app.py | 279de2febc0585b80e28a9cf9cbd93fa8c6a6626 | [
"MIT"
] | permissive | oguzziya/PhiFlow | 707afbd0c570a378fc0c7cfa83f532656b23325d | 55d9834051e8a52c19a0e6d62e1c7c2f0a42cc34 | refs/heads/master | 2023-03-30T16:15:15.748054 | 2021-03-01T13:06:41 | 2021-03-01T13:06:41 | 287,707,376 | 0 | 0 | MIT | 2020-08-15T08:24:13 | 2020-08-15T08:24:12 | null | UTF-8 | Python | false | false | 143 | py | from unittest import TestCase
from phi import app
class TestApp(TestCase):
def test_app_creation(self):
app_ = app.App('test')
| [
"philipp.holl@tum.de"
] | philipp.holl@tum.de |
f040e2df2a503ba25bee746eb275eb587b1f1504 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0/build/vehicle_gazebo_simulation_interface/catkin_generated/generate_cached_setup.py | 662f54fb34019bacbd6d64c5741f5527bac0e370 | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"907097904@qq.com"
] | 907097904@qq.com |
61f4d69f7e5f57b16c1b61dda562313739b2acc5 | 2ef27655cd1deb9de4074249e559269abd334fa1 | /6 kyu/Christmas tree.py | 647f64012828f0c9710fad0738a22406439c316f | [] | no_license | sieczkah/Codewars_KATA | c7606b9a88693e2550af0ef55808f34c00e77b73 | 68d5d4a133a015e49bcdbff29ee45e3baefcd652 | refs/heads/main | 2023-05-06T03:59:01.403765 | 2021-05-24T19:36:34 | 2021-05-24T19:36:34 | 334,698,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """https://www.codewars.com/kata/52755006cc238fcae70000ed"""
def arit(n):
# returns arithmetic sequence nth element
return 1 + (n - 1) * 2
def christmas_tree(height):
tree = []
for i in range(1, height + 1):
branch = '*' * arit(i)
space = ' ' * ((arit(height) - len(branch)) ... | [
"huberts94@gmail.com"
] | huberts94@gmail.com |
0b31451e4ab11ed9910bc745983ea894204cbe6c | 4ccaf5252f5936414638f254ca5932ad922cd582 | /ex075 - Análise de dados em tupla.py | b774cac52a645887b8a6115a3d84485dadd27828 | [] | no_license | carlosaugus1o/Python-Exercicios | b0a525436d7cf24e3fc9ccfd046278ad383eb01c | 6216430dac9d5fc6fe3b75ae9625063d4971e419 | refs/heads/main | 2023-07-03T22:59:31.913494 | 2021-07-28T03:05:50 | 2021-07-28T03:05:50 | 390,193,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # Inserindo valores na tupla
valores = tuple(int(input(f'Digite o {cont + 1}º valor: ')) for cont in range(4))
print(f'\nO valor 9 apareceu: {valores.count(9)} vezes')
if valores.count(3) != 0:
print(f'O valor 3 apareceu na {valores.index(3) + 1}º posição')
else:
print('O valor 3 não foi digitado em n... | [
"noreply@github.com"
] | carlosaugus1o.noreply@github.com |
b283f93364995f12079be1676a6447880bed0320 | 97bcef3488755cd2aa3ea717b68c0270b9aabd83 | /src/model/scoring.py | a39588ea99f59827dcea8dd5c87d6b61bc832292 | [
"MIT"
] | permissive | nutcrtnk/PGRA | 33daa1f0d4521848127864e654ca3b9ec0ae4d7a | 4991f591ff7593a9149cc10a484682a834230979 | refs/heads/main | 2023-06-04T17:16:01.357577 | 2021-06-24T15:47:28 | 2021-06-24T15:47:28 | 368,820,289 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,040 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from functools import partial
from model.module.transform import get_relation_transform
from torch_scatter import scatter
import numpy as np
class Matcher(nn.Module):
def __init__(self, mode='dot', use_norm=False):
super().__init__()
... | [
"-"
] | - |
862e17cfd3c901d88fc9936c76a7c75201d79d52 | 4b0a9d06c5fa11708a74564d5f11e677366330ec | /dephell/commands/package_list.py | 82f1f46f5e075b49b3f65a77156845791c23bddf | [
"MIT"
] | permissive | crflynn/dephell | 86a7372e9a189efc0e1dd28e612c980ccf55de4b | 2b6b1cba3146976a766266de5434e466dd10ec7a | refs/heads/master | 2022-11-18T00:00:41.756262 | 2020-06-02T13:52:58 | 2020-06-02T13:52:58 | 277,380,078 | 1 | 0 | MIT | 2020-07-05T20:41:45 | 2020-07-05T20:41:45 | null | UTF-8 | Python | false | false | 1,779 | py | # built-in
from argparse import ArgumentParser
# app
from ..actions import get_python_env, make_json
from ..config import builders
from ..converters import InstalledConverter
from ..exceptions import PackageNotFoundError
from .base import BaseCommand
class PackageListCommand(BaseCommand):
"""Show all installed p... | [
"master_fess@mail.ru"
] | master_fess@mail.ru |
3af7d95ab5710de47541fafb5f7f2bb5fa904f2c | c7d91529db199322e39e54fe4051a75704ea843e | /剑指/二刷/旋转数组的最小数字_S.py | a3f8f9c748808e0646e0c599a59cbb3809512cb9 | [] | no_license | 2226171237/Algorithmpractice | fc786fd47aced5cd6d96c45f8e728c1e9d1160b7 | 837957ea22aa07ce28a6c23ea0419bd2011e1f88 | refs/heads/master | 2020-12-26T07:20:37.226443 | 2020-09-13T13:31:05 | 2020-09-13T13:31:05 | 237,431,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | '''
把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。
输入一个递增排序的数组的一个旋转,输出旋转数组的最小元素。
例如,数组 [3,4,5,1,2] 为 [1,2,3,4,5] 的一个旋转,该数组的最小值为1。
示例 1:
输入:[3,4,5,1,2]
输出:1
示例 2:
输入:[2,2,2,0,1]
输出:0
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
'''
class Solution(... | [
"2226171237@qq.com"
] | 2226171237@qq.com |
c0c032966c2a2736ddbc88596d7d561c8540367f | 48124c4f865f0fedab15b93c5558fca970cc8272 | /dvorniki/urls.py | 8cb6fa1778ebde4e26a8cc5996fed1120c98d353 | [] | no_license | worlddeleteRin/auto | 25b074b635329c3fa21e3e55e7e9097f78c022b2 | a2a89a91eb32e82d5c7cda898e1a6728c5aa7a59 | refs/heads/master | 2023-04-22T10:05:36.105791 | 2021-05-12T12:42:37 | 2021-05-12T12:42:37 | 298,200,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from django.urls import path
from . import views
app_name = 'dvorniki'
urlpatterns = [
path('', views.index, name = 'index'),
path('mark/<int:mark_id>', views.mark, name = 'mark'),
path('mark/<int:mark_id>/<int:model_id>', views.model, name = 'model'),
path('gen/<int:mark_id>/<int:model_id>/<int:... | [
"noname@MacBook-Pro-Rin.local"
] | noname@MacBook-Pro-Rin.local |
d206381dd228775605c4d5795e328b4180d597fa | c5420cee98aae008cb404ace7b8d21dcdf205a69 | /backend/app/logics/__init__.py | ceac29044cf14ae4a264e48c08cab4512a963de2 | [] | no_license | LyanJin/check-pay | 2aeb81f430a26410964e979b63d20c9d5aa7d46e | ff36deb73e667de16a73b1666bbeaf28f993f944 | refs/heads/master | 2023-01-14T03:38:00.907488 | 2019-11-04T09:29:27 | 2019-11-04T09:29:27 | 219,446,460 | 0 | 0 | null | 2023-01-04T16:14:10 | 2019-11-04T07:55:33 | Python | UTF-8 | Python | false | false | 69 | py | """业务逻辑代码实现放这个模块,提供给service调用
""" | [
"aken.jin.33@gmail.com"
] | aken.jin.33@gmail.com |
94f96c69b0e7258d420366927db95ca5eeb3994d | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW04_20210712142432.py | 6de06e1380542ccf5fbbfae51ad8bb8bbadcd1a2 | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,962 | py | """
Georgia Institute of Technology - CS1301
HW04 - Lists
and Tuples
Collaboration Statement:
"""
#########################################
"""
Function Name: roadTrip()
Parameters: state (str), list of tuples (list)
Returns: list of crops (list)
"""
#########################################
#####... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
fff8293816d5967305823e861ed93266bc33fd22 | be49ad1b6288248277d46cb15471a50e8770fb7f | /mobsms/migrations/0016_auto_20200423_1753.py | db60af4e668b566a05f195033a85ad57d1e778bb | [] | no_license | sanjaydangwal/Mobile-store-management-system | 1bd539a66c16c7c2eecc5bcbad5431a2ad38af9a | c9af3b1c5f2332c94c0ffafdfafdd99adbaaa1e4 | refs/heads/master | 2022-11-08T17:10:50.579713 | 2020-06-28T16:25:25 | 2020-06-28T16:25:25 | 262,551,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # Generated by Django 3.0.5 on 2020-04-23 12:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mobsms', '0015_auto_20200423_1749'),
]
operations = [
migrations.AlterField(
model_name='smart',
name='Bluetooth_ver... | [
"sanjay.dangwal199@gmail.com"
] | sanjay.dangwal199@gmail.com |
f492707c3d84463fc0ed967de0ca9a62986791bf | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/smartdba/models/DiagnoseScore.py | 1e27fcc47ba6c71535197b98aa976f4bd4759134 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,012 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"jdcloud-api@jd.com"
] | jdcloud-api@jd.com |
6953ee5c534c25885f336e3d43c86f3c6b63bbd4 | 6b791247919f7de90c8402abcca64b32edd7a29b | /encodings/hex_codec.py | c8a56cb703339f1a267aef402e39e9004db39bf1 | [
"Apache-2.0"
] | permissive | theclashingfritz/Cog-Invasion-Online-Dump | a9bce15c9f37b6776cecd80b309f3c9ec5b1ec36 | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | refs/heads/master | 2021-01-04T06:44:04.295001 | 2020-02-14T05:23:01 | 2020-02-14T05:23:01 | 240,434,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: encodings.hex_codec
import codecs, binascii
def hex_encode(input, errors='strict'):
output = binascii.b2a_hex(input)
return (
... | [
"theclashingfritz@users.noreply.github.com"
] | theclashingfritz@users.noreply.github.com |
be8520ceff9089856c0b208afca140ac3503065d | ddd54e481c12104bd53ec7cb2a627fb0646d5f3c | /AI in Diagnosis/Project_Chest_XRay_Medical_Diagnosis/helper.py | 2c86a0758c20e927aa597059d14cf4e9189438d3 | [] | no_license | abhishekdiphu/AI_for_Medicine_Specialization_Coursera | e811b94914503d4d956da403a23b6a6deb1e3671 | 75a8fd1effc385a8c5fb34ee2a274a7dfe6580f5 | refs/heads/master | 2023-03-28T22:05:08.080661 | 2021-04-07T19:32:47 | 2021-04-07T19:32:47 | 266,577,227 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,405 | py | # helper functions#
import numpy as np
from keras import backend as K
def check_for_leakage(df1, df2, patient_col):
"""
Return True if there any patients are in both df1 and df2.
Args:
df1 (dataframe): dataframe describing first dataset
df2 (dataframe): dataframe describing second dataset... | [
"abhishekdiphu@gmail.com"
] | abhishekdiphu@gmail.com |
3e8e640cecac39758759453dcd33c0d5aad2200e | 171a89102edf10901e18a2c0f41c3313608d2324 | /src/rogerthat/pages/settings.py | bcb0eec192a3c3c7e4205778cf4d1d9bbbb1ef80 | [
"Apache-2.0"
] | permissive | gitter-badger/rogerthat-backend | 7e9c12cdd236ef59c76a62ac644fcd0a7a712baf | ab92dc9334c24d1b166972b55f1c3a88abe2f00b | refs/heads/master | 2021-01-18T06:08:11.435313 | 2016-05-11T08:50:20 | 2016-05-11T08:50:20 | 58,615,985 | 0 | 0 | null | 2016-05-12T06:54:07 | 2016-05-12T06:54:07 | null | UTF-8 | Python | false | false | 7,325 | py | # -*- coding: utf-8 -*-
# Copyright 2016 Mobicage NV
#
# 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 o... | [
"bart@mobicage.com"
] | bart@mobicage.com |
dfd65a035c6089a125fbfee64b0f4e861070c1b9 | 7323b8039f47c0457ae90173c963549b7d1e6823 | /sandbox/src1/pviewer/plot1d.py | df7d966ff38c70df3b9efc5b0fa1bebcbed4151c | [
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | sniemi/SamPy | abce0fb941f011a3264a8d74c25b522d6732173d | e048756feca67197cf5f995afd7d75d8286e017b | refs/heads/master | 2020-05-27T18:04:27.156194 | 2018-12-13T21:19:55 | 2018-12-13T21:19:55 | 31,713,784 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 39,992 | py | #!/usr/bin/env python
from Tkinter import *
import Pmw
import AppShell
import sys, os
import string
from plotAscii import xdisplayfile
from tkSimpleDialog import Dialog
from pylab import *
#from fit import *
import MLab
colors = ['b','g','r','c','m','y','k','w']
linestyles = ['-','--','-.',':','.-.','-,']
symbols =... | [
"niemi@stsci.edu"
] | niemi@stsci.edu |
7041e74c0037e14500c46d04d3890812147666db | 77a3c4365a62ba5e95546e61bf36f54417b4ba27 | /pythonWorkBook/count_words.py | ef0d521c48ec54cc881c2cadfb3908cb3f4e2f80 | [] | no_license | TheThornBirds/show-me-the-code | 6660b9b97ae7595537242df0f87f5708e338956b | f79b88fd563829c85789b707cfc83d704a167e7e | refs/heads/master | 2021-01-01T04:02:39.118196 | 2017-07-14T08:31:31 | 2017-07-14T08:31:31 | 97,108,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | '''
统计任一英文文本文件,单词出现的个数
'''
import re
def count_words(file_path):
with open(file_path) as file:
text = file.read()
words = re.findall(r'[a-zA-Z]+',text)
count = len(words)
return count
print(count_words('e:\english.txt')) | [
"2567970322@qq.com"
] | 2567970322@qq.com |
7d1db670c7e224b0e20a7d1935c250eb4cf8ca21 | a13d4c245acb9509c6fd2b8e82bbc580e5a1e87d | /presta/tests/test_web.py | 5267a92887c4a40e51dc1b74d59b2a641449e77b | [] | no_license | steder/presta | 9ea8bcf1321d9c2068caabb82e3da23fc31d8ccb | 87799ed16fbaba5ad17a1fda2affe3291b8f4d20 | refs/heads/master | 2023-04-04T06:49:36.438209 | 2023-03-22T00:36:08 | 2023-03-22T00:36:08 | 5,623,408 | 0 | 0 | null | 2023-03-22T00:36:10 | 2012-08-31T01:50:31 | null | UTF-8 | Python | false | false | 1,265 | py | """test_web.py
Tests for the Presta t.w.Resources
"""
#from datetime import datetime
import mock
from twisted.trial import unittest
from twisted.web import resource
from twisted.web import static
from twisted.web import server
from twisted.web.test.test_web import DummyRequest
#from twisted.web._auth.wrapper import ... | [
"steder@gmail.com"
] | steder@gmail.com |
2d555a85df8f8737d460607b9150df69a3e81865 | f8d3f814067415485bb439d7fe92dc2bbe22a048 | /opencvlib/script_augment/make_train_augmentor.py | a9e5a92c822aea1ed1f0ce94a7dcf2bea18bc1e4 | [] | no_license | gmonkman/python | 2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3 | 9123aa6baf538b662143b9098d963d55165e8409 | refs/heads/master | 2023-04-09T15:53:29.746676 | 2022-11-26T20:35:21 | 2022-11-26T20:35:21 | 60,254,898 | 0 | 2 | null | 2023-03-24T22:58:39 | 2016-06-02T10:25:27 | Python | UTF-8 | Python | false | false | 2,918 | py | # pylint: disable=C0103, too-few-public-methods, locally-disabled, no-self-use, unused-argument
'''
Generate training images with random corrections
and distortions. This is used to generate
additional training cases.
The destination folder must be empty.
Example:
make_train.py -n 10 "C:/images", "C:/images/sampl... | [
"gmonkman@mistymountains.biz"
] | gmonkman@mistymountains.biz |
c26a2e8785892a1b0cb3f9663be5a6b73461251b | 24927eac464cdb1bec665f1cb4bfee85728ec5e1 | /product_parser/bulgari.py | d56ce6dae2727dd766a7e77b2fcbc8b1d421a0fd | [] | no_license | yingl/fashion-spider | d72ea8dfd4a49270fd3e64e7a507d6fcbaaf492c | 0698768cd21d509ec335d7202a753be4f6ad378b | refs/heads/master | 2021-01-01T18:14:17.848732 | 2017-09-27T08:44:47 | 2017-09-27T08:44:47 | 98,282,505 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | """ Bulgari """
# coding:utf-8
import sys
sys.path.append('../')
import util
BRAND = 'bulgari'
PREFIXES = ['www.bulgari.com']
def get_title(driver):
title = ''
element = util.find_element_by_css_selector(driver, 'h2.bul-showcase-push-model')
if not element:
raise Exception('Title not found for %s... | [
"linying_43151@163.com"
] | linying_43151@163.com |
a9b04f9dc72de90660286303108b7ffa21e28e82 | 00ce396b445915c4185a9b6354a7c8003240d9cd | /djangoutils/logger.py | 36027a65f8dbafc55bec0f481d490b8c320cff83 | [] | no_license | wongxinjie/python-snippets | 625fde176df65a0aeccd8aa120de535c6b5d754f | 53f60c45d28481b963a2c6b08f6a1e75d737d8e0 | refs/heads/master | 2022-11-14T12:33:27.828245 | 2019-06-27T04:42:07 | 2019-06-27T04:42:07 | 157,308,832 | 0 | 0 | null | 2022-09-23T22:13:05 | 2018-11-13T02:35:08 | Python | UTF-8 | Python | false | false | 1,375 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
from logging import Formatter
from logging.handlers import DatagramHandler
simple_format = \
'[%(asctime)s][%(levelname)s][%(module)s]: %(message)s'
debug_format = \
'[%(asctime)s][%(levelname)s][%(module)s][%(pathname)s:' + \
'%(line... | [
"wongxinjierun@gmail.com"
] | wongxinjierun@gmail.com |
05a5e79f711296da796676bfe9028b37766bfb06 | 5dd190725aaaeb7287d935b3c99c20480b208816 | /official/nlp/xlnet/training_utils.py | 868968f26d53364e3e2d3e86021563494c3e6d79 | [
"MIT",
"Apache-2.0"
] | permissive | DemonDamon/mask-detection-based-on-tf2odapi | 32d947164fb54395b9e45368c0d4bcf3a6ea1c28 | 192ae544169c1230c21141c033800aa1bd94e9b6 | refs/heads/main | 2023-05-13T05:05:44.534885 | 2021-06-08T05:56:09 | 2021-06-08T05:56:09 | 369,463,131 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,963 | py | # Copyright 2021 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... | [
"noreply@github.com"
] | DemonDamon.noreply@github.com |
409a1a7df3fb8db892c49f1e6137807bcaab8622 | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Algorithms/Longest special subsequences/test.py | 910a376a53543e77180b4017bbb461b22280b546 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 467 | py | import io
import unittest
from contextlib import redirect_stdout
from unittest.mock import patch
class TestQ(unittest.TestCase):
@patch('builtins.input', side_effect=[
'1',
'7 2 afcbedg',
])
def test_case_0(self, input_mock=None):
text_trap = io.StringIO()
with redirect_std... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
16aad2f97ee954ccda2ec35b4e0868252cc16f34 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CISCOSB-CDP-MIB.py | 40eca6a7370e7e8cdcbf3573ba64bd6ed696cd70 | [
"Apache-2.0"
] | 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 | 23,254 | py | #
# PySNMP MIB module CISCOSB-CDP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCOSB-CDP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:05:58 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
364686ec879febe7314bb544d67b3b59f1c6e1ee | eb2c5a32631019cbc6c4518902c8f3fc8b8c8a29 | /tests/unit/test_security_services.py | d075dffaffe45a4175c887009624b423932e7d7c | [] | no_license | eunhye43/8percent-assignment | d1d072b6f0f74fdc436cc6b638c621ee3bd23b93 | 337f6e2c4432cd3b3960db4cd706197e0d7ad758 | refs/heads/main | 2023-08-28T03:35:39.233260 | 2021-11-12T16:19:40 | 2021-11-12T16:19:40 | 426,921,793 | 0 | 0 | null | 2021-11-11T08:17:36 | 2021-11-11T08:17:36 | null | UTF-8 | Python | false | false | 2,646 | py | import pytest
from assertpy import assert_that
from jose import jwt
from src.configs.security import SECRET_KEY, ALGORITHM
from src.security.application.services import authenticate_token
from src.security.dto import LoginInfo
from src.security.exception import IncorrectPasswordException, EmptyAccessTokenException, In... | [
"rlawndhks217@gmail.com"
] | rlawndhks217@gmail.com |
fe2c0bc1a6ee2ee67665fd49cfe18b8e09d9b5cf | 0db19410e9751790af8ce4a0a9332293e379c02f | /tools/dataset_converters/labelstudio2coco.py | 12f4c61851ea5b0ebab2257be9116d47e5d24c08 | [
"Apache-2.0"
] | permissive | open-mmlab/mmpose | 2c9986521d35eee35d822fb255e8e68486026d94 | 537bd8e543ab463fb55120d5caaa1ae22d6aaf06 | refs/heads/main | 2023-08-30T19:44:21.349410 | 2023-07-04T13:18:22 | 2023-07-04T13:18:22 | 278,003,645 | 4,037 | 1,171 | Apache-2.0 | 2023-09-14T09:44:55 | 2020-07-08T06:02:55 | Python | UTF-8 | Python | false | false | 9,689 | py | # -----------------------------------------------------------------------------
# Based on https://github.com/heartexlabs/label-studio-converter
# Original license: Copyright (c) Heartex, under the Apache 2.0 License.
# -----------------------------------------------------------------------------
import argparse
impor... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
1143d1586aab20735c226479c91c809b0e010f96 | 388e90c9cfdb59b28654d711fe1943aeda7cf3fd | /third_party/rlkit_library/rlkit/torch/her/her.py | 14e38d240abaf4d261b406e288b78aff1468f6b9 | [
"Apache-2.0",
"MIT"
] | permissive | google-research/DBAP-algorithm | bbb2827de7f00c9efa30e3cde109ff755b4d008a | 545a4e780f9d9d480c96b67e7a8ae590a983db6b | refs/heads/main | 2023-07-05T00:38:47.424870 | 2021-08-09T23:59:10 | 2021-08-09T23:59:10 | 394,473,322 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | # Copyright 2021 Google LLC
#
# 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, ... | [
"karolhausman@google.com"
] | karolhausman@google.com |
a9482da510f5ba3d58b279552027433cc4a5508e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_267/ch80_2020_04_21_19_17_29_386400.py | eeeeb547210c8730b2703ecace4a3492362ed1d1 | [] | 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 | 182 | py | def interseccao_chaves(d1, d2):
i = 0
lista = []
for i in range(0, len(d1)-1, 1):
if d1[i] == d2[i]:
lista.append(d1[i])
return lista
| [
"you@example.com"
] | you@example.com |
87a271eef8a08470b8da50c9bc513ccbe8e1d491 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/operations/_vpn_gateways_operations.py | aa607a9767f4cfc2d6b9984385467b398a94fac7 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 29,069 | 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"
] | paultaiton.noreply@github.com |
5fcbfd1ed85e613978ce9041fc3148c0e82c8ef1 | 9c84f9d5dc15a7aa5d1caf05b6ae5ea83e39be3a | /python_stack/django/django_full_stack/EStore/apps/Amadon/models.py | 6d3bfda1bc307d87f06bf7da39e9ed9b82ae3cd5 | [] | no_license | tomnguyen103/Coding_Dojo | 0fc4007296feb775b4bcd6ee98f66286b2786adb | ec46b866fc7e58a37d07b63b26b38d19eaeb96f6 | refs/heads/master | 2022-12-28T03:47:57.172540 | 2020-06-15T23:03:50 | 2020-06-15T23:03:50 | 212,214,976 | 1 | 0 | null | 2022-12-11T18:36:51 | 2019-10-01T22:59:37 | Python | UTF-8 | Python | false | false | 270 | py | from django.db import models
# Create your models here.
class Item(models.Model):
name = models.CharField(max_length=255)
price = models.IntegerField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True) | [
"huuthong103@gmail.com"
] | huuthong103@gmail.com |
6f71b0e8033de116532c003ddbeb1c3619fe08e4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02883/s378912267.py | ec74ee409744d76ee5f15cb842f6ea8bf8578cbd | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | # わからんだろこれ 降順ソート*昇順ソートからの発想が浮かばず
n, k = map(int, input().split())
a = sorted(list(map(int, input().split())))
b = sorted(list(map(int, input().split())), reverse=True)
l, r = -1, 10**12 + 1 # ちゃんと「取りうることがないもののうち最大値」「取りうることのない最小値」でやる.....
while r - l > 1:
mid = (r + l) // 2 # 最大値これをめざす
cur = 0
for i in ra... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4b84bc177353fa7ebb7de5574f1702478f32f0c4 | 43ff15a7989576712d0e51f0ed32e3a4510273c0 | /tools/subDomainsBrute/install/dnspython-1.12.0/dnspython-1.12.0/tests/test_bugs.py | cee875750f2a2c5d3ff309e81669e0d7c454f529 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | v1cker/kekescan | f2b51d91a9d6496e2cdc767eb6a600171f513449 | 3daa1775648439ba9e0003a376f90b601820290e | refs/heads/master | 2020-09-19T16:26:56.522453 | 2017-06-15T02:55:24 | 2017-06-15T02:55:24 | 94,495,007 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | # Copyright (C) 2006, 2007, 2009-2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED ... | [
"liyueke@huobi.com"
] | liyueke@huobi.com |
42a51ca35c8304b1329bdd729ce6ae3f8b9e8326 | 2cbda9202549c23c0e0a0e291017d10056b9bed4 | /resources/content.py | 0179cfa9d9bfa83bed92da9389e1617ba8f516ef | [
"MIT"
] | permissive | rrosajp/readme-generator | e38d9d6350cb17ae1fef7aa3763e11a99d61ecfc | 6829407f58cdf13f76d165b6968b327bd2acdbaa | refs/heads/master | 2023-01-28T06:07:59.381850 | 2023-01-19T14:15:57 | 2023-01-19T14:15:57 | 251,298,536 | 1 | 0 | MIT | 2023-01-19T16:42:44 | 2020-03-30T12:32:05 | Python | UTF-8 | Python | false | false | 2,258 | py | # coding=utf-8
"""
README GENERATOR
Readme content variables
Autor: Pablo Pizarro R. @ ppizarror.com
Licencia:
The MIT License (MIT)
Copyright 2017 Pablo Pizarro R.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Soft... | [
"pablo.pizarro@ing.uchile.cl"
] | pablo.pizarro@ing.uchile.cl |
1fad19b6a3eb9364f5e130403a18ab0697553c4c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02661/s827794259.py | 141e728adac04533ae848b094fea2729e54e98ee | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | #E
N = int(input())
A = []
B = []
for i in range(N):
a,b = map(int,input().split())
A.append(a)
B.append(b)
A.sort()
B.sort()
if N%2 == 0:
n = int(N/2)
xmin = (A[n-1]+A[n])
xmax = (B[n-1]+B[n])
count = int(xmax)-int(xmin+0.5)+1
else:
n = int((N+1)/2)
xmin = A[n-1]
xmax = B[n-1]
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3970eb0f3395116fbefe7cdda58f90fb08bd6395 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02790/s231255860.py | e69443acc020c5ae06b1aef88be60c19f0965fe1 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | a,b = map(int,input().split())
print(str(a) * b) if a < b else print(str(b) * a) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
dfff9fe50b523f175823ae776759587fffe1a918 | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/kss.core-1.6.1-py2.7.egg/kss/core/plugins/core/demo/binderids/config.py | 61d71433d9caedcf53f814958606860195194cf4 | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | from kss.base.plugin import Plugin
def core_demos():
try:
from kss.demo.resource import (
KSSDemo,
KSSSeleniumTestDirectory,
)
except ImportError: # no demo package installed
return Plugin()
class CoreDemos(Plugin):
zope_demos = (
#... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
8b27d34f93bb9e949b1e5c15755e30a48df6c494 | ceb620c4be8b34f4aa08156226187db081fc3b55 | /loca_13/vat_retention/models/txt.py | 2f26b74116103d830cb3538e76a62fdd39e82082 | [] | no_license | hjrhjr/entrenamiento_13_odoo_ref | f73e292b91d085473283f63a88ccd2363a03d9bf | 9a492c006d9c0aab68d0b095281dafda97ebdfda | refs/heads/main | 2023-08-25T06:46:39.075724 | 2021-10-19T14:51:27 | 2021-10-19T14:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,207 | py | # # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
from odoo import models, fields, api, _, tools
from odoo.exceptions import UserError
import openerp.addons.decimal_precision as dp
import logging
import io
from io import BytesIO
from io import StringIO
import xlsxwriter
import shutil
import base64
i... | [
"inmldrsolucionestecnologicas@gmail.com"
] | inmldrsolucionestecnologicas@gmail.com |
6ab65ce434e59ff42c151e387a49828d8246fb92 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/_External-learning-resources/_PYTHON/Python-master/ReadFromCSV.py | 1feba4790cd9677e7d78e50e21a4fff2dc16d107 | [
"MIT"
] | 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 | 744 | py | __author__ = "vamsi"
import pandas as pd # pandas library to read csv file
from matplotlib import pyplot as plt # matplotlib library to visualise the data
from matplotlib import style
style.use("ggplot")
"""reading data from SalesData.csv file
and passing data to dataframe"""
df = pd.read_csv("..\SalesData.csv... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
245c5adec1af22b19e41ef21b548d06f88e4c1d6 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/44/usersdata/81/14290/submittedfiles/desvpad.py | 2bbd77aee9af7b58a1fb9f325bebf8eaeaeaf6f0 | [] | 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 | 399 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
n=input('Digite a quantidade de valores da lista:')
l=[]
for i in range (0,n,1):
l.append(input('Digite o elemento da lista:'))
ma=sum(l)/n
soma=0
for j in range(0,n,1):
soma=soma+((l[j]-ma)**2)
s=((1/n-1)*soma)**(1/2)
print ('%.2... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a9c7f01436aa8ecbc453d5e6f5a44fa8cd1231dd | 7591033b956085c9e600b4fd704da968c2be99e4 | /CMW/services.py | 278207803cb395e1cf1694e8c3a4df6679b1c512 | [] | no_license | o-shmidke/CMW | af355a0ceadea38feffb319f766b977afdd4a453 | a0918ca6b19de766ab10754e043b2473cf4869d8 | refs/heads/master | 2023-01-04T16:18:31.972346 | 2020-10-28T08:19:11 | 2020-10-28T08:19:11 | 285,347,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | from materials.models import Materials
from work.models import Unit, Groups
def _save_unit(unit):
"""Сохранение ед.измерения в БД"""
if unit is not None:
if unit != 0:
unit = unit.replace(' ', '')
try:
Unit.objects.get(name=unit)
except Unit.DoesNotExist:
... | [
"61247061+o-shmidke@users.noreply.github.com"
] | 61247061+o-shmidke@users.noreply.github.com |
4795b35c54ee39ec2d3a4efaf8c0046740d3f247 | 42e8c0992fd845237fa7b1baef494bfb6abc9dba | /templates/operators/insert_linked_node.py | 567b8865579e088866a326a584e3ff06460b0a4d | [] | no_license | mx1001/animation_nodes | b5ae336512bb43f40e6ca5276a4e05acb5fdc81b | b77b96d991f2b26c03bcbeef4a9fa8a09173ea4f | refs/heads/master | 2020-02-26T17:46:05.676451 | 2016-03-09T15:22:01 | 2016-03-09T15:22:01 | 54,067,761 | 5 | 0 | null | 2016-03-16T21:27:54 | 2016-03-16T21:27:54 | null | UTF-8 | Python | false | false | 1,269 | py | import bpy
from bpy.props import *
from ... base_types.template import Template
class NodeSetting(bpy.types.PropertyGroup):
value = StringProperty()
class InsertLinkedNodeOperatorTemplate(bpy.types.Operator, Template):
bl_idname = "an.insert_linked_node_operator_template"
bl_label = "Insert Linked Node"
... | [
"mail@jlucke.com"
] | mail@jlucke.com |
12d4ce5970d6a9bf7c60010cc1ac96d1ec62af10 | 11ca0c393c854fa7212e783a34269f9dae84e8c7 | /Python/LCP 19. 秋叶收藏集.py | 2e0412f0848ff9652a060154be93259e8237af83 | [] | no_license | VictoriqueCQ/LeetCode | dc84d81163eed26fa9dbc2114bba0b5c2ea881f4 | a77b3ead157f97f5d9599badb4d4c5da69de44ba | refs/heads/master | 2021-06-05T06:40:24.659909 | 2021-03-31T08:31:51 | 2021-03-31T08:31:51 | 97,978,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | class Solution:
def minimumOperations(self, leaves: str) -> int:
# 简化的 dp
# r 代表当前位置是 r* 型要更改的次数
# ry 代表当前位置是 r*y* 型要更改的次数
# ryr 分别代表当前位置是 r*y*r* 型要更改的次数
r, ry, ryr = int(leaves[0] == 'y'), float('inf'), float('inf')
for i in range(1, len(leaves)):
x = int... | [
"1997Victorique0317"
] | 1997Victorique0317 |
764e8ca2c6f7c7cb2e10791d608a9853c5475d11 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/caffe2/python/operator_test/percentile_op_test.py | 4f93d8faaf99159bb3568f316d5ef7b5cab2fbc4 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:02ad2949a9b3b3e16c14227aed33295993b059960af24da17ecd6bb994f00aee
size 4435
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
67ec3b1a6df8433160661aaacacae31abbfb6556 | 54df8336b50e8f2d7dbe353f0bc51a2b3489095f | /Python/Python All in 1 Codes/other/Python Old Codes/Interview_Python_advanced/unpickling.py | 5d0c2d186dce24ed34b31e16fe24980a880cc1cc | [] | no_license | SurendraKumarAratikatla/MyLenovolapCodes1 | 42d5bb7a14bfdf8d773ee60719380ee28ff4947a | 12c56200fcfd3e5229bfeec209fd03b5fc35b823 | refs/heads/master | 2023-06-17T15:44:18.312398 | 2021-07-19T10:28:11 | 2021-07-19T10:28:11 | 387,358,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | import pickle
pickle_in = open("list.pickle", "rb")
s = pickle.load(pickle_in)
print(s) | [
"suendra.aratikatla1608@gmail.com"
] | suendra.aratikatla1608@gmail.com |
59cd538155d48c8308aff2e09be5a669a153cdd2 | 367b977841f970bdd4d14349c1df85b8738c9615 | /setup.py | 81bcc9f531f6f43dcaa294aa085eccc6835aeb29 | [] | no_license | keflavich/mysg | 450c9b41a4f4246f3ae16512c2d9ce66470714a3 | 5599d16c4faa52ce47e0cb5831adca5a49e79401 | refs/heads/master | 2022-03-06T20:14:37.913587 | 2016-06-18T07:20:08 | 2016-06-18T07:20:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | #!/usr/bin/env python
from distutils.core import setup
try: # Python 3.x
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError: # Python 2.x
from distutils.command.build_py import build_py
setup(name='Model YSO SED Grid',
version='1.1',
author='Thomas Robitaille',
... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
702baf59ed32631b7e7db84844ef928b640a4db6 | 0e1b2b1401434ebd9e8f50543578ca67b6b2edf0 | /ros_workspace/devel/lib/python2.7/dist-packages/parbot_pathplanning/msg/_CostPointStamped.py | 19dd9f871bc06fdefc041a861e4ca11da16438d4 | [] | no_license | WPI-FRASIER/PARbot | 47d65e9fba0057b12b8ef5b1ea12065a167c9518 | 5d645bc36a1802be0b981edb85aa5525c9349f32 | refs/heads/master | 2021-01-01T17:16:04.998109 | 2015-05-05T06:32:07 | 2015-05-05T06:32:07 | 35,078,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,659 | py | """autogenerated by genpy from parbot_pathplanning/CostPointStamped.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
class CostPointStamped(genpy.Message):
_md5sum = "1383222cdc92fc97096adc5647280046"
_... | [
"fraiser@FRAISER.(none)"
] | fraiser@FRAISER.(none) |
d263df581fb07e0cc9283af33812b0b025f93a0a | 3a02bff6397eb23afd55cc17faf81c24a8751f2d | /__youtube/ai/thuchienlike.py | 31a57ebec83838db6103f6aa76532ea7ca8310b3 | [] | no_license | cothuyanninh/Python_Code | 909fd4d798cbd856e8993f9d4fea55b4b7c97a1f | 7f657db61845cf8c06725a2da067df526e696b93 | refs/heads/master | 2022-11-06T01:00:39.939194 | 2019-01-13T15:27:38 | 2019-01-13T15:27:38 | 164,468,626 | 0 | 1 | null | 2022-10-13T16:16:21 | 2019-01-07T17:40:51 | Python | UTF-8 | Python | false | false | 238 | py | import os
import random, time
minh = open('./folder/output.txt', 'r').readlines()
for i in range(len(minh)):
print("Like video : "+ str(i))
os.system('like.py --videoid "%s"'%(minh[i].split('\n')[0]))
time.sleep(random.randint(30, 60)) | [
"cothuyanninh@gmail.com"
] | cothuyanninh@gmail.com |
d5ade01bae14910d51680a6a38d91c169a21bff5 | 385f0577d98fbf81dd6310b6d826e54f76ae39e7 | /diffusions/model_cir.py | 2ff67ea6b6fe0df4ea1d0ee49ec056e7898481fd | [
"MIT"
] | permissive | afcarl/diffusions | 4cd5bf32332e64a2352b398eeb69167e98ea35f9 | 87a85b636cc5b78b9a89a8fd1c0c7e7426385952 | refs/heads/master | 2021-05-17T16:02:43.873818 | 2017-09-05T10:14:07 | 2017-09-05T10:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
CIR model class
~~~~~~~~~~~~~~~
"""
from __future__ import print_function, division
from .model_generic import SDE
__all__ = ['CIR']
class CIR(SDE):
"""Cox-Ingersoll-Ross (CIR) model.
"""
def __init__(self, param=None):
"""Initialize the clas... | [
"khrapovs@gmail.com"
] | khrapovs@gmail.com |
ee1a7d57963fc5bb530ea3c00124ba8708e12353 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /CMqa7tAtffudQ7hs4_3.py | a81910549e244ce5732fef4acd760959dce15b59 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py |
def sorting_steps(lst):
arr=lst[:]
s=[]
for i in range(len(lst)):
for j in range(i,len(lst)):
if arr[j]<arr[i]:
s.append((i,j))
arr[j],arr[i]=arr[i],arr[j]
return s
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e967943ce77b42b93844255252f84a49170dab97 | 9bc9885e9500083afc2cd6be4ff93ee2eb4fbfbb | /neuropower/apps/designtoolbox/migrations/0003_designmodel_w.py | 60967b63dee0a0d99fbfcea8a84b5d2b6a7eca44 | [
"MIT"
] | permissive | jokedurnez/neuropower | 50297af01bef55fe2c01355f038a9d184cde493d | ed8c1cf29d447b41dfbfbc7a8345443454e62a96 | refs/heads/master | 2021-01-15T08:36:45.191330 | 2016-11-20T00:56:30 | 2016-11-20T00:56:30 | 51,338,446 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-08-05 19:29
from __future__ import unicode_literals
from django.db import migrations
import picklefield.fields
class Migration(migrations.Migration):
dependencies = [
('designtoolbox', '0002_auto_20160805_1921'),
]
operations = [
... | [
"joke.durnez@gmail.com"
] | joke.durnez@gmail.com |
fa3a705a7a4fbb12360820a19fe390dd1886c78e | 72af42076bac692f9a42e0a914913e031738cc55 | /01, 특강_210705_0706/02, source/CookData(2021.01.15)/Ex09-01.py | c84c29eb6127c4ee0b60f116264118da629c7c47 | [] | no_license | goareum93/Algorithm | f0ab0ee7926f89802d851c2a80f98cba08116f6c | ec68f2526b1ea2904891b929a7bbc74139a6402e | refs/heads/master | 2023-07-01T07:17:16.987779 | 2021-08-05T14:52:51 | 2021-08-05T14:52:51 | 376,908,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | ## 클래스 및 함수 선언 부분 ##
class Graph() :
def __init__ (self, size) :
self.SIZE = size
self.graph = [[0 for _ in range(size)] for _ in range(size)]
def printGraph(g) :
print(' ', end='')
for v in range(g.SIZE) :
print("%9s" % storeAry[v][0], end = ' ')
print()
for row in range(g.SIZE) :
print("%9s" %storeAry[r... | [
"goareum7@gmail.com"
] | goareum7@gmail.com |
901d6591c77b4d3b4d5747ca2affedab1db03fb4 | 2d4e10e72cb62b8025941a8761322d511c3d99d1 | /articles/urls.py | bdcce16d0e0b7337a7e9f636b62501f8d4443bb0 | [] | no_license | satish24011993/news | 3d189178b694aace8356956ecc7674adcece437d | e795fac1df854d758e5a49caa5b3326530f739b7 | refs/heads/master | 2022-11-17T08:06:41.374940 | 2020-07-11T12:56:43 | 2020-07-11T12:56:43 | 278,861,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from django.urls import path
from .views import (ArticleListView, ArticleUpdateView, ArticleDetailView, ArticleDeleteView, ArticleCreateView)
urlpatterns = [
path('<int:pk>/edit/', ArticleUpdateView.as_view(), name= 'article_edit'),
path('<int:pk>', ArticleDetailView.as_view(), name = 'article_detail'),
p... | [
"satishkurakula073@gmail.com"
] | satishkurakula073@gmail.com |
1bef64bd8a37bd50cecf76e9e0840390f06f0cc4 | 4a0de55146538657e49e7889265d32a2f7600a04 | /ali/2019_templete_query.py | 6d08ad673bd68f5e6f846c45146e836ffd92369e | [] | no_license | listenviolet/NLP | 39491d8e97525b6ca57592a3165d6d6e92eeb269 | d36d139e5915f6b8aac9611e1e7357830f7fb5a5 | refs/heads/master | 2020-04-23T10:13:23.542104 | 2019-04-12T07:13:08 | 2019-04-12T07:13:08 | 159,591,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,760 | py | 1. 问答题
在基于自然语言的人机交互系统中,通常会定义一些语义模板来训练NLU(自然语言理解)模型,比如下面的模板可以支持用户通过语音控制机器播放音乐:
1.放几首@{singer}的歌
2.播放一首@{singer}的歌
3.来一曲@{singer}的歌曲
4.来首@{singer}的音乐
5.来个@{singer}的流行音乐
其中"@{singer}"是一个参数,代表歌手,比如第一个模板可以匹配这样的用户query:“放几首刘德华的歌“。可以看到,同样是放歌,有很多种不同但相似的说法,但把他们一条一条单独列出来,编辑的成本会比较高,而且会漏掉一些说法,不严谨。实际上,上面的5个模板,可以用下面的语义模板表达式来表示... | [
"listenviolet@gmail.com"
] | listenviolet@gmail.com |
e37f78288f16167c02435940f591c80a408d4600 | b6df7cda5c23cda304fcc0af1450ac3c27a224c1 | /data/codes/pdhoot_client.py | cadffd6a6d289bbc7f98ff473cbccb52757f54d8 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | vieira-rafael/py-search | 88ee167fa1949414cc4f3c98d33f8ecec1ce756d | b8c6dccc58d72af35e4d4631f21178296f610b8a | refs/heads/master | 2021-01-21T04:59:36.220510 | 2016-06-20T01:45:34 | 2016-06-20T01:45:34 | 54,433,313 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | import socket , sys , signalfrom Node import Nodefrom threading import Threadfrom clint.textui import colored
class Client(Node):
def __init__(self , host , port , passwd): self.host = host self.port = port self.passwd = passwd + '\n' self.sock = socket.socket(socket.AF_INET , socket.SOCK_STREAM)
def start(self): sel... | [
"thaisnviana@gmail.com"
] | thaisnviana@gmail.com |
01a894f509a39faaf4841d463b1bb9de17125961 | 468b1f37f8dc207a32f52002001cedeca0b87b80 | /python/ups/tarballs.py | 7f7059362e9f737f8967e851373c336d0a837e5a | [] | no_license | brettviren/python-ups-utils | a0494b4a60336a752612d3212fb1490fa89a2277 | 0014af2dc9427e59a49c5c7afb575e2905ff6c3e | refs/heads/master | 2021-01-10T21:42:39.469722 | 2017-04-27T22:15:21 | 2017-04-27T22:15:21 | 22,932,668 | 0 | 1 | null | 2015-07-31T13:28:12 | 2014-08-13T21:59:32 | Python | UTF-8 | Python | false | false | 538 | py | #!/usr/bin/env python
'''
Interact with UPS packaged tarballs.
'''
import os
import urllib
default_url_pattern = 'http://oink.fnal.gov/distro/packages/{name}/{tarball}'
# fixme move this and similar use in commands.py to some util module
def download(url, target):
if not os.path.exists(target):
url... | [
"bv@bnl.gov"
] | bv@bnl.gov |
761a16ea5afd9ff1a5cc8d377dfb623a5be75c44 | 4f8d6d3769f26ebe15213e46460325c9165d4e17 | /src/state.py | 73e4f789c7e53a0f2a78d58dd65fff12eaec23f5 | [
"MIT"
] | permissive | KM-200/PyBitmessage | 482b8f88751b7b74724c46c0000e80a2a9ae6815 | 2b2bdce40ef530482f9b545a45e42f125844f19b | refs/heads/master | 2020-03-15T22:23:42.266320 | 2018-09-01T08:53:59 | 2018-09-01T08:53:59 | 132,372,385 | 1 | 0 | MIT | 2018-07-17T02:05:55 | 2018-05-06T20:12:17 | Python | UTF-8 | Python | false | false | 1,705 | py | import collections
neededPubkeys = {}
streamsInWhichIAmParticipating = []
sendDataQueues = [] #each sendData thread puts its queue in this list.
# For UPnP
extPort = None
# for Tor hidden service
socksIP = None
# Network protocols availability, initialised below
networkProtocolAvailability = None
appdata = '' #hol... | [
"surda@economicsofbitcoin.com"
] | surda@economicsofbitcoin.com |
19b9d8423c168d1629f32779ca59512c0030b359 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertOneElementTupleToList.py | 7a88eac62fac3f8402073e1824a9900e34cc3636 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 12 | py | (<caret>42,) | [
"mikhail.golubev@jetbrains.com"
] | mikhail.golubev@jetbrains.com |
699130c762ef47518063fd168d4ad07559d13f83 | 054eefaa17157b32869ea986347b3e539d2bf06b | /big_o_coding/Blue_13/Schoolwork/day_16_DISJOINT_SET_UNION.py | 8f2440568b1c442c8c0885d6458abe62531d9a84 | [] | no_license | baocogn/self-learning | f2cb2f45f05575b6d195fc3c407daf4edcfe7d0e | f50a3946966354c793cac6b28d09cb5dba2ec57a | refs/heads/master | 2021-07-12T23:32:14.728163 | 2019-02-10T14:24:46 | 2019-02-10T14:24:46 | 143,170,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | MAX = 20
parent = []
def makeSet():
global parent
parent = [i for i in range(MAX + 5)]
def findSet(u):
while u != parent[u]:
u = parent[u]
return u
def unionSet(u, v):
up = findSet(u)
vp = findSet(v)
parent[up] = vp
if __name__ == "__main__":
Q = int(input())
makeSet()
... | [
"baocogn123@gmail.com"
] | baocogn123@gmail.com |
df5bcabe560a6dbec253c154a164052c95265eaa | 7850831b7dcda9730cdd1ce40f873843b079c6a4 | /tests/test_camera_params.py | aade7f33df18d6ebda3c11c0ae7ec40dbbca1a9c | [] | no_license | ashar6194/human_pose_util | 2f64a3ce88995ea08a87910fd49816eec28c5b7a | bff2fcc7f92dfef14996e821a2768200c7a751dd | refs/heads/master | 2021-05-06T05:27:13.499542 | 2017-10-25T22:56:02 | 2017-10-25T22:56:02 | 115,153,665 | 0 | 0 | null | 2017-12-22T22:12:24 | 2017-12-22T22:12:24 | null | UTF-8 | Python | false | false | 2,011 | py | from __future__ import division
import unittest
import numpy as np
from human_pose_util.transforms.camera_params import \
calculate_extrinsics
from human_pose_util.transforms.camera_params import \
calculate_intrinsics_1d, calculate_intrinsics
class TestCameraIntrinsics(unittest.TestCase):
"""Test calcul... | [
"thedomjack@gmail.com"
] | thedomjack@gmail.com |
70594bca8de63e8cc26253892b7c2db7236b8ea9 | cb062c48280311134fe22573a41f9c4d6631b795 | /tests/tools/test_cli.py | 845719f0664bfaf90fe012a7a820e121f99fd649 | [
"MIT"
] | permissive | xm-blockchain/xm-core | da1e6bb4ceb8ab642e5d507796e2cc630ed23e0f | 2282b435a02f061424d656155756d8f50238bcfd | refs/heads/main | 2023-01-15T19:08:31.399219 | 2020-11-19T03:54:19 | 2020-11-19T03:54:19 | 314,127,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,746 | py | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
import json
import os
import shutil
import tempfile
from unittest import TestCase, mock
from click.testing import CliRunner
from xm.cli import xm as xm_cli
from xm.co... | [
"74695206+xm-blockchain@users.noreply.github.com"
] | 74695206+xm-blockchain@users.noreply.github.com |
68b98cb29f9ef2a047b4a3942a769644673c1e4e | 9951b1f9957031f9b5015bf48da854faba1079c0 | /slam/imaging/no_lens_light/source_inversion/mass_total__subhalo_nfw/hyper_all.py | dabec6a1c3469e5d8d2a94f16aee5a46550cb822 | [] | no_license | jonathanfrawley/autolens_workspace_test_copy | 07c069b77759afb2d836d9763846d27727eea67c | 7f7c72feedf5ad3dd7b6d65a3b6de463eaaa4fe6 | refs/heads/master | 2023-04-24T11:57:52.620442 | 2021-02-25T15:52:54 | 2021-02-25T15:52:54 | 367,427,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,238 | py | """
__SLaM (Source, Light and Mass)__
This SLaM pipeline runner loads a strong lens dataset and analyses it using a SLaM lens modeling
pipeline.
__THIS RUNNER__
Using 1 source pipeline, a mass pipeline and a subhalo pipeline this runner fits `Imaging` of a strong lens system,
where in the final phase of the... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
0b2f2a71542b974ed43a821a461d32ea33df334d | 19decad8830dee81b7951ca7cbe40eab4bf60ff5 | /src/pipes/coreference.py | f98d21999b59ca92ebe83bb3174a6d83d0ddd378 | [] | no_license | rihardssp/annotationtranslation | 9a0423fc94842065e0636db036a9b7f78a28cec2 | 69f1200e2784a486f31c3d2fb7a5e9785c04179a | refs/heads/master | 2023-05-25T08:58:50.576454 | 2020-05-28T17:38:10 | 2020-05-28T17:38:10 | 257,121,970 | 1 | 0 | null | 2023-05-22T23:27:27 | 2020-04-19T23:16:32 | Python | UTF-8 | Python | false | false | 5,420 | py | import typing
from src.configuration import config_reader
from src.container.base import IContainer, ContainerStatistic, stat_incr
from src.mapping_defaults.coreference import ICoReferenceMapping, CoReferenceMapping
from src.pipes.base import PipeBase
from src.readers.coreference import ICoReferenceAnnotationReaderBase... | [
"admin@example.com"
] | admin@example.com |
54b01ea95e7979928107296d665a0e0e0a33a485 | c7750528bdc5cdb9b6b2eddb8fc60915386b3dfa | /harshad_number.py | 4619d06fb7ec431d8a12e65ee1a3ec15861de336 | [] | no_license | shreshta2000/function_questions | c0723270b1770d767e806f3f41207e2b3d763ffe | 9124e4ae9d5e42c6ec7047f915eb2cf0dbb4858a | refs/heads/main | 2023-01-09T04:07:58.113514 | 2020-10-27T15:18:10 | 2020-10-27T15:18:10 | 307,741,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | def is_harshad_number(num):
i=num
while i>0:
j=0
rem=0
sum=0
while j<=i:
rem=num%10
sum=sum+rem
num=num//10
#reverse=rem*10+rem
#sum=sum+reverse
j=j+1
i=i+1
print(sum,i)
if num%sum==0:
print(i,"harshad number")
is_harshad_number(100)
| [
"you@example.com"
] | you@example.com |
dab9e5915901da7382a754421dfa3c67aac61caf | eac3bc8813c8a27c3f828c82d3506327b1a5dde8 | /neutronclient/v2_0/uos.py | 8420e0dd677c1d2e2d71872a0575dbbd53c5b2b1 | [] | no_license | CingHu/neutronclient-ustack | a21143753321426cc168b3d3430ee1a97cdbbfa9 | 21cb3a1f405f4fc598336c1a30589b346f6479a5 | refs/heads/master | 2021-01-10T18:20:16.110116 | 2015-11-27T03:58:10 | 2015-11-27T03:58:10 | 46,958,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,583 | py | # Copyright 2014 OpenStack Foundation.
# 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 req... | [
"xining@unitedstack.com"
] | xining@unitedstack.com |
884d22df40efccdab6054745feb79110fdfb3e07 | 55a9f007886340a21cab8d5a86cad74b69d789ec | /blog/forms.py | 61b370300fe2097494d84a762db7bce0de06bb28 | [] | no_license | JackSnowdon/BlogTools | e14b5c4937c35d0e29420ca644d752bde56734f1 | 7077c7922917e589b157a8d71f5172e60cebe6b6 | refs/heads/master | 2021-09-25T14:04:51.023120 | 2020-04-09T13:14:01 | 2020-04-09T13:14:01 | 248,284,246 | 0 | 0 | null | 2021-09-22T18:51:06 | 2020-03-18T16:26:41 | Python | UTF-8 | Python | false | false | 329 | py | from django import forms
from .models import *
class PostForm(forms.ModelForm):
class Meta:
model = Post
exclude = ['created_on', 'done_by', 'last_modified', 'views']
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
exclude = ['post', 'created_date', '... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
5de963ed9a19ea27981543f32e902ba33d6b85b8 | 031a7ac86ce97c257bb8dd1b0ef8ce625a38ddbb | /synthesize.py | b5ae838d369991f3e5a2f1607bd31b04f39881f4 | [
"MIT"
] | permissive | aidiary/tacotron-pytorch | 47f36ddd53f78d313e5104c513ca0679315e4951 | 8ea9b1bb61bf753a64ff611b441326ea8c001d20 | refs/heads/master | 2020-08-03T16:20:39.433942 | 2019-10-11T03:55:44 | 2019-10-11T03:55:44 | 211,811,774 | 0 | 0 | MIT | 2019-10-07T01:19:21 | 2019-09-30T08:24:15 | Jupyter Notebook | UTF-8 | Python | false | false | 1,833 | py | import argparse
import os
import numpy as np
import torch
from model import Tacotron
from utils.text import phoneme_to_sequence
from utils.text.symbols import phonemes
from utils.audio import AudioProcessor
parser = argparse.ArgumentParser()
parser.add_argument('text', type=str, help='text to generate speech')
parser... | [
"f2forest@gmail.com"
] | f2forest@gmail.com |
d5fbac6f749489b5b63810fa4d9a276aaaab110b | 88e7780f549c51e77dda336174e5d4df9af71bb4 | /valuation_undergraduate-spring_2021/session14/target_pnr.py | c37410763d98ced344af6914400fe81293bf810e | [] | no_license | webclinic017/valuation_course | 3db0de92acd4a933fa2ea938e0c5003eef0a9a92 | 14d70cf5b5eb1eb42ae5a51f286214328c035cff | refs/heads/main | 2023-05-10T13:07:12.071847 | 2021-06-11T11:14:57 | 2021-06-11T11:14:57 | 417,762,128 | 1 | 0 | null | 2021-10-16T08:08:26 | 2021-10-16T08:08:26 | null | UTF-8 | Python | false | false | 658 | py | # https://youtu.be/uj5xrGBFf44?t=4308
# Target price and returns calculation
"""
Assume that you believe that your valuation of Con Ed ($42.30) is a fair
estimate of the value, 7.70% is a reasonable estimate of Con Ed's cost of equity
and that your expected dividends for next year (2.32*1.021) is a fair estimate,
what... | [
"teguhwpurwanto@gmail.com"
] | teguhwpurwanto@gmail.com |
df473644bee8dc05da278b05f1e4406397899161 | 7a68ad190010c01f5a681074524fe30a830e336f | /IIC/datasets/__init__.py | 0d46346884af4cd26db5eea36bf2706d9c90c662 | [
"MIT"
] | permissive | jizongFox/IIC | c9817f355cf5b3281539d515defddd59d4c98da4 | 572076d5c0c26516ff3e807f2bad4e3498ab12c1 | refs/heads/master | 2022-02-24T18:53:47.271641 | 2022-02-08T23:14:39 | 2022-02-08T23:14:39 | 182,317,472 | 0 | 0 | MIT | 2022-02-02T23:32:37 | 2019-04-19T19:47:43 | Python | UTF-8 | Python | false | false | 54 | py | from .clustering import *
from .segmentation import *
| [
"jizong.peng.1@etsmtl.net"
] | jizong.peng.1@etsmtl.net |
4ee2547dd2aee7dc4bb0cd7c7161b26457304d1a | af3f8f948e181276286d1f417fd7632826febc93 | /Publicar_trabajo/migrations/0041_auto_20190927_0013.py | 5454f8ce74c8457d31c24e58d5d8ab1cf89b2948 | [] | no_license | montecinosd/Proyecto_de_titutlo | c729e01b9ff8e751b0d72e2282360630edadeba9 | ab7f503f4ee9cf37a0e54437744c19e19aa1d2a2 | refs/heads/master | 2022-12-13T02:35:17.103736 | 2020-01-29T02:02:40 | 2020-01-29T02:02:40 | 173,991,278 | 0 | 0 | null | 2022-12-08T07:02:36 | 2019-03-05T17:30:51 | CSS | UTF-8 | Python | false | false | 1,068 | py | # Generated by Django 2.0.4 on 2019-09-27 03:13
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Publicar_trabajo', '0040_auto_20190927_0012'),
]
operations = [
migrations.AlterField(
model_name='calificacione... | [
"danielmontecinoszambra@gmail.com"
] | danielmontecinoszambra@gmail.com |
79d414c018b7519a529149e6461afb25073f5448 | 78144baee82268a550400bbdb8c68de524adc68f | /Production/python/Summer16v3/QCD_Pt-20to30_MuEnrichedPt5_TuneCUETP8M1_13TeV_pythia8_cff.py | 50ebcb86f45450555db52fd14c26ab823c5a71af | [] | no_license | tklijnsma/TreeMaker | e6989c03189b849aff2007bad22e2bfc6922a244 | 248f2c04cc690ef2e2202b452d6f52837c4c08e5 | refs/heads/Run2_2017 | 2023-05-26T23:03:42.512963 | 2020-05-12T18:44:15 | 2020-05-12T18:44:15 | 263,960,056 | 1 | 2 | null | 2020-09-25T00:27:35 | 2020-05-14T15:57:20 | null | UTF-8 | Python | false | false | 46,425 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIISummer16Mi... | [
"Alexx.Perloff@Colorado.edu"
] | Alexx.Perloff@Colorado.edu |
737229ad3167d7291f0ed6d47df9eff02ae43ba0 | e7d0d662df63c511fce474ce649696e64dc16f32 | /menu/translation.py | 8841d9326156c2c0c65a6d46514ac632414a1a02 | [] | no_license | jazdelu/minibobi | d78bb8e37ec3cbbc28a0e1af2647baff814ec1d2 | 4f49f893b753294ee22c8a126dd100dd7ba6ee71 | refs/heads/master | 2021-01-18T22:32:41.491151 | 2016-11-30T15:13:06 | 2016-11-30T15:13:06 | 19,132,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from modeltranslation.translator import translator, TranslationOptions
from menu.models import *
class MenuItemTranslationOptions(TranslationOptions):
fields = ('name',)
required_languages = ('en','zh-cn')
translator.register(MenuItem,MenuItemTranslationOptions) | [
"lushizhao@qq.com"
] | lushizhao@qq.com |
f00a8f1073c9da5a3b7bb5c4ebe9ca55f99d2734 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-storage/azure/mgmt/storage/v2017_10_01/models/encryption_py3.py | d819a127105d9f1442bbb415f1d0950e4e69a13e | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,946 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
b0155ad0ed13c971cdf30436d585cb8a9d9318d9 | 77b16dcd465b497c22cf3c096fa5c7d887d9b0c2 | /Horan_Colby/Assignments/great_number_game/gng.py | 936d2ca5c0a84843305b1bdbb8dfd1c764cfbaab | [
"MIT"
] | permissive | curest0x1021/Python-Django-Web | a7cf8a45e0b924ce23791c18f6a6fb3732c36322 | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | refs/heads/master | 2020-04-26T17:14:20.277967 | 2016-10-18T21:54:39 | 2016-10-18T21:54:39 | 173,706,702 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | from flask import Flask
from flask import render_template
from flask import request
from flask import redirect
from flask import session
import random
app = Flask(__name__)
app.secret_key = 'SEEEEEEEECRET'
@app.route('/')
def index():
if not 'bingo' in session:
session['bingo'] = random.randint(0,100)
session['h... | [
"43941751+curest0x1021@users.noreply.github.com"
] | 43941751+curest0x1021@users.noreply.github.com |
f0dc516e03770d35c6f59f1e277face9cd05a17c | a2b3987eb8a50bee311f869e39d1c76e738ba2b8 | /authlib/oidc/core/__init__.py | 212ebc031322a8079d2801b905c424145e5fbd5b | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lepture/authlib | abb3e14b8ccacef9ade90b28efed827ab65aadce | 1846d6ac66e89bdb3268fffe15b7e49289966366 | refs/heads/master | 2023-09-04T04:27:56.650738 | 2023-09-02T07:42:47 | 2023-09-02T07:42:47 | 108,510,280 | 4,091 | 481 | BSD-3-Clause | 2023-09-13T13:04:38 | 2017-10-27T06:52:26 | Python | UTF-8 | Python | false | false | 650 | py | """
authlib.oidc.core
~~~~~~~~~~~~~~~~~
OpenID Connect Core 1.0 Implementation.
http://openid.net/specs/openid-connect-core-1_0.html
"""
from .models import AuthorizationCodeMixin
from .claims import (
IDToken, CodeIDToken, ImplicitIDToken, HybridIDToken,
UserInfo, get_claim_cls_by_response_t... | [
"me@lepture.com"
] | me@lepture.com |
fc6181d4d4c8cf151123dee3de63d63ce68e97ec | ed0f9eb0c1cb4858d91ef7e2d435db307f23a5a5 | /dist/manage/django/conf/locale/tr/formats.py | c231c93977e377b76ab7aec4fbcc111ccb8f0abf | [] | no_license | hjlhehehe123/ATC_Data | 81b4622e7279aa9cc2013db8cc5a71d33561e768 | ad35e61afb8e87d8bab2d2b3aeea08e9409d56c0 | refs/heads/master | 2023-07-13T16:23:45.951584 | 2021-08-20T12:37:34 | 2021-08-20T12:37:34 | 256,994,694 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | # This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd F Y'
TIME_FORMAT = 'H:i'
DATETIME_FORMAT = 'd F Y H:i'
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT... | [
"1598214715@qq.com"
] | 1598214715@qq.com |
23a3f87aa0a881b55e2bb861584609f639b08b47 | 3810eb933366169ee226e2db0358475b47e28f72 | /PYTHON_Stack/POO/Tienda/store.py | 4b32b0d767fc46073429a1f1ceb5ba12d0a0efd7 | [] | no_license | jsilva16/Fullstack_Python | 53b823f7cfc5e03f03bf90587c72230ce00e7e06 | fe31679dea5439fb68900984fd1d2b01a7105045 | refs/heads/master | 2023-08-13T12:59:12.509492 | 2021-10-11T12:17:49 | 2021-10-11T12:17:49 | 365,086,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | import product as prod
class Store:
def __init__(self, name, products=[]):
self.name = name
self.product = products
def add_product(self, new_prod):
self.product.append(new_prod)
print(f"Se ha agregado el producto '{new_prod}'")
return self
def delete_prod(self... | [
"juansilva.ambiental@gmail.com"
] | juansilva.ambiental@gmail.com |
abc399c1b0a5eb06f408279dc075c4c7b5750846 | 7c7d2cb72b6c2ac57605250bcde2143988137c9c | /0x01-python-if_else_loops_functions/8-uppercase.py | d9f862c5829adaabd09b000787637d0067b9432d | [] | no_license | garthus23/holbertonschool-higher_level_programming | 915f2cc501ffc1f9b9efd7f9d7dfcae5b50e9edf | 9ab8ade0b615b669ee7807caf560b411e09634af | refs/heads/main | 2023-04-24T08:59:33.043402 | 2021-05-12T19:57:30 | 2021-05-12T19:57:30 | 319,256,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | #!/usr/bin/python3
def uppercase(str):
for i in str:
if ord(i) >= 97 and ord(i) <= 122:
i = chr(ord(i) - 32)
print("{}".format(i), end="")
print('')
| [
"garthus@adminux.fr"
] | garthus@adminux.fr |
6519c3d8e645e3763e579ed202267054d59f3223 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_23/models/policy_member.py | be52a484c3c24eaafba329d0bce3cec995432afc | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,961 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.23
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
5d6d76fca7697a49e08aee67a0ae85c1c5adb328 | 695803cf1ae81f7a8ad63faa80545c3c913cee02 | /Part1/week2/chapter10/exercise/guest_10.3.py | b190270eef1664d80d2869917fa4a7cf697b3ce1 | [] | no_license | superstones/LearnPython | fa72a249a69323927da81887ce4b9f400552a1d0 | 5ea25f9b9922654d67c6b31475cdf02b9fe99c7e | refs/heads/master | 2023-06-24T10:40:18.639288 | 2021-07-22T08:34:11 | 2021-07-22T08:34:11 | 370,679,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | # 10.3访客
guest_name = input("Please enter your name: ")
file_name = 'guest.txt'
with open(file_name, 'a') as file_object:
file_object.write(guest_name + "\n")
| [
"292454993@qq.com"
] | 292454993@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.