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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27930989c4f710c63ba8fdbe07e1fe62f4767919 | b6ee71c540af500c2938e78f928bfd2d88585eea | /threestrandcode/apps/api/tests/assignments.py | b02c4b86cdd02ef374a26b38a4bd90e174f9b095 | [] | no_license | 3-strand-code/3sc-api | 114e1c633cbb026a200fc74a065db39072b63763 | 1e4c051758aab85f0f6b6efa6c3aa713f05eb75e | refs/heads/master | 2016-09-01T16:11:18.668787 | 2016-02-15T01:29:04 | 2016-02-15T01:29:04 | 48,534,175 | 0 | 0 | null | 2016-02-23T20:52:47 | 2015-12-24T08:41:32 | Python | UTF-8 | Python | false | false | 1,284 | py | import random
from django.conf import settings
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase
from faker import Factory
from loremipsum import generate_paragraph
from model_mommy import mommy
from applicants.models import Applicant
from homewo... | [
"eric@ckcollab.com"
] | eric@ckcollab.com |
4e2de6d4cb15b3eb73b16ff6453fac402218a793 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /dp_regression/experiment_test.py | a2e9967b9ad34b3318655ce57a3d11f4ad93f12c | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,307 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
10e6a6e562dce5f1b086e9743cb47cf6e26114bc | a3812dc03ea9f818be7df41eec424cfb1a3fc5ce | /fluent_blogs/admin/abstractbase.py | af38b85f4b299bb9421402df4f4f2b2557a030d0 | [
"Apache-2.0"
] | permissive | msaelices/django-fluent-blogs | 76991e701c998594854be9e348b37ed927313b72 | c892c5acfd847e6a4b587a34edc55df29563225b | refs/heads/master | 2021-01-16T19:01:59.286552 | 2015-08-27T15:06:25 | 2015-08-27T15:06:25 | 41,442,271 | 0 | 1 | null | 2015-08-26T18:18:47 | 2015-08-26T18:18:47 | null | UTF-8 | Python | false | false | 10,455 | py | import django
from django.conf import settings
from django.contrib import admin
from django.contrib.admin.widgets import AdminTextInputWidget, AdminTextareaWidget
from django.core.exceptions import ImproperlyConfigured
from django.core.urlresolvers import NoReverseMatch
from django.utils.timezone import now
from django... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
98a8aff95c45a2477fb0daa2102191e16e591101 | de4c5ecaf541d67e7cbf02837d93cf303d23b5da | /src/app/model/flash_msg.py | 11cca6b9e7356ac435f6b39c82155b57a7ea7b71 | [
"Apache-2.0"
] | permissive | shadowmint/py-test-watcher | d140064cafeb0b2efce8a403a3abd63322f812d0 | 36d33206b104c81e2d6acebdbed2dddee71fe2a7 | refs/heads/master | 2021-01-19T14:07:13.441335 | 2013-07-01T06:07:56 | 2013-07-01T06:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | # Copyright 2013 Douglas Linder
# 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... | [
"linderd@iinet.net.au"
] | linderd@iinet.net.au |
d7d6b4cd87007c2c1eba4c550c67c0c1c1bddee4 | cb062c48280311134fe22573a41f9c4d6631b795 | /src/xm/core/TransactionInfo.py | 00f218c97fc571e7a710ca83d842ded158650ac2 | [
"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 | 2,257 | py | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
from xm.core import config
from xm.core.misc import ntp
from xm.core.txs.Transaction import Transaction
class TransactionInfo:
def __init__(self, tx: Transactio... | [
"74695206+xm-blockchain@users.noreply.github.com"
] | 74695206+xm-blockchain@users.noreply.github.com |
768aeb458d3c1a278bb6c13bfb68415378dea271 | 76e931912629c37beedf7c9b112b53e7de5babd7 | /2-mouth02/day09/insert_many.py | f985b8313dcbcd47dce05b6061d60655455b3c3e | [
"Apache-2.0"
] | permissive | gary-gggggg/gary | c59ac21d8e065f296ff986d11a0e4cbf186a1bc4 | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | refs/heads/main | 2023-02-23T06:54:34.500683 | 2021-02-01T10:17:02 | 2021-02-01T10:17:02 | 334,905,744 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | import pymysql
db_dic = {
"host": "localhost",
"port": 3306,
"user": "root",
"password": "123456",
"database": "gary",
"charset": "utf8"
}
# 链接数据库
db = pymysql.connect(**db_dic) # 一个链接口
# 创建游标 游标对象:执行sql得到结果的对象
cur = db.cursor() # 打开完成
# 操作数据
list1 = [
("张三", 21, 'male', 65),
... | [
"673248932@qq.com"
] | 673248932@qq.com |
b69d77cf2d656cfdd59cd2d926c4ff2a3d3b483e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_85/45.py | 6c238130b6c65c8e115cbd376dfa2b64f752cdeb | [] | 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 | 1,569 | py | def dist_at(a,c,dist):
return dist[a%c]
def normal_time(n,c,dist):
time = 0
for star in xrange(0,n):
length = dist_at(star,c,dist)
time += length*2
return time
def solve():
test = int(raw_input())
for case in xrange(1,test+1):
dist = []
input = map(int,raw_input().split())
for i in xrange(0,len(input... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
cb6cde984e9367c6b77787362767d0684e97c498 | 11bb0cbe6de2a0a4e94fc0ba610f61894d5593a1 | /VBS_Zgamma/AQGC/combine/run/zz/test/th2_to_txt.py | 9f8455d301e3b0c8e56d9350a9029ec067096327 | [] | no_license | AnYpku/PKU-Cluster | 0dc4a88445aeb3ca239b2d7d7f796c6a67f3f69c | f9ffbcb7988053f4618fd015c1bb656d92ff51c6 | refs/heads/master | 2022-11-01T23:46:59.442037 | 2022-10-21T06:37:43 | 2022-10-21T06:37:43 | 188,202,345 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | #!/usr/bin/env python
from ROOT import gROOT, THStack, TH1D, TList, TFile, TH1F
print '-----begin to transfer TH2D to txt for Higgs-combine tool----- \n'
f1 = TFile.Open("chAll.root")
th1_ZA_sig = f1.Get("diboson")
th1_ZA = f1.Get("QCD_gg")
th1_non_prompt = f1.Get("QCD_qq")
print '>>>>begin to read bin content to ... | [
"ying.an@cern.ch"
] | ying.an@cern.ch |
c755e0f999df38cc3bc6191386c7b4da163fc42e | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5670465267826688_1/Python/YeOldeLancer/d___stra.py | f523443b1ff964dc7109509426fe56b1cce4791e | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,098 | py | # Google Code Jam 2015, Qualification Round
# Problem C. Dijkstra
# Lance C. Simons
def dijkstra_eval(s):
if s.startswith("-"):
d = dijkstra_digit(s[:2])
else:
d = dijkstra_digit(s[0])
for c in s[1:]:
d = d * c
return d
class dijkstra_digit:
mtable = {"1":{"1": "1", "i": "i", "j": "j... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
dffce93acf81be40e78272c45459c21d33a2780a | 3ff28c714fef7f568e8dfce0a2d4a16d6d10e8ef | /Using Python to Access Web Data - University of Michigan/get_contents_between_tags.py | 86f3d5bb546264bc8aadff7a06c6be873c6ea2f3 | [] | no_license | avishkakavindu/Fun-Times | a0325c045a3d9316fd00d1c9b025a994498762d5 | 6861558c668892ce2a0b1b37ecfac30883f0f3b5 | refs/heads/master | 2022-08-13T15:23:22.939576 | 2020-05-22T10:18:30 | 2020-05-22T10:18:30 | 264,172,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
import ssl
# Ignore SSL certificate errors
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
url = input('Enter - ')
html = urlopen(url, context=ctx).read()
soup = BeautifulSoup(html, "html.parser")
# Retriev... | [
"avishkakavindud@gmail.com"
] | avishkakavindud@gmail.com |
c8e6c842ce09125be40f318e5d67694aa1bf17f4 | 91e18177b07a842b84863cee8cad118666107b4b | /schedule/migrations/0001_initial.py | 59d213cde1acd6355cf40fbd8e7f4b4590b2abd1 | [] | no_license | HyeonGyuChi/NewBeTon_2019 | 6c55797af34715a803cf4eee245b1c7b77584f2a | 1d93bdaec9dbf1eb82ea689eb01b106e835d373f | refs/heads/master | 2020-05-19T08:21:20.622579 | 2019-05-05T00:43:19 | 2019-05-05T00:43:19 | 184,919,650 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | # Generated by Django 2.2.1 on 2019-05-04 15:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"hyeongyuc96@gmail.com"
] | hyeongyuc96@gmail.com |
ea87a335075397221ad96fc8a450587dcbe0c2c2 | 273eb20546083f0e23a8077a3f6d383ed37ffef6 | /Bricks/Qt4_MultipleMotorsBrick.py | dda64ad67cca45f17bcc363e8cba0386acbdb934 | [] | no_license | douglasbeniz/BlissFramework | fd886b161b9ba6f246424b1352a99820303d48aa | 11486d6c91fc0077e967cb2321743466a7c1aa8b | refs/heads/master | 2021-01-24T15:22:54.876055 | 2017-09-21T19:12:44 | 2017-09-21T19:12:44 | 55,637,790 | 0 | 0 | null | 2016-04-06T20:20:11 | 2016-04-06T20:20:11 | null | UTF-8 | Python | false | false | 4,972 | py | #
# Project: MXCuBE
# https://github.com/mxcube.
#
# This file is part of MXCuBE software.
#
# MXCuBE 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 optio... | [
"ivars.karpics@gmail.com"
] | ivars.karpics@gmail.com |
d54f685c7714a72608acb26e0491b4540d60859f | 220b79a0c02d43817a5fe4fb0d73e6061507f09d | /mlflow_tools/display/list_model_versions.py | d5bc037b0d944561b8595a72e0d5665b6990dffc | [] | no_license | amesar/mlflow-tools | 7ae5976297545417f5974f418028246e3d74da5f | 2e7282397e9d3a29b4c30aae8ee5d26511d9ab15 | refs/heads/master | 2023-07-25T12:54:01.087785 | 2023-07-25T01:44:54 | 2023-07-25T01:44:54 | 232,914,433 | 34 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | """
List all registered models versions.
"""
import click
from tabulate import tabulate
from mlflow_tools.common.click_options import opt_sort_attr, opt_sort_order, opt_columns, opt_output_csv_file
from mlflow_tools.api import api_factory
from mlflow_tools.display.display_utils import process_df
pandas_api = api_fact... | [
"amesar@users.noreply.github.co"
] | amesar@users.noreply.github.co |
1976cf0f7d94870552d7607100e8d9e5a7980f1f | a1c166a1ac4782f1f0792e0fd21741360373b376 | /frontEnd/widgets/commodity_tree.py | f2d1ae1f2f4111d1292e37489fab3a0caa3674f6 | [] | no_license | xiaomapython/QlaskExplor | 3c7b75866b8276a5c2de3fbfddf779e1a66691d0 | c8b1757d08d06d350f7ca41897bbf4378fde3911 | refs/heads/master | 2020-06-23T08:08:45.169160 | 2019-05-15T02:05:17 | 2019-05-15T02:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | # _*_ coding:utf-8 _*_
# company: RuiDa Futures
# author: zizle
"""目录树组件"""
from PyQt5.QtWidgets import QTreeWidget, QTreeWidgetItem
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import Qt, pyqtSignal
from settings import MEDIA_PATH
class Tree(QTreeWidget):
variety_click_signal = pyqtSignal(str) # 品种被点击信号槽
... | [
"zizle_lin@163.com"
] | zizle_lin@163.com |
ca195756563c4334cb337249ba85c5e2e578d954 | 04803c70bb97012b7d500a177ac0240fb2ddbe38 | /1heptane/pdep/network3564_1.py | ec5a036766e00639f0b96adc90a739908204914a | [] | no_license | shenghuiqin/chpd | 735e0415f6688d88579fc935459c1b0f53596d1d | 396ba54629036e3f2be0b3fabe09b78c90d56939 | refs/heads/master | 2023-03-01T23:29:02.118150 | 2019-10-05T04:02:23 | 2019-10-05T04:02:23 | 192,084,217 | 0 | 0 | null | 2019-06-18T18:33:13 | 2019-06-15T13:52:28 | HTML | UTF-8 | Python | false | false | 115,411 | py | species(
label = '[CH2]C(C[CH]C=C)CCC(18964)',
structure = SMILES('[CH2]C=CCC([CH2])CCC'),
E0 = (203.219,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([2750,2770,2790,2810,2830,2850,1425,1437.5,1450,1225,1250,1275,1270,1305,1340,700,750,800,300,350,400,2995,3025,975,1000,1300,1375,400,500... | [
"qin.she@husky.neu.edu"
] | qin.she@husky.neu.edu |
6d0630b36cc1a1461e8d0c1184d82ac87708df69 | b98273a1a4cab384054c8ca7018c74a5b89dccf2 | /visu/generate_hidden_violation.py | 83b9ece19d1a8c4eac95593b51d6f54c5966efdb | [] | no_license | BeyondTheClouds/VMPlaceS | e860c01e2d134d23df9f5c920b176a9219ee8783 | f29817aac6de0d11885ff1bd9062c087e0e4ef37 | refs/heads/master | 2021-01-17T03:25:21.792907 | 2020-06-25T11:12:57 | 2020-06-25T11:12:57 | 14,586,877 | 11 | 6 | null | 2020-06-25T11:12:58 | 2013-11-21T12:26:19 | Java | UTF-8 | Python | false | false | 14,872 | py | #!/usr/bin/python
from __future__ import division
from pkg_resources import WorkingSet , DistributionNotFound
working_set = WorkingSet()
import itertools
# Printing all installed modules
#print tuple(working_set)
# Detecting if module is installed
dependency_found = True
try:
dep = working_set.require('Jinja2')
... | [
"jonathan.pastor@me.com"
] | jonathan.pastor@me.com |
1428a143a04dea36c997dcea9eae210a8267879d | ddd18c78b27b9c85629feeab6914fc925aea9099 | /practice19c.py | 084a5e674ea8d90e9b0c68ad3070cbca3f20330d | [] | no_license | harmansehmbi/Project19 | 7e6331050599db2d33f1c20aef5ad13c5d7a17a8 | 6c000d05bbc397132e9fe13a48f89b57b48b70da | refs/heads/master | 2020-06-13T04:38:55.514033 | 2019-06-30T16:28:13 | 2019-06-30T16:28:13 | 194,537,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | import numpy as np
arr1 = np.array([(8, 9), (10, 12), (13, 14)])
print(arr1[0:2, 1])
arr2 = np.array([10, 20, 30])
print(arr2.min())
print(arr2.max())
print(arr2.sum())
arr3 = np.array([(1, 2, 3), (4, 5, 6)])
print(arr3.sum(axis=0))
arr4 = np.array([(4, 9, 16), (11, 13, 15)])
print(np.sqrt(arr4))
print(np.std(arr4)... | [
"51370954+harmansehmbi@users.noreply.github.com"
] | 51370954+harmansehmbi@users.noreply.github.com |
83a7906165e04bf8bb596c05be03851eaf23994e | 8f205d31e8e5555d69e0a7db086a3c93de6d2806 | /kube/task_generation/merge_ccs.py | 0668da5478328e17e92f72b24c014457c97dc7cc | [
"MIT"
] | permissive | torms3/Synaptor | 94e0f04478118399db91d79a8a8b478858fd4138 | 5de74aa61b3d04e88e6bc4c336d543f89d64b9a4 | refs/heads/master | 2021-05-21T19:08:43.625841 | 2020-06-19T23:10:47 | 2020-06-19T23:10:47 | 252,764,824 | 0 | 0 | NOASSERTION | 2020-04-03T15:03:17 | 2020-04-03T15:03:16 | null | UTF-8 | Python | false | false | 600 | py | import argparse
from taskqueue import TaskQueue
import synaptor.cloud.kube.parser as parser
import synaptor.cloud.kube.task_creation as tc
def main(configfilename):
config = parser.parse(configfilename)
task = tc.create_merge_ccs_task(
config["storagestrs"][0], config["szthresh"],
... | [
"nturner.stanford@gmail.com"
] | nturner.stanford@gmail.com |
1d6a28ceea23dbf9a4e2bb8dce039f191a0c9674 | 9a3c74efd991dd6923614f69b9a71e6309b54a01 | /eight_mile/pytorch/serialize.py | 6a3103bf7eeaa4953fb2a2d9b7a580a1d638f408 | [
"Apache-2.0"
] | permissive | wenshuoliu/mead-layers | 45e3b8bdd992971118f07199d2558b3433ad39bf | 1aecce4f7c90987f5fdb8c9112b07b7e846749d8 | refs/heads/master | 2020-12-22T14:02:59.059548 | 2020-01-28T15:26:48 | 2020-01-28T15:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,890 | py | import torch
import torch.nn as nn
import numpy as np
from typing import Dict
from eight_mile.pytorch.layers import Dense, TransformerEncoderStack, TransformerEncoder, MultiHeadedAttention
def to_weight_array(pytorch_layer: nn.Module, name: str) -> Dict:
"""Convert a {`LayerNorm`, `Linear`, `layers.Dense`} to `wei... | [
"dpressel@gmail.com"
] | dpressel@gmail.com |
1d2c136da5504548f741805d0f6272c10e4c9556 | 1707d1199f8110d7cd579f4ee323d8f21f9f682e | /learner/wekaMethods/featuresMethods/analyzeCommsMethods.py | 23cac16c1f8184a91702414d0a47c0010e5033a4 | [] | no_license | BGU-AiDnD/Debugger | 132a10490571c5605ea5ac0d756e40b6bb346684 | e08f84f1b28cc6f864fdfd83a37f3e9ecfe90d9d | refs/heads/master | 2023-02-25T10:33:38.262522 | 2020-09-09T02:59:27 | 2020-09-09T02:59:27 | 37,018,600 | 5 | 1 | null | 2021-02-03T19:27:38 | 2015-06-07T14:01:29 | Java | UTF-8 | Python | false | false | 57,510 | py | __author__ = 'amir'
from wekaMethods.articles import *
import wekaMethods.articles
import featureExtractorBase
best_features=[1,2,4,7,8,10,11,14,15,16,18,19,21,22,24,25,28,42,43,44,46,49,56,60,65,76,79,80,81,83,84,86,87,88,90,91,93,94,95,96,97,98,100,101,102,104,105,107,108,109,111,112,114,115,116,118,119,121,122,123... | [
"amir9979@gmail.com"
] | amir9979@gmail.com |
ff086b9a60930c6eb551f1675b66986afed25460 | 8602a87e12fe19b28c2e85cfae0bbde27a62855d | /ingenico/connect/sdk/domain/errors/definitions/api_error.py | 378aba23c91ae36081a6e7f6901cce6727671a09 | [
"MIT"
] | permissive | king1212/connect-sdk-python2 | 6a687de7967a411fa802477069c7fc7079d059c2 | 203982559c5c10e3dbbb9dfc71123c269908ed26 | refs/heads/master | 2021-07-04T03:10:55.061416 | 2017-09-27T09:29:49 | 2017-09-27T09:29:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,311 | py | # -*- coding: utf-8 -*-
#
# This class was auto-generated from the API references found at
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
#
from ingenico.connect.sdk.data_object import DataObject
class APIError(DataObject):
__category = None
__code = None
__http_status_code = None
__id = N... | [
"jenkins@isaac.nl"
] | jenkins@isaac.nl |
416bdd664c7972904f6b0112f4f041b2123c7141 | 057a85e94d7a284cda900e6c89bd3da6402206e8 | /tools.py | fcc935962c53518d1ff2d416c1eec10895975b9e | [
"MIT"
] | permissive | nusratsharmin/AFQ-notebooks | 9eb5662dc46a1b67d379f5a6227667272f195184 | de4e2a9fce6f7f3134a2d362e55d3c6ba44fd3a0 | refs/heads/master | 2020-12-31T01:23:24.088489 | 2015-08-05T19:24:54 | 2015-08-05T19:24:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | py | import numpy as np
from dipy.align.metrics import CCMetric, EMMetric, SSDMetric
from dipy.align.imwarp import SymmetricDiffeomorphicRegistration
metric_dict = {'CC': CCMetric,
'EM': EMMetric,
'SSD': SSDMetric}
def syn_registration(moving, static, moving_grid2world=None, static_grid2world... | [
"arokem@gmail.com"
] | arokem@gmail.com |
d54a4e0f7123484c988ddc76b0f8a1703075ca2b | 9923e30eb99716bfc179ba2bb789dcddc28f45e6 | /swagger-codegen/python/samsara/models/dispatch_route.py | 4fba4ac645d6492cfd20ebf06f44ddd01d3eeb74 | [] | no_license | silverspace/samsara-sdks | cefcd61458ed3c3753ac5e6bf767229dd8df9485 | c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa | refs/heads/master | 2020-04-25T13:16:59.137551 | 2019-03-01T05:49:05 | 2019-03-01T05:49:05 | 172,804,041 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,391 | py | # coding: utf-8
"""
Samsara API
# Introduction Samsara provides API endpoints for interacting with Samsara Cloud, so that you can build powerful applications and custom solutions with sensor data. Samsara has endpoints available to track and analyze sensors, vehicles, and entire fleets. The Samsara Cloud AP... | [
"greg@samsara.com"
] | greg@samsara.com |
200340de9c7d3d668b43028bd73db5ca64648433 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03282/s933456835.py | 554270dfd4662d9ae4de392ee9c913edc15fbb2a | [] | 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 | 153 | py | s=input()
k=int(input())
c=0
for i in range(len(s)):
if s[i]=="1":
c+=1
else:
break
if k<=c:
print("1")
else:
print(s[c]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
dd8c33559a0eae9643ac31ea199756615170cc53 | 985242058ea4cdc7f42dde4ff60ec96e19669ef0 | /aleph/analyze/polyglot_entity.py | 2547d9b2a9c6344486e03e65477aa4a67c7c4c1f | [
"MIT"
] | permissive | KarrieK/aleph | 4f4eff8892e145f1b0ad085bca45a19382854150 | d8c1895339c1bfd3ad265237feb411cef9dd114b | refs/heads/master | 2021-04-28T07:34:03.385829 | 2018-02-16T16:41:56 | 2018-02-16T16:41:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | from __future__ import absolute_import
import regex
import logging
from polyglot.text import Text
from polyglot.downloader import downloader
from normality import collapse_spaces
from aleph import settings
from aleph.analyze.analyzer import Analyzer
from aleph.model import Document, DocumentTag, DocumentTagCollector
... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
3cd48988c3167fcab3f06686d166211a8933beca | 9791c7cd589c5c53aa7e1dbf929d69ba99f7c526 | /myapp/migrations/0001_initial.py | ac89857986b89af875fefb96ade4f759a637aabe | [] | no_license | okprogrammer/Calener-App | 3d717ff9eac3e8ddebd6f0b5e95caf513e3fa429 | a15e71eebed670b7203960e86f88e8da92dca1b7 | refs/heads/master | 2020-03-06T23:44:54.761954 | 2018-03-30T12:34:59 | 2018-03-30T12:34:59 | 127,140,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # Generated by Django 2.0.2 on 2018-03-28 17:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Entry',
fields=[
('id', models.AutoField(au... | [
"omk7912@gmail.com"
] | omk7912@gmail.com |
ac28828be9a051149f7f7ae8b2cefe16d974f496 | a37c48267bfb8476476dad7219c4e3329f9e2991 | /Packs/qualys/Scripts/QualysCreateIncidentFromReport/QualysCreateIncidentFromReport.py | c2f994a169a3651f86f8693d07c61805e6dc09f8 | [
"MIT"
] | permissive | adambaumeister/content | 611ce9fba412a5eb28fbefa8a43282e98d3f9327 | 01b57f8c658c2faed047313d3034e8052ffa83ce | refs/heads/master | 2023-03-09T18:16:18.623380 | 2022-07-13T18:11:09 | 2022-07-13T18:11:09 | 274,290,989 | 2 | 0 | MIT | 2023-03-06T12:22:17 | 2020-06-23T02:36:53 | Python | UTF-8 | Python | false | false | 5,183 | py | import json
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
def get_asset_id_for_ip(ip):
resp = demisto.executeCommand("qualys-host-list", {"ips": ip})
if isError(resp[0]):
demisto.results(resp)
sys.exit(0)
if isinstance(resp_dict := resp[0], di... | [
"noreply@github.com"
] | adambaumeister.noreply@github.com |
5cf98dc217e3b3653ec425bd9e14754deebe825a | 85310a2bc538af472dc5a03dcdbfed507a5784ff | /face_recog.py | 5030f9642cfe64f84be6ff7fa9249e200056e5da | [] | no_license | hieubkvn123/FaceRecognitionPyTorch | 8ed864405dc82e05406d67e846b4c08e0eb5c5ec | ee04d4f1070734fb9018337faecf9ba6c2d5441a | refs/heads/master | 2022-10-24T00:49:00.233493 | 2020-06-19T10:52:08 | 2020-06-19T10:52:08 | 267,055,644 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,837 | py | import os
import cv2
import torch
import pickle
import time
import imutils
import numpy as np
import face_recognition
import matplotlib.pyplot as plt
### All the custom modules ###
from triplet_net import TripletLossNet
from arcface_net import ArcFaceNet
from face_align import align
from scipy.spatial.distance imp... | [
"hieubkvn123@gmail.com"
] | hieubkvn123@gmail.com |
3c1a833c4193975a401497e8419894b0aee1bd54 | dabb4e35a66197188fec4bd5ecf4954dce85c695 | /coloredlogs/tests.py | a42efdfa570b39d43e2fca7ee68abd28895d8aeb | [
"MIT"
] | permissive | mastak/python-coloredlogs | 53f1415e95aa2fa8b4b3f8c3e5c15aca93497be9 | 399af2a2199629c613b64c92d9d6c2462973ff86 | refs/heads/master | 2021-04-27T16:55:10.720537 | 2018-01-17T19:00:43 | 2018-01-17T19:00:43 | 122,312,246 | 0 | 0 | MIT | 2018-02-21T08:51:25 | 2018-02-21T08:51:24 | null | UTF-8 | Python | false | false | 26,678 | py | # Automated tests for the `coloredlogs' package.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: January 17, 2018
# URL: https://coloredlogs.readthedocs.io
"""Automated tests for the `coloredlogs` package."""
# Standard library modules.
import contextlib
import imp
import logging
import logging.handle... | [
"peter@peterodding.com"
] | peter@peterodding.com |
c235d6570542073a628b108ff849420cd261fbff | 19375a18719e44eee7c596e72ef8915d3fcbff92 | /day02_spider/07_pymongo.py | 5f075d08ba8928c549c17868f7535f1d3477baa2 | [] | no_license | J-shan0903/AID1912 | 6c617fa26751c31ff05a63050a320122e3ca044e | 0797f3d8ef0e96b8eb6908dffbec8193c9614973 | refs/heads/master | 2021-03-23T12:21:32.480026 | 2020-05-23T08:36:21 | 2020-05-23T08:36:21 | 247,452,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import pymongo
conn = pymongo.MongoClient('localhost', 27017)
db = conn['maoyandb']
myset = db['maoyanset']
myset.insert_one({'name': '战狼', 'star': '123', 'time': '2017-2-15'})
| [
"369618935@qq.com"
] | 369618935@qq.com |
fd159e49eeca3c25d2f16637e57bd79297ec1b34 | 63428f4bec80630523355f8a05bcbdbb1cf31dbf | /lambda/pseudotest/upload_results.py | de10c76d32ed2589bc3cb081079f381d85a27488 | [] | no_license | pniedzwiedzinski/pseudotest | fe314222619ebae55467acf4def14fa5619ad2eb | 011800879cac43ded439370fa9ed8539f8e98ae5 | refs/heads/master | 2021-07-05T09:30:36.203945 | 2019-12-02T10:03:19 | 2019-12-02T10:03:19 | 182,046,647 | 2 | 2 | null | 2020-10-01T07:08:10 | 2019-04-18T08:19:19 | Python | UTF-8 | Python | false | false | 250 | py | import os
import pymysql
from .db import execute
def upload_results(results, job_id):
execute(
"UPDATE pseudo_test_score SET score = %s WHERE file_id = %s",
(pymysql.escape_string(results), pymysql.escape_string(job_id)),
)
| [
"pniedzwiedzinski19@gmail.com"
] | pniedzwiedzinski19@gmail.com |
a6918cdd6386b5e72a785cdeaabed8970021c91c | 15240e0e187788f1114cac98c534004ab4793cbf | /influxdb_client/domain/telegraf_plugin_output_file_config_files.py | 38f742691f37962daf3966ab2ea0118da675af41 | [
"MIT"
] | permissive | semyont/influxdb-client-python | dddb6a1309fd424c9b1e0bec7c67a442cfcfe0b5 | 7b685fda2030b22697b6096cc3161fbbc01e7bee | refs/heads/master | 2020-09-19T18:39:52.132739 | 2019-11-27T07:11:23 | 2019-11-27T07:11:23 | 224,266,106 | 2 | 0 | MIT | 2019-11-26T19:06:17 | 2019-11-26T19:06:09 | null | UTF-8 | Python | false | false | 3,738 | py | # coding: utf-8
"""
Influx API Service
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Tele... | [
"robert.hajek@gmail.com"
] | robert.hajek@gmail.com |
78ceabab5d75b42b5c63200eb8a66c9e6df33609 | da29f1f5b4459fbfec968bb694bedb9586f87b14 | /new_algs/Graph+algorithms/Hungarian+algorithm/yolo_matt.py | e5f0db03c5a4f92b6fa9d352d25e8307e7d01c18 | [] | no_license | coolsnake/JupyterNotebook | 547806a45a663f090f313dc3e70f779ad9b213c0 | 20d8df6172906337f81583dabb841d66b8f31857 | refs/heads/master | 2023-01-13T18:55:38.615312 | 2020-11-17T22:55:12 | 2020-11-17T22:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,575 | py | # -*- coding: utf-8 -*-
"""
Class definition of YOLO_v3 style detection model on image and video
"""
import colorsys
import os
from timeit import default_timer as timer
import numpy as np
from keras import backend as K
from keras.models import load_model
from keras.layers import Input
from PIL import Image, ImageFont... | [
"chenqh@uci.edu"
] | chenqh@uci.edu |
8983621f1e158a63c0ca20b5f9d5fc10719a86ec | 960b3a17a4011264a001304e64bfb76d669b8ac5 | /mstrio/users_and_groups/contact_group.py | cb886bee18e3b5e15944b01baea86951680e83c6 | [
"Apache-2.0"
] | permissive | MicroStrategy/mstrio-py | 012d55df782a56dab3a32e0217b9cbfd0b59b8dd | c6cea33b15bcd876ded4de25138b3f5e5165cd6d | refs/heads/master | 2023-08-08T17:12:07.714614 | 2023-08-03T12:30:11 | 2023-08-03T12:30:11 | 138,627,591 | 84 | 60 | Apache-2.0 | 2023-07-31T06:43:33 | 2018-06-25T17:23:55 | Python | UTF-8 | Python | false | false | 12,144 | py | # NOSONAR
import logging
from collections import defaultdict
from collections.abc import Iterable
from enum import auto
from typing import TYPE_CHECKING, Union
from mstrio import config
from mstrio.api import contact_groups
from mstrio.users_and_groups.user import User
from mstrio.utils.entity import DeleteMixin, Enti... | [
"noreply@github.com"
] | MicroStrategy.noreply@github.com |
b484145d63d254f278fb2c36cbab484831c7e745 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02984/s206130983.py | f20b1996e5c69cf6026085eef48328162e7f21d4 | [] | 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 | 186 | py | N = int(input())
A = list(map(int, input().split()))
now = sum(A)
for i in range(N//2):
now -= 2*A[2*i+1]
for a in A:
print(now, end=' ')
X = 2*a - now
now = X
print()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9db46716b6f44e4912f2a47e91a80b23070e5d7f | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201019102708.py | 61f5e48858ce8dbe0af570ab942e18fa784b868b | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from wagtail.core import blocks
class TitleBlock(blocks.StructBlock):
text = blocks.CharBlock(
required = True,
elp_text='Tekst do wyświetlenia',
)
class Meta:
template = 'streams/title_block.html'
icon = 'edycja'
label = 'Tytuł'
help_text = 'Wyśrodkowany tek... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
b2792f1e2803d83a7bd248ee8ea357b94ed0badb | 8c6816435093cb8e9e45593d3ffdd67028a011b6 | /Tree/is_valid_bst.py | 7a38d7d17976d7e01ce6e8b7a4be9e91ad0e5208 | [] | no_license | Keeady/daily-coding-challenge | 6ee74a5fe639a1f5b4753dd4848d0696bef15c28 | 31eebbf4c1d0eb88a00f71bd5741adf5e07d0e94 | refs/heads/master | 2020-03-27T07:58:05.713290 | 2019-03-08T15:03:05 | 2019-03-08T15:03:05 | 146,210,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | import sys
class Solution:
def isValidBST(self, root):
if not root:
return True
return self.isValidSubTree(root, -sys.maxsize -1, sys.maxsize)
def isValidSubTree(self, root, min, max):
if root is None:
return True
if root.val > min and root.val < max:
... | [
"cbevavy@datto.com"
] | cbevavy@datto.com |
c6dfc35a86ffd65768a932003f5e30de191624e6 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /YDgtdP69Mn9pC73xN_7.py | 204a19d7df1cb840639dc9daeacb8f81fa7f26df | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | """
This challenge is based on the game Minesweeper.
Create a function that takes a grid of `#` and `-`, where each hash (#)
represents a mine and each dash (-) represents a mine-free spot. Return a list
where each dash is replaced by a digit indicating the number of mines
immediately adjacent to the spot (horizont... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ede9675c9b6afbc4a54e4081f519e4ef3376ae81 | e65d16ea1e8d412bac75a809be6d390126bdf528 | /tests/components/remote/test_device_action.py | d652f4d869d060039e222b8a6d3d595b5bec83bd | [
"Apache-2.0"
] | permissive | syssi/home-assistant | 6347d57866cb16ab9d4499ad38e2be6f0399077f | fd43687833741b21221769d46b4d1ecef8a94711 | refs/heads/dev | 2023-08-17T09:31:52.680518 | 2023-06-11T14:22:12 | 2023-06-11T14:22:12 | 97,874,495 | 6 | 16 | Apache-2.0 | 2023-09-13T06:31:21 | 2017-07-20T20:12:37 | Python | UTF-8 | Python | false | false | 6,168 | py | """The test for remote device automation."""
import pytest
import homeassistant.components.automation as automation
from homeassistant.components.device_automation import DeviceAutomationType
from homeassistant.components.remote import DOMAIN
from homeassistant.const import CONF_PLATFORM, STATE_OFF, STATE_ON, EntityCa... | [
"noreply@github.com"
] | syssi.noreply@github.com |
b0e061e86c4f7c24b1e4804f54d62f09523bc0d8 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/tflearn_tflearn/tflearn-master/tflearn/layers/recurrent.py | 0613c164951d1ce45a6a8108e4fd449726fa5949 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 32,464 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import logging
import numpy as np
import tensorflow as tf
from tensorflow.python.ops import array_ops
from tensorflow.contrib.rnn.python.ops.core_rnn import static_rnn as _rnn, \
static_bidirectional_rnn as _brnn
from tensorfl... | [
"659338505@qq.com"
] | 659338505@qq.com |
3a15a5b18a062442591358d0a5eb5d0c26f7290e | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /MojpPTZYQyN5L2i4a_5.py | 82668008b83f18c70018cafee43b7e375d184f1a | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | """
You work in a toy car workshop, and your job is to build toy cars from a
collection of parts. Each toy car needs 4 wheels, 1 car body, and 2 figures of
people to be placed inside. Given the total number of wheels, car bodies and
figures available, how many _complete_ toy cars can you make?
### Examples
car... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
97166a441c2e8850d56c5fa2603f79d4a7e7062f | b5ce03fad3c14b07e8ded6258716eb63a8ba1525 | /.history/app_20210909053206.py | e5a44b75c3d4447f9f9c949de72114677c200f2d | [] | no_license | saraalmuraytib/FSND-Capstone-Project | 0d70058a080d3d91004e7d8bfbf38dfd3f9092fc | 4a18217c7aa83899cc3f134c6caa710a2521a8fd | refs/heads/main | 2023-07-28T01:20:03.838641 | 2021-09-10T01:33:26 | 2021-09-10T01:33:26 | 402,197,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,972 | py | '''
* General Specifications *
** Models will include at least…
✓ Two classes with primary keys at at least two attributes each
✓ [Optional but encouraged] One-to-many or many-to-many relationships between classes
** Endpoints will include at least…
✓ Two GET requests
✓ One POST request
✓ One PATCH request... | [
"sara.almuraytib@gmail.com"
] | sara.almuraytib@gmail.com |
cdd263ea94ba391933c5aa44be7a4aad74ca9bdb | f854751c12afc48401ddcf0590ea70c72a2b7c58 | /Canny_findContours.py | a1faaabc01f51f5dea466c49023c70c3d4fcf9d0 | [] | no_license | mu-777/image_processing_tests | 4326ebe3b321f9b900a02b63d0a3189659439244 | 2b6ee72e10065fd2dfb1b7e430bf5ccfc26a0c95 | refs/heads/master | 2021-01-17T10:21:09.473142 | 2016-03-18T13:00:41 | 2016-03-18T13:00:41 | 42,449,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,260 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# アニメ顔分類器
# https://github.com/nagadomi/lbpcascade_animeface
# 動画で検出サンプル
# http://www.takunoko.com/blog/python%E3%81%A7%E9%81%8A%E3%82%93%E3%81%A7%E3%81%BF%E3%82%8B-part1-opencv%E3%81%A7%E9%A1%94%E8%AA%8D%E8%AD%98/
import cv2
import numpy as np
import time
# カスケード分類器の特徴... | [
"ryosuke.murata.7@gmail.com"
] | ryosuke.murata.7@gmail.com |
ddfb237f379f7f85a5e2b0103a72f256ceb013c0 | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/s5_getparser_20210210014110.py | 37d12714c7c733a9146fea52dd6026540c7acd3a | [] | no_license | preethanpa/ssoemprep | 76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f | ce37127845253c768d01aeae85e5d0d1ade64516 | refs/heads/main | 2023-03-09T00:15:55.130818 | 2021-02-20T06:54:58 | 2021-02-20T06:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,801 | py | import shutil
from fonduer.parser.preprocessors import html_doc_preprocessor
from sqlalchemy import exc
import pdftotree
import re
from sen_parser_usable import *
from config import config
import json
import os
import posixpath
import http.server
import urllib.request, urllib.parse, urllib.error
import cgi
import sh... | [
"{abhi@third-ray.com}"
] | {abhi@third-ray.com} |
38345091f0f4fc6d048048415eef8af7eff32537 | 914ca4921c114c917267214e0987ebecf30b3510 | /Programming_Practice/Python/Python_Scraping/Scraping_004/open_api_2.py | 0729766be8fd65dbcdf4e6bca7e239c092a0c883 | [] | no_license | BurnFaithful/KW | 52535030ea57f1489a0d108d599b66ffee50a1f4 | 15deb50449b8f902f623f20b97448c0f473a9342 | refs/heads/master | 2022-12-20T16:06:01.827398 | 2020-09-12T08:51:23 | 2020-09-12T08:51:23 | 294,897,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | from urllib.parse import quote
import requests
import bs4
endpoint = "http://apis.data.go.kr/B552657/ErmctInsttInfoInqireService/getParmacyListInfoInqire?"
serviceKey = "xqhT19uqLKmUuUxiUk6By%2FkUkZHlqQfalicqhc3oYnPy4KoA%2FK%2BM8EQVYGOaBBtfRMfqs6SQ1ei%2F8VPZgE6VlA%3D%3D"
Q0 = quote("서울특별시") # 한글 인코딩 메서드
# Q1 = quote(... | [
"burnfaithful@gmail.com"
] | burnfaithful@gmail.com |
b78217f75d6e278638d0e9c281e604eab9e625fd | a8750439f200e4efc11715df797489f30e9828c6 | /LeetCodeContests/93/871_minimum_refill_required.py | 8573ce433e9d77f48451ccfa85747b65c8a1c2b3 | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,408 | py | '''
871. Minimum Number of Refueling Stops
User Accepted: 234
User Tried: 563
Total Accepted: 247
Total Submissions: 1546
Difficulty: Hard
A car travels from a starting position to a destination which is target miles east of the starting position.
Along the way, there are gas stations. Each station[i] represents a gas... | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
95223a9cb75f866ad335207924223e191993dc69 | 71e18daf9e567792a6ce1ae243ba793d1c3527f0 | /ApplicationsAlgo/maze.py | 67d5c62ac216e8e824085d0bc616c55b195917da | [] | no_license | ohjooyeong/python_algorithm | 67b18d92deba3abd94f9e239227acd40788140aa | d63d7087988e61bc72900014b0e72603d0150600 | refs/heads/master | 2020-06-22T18:10:41.613155 | 2020-05-27T13:12:03 | 2020-05-27T13:12:03 | 197,767,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | def solve_maze(g, start, end):
qu = [] # 기억 장소 1: 앞으로 처리해야할 이동 경로를 큐에 저장
done = set() # 기억 장소 2: 이미 큐에 추가한 꼭짓점들을 집합에 기록
qu.append(start)
done.add(start)
while qu: #큐에 처리할 경로가 남아있으면
p = qu.pop(0) # 큐에서 처리 대상을 꺼냄
v = p[-1] # 큐에 저장된 이동 경로의 마지막 문자가 현재 처리해야할 꼭짓점
print('---')
... | [
"brb1111@naver.com"
] | brb1111@naver.com |
e507584e2e9212c610c211af0fbe2ff4b93f932e | 5173c3e3956387a3f2ae8fcf4aed7c7a600dac78 | /Programmers/Programmers_카펫.py | 3db67116d2c77a7a87b7fe9e13797f0a6d27976f | [] | no_license | ma0723/Min_Algorithm | df75f53f6e89b7817d4b52d686effb8236a4ddac | b02d1043008cb32e22daa9d4207b9a45f111d66f | refs/heads/master | 2023-07-25T11:00:15.397093 | 2021-08-30T02:08:05 | 2021-08-30T02:08:05 | 375,613,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | def solution(brown, yellow):
answer = []
# 노란색과 갈색으로 색칠된 격자의 개수
y_lst = []
for i in range(1, yellow+1):
# 1부터 yellow 개수까지
if yellow%i==0:
# 노란색 직사각형 경우의 약수들의 집합 (나누어 떨어지는 경우)
# 24 (1, 24) (2, 12) (3, 8) (4, 6) 등 중복 제거
row = yellow//i
col = i
... | [
"ma0723@naver.com"
] | ma0723@naver.com |
ecdd5dd43ced15b6ba50c76d6d12a296b7c3b2dc | 529e713a78e82de2ae5d44cfb8ef209e0894d72a | /arcade-platformer/arcade_platformer/01_game_skeleton.py | 862af40f1113621b43a6afd046e81429f8a5f7f8 | [
"MIT"
] | permissive | realpython/materials | cd2f548276be2c82f134ca03eadb1cd279e0f26e | d2d62756d3854f54a12a767f2bf9470486c0ceef | refs/heads/master | 2023-09-05T22:12:29.806738 | 2023-08-31T20:56:28 | 2023-08-31T20:56:28 | 132,374,697 | 4,678 | 6,482 | MIT | 2023-09-12T22:22:06 | 2018-05-06T20:46:18 | HTML | UTF-8 | Python | false | false | 1,217 | py | """
Arcade Platformer
Demonstrating the capbilities of arcade in a platformer game
Supporting the Arcade Platformer article on https://realpython.com
All game artwork from www.kenney.nl
Game sounds and tile maps by author
"""
import arcade
class Platformer(arcade.Window):
def __init__(self):
pass
... | [
"jfincher42@gmail.com"
] | jfincher42@gmail.com |
10460745daf408d4f3cb18983ec6bad8fdd4a296 | 88bf6991bc8f291e16b792df729d58d7eeee1b2b | /proteome_tools_data/prep.py | ff3521cb31d81fe8771efab91ef33a15cf6b2e0c | [] | no_license | MatteoLacki/proteome_tools_data | 7ac3c335831911adab116cf6ce0bb08e785e733c | 84101923f95787d1ac48e47101b94b22b3301667 | refs/heads/master | 2020-08-05T02:21:06.805640 | 2019-10-29T12:16:01 | 2019-10-29T12:16:01 | 212,360,930 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,719 | py | """Prepartion of files done on Linux. Execution on Windows."""
from pathlib import Path, PureWindowsPath as PWP
import pandas as pd
import json
import re
pd.set_option('display.max_rows', 4)
pd.set_option('display.max_columns', 100)
pd.set_option('display.max_colwidth', -1)#display whole column without truncation
net... | [
"matteo.lacki@gmail.com"
] | matteo.lacki@gmail.com |
824d7fa924c868bae983b6fa5132365e22b602c5 | 1ecde4178548f331f15717f245e3f657b58b9993 | /yyx_crawler/scrapySchool_England/scrapySchool_England/spiders/UniversityOfSurrey_R.py | c9aa92d5ecee52a7474f655775a5c8c3f24da68f | [] | no_license | gasbarroni8/python_spider | 296dcb7c3fd9dd028423fe5ec0a321d994478b15 | 7935fa462926bc8ea9bf9883bd15265dd0d3e6df | refs/heads/master | 2023-03-26T05:22:59.858422 | 2019-04-15T07:17:56 | 2019-04-15T07:17:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,014 | py | import scrapy
import re
import json
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from scrapySchool_England.clearSpace import clear_space, clear_lianxu_space, clear_space_str
from scrapySchool_England.items import ScrapyschoolEnglandItem1
from scrapySchool_England.getItem ... | [
"1102213456@qq.com"
] | 1102213456@qq.com |
36452b274c24a8d85cfad2937c0a5943990eea13 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/surface/access_context_manager/levels/update.py | f22234640a48085e7e67ec5bc155d8fda74563b6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 2,453 | py | # -*- coding: utf-8 -*- #
# Copyright 2018 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... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
ed024b233a743c82860ea0b7ae492792813afcad | 3b5fcac24cff965124c18f3327a4b105bfaeac1c | /forms/forms/formsApp/urls.py | bd5071c1cd1244e7b79377906135872de6144685 | [] | no_license | Sanil2108/django | ef75e06970982da02d4e65d7e0f689be90d5ec03 | 21e546f6f7d63cc859ea23cec8fb4a15a82541f9 | refs/heads/master | 2021-06-26T01:09:03.533520 | 2020-12-05T19:22:17 | 2020-12-05T19:22:17 | 176,133,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from django.urls import path
from . import views
urlpatterns = [
path('form1/', views.form1, name = 'form1'),
] | [
"sanilkhurana7@gmail.com"
] | sanilkhurana7@gmail.com |
228600e7a43d9390eb83a4bc4a96de585a9e6f59 | a7596165a29e5186bc6c4718e3b6e835939b105d | /desktop/libs/libsolr/src/libsolr/conf.py | dbc65d6d5d35fa9bcc38744608dcae449b9ad21d | [
"Apache-2.0"
] | permissive | lockhart39/HueQualityAndIngestionApp | f0c778665f0fbe699ec30e0df5e9f3ed8a9c3384 | c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c | refs/heads/master | 2021-08-20T00:31:29.481333 | 2017-11-27T19:22:16 | 2017-11-27T19:22:16 | 112,237,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"cloudera@quickstart.cloudera"
] | cloudera@quickstart.cloudera |
c39fd1ca1f556f4ee4250827d5a78b0030d68abf | 6da0547afcecb3444d0b429161e46bc5a38e14ab | /demo_project/urls.py | 5e53e90908206cd1f6045e53f5f990be0f0c1e38 | [] | no_license | rashidhamid139/DjangoCustomAdmin | 53e440071a31d3ab6cff308c404ba89cc40cd6a0 | 3b01f38201754ae1370684cafb58f4005e5c8b35 | refs/heads/master | 2022-06-17T10:15:34.213179 | 2020-05-11T15:12:09 | 2020-05-11T15:12:09 | 261,787,315 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('email/', include('sendemail.urls')),
path('posts/', include('posts.urls')),
path('', include('pages.... | [
"rashidhamid139@gmail.com"
] | rashidhamid139@gmail.com |
171cc337c57713480ffad953a757cb65ff9424ef | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03646/s301674634.py | c91b7b40947c4be6233524eaca5442719d6c84a0 | [] | 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 | 317 | py | import sys
def main():
input = sys.stdin.readline
K=int(input())
N=max(2,min(50,K))
ans=[i+K//N for i in range(N)]
m=K%N
for i in range(m):
for j in range(N):
if i==j: ans[j]+=N
else: ans[j]-=1
print(N)
print(*ans)
if __name__ == '__main__':
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e89f1bc3975c4e316d484945057a258863a59f6e | dd35833bead7de2f2ca7affd985ac0d345b2ab6e | /apps/useroperation/views.py | 57349580d24bee20652e0332cd757dbe46a503ec | [] | no_license | lhsheild/MxShop | df14c11aa7457f304194ff099a35869d83f0d9a7 | 811be4dad55284e737c80ebd4d00c079837393f2 | refs/heads/master | 2020-05-27T16:23:00.578686 | 2019-09-10T08:09:01 | 2019-09-10T08:09:01 | 188,130,934 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,877 | py | from rest_framework.authentication import SessionAuthentication
from rest_framework.mixins import CreateModelMixin, DestroyModelMixin, ListModelMixin, RetrieveModelMixin
from rest_framework.permissions import IsAuthenticated
from rest_framework.viewsets import GenericViewSet, ModelViewSet
from rest_framework_jwt.authen... | [
"lhsheild@yahoo.com"
] | lhsheild@yahoo.com |
56885001d9dcf999407005b8ba85693c10b09566 | bd0dc9a8d24863f7353c4124ce7e3c6b25e94910 | /test/test_sampling.py | e91fe37a33293f41c5d7049f2544d29df6d104b3 | [
"BSD-3-Clause"
] | permissive | qbektrix/profiling | 6cdc7a07a10955e993988217a720509bd4b961c4 | 89d1bc572c2502e02aeb822134453fd8d228e526 | refs/heads/master | 2021-01-21T00:53:25.880636 | 2015-08-26T15:00:39 | 2015-08-26T15:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | # -*- coding: utf-8 -*-
from __future__ import division
import sys
import pytest
from profiling.sampling import SamplingProfiler
from profiling.sampling.samplers import ItimerSampler, TracingSampler
from utils import find_stats, spin
def spin_100ms():
spin(0.1)
def spin_500ms():
spin(0.5)
def _test_samp... | [
"sub@subl.ee"
] | sub@subl.ee |
0b7bab2ef4cad9a4121b6af03e00f73434566b2c | 69be26f4fd44ed3bac1c9dd0941e435b2b2728af | /backend/products/urls.py | b93ad9e8922f0977eae8878c66380ab40a41d404 | [] | no_license | mahidulmoon/djreact-e-commerce | 0078598ab2327e4ef5b992c1fd8f202aca4c705e | 0fb7d50b408710d90af43db9326d9fff6b03804f | refs/heads/master | 2023-02-15T10:55:14.830589 | 2020-05-20T16:45:27 | 2020-05-20T16:45:27 | 265,608,114 | 1 | 0 | null | 2021-01-06T02:55:27 | 2020-05-20T15:28:50 | JavaScript | UTF-8 | Python | false | false | 293 | py | from django.urls import path,include
from rest_framework import routers
from .views import ShirtViewset,MobileViewset
router = routers.DefaultRouter()
router.register('shirtlist',ShirtViewset)
router.register('mobilelist',MobileViewset)
urlpatterns = [
path('',include(router.urls)),
]
| [
"mahidulmoon@gmail.com"
] | mahidulmoon@gmail.com |
300d36bfc3dda2289fcb3e130725c170a3571471 | babe7369133362ba58d0fa12e2b5b7e5535cc78a | /venv/bin/django-admin.py | a189e715b9c5bed3d2c43dc06505ebd3b9d33938 | [] | no_license | bradykim7/blog | 4391c7762997f41e750aa6929fb55cf232be1f3e | 585ce3af28b5afdc5b137b956c4143e523ce36bd | refs/heads/main | 2023-04-08T05:18:59.683323 | 2021-04-12T07:31:11 | 2021-04-12T07:31:11 | 296,575,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | #!/Users/mskim/study/pythonWork/config/venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"bradykim777@gmail.com"
] | bradykim777@gmail.com |
2c6e7507e4d055e36773baca642ec3c3dab8cc84 | 5a4d5ee624b375ece06fda1467afe18beb69c14b | /Algorithm/BOJ/12865.knapsack.py | 2825339abbe9002cecb181cc88098d9982880547 | [] | no_license | Knightofcydonia51/TIL | cd10dab949659bc827118ee42b25d926336dce23 | 78d7e8617f4abed9932a557c12e68bd950f8230d | refs/heads/master | 2022-12-26T00:10:06.262200 | 2022-05-26T01:12:32 | 2022-05-26T01:12:32 | 195,938,010 | 0 | 0 | null | 2022-12-16T01:03:09 | 2019-07-09T05:22:49 | Python | UTF-8 | Python | false | false | 549 | py | import sys
sys.stdin=open('12865.knapsack.txt')
N,K=map(int,input().split())
stuffs=[list(map(int,input().split())) for x in range(N)]
dp=[[0 for x in range(K+1)]for y in range(N+1)]
# N : 물건 개수 K : 배낭 크기
for k in range(1,N+1):
for j in range(K+1):
# j가 k번째 물건의 무게와 같아지기 시작할 때부터 끝까지
weight,value... | [
"leavingwill@gmail.com"
] | leavingwill@gmail.com |
f8191ca72ddf845194adef5e0ffa2088accb0580 | a0784b1a66a6c1a89ee8a75e32cd48d2c168931b | /extras/tools/rst_tokens.py | 9c3614127a376786a554d7277a8ff3cbca89df9c | [
"MIT"
] | permissive | cltrudeau/purdy | ebe5d8b556dadc0a4eb04018826c066b83617f71 | 4ff2d5b33771266d46260ee9ba6503bb4895ab2f | refs/heads/master | 2023-07-08T08:23:08.409053 | 2023-06-29T21:37:29 | 2023-06-29T21:37:29 | 210,162,520 | 10 | 3 | MIT | 2021-03-10T21:55:26 | 2019-09-22T14:40:17 | Python | UTF-8 | Python | false | false | 645 | py | #!/usr/bin/env python
import argparse
from pygments.lexers.markup import RstLexer
# =============================================================================
parser = argparse.ArgumentParser(description=('Prints out the tokens '
'generated by pygments.lexers.markup.RstLexer'))
parser.add_argument('files', ... | [
"ctrudeau@arsensa.com"
] | ctrudeau@arsensa.com |
a30101b7f38ba1fddd661a493cdcfae8287a25d6 | b6bcaae5169cf20a84edafae98ba649dab6fc67c | /crowdsourcing/migrations/0034_auto_20150817_2049.py | b473f2c71a406fed6d27fb1b2fe3e7e97180cfcc | [
"MIT"
] | permissive | shriyanka/daemo-forum | b7eb84a46799d8c6bcb29a4f5c9996a3d2f40351 | 58c555f69208beedbb0c09f7b7d1e32ab741b2c5 | refs/heads/master | 2023-01-12T05:13:48.804930 | 2015-09-20T01:52:29 | 2015-09-20T01:52:29 | 40,193,653 | 1 | 0 | MIT | 2022-12-26T19:49:24 | 2015-08-04T15:42:57 | Python | UTF-8 | Python | false | false | 409 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('crowdsourcing', '0033_templateitem_position'),
]
operations = [
migrations.AlterField(
model_name='templateitem'... | [
"vnarwal95@gmail.com"
] | vnarwal95@gmail.com |
0e39f0a5b1327cea53f1645eb0d644c1a1759991 | 64eb1cfb19e01c629c3ef7fc40fe4dd4dda078ff | /pyunitgrading/testrunner.py | 3da1d1b15800f8a8b6123cde32e0ee8209a01f7d | [
"BSD-3-Clause"
] | permissive | stevecassidy/pyunitgrading | 2406942d6fb851a5576da0155cac7410687f5ff4 | 183677f89f385201dd54959b4bc84a6236cee59e | refs/heads/master | 2023-03-15T17:21:13.564061 | 2022-03-03T23:38:03 | 2022-03-03T23:38:03 | 32,105,841 | 0 | 1 | BSD-3-Clause | 2023-03-14T01:00:56 | 2015-03-12T22:16:10 | Python | UTF-8 | Python | false | false | 7,487 | py | """
run unit tests for a set of student submissions downloaded from iLearn (moodle)
"""
import unittest
import os
import traceback
import sys
import importlib
import imp
import multiprocessing
import re
import shutil
import csv
if sys.version_info < (3,0):
from ConfigParser import ConfigParser
else:
from co... | [
"steve.cassidy@mq.edu.au"
] | steve.cassidy@mq.edu.au |
f7729591d5635a1da2b4fe884e44539a6aa15cd9 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /FEK7892zgj4nPJvkE_4.py | 6ec575bba1998ca7103a7d9ed80a1478a9fb8052 | [] | 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 | 717 | py |
def primes2(n):
""" Input n>=6, Returns a list of primes, 2 <= p < n """
n, correction = n-n%6+6, 2-(n%6>1)
sieve = [True] * (n//3)
for i in range(1,int(n**0.5)//3+1):
if sieve[i]:
k=3*i+1|1
sieve[ k*k//3 ::2*k] = [False] * ((n//6-k*k//6-1)//k+1)
sieve[k*(k-2*(i&... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
276f391bee58142fcfb697ca4d76631818bcd5f4 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-roma/huaweicloudsdkroma/v2/model/list_topics_response.py | 8df5bc3f28136681613fcee4eb2ec78edaee20f2 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,583 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListTopicsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the valu... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
27356cd1fbc4682db48ec7a2a95c16ce4ee088bd | b9a6440766ac6d09cbe5bcb0dd9ec035e79b68de | /0x05-python-exceptions/5-raise_exception.py | ca2fd4d2af3f9a6ae2a66b6c2664afe383b8d389 | [] | no_license | zulsb/holbertonschool-higher_level_programming | aa684ce2bad9f583dd54224e7cb1d60d2189b229 | 0a23d2ffc4ec5810213b6fcd82732f221c97a553 | refs/heads/master | 2021-06-25T15:16:48.849508 | 2021-05-23T00:07:13 | 2021-05-23T00:07:13 | 226,905,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | #!/usr/bin/python3
def raise_exception():
r = "lo" + 26
return r
| [
"zulsb2093@gmail.com"
] | zulsb2093@gmail.com |
2146eb5e6ceca20a4c1d95187a11b0f63525e355 | 9e7ecc7fa214ad154a17fad249a47b52b26b65e3 | /docs/conf.py | 7013d49eb0156cd3195ccb76dbc27aa263895163 | [
"BSD-3-Clause"
] | permissive | PythonicNinja/downloader-amazon-cloud-drive | ca869d3e548113e27d77f909c6a78b3e13250ad0 | 0dbe967e61ddf52f324242bf79c4e3d54cbdc3a2 | refs/heads/master | 2020-05-17T18:02:04.845974 | 2015-08-08T16:25:51 | 2015-08-08T16:25:51 | 39,800,748 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,681 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# downloader-amazon-cloud-drive documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are... | [
"vojtek.nowak@gmail.com"
] | vojtek.nowak@gmail.com |
a2d04d53f2ed1214f12315065171a637a70f1949 | 841c0df958129bef4ec456630203992a143c7dc7 | /src/15/15726.py | ea66bee86e5bafd68fe9975425375b2326cc0ab2 | [
"MIT"
] | permissive | xCrypt0r/Baekjoon | da404d3e2385c3278a1acd33ae175c2c1eb82e5e | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | refs/heads/master | 2022-12-25T18:36:35.344896 | 2021-11-22T20:01:41 | 2021-11-22T20:01:41 | 287,291,199 | 16 | 25 | MIT | 2022-12-13T05:03:49 | 2020-08-13T13:42:32 | C++ | UTF-8 | Python | false | false | 291 | py | """
15726. 이칙연산
작성자: xCrypt0r
언어: Python 3
사용 메모리: 29,380 KB
소요 시간: 60 ms
해결 날짜: 2020년 9월 19일
"""
def main():
A, B, C = map(int, input().split())
print(int(A * B / C if B > C else A / B * C))
if __name__ == '__main__':
main() | [
"fireintheholl@naver.com"
] | fireintheholl@naver.com |
b4eedfabafacd95da1f202e2227f0a1c1511d5b0 | d8e662acf8aa90b5a76351712dfcb405bfebc01a | /webtelnet/django_webtelnet/tools/telnet.py | d45fb8934cda5ac1bca1438f8426ee2b5d2edc79 | [
"MIT"
] | permissive | crazyinstall/django-webtelnet | c86f35d6f22c7f06c2fad378907da0444b3f9fb6 | 840572c14792109025bf2a17bc481ae58b06b29e | refs/heads/master | 2023-05-26T06:20:11.033401 | 2019-07-30T08:40:42 | 2019-07-30T08:40:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,198 | py | import telnetlib
from threading import Thread
import json
import time
import traceback
class Telnet:
"""
由于 telnetlib 库的原因,终端无法显示颜色以及设置终端大小
"""
def __init__(self, websocker, message):
self.websocker = websocker
self.message = message
self.cmd = ''
self.res = ''
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
6d8fc1aa3874d6519fdfe7a3ce8bc07ba45332d9 | 7ee4e7e48da5390839fd91f561637267bc65c731 | /examples/jupyter/merge.py | 764fa19fd8b7942c1b4f21f310bb6d0a9ac975ce | [
"Apache-2.0"
] | permissive | OliverEvans96/python-pachyderm | f82239d230e2346a677841c7e94079c7b4dabcbd | 8a3755402b0e32048c89315c3e7754cf9836d310 | refs/heads/master | 2020-07-19T04:10:47.168478 | 2019-08-08T21:23:27 | 2019-08-08T21:23:27 | 206,371,596 | 0 | 0 | Apache-2.0 | 2019-09-04T17:09:57 | 2019-09-04T17:09:57 | null | UTF-8 | Python | false | false | 1,148 | py | import os
import csv
import json
import datetime
PRICE = 5
def main():
try:
weather_filenames = os.listdir("/pfs/weather")
except:
weather_filenames = []
with open("/pfs/out/data.csv", "w") as out_file:
writer = csv.writer(out_file)
for weather_filename in weather_filenam... | [
"simonson@gmail.com"
] | simonson@gmail.com |
69d7f955c39a3df010c6b0722c30cd0b852e3a78 | 230633f33aaf722b1ece605a81ee566e1060fa3a | /textattack/models/wrappers/pytorch_model_wrapper.py | e3d9bcd7e5b5ce7880a2f46e8bd9ef8d633497c5 | [
"MIT"
] | permissive | ashwani-bhat/TextAttack | bc9a428a68f0894db7d6404e91adf8e2891055c0 | 9f5c0794b95779f11bf2a120642db00da2bc4928 | refs/heads/master | 2022-12-08T17:09:31.272779 | 2020-08-04T16:35:57 | 2020-08-04T16:35:57 | 284,734,102 | 0 | 0 | MIT | 2020-08-03T15:17:18 | 2020-08-03T15:17:17 | null | UTF-8 | Python | false | false | 1,111 | py | import torch
import textattack
from .model_wrapper import ModelWrapper
class PyTorchModelWrapper(ModelWrapper):
"""Loads a PyTorch model (`nn.Module`) and tokenizer."""
def __init__(self, model, tokenizer, batch_size=32):
if not isinstance(model, torch.nn.Module):
raise TypeError(
... | [
"jxmorris12@gmail.com"
] | jxmorris12@gmail.com |
d02dee9370662c42f3808914bfe276ed8b71b720 | 733f1b8e8069ee11e4f4d56e57c8fdc4c901d080 | /python/qa_pdu_round_robin.py | 1541e08ed6ff97e53c5bf1abf1a9727c589646f0 | [] | no_license | arirubinstein/gr-iridium | 3bbe8858968a4fb872a7da8abf621ce72a595fd1 | 3f7079bdf688f70acb43d12f049a405262982d78 | refs/heads/master | 2021-01-21T01:43:16.111168 | 2016-09-14T06:16:32 | 2016-09-14T06:16:32 | 68,176,992 | 2 | 0 | null | 2016-09-14T05:45:37 | 2016-09-14T05:45:37 | null | UTF-8 | Python | false | false | 1,241 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016 Free Software Foundation, Inc.
#
# This 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, or (at your option)
# any later vers... | [
"schneider@blinkenlichts.net"
] | schneider@blinkenlichts.net |
7ec6ea6355a4691c164a132310317a1a87d8f9a3 | b2158bfa536ff4f0dd1359be383fe2331f3e9707 | /1_Web_Server/Skeleton WebServer 2.py | 1a21b0b12ec4e228bca8f52436c167fac03e0746 | [] | no_license | kristogj/TTM4100_KTN | 63fc6f1840927b392fc2d140be73cd4a6ccfb6ec | a202b9d8cc6db7ea5936d550671e4076fc09dc89 | refs/heads/master | 2021-05-11T02:02:16.929177 | 2018-05-03T09:19:30 | 2018-05-03T09:19:30 | 118,347,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | # This skeleton is valid for both Python 2.7 and Python 3.
# You should be aware of your additional code for compatibility of the Python version of your choice.
# Import socket module
from socket import *
# Create a TCP server socket
#(AF_INET is used for IPv4 protocols)
#(SOCK_STREAM is used for TCP)
se... | [
"kristoffergjerde@gmail.com"
] | kristoffergjerde@gmail.com |
afd65f32fc819927ccab7f35007e2a0607ad0d78 | e701f53f8770795cd805f5ce9e83042edb1f4e5f | /tests/model/test_function_policies.py | 371ea70b183e65eb7c82e0623e1a4728661df037 | [
"Apache-2.0"
] | permissive | praneetap/serverless-application-model | f306384ad0bf2f54573617485268f5654683a589 | d874b75a117880f390ce6d6637963e05030af650 | refs/heads/master | 2022-07-27T00:56:15.716035 | 2019-07-29T22:14:51 | 2019-07-29T22:14:51 | 184,330,486 | 2 | 0 | Apache-2.0 | 2019-08-31T22:09:14 | 2019-04-30T20:56:40 | Python | UTF-8 | Python | false | false | 12,977 | py | from mock import Mock, patch
from unittest import TestCase
from samtranslator.model.function_policies import FunctionPolicies, PolicyTypes, PolicyEntry
class TestFunctionPolicies(TestCase):
def setUp(self):
self.policy_template_processor_mock = Mock()
self.is_policy_template_mock = Mock()
... | [
"noreply@github.com"
] | praneetap.noreply@github.com |
5fc6b4960040d94fb1e4a0cbd82e50746474d47a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02821/s590731514.py | 827448373b6a7d5f2313e8622bb2f870d0d97350 | [] | 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 | 1,108 | py | import cmath
pi = cmath.pi
exp = cmath.exp
N=2**18
def make_exp_t(N, base):
exp_t = {0: 1}
temp = N
while temp:
exp_t[temp] = exp(base / temp)
temp >>= 1
return exp_t
fft_exp_t = make_exp_t(N, -2j*pi)
ifft_exp_t = make_exp_t(N, 2j*pi)
def fft_dfs(f, s, N, st, exp_t):
if N==2:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d0d2fec898dd15fa114393b866c165481d23c57f | 0547d1826e99eedb959a3463520d73985a3b844e | /Data Science for Everyone Track/19-Introduction to Shell/01- Manipulating files and directories/01-How does the shell compare to a desktop interface.py | 5e8bc41d249261420a721998a9502cdcd75ba95c | [] | no_license | abhaysinh/Data-Camp | 18031f8fd4ee199c2eff54a408c52da7bdd7ec0f | 782c712975e14e88da4f27505adf4e5f4b457cb1 | refs/heads/master | 2022-11-27T10:44:11.743038 | 2020-07-25T16:15:03 | 2020-07-25T16:15:03 | 282,444,344 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | '''
How does the shell compare to a desktop interface?
An operating system like Windows, Linux, or Mac OS is a special kind of program. It controls the computer's processor, hard drive, and network connection, but its most important job is to run other programs.
Since human beings aren't digital, they need an interfa... | [
"abhaysinh.surve@gmail.com"
] | abhaysinh.surve@gmail.com |
71b044f34e96ce148cec417fb41d88ef7818d82e | defe77f8cfb333f4c67c0f9cafb290cb337464aa | /sequencing_utilities/gdtools.py | 6f2964959ff2d33c37b40c683d098e7a05003f7b | [
"MIT"
] | permissive | dmccloskey/sequencing_utilities | 8bd5c2c3ffe5d54a3c898db86bb65d6ae2af1394 | 3845cede661bc263a38cf8850148380e08c0e9ea | refs/heads/master | 2020-04-06T07:01:42.013835 | 2016-09-15T04:24:31 | 2016-09-15T04:24:31 | 38,275,400 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | #!/usr/bin/python
# -*- coding: latin-1 -*-
"""
Implements the GDTools class that annotates and applies mutations to .gd and reference .gbk files
based on the gdtools utility program
"""
import os
class GDTools():
def apply(self,gbk_filename_I,gd_filename_I,fastaOrGff3_filename_O,output_O='gff3',
gdt... | [
"dmccloskey87@gmail.com"
] | dmccloskey87@gmail.com |
56198034f91bc59cb3faaffacf9f3a6f362d3f7a | 05215b1f0f07eeb7266996c4d9a3f4cff78be7e1 | /ai.py | 2e5d593ca4af2608d3f1595dfe3b22e1fa50d533 | [] | no_license | ljte/TicTacToe | c54c259dc0106fddf9c814f9efac2285e5a89ae1 | 584d1f8900b9b9ee216587a247af7c97714ad3dd | refs/heads/master | 2022-12-09T13:33:57.400026 | 2020-09-12T13:16:33 | 2020-09-12T13:16:33 | 294,947,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,633 | py | import sys
from main import check_winner
scores = {
'X': 1,
'O': -1,
'Tie': 0
}
ai_player = 'O'
human_player = 'X'
def minimax(board, depth, is_maximizing):
result = check_winner(board)
if result:
return scores[result]
if is_maximizing:
best_score = -sys.maxsize
f... | [
"="
] | = |
83fa38f3c85d64b10ad5d7b0a64e7056c9159000 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2137/60698/252878.py | 6263880d5378d64f8803902ccd10935998fcc738 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | from math import sqrt
def test():
n = int(input())
if n<=1:
print(False)
return
factor = [1]
for i in range(2, int(sqrt(n)) + 1):
if n % i == 0:
if i not in factor:
factor.append(i)
if int(n / i) not in factor:
factor.appen... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
41bc383a1fe09b076d117af164bcb72a3e2dc0ba | c8ecc1dc9b6400ecbc26edae86375a699b1fce80 | /.tox/py37/bin/pip3.7 | bbd15fc26a694ca2db31237503cfc94aeea1c9d5 | [
"MIT"
] | permissive | leefyi/bovine-picker | 16ade5f7cae039f3a92166e3318bffe1ad8ce623 | a6100e54bb02894c2d3734a9500dc77e83405da1 | refs/heads/master | 2020-04-23T16:15:44.806725 | 2019-05-27T08:56:36 | 2019-05-27T08:56:36 | 171,292,539 | 1 | 0 | MIT | 2019-05-27T08:56:37 | 2019-02-18T13:49:23 | Python | UTF-8 | Python | false | false | 277 | 7 | #!/home/SENSETIME/lifangyi/PycharmProjects/bovine-picker/.tox/py37/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"="
] | = |
5ef92ca87e34e9dc5efdc49c10d106b68e01480f | 2c3da6e0bddf55d64d650040bbf286c47b31811a | /learnpython100day/元类.py | 6af39b9d5739481bdc65d335eb5cb68b0e9e6c1e | [
"MIT"
] | permissive | Bngzifei/PythonNotes | 76bd53db3033a9c51ab4bdd727842cd89607b584 | 01590e1b6c1bc0f04aa2d355fa2553c04cce27f2 | refs/heads/master | 2023-02-04T06:49:00.725463 | 2020-12-15T09:26:40 | 2020-12-15T09:26:40 | 155,154,662 | 1 | 2 | MIT | 2020-09-08T01:30:19 | 2018-10-29T05:02:48 | Python | UTF-8 | Python | false | false | 1,108 | py | # -*- coding: utf-8 -*-
# @Author: Marte
# @Date: 2019-05-27 17:46:35
# @Last Modified by: Marte
# @Last Modified time: 2019-05-27 20:20:18
class Foo(object):
def hello(self):
print("hello world!")
return
foo = Foo()
print(type(foo)) # <class '__main__.Foo'>
print(type(foo.hello)) ... | [
"bngzifei@gmail.com"
] | bngzifei@gmail.com |
4a85a1b72cfea37cab5e95a542ca77b194c0997b | 135cf3b73c4cd01970865b794260e195076875da | /scripts/r&d/testSend.py | 985650bfe80997d6ea6994ed041ff01680387f20 | [] | no_license | njha7/elbalang_orchestration | 1a4b7e6bb49dd7f7f735291949f52fdebed78c51 | 056f6305d43b24fedbf3eb4f6f26deaf5a0f57af | refs/heads/master | 2021-04-28T18:41:43.603542 | 2018-04-19T19:25:59 | 2018-04-19T19:25:59 | 121,879,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | import pika
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()
channel.queue_declare(queue='hello')
for x in range(1,100):
channel.basic_publish(exchange='', routing_key='hello', body='%d' % x)
connection.close() | [
"you@example.com"
] | you@example.com |
57995e50c4c2740675bad0ae2baf19562f0f7c26 | eed7b5aa4861086d34e539e7bbfeff4286506692 | /src/Server/Game/games.py | 92eaa0fc62857153b72dd206ce6f503f660e8d55 | [] | no_license | dfwarden/DeckBuilding | 0be2ccb68fc9a69c8eaa1d8acedeaa7cebef1a31 | 0b5a7573a3cf33430fe61e4ff8a8a7a0ae20b258 | refs/heads/master | 2021-01-18T09:52:51.880892 | 2015-02-03T03:21:17 | 2015-02-03T03:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from game_wrapper import GameWrapper
id = 1
games = {}
def StartNewGame(game, players):
""" Start a New Game """
global games
global id
currentId = id
games[currentId] = GameWrapper(currentId, game, players)
id += 1
return currentId | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
4f3036721abf197f97623f9c2e9af80af2d85d55 | 7792b03540784a0d28073899dd4ad78689e9a9fb | /VoiceAI/my_slice.py | 1b58955d63d01e8ff062e6c608d1488fcab21885 | [] | no_license | ayiis/coding | 3b1362f813a22a7246af3725162cfb53dea2f175 | c73e4622e1811cc3fd8729a92df6537bd73dc802 | refs/heads/master | 2021-06-02T14:55:38.451288 | 2021-04-26T08:39:16 | 2021-04-26T08:39:16 | 134,660,001 | 0 | 0 | null | 2020-06-05T04:03:58 | 2018-05-24T04:14:14 | CSS | UTF-8 | Python | false | false | 4,958 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = 'ayiis'
# create on 2018/11/07
"""
切分目录下所有子目录里的wav文件
用于切分喜马拉雅的儿童读英语的音频
"""
import sys
import numpy as np
import re
import ubelt
from pathlib import Path
import wave
reload(sys).setdefaultencoding("utf8")
class Slicer(object):
"""docstring for... | [
"ayiis@126.com"
] | ayiis@126.com |
01921ca9f3fca49a540f52fee546503370155e01 | 2f083c3e5ebaf5803edb1c6329501d09dd7695db | /set 2h.py | 746ef779a9a804d81c050b48c947ec3ab81238a3 | [] | no_license | Anjanaanjujsrr/Anju-code_kata-PLAYER | 321a1097d1afe7da8916f193b35dfbd9ca440ec6 | fadd1a2971843c5cf12cd63bcd062e96e093feb5 | refs/heads/master | 2020-05-26T08:59:53.795026 | 2019-06-09T08:05:27 | 2019-06-09T08:05:27 | 188,175,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | #anju
number=int(input())
r=[]
a=0
count=0
for i in range(number):
c=input()
r.append(c)
for i in r:
for j in i:
a+=ord(j)
if(a==612):
count+=1
a=0
print(count) | [
"noreply@github.com"
] | Anjanaanjujsrr.noreply@github.com |
f90b5b1fcbe9306e479747f6580ea0cbe3a5d1c7 | 35f069aad9f7040e20494dac11f826bba41d029e | /src/main/resources/qtools/lib/webservice/__init__.py | 384fc467ac669b3197a860fb9c1a1dfa9b73fa32 | [] | no_license | v-makarenko/vtoolsmq | 4be3bc3965aaeeee2d64c359a30f6f18617f354d | 8a0dd75b196c0e641bb8b4b20124540aaaa2814b | refs/heads/master | 2021-01-10T02:04:58.893206 | 2015-12-03T16:34:44 | 2015-12-03T16:34:44 | 47,275,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,042 | py | """
This package contains modules and classes used to interact with external web services.
"""
import urllib, urllib2, cookielib, os
class RequestProxy(object):
"""
Returns a proxied response object on request.
Not sure if this is the right thing to do yet.
"""
def __init__(self, proxy_class=N... | [
"vladimir@makarenko.io"
] | vladimir@makarenko.io |
221a8ffa70126e93462e6b05258ee3f72950aa1f | ce32ff8c0ad1ad9e42e6b59e201c70df754aa51e | /farmmonitor/manage.py | 00e0f54506f9e616394b71d808fb99fe541ced96 | [] | no_license | wangxiaoying/farm-monitor | d7710559194c2771d09012b6dd204bae12669b6e | 413ddaf1a23655f705da8b65978d06b704c81723 | refs/heads/master | 2021-01-10T21:33:35.643549 | 2015-06-16T09:07:14 | 2015-06-16T09:07:14 | 32,635,833 | 1 | 1 | 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", "farmmonitor.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"wangxiaoying0369@gmail.com"
] | wangxiaoying0369@gmail.com |
f264cc0288deced4fe0c271ca22be87310d2710d | d659fb0db310793b918640fdb673b9bd755578bc | /standard_lib/remove_elements_list.py | 83be482832d01d31f152fe83cb07e5eb97fd4837 | [
"MIT"
] | permissive | astuk/python-snippets | 562bdcdb23c537650a767fb0369388d9530a67ae | 212f63f820b6f5842f74913ed08da18d41dfe7a4 | refs/heads/master | 2023-06-18T04:29:48.111537 | 2021-07-14T10:55:59 | 2021-07-14T10:55:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | data = [1, 2, 3, 4, 1, 2, 3, 4]
target = 1
print(f"Original: {data}")
data[:] = [elem for elem in data if elem != target]
print(f"New: {data}")
| [
"f2dahlitz@freenet.de"
] | f2dahlitz@freenet.de |
9c515388fcd184ea1ae18872a428a79645351f33 | 5b6af599a2afb4db27b588cfc00831446ff8620f | /blog/urls.py | 62c9faaba9b33b021a3ebd8bbd5d111d134fa5a9 | [] | no_license | dlatnrud/myblog | 425acb68be9d3b672e2a84cb84e403cc31c61348 | 8e344e9eadaaf85fed530c25fefc87f916dbee0c | refs/heads/main | 2023-08-26T17:12:52.097986 | 2021-10-22T03:55:18 | 2021-10-22T03:55:18 | 419,949,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from django.urls import path
from . import views
app_name = 'blog'
urlpatterns = [
#127.0.0.1:8000/blog
path('', views.index, name='index'),
path('<int:post_id>/', views.detail, name='detail'),
path('post/create/', views.post_create, name='post_create'),
] | [
"dlatnrud2268@naver.com"
] | dlatnrud2268@naver.com |
2a6450417821ac75724ba063f20fd6289c9bb8b0 | 085ce75a507df6e755cabb7a65c4a2a8c98762ba | /dockerfiles/root/.pycharm_helpers/python_stubs/-252567642/_codecs.py | 2232eace436d8b42e47cad46c20bbf725f5f9b60 | [] | no_license | Arhzi/habr-docker-article | d44302db1fe157d81fe0818e762e82218f50e31f | 6fb094860b612e307beadaeb22981aa0ee64e964 | refs/heads/master | 2021-01-23T20:41:47.398025 | 2015-12-10T08:56:33 | 2015-12-10T08:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,216 | py | # encoding: utf-8
# module _codecs
# from (built-in)
# by generator 1.137
# no doc
# no imports
# functions
def ascii_decode(*args, **kwargs): # real signature unknown
pass
def ascii_encode(*args, **kwargs): # real signature unknown
pass
def charbuffer_encode(*args, **kwargs): # real signature unknown
p... | [
"sirnikolasd@yandex.ru"
] | sirnikolasd@yandex.ru |
0ec3ee8ba21f62bdf895ad95895a6cecee3ea293 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/7edd451a4e81080562d8e2daa1e962bf7fbe4a9b-<apply>-fix.py | 0d2625c133798c97803281d73411bc9ac3823fff | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | @staticmethod
def apply(module, name, n_power_iterations, eps):
fn = SpectralNorm(name, n_power_iterations, eps)
weight = module._parameters[name]
height = weight.size(0)
u = normalize(weight.new_empty(height).normal_(0, 1), dim=0, eps=fn.eps)
delattr(module, fn.name)
module.register_parameter((... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
061faf3a7b71dc0672633c4edca636e4eae445de | ad9782856ec2f860fccbefa5e75a896691b8e1cc | /MonteCarlo/test/opt6s3l/MinBias_14TeV_pythia8_TuneCUETP8M1_cfi_GEN_SIM_OT613_200_IT4025_opt6s3l.py | cade5d39c8f174af6bc59396e837fa2023545939 | [] | no_license | OSU-CMS/VFPix | 7fe092fc5a973b4f9edc29dbfdf44907664683e5 | 4c9fd903219742a4eba1321dc4181da125616e4c | refs/heads/master | 2020-04-09T05:52:05.644653 | 2019-01-09T13:44:22 | 2019-01-09T13:44:22 | 30,070,948 | 0 | 0 | null | 2018-11-30T13:15:54 | 2015-01-30T12:26:20 | Python | UTF-8 | Python | false | false | 5,781 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: MinBias_14TeV_pythia8_TuneCUETP8M1_cfi --conditions auto:phase2_realistic -n 10 --era Phase2C2 --eventcontent FEVTDEBUG --relval 90000,100 -s ... | [
"juliette.alimena@cern.ch"
] | juliette.alimena@cern.ch |
bea1166d0ce0c63d8db6eb232de74347ba96c94e | 7d9cf43f7c17809420eae756b808cf4efbaafdb3 | /tests/plugins/test_tk.py | 04ab77d218f1e56938a7c3a03b34cb7944b05236 | [] | no_license | dahool/big-brother-bot | 8e23adf0e791188dc850bc22628234e654dca6b7 | a3818374e5a410e5a54576f91dace069250684a8 | refs/heads/master | 2020-12-24T22:10:02.459371 | 2012-03-03T17:51:34 | 2012-03-03T17:51:34 | 1,544,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,661 | py | #
# BigBrotherBot(B3) (www.bigbrotherbot.net)
# Copyright (C) 2011 Courgette
#
# 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 2 of the License, or
# (at your option) any later v... | [
"courgette@bigbrotherbot.net"
] | courgette@bigbrotherbot.net |
918d35988abeede9ff21191733d53fc0101d01a2 | cc734ab47096dfd38b8cb554ced88c0689c450e8 | /geraGrafico.py | d6fe5e35797531bdbc4ae8026746d5742448f779 | [] | no_license | Claudiocfls/ELE32-lab3 | efaa46bd73ead3e6030d3e231ce577b53a36027b | 366b34d5d66d0555451206697ce6116f363c60cf | refs/heads/master | 2020-04-01T18:50:44.395937 | 2018-11-28T15:23:37 | 2018-11-28T15:23:37 | 153,518,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import DadosGrafico
import Grafico
grafico = Grafico.Grafico()
dados1 = DadosGrafico.DadosGrafico()
dados1.dadosDeArquivo("hamming.txt")
grafico.adicionaDados(dados1, "ro" )
dados1 = DadosGrafico.DadosGrafico()
dados1.dadosDeArquivo("3, 13, 15, 17.txt")
grafico.adicionaDados(dados1, "ro" )
dados1 = DadosGrafico.Dad... | [
"claudiosilva.cfls@gmail.com"
] | claudiosilva.cfls@gmail.com |
2146a1abe1e044c23653b6572a99383187acf3c3 | 1de7512183974adfc5dbdd30b3bf7e042ea194d9 | /poetries_server_beta.py | b34d1625a90aa1b8b66c3050158c73b812ec84c9 | [] | no_license | articuly/Self-study | d06b0bdcead38282701e4d5118cefd8b83e80241 | 878ed68fc31dc1f5c2f13bcb5d98539264985c17 | refs/heads/master | 2023-05-13T18:34:33.904864 | 2023-05-09T11:03:29 | 2023-05-09T11:03:29 | 223,714,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | # coding:utf-8
import socket, time
from poetries import POUETRIES # 此处导入诗词库(poetries.py)
def poetries_server():
"""古诗词服务器"""
delay = 0.1 # 诗词显示速度(字间隔时间)
subjects = [item.split()[0] for item in POUETRIES] # 诗词目录
welcome = '欢迎来到风花雪月古诗词库, 请输入序号后回车以选择你喜欢的诗词\r\n'
welcome += '输入fast加速,输入slow减速,输入bye... | [
"articuly@gmail.com"
] | articuly@gmail.com |
767b0dd7cd5fd2f0d94d01ece471a26c8cedee83 | 8a699595e7f156b1ade42f6042900b3331831fbf | /src/transformers/models/rag/modeling_tf_rag.py | 30f50a29ff404da24f1c6aee56808ad35fbc856b | [
"Apache-2.0"
] | permissive | stas00/transformers | ab654371a387c5883fc882dd0286177875d6d3b4 | 7c5d79912a21880ce13d77881940458e90d98917 | refs/heads/master | 2023-02-16T00:22:41.298155 | 2022-04-08T20:55:42 | 2022-04-08T20:55:42 | 278,214,696 | 6 | 0 | Apache-2.0 | 2022-01-28T18:39:00 | 2020-07-08T23:24:49 | Python | UTF-8 | Python | false | false | 89,780 | py | # coding=utf-8
# Copyright 2020, The RAG Authors and The HuggingFace Inc. team.
#
# 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 r... | [
"noreply@github.com"
] | stas00.noreply@github.com |
73bee41645a2a5d29d2307248dc9dd4042c9cb15 | 9c315e3762961668a1fe58ad811ae87c5fbf7539 | /apertium-tools/scrapers-misc/bibleScraper-ibt.py | 5e2698746ef1e1f835a59b51ad687209b7d5c5ee | [] | no_license | frankier/apertium | f2b893115c413203b1194e5c0d4feb0adf2b1b3e | d3f5515bf2455f3046314a62ea564457bcf504b8 | refs/heads/gnulib | 2021-01-20T21:00:53.139135 | 2016-05-27T17:30:01 | 2016-05-27T17:30:01 | 59,847,975 | 0 | 1 | null | 2016-07-07T12:39:01 | 2016-05-27T16:21:14 | HTML | UTF-8 | Python | false | false | 6,867 | py | #!/usr/bin/env python3
# WARNING
# ONLY USE THIS SCRIPT WITH PERMESSION FROM ibt.org.ru ADMINISTRATORS
# UNAUTHORIZED ACCESS OF ibt.org.ru IS ILLEAGL IN MOST COUNTRIES!!!
#
# 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
# t... | [
"unhammer@72bbbca6-d526-0410-a7d9-f06f51895060"
] | unhammer@72bbbca6-d526-0410-a7d9-f06f51895060 |
28eb4f066f9dbe9f85d53858545bd15c3df79d6b | 6f1d57238f3b395b04696a16768bcc507f00630c | /A_GCD_Sum.py | 3a137dfc4dc2318e724874ceedd601f7481d3f84 | [] | no_license | FazleRabbbiferdaus172/Codeforces_Atcoder_Lightoj_Spoj | 024a4a2a627de02e4698709d6ab86179b8301287 | 6465e693337777e7bd78ef473b4d270ce757a3a2 | refs/heads/master | 2023-07-01T06:32:14.775294 | 2021-07-27T17:07:37 | 2021-07-27T17:07:37 | 271,202,781 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | import math
def digi_sum(n):
ds = 0
for i in str(n):
ds += ord(i) - 48
return ds
for _ in range(int(input())):
n = int(input())
while math.gcd(n, digi_sum(n)) == 1:
n += 1
print(n)
| [
"fazle.ferdaus1416@gmail.com"
] | fazle.ferdaus1416@gmail.com |
310fa56760bac3e6cdd5a4d0331475d6fa83a2ef | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/fusion/tests/RIST/API/Deprecated/F172/Regression_Data.py | d6a5825dd029264612a58aa0b8b5ac7f4264621a | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | admin_credentials = {'userName': 'Administrator', 'password': 'wpsthpvse1'}
enclosure_name = "CN754406XL"
drive_enclosure_name = "CN754406XL, bay 1"
expected_number_of_DE = 1
expected_number_of_drives = 8
| [
"akul@SAC0MKUVCQ.asiapacific.hpqcorp.net"
] | akul@SAC0MKUVCQ.asiapacific.hpqcorp.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.