blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3033cc20d7985239dd17caa5b6a7957bf81d6d94 | b6ac10689d570465e132f8889ee479b2a2663162 | /tests/test_env_to_file.py | 2ac3bb267a29f1431ffbec3877afea7659300226 | [
"MIT"
] | permissive | bdangit/plz-cover-py3 | 18a01894101c8276b8793927bd63b86326241698 | b564e5ea2bf4a263e20ee27f6a3c41f6c47d5ab9 | refs/heads/main | 2023-04-01T14:30:43.719941 | 2021-03-27T22:19:44 | 2021-03-27T22:21:01 | 351,850,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | import os
from pathlib import Path
import pyfakefs
import pytest
from envutil.envutil import envutil
@pytest.fixture()
def setup_envvar_WOOF():
# setup
os.environ["WOOF"] = "this is how I bark"
yield os.environ["WOOF"]
# teardown
del os.environ["WOOF"]
def test_create_file_with_existing_envv... | [
"me@bdang.it"
] | me@bdang.it |
7877dd37fd1c169f1c427e21765d3e18b3f2ce1b | 27881c211ad6af7112932a353b0a315d56060257 | /indexador/indexador.py | 41eac0f39746d19ded00b01af5f92c254796cd3d | [] | no_license | heveiga/buscador_infnet | eceb796f3fc3c096742be4e503dca704d741a63d | 238461c9f826948f3e2d8b0aaaaec277d3815a19 | refs/heads/master | 2022-09-27T15:22:31.673584 | 2018-08-31T00:55:15 | 2018-08-31T00:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,017 | py | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
from time import time
from indexador.textParser import TextParser
from util.logger import logger
class Indexador():
log_path = '.\\logs\\indexador.log'
def __init__(self):
pass
@classmethod
@logger(log_path)
def calc... | [
"hevandro.veiga@b2wdigital.com"
] | hevandro.veiga@b2wdigital.com |
57ace608307c7ca41db20c1da11789bd57a585e6 | e629d8c9381f6d9139999d46f97d329ce8c0ff8a | /src/ekpy/experiments/ferroelectric/_relaxation/core.py | 8f14c2f3fe35ebaefe37071402048454ce485f46 | [
"MIT"
] | permissive | eparsonnet93/ekpmeasure | abc07bcb9ebae51f38ba9aaae1d4ee9ab71f95f2 | 7feec4c9458c1811851a002026c5dba09a7c851a | refs/heads/main | 2023-05-22T17:14:28.827158 | 2022-09-08T14:19:05 | 2022-09-08T14:19:05 | 339,565,507 | 7 | 3 | MIT | 2022-07-21T12:19:22 | 2021-02-17T00:06:00 | Python | UTF-8 | Python | false | false | 2,118 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import time
import os
from scipy.integrate import trapz, cumtrapz
from .... import control
from ....control.instruments.berkeleynucleonics765 import stop
from ....control import plotting
from ..switching import two_pulse_run_function
from ....univ... | [
"e.parsonnet@berkeley.edu"
] | e.parsonnet@berkeley.edu |
e573a88709bc7b5832e6f737252c85a4226d1088 | 13cb193c95157c405757a8681cffa6ba3b60a2f4 | /src/cogs/fetcher.py | 2cf1f4bbab65d9377053d71e555fb40e508ae8af | [
"MIT"
] | permissive | theneosloth/Bolas | 38896af33b95b5912f78792ef98ca5e796d427a1 | a3279248b1170e81aacf95e5e22b111cbf435a15 | refs/heads/master | 2023-05-11T01:06:50.745138 | 2020-08-22T10:36:07 | 2020-08-22T10:36:07 | 86,783,943 | 6 | 9 | MIT | 2022-09-27T06:54:01 | 2017-03-31T06:06:30 | Python | UTF-8 | Python | false | false | 7,023 | py | import asyncio
import re
from discord import Embed
from discord.ext import commands
from urllib.parse import quote
from ..scryfall import ScryFall
class Fetcher(commands.Cog):
"""
[[Card Name]] to get a card.
The fetcher supports the scryfall/magiccards.info syntax, so a query like [[t:goblin t:i... | [
"neosloth@posteo.net"
] | neosloth@posteo.net |
5e177510b854dbe7f182c6b211a0f60d4064507e | 1fcbadf63328c80be1988b302a6243463f0250ff | /steganoModule/main.py | 9b94b7fa5ac20e2baa0cfd439f0acc98557595d0 | [] | no_license | jordanparapat/steganoapps | c12f1587a2b72036c7b2faed84f39b2fc8ecf229 | 049adc8332ab1f3d75eecf16dff0f112e896bae5 | refs/heads/master | 2023-07-03T02:57:13.255015 | 2021-08-06T00:42:17 | 2021-08-06T00:42:17 | 393,204,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,274 | py | from django.core.files.storage import default_storage
import cv2
import docopt
import numpy as np
import re
import string
import os
from PIL import Image
from pathlib import Path
from stegano import lsb
def encodeFunc(uploadedFileName, message):
class SteganographyException(Exception):
pass
class LSB... | [
"jorjosbin@gmail.com"
] | jorjosbin@gmail.com |
1e9e6d8e3554aa9d9103ede5e9408b05deaa2323 | c82be7703a76df016178af7f60a41b97af94ef47 | /app/tcp-server/tcp-server.py | 5ebd6a0c3adf1d49b959db09438c2ad2ac6a9271 | [
"MIT"
] | permissive | max-lobur/k8s-weave-demo | 688028face28b09a2c0da37e5b96abb5ce374519 | 76909f1f76f159ccefc65b1cfe0655061adf6dc7 | refs/heads/master | 2021-01-19T23:00:58.675452 | 2017-04-24T20:18:04 | 2017-04-24T20:18:04 | 88,909,912 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | import os
import SocketServer
print "Listening TCP..."
IP = "0.0.0.0"
PORT = int(os.environ['PORT'])
SocketServer.TCPServer(("0.0.0.0", PORT),
SocketServer.BaseRequestHandler).serve_forever()
| [
"max_lobur@outlook.com"
] | max_lobur@outlook.com |
877b98d4ebe2c8847804da11e6a5c429604a9776 | 7b102d941f1155126b9cabdf0a3aa38193ceb52c | /latenight.py | 35402e1dc8e80f6e9ff7cb2cf267c81fa8f4b516 | [] | no_license | avehemente/LateNight | 0de364dac11133e048efba9c0501c1bc98a69c5d | 27168ed12cfa566f925d48512db6fcc73b6ed54f | refs/heads/main | 2023-07-07T22:47:17.082363 | 2021-08-31T02:07:57 | 2021-08-31T02:07:57 | 401,541,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | #Late Night
from flask import Flask, render_template, request, g, jsonify
import sqlite3, requests, json
from multiprocessing import Pool
#YELP API
key = "UW-jkH9pmyT-OyCZ1HjkjCxGiBWwURT8HayafB-95bURRgETCZVlDyJZq6uPfOsa-YgJR29pVb_RjQmTEYyxxc1YxLwRJsTVfIhvSXoM7GYRt1uIegeDyia_kh9CXnYx"
endpoint = "https://api.yelp.com/... | [
"avehemente@berkeley.edu"
] | avehemente@berkeley.edu |
94d3ea0be5e02f307d069584e4530c7fdc6abeaa | 79baf4404e51bdc0f33038b3b16bea86ff09e82f | /azext_iot/central/providers/export_provider.py | d5199774472543a2fd7b5a3ccb8a34bb9aa676be | [
"MIT"
] | permissive | Azure/azure-iot-cli-extension | 80b6cb29e907f7512c7361a85d6bfdea5ae2dd9e | bdbe65c3874ff632c2eba25c762e9ea8e9175b5f | refs/heads/dev | 2023-09-04T10:57:16.118442 | 2023-08-28T17:12:05 | 2023-08-28T17:12:05 | 103,456,760 | 95 | 80 | NOASSERTION | 2023-09-13T00:02:54 | 2017-09-13T22:04:36 | Python | UTF-8 | Python | false | false | 4,040 | 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.
# -----------------------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
822c13681ca816eae745faed8fd6c4f54f9d5417 | d177a65d7bf90cd9287e61099a526d900546323a | /Xortholian Architecture.py | 2b62e69386e6ee90af31fe0115104c87f7c327ed | [] | no_license | AlexRouault/Microsoft_Coding_Challenge | c577efd3436847b59766595b9eccf20b3bb3f312 | 9f09b8054be685a81860c3c3887f359087153098 | refs/heads/master | 2021-05-03T14:48:10.441681 | 2016-09-30T06:51:14 | 2016-09-30T06:51:14 | 69,640,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | width = 100
i = open("Xortholian-Architecture_InputForSubmission_1.txt")
l = i.readline()
while width < 200:
height = 0
pos = 0
pattern = l[pos:pos+width]
flag = True
while pos < len(l) and flag:
if l[pos:pos+width] == pattern:
height += 1
pos += width
... | [
"noreply@github.com"
] | noreply@github.com |
450f6d9842845f152bea2a1da1ceedc8b3f7323a | 120c0f390bd2f5aa3a1c8aa09fe10758225a250f | /mehdi_lib/TESTS/test_basics/test_prototype_.py | 1f0dbde1ba210d530758a2d0eaf75455fd4e466d | [] | no_license | msepahkar/infrastructure | 863c9c0b03c5f05fef0c10cc28be31f53b62ed31 | 924a7dedcee00e075617044bc334ff9c0c5bd09e | refs/heads/master | 2023-07-15T22:03:18.455115 | 2021-08-20T14:52:16 | 2021-08-20T14:52:16 | 381,083,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | from mehdi_lib.basics import prototype_, thing_
from mehdi_lib.generals import general_fields, general_editors, general_ui_titles
import pytest
pytestmark = pytest.mark.basics
# ===========================================================================
class TempThingPrototype(prototype_.ThingPrototype):
pass
... | [
"msepahkar@gmail.com"
] | msepahkar@gmail.com |
fac1d3b227a89036b91c9bcb5e254e971aa0dc0b | c3fd5d7d00fe30792b9ef5f2816b3b62f60d7dea | /app.py | c6a13e2ad6e109273d43bb4d9ee4b8bfa294c907 | [] | no_license | alychinque/CookBook | 0f0fa92b5a4387552dfd1aaab84140f97798bda5 | f1bac1030ec51d9d7bd1a3dfb9ccfc66866a470c | refs/heads/master | 2023-03-05T17:55:14.883013 | 2021-02-04T05:06:02 | 2021-02-04T05:06:02 | 328,178,559 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,289 | py | import os
from flask import (
Flask, flash, render_template,
redirect, request, session, url_for)
from flask_pymongo import PyMongo
from bson.objectid import ObjectId
from werkzeug.security import generate_password_hash, check_password_hash
if os.path.exists('env.py'):
import env
app = Flask(__name__)
ap... | [
"alychinque@gmail.com"
] | alychinque@gmail.com |
996f1814e3fb3f22b4ddcd37ec0b0760362ab58e | d37981388b53f44e3cdb5a1bc65259f5ef2c00b6 | /GiftLand/Product/migrations/0007_auto_20200919_2134.py | 24db1ad4816af074a00d71925657a26523281f29 | [] | no_license | Void-Brain70/software-engineering-project | 08c38fe12c16df15badda3cb3fab5ab97e82127b | bb893f8a6852c07257ce5067a659c5f76f6fb556 | refs/heads/master | 2023-04-06T19:25:02.253346 | 2021-03-23T13:04:22 | 2021-03-23T13:04:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Generated by Django 3.1.1 on 2020-09-19 15:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Product', '0006_cart_orders'),
]
operations = [
migrations.RemoveField(
model_name='cart',
name='orders',
),
... | [
"67729889+Void-Brain70@users.noreply.github.com"
] | 67729889+Void-Brain70@users.noreply.github.com |
c0306aa6a30a9a034002df88e46b7c07159f5697 | 7a3b15c86f39fcb518439ab1efba671254954cae | /main/public.py | 99a0540ab88cb760828aadb21a9c5fa1747d9eba | [] | no_license | chuixue/data-clear | b60d28687027f7c768d72e8e54a12cc1e76965ed | af0fa04491a664f8d4a2483d97820febdda61d88 | refs/heads/master | 2020-05-22T06:36:16.302603 | 2016-12-29T09:56:35 | 2016-12-29T09:56:35 | 64,291,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,619 | py | #coding:utf8
'''
Created on Sep 9, 2016
@author: Administrator
'''
import datetime
import re
import sys
reload(sys)
sys.setdefaultencoding('utf8')
def cout(ls):
for l in ls: print l, ':', ls[l] if type(ls[l])!=type('') else ls[l].encode('utf8'),
print
def out(ls):
for l in ls: print l,
print
def c... | [
"simonblowsnow@163.com"
] | simonblowsnow@163.com |
976a47127d2fb20ed6ab3d9fc05c87a077a81e35 | 33a09581a833cf89cf2fb8d2bb571f3b55cfbfc3 | /tools/codeAudit/cobra-master/engine/scan.py | b43cf887b4c0b7315ca5a589b76e80fa434cca71 | [
"MIT"
] | permissive | buddyho/Security | d1067dc7416ed6de9982f1594c474950fca5369f | 9b8e90af138c6c4a7e71e6baba1f8c00de6a25cc | refs/heads/master | 2020-04-27T11:46:12.908592 | 2017-11-17T02:51:41 | 2017-11-17T02:51:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,167 | py | # -*- coding: utf-8 -*-
"""
engine.scan
~~~~~~~~~~~
Implements scan
:author: Feei <feei@feei.cn>
:homepage: https://github.com/wufeifei/cobra
:license: MIT, see LICENSE for more details.
:copyright: Copyright (c) 2017 Feei. All rights reserved
"""
import os
import time
import subpro... | [
"wsjswy@gmail.com"
] | wsjswy@gmail.com |
a161646cc1ec7b1aab891a21a1cba3be8d9e80cb | a6e15e46efbbf5979735e04c5b0eed6c7c8eab83 | /jobs/migrations/0002_auto_20190405_1341.py | 7dce019850855b203df1907f446f6e18d8d8a517 | [] | no_license | speQtrum/portfolio-project | f7ff1ce137d0658be007e2197b37c1daefe6bd5e | 20384b68ecc6f076a85c48d1bc732635c2a9056a | refs/heads/master | 2021-10-28T17:58:28.151994 | 2019-04-24T10:50:14 | 2019-04-24T10:50:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | # Generated by Django 2.0.2 on 2019-04-05 08:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('jobs', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='job',
old_name='image',
new_name='i... | [
"aniruddha.connect@gmail.com"
] | aniruddha.connect@gmail.com |
29fe8a900520b7b684149b1f22f380300671c0f6 | 0fd2b832673946c9ee532686a2a35bf2680f8408 | /CybORG/CybORG/Shared/Results.py | 59e18af053e39645c2884ab3d8a515ea1d15a00f | [
"MIT"
] | permissive | pvu1984/cage-challenge-2 | 4e57bad7bc30c7df2b90c2fabc8395a5f2a3e65c | e76722dcd79a6b7511e185cde34fac1e0b45720e | refs/heads/main | 2023-09-02T15:11:32.072215 | 2021-11-12T02:33:19 | 2021-11-12T02:33:19 | 429,307,660 | 0 | 0 | MIT | 2021-11-18T05:27:36 | 2021-11-18T05:27:35 | null | UTF-8 | Python | false | false | 2,588 | py | # Copyright DST Group. Licensed under the MIT license.
import pprint
from copy import deepcopy
from CybORG.Shared.Observation import Observation
class Results:
def __init__(self,
observation: dict = None,
done: bool = None,
reward: float = None,
... | [
"david@pop-os.localdomain"
] | david@pop-os.localdomain |
5cc36d8acbe0b45babf311487e2b22da3122eb13 | 582cae18bac8299bd0de4ef0ed24b03dba2b2a8a | /demo58.py | fd2381256f766c524541fb679598be6daa79fb97 | [] | no_license | martinwithyou/awesome-python3-webapp | 574669bb4047a95f36d143e1927894bd35bef9dd | 00a7ac581e36075b44b199f2291b3b0586c5600c | refs/heads/master | 2020-04-11T06:05:14.811775 | 2018-12-13T02:00:36 | 2018-12-13T02:00:36 | 161,569,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | def is_odd(n):
return n % 2 == 1
res = list(filter(is_odd,[1,2,3,4,5,6,7,8,9,10,15]))
print( res ) | [
"406410589@qq.com"
] | 406410589@qq.com |
3f745654cbfc18fd9e8ccc64e7b14b091a34de37 | d0d72200a30b8fd0e29a41d7b5bc4b652641ae0a | /FirstPlot.py | 381fa0edf1eb442f8807dedddd9750d07ae03040 | [] | no_license | zonecodez/KyPy | 95b0296eb352f9eca02c653e52134859db1ad892 | 08f20de77fe20638630f7df3b5c967823aaa8015 | refs/heads/master | 2020-03-07T23:59:02.539380 | 2019-01-11T22:27:41 | 2019-01-11T22:27:41 | 127,795,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | ####################################LINEGRAPH###################################################
#import pyplot as plt from the matplotlib module
from matplotlib import pyplot as plt
#create variables to hold lists of data for x and y axis
years = [1950,1960,1970,1980,1990,2000,2010]
gdp = [300.2,543.3,1075.9,2862.4,5... | [
"kyle.jeanpierre@stu.bmcc.cuny.edu"
] | kyle.jeanpierre@stu.bmcc.cuny.edu |
ebc15a995eec7b60dbc9cdfbf75daf83b82f0554 | ae1976bc9db8134156027aeae1481b6ee6ae776d | /day1/Day1_PythonCode/day1_python_programming_06.py | e1fe0b7d7f3ee8f0b08da33021530a661dd4018c | [] | no_license | curieuxjy/DS-for-PPM | d9f6f94c3c01e37b81a19b11e52d458aad102fb3 | 70f37e8cf72bbf6351ba8ee657218758e2bd182f | refs/heads/master | 2021-01-03T11:43:01.220817 | 2020-02-15T17:45:53 | 2020-02-15T17:45:53 | 240,068,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # While Loop
num = 0
count = 0
sum = 0
while num >= 0:
num=int(input("enter any number .. -1 to exit\n"))
if num >= 0:
# count = count + 1 #this counts number of inputs
count += 1
sum = sum + num # this adds input number cumulatively.
if count > 10:
b... | [
"skyfiower9721@gmail.com"
] | skyfiower9721@gmail.com |
da77af36cc3e2945a730d81bf1f9845b9aec8ea4 | ffaa662396301e25ea308ef9fcc64175b7646de3 | /extras/python/dsp_test.py | 0424f194d09dd55c1ae68475f309154e6096a5d3 | [
"Apache-2.0"
] | permissive | google/audio-to-tactile | b0f8006b0ddf0cd7a33b3d73bd941b0cd4149cc4 | c13611b7a8d2ea80349be24bf54b2b50b9431347 | refs/heads/main | 2023-09-04T12:16:32.657563 | 2023-06-29T14:40:32 | 2023-06-29T14:40:32 | 184,677,120 | 92 | 19 | Apache-2.0 | 2023-04-09T22:08:49 | 2019-05-03T00:24:37 | C | UTF-8 | Python | false | false | 25,957 | py | # Copyright 2020, 2023 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"getreuer@google.com"
] | getreuer@google.com |
12b104dfe34b5b66921c0aa967254305a37cc96e | 89c3c8ee75f5f009278a0dd756019b0aad1e2a3a | /apis/ca.py | c1a144e553853f2ebaf492b1b390464903245d51 | [] | no_license | ErikHumphrey/hist3814o-s20-week2 | 4ede3b374b796eeeb41b8ab4c054dca4ec34fdba | 50df6cf5902d5aa5c2f302a5407f34453b9903d8 | refs/heads/master | 2022-11-10T12:35:56.680859 | 2020-06-16T17:51:31 | 2020-06-16T17:51:31 | 262,828,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | #!/usr/bin/env python
"""
a script for getting materials from the Chronicling America website
"""
# Make these modules available
import requests
import json
__author__ = "your-name"
# Create a variable called 'api_search_url' and give it a value
api_search_url = 'https://chroniclingamerica.loc.gov/search/pages/resul... | [
"erik.humphrey@carleton.ca"
] | erik.humphrey@carleton.ca |
986fb318cc0cb37f04b23e2285a1f25f16561b11 | 5c1591402f1ffed83d68184e05d82856b2ef1129 | /src/spark/spark_velocity_smoother/test/test_translational_input.py | 7b8f819c374852c2808f92a5d22a223b424b76bb | [
"BSD-3-Clause"
] | permissive | NXROBO/spark | 1d1da0d97af49e8cbbe1223eebb9ab9749c4a04f | 660b99f9ba778a922fd3febbe665b69bf800b14a | refs/heads/master | 2022-08-23T11:28:29.982260 | 2022-08-22T06:22:09 | 2022-08-22T06:22:09 | 77,700,297 | 49 | 31 | null | 2022-04-21T10:15:01 | 2016-12-30T17:22:53 | Jupyter Notebook | UTF-8 | Python | false | false | 5,236 | py | #!/usr/bin/env python
import roslib
roslib.load_manifest('spark_velocity_smoother')
import rospy
import os
import sys
import time
from geometry_msgs.msg import Twist
from nav_msgs.msg import Odometry
'''
Varied translational input for a velocity smoother test.
'''
STATE_RAMP_UP = 0
STATE_RAMP_LEVEL = 1
STATE_RAMP_D... | [
"litian.zhuang@nxrobo.com"
] | litian.zhuang@nxrobo.com |
ec21e12ab6cba64f6364b68ed769597505db7983 | 01a99329ee246ebc36049385c3945858b88d06ee | /src/src/MCTSAgent.py | 2e34bef4c8c5bce0347b1eda221d2b479b779ab2 | [] | no_license | Sotrosca/container-depot-simulator | c94a568c26c3f1bf3398e8ef2048081a4472bbdb | 8f767754df141a4c13ed4852f05b9d4fc3e3145a | refs/heads/main | 2023-06-20T12:51:11.849151 | 2021-07-24T22:28:10 | 2021-07-24T22:28:10 | 389,212,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,620 | py | import random
from SimpleSimulation import ActionType, Simulation
import Utils
class NaturalNumbersIterator():
def __iter__(self):
self.a = 0
return self
def __next__(self):
x = self.a
self.a += 1
return x
class MontecarloPlayer():
def __init__(self, originalSimulation, sel... | [
"facuserna93@gmail.com"
] | facuserna93@gmail.com |
09c1c08e56856f362d52c39a5add983b99e7775e | 86924c5ce7b7bdabeecd719c57f717c60bd3c063 | /dataclean.py | 5339ba0a989a5b4aad0f288c02d6120c8fa3c43b | [] | no_license | WTFPUn/Resume-Titanic | a68c69c7261bd7fd27f991e2a2a65fad60c074fc | 3a6b7fd1ab46378bc38d30f5fe6686c98600b772 | refs/heads/master | 2022-07-13T22:27:57.587750 | 2022-06-23T17:45:56 | 2022-06-23T17:45:56 | 255,259,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | import numpy as np
import pandas as pd
def hotEncode(data: pd.core.frame.DataFrame, encodeCol: str) -> pd.core.frame.DataFrame :
return pd.concat(data, pd.get_dummies(data[encodeCol], prefix = encodeCol, prefix_sep = '_',dummy_na=False)).drop([encodeCol], axis=1)
def better_read_csv(data: pd.core.frame.DataFrame, e... | [
"punn_namw@hotmail.com"
] | punn_namw@hotmail.com |
e23badd3db308bd405d9c0dcb0797a12ebfb8e34 | deaf40820a83376514c22e31fe9ca18dbe8683fd | /todo_dao.py | effbc76f12e8d8801fd13039f23e35a12ef16f17 | [] | no_license | Ligerlilly/pydo | bd86f6b9f8c582f1f0ec47fdec0d88020b604da2 | 52a70df504f364c90f4a13006f309ac8a157cac6 | refs/heads/master | 2021-01-19T00:24:10.845441 | 2016-11-12T05:41:03 | 2016-11-12T05:41:03 | 73,047,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | from flask import json
# import code
def get_todos(cursor):
cursor.execute('''SELECT task FROM todos''')
result = cursor.fetchall()
result_list = list(sum(result, ()))
return json.dumps({'todos': str(result_list)})
def create_todo(mysql, cursor, request_json):
req_json = json.dumps(request_json)
... | [
"quizathaderat@yahoo.com"
] | quizathaderat@yahoo.com |
6c29908375aec7e8ca785b2de2acb62fce70d984 | 4f2f83840bd46052ec2f4f185b6cf5118c1de1e0 | /src/jacko/ElasticsearchReporter.py | 7445f813c8eb2868d73ac5a7285d541be53b1d4a | [
"Apache-2.0"
] | permissive | oshai/jacko | e478aabe99772f78d8e587f920e3e6737fefa3da | 8257336e445248fcd911e1801cadff31f1c52f10 | refs/heads/master | 2020-03-07T00:46:55.479685 | 2018-02-07T08:40:11 | 2018-02-07T08:40:11 | 127,165,919 | 0 | 0 | Apache-2.0 | 2018-03-28T16:07:42 | 2018-03-28T16:07:40 | null | UTF-8 | Python | false | false | 2,318 | py | import logging
from collections import deque
from datetime import datetime
from elasticsearch import Elasticsearch
from elasticsearch import helpers
class ElasticsearchReporter(object):
"""
Reporter for elasticsearch
"""
def __init__(self, es_host, es_index, es_type):
"""
:param es_h... | [
"davramson@outbrain.com"
] | davramson@outbrain.com |
9293d417b66ad07a3eb2ecf542809cd46dfaa542 | 7cb322bfb75500e1627f0d6306789f0c3c59e83f | /django_eveonline_connector/signals.py | e09bb78e636047511d0260cf337617d72affeb7a | [
"MIT"
] | permissive | Demieno/django-eveonline-connector | 9e0cfc6b091d408407544d4486cc5d7ffcf9c3f4 | 7aa47440b5a4df19545c3499d63e39f202f46c61 | refs/heads/master | 2020-12-14T03:45:15.594067 | 2020-01-02T20:57:27 | 2020-01-02T20:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | from django.contrib.auth.models import User, Group
from django_eveonline_connector.models import EveScope, EveClient
from django.dispatch import receiver
from django.db.models.signals import post_delete, post_save
from django.db import transaction
from django.core.exceptions import PermissionDenied
import logging
logg... | [
"porowns@gmail.com"
] | porowns@gmail.com |
c6125ae773eede9c3ba61afefd5e224cea7ab8c6 | 73642bc97ba443b8ba8b046d857a86710f0be357 | /uav_backend/venv/bin/viewer.py | e9b2cb70feca396495d35de20ce7574f20e56fa8 | [] | no_license | UWICompSociety/UAV | 599477ec6115b5fdf3dfd75245b39484d58318e3 | 73ca72fe4297231c7cb16ba400a243f4f42dbbd6 | refs/heads/master | 2021-06-14T20:37:35.102471 | 2017-01-25T21:38:57 | 2017-01-25T21:38:57 | 73,525,000 | 0 | 1 | null | 2017-01-21T18:44:49 | 2016-11-12T01:48:39 | Python | UTF-8 | Python | false | false | 1,015 | py | #!/home/stone/Documents/Development/drone_backend/venv/bin/python2
#
# The Python Imaging Library
# $Id$
#
from __future__ import print_function
try:
from tkinter import Tk, Label
except ImportError:
from Tkinter import Tk, Label
from PIL import Image, ImageTk
#
# an image viewer
class UI(Label):
def... | [
"generalms@hotmail.com"
] | generalms@hotmail.com |
1ff454b6012dcf14030bb5b74f6cb73f3d5d6ae8 | 66956926f2e98610dabe68df81cb63b1814e1136 | /while.py | 283856d81645c9296cd0691f2903155f1d996c64 | [] | no_license | megadumpling411133/python-4hr-practice | c5be5f16472ad6ac5d134c6e08bf664d2e0fed3c | efb0af0d58f1a6343e29d6fed20478e547f54583 | refs/heads/master | 2023-07-24T02:22:37.980571 | 2021-09-02T08:29:16 | 2021-09-02T08:29:16 | 402,348,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | # True 執行 while
# 每執行迴圈一次 就判斷一次 是否進入下一迴圈
# 需要進行迴圈的句子 line: 8
# 需要結束迴圈的條件 line: 6
i = 1
while i <= 5:
print(i)
i += 1
# 相當於 i = i + 1
#
print("迴圈結束") | [
"boaz411133@gmail.com"
] | boaz411133@gmail.com |
f6d3e340501fec410b715d1833190efc7d8adbd5 | 11264216ba391738e87696c2d4c2c7c4600aa056 | /lecture5/lecture5/lecture5/urls.py | 1e60e2c877a38f66b5e85d31d0a6a56ec8f305d5 | [
"MIT"
] | permissive | CSUChico-CINS465/CINS465-Fall2016-Lecture-Examples | 2775e84e4152a402ce1602fea9dffe363a7028d7 | 332df2821aef74c6522c53278e28ceb27cbe2fe6 | refs/heads/master | 2020-06-30T00:57:58.322717 | 2016-11-08T01:19:40 | 2016-11-08T01:19:40 | 66,382,719 | 0 | 3 | null | 2016-10-06T16:34:13 | 2016-08-23T16:10:32 | Python | UTF-8 | Python | false | false | 817 | py | """lecture5 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"javawolfpack@gmail.com"
] | javawolfpack@gmail.com |
25dbc0f67dd0f2b7ad3b38e4f59b589d9570d866 | c9144edf6236e8214cc54f6c24f5689d11aff1a8 | /week10/yghoon/keypad.py | 500187cc35b217402b14fc2ada564727f2730e73 | [] | no_license | dohvis/kmu-sw-proj | 10aa60066c1a3a11e9f05f54effb22935c8c4381 | 8ab1996f84d80f322b64d35e71cb1a8f0d90c108 | refs/heads/master | 2021-08-23T13:15:46.962343 | 2017-12-05T01:44:56 | 2017-12-05T01:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from calcFunctions import factorial, decToBin, binToDec, decToRoman
numPadList = [
'7', '8', '9',
'4', '5', '6',
'1', '2', '3',
'0', '.', '=',
]
operatorList = [
'*', '/',
'+', '-',
'(', ')',
'C',
]
constantDics = {
'pi' : '3.141592',
'빛의 이동 속도 (m/s)' : '3E+8',
'소리의 이동 속도 ... | [
"the_basic_@kookmin.ac.kr"
] | the_basic_@kookmin.ac.kr |
9c215e8cbc214e6e7b6378270cc5ff87212eff55 | 3ad2a6b6f331d014240dbb6a73151e8794ac2580 | /drop_db.py | f2ece18e295f956b6ff9e2f97eca220212f9dc3d | [
"MIT"
] | permissive | akabbeke/sd44_server | f2a936b02d6f9dbe36dc69e23e70e87d37875d94 | 7755567c7b273a5ac23b2aacc52477dd4a11d290 | refs/heads/master | 2021-01-24T00:44:39.865360 | 2018-02-27T01:22:16 | 2018-02-27T01:22:16 | 122,781,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from app.db import User, UserSession, Deck, GameSession, UserGame
try:
UserGame.__table__.drop()
except:
pass
try:
GameSession.__table__.drop()
except:
pass
try:
UserSession.__table__.drop()
except:
pass
try:
Deck.__table__.drop()
except:
pass
try:
User.__table__.drop()
except:
... | [
"adam.kabbeke@shopify.com"
] | adam.kabbeke@shopify.com |
4d6c11b37582da309ce1c256d99677c3ea11decf | a4daf5ab04327809582947b340f01deeda6cae27 | /twitter_setting/main.py | ea9286188fd38ce07128f271b5aadcdb87983f20 | [] | no_license | pram11/twittbot_neko | b28ce009d58b974c303b9e7125b28e14ddcfb51b | 3acf635fff1b5ccde33bcbeed552501a3d8366e6 | refs/heads/master | 2021-03-12T22:45:06.099068 | 2015-07-29T13:02:44 | 2015-07-29T13:02:44 | 39,789,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #this is a main file
#Date: 2015.07.29
#functions
def auth_checker():
try:
f=open('/home/auth_data.txt')
except:
return "False"
f.close()
return "True"
def authfile_gen():
f=open('/home/auth_data.txt','w')
print("계정명을 입력하세요")
twitter_id=input()
f.write('twitter_acount:')
f.write(twitter_id)
#initializing... | [
"root@pramserver.(none)"
] | root@pramserver.(none) |
b6071550a8757396f8a3e7e546e3d1723dd14d45 | 8afbaafb18ab262f8ce4ddf1b49190da270f42e4 | /airquality/main.py | 82efa86d344203022c0c862a8f097988f5319b88 | [
"MIT"
] | permissive | borgel/homesensors | 5b1675baee1e42b46a10a10f4d10c03df3dc05d0 | 7d9464d1b99e0da53231ebb8c055b3819956db4c | refs/heads/main | 2023-01-12T10:10:01.339198 | 2022-12-27T19:12:29 | 2022-12-27T19:12:29 | 289,767,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | '''
assume that boot.py has connected us to the network already.
'''
import time
import json
import sys
import aqi
#import requests or urequests
try:
print("On target")
import urequests as requests
from machine import Pin
import machine
# init i2c for the servo controller
i2c = machine.I2C(scl=machi... | [
"iborgel@gmail.com"
] | iborgel@gmail.com |
2fb7cc835fea101c3497563093dc6b59a9d34543 | 1afa6c852dfc922d1a26a384d965976f31a87692 | /Common/ComputationalGeometry/Testing/Python/CSpline.py | e7feea105e904f590ff75a762cdd74fb4e846c28 | [
"BSD-3-Clause"
] | permissive | dgobbi/VTK | 631d037aacc7258861e70f77c586b01cd4ebff3f | 17f232ee440025c26bc78a897edef78e9fc78510 | refs/heads/master | 2021-01-04T22:27:46.611907 | 2013-03-01T19:44:02 | 2013-03-01T19:44:02 | 938,377 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,097 | py | #!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Now create the RenderWindow, Renderer and Interactor
#
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren1)
iren = vtk.vtkRenderWindowInteractor()
iren.S... | [
"nikhil.shetty@kitware.com"
] | nikhil.shetty@kitware.com |
195518b2127942e8b224cd8a4ad9559ea47a7994 | bcdff55657cde43cd5cf52e23612570a9b1f7d70 | /stream.py | 57d87f2ce4e256b6c6492d6b2efb0b764d1f03c5 | [] | no_license | hahakid/DJI_FPV_detector | 1c808411aaf3473ad8ae84a9e22f40c6f35c5708 | 9fcfe53f5655a5171244999c5dbc8d99fcc4c711 | refs/heads/main | 2023-07-03T09:11:18.885649 | 2021-08-12T06:01:06 | 2021-08-12T06:01:06 | 395,195,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,491 | py | from lib.usb_dev import USBDev
from lib.fifo_writer import FIFOWriter
import time
from utils.yaml_wrapper import YamlHandler
StatusInterval = 0.5
headset = USBDev()
headset.startDevCheckThread()
fifo = FIFOWriter()
fifo.Open()
# State globals:
BytesWritten = 0
LastStatus = 0
StatusData = dict()
StatusData['Msg'] = ... | [
"noreply@github.com"
] | noreply@github.com |
420be6e88a79c87d5b2471c3931dafe4d1dfad6a | 85aa478ce6d022adfaff9a0294c3175444138669 | /v8_llevatelo/report_odoo_extended/report_valorizado.py | 05aee0bb05a4d52bbaa9d2616fb8891da2438f4d | [] | no_license | odoopruebasmp/Odoo_08 | 915d08bd3ac6321e43fce56a3a32ad9095d8602a | b75f92b4216ca19fd31af005c3e3f7985b3a4c27 | refs/heads/master | 2023-06-26T18:14:27.576001 | 2021-08-03T15:53:04 | 2021-08-03T15:53:04 | 389,694,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,188 | py | # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
import xlsxwriter
from openerp import models, fields, api
import openerp.addons.decimal_precision as dp
from openerp.http import request
from openerp.addons.avancys_orm import avancys_orm
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT
class V... | [
"soporteerp@moreproducts.com"
] | soporteerp@moreproducts.com |
19cf17563fa00685b5c828c1130a6c8c86249292 | d492404ba79a07dd07cef2b12bc72ba39db4dd0f | /DH.py | 14f04c73eff1c1f59ba3bf26454e0eef9b473ef6 | [] | no_license | adnanahmadkhan/DSA | 65e690a620dee9d80b02e2df566cea323466a56d | 096f619c67b996479e8f9b7767e50eea3dfc2e81 | refs/heads/master | 2023-08-02T02:35:53.376548 | 2021-09-29T07:33:43 | 2021-09-29T07:33:43 | 273,975,763 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
## given N return smallest positive integer that whose individual digits sum to N
# def solution(N):
# i = 1;
# while (1):
# # Checking if number has
# # sum of digits = N
# if (getSum(i) ... | [
"noreply@github.com"
] | noreply@github.com |
a978123a22e03add3ef1b923fc1894200bbc2ca1 | a492345a90cc21c6d578b47084422be8fa21cff7 | /python_note/01_学习总结/01_常见数据类型及其方法/00_赋值、浅拷贝与深拷贝.py | 872a835ee434a219c467cf6d0f81b8dc67829f66 | [] | no_license | Hui-Yao/program_yao | b2afe1a50f4691d29d84933d47455172af472146 | b6cf16e1b7f0306b6bbafafc8863d7cb49687342 | refs/heads/master | 2022-12-10T09:14:08.951606 | 2022-11-24T14:11:14 | 2022-11-24T14:11:14 | 280,144,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
# Author = "Hui_Yao"
'''
是否有序:
有序:字符串,列表,元组
无序:字典,集合
是否可变:
不可变(hashable):数值,字符串,元组,frozenset
可变(unhashable):列表,字典,集合
'''
import copy
a = [9999999,'str',{1,2,3},[1,2],{'apple':10,'orange':5}]
print('赋值语句'.center(50,'*'))
b = a
print('地址容器:',bool(id(a)==id(b)))
print('不可变对... | [
"im_huiyao@163.com"
] | im_huiyao@163.com |
3e31028ea02e13ed861683bcf49f9ec907f166c3 | 94a16321a4c707b93fbe5873dfecab3668ef175d | /models.py | 83c0af448d45366fa12d72d03946589fcaf99f96 | [
"Apache-2.0"
] | permissive | kooruhana/UDA_Symptom | 21e348e14775972dae82d0482fa966c8a70dad8b | 301d8a30b1e77bd8800892233c870015ea31a7c7 | refs/heads/main | 2023-02-08T18:35:25.543667 | 2020-12-22T08:07:25 | 2020-12-22T08:07:25 | 323,559,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,376 | py | # Copyright 2018 Dong-Hyun Lee, Kakao Brain.
# (Strongly inspired by original Google BERT code and Hugging Face's code)
#
# 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.ap... | [
"yuchenr@gpu09.lrlab"
] | yuchenr@gpu09.lrlab |
6599068f64c16072b0fa763b3ab4cb7010f1c87f | da498dfc0aa2cbdff605b466833eedf45e792921 | /snpanalyzer/gui/ui/export/export.py | 95fbecbdd6d886e25c0b99c6d570647ad19db8b5 | [] | no_license | rosemory/SNP-Cable-Analyser | 0ffd63d6417f8e08ede5c155440c4ae1740ce4d5 | 4d77982ac82079340f941439feda889d78b30d53 | refs/heads/master | 2020-08-17T05:34:48.327055 | 2019-05-03T20:01:02 | 2019-05-03T20:01:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,743 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file './ui/export/export.ui'
#
# Created by: PyQt5 UI code generator 5.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_dialog(object):
def setupUi(self, dialog):
dialo... | [
"gabriel14_wii@hotmail.com"
] | gabriel14_wii@hotmail.com |
7ad16effbf0573035e7fd9c22a3868ca8d557766 | 9a4fc8275473e5349ad53344cb7abdf520f0bf81 | /agent/display.py | 26edbd67ff92fe9f06233c6b902866fabc4da3d7 | [
"MIT"
] | permissive | rraid/navi-v2 | 241b3bdb1c5bc96dd90c131cc3747593f31c60ed | 9b4bff86791cf81fc00f6c9bd16cb257f9949afb | refs/heads/master | 2020-06-25T03:22:19.032506 | 2018-02-16T20:45:05 | 2018-02-16T20:45:05 | 96,954,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | import numpy as np
from skimage.draw import circle, line
def displayVelocities(left, right, shape=(200, 200)):
# NOTE: For display purposes only! To use as a distribution, call np.flipud
# on the output
r = shape[0]
c = shape[1]
# draw a circle representing the robot shape
rr1, cc1 = circle(r / 2, c / 2, r... | [
"tyong_23@hotmail.com"
] | tyong_23@hotmail.com |
518a2c6ca4bceac33feaafdb5a17a819be7755de | 08c3b58b0fa0f967548b24eb7c10b600671874ec | /products/views.py | d00670e101449f3a13cba24c84176899bcb33983 | [
"MIT"
] | permissive | Danycraft98/E-Commerce | ba60f1bac7d40b55195f8d408b875f43f4a25e04 | a67f7a38cf1aaffc378d6f5e3e71e491b59ba618 | refs/heads/main | 2023-03-10T13:52:53.404773 | 2021-02-24T12:56:59 | 2021-02-24T12:56:59 | 326,517,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
| [
"noreply@github.com"
] | noreply@github.com |
f04a459dd40f7a7dd7f29dddda4228fe31546a3f | df83fd33c68c288eebe81272374e29ae3435b893 | /py/wikipedia/termite_wikipedia.py | 33a58a44b90f25b4f5b0eb1146576e7603aa8c2b | [] | no_license | chrisGoad/imagediver_sv | 78c22e1abc1bc1de90b69d2dfb3869070f4ad92a | cadeca455a21d8c56f5bd686ad3f448a4039f71b | refs/heads/master | 2021-09-07T12:05:07.766702 | 2018-02-22T15:57:47 | 2018-02-22T15:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,512 | py | """
cd /mnt/ebs0/termite/py/data
python wikipedia.py
sudo apt-get install python-setuptools
easy_install parsedatetime-0.8.7-py2.5.egg
easy_install http://code.google.com/p/parsedatetime/downloads/detail?name=parsedatetime-0.8.7-py2.5.egg
easy_install http://code.google.com/p/parsedatetime/downloads/detail?name=pars... | [
"cagoad@gmail.com"
] | cagoad@gmail.com |
e8856000312b1b6b5695059d865f35c13ff8fe8a | f41870393818306c73dfec3cae5b48293cb7bc8c | /gestion_condominios/apps.py | 514b74caa814e5255dc00dd33dddb9651d9c25ff | [] | no_license | CondominiosUP/backend | 14897d7cf7d26f02005aecacc8776c3ad1061b5a | c3ae1aea4a9527d7bd1f61b8b4f2cced335b19c7 | refs/heads/main | 2023-06-25T13:39:06.545281 | 2021-07-12T23:40:20 | 2021-07-12T23:40:20 | 376,415,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.apps import AppConfig
class GestionCondominiosConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'gestion_condominios'
| [
"a.guerrero.esp94@gmail.com"
] | a.guerrero.esp94@gmail.com |
a9434d2aa6368d8259029d3de1bd9374cec21a2a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_207/726.py | 511cfe53fe71d562c63735db511b437a68cc20d6 | [] | 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,481 | py | f = open('B-small-attempt2.in','r')
fo = open('result.txt','w')
t = int(f.readline())
# 0N, 1R, 2O, 3Y, 4G, 5B, and 6V.
d = [[],[2,6],[1,3],[2,4],[3,5],[4,6],[5,1]]
e = [[],[3,4,5],[4,5,6],[1,5,6],[1,2,6],[1,2,3],[2,3,4]]
st = 'XROYGBV'
for ti in range(t):
u = [int(x) for x in f.readline().split()]
#... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
4b30960f57b3a265e02d4fde39d422e3409d8a40 | 01f253df0a5dd12401ced52ea1c2714db47fd76d | /moegirl4kindle/items.py | e730b3e36b4fd45f86bc91c449afb568b83f3ce2 | [
"Apache-2.0"
] | permissive | ttimasdf/moegirl4kindle | 159dcffe2678dc7a3f1071f7ea1cf1c7e72dc195 | 9a49f8cc0aca60eec881fd9e18479ab6d96ff22c | refs/heads/master | 2020-12-02T17:44:40.929278 | 2017-07-07T00:26:21 | 2017-07-07T00:26:21 | 96,418,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class Moegirl4KindleItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"ttimasdf@users.noreply.github.com"
] | ttimasdf@users.noreply.github.com |
ad01e3291a9f6b0b3d1f3a4bbc5918a0dabbfdf3 | 612ced6df31f642a494e070615deafc5700375b4 | /Files/newline.py | c70b442034c37dac2cb359cdde98de0470634604 | [] | no_license | Tanushree28/Python | d37dda4b3e8d410518191af16a3268b28b63d03b | beb05c641a3f4b59a8a5c829daef94e66f86517f | refs/heads/master | 2023-01-01T22:46:34.401979 | 2020-10-27T11:50:44 | 2020-10-27T11:50:44 | 305,930,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | stuff = 'Hello\nWorld!'
stuff
'Hello\nWorld!'
print(stuff)
#Hello
#World!
stuff = 'X\nY'
print(stuff)
#X
#Y
len(stuff)
#3 | [
"tanu.nepal1@gmail.com"
] | tanu.nepal1@gmail.com |
fbc83e5441d86eae9df3febdf48c0c452e602c4d | 42b38dd5fe75148a5727760847fcea5597f9d52f | /user_auth/vendors/top/api/rest/TopatsTaskDeleteRequest.py | 207e384d7efe4f54e35fadab48d32f5622ed56de | [] | no_license | naitianliu/hwserver | 9d24c2ea405a6dcfafe7aa38e42a768e496608e6 | 06ddcb114cd4c1b4d8b647998b4b4637789d6b43 | refs/heads/master | 2022-12-14T10:59:43.509971 | 2016-12-18T15:38:29 | 2016-12-18T15:38:29 | 61,244,155 | 0 | 0 | null | 2022-12-07T23:39:07 | 2016-06-15T22:03:04 | Python | UTF-8 | Python | false | false | 310 | py | '''
Created by auto_sdk on 2014.03.27
'''
from user_auth.vendors.top.api.base import RestApi
class TopatsTaskDeleteRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.task_id = None
def getapiname(self):
return 'taobao.topats.task.delete'
| [
"naitianliu@gmail.com"
] | naitianliu@gmail.com |
82714db55279561d5d1a233e28f4e9ca74489587 | 62ad6baf3b6ff18346ea72741da225fcb05a6e00 | /superlists/settings.py | 39fcfd31efb3844f6982934450f068227a8f355a | [] | no_license | simacna/functionalTesting | 9851588b53013c750c7b11ffbe8a11b4856334db | 105551b538614aeaeda5d4b86e4fb974d763a53a | refs/heads/master | 2020-04-09T20:09:16.805614 | 2014-11-30T23:27:07 | 2014-11-30T23:27:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | """
Django settings for superlists project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)... | [
"simacna@gmail.com"
] | simacna@gmail.com |
fe61304fe4033af88b3c830b79abf6330d33530b | 1a39b0566e5264bf6b91b8e8e848e69f2a479412 | /sonic-pcied/setup.py | b5b2577ae501b43a83d39bc4c3db4ab107465f8b | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | bratashX/sonic-platform-daemons | c7bbf4bd5a2c48d3680a3fd564b9f671c37b905a | 096920273b685e451bc20035a0e3ab8dbba7df31 | refs/heads/master | 2023-01-12T14:38:26.908944 | 2020-09-09T22:18:17 | 2020-09-09T22:18:17 | 285,798,366 | 0 | 0 | NOASSERTION | 2020-09-14T10:32:01 | 2020-08-07T10:07:23 | Python | UTF-8 | Python | false | false | 961 | py | from setuptools import setup
setup(
name='sonic-pcied',
version='1.0',
description='PCIe check daemon for SONiC',
license='Apache 2.0',
author='SONiC Team',
author_email='linuxnetdev@microsoft.com',
url='https://github.com/Azure/sonic-platform-daemons',
maintainer='Sujin Kang',
main... | [
"noreply@github.com"
] | noreply@github.com |
532cc4ddfc202f25fa9ed7132ee9c92ef072a74f | dc51e4714820d991e7d0e94b3e9eac4dbc67eea7 | /历史练习1120/ORM/ORM/urls.py | a9cd9beec8294e07764e7493c49273e1e3ed6c17 | [] | no_license | ruoxiaojie/Django | 537d27abe9ebb85e0dfc69585f318a87e7514a70 | 92b88600953cd4ff743032cab3d4785437c949e0 | refs/heads/master | 2021-01-15T22:18:56.033883 | 2018-03-09T06:15:46 | 2018-03-09T06:15:46 | 99,894,862 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | """ORM URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"475030894@qq.com"
] | 475030894@qq.com |
a55c909ea302272ae58bf65f53197abc7929f606 | 45a153a8e27b552d82d137bd94f2d5d0aec3c889 | /GoogleCLoudwithTwilio/google-cloud-sdk/lib/surface/app/gen_repo_info_file.py | 6b22de0c01c26795d53203fb8e81f01af51444b1 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Pooshan/App-using-Twilio | 84bc0be1f091c678528bdf161c9fbb0af617fc0e | a6eea3f40ef9f22a7ab47c1f63b90deaa2620049 | refs/heads/master | 2022-11-23T23:56:49.754209 | 2016-10-01T18:47:25 | 2016-10-01T18:47:25 | 69,719,320 | 0 | 1 | null | 2022-11-02T19:48:20 | 2016-10-01T04:26:37 | Python | UTF-8 | Python | false | false | 4,572 | py | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"pooshan.vyas@gmail.com"
] | pooshan.vyas@gmail.com |
97ae75cc4d92f8ac1933d2161a26016998fd94bb | 807361a30e3686e1f737af65f39b1cd24fdf47af | /trunk/shared/SConstruct | ceab0a61f36b22f46e1ddf8cecf131d39e284649 | [] | no_license | BackupTheBerlios/nixstaller-svn | d1be8fe921dc9bd2aeb6ce73065dbf39fe588d28 | 776c22ca0ae867a00d78dc1ad6e3eb5a7ea45117 | refs/heads/master | 2021-03-13T00:06:19.965779 | 2010-01-10T12:28:24 | 2010-01-10T12:28:24 | 40,807,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,814 | # -*- coding: utf-8 -*-
import sys, platform, os
EnsureSConsVersion(0,96,91)
opts = Options()
opts.Add('CC', 'The C compiler', 'gcc')
opts.Add('CXX', 'The C++ compiler', 'g++')
opts.Add('OS', 'Manually overide target OS', '')
opts.Add('CPU', 'Manually overide target arch', '')
env = Environment(options = opts, CCFL... | [
"rickhelmus@4b93ed76-1a02-0410-86fb-e1fd6f5b242a"
] | rickhelmus@4b93ed76-1a02-0410-86fb-e1fd6f5b242a | |
f5141b6705ae0022f2e749f0c17eefee56c7a02a | 770e1ecfbc6d97a86583100f2903671e7474d707 | /tests/unit/test_record.py | 5d60c246a106becb0d338eff87448803927f7b22 | [] | no_license | philipcristiano/pms | c4f09c8e10739ea665eaaebbccf96a1baba2bf37 | 8a71d4dcd406b275b077e4b7a16f66be6d3a774a | refs/heads/master | 2020-05-30T21:37:19.154113 | 2011-09-05T22:50:09 | 2011-09-05T22:50:09 | 2,093,347 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | from dingus import Dingus, DingusTestCase
import pms.app as mod
from pms.app import record
class WhenRecordingEvents(DingusTestCase(record)):
def setup(self):
super(WhenRecordingEvents, self).setup()
self.returned = record()
def should_json_loads_request_data(self):
assert mod.json... | [
"git@philipcristiano.com"
] | git@philipcristiano.com |
b1967d3e0558202aea64db2d93f90760ba779a18 | 0f2a123478c6fb5941c4180c76fa663833d3c764 | /service/neighborhood.py | dfeeab71407cb8d5ab381e80c1088ed2c3ee5e0f | [
"Apache-2.0"
] | permissive | curtislisle/EntityAlignLarge | 77fc650251724dc5eec9dbde13d34b91dd0d62b9 | d629ef14b5f6abe3f0c758f8df92139dc9d01f07 | refs/heads/master | 2021-01-18T20:32:05.074741 | 2015-07-02T01:36:13 | 2015-07-02T01:36:13 | 35,761,970 | 0 | 1 | null | 2015-07-02T01:36:13 | 2015-05-17T10:32:24 | JavaScript | UTF-8 | Python | false | false | 3,139 | py | import bson.json_util
from bson.objectid import ObjectId
import json
from pymongo import MongoClient
def freeze(rec):
return (str(rec["_id"]), rec["data"]["id"], bson.json_util.dumps(rec))
def process(frozen):
rec = json.loads(frozen[2])
processed = {"key": rec["_id"]["$oid"]}
processed.update(rec[... | [
"clisle@knowledgevis.com"
] | clisle@knowledgevis.com |
c6d4714404e20d2ce4b3f8d8d36491dd1a9377a8 | 94216c1d3dd2dc47bc0fea79fbbf1833d49626a9 | /models.py | 68e6687207e9a6f76f51df6edee9f41584213a88 | [] | no_license | WLSheng/card-keypoint | c245def2977067957213403da1eb6d28c9560f5b | 8f7ee735a5bf8b7ff35d273c28c02ce991960955 | refs/heads/master | 2023-03-13T05:50:06.086314 | 2021-03-02T03:26:35 | 2021-03-02T03:26:35 | 313,590,621 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,688 | py | import torch
import torch.nn as nn
try:
from torch.hub import load_state_dict_from_url
except ImportError:
from torch.utils.model_zoo import load_url as load_state_dict_from_url
__all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101',
'resnet152', 'resnext50_32x4d', 'resnext101_32x8d',... | [
"wulisheng@heils.cn"
] | wulisheng@heils.cn |
38a29097fb677afe38a3f4e24a7ca69dea1596b0 | 2c872fedcdc12c89742d10c2f1c821eed0470726 | /pbase/day06/jiangyi/day06/day05_exercise/99.py | 98eb958a8ab699da85a2d9454f6e34a6e82a1522 | [] | no_license | zuigehulu/AID1811 | 581c3c7a37df9fa928bc632e4891fc9bafe69201 | 10cab0869875290646a9e5d815ff159d0116990e | refs/heads/master | 2020-04-19T16:33:04.174841 | 2019-01-30T07:58:24 | 2019-01-30T07:58:24 | 168,307,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # 1. 写程序打印九九乘法表
# 1x1=1
# 1x2=2 2x2=4
# 1x3=3 2x3=6 3x3=9
# ....
# 1x9=9 .......... 9x9=81
for x2 in range(1, 10):
for x1 in range(1, x2 + 1):
print("%dx%d=%d"%(x1, x2, x1 * x2), end=' ')
print() # 换行
| [
"442315617@qq.com"
] | 442315617@qq.com |
524335e700d475bfb7107397fec159293f346c4a | 6c139b12bd39fba86d27ec0740cd18f02c39ad32 | /.venv/bin/pygmentize | 51acce24d38c31f8b52d869e6f916bab2f154903 | [
"MIT"
] | permissive | imoisharma/Proteomics | f670df4135735731e95b09e80046715dd4705949 | d2dcb9d6581a6a2f3039fa878abb0ca1f4c42b21 | refs/heads/main | 2023-01-01T08:08:22.268819 | 2020-10-28T22:49:51 | 2020-10-28T22:49:51 | 306,896,766 | 0 | 0 | MIT | 2020-10-24T16:53:24 | 2020-10-24T14:05:35 | Python | UTF-8 | Python | false | false | 262 | #!/home/moi/My-Bucket/BMS/proteomics/Proteomics/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"imoisharma@icloud.com"
] | imoisharma@icloud.com | |
a7f3d671732712ff530d79f5d82959f4fb440ad0 | df1797e66bda35240ed29d9e92ff589d1c0345c6 | /CodeChallenge/api/tests.py | 51556cbe88e1e970914956382f013f63a7b4337b | [] | no_license | mkhilai/CodeChallenge | 2bb5a4437f74ea5d46181830679ad946cd736021 | ca6265eab4fe460648f4242ce45683c3aecb5111 | refs/heads/master | 2020-04-04T14:42:42.614843 | 2018-11-07T00:41:53 | 2018-11-07T00:41:53 | 155,766,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,124 | py | from rest_framework.test import APITestCase
from rest_framework import status
from CodeChallenge.api.models import Users, Companies
from rest_framework.authtoken.models import Token
class UsersTest(APITestCase):
def get_user_data(self):
return {
"username": "test_user",
"email": "test_user@test.com",
"pas... | [
"nikita.khilay@gmail.com"
] | nikita.khilay@gmail.com |
0eedd09812bb4c2cbf5a57643d7aac8c1c200214 | f51c6d0cebb27c377ce9830deec4b727b9b2ee90 | /AI/05_tictactoe/01object_grid.py | b3c72f860a52becf43b6c430e74fbbe1f3bc4994 | [] | no_license | dbbudd/Python-Experiments | 1c3c1322583aaaf2016a2f2f3061e6d034c5d1c8 | b6d294bf11a5c92b8578d16aa2f63cc27fc47b07 | refs/heads/master | 2020-04-17T02:21:36.693593 | 2019-01-17T00:18:34 | 2019-01-17T00:18:34 | 166,130,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | #!/usr/bin/env python
import numpy as np
import itertools
class gameboard(object):
def __init__(self):
#player 1 puts a "X", player 2 puts a "O"
self.g = [[0,0,0],[0,0,0],[0,0,0]]
self.grid = np.array(self.g)
print(self.grid)
def checkWin(self):
if ((self.grid.... | [
"dbbudd@gmail.com"
] | dbbudd@gmail.com |
092fd67ed334bb3399c9ae96c5673c7487a8ca76 | 31bb411ccdc1581e5a5c9e8acd7fc7c5ffde1067 | /prosper/datareader/intrinio/auth.py | e80a448395a989d2f2f94b1c20e579d053708ca7 | [
"MIT"
] | permissive | EVEprosper/ProsperDatareader | c58b645bab80cbb946cfddd657921a9dadbf403b | 31f0d77074c21222161774f4d653326925611167 | refs/heads/master | 2021-01-01T19:45:39.506553 | 2018-06-13T16:18:03 | 2018-06-13T16:18:03 | 98,676,957 | 0 | 1 | MIT | 2019-01-22T06:09:17 | 2017-07-28T18:32:41 | Python | UTF-8 | Python | false | false | 2,983 | py | """prosper.datareader.intrinio.auth: handle authentication/validation"""
import requests
from .. import exceptions
from .. import config
BASE_URL = 'https://api.intrinio.com/'
class IntrinioHelper(object):
"""parent class for handling requests to Intrininio
Notes:
See https://intrinio.com/account fo... | [
"locke.renard@gmail.com"
] | locke.renard@gmail.com |
64a6338213d40e121c24158be7463e0e13e8cb6d | b54d2063d71bd3357685795b089311036a75166f | /main.py | 7f169124da25d61515a693f9d389d5ec35d4bd1e | [] | no_license | kkwhatnow/bottwitch | 3537db3eb2a78fa7e2b271ec0bc5d1a27021c679 | d1e8365290315ea8c9259a3cef4628ae4b031a68 | refs/heads/main | 2023-07-14T13:35:14.227644 | 2021-08-28T22:29:35 | 2021-08-28T22:29:35 | 400,900,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from clients import *
from clientResponse import *
import time
from pyramid import *
from fileBuilder import *
#print("it works")
login()
makesquests()
makesrewards()
makesfile()
#jkdfjk()
def mainfile():
while True:
respondtoclinet()
mainfile()
"""threads = []
for _ in range(3):
t = thre... | [
"noreply@github.com"
] | noreply@github.com |
8ee49add3d08eb326c2b2eb0441beefb3936465b | c5471ada76f276752255b34b910da799dc29d804 | /2016/day/11.py | 0214968c95823e0b526e4725bbb4ea03394a88a3 | [] | no_license | MasterMedo/aoc | 3c75a3b02ed6e65f9a5be2f393af884c79914209 | 42ccde20f31b99bc9e49248a58b732dca5972c69 | refs/heads/master | 2022-12-22T13:22:59.562745 | 2022-12-22T06:29:39 | 2022-12-22T06:29:39 | 112,675,225 | 31 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | import re
from itertools import combinations, chain
from heapq import heappop, heappush
generators, microchips = {}, {}
with open('../input/11.txt') as f:
for floor, line in enumerate(f):
for microchip in set(re.findall(r'\w+(?=-comp)', line)):
microchips[microchip] = floor
for genera... | [
"mislav.vuletic@gmail.com"
] | mislav.vuletic@gmail.com |
5e02d927fdadf8a89e5d725df1edeb3576b3080f | ef3d6748ac3db8379608eafe179821aa17bd6e7c | /polls/models/__init__.py | 7a510ad709325948cacc17cd742540ef1d6af1c0 | [] | no_license | itsabisek/polls-app | e177f31f6025448ff426647ed35aafd5fb7d045b | 2bd0fd905f1eec01793079f345b3d590118da37a | refs/heads/master | 2021-06-30T10:07:12.270369 | 2019-11-07T14:41:03 | 2019-11-07T14:41:03 | 209,048,329 | 0 | 0 | null | 2021-01-05T16:11:33 | 2019-09-17T12:30:15 | JavaScript | UTF-8 | Python | false | false | 112 | py | from .User import User
from .Answered import Answered
from .Question import Question
from .Choice import Choice
| [
"avisekmishra81@ymail.com"
] | avisekmishra81@ymail.com |
fc87bfb219fe5d556070924687b1d7cc601a63d7 | e86479593abdf5273f4305c145a538c0614a4d25 | /device_tracker.py | c48c459fc00474a4bed2d3848d7fbe2c1c852819 | [] | no_license | mvn23/bluetooth_dbus_tracker | c841a4ecc2a6255a652170f7516f76e1a83b91a1 | dbcfbd6627db7299f78678d45918bd888f3ad1d9 | refs/heads/master | 2023-03-08T16:07:18.676139 | 2021-02-27T12:35:35 | 2021-02-27T12:35:35 | 342,854,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,549 | py | """Tracking for BT and BT LE devices."""
import logging
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.device_tracker import PLATFORM_SCHEMA, see
from homeassistant.components.device_tracker.config_entry import ScannerEntity
from homeassistant.components.de... | [
"schopdiedwaas@gmail.com"
] | schopdiedwaas@gmail.com |
7bf579b086390d6de58fca58958ead5d8c3f1478 | be59ca148b30d09fec265b287fc4e6501b55ea9f | /2020-10-09_141.py | 18afe5d8e4ddcf275c9927f3685e23785d2df1de | [] | no_license | zeen-du/leetcode | 35dc68c76447d52da9b678eac1626d25188f8042 | fad5d5121116176ac9187c5efdbf91ee7942f352 | refs/heads/main | 2023-01-21T13:50:19.147533 | 2020-11-27T06:56:24 | 2020-11-27T06:56:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
"""
给定一个链表,判断链表中是否有环。
如果链表中有某个节点,可以通过连续跟踪 next 指针再次到达,则链表中存在环。 为了表示给定链表中的环,我们使用整数 pos 来表示链表尾连接到链表中的位置(索引从 0 开始)。 如果 pos 是 -1,则在该链表中没有环。注意:pos 不作为参数进行传递,仅仅是为了... | [
"duzeen@metrodata.cn"
] | duzeen@metrodata.cn |
d7b9041bc53a89ae60f21bc5562483eb05692a1a | 7b20e2f86c2bb2145ae9ca5bcd4b9ad1566e79b0 | /ABC/ABC134/D.py | 53b03aa78f43b3f56626b735bd9b2b2e47171ff2 | [] | no_license | pto8913/KyoPro | 5f5e769960dfec73af5b0f338f32659ff067094b | 29ebc30a3d45fea273cb9034fba8311673a406dd | refs/heads/master | 2021-06-13T16:43:40.275854 | 2021-03-23T00:02:25 | 2021-03-23T00:02:25 | 174,684,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | N = int(input())
A = list(map(int,input().split()))
box = [0] * (N+1)
res = []
for i in range(1, N+1)[::-1]:
s = 0
for j in range(1, N // i):
s += box[(j+1)*i]
if s % 2 != A[i-1]:
box[i] = 1
res.append(i)
print(len(res))
print(*res)
| [
"noreply@github.com"
] | noreply@github.com |
e8c235b55e0f91859013f3f878d062126d0be59f | 1cb2e45c87c1b961d33cfcbed95f765ca3be15b1 | /0x22-primegame/main_8.py | b78832497631e5415d3cb06df9fadfd917647b07 | [] | no_license | icculp/holbertonschool-interview | a93b5e213861c3349733df1042bc7c323e8129ad | e49ac9e2f3dc356a9cae177472ac54c2e55edabf | refs/heads/main | 2023-07-26T08:41:17.638936 | 2021-08-26T17:09:29 | 2021-08-26T17:09:29 | 319,488,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #!/usr/bin/python3
"""
Main file for testing
"""
isWinner = __import__('0-prime_game').isWinner
nums = [0] * 10000
for i in range(10000):
nums[i] = i
print("Winner: {}".format(isWinner(10000, nums)))
| [
"icculp@gmail.com"
] | icculp@gmail.com |
0875ad9b84c98e6d190145dc83d3ad6fcc8645a0 | 57003fa0072d058e12b421cbcead3222902592b3 | /anken_project/cms/admin.py | 0c2736cd2f2094a37dd13bcbbba8b2246c6feea8 | [] | no_license | ryuji-nakazato/repositry | 3e74ec6c9cd3fbd7c519e16054508b5eff5c5d3c | 0a26ee6bb2e573e9732635fb95f30b30da5fbf40 | refs/heads/master | 2023-01-06T22:25:27.416710 | 2020-06-17T02:46:26 | 2020-06-17T02:46:26 | 241,256,857 | 0 | 0 | null | 2023-01-05T11:21:10 | 2020-02-18T02:43:57 | JavaScript | UTF-8 | Python | false | false | 502 | py | from django.contrib import admin
from cms.models import Anken, Sintyoku
# Register your models here.
# admin.site.register(Anken)
class AnkenAdmin(admin.ModelAdmin):
list_display = ('id', 'enduser', 'hansha',)
list_display_links = ('id', 'enduser', 'hansha',)
admin.site.register(Anken, AnkenAdmin)
class ... | [
"zhonglilonger@nakasatoryuujinoMacBook-Pro.local"
] | zhonglilonger@nakasatoryuujinoMacBook-Pro.local |
d547f14fcaba4d176c5a6172380cb414008e219d | f4d4e27f9f0d8c0f04704d1bfb00e38cfddb3a26 | /Week 4/Face Recognition Project/face_data_collect.py | 9056fa8b8f89409ae0755dc72a26e596533403f9 | [] | no_license | Vishnusankar98/AI-Mafia---Machine-Learning | 8ec9a0cfdf5e66b9054beab5c735fea26746f87e | 7a779d2eac991b7131d238491431a73b9023370d | refs/heads/main | 2023-05-16T20:09:26.455665 | 2021-06-05T04:42:29 | 2021-06-05T04:42:29 | 368,425,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | # Write a Python Script that captures images from your webcam video stream
# Extracts all Faces from the image frame (using haarcascades)
# Stores the Face information into numpy arrays
# 1. Read and show video stream, capture images
# 2. Detect Faces and show bounding box (haarcascade)
# 3. Flatten the largest face i... | [
"avishnusankar5@gmail.com"
] | avishnusankar5@gmail.com |
edf4cba995d650f1f17a138ccd8caa31d2ef8754 | d59a4cb6a587cda79d22362356a0a567aa392b0a | /cluster_configs/ctmr_gandalf/slurm-submit.py | 3050c19fd0ade6ddedb3954b23bfa9658cd3d05e | [
"MIT"
] | permissive | marcelladane/stag-mwc | cdf885a419ff3393f86cf417c7c0dc1518ec27b7 | 26729c2475952e9b511b20d1e95b565764b974d2 | refs/heads/master | 2023-05-12T08:36:10.134766 | 2021-03-04T10:02:13 | 2021-03-04T10:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,907 | py | #!/usr/bin/env python3
import sys
import re
import argparse
import subprocess
from pathlib import Path
from snakemake.utils import read_job_properties
parser = argparse.ArgumentParser(add_help=False)
parser.add_argument(
"--help", help="Display help message.", action="store_true")
parser.add_argument(
"positi... | [
"noreply@github.com"
] | noreply@github.com |
5bb2b74aa55d11d9b44d494e10be4f68c00ff231 | 919e74f05976d9ea5f28d5dcf0a3e9311a4d22b2 | /conans/client/conf/compiler_id.py | b7c41a8a1eea9e2e37c4739768e140e40f232885 | [
"MIT"
] | permissive | thorsten-klein/conan | 1801b021a66a89fc7d83e32100a6a44e98d4e567 | 7cf8f384b00ba5842886e39b2039963fc939b00e | refs/heads/develop | 2023-09-01T12:04:28.975538 | 2023-07-26T10:55:02 | 2023-07-26T10:55:02 | 150,574,910 | 0 | 0 | MIT | 2023-08-22T14:45:06 | 2018-09-27T11:16:48 | Python | UTF-8 | Python | false | false | 9,047 | py | import os
import tempfile
from six import StringIO
from conans.client.runner import ConanRunner
from conans.model.version import Version
from conans.util.files import rmdir
GCC = "gcc"
LLVM_GCC = "llvm-gcc" # GCC frontend with LLVM backend
CLANG = "clang"
APPLE_CLANG = "apple-clang"
SUNCC = "suncc"
VISUAL_STUDIO = "... | [
"noreply@github.com"
] | noreply@github.com |
2c87cee9e1d13a9368205d2240e3e31a642a0792 | 960a04c253323c39a4e479ef301c8f90ac887ee4 | /iterations.py | ee2c2068ebc45065e887728cc0d2964ef8862581 | [] | no_license | nrsalinas/kba_colombia | b3bacefb38e4ee429a3ab27c5d387893bf05eec4 | f35ca5a07d7df1c4e654289fae365f5f4ec29069 | refs/heads/main | 2023-03-29T15:39:57.632946 | 2021-04-08T15:04:55 | 2021-04-08T15:04:55 | 355,630,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py | #!/usr/bin/env python
# coding: utf-8
# # Candidate KBA delimitation of Colombian flora
#
# ## Analysis iterations experiments
#
# These experiments perform several Ackbar analyses to explore the effect of the number of search repetitions.
# In[1]:
import subprocess
from shutil import rmtree
from os import walk, ... | [
"nrsalinas@gmail.com"
] | nrsalinas@gmail.com |
53a246f0ef21f6823dbb2732c45f77dba9003be1 | c32a7ac0debdcbbf7f60f886a9a5a19162dcfac0 | /web/config.py | c21205973caacccb332dcdcdda9e1182bf164e95 | [] | no_license | JoeNaso/slackbot | 33da59150e96ff542e92cfec853e1f0d3b7b1eb7 | 86f421a4065201c00968135e49954c838f8f6979 | refs/heads/master | 2021-01-16T23:17:56.620323 | 2018-04-28T15:56:21 | 2018-04-28T15:56:21 | 60,014,267 | 0 | 0 | null | 2018-04-28T15:56:22 | 2016-05-30T13:58:37 | Python | UTF-8 | Python | false | false | 281 | py | import os
class BaseConfig(object):
"""
Some basic subclassing for different configuration defaults
"""
DEBUG = os.environ.get('DEBUG', True)
APP_ROOT = os.path.dirname(os.path.abspath(__file__))
SLACK_WEBHOOK_SECRET = os.environ.get('SLACK_OAUTH_TOKEN')
| [
"joe@pymetrics.com"
] | joe@pymetrics.com |
5ffb95cfb317427c640fc91a21ca697de1737357 | 3476bd39324b6231db7a52204b9ad7c3bd7c73e0 | /MelodicManager/MelodicManager/settings.py | c38641192de3d9b80d45b3a201dbc66dc53f2eb7 | [] | no_license | V3rita2/django-fett | 9411fa8569353fe8642b95333a824bd55455aced | e1beaca967c48db4ac8b8a237bb4faf323143767 | refs/heads/main | 2023-09-04T10:32:26.930301 | 2021-11-13T01:29:56 | 2021-11-13T01:29:56 | 425,306,749 | 0 | 0 | null | 2021-11-13T01:29:57 | 2021-11-06T17:32:24 | Python | UTF-8 | Python | false | false | 3,305 | py | """
Django settings for MelodicManager project.
Generated by 'django-admin startproject' using Django 3.2.9.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from ... | [
"rose.daemon.belmont@gmail.com"
] | rose.daemon.belmont@gmail.com |
3c4037dbf22565124a5362f5276316ae33b62c84 | 75c89d669f8d4d7805ca69aae4c7c403aba9ba4d | /PGCD.py | f1c76c9c6c49836e1d0db7c20f3d10de15a9463e | [] | no_license | sybile2/programmes-simples | 934e9565a6b5eac7a66a247e23af2b4737d21257 | f6a1e591931668635dd67c4dbde3a1751d9fcee4 | refs/heads/master | 2022-04-04T09:40:22.805518 | 2020-02-08T03:27:33 | 2020-02-08T03:27:33 | 114,678,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | #calcule le pgcd de deux nombres entiers
n = 490
m = 490
r = 12
pgcd = 1
if m == n:
pgcd = n
print ("Le PGCD est : ",pgcd)
else :
if m > n :
t = n
n = m
m = t
while r != 0:
r = n % m
if r != 0:
n = m
m = r
if r == 0:
pg... | [
"sybile.nivon@gmail.com"
] | sybile.nivon@gmail.com |
20b70283e300b633b278584814e00856748233ef | 560a8e87d0cec7023f09b0b0f26a3aabb4c19591 | /main.py | add4eac7882d12a7f788f777f2daeb0c78cfde8e | [
"MIT"
] | permissive | kcsaff/tuneharvest | b898d19af2c88e6493dd8b719f715bd2b3722010 | a571ba544390f37cdfce8bf758b015773898e052 | refs/heads/master | 2021-01-01T05:11:31.009480 | 2017-06-27T00:55:19 | 2017-06-27T00:55:19 | 59,797,003 | 0 | 0 | null | 2017-06-27T00:06:40 | 2016-05-27T02:13:34 | Python | UTF-8 | Python | false | false | 76 | py | from tuneharvest.commands import main
if __name__ == '__main__':
main() | [
"kc@saff.net"
] | kc@saff.net |
ef6edffa5739159ce79c62b1b314465c017e7217 | 3f4789c1479f7c6b34ebda4e0a0cdb7277adc65d | /in.py | 71b6d8d92a266a3b630491400f16a10935b42439 | [] | no_license | 2923mark/Python_learn | a8932f80fe12ccc5d7d0e55b1608e801987ed4f7 | 405bcb70deb1c9ac6477de37e6e05b55e9ef2e3a | refs/heads/master | 2021-01-01T06:27:15.917088 | 2013-08-13T18:59:45 | 2013-08-13T18:59:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | #!/usr/bin/python
Users = ['mlh', 'foo', 'bar']
raw_input ('Enter your user name:') in Users
| [
"mark.andrew.nelson@gmail.com"
] | mark.andrew.nelson@gmail.com |
b037acec6b8d10e4dd776eb91212241541d109c2 | a6ec6c2c9ba9c8cdea64062faad1be9e75d7d529 | /keyboard_small.py | b64d23628bc132c252d3af162695bc523f1b49f2 | [] | no_license | lamer112311/FTG-Modules | 955c25b9b99a4ef9b46aa32b3cd8ede3b36e755c | 146917515722161b07c89814d35204f4290b6ec2 | refs/heads/master | 2023-01-06T22:00:38.407464 | 2020-11-08T08:21:30 | 2020-11-08T08:21:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115,354 | py | # Friendly Telegram (telegram userbot)
# Copyright (C) 2018-2019 The Authors
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) ... | [
"dima.skolpin@icloud.com"
] | dima.skolpin@icloud.com |
40e357101466673c750b5c7a40a42da48c200782 | 9a80f249143c33d29441132a0919535e91d24d0f | /deui/html/view/samp_element.py | 51c44c004e284bcc16672b48c8c9d9c7d2852bf0 | [
"MIT"
] | permissive | urushiyama/DeUI | b7d237989466263acb33756b99e7a594d10d69d7 | 14530d2dae7d96a3dee30759f85e02239fb433c5 | refs/heads/main | 2023-06-08T00:37:05.329449 | 2021-06-23T12:39:48 | 2021-06-23T12:39:48 | 376,471,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from .element import Element
class Sample(Element):
"""
Represents deui-examples output from computer program.
"""
def __str__(self):
return "samp"
| [
"aswif10flis1ntkb@gmail.com"
] | aswif10flis1ntkb@gmail.com |
739a10dd59b002a18843a90b852d29a3bd234b9b | e41b573b7d2822ba00123e28d1ad6fe39db0631f | /portal/editstore/decorators.py | b12b9ac81dbf47941368253f1213fefb119f6633 | [] | no_license | epodreczniki/epodreczniki-portal | 1e7fc583bd24dc6962fefdc2a2002835a39e122d | 3f3d033c87a186d43cecd119ffe1172d7720c638 | refs/heads/master | 2021-01-16T21:46:12.400414 | 2017-01-31T21:24:35 | 2017-01-31T21:24:35 | 64,475,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,246 | py | # coding=utf-8
from __future__ import absolute_import
from django.shortcuts import render
from store.exceptions import NiceException
import functools
from editstore.objects import drivers, SpaceDriver
from editstore import models
from django.shortcuts import get_object_or_404
from editstore import exceptions
from comm... | [
"kontakt@epodreczniki.pl"
] | kontakt@epodreczniki.pl |
5f3b2638cbd8df32ed4e2b57105ba1af2885f654 | f54b1b10ca09cadae5804bed1adc0775b0114840 | /composite.cgi | 461f56847553f0e8153e8e6689e7f69d7da8cb3a | [] | no_license | epw/floor-hole | cbb7739b54fd9a69fd32a0e51ff9b2e09b4a4179 | a42545b48cb81a13238832a7bcfd79cff691c1c2 | refs/heads/master | 2021-08-18T20:56:09.181217 | 2017-11-23T20:09:25 | 2017-11-23T20:09:25 | 111,725,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | cgi | #! /usr/bin/env python
import sys
from PIL import Image
import cgi, cgitb
print "Content-Type: image/png\n"
background = Image.open("space.png")
bw, bh = background.size
img = Image.open("floor-hole.png")
img = img.convert("RGBA")
data = img.getdata()
h = img.size[0] * bh / bw
background = background.resize((img.... | [
"ericwillisson@gmail.com"
] | ericwillisson@gmail.com |
e552d5c197de611fdd819ae15f6732fb0d29ff68 | 5b0696875b3360a7f4d1265940cd495d2c355b62 | /other_algorythms/sudoku_checker.py | 38f7717185bc8988dfeb5c822c56903f2fd3bc75 | [] | no_license | MWalega/my_projects | 178e84f7cdd4f984180adad97a34c7ac7ce0ed35 | 9b82e9505651e648056e756c541758e9a15c4c4f | refs/heads/master | 2023-03-07T22:30:57.870290 | 2021-02-20T01:07:24 | 2021-02-20T01:07:24 | 282,513,686 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | solved_sudoku = [
[4,8,9,2,6,3,1,5,7],
[1,3,6,5,7,8,2,9,4],
[5,7,2,4,9,1,6,8,3],
[8,1,9,3,4,2,7,6,5],
[6,5,3,8,1,7,9,4,2],
[2,4,7,6,5,9,8,3,1],
[7,6,1,9,3,5,4,2,8],
[9,8,5,1,2,4,3,7,6]... | [
"noreply@github.com"
] | noreply@github.com |
fcea22db7770ed2e8379cf7dad72c0c07bc46356 | 87d72279dcc9dd89549d61356124bc41e1b3d761 | /alacode/migrations/0001_initial.py | 34785c09a7b094afee0dd3d3cbbfef6726da5ca6 | [
"MIT"
] | permissive | vanatteveldt/alacode | 746f0027ebf0701731ce6557292a3bcb161ce232 | 58463967e2dca5ece229ea89480b2422171790bd | refs/heads/master | 2020-12-05T12:29:25.472281 | 2020-01-17T09:53:16 | 2020-01-17T09:53:16 | 232,109,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,897 | py | # Generated by Django 3.0.2 on 2020-01-16 11:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"noreply@github.com"
] | noreply@github.com |
51598d477e8a8aa15a3cd0500acae281af9794a3 | 8fdab2896f430a683d08d1411876e646d192aa63 | /Assignment2/ass2_3cybersec.py | 1e448a0208950668146237810b26e11f838e5a37 | [] | no_license | siddhi856/Assn_cybersec | cb20390ae232810a1f3c5645a3473d8bb9901d3a | 5df03bdece7fc812a21fa793dbdfc291bfb6201c | refs/heads/master | 2023-01-11T23:29:16.432699 | 2020-11-05T18:03:16 | 2020-11-05T18:03:16 | 291,797,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | s1=input('Enter a string')
c1=0
c2=0
for i in s1:
if(i.islower()):
c1=c1+1
elif(i.isupper()):
c2=c2+1
print("No of lowercase letters",c1)
print("No of uppercase letters",c2)
| [
"noreply@github.com"
] | noreply@github.com |
13c1cc230379317d35eda675ca93ee1f40db1dd3 | 9d18009ba57e67a1ee5325f1165d50f79ff21f5f | /BestTimetoBuyandSellStockIII/1.py | 73a4075844776b0899ab30826de67d6950990504 | [] | no_license | NarutoWu11/Leetcode | 24361a2655b7d8f7585ed3e2c7cda7ad5c9fd1c1 | 33595c682a26f7340680edb78a278bb72b6def7e | refs/heads/master | 2021-01-10T15:48:14.279359 | 2016-01-05T21:28:08 | 2016-01-05T21:28:08 | 44,923,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | import sys
class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
profit1 = 0
total = 0
base = 0 if len(prices) == 0 else prices[0]
minus = -sys.maxint - 1
for i in range(1, len(price... | [
"iamnarutowu@gmail.com"
] | iamnarutowu@gmail.com |
9d024649d6a5ba25d0e3a3c1eb50f08c6fdc3315 | 214be8263074407d89a6ba0fa9f6321ec916745a | /临时.py | 7a80c4ef7f7b0bf6b504cdfa88fb36ce530ffefb | [] | no_license | Jun-Yang-1007/Fushan-master | 91cf9ba9cd7cbdaeeef4e82e8e3dac2601d0be8f | 4d4e5ec2b9ece825da253927495d3d8dd506f881 | refs/heads/main | 2023-02-17T21:56:46.615512 | 2021-01-06T08:11:23 | 2021-01-06T08:11:23 | 327,243,455 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | import pandas as pd
import matplotlib.pyplot as plt
from statsmodels.tsa.stattools import adfuller as ADF
from statsmodels.stats.diagnostic import acorr_ljungbox
from statsmodels.tsa.arima_model import ARMA
from statsmodels.tsa.stattools import arma_order_select_ic
from statsmodels.graphics.tsaplots import plot_acf
f... | [
"416347260@qq.com"
] | 416347260@qq.com |
d83b3aa9501efe024eb6ede78c1eeb91823331b9 | 5a5628ebc491031242856648396d83aa5f619a8b | /MyWidget.py | a71f7878b2feac294ca83ba2424903536d04a446 | [] | no_license | chin0rism/Barbara | b4938fe9dcc1064f72653615ebfeab10f83a1b04 | 2ae3c93a4f77ba96d0784f05f0f7115cb7977521 | refs/heads/main | 2023-06-10T19:08:12.941940 | 2021-06-25T07:01:20 | 2021-06-25T07:01:20 | 380,182,710 | 0 | 0 | null | 2021-06-25T09:02:53 | 2021-06-25T09:02:53 | null | UTF-8 | Python | false | false | 562 | py | import tkinter as tk
class MyWidget(tk.Frame):
def __init__(self, root):
tk.Frame.__init__(self, root)
self._pack = tk.Frame.pack
self.l1 =tk.Label(self, text='Label1', bg='blue')
self.l2 =tk.Label(self, text='Label2', bg='red')
def pack(self, **kwargs):
... | [
"noreply@github.com"
] | noreply@github.com |
9b5f4896ba16483a16c93633959f2bc79c8d3722 | c2fcd2a4e9d25598463a740f5c7e522822370578 | /components/CatBoost/Predict_class_probabilities/from_CSV/component.py | 764f11aee6148af34974883b4ba573273f887a7c | [
"Apache-2.0"
] | permissive | ckadner/kfp-tekton | 9b5e1fe32a5238dd81eefc34e62b393129a80553 | 386ad234a43ba91999360c63807bcd62b9a78878 | refs/heads/master | 2023-01-11T23:06:55.297109 | 2021-08-23T21:13:39 | 2021-08-23T21:13:39 | 240,159,426 | 1 | 0 | Apache-2.0 | 2022-12-26T21:38:53 | 2020-02-13T02:22:37 | TypeScript | UTF-8 | Python | false | false | 1,835 | py | from kfp.components import InputPath, OutputPath, create_component_from_func
def catboost_predict_class_probabilities(
data_path: InputPath('CSV'),
model_path: InputPath('CatBoostModel'),
predictions_path: OutputPath(),
label_column: int = None,
):
'''Predict class probabilities with a CatBoost mo... | [
"noreply@github.com"
] | noreply@github.com |
48155812bcd6c29d304577b1b93c7e322b258193 | e64be5b5f95323f9ddb5d40d89cf7295a63ad294 | /controllers/series.py | ab8e00788e38f90347499df39cec6e45795f9bff | [] | no_license | Sokhavuth/ETV | 4d714a36a3139be97820354e66ac494b29593b97 | f6e619b972634c02b0aa4a1e11ec40912e19a4cd | refs/heads/master | 2023-02-08T05:42:51.746941 | 2021-01-04T03:08:02 | 2021-01-04T03:08:02 | 320,595,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | #controllers/series.py
import config, copy, lib
from flask import render_template, redirect
from models.userdb import Userdb
from models.seriesdb import Seriesdb
class Series():
def __init__(self):
self.lib = lib.Lib()
self.userdb = Userdb()
self.seriesdb = Seriesdb()
def get_series(self, id):
vdi... | [
"vuthdevelop@gmail.com"
] | vuthdevelop@gmail.com |
0b7c4c174ac6c7f498f46996277dc543c4576816 | 7969cea981b2d2c665b62c4de58c2d9556bfeaad | /original/test_new_vctk.py | 3ba4d093058763ef3f014e46af880a1b0c508a41 | [] | no_license | xcmyz/Forced-Alignment | 106dc73072d34bb07e881ee310e2a4a327230214 | c20dd4c892c39b5d6a0ee6bef673ac523621f15e | refs/heads/master | 2020-05-02T03:52:30.079472 | 2019-04-17T09:40:48 | 2019-04-17T09:40:48 | 177,738,186 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import os
from nnmnkwii.datasets import vctk
import hparams as hp
# speakers = vctk.available_speakers
# print(speakers)
# print(len(speakers))
speakers = list()
for file in os.listdir(os.path.join(hp.vctk_processed, "wav48")):
speakers.append(str(file[1:4]))
# print(speakers)
# print(len(speakers))
... | [
"noreply@github.com"
] | noreply@github.com |
4a28fa6e9bb3ff782643f094e870a45c8027c93f | 1b10615abb109846868a8d39f1ba680626b4a661 | /application_lab2/venv/bin/flask | 07757df9bec45fef3100b3b3f634543753860e74 | [] | no_license | HyeSPark/data-visualization | aa88ac28e2e97a259cad641f7082717286e1c5eb | ebdb06158acf5907c60ea83e5ade425a4725954c | refs/heads/main | 2023-07-10T16:48:25.949735 | 2021-08-24T05:25:18 | 2021-08-24T05:25:18 | 379,441,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/Users/HS/Documents/GitHub/data-visualization/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"hyehye@kaist.ac.kr"
] | hyehye@kaist.ac.kr | |
b615601740c56e6d8bcf92244238633eac7414cb | 4737e28ad5d8964f963e549ca1d27a1cf605b566 | /6_sushu.py | fedceb84e3e53fb7d244408c68bd6ec463ff01f8 | [] | no_license | liupy525/Pythontip-OJ | ba580e220b343e9d6617ac5bd52ca9ee7bb32a7b | 92c5547bb9593c63e36d322ef6af8c4a3f994d3a | refs/heads/master | 2021-01-25T00:10:34.740300 | 2014-02-03T16:59:37 | 2014-02-03T16:59:37 | 16,301,037 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
'''
输出100以内的所有素数,素数之间以一个空格区分
'''
def sushu(num):
l = [2]
k=0
for i in range(2, num+1):
for j in range(2, i):
if i%j==0:
break
k = j
if k==i-1:
l.append(i)
return l
print sushu(8) | [
"liupy525@gmail.com"
] | liupy525@gmail.com |
cd971a3bc0cc2bea0be299e3da6d65df9e72c516 | fe5c60db9e5399f1ad021291549ceacb3e8626b5 | /deployed/geninstance.py | 95c2cde490776a2fba4a4d6453ff725bfc6917f8 | [] | no_license | dr-bonez/ASPemu | aa8a6b308cc712adaa78040298516402c7f14b91 | 604b9a9fa63937cd811bfc05edf778dea1e7b855 | refs/heads/master | 2021-03-30T12:53:43.585246 | 2017-06-15T23:25:29 | 2017-06-15T23:25:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,092 | py |
import re
def convert_case(name):
s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name)
return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
def geninstance(filename, timesteps):
with open(filename) as f:
with open("instance.lp", 'w') as g:
section = "none"
maxpc = 0
... | [
"gagglehoof@gmail.com"
] | gagglehoof@gmail.com |
44c3afaa443fdc8281283d954e90df9a2f425297 | 559f36eae97c8efb4b7361af114acc3ea0577f4a | /daily_contact/property.py | e15f236baf3db1416987808ac0043f19d6a8c0f3 | [] | no_license | sslshuanglong/Learn-Python | f544f189a21feeb64b726c249aff7dc680979c28 | 54c77bdd0e6a639ec214ea1d3815dde9ea897f98 | refs/heads/master | 2021-10-25T23:47:58.218770 | 2019-04-08T12:30:30 | 2019-04-08T12:30:30 | 110,947,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__auther__ = 'shuanglong'
'''
class students(object):
@property
def score(self):
return self._score
@score.setter
def score(self,value):
if not isinstance(value,int):
raise ValueError('score must be an integer')
i... | [
"sslshuanglong@163.com"
] | sslshuanglong@163.com |
283f427e9d9fd76dffc9aa0194a13ceee65c1eed | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6010/210006010.py | 9c9a3fead2b5be7e1936e8c84d815fd4b8fdba06 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,639 | py | from bots.botsconfig import *
from records006010 import recorddefs
syntax = {
'version': '00601',
'functionalgroup': 'IM',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'B3', MIN: 1, MAX: 1},
{ID: 'C2', MIN: 0, MAX: 1},
{ID: 'C3', MIN: 0, MAX: 1},
{ID: 'ITD', MIN: 0, MAX: 1},
... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
293b50023ee3f26b66bf02fd7e0a9819f49cf9a3 | c8ed38dd26439d9aa191dc7fa95155dffb547b67 | /web_server.py | 60c8c5423468ad9af0fc8d872ea15be1c166f121 | [] | no_license | brycecorbitt/MU2801_Percussion | ed3e319bc689eb2a68e9da2ec3e1894131aeb447 | 1db26ab8f6a7690521cb33abc915f80a86174237 | refs/heads/master | 2020-08-06T07:15:30.496098 | 2019-10-10T21:46:09 | 2019-10-10T21:46:09 | 212,885,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | from bottle import route, get, post, run, request, redirect
from percussion import PercussionMotor
drum = PercussionMotor(0, 13, 26, 16)
@get('/')
def index():
return '''<h1> MU2801 Percussion Controller </h1>
<form action="/" method="post">
Set Sensor Threshold between 0-65535 (Default is 255... | [
"bscorbitt@wpi.edu"
] | bscorbitt@wpi.edu |
f3abd2898ef25b92b7c5f64799adadc6acde5e1d | 5783be589f9f6ab590ea097eb9b84fa3786617e4 | /Trie/contacts_list.py | 31c37f25db381989e9aad83a48ec1dcf4f978847 | [
"Apache-2.0"
] | permissive | suyash248/ds_algo | 5751e46ba4b959f0dd3f6843800f3e21d52100ac | 1ca9470c33236016cbb88a38b2f19db41535e457 | refs/heads/master | 2022-12-10T10:39:16.135888 | 2022-12-06T16:45:25 | 2022-12-06T16:45:25 | 58,738,512 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,179 | py | # https://www.youtube.com/watch?v=vlYZb68kAY0 - Contacts list
# Insert and search costs O(key_length), however the memory requirements of Trie is O(ALPHABET_SIZE * key_length * N)
# where N is number of keys in Trie.
# https://www.youtube.com/watch?v=AXjmTQ8LEoI
class ContactNode(object):
def __init__(self):
... | [
"suyash.soni248@gmail.com"
] | suyash.soni248@gmail.com |
fa0ed8d12e652ca3b7dc3e7fc23499dfd413a064 | f46e9667b22064bd1f6472f6017410ad7d87861b | /ig/get.py | 2b66f8141cab4e86433929b0601867cf13fba3b9 | [] | no_license | afcarl/python-tutorial-1 | 03cbfd2aa5074c85b76f3b37d9b6955a0be2a913 | b07083407e3090d195db3ea92efedf569c8fa562 | refs/heads/master | 2020-08-28T18:27:31.763692 | 2017-12-24T13:33:36 | 2017-12-24T13:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import requests
import re
import subprocess
res = requests.get('https://www.instagram.com/airi_kijima/')
pics = re.findall('https://[^"]+_n\.jpg', res.text)
for url in pics:
subprocess.call(('wget %s -P pics' % url).split(' '))
| [
"i314i@yahoo.com.tw"
] | i314i@yahoo.com.tw |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.