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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0b62db421f1b592394ee367b6221c3e0068a2a38 | 8477ff7ec00bc8307c51d7b5d0af7c35e0fa4758 | /elecciones/admin.py | 00a0af34cd8cdf926d224b134d34c7ff55482b93 | [] | no_license | ciudadanointeligente/votainteligente-primarias | afc512fb47075cbc31419361a51b9857d9c8a064 | 11b91990d99b41541b899bfc68d2cbc8fb64a4e1 | refs/heads/master | 2021-01-10T19:26:04.374281 | 2013-09-10T20:43:19 | 2013-09-10T20:43:19 | 10,316,015 | 0 | 0 | null | 2013-09-10T20:43:20 | 2013-05-27T14:06:21 | JavaScript | UTF-8 | Python | false | false | 1,770 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from models import *
class ColectivoAdmin(admin.ModelAdmin):
model = Colectivo
admin.site.register(Colectivo,ColectivoAdmin)
class IndiceInline(admin.TabularInline):
model = Indice
class CandidatoInline(admin.TabularInline):
model = Candidato
ext... | [
"falvarez@votainteligente.cl"
] | falvarez@votainteligente.cl |
6f22947c146cdb3d4b4e9218a0d8cdabc51ca34a | a211aafcd8ae2369cd3289fca6ced287ee09cc26 | /algos_2/sprint_6_hashes/task_e.py | 881eb70ff3dc32e6e169dd04b5e31c413aba9309 | [] | no_license | vitt0ri0/yalgorithms | 562d27449bbc0907c37d632b6eff4d5dbf9da208 | 1ff6bdc92b61baf03463f299e62c6199d05be040 | refs/heads/master | 2023-03-21T21:07:02.339838 | 2021-03-21T13:00:43 | 2021-03-21T13:00:43 | 287,198,070 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | def task_e(arr):
if len(arr) < 2:
return 0
prev1 = arr[0]
prev2 = None
counter = 0
i = 1
mmax = 0
while i < len(arr):
el = arr[i]
el2 = arr[i-1]
if counter:
a = (el, el2) == (prev2, prev1)
b = (el, el2) == (prev1, prev2)
if ... | [
"vitt0ri0.progr@gmail.com"
] | vitt0ri0.progr@gmail.com |
222b65cae3e331d1bb9d612840a859b2b8569ee0 | 238eef9423ef2a909d4531bb70b02afda7b25a38 | /sutils/logger.py | 33e816e792fd1f10ed271bc0cadfd1b99d080cd0 | [] | no_license | sunqiang85/spytorch_v2 | 7f8f2209e5c6bc266484a6eebc5992d7accc3616 | 635c18cf2dd56bd92079fe761c70e73743a7890a | refs/heads/master | 2021-05-21T14:51:52.986344 | 2020-04-03T11:13:57 | 2020-04-03T11:13:57 | 252,686,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from torch.utils.tensorboard import SummaryWriter
import logging
class Logger():
def __init__(self, __C):
self.__C = __C
self.tensorboard = SummaryWriter(__C.tensorboard_path)
self.filelogger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
fh = logging.F... | [
"sunqiang85@163.com"
] | sunqiang85@163.com |
3e119cfa6d182283fd4105948f57cc3949392715 | f6cadae90eb8fa3766acbb00a6c65fd2dfb3cb8d | /source/aiocomments/views/user_requests.py | 5a2aab955d11fec38b9d07f0c05db87df8cf20f5 | [] | no_license | RTyy/aiocomments | e6d3883777116a81653f12f498473883cebecbc4 | 2cb470462dbc1eaafbad1453f8f9050dc33d2412 | refs/heads/master | 2020-05-27T21:26:26.497154 | 2017-07-10T09:02:01 | 2017-07-10T09:02:01 | 94,754,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,798 | py | """User Requests Controller."""
import aiofiles
import trafaret as t
from aiohttp.web import StreamResponse, FileResponse
from datetime import datetime
from core.exceptions import CoreException
from core.db import acquire_connection
from ..consumers import DlResponseConsumer
from ..models import UserDlRequest, DlRe... | [
"a@itd.su"
] | a@itd.su |
416b6e3bfd65de33b7549956af8ebdb24642ebc6 | 6cfcf1b6ef7afe49eebe4edbd21184fc914c7755 | /Exercicios/ex024.py | a340c88d759c0fc679b1a895d2a9b21fbe5500a7 | [] | no_license | mmagalha/Python | 254df310a2a4f79258638321094296860bf4097a | 95cbcc57c6f26d37954bc8835da885d32b4e607e | refs/heads/master | 2021-05-02T07:42:56.872807 | 2018-02-12T01:05:02 | 2018-02-12T01:05:02 | 118,944,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | #Exercício Python 024: Crie um programa que leia o nome de uma cidade diga se ela começa ou não com o nome "SANTO".
cidade = str(input("Digite o nome da sua cidade: ")).upper()
print(cidade[:5] == "SANTO") | [
"mmagalha@gmail.com"
] | mmagalha@gmail.com |
1b0b318977f920b37ea3424f58bc5c6b179df0c8 | 1eaf99e876b5fc5b05de1b41014dca6efc6601f1 | /cupcake.py | 23923a460a24f77dd8a4d3e9eda0372799595992 | [] | no_license | puspita-sahoo/codechef_program | 5466dfc675e11b276a76d30fd8a3787fa106590a | 1fae1e9b89ebedb963216e5e79a673716e8b5cc9 | refs/heads/master | 2023-08-21T15:01:42.804814 | 2021-09-10T17:47:26 | 2021-09-10T17:47:26 | 405,164,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | T = int(input())
for i in range(T):
N = int(input())
ap = (N//2) + 1
print(ap)
| [
"puspita.private@gmail.com"
] | puspita.private@gmail.com |
df0300b9ae066ae31618798f45525e2480426413 | 7a1b08c64b29522d4bbb913475275c1bc8ad61a4 | /patient_agenda/events/doc_events/conver_value.py | afcdc7008de591882958f1eb59c25de32cecb141 | [
"MIT"
] | permissive | erichilarysmithsr/time-track | 8f84d4cc92cebaedce550b3741982d204e734a6c | dc0a7b63c937d561309f9b1c84af65fb581a8e18 | refs/heads/master | 2023-03-27T08:07:46.717221 | 2021-03-30T16:45:50 | 2021-03-30T16:45:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
import os
import json
import subprocess
try:
with open('./patient_agenda/events/doc_events/patient_rdv.json') as file:
data=json.load(file)
except FileNotFoundError as fileout:
print("File 1 patient_rdv.json not created", fileout)
for value in data:
pri... | [
"philogenie@protonmail.com"
] | philogenie@protonmail.com |
d1e21770e28bf318bb9670ca416bde39191d4f7d | 6e0108c11132e63c81adbfab4309011b1f9f6dda | /tests/python/extra/clear_leaves.py | 4d2f1e3a58a3fcb2fd07655efd2646b28d0a5f5f | [
"Apache-2.0"
] | permissive | scottdonaldau/ledger-qrl | c28a614ae52c44e53947e444abf078ec27041815 | 7a3b933b84065b9db2b775d50205efcdbed2399e | refs/heads/master | 2020-04-12T07:12:25.687015 | 2018-12-19T02:55:43 | 2018-12-19T02:55:43 | 162,360,262 | 0 | 0 | Apache-2.0 | 2018-12-19T00:15:27 | 2018-12-19T00:15:27 | null | UTF-8 | Python | false | false | 269 | py | from pyledgerqrl.ledgerqrl import *
dev = LedgerQRL()
start = time.time()
for i in range(256):
data = bytearray([i]) + bytearray.fromhex("00" * 32)
answer = dev.send(INS_TEST_WRITE_LEAF, data)
assert len(answer) == 0
answer = dev.send(INS_TEST_PK_GEN_1)
| [
"lenijuan@gmail.com"
] | lenijuan@gmail.com |
020e659363902ab2305fccbb021c6b361e707718 | 8db243a61d43e133aac01a67294d26df3381a8f5 | /Recursion/BinarySearch_Recursion.py | 2cca8e334ec83ad6effa671540e35b2e6d6a31c0 | [] | no_license | Jyoti1706/Algortihms-and-Data-Structures | ccdd93ad0811585f9b3e1e9f639476ccdf15a359 | 3458a80e02b9957c9aeaf00bf691cc7aebfd3bff | refs/heads/master | 2023-06-21T18:07:13.419498 | 2023-06-16T17:42:55 | 2023-06-16T17:42:55 | 149,984,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | def Binary_Search_Recursion(arr, lo, hi, target):
if lo > hi:
return -1
mid = (lo+hi)//2
if arr[mid] == target:
return mid
elif arr[mid]>target:
hi = mid-1
return Binary_Search_Recursion(arr, lo, hi, target)
else:
lo=lo+1
return Binary_Search_Recursion... | [
"jyotikrisharma10@gmail.com"
] | jyotikrisharma10@gmail.com |
e4f2ffff2bf16986aa3131d71811dfb973f65ef7 | 9d126bd1569104d953f59005cae73197678c1566 | /n-apekatter.py | 35d7c584585e02c3aa2ee4b038a0ad99058296a4 | [] | no_license | supermons/n-apekatter | 75e84a9b5b9b3833e06b8a8bbdd00cb8716a4737 | db78878e3e8913117e9b3a04e36ad67b686e9844 | refs/heads/master | 2020-04-01T07:54:38.056944 | 2018-10-14T19:35:57 | 2018-10-14T19:35:57 | 153,009,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | n = 5
while n != 0:
if n == 1:
print("En liten apekatt sitter i ett tre")
print("Den erter krokodillen: 'Du kan ikke ta meg ned'")
else:
print(str(n) + " små apekatter sitter i ett tre")
print("De erter krokodillen: 'Du kan ikke ta oss ned'")
print("Sa kom krokodillen, så diger og så s... | [
"noreply@github.com"
] | noreply@github.com |
55559c3ca1ad5ff7d80c5cf736dab7da2c5d72a7 | dfff816642f4e1afeab268f441906a6d811d3fb4 | /polling_stations/apps/data_collection/management/commands/import_newham.py | d1463f346e39dd465ff77e53dbf91e637072ccae | [] | permissive | mtravis/UK-Polling-Stations | 2c07e03d03959492c7312e5a4bfbb71e12320432 | 26e0331dc29253dc436a0462ffaa01e974c5dc52 | refs/heads/master | 2020-05-14T18:36:31.501346 | 2019-04-17T12:54:57 | 2019-04-17T12:54:57 | 181,912,382 | 0 | 0 | BSD-3-Clause | 2019-04-17T14:48:26 | 2019-04-17T14:48:26 | null | UTF-8 | Python | false | false | 1,255 | py | from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "E09000025"
addresses_name = "local.2018-05-03/Version 2/LBNewham Democracy_Club__03May2018.TSV"
stations_name = "local.2018-05-03/Version 2/LBNewham Democracy... | [
"chris.shaw480@gmail.com"
] | chris.shaw480@gmail.com |
0048953dec39f492a91c8bdde7a9ddaca57537a1 | 5d4753b7e463827c9540e982108de22f62435c3f | /python/tink/daead/_deterministic_aead_wrapper_test.py | b59d11dca3c7331a23581b856195197dfeb49b72 | [
"Apache-2.0"
] | permissive | thaidn/tink | 8c9b65e3f3914eb54d70847c9f56853afd051dd3 | 2a75c1c3e4ef6aa1b6e29700bf5946b725276c95 | refs/heads/master | 2021-07-25T02:02:59.839232 | 2021-02-10T17:21:31 | 2021-02-10T17:22:01 | 337,815,957 | 2 | 0 | Apache-2.0 | 2021-02-10T18:28:20 | 2021-02-10T18:28:20 | null | UTF-8 | Python | false | false | 6,074 | py | # Copyright 2019 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
f487b32d187d8c46617f40bfa556df73ae0f4374 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-iotanalytics/huaweicloudsdkiotanalytics/v1/model/list_batch_jobs_response.py | c820f1d45d59dffa07e947b9b3b4e80b79e3084e | [
"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 | 3,929 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListBatchJobsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the v... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
90915e0a41438c2373e73cc3ba2e72afdaca1b45 | 1ee6f343c9e7173b89993e3acca185f45a6ffda7 | /client_side/main.py | a69c15b1bca5a629f2b1c324619717dc4400dfdc | [
"MIT"
] | permissive | gmillia/IRC | 351a8352112a65fde76ab89addc2d18658f13af4 | 4c7f099ada266830d47c558c37078b107789c48d | refs/heads/master | 2022-09-18T21:54:30.494942 | 2020-06-01T01:46:43 | 2020-06-01T01:46:43 | 265,183,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from client import Client
if __name__ == "__main__":
client_instance = Client()
client_instance.menu() | [
"noreply@github.com"
] | noreply@github.com |
f7a133da42b483bbd6721ea185ae86310461ffcc | 1eb2d7d2a6e945a9bc487afcbc51daefd9af02e6 | /algorithm/zhang/baiduface.py | aae543c80ba05cfedc089fe690d2f4beb4954ca2 | [] | no_license | fengges/eds | 11dc0fdc7a17b611af1f61894f497ad443439bfe | 635bcf015e3ec12e96949632c546d29fc99aee31 | refs/heads/master | 2021-06-20T04:43:02.019309 | 2019-06-20T12:55:26 | 2019-06-20T12:55:26 | 133,342,023 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | import os,time
from aip import AipFace
from PIL import Image, ImageDraw
""" 你的 APPID AK SK """
APP_ID = '10909628'
API_KEY = 'sInxLcVbCLSg6rNXVDXR4sHD'
SECRET_KEY = 'e2zgNstc7GEhhvFOfCVKDW2itVf0iID4'
filepath ="pic"
client = AipFace(APP_ID, API_KEY, SECRET_KEY)
def get_file_content(filePath):
with open(filePat... | [
"1059387928@qq.com"
] | 1059387928@qq.com |
e8773eb18e0bca70b0803491328944b2739f03b1 | 02882742ef02d83d52f48354b44d600df3b7aa47 | /TCPTunnelClient.py | 20a0b790fdf47743b956eb0a8d1efeebcc0e9dbc | [] | no_license | BIDGroup/TCPTunnel | c02c1c46304fe8156815f9a8e4408875de57d533 | a6b271b13f46156c82283106b3f69b23de4f7f89 | refs/heads/master | 2020-03-31T03:28:54.249992 | 2018-10-05T09:39:18 | 2018-10-05T09:39:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | import socket
import sys
import time
import threading
def heartCheck(s):
print "Heart Pack Thread Start"
while True:
try:
data = s.recv(128)
if not data:
print "Heart Pack Tunnel Break"
break
except Exception:
print "Heart Pack... | [
"igronemyk@gmail.com"
] | igronemyk@gmail.com |
718e3a5fc92037cb1b160a8aa5414d824609ab9d | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/functional/filter.py | 9c0234468fbdee92b7c2a3dfc2206ea06281c324 | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 122 | py | numbers = [1, 3, 27, 10, 38]
big_numbers = filter(lambda n: n > 10, numbers)
print(big_numbers)
print(list(big_numbers))
| [
"gabor@szabgab.com"
] | gabor@szabgab.com |
30ca95084a650818ad76ed5e625a46506e6e8e39 | 60e27c8b1755c741dfd069393e8b65766a9647ae | /07_Natural_Language_Processing/C0702_bag_of_words.py | fb7af5b042f0820d93e1aaa9984960d0ba24a209 | [
"MIT"
] | permissive | xiejinwen113/tensorflow_cookbook | d0426991be2369d6480728c2af7a4dc93eccf621 | 57d7ee719385ddd249a67c3a85bd336e884a67e5 | refs/heads/master | 2022-03-24T08:30:43.089441 | 2019-12-09T09:55:39 | 2019-12-09T09:55:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,784 | py | # -*- encoding: utf-8 -*-
"""
@Author : zYx.Tom
@Contact : 526614962@qq.com
@site : https://github.com/zhuyuanxiang/tensorflow_cookbook
---------------------------
@Software : PyCharm
@Project : TensorFlow_Machine_Learning_Cookbook
@File : C0702_bag_of_words.py
@Version : v0... | [
"zhuyuanxiang@gmail.com"
] | zhuyuanxiang@gmail.com |
7168dd9db8e3031656351de42448d8638bdc049a | 765ac605a9db834f311cc7cf60553b66d42184fb | /lecture_03/task_03/task_03.py | a76e4aebf838ec9ba1105492e9113080fe129eee | [] | no_license | vasil-dimov/python_softuni_homeworks | 3946ab13a0b69661f745e1290fa5bd45bdc7c264 | 1efac3679a3c6459c5cb3f597116fcdab8ca2716 | refs/heads/master | 2021-06-13T04:25:15.120352 | 2017-03-27T19:01:15 | 2017-03-27T19:01:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | FILE_PATH = './../assets/catalog_sample.csv' # or catalog_full.csv
UPDATED_FILE_PATH = './../assets/updated_price_catalog_sample.csv'
PERCENT = 0.75 # 75%
with open(FILE_PATH, encoding='utf-8') as f:
with open(UPDATED_FILE_PATH, 'w', encoding='utf-8') as f_updated:
for line in f:
line = line.... | [
"xzq70r4@gmail.com"
] | xzq70r4@gmail.com |
2a1a2dba821ba88d97ccfa8b1ac0ad83ecc9db61 | 5a07828016e8bafbea5dac8f83c8bfd5d0bfd603 | /py_290w290/140309_srw.py | ba5c140fc766ac183dd4cc526b37aee626cb33e2 | [] | no_license | JJHopkins/rajter_compare | db5b88d2c6c1efc0fead9b6ed40fb3cce36bedb4 | 2ba52f4f16cf2aca350a82ea58d0aa8f8866c47c | refs/heads/master | 2020-06-04T23:53:57.089329 | 2014-04-08T18:02:30 | 2014-04-08T18:02:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,176 | py | #$ {\bf Free energy between two skewed cylinders (CG-10 in water). Full retarded result, function of separation $\ell$ and angle $\theta$} \\
#$ Equation 12: $G(\ell,\theta) = - \frac{ (\pi R_1^{2})(\pi R_2^{2}) }{2 \pi~\ell^{4} \sin{\theta}} \left( {\cal A}^{(0)}(\ell) + {\cal A}^{(2)}(\ell) \cos 2\theta \right)$ \\
#... | [
"hopkins.jaime@gmail.com"
] | hopkins.jaime@gmail.com |
3a3056a3ecc1b144f2938566879e80bcdd3c95c1 | 4561d27896157c67da3c97fb7bd99537b3ec1ac2 | /Darkfb.sh | 1be0b8432c647878d63caa02476ed42b381c143a | [] | no_license | bang-Habib/dark.fb | 2fb23d75c544a489b727fd859a137481f700a99a | 5c774aff111510193d51ce70a8aef50b09de8dab | refs/heads/main | 2023-02-10T14:32:41.114991 | 2021-01-13T12:38:13 | 2021-01-13T12:38:13 | 329,298,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,210 | sh | #!/usr/bin/python2
# coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Brows... | [
"noreply@github.com"
] | noreply@github.com |
b27f35b93e426e634255d190bc26186e448a325a | 98892d10a50f7032238aed257d690ba0d7d5ef2b | /basicREST/views.py | 90e98b8904bdcde7526d173e11944c71da61e726 | [] | no_license | ivishalvarshney/djangoREST | f21f7f4a83437e8eefb91980555bf63dbdfd3d69 | 30f31546f4566d5b1ec8e2a7a7c34096693dc89c | refs/heads/master | 2020-04-17T07:44:52.964395 | 2019-01-29T12:40:38 | 2019-01-29T12:40:38 | 166,382,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
import json
from django.http import QueryDict
def index(request):
return HttpResponse("Hello, world. You're at the REST index.")
def get(request):
if request.method == 'GET':
value = reques... | [
"vishi.jalali09@gmail.com"
] | vishi.jalali09@gmail.com |
4ef58c2409ab968d93a3503e6b30e0956b126cb9 | 4b75b77d262fce1752b5a6d224d3a398ab9fe6f6 | /ClipSearcher/venv/Lib/site-packages/twitch/helix/models/__init__.py | 587b7577b7184b47de4f3c6641ffa1e2ebaf872a | [] | no_license | Tathomp/TwitchClipScrapper | 46f11bd399f45d574e1c2aa06010843dcebe4cfc | c0d8dfff2677dbeb42a796a9e8147059d2088996 | refs/heads/main | 2023-01-04T19:43:03.119768 | 2020-10-22T23:26:01 | 2020-10-22T23:26:01 | 306,475,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from .stream import Stream
from .user import User
from .video import Video
__all__ = [Stream, User, Video]
| [
"tylerthompson1492@gmail.com"
] | tylerthompson1492@gmail.com |
6eb51316bd90d06bb54e6bc81ddd6e710b4e2736 | 5cd687035dbcbc72ef479ad58d80a7c1b085f950 | /mangaupdates | d82bd772a5290394f1459ec948a63edf0e4400fa | [] | no_license | otommod/bin | 25db0680294008e4542fe6f1f60a7dba11b6aa2f | 3a31cff03b95a6de39d4ecbc05e58db25aebcb1b | refs/heads/master | 2021-01-20T21:01:12.290536 | 2018-04-22T23:44:43 | 2018-04-22T23:44:43 | 101,743,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,159 | #!/usr/bin/env python3
import sys
from collections import namedtuple
from datetime import datetime
from concurrent.futures import Future, ThreadPoolExecutor, as_completed
import requests
from bs4 import BeautifulSoup
# ReleaseInfo = namedtuple('ReleaseInfo', 'date link volume chapter group')
class ReleaseInfo(namedt... | [
"ottomodinos@gmail.com"
] | ottomodinos@gmail.com | |
3af8d10bbadf2fdca7a947a941b05ec04733c02e | 3b4306f01497a65c539e68f7dde61b03d66feee4 | /Server/play/server/migrations/0005_auto_20170216_1702.py | b9ad0de8478e2a3c9508ed8ae5f10e0ac74ff9d2 | [] | no_license | Ricky1O11/Play | 4b17914cec081064caac64454fa6ccf9e62c44aa | 5d153efded279179c7c0f0541b8676ae7a2d8e9e | refs/heads/master | 2021-01-11T23:49:56.210161 | 2017-06-17T14:30:59 | 2017-06-17T14:30:59 | 78,632,836 | 0 | 1 | null | 2017-04-19T13:59:39 | 2017-01-11T11:32:53 | CSS | UTF-8 | Python | false | false | 510 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-02-16 16:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('server', '0004_matches_status'),
]
operations = [
... | [
"quintavalle.christian@gmail.com"
] | quintavalle.christian@gmail.com |
e1a45c0ba518cfbb372a72ab3143bef40ec1f554 | a6645dd580d8d3dcf56f178822628d261ed309bd | /LastModifiedIndicator.py | 96eb8e4a065bff2bee64968ceca9556c8df76015 | [
"MIT"
] | permissive | joemay/SublimeLastModifiedIndicator | ddb7f68e64fb4ea45b8c4c1f3922938608b17f05 | 03d6e404b6bcf49ff94b8086bf5adce0055799c0 | refs/heads/master | 2021-01-18T00:21:26.629616 | 2013-07-31T18:55:43 | 2013-07-31T18:55:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | import sublime_plugin
import sublime
import os
BASE_PATH = os.path.abspath(os.path.dirname(__file__))
IMG_PATH = os.path.join('..', os.path.basename(BASE_PATH), 'img')
settings = sublime.load_settings('LastModifiedIndicator.sublime-settings')
class LastModifiedIndicator(object):
def __init__(self, view):
... | [
"wagnercode@gmail.com"
] | wagnercode@gmail.com |
9b0d5d65cf309b37a68a89e87ed66843ec5ca8ce | ecace2496db4d51e19c3507295db2be25fc2474b | /for_test.py | 1ee787f062d8273a11dced60d6280bc6d0631f59 | [] | no_license | calior/selenium | 37a077a8ba4cd3265f066c1e853074b9caad4e1c | 9cd93fa3a14e1e747fd0435f82567760ed50370d | refs/heads/master | 2021-01-13T03:55:19.086355 | 2016-08-01T03:34:24 | 2016-08-01T03:34:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | from selenium import webdriver
from time import sleep
from get_Screen import get_Screen
from isElementExist import isElementExist
def before_xuezha(driver):
flag = True
#先行测试循环做题页面,学渣路线
while(flag):
try:
#print('herezuoti')
if flag == isElementExist(driver,'id','continue'):
print ("------00000---------... | [
"525606722@qq.com"
] | 525606722@qq.com |
8ef8624175a17aa4a76c7c2d3978fe26aa352c4a | 5ee8514d98c3f5f8b06129916da7f40138ddaee2 | /src/Sanga/media/ttv.py | 44d1939ed3645cecf4b5895ea781b4402f40ffa2 | [
"MIT",
"Python-2.0"
] | permissive | allenyummy/Sanga | a9acc0d98db6eae14be2bb8d640f9ae98919f601 | ff4cc60e0fd05cac49bdf15ad8a57dfedcf75fd0 | refs/heads/master | 2023-07-27T07:46:32.930955 | 2021-09-01T08:54:14 | 2021-09-01T08:54:14 | 401,222,669 | 2 | 0 | MIT | 2021-09-01T08:54:15 | 2021-08-30T05:06:59 | Python | UTF-8 | Python | false | false | 1,072 | py | # encoding=utf-8
# Author: Yu-Lun Chiang
# Description: Get news
import logging
from typing import Dict
import json
from bs4 import BeautifulSoup
from .base import BaseMediaNewsCrawler
from ..struct import NewsStruct
logger = logging.getLogger(__name__)
class TTV(BaseMediaNewsCrawler):
"""Web Crawler for TTV ... | [
"chiangyulun0914@gmail.com"
] | chiangyulun0914@gmail.com |
755ce3602c7d4642c4b0aca6891d7446594eb0b1 | 48fff0f472066dc6e5b5a15d16dcc33738e7a2c2 | /train2/chatbot/broadcast.py | 027badb7eddef0c0ba8411820cb20092bd9088f5 | [] | no_license | hasadna/OpenTrainCommunity | 228a4f078829f6653e62db1294da01488be55b64 | 3c7a941b730160c40cc400ed94ed77ffa9189f0a | refs/heads/master | 2023-01-23T14:39:10.462114 | 2020-06-08T11:36:27 | 2020-06-08T11:36:27 | 19,729,986 | 23 | 16 | null | 2023-01-13T22:57:43 | 2014-05-13T07:34:15 | HTML | UTF-8 | Python | false | false | 1,036 | py | import logging
from django.conf import settings
import telegram
from django.template.loader import render_to_string
from . import models
logger = logging.getLogger(__name__)
def broadcast_new_report_to_telegram_channel(report: models.ChatReport):
message = render_to_string('chatbot/new_report_message.html', co... | [
"ekeydar@gmail.com"
] | ekeydar@gmail.com |
1a4331aa03052d0136ac9424cf6c3d97e49dc9fc | 4a2bd14eb54a5447b9b5c67df97d9237cd506bd7 | /setup.py | 61fde968a06933af9c27eabc838e71e919e782a8 | [] | no_license | GapData/bokehutils | 85363af5d1575983fe980a7c5a269eab354d168d | deadedd7a8a2210beeb8cce226d7d566f84a6f11 | refs/heads/master | 2021-05-29T13:40:12.105135 | 2015-09-30T19:40:03 | 2015-09-30T19:40:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | # Copyright (C) 2015 by Per Unneberg
from setuptools import setup, find_packages
import glob
import versioneer
INSTALL_REQUIRES = [
'sphinx>=1.3',
'pytest',
'pytest-cov>=1.8.1',
'bokeh>=0.10.0',
]
try:
# Hack for readthedocs
if not 'readthedocs' in os.path.dirname(os.path.realpath(__file__)):
... | [
"per.unneberg@scilifelab.se"
] | per.unneberg@scilifelab.se |
321314e44b4f791b9d4b22fcbb22c398352b26bb | 406043e9639bd3195f2bb952bb64e59568c1eade | /manage.py | 904a6d8cf60630a0b9a3373d3075275e1a982ad3 | [] | no_license | Mattaru/Pet-shelter-django | 2e8571c8e4f490180a69fca363734a320bb1a441 | 4f59ca3c62c0eb1462716af69f150535979094f8 | refs/heads/master | 2023-01-02T13:47:07.987525 | 2020-10-30T15:37:20 | 2020-10-30T15:37:20 | 308,047,259 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'animal_shelter.settings')
try:
from django.core.management import execute_from_command_line
exce... | [
"67161027+Mattaru@users.noreply.github.com"
] | 67161027+Mattaru@users.noreply.github.com |
8f51618dff92b6609f174e7d9e48161f653dd784 | fdba533d128e5fcc237abacda12de9545ddce39c | /keras/optimizer_experimental/optimizer_lib.py | d180179dde8284a872030aa0a8c1237796c3da4d | [
"Apache-2.0"
] | permissive | hhuang97/keras | 5949d754dcaed47df011fb4218d6552251e265e2 | f5fea878c271e38946c6681c1c2434e72d0ab977 | refs/heads/master | 2021-12-24T00:01:26.759181 | 2021-12-14T18:21:47 | 2021-12-14T18:22:26 | 90,206,289 | 0 | 1 | null | 2017-05-04T00:54:28 | 2017-05-04T00:54:28 | null | UTF-8 | Python | false | false | 3,775 | py | """Library of helper classes of optimizer."""
class GradientsClipOption:
"""Gradients clip option for optimizer class.
Attributes:
clipnorm: float. If set, the gradient of each weight is individually clipped
so that its norm is no higher than this value.
clipvalue: float. If set, the gradient of ea... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
bd3c3547ce4abf96e60ac062c02860678ddc568c | 59147b0d69ee93d69d2a33e3315d3aeff569edd1 | /selection/forms.py | 4e2ed9316a7d479379eb1591262fe98dd8f39aaa | [] | no_license | mansimishra007/Hostel-Management-System | abf1148ae83c07922ea93a7cf0272eb598addf92 | 65704ef73265226f1a247aff2a4fd2c7234ba900 | refs/heads/main | 2023-04-19T02:38:48.804216 | 2021-04-29T13:16:21 | 2021-04-29T13:16:21 | 362,712,183 | 0 | 0 | null | 2021-04-29T06:24:37 | 2021-04-29T06:24:36 | null | UTF-8 | Python | false | false | 2,347 | py | from django.contrib.auth.forms import UserCreationForm
from .models import *
from django import forms
from django.core.exceptions import ValidationError
import datetime
YEARS= [x for x in range(2018,2020)]
class UserForm(UserCreationForm):
password1 = forms.CharField(min_length=8, max_length=30, widget=forms.Pass... | [
"43030745+divyanayal@users.noreply.github.com"
] | 43030745+divyanayal@users.noreply.github.com |
be2c52cf09bf34f008f12e37cdf45e5043e77334 | d44a2cc528a71ba68da73d8246d00a582bd37d50 | /django-env/bin/wheel | ae025c6ff6359ee62788a3c0f12a62a7306d8b96 | [
"Apache-2.0"
] | permissive | ShanghaitechGeekPie/bookshelf | 7127a56023e7509e2c2fd53dd42aeb508fc16098 | bc3469ecbb44723bb28ccaaccee60d211ca3f94a | refs/heads/master | 2020-03-13T04:12:26.937041 | 2018-08-26T13:19:10 | 2018-08-26T13:19:10 | 130,958,787 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/home/django/bookshelf/shelf/django-env/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zhangge3@shanghaitech.edu.cn"
] | zhangge3@shanghaitech.edu.cn | |
6a9813e8183140d4f37cce18fe72fbf348307aa9 | e41849b424e892c0ef1325ec768f4a5aa6dc11e5 | /biosteam/units/_multi_effect_evaporator.py | ae5f2bda8e39b53c5a21f2db763537ba2cc004ca | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"NCSA"
] | permissive | Saurajyoti/biosteam | 28a8548ec9c453124e31d73c4e3d628d44dad322 | 65d35586c9e40660f170e5a8aa4e4450ea171a23 | refs/heads/master | 2023-06-15T22:07:54.544645 | 2021-07-13T04:19:14 | 2021-07-13T04:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,479 | py | # -*- coding: utf-8 -*-
# BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules
# Copyright (C) 2020-2021, Yoel Cortes-Pena <yoelcortes@gmail.com>
#
# This module is under the UIUC open-source license. See
# github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt
# for license details... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
859652d89a14584f5e955cc3ad819c804f555e3b | 5bfca95abf14f7bb0ff29b58b018fc9062d3f837 | /apps/first_draft/migrations/0001_initial.py | ac8c2856ce7f990fcbd46afa84be29c6e4323981 | [] | no_license | wdudek82/django-ogame-clone | 621afb20ea2dd3c0f2e4b93dfdd604e0628bd7b8 | 472971da826d078176a5d619b3b5cad89e3d1c5c | refs/heads/master | 2021-09-08T15:19:49.407650 | 2017-11-26T19:14:48 | 2017-11-26T19:14:48 | 124,670,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,675 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-15 20:31
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"wdudek82@gmail.com"
] | wdudek82@gmail.com |
8ad2bcbe89aa890553ba807bcca337ba1fcecfa0 | 50e4a9f7d2126d0bee1b97126e9a60de7314ccce | /iot/chapter3/ex08-03.py | 7beb00abdc05afdf5bc8438b56a9a5a28e4d2f39 | [] | no_license | heohyoyeong/test_python_basic | 649d5a0ed671a883885c52033a24362149435114 | 1ef9583e7e1bd735c15b0f6af57f39809b041403 | refs/heads/master | 2022-11-21T09:13:08.632555 | 2020-07-29T02:21:11 | 2020-07-29T02:21:11 | 283,376,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | def main():
s= "독도는 일본땅. 대마도도 일본땅"
print(s)
print(s.replace("일본","한국"))
print(s)
def main2():
message="안녕하세요"
print(message.center(30))
print(message.ljust(30))
print(message.rjust(30))
def main3():
trabler = """
강나루 거너서
밀밭 길을
구름에 달 가듯이
가는 나그네
"""
poet= trab... | [
"heohyoyeong@gmail.com"
] | heohyoyeong@gmail.com |
1a72065a811121f0dd9d16e8dd072b751fba6a6a | 917a99fdf14097dd8001b5c98cc48c8716f8f969 | /webElement/ass_service/syslogElement.py | 8bffc624415e17423f022ce3b8b9a646794ed0be | [] | no_license | isomper/testIsomptySecret | 722eba4cbefe9495a3292d8d10e8ad9c4a34c8a7 | 968bbee05af730cfb7717f1531286f11a7f99cf3 | refs/heads/master | 2020-03-19T07:29:28.487913 | 2018-07-13T06:25:50 | 2018-07-13T06:25:50 | 136,118,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,408 | py | #coding=utf-8
u'''
#文件名:
#被测软件版本号:V2.8.1
#作成人:李择优
#生成日期:2018/1/24
#模块描述:SYSLOG
#历史修改记录
#修改人:
#修改日期:
#修改内容:
'''
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import time
sys.path.append("/testIsompSecret/common/")
from _icommon import getElement,selectElement,frameElement,commonFun
from _cnEncode import cnEnc... | [
"1584216202@qq.com"
] | 1584216202@qq.com |
65491b4cf6af511302a7fd9c889aaa1981d32a99 | 69f313e9f97dd50856be74f0f5a13ffad4fc2373 | /LibraryFront.py | 122cf64f7ed6bb854b053ef54e3c2fee03472a28 | [] | no_license | akimbaev/Python_tkinter | f2b9e57601fa068aff71c87be2c861124f48972f | 5bf5facc9eb40fb6e8301aa75078b8e53ff50d2d | refs/heads/master | 2022-11-15T00:16:27.576341 | 2020-06-30T14:25:37 | 2020-06-30T14:25:37 | 273,231,482 | 0 | 2 | null | 2020-06-26T15:30:17 | 2020-06-18T12:26:08 | Python | UTF-8 | Python | false | false | 9,760 | py | from tkinter import *
from LibraryBackend import Database
import os.path
import tkinter as tk
import tkinter.ttk as ttk
import matplotlib
import pylab
matplotlib.use("TkAgg")
# from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
from matplotlib.figure import Figure
impo... | [
"30404027+akimbaev@users.noreply.github.com"
] | 30404027+akimbaev@users.noreply.github.com |
66c6fd7546d0d7ae63a823f1182cfd17e3f29d36 | 24ff40115475130039eb42c180932fb17feb8f42 | /mysite/blog/urls.py | 8632bb94424bb026d765670ddfdabc382f4cbac1 | [] | no_license | ushnuel/blog_project | 1bac23a033ab0d1bd38e034819b2f88b52390640 | 0816269fefa45c641d2c8413acbcd32b80972651 | refs/heads/master | 2020-05-18T23:41:25.082360 | 2019-05-03T06:54:17 | 2019-05-03T06:54:17 | 184,717,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | from django.conf.urls import url
from blog import views
urlpatterns = [
url(r'^$', views.PostListView.as_view(), name='post_list'),
url(r'^about/$', views.AboutView.as_view(), name='about'),
url(r'^post/(?P<pk>\d+)$', views.PostDetailView.as_view(), name='post_detail'),
url(r'^post/new/$', views.PostCr... | [
"ezeemmanuel2010@gmail.com"
] | ezeemmanuel2010@gmail.com |
1c795934bcbbc615b180f995d41268c824795d6a | 9d8f1868aa61ff4f4947d98c8fea905c71dee6b7 | /pgoapi/protos/POGOProtos/Settings/Master/ItemSettings_pb2.py | dba8f747c61a7af895af2a2a0abcf3a31087dd73 | [
"MIT"
] | permissive | erhan-/pokefarm | 5c3a30a5708417ef68c0537ff879d472fb62d774 | 797ad72d44bdccd2b7a32080d259d187988bd4ab | refs/heads/master | 2023-05-24T06:50:52.169989 | 2021-03-12T12:34:25 | 2021-03-12T12:34:25 | 63,973,073 | 0 | 0 | NOASSERTION | 2023-05-22T21:40:56 | 2016-07-22T17:59:20 | Python | UTF-8 | Python | false | true | 13,742 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: POGOProtos/Settings/Master/ItemSettings.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.prot... | [
"egal@egal.egal"
] | egal@egal.egal |
5b72718447dbd4f8681995d28894495e837162ec | e6ff97a6d68bc115ea72dd515b84266741f9ea8f | /MED/__init__.py | 1905cc9a6cce245b569d665b2f77c412cab09e86 | [] | no_license | Elalasota/MED_centrum_miasta | 3d23f6a12cf98452fb0233bb3657e66075a915ca | 0cfddc190d2fc21e5c4786cd561bd0f63582b115 | refs/heads/master | 2021-01-09T20:40:43.244977 | 2016-05-29T15:59:18 | 2016-05-29T15:59:18 | 59,951,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
MED
A QGIS plugin
Wyznaczanie centrum miasta
-------------------
begin : 2015-01-18
copyright : (C) 2015 by E... | [
"elcialas@gmail.com"
] | elcialas@gmail.com |
5208b205cc65d2ed82f647b36279db82db70b513 | 5005140cc0c9a2247c3cfcc2bfa12d19472f6a9c | /doc/conf.py | 026db6e72d4714ea7f2753238a5c9427aaa28b69 | [
"WTFPL"
] | permissive | cristoper/feedmixer | 07a1cbb116eca1189c1e917f8a08ab17cdc44059 | 70bb0da59ad2a9869ff007f703eda3cafe8dcaaa | refs/heads/master | 2023-08-08T03:04:49.504375 | 2023-07-25T23:13:09 | 2023-07-25T23:13:09 | 88,230,593 | 124 | 12 | WTFPL | 2023-07-25T23:13:10 | 2017-04-14T03:45:38 | Python | UTF-8 | Python | false | false | 4,909 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# feedmixer documentation build configuration file, created by
# sphinx-quickstart on Thu Apr 13 15:29:09 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# ... | [
"chris@mretc.net"
] | chris@mretc.net |
1954e1d277622077bd20c0d616dc58a3d5b3662f | 0bd7a6bef178bb93b2c3fb19e789c7e3b364e6d1 | /simple_frame/inference/segmentation_export.py | ea4b06435005677303a2da54ba9827504d7de7c2 | [] | no_license | Magnety/Simple_Frame_linux | 090e07491e170314718c9ba5f2da2a4393bdb1ad | 7e1ef5d11e3baa8784fd9b6bbf81b0d954dd1ca6 | refs/heads/main | 2023-06-02T09:35:36.023461 | 2021-06-17T09:23:01 | 2021-06-17T09:23:01 | 371,412,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,716 | py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# 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://w... | [
"liuyiyao0916@163.com"
] | liuyiyao0916@163.com |
f56f9bcaa5d9294fc2f4329958f2a02d6b674c23 | 4503a3bfd940dce760b5f70e90e6fe2fe0cc4881 | /week02/lectures/FirstCode.py | 9d2c8a972ddc17efc1eafc379c1a682a399067d9 | [] | no_license | RicardoLima17/lecture | dba7de5c61507f51d51e3abc5c7c4c22ecda504f | b41f1201ab938fe0cab85566998390166c7fa7d8 | refs/heads/main | 2023-04-18T11:12:39.769760 | 2021-04-21T18:36:09 | 2021-04-21T18:36:09 | 334,456,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | # Programn that greets the user
# Author: Ricardo Rodrigues
print('Hello world! \nHow are you today')
| [
"limaricardooliveira@gmail.com"
] | limaricardooliveira@gmail.com |
790996181720155a34d4c398ecf0c34c1975d7fa | d53b659594941babb0ac33d18929f63cb7808cce | /python/test/twitter_streaming.py | b6d8bd6d30c5bac2e68c239244d15ca3d43c4bee | [
"Apache-2.0"
] | permissive | brianmunson/MapperTwitter | 479473307444c0eb1e01dfb66f59fcf143d56735 | b47b8aa50ebe34a4263b2e47ccef47ea83266d14 | refs/heads/master | 2021-01-11T23:09:10.158012 | 2017-03-14T22:57:41 | 2017-03-14T22:57:41 | 78,553,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | # twitter streaming listener
# modified from adilmoujahid.com
import tweepy as ty
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import StreamListener
import os
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv())
consumer_key = os.environ.get("TW_CONSUMER")... | [
"munson.brian@gmail.com"
] | munson.brian@gmail.com |
fe271efef176ea856a983857fd44e6e559a41b2f | bf19f11f6e6626fa71550b9f2da72847f9db40f9 | /tutorials/class_14/apps.py | 72f8fa0f3b203b23675ce3861b0c6cedeb4d25de | [
"Apache-2.0"
] | permissive | MeGustas-5427/SQL_Tutorials | b6caa6a325b423312e18949e88e5751883d21ac8 | 627372c2d5d8656d72645830c9a1fae1df278fc7 | refs/heads/master | 2023-04-06T10:19:53.022223 | 2021-03-20T13:20:50 | 2021-03-20T13:20:50 | 310,186,237 | 13 | 2 | null | 2021-01-14T02:34:57 | 2020-11-05T04:03:42 | Python | UTF-8 | Python | false | false | 100 | py | from django.apps import AppConfig
class Class14Config(AppConfig):
name = 'tutorials.class_14'
| [
"32269100@qq.com"
] | 32269100@qq.com |
39ea59b534f5e9b9fe9597d3cb0a435cf20a1224 | 29fb2eb3b9bb21b529e814da53518fab2958693a | /thesis/images/ionizationStructure.py | bab29ae268d132cad0aaf36517a5e29f94941e0a | [] | no_license | Vital-Fernandez/thesis_pipeline | acca734b1a2ce11b0bee5bd41fab534022ea295e | 1253e2ed94e0f502a16cae6b88f84b633d0f16c2 | refs/heads/master | 2022-05-31T10:15:47.241645 | 2021-05-18T17:43:44 | 2021-05-18T17:43:44 | 90,319,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,922 | py | from dazer_methods import Dazer
from numpy import nanmean, nanstd, mean, nan as np_nan
from uncertainties import ufloat, unumpy, umath
import pandas as pd
# Generate dazer object
dz = Dazer()
# Declare figure format
size_dict = {'figure.figsize': (14, 6), 'axes.labelsize': 20, 'legend.fontsize': 20, 'font.family': 'T... | [
"vital.fernandez@gmail.com"
] | vital.fernandez@gmail.com |
ec2e2f1225cf3c27c122d9403076f857e991253f | 1b3613f17af551ae1023be03a78619fbf622a619 | /vmthunder/openstack/common/jsonutils.py | 662c79aae2e725e44c88fa37d4c622931c8ae778 | [
"Apache-2.0"
] | permissive | licyh/VMThunder | c2e9e45b1cb7263e6b23a631d2a16494265ba758 | 5daa10d1a78c52df2a5233c8f54823ac17cc7b06 | refs/heads/master | 2021-01-22T12:17:11.478468 | 2014-10-16T03:53:45 | 2014-10-16T03:53:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,489 | py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in complia... | [
"lzynudt@gmail.com"
] | lzynudt@gmail.com |
f8de0cc0211fe9b16c552b419529d6119fef0e83 | 89a00777e75a1e7ad0394fccbd38eb74438e483b | /package/scripts/master.py | 87441b4de46dceffd484fe506614d5cb70938609 | [] | no_license | damienclaveau/kdc-stack | 9258aac2324fcd03a863964722e04207ca747255 | a7b247ef5e0767c981e2772b260a2c46aaa3864c | refs/heads/master | 2021-01-21T00:43:38.052940 | 2015-03-17T05:12:42 | 2015-03-17T05:12:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | import sys, os, pwd, signal, time
from resource_management import *
from subprocess import call
class Master(Script):
def install(self, env):
# Install packages listed in metainfo.xml
self.install_packages(env)
self.configure(env)
import params
Execute('sed -i "s/EXAMPLE.COM/'+params.kdc_realm+'... | [
"abajwa@hortonworks.com"
] | abajwa@hortonworks.com |
c35de16dd47821fb8bd0c74d9ed293dc5ee70956 | 34ef83114e02b173bd2d55eb53ad399e738a8e3c | /django/code_test/teka/teka/settings.py | ca05f4f1f4426561e47f91918dae0a82be1e722d | [] | no_license | vavilon/Python3 | e976a18eb301e4953696d1e3f4730ed890da015a | 8c79729747ce51d60ad685e6a2e58292954ed7eb | refs/heads/master | 2023-01-09T13:44:37.408601 | 2018-01-25T22:41:14 | 2018-01-25T22:41:14 | 100,892,055 | 0 | 1 | null | 2022-12-26T20:29:27 | 2017-08-20T22:23:06 | Python | UTF-8 | Python | false | false | 3,232 | py | """
Django settings for teka project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
# B... | [
"overon4ek@gmail.com"
] | overon4ek@gmail.com |
71bb3fad91cbbcdcb44e3c33d83d4877eb1fb75d | 4324bfea818c8fa11f991f9eac24c6251db35dd5 | /keycoded.py | 51fb02586af64cac9a36340c024ddb635dc7c156 | [] | no_license | gjedeer/htc-vision-postmarketos | d368c13fd843c171d51e47cef786fa5f807fb03a | 17840dd6fd382667af6846851e4d6710497dc759 | refs/heads/master | 2020-05-18T21:19:36.159309 | 2019-05-02T22:35:48 | 2019-05-02T22:35:48 | 184,657,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | #!/usr/bin/python
import struct
import time
import sys
import os
infile_path = "/dev/input/event" + (sys.argv[1] if len(sys.argv) > 1 else "3")
#long int, long int, unsigned short, unsigned short, unsigned int
FORMAT = 'llHHI'
EVENT_SIZE = struct.calcsize(FORMAT)
framebuffer = int(os.getenv('FRAMEBUFFER', 0))
#open... | [
"gdr@gdr.name"
] | gdr@gdr.name |
33297c80981be4147b2f9bbef3eef38f163010b9 | d509fb7b7a0a35bf752f977417d2b3119a00b084 | /wordsiv/punctuation.py | 63dcdad8de6602be16fda7c1bb7c737d55fbb405 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | tallpauley/wordsiv | c0904fc9fa8a6032a06a9cfb3b3cadc6373ca2da | 935e6a08cd39134b7408b67d6ff721830d03a5ec | refs/heads/main | 2023-05-10T04:32:39.135705 | 2021-05-20T21:26:22 | 2021-05-20T21:26:22 | 357,676,771 | 24 | 1 | MIT | 2021-05-20T21:26:23 | 2021-04-13T20:12:55 | Python | UTF-8 | Python | false | false | 2,341 | py | def default_punc_func(words, rand, start, end, inner, wrap):
# Sort of derived from wikipedia, but increased freq of lesser used punctuation
# https://en.wikipedia.org/wiki/English_punctuation#Frequency
# place "inner" punctuation (like comma, hyphen, etc)
insert_index = rand.randrange(len(words) - 1)
... | [
"noreply@github.com"
] | noreply@github.com |
8e7f5dcc339c5006d5ba09592c2e38aaa9eda380 | 4a8318fb3775476b3cb849ef32426ced6bbb86e5 | /py/p030.py | 8a50ec6b350ba080f2b666f7e54dceb587c24fcd | [] | no_license | zellyn/project-euler | 422de8387320ebb9b7a978e348dd7e12e1048352 | 087061f007350ac2c210c5ef19f1ccc3d89dea35 | refs/heads/master | 2021-01-21T05:00:15.903675 | 2020-01-17T14:21:44 | 2020-01-17T14:21:44 | 154,268 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | #!/usr/bin/env python
# Project Euler
# Problem 30
#
# Find the sum of all the numbers that can be written as the sum of
# fifth powers of their digits.
def fifth_power_eq(n):
sum = 0
i = n
while i:
sum += (i % 10) ** 5
i //= 10
return sum == n
def p030():
nums = []
for n in x... | [
"zhunter@ajc.com"
] | zhunter@ajc.com |
44a0a7737d19c1e6e47ddf5525d0d632188aabd2 | 10f397d1fe8c68dc5af033e0b88cb99be56bc4f2 | /Statistics/models.py | 28a3d7a4f4138e1e4c55db79c7ee134721781ded | [] | no_license | wsqy/AccountRandmomAmount | db3905bd425c074935c256aab62f437fe7cb0ffc | b69bc1269a666c48fe954ac423a25d111e01176b | refs/heads/master | 2023-06-29T12:49:35.947729 | 2020-06-30T03:27:05 | 2020-06-30T03:27:05 | 271,683,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,592 | py | from django.db import models
# from django.conf import settings
from django.utils import timezone
from Account.models import Buyer, Seller, Company
class DayBuyer(models.Model):
"""
买方日交易额总量表
"""
date = models.DateField(verbose_name='任务日期', default=timezone.now)
buyer = models.ForeignKey(Buyer, on_... | [
"1323800521@qq.com"
] | 1323800521@qq.com |
e625e4dba04302b5a4595e8647919e5ef1a21495 | 58be9ab3da7170fa6eea7c12a6d59e4960db3c66 | /alumnos/Luis Omar/Actividad 02/Actividad-4.py | ed06d854f235496b0664261a1e9e191effe05757 | [] | no_license | CodevEnsenada/actividades | 08d39b9b53d8c10ad17204fa9ac5e313a940a4b3 | 862d6f983b7056957522d28686df1b0a323a9e6f | refs/heads/master | 2022-04-09T03:47:32.373978 | 2020-03-16T20:17:14 | 2020-03-16T20:17:14 | 241,519,981 | 0 | 12 | null | 2020-03-16T20:17:15 | 2020-02-19T03:03:48 | Python | UTF-8 | Python | false | false | 36 | py | #act.4
a=18
b=2
suma=a+b
print(suma) | [
"lsanchez@codevschool.org"
] | lsanchez@codevschool.org |
88602e1e0e2ef39da01887596a86e434b79e849e | 028afaa205e46e0db61707a84860fa5e34bd61aa | /my_emoji.py | 50ffaaed40c18a77aaf96e8211a5dc06a70dfe55 | [] | no_license | muriel27/mojo_python | d4f32142e9817621a319e3d4cbcc89d3a9771ddb | c5488d6d35992e932f91f5cae58a87515b0ee77e | refs/heads/master | 2021-01-20T20:08:07.036918 | 2016-06-27T02:56:21 | 2016-06-27T02:56:21 | 61,265,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,119 | py | #__author__ = 'mjwei'
from enum import Enum
import os
import operator
import random
class Category(Enum):
People = 'people'
Face ='face'
CatFace ='catFace'
MonkeyFace = 'monkeyFace'
Transport = 'transport'
Symbol = 'symbol'
Animal = 'animal'
Others = 'others'
Plant = 'plant'
Fruit = 'fruit'
Food = 'food'
... | [
"mjw553@nyu.edu"
] | mjw553@nyu.edu |
624253db8803ba4e60460ddc4c11d392b0bac60d | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/libwebrtc/tools/grit/grit/tool/postprocess_unittest.py | 21ca5e2f774610e4a7efa36f398ec1fb87b4cddc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 1,705 | py |
'''Unit test that checks postprocessing of files.
Tests postprocessing by having the postprocessor
modify the grd data tree, changing the message name attributes.
'''
from __future__ import print_function
import os
import re
import sys
if __name__ == '__main__':
sys.path.append(os.path.join(os.path.dirna... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
7dc45d66e98d4d7f6520c961a275e8f2cca368d4 | 80ab3312d7bbe514d1e7b3452fdd9c25d542f079 | /collection/list/converting2.py | b5fb44d42103d62a6f045095b5aacbbefcdca91a | [] | no_license | krishnanandk/kkprojects | 2e7e993475b10696b05873a15df997ddf46931a1 | dd5d96ad7af9f8632648e833fcae87951ca431de | refs/heads/master | 2023-04-09T04:08:23.077215 | 2021-04-19T04:56:11 | 2021-04-19T04:56:11 | 359,332,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | lst=[5,10,20]
print(lst)
lst1=[]
sum=sum(lst)
for i in lst:
lst1.append(sum-i)
print(lst1) | [
"krishnanandk264@gmail.com"
] | krishnanandk264@gmail.com |
f2744c340d84c765a7f38427e107dcf0e0339605 | 6ba72ce01fe8c08a10a7607536858cfd40b2dc16 | /kirppuauth/migrations/0001_initial.py | a501f184d3eaff89282c7871370678d0bb60b7eb | [
"MIT"
] | permissive | jlaunonen/kirppu | dcafc5537d325b2605daf98cdde4115a759dd2ce | fb694a0d1f827f4f4aae870589eb4e57ddf9bc97 | refs/heads/master | 2023-07-20T03:13:10.814349 | 2023-07-14T16:46:55 | 2023-07-14T16:46:55 | 18,244,187 | 0 | 6 | MIT | 2023-01-10T20:48:08 | 2014-03-29T15:36:30 | Python | UTF-8 | Python | false | false | 2,830 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('auth', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"jyrki.launonen@gmail.com"
] | jyrki.launonen@gmail.com |
1f41f472eff20d97f50cfe622768cb7a07752ec7 | ded41c1a9337c4194ef8a07951bd7c21b342f174 | /healthillc/urls.py | 8064a8959457eed39ec1433cd7f2e4337001ec26 | [] | no_license | rasikraj01/healthillc | f9a2c175245cbf50f193f7f8b4c232a55bd14980 | b452fdcbad0e577f8160db769918689b940ae982 | refs/heads/master | 2022-12-10T08:19:19.656197 | 2020-02-06T18:52:18 | 2020-02-06T18:52:18 | 238,709,132 | 1 | 0 | null | 2022-11-22T05:17:46 | 2020-02-06T14:37:13 | HTML | UTF-8 | Python | false | false | 1,780 | py | from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from django.urls import path, include
from django.contrib import admin
from django.contrib.auth.views import LoginView, LogoutView, PasswordResetView, PasswordResetDoneView, PasswordResetCompleteView, PasswordR... | [
"rasikraj01@gmail.com"
] | rasikraj01@gmail.com |
595eacd1e61bf19c94b33e3e829d75688a0ceefb | ecb21f6dd5d49b44826974a1c06357a8405aa89e | /code/train/csnn_two_level_inhibition.py | e9cbb3ff928be0a7613608bfd7d116895e9fcef6 | [] | no_license | gumpfly/stdp-mnist | 9924279014e66cb26fab75f1136f38fd05d8fa3e | 03c32a47e9cd6fe8f902d134c2aa1d04bff037aa | refs/heads/master | 2021-08-15T11:30:13.544379 | 2017-11-17T18:59:49 | 2017-11-17T18:59:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,633 | py | '''
Convolutional spiking neural network training, testing, and evaluation script. Evaluation can be done outside of this script; however, it is most straightforward to call this
script with mode=train, then mode=test on HPC systems, where in the test mode, the network evaluation is written to disk.
'''
import warnin... | [
"djsaunde@umass.edu"
] | djsaunde@umass.edu |
2ac03ec918444160ad766c68aebfd92c369595f2 | b7fbe103e03573cc7ac2d1c6f2d150377601f632 | /dataset.py | c1b8ac03ef93e850adcab4d7e419613b8f3e0456 | [] | no_license | fortis3000/blob_detection | 294736ab7befe6993fc5852ec35f193be434ead5 | 5b0d5adf86cfa0b41dd7e53d00dfff8dbb82fd13 | refs/heads/master | 2023-02-20T17:57:36.252672 | 2021-01-18T13:56:14 | 2021-01-18T13:56:14 | 330,676,190 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,818 | py | """
Bulk dataset module
"""
import os
import cv2
import matplotlib.pyplot as plt
import numpy as np
class Dataset:
"""
Bulk dataset Dataset.
Reads images, apply augmentation and preprocessing transformations.
Args:
images_dir (str): path to images folder
masks_dir (str): path to segm... | [
"fortis3000@gmail.com"
] | fortis3000@gmail.com |
4e4423d83f7f75ce347ed72f5eb755161c853971 | 0938dfe5cd7678bc1fa5060019b944d3d7f319d6 | /Trainer.py | 26f95e2fad53db1befbc5e535967399c64896476 | [] | no_license | joon1230/Mask_Detection | 04e4a0fb2999f79c1360435feffafb99bf9789c2 | 65cf464c6880afd4f88535628831577d1c5fae90 | refs/heads/main | 2023-06-02T02:31:10.620322 | 2021-06-18T03:38:35 | 2021-06-18T03:38:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,209 | py | import os
import pandas as pd
import time
from functools import partial
import glob
import numpy as np
import torch
import torch.optim
from torch.utils.data import Dataset, DataLoader
from sklearn.metrics import f1_score
from sklearn.model_selection import train_test_split
import utils
import Datasets
class Traine... | [
"joonamm@naver.com"
] | joonamm@naver.com |
8d49dfba348dc525114f8c35b0b4eaa0c06bf9fd | 0427eeafe5dfa0d25a88c535e16f2c5c566f7ebf | /Expression/separator.py | c656696079f48ab02d77130c74e3c754784d4bde | [] | no_license | balujaashish/NOW_PDF_Reader | 86d653536317d064ebbe40e9a3b5c9233fd95b9a | f6cba94f034352e2c7287e98bdbb89a9baa7cfe6 | refs/heads/master | 2021-03-31T15:17:37.169832 | 2020-06-16T05:53:12 | 2020-06-16T05:53:12 | 248,115,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py |
class Separator():
def __init__(self):
self.separators = ['=', ':']
| [
"ashish.baluja@boardwalktech.com"
] | ashish.baluja@boardwalktech.com |
f1babe1d7b57929d0c33a6a71de633682880da6e | 2d2b25484e96753891554df3d1f3ea86e5df2bd2 | /hits/__init__.py | 5479b058039073cbf7d4528c1fda0c74a8fad336 | [] | no_license | maxzuo/HITSystem | 83d8539c9dd5916a7952c9d5f647ace8b12382b2 | 943ba5c1d17df79b1f6f346cfdefcaab8d5bc2ec | refs/heads/master | 2020-04-23T22:59:41.921050 | 2019-04-19T21:38:09 | 2019-04-19T21:38:09 | 171,520,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,538 | py | import sys
import os
from datetime import datetime
import convert
__version__ = "0.1.0"
# class __Converter:
# def __init__(self):
# # self.
# return
# #Converts HIT src to tsv using key and saving it to dest
# def raw2tsv(self, src, key, dest, verbose=False):
# now = datetime.now()
# if (not os.path.is... | [
"max.zuo@gmail.com"
] | max.zuo@gmail.com |
f9520500f015b1f2f85946de085b6dfb1d169031 | b92b0e9ba2338ab311312dcbbeefcbb7c912fc2e | /build/shogun_lib/examples/documented/python_modular/distance_sparseeuclidean_modular.py | 2e8e098e832784cb39eb330eae2d7c48c0f9148f | [] | no_license | behollis/muViewBranch | 384f8f97f67723b2a4019294854969d6fc1f53e8 | 1d80914f57e47b3ad565c4696861f7b3213675e0 | refs/heads/master | 2021-01-10T13:22:28.580069 | 2015-10-27T21:43:20 | 2015-10-27T21:43:20 | 45,059,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | # In this example a sparse euclidean distance is computed for sparse toy data.
from tools.load import LoadMatrix
lm=LoadMatrix()
traindat = lm.load_numbers('../data/fm_train_real.dat')
testdat = lm.load_numbers('../data/fm_test_real.dat')
parameter_list = [[traindat,testdat],[traindat,testdat]]
def distance_sparsee... | [
"prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305"
] | prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305 |
338f2eb6af266e51dbd32008647d14094b811fc4 | c0d312304522defd70997617f8b9288d974001b5 | /projects/ligo/GW150914_tutorial.py | 79e1120d82dccdefda0a059369e7098009c43b23 | [] | no_license | adamw523/ai-north-docker-jupyter | 312c7e9d2380149a8f2b78aaa63675fe7a4f7fb7 | 9b9ea0b76b83854ba73310c04d578d9bf2ae5dea | refs/heads/master | 2020-04-06T06:53:39.657886 | 2016-09-15T17:58:03 | 2016-09-15T17:58:03 | 64,694,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,218 | py |
# coding: utf-8
# # SIGNAL PROCESSING WITH GW150914 OPEN DATA
#
# Welcome! This ipython notebook (or associated python script GW150914_tutorial.py ) will go through some typical signal processing tasks on strain time-series data associated with the LIGO GW150914 data release from the LIGO Open Science Center (LOSC)... | [
"adamw@tbcn.ca"
] | adamw@tbcn.ca |
75b8cf6fde95fbd9a46ab0c2c5277b706714856b | ce6538b5b7da162c1c690a346e7ec9ae0a6291f3 | /wild_cat_zoo/project/cheetah.py | 92f02831fe0904412100be1467c39f16c02a2ad7 | [] | no_license | DaniTodorowa/Softuni | 391f13dd61a6d16cd48ee06e9b35b2fd931375df | f7c875fda4e13ec63152671509aaa6eca29d7f50 | refs/heads/master | 2022-11-25T23:34:49.744315 | 2020-08-02T08:23:44 | 2020-08-02T08:23:44 | 278,938,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | class Cheetah:
def __init__(self, name, gender, age):
self.name = name
self.gender = gender
self.age = age
@staticmethod
def get_needs(self):
return 60
def __repr__(self):
return f"Name: {self.name}, Age: {self.age}, Gender: {self.gender}"
| [
"danitodorova2106@gmail.com"
] | danitodorova2106@gmail.com |
c02054b0e7144f761e863a5a249d40a75b1c8cc5 | 6a609bc67d6a271c1bd26885ce90b3332995143c | /exercises/exhaustive-search/combinations_ii.py | 46561751342eaead6317019aa18b093dfc811644 | [] | no_license | nahgnaw/data-structure | 1c38b3f7e4953462c5c46310b53912a6e3bced9b | 18ed31a3edf20a3e5a0b7a0b56acca5b98939693 | refs/heads/master | 2020-04-05T18:33:46.321909 | 2016-07-29T21:14:12 | 2016-07-29T21:14:12 | 44,650,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # -*- coding: utf-8 -*-
"""
Given a list of integer lists. Each time take an item from each list. Find all the combinations.
"""
class Solution(object):
def combine(self, arr):
"""
:type arr: List[List[init]]
:rtype: List[List[int]]
"""
def dfs(res, pos):
if len... | [
"wanghan15@gmail.com"
] | wanghan15@gmail.com |
c359621f88fe116601d909b5dce736eebf473a4f | 132c7b0c8ba606a249fbdfe24f9d73e7e224d260 | /sanyuapp/urls.py | 718ddf53afbfca5bc73c30fb4040c7281a875e3f | [] | no_license | sanyuOnline/sanyu-webapp | dafa3505d7f3d6eca225ca6b4dce3fa683d5e9fe | c8e3824146bb9eb4dcf971a1cdef2bc4475385f1 | refs/heads/main | 2023-08-31T12:52:06.104078 | 2021-10-27T07:03:09 | 2021-10-27T07:03:09 | 406,589,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | """sanyuapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"jordanrob709@gmail.com"
] | jordanrob709@gmail.com |
f1fc5e04b67e273abf07193662fafc8712fb4c60 | 07c262960dde4da25e48030d1d4727e2e4392e45 | /hw1/data/prepcocess.py | ef43c8e69176db0b4d21c0c6aa853863cda6f2e0 | [] | no_license | a127000555/ML2018SPRING | 2aae1fdaf92ff439e459a062a04d7b73fc3fb502 | 44d7ddf1abfae0c130cb0d57bd6bafbd14764eba | refs/heads/master | 2021-03-30T21:03:22.259450 | 2018-07-05T16:01:25 | 2018-07-05T16:01:25 | 124,531,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,342 | py | import csv
import numpy as np
cin = csv.reader(open('train.csv','r',encoding='big5'))
table = [row for row in cin]
#print(np.array(table))
stamp = 0
banned = ['2014/3/12','2014/4/2' , '2014/4/6']
all_training = []
for row_idx_head in range(1,len(table),18):
if table[row_idx_head][0] in banned:
continue
day = { '... | [
"a127000555@gmail.com"
] | a127000555@gmail.com |
314255e054c0ccca2a072d2515304f2f4f772b2d | 2896efe044a9b5d7caa545f39eb8bc12e514f275 | /lab02a.py | 2d8d43abff4d51d2515919aaed1bf3c824c38378 | [] | no_license | riamokashi/Computer-Science-Labs | 8d4acf23f3b7d0f4b5b9cb7475caaeef136fe047 | 15b662f46a37dbe20031ef6ecb0e063fce3d7df4 | refs/heads/master | 2020-08-16T04:30:31.001123 | 2019-10-16T04:11:43 | 2019-10-16T04:11:43 | 215,454,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 9 16:36:12 2019
@author: riamokashi
"""
odd_sum = 0
even_sum = 0
odd_count = 0
even_count = 0
positive_int_count = 0
while True:
n_str = input("Input an integer (0 terminates): ")
n_int = int(n_str)
if n_int == 0:
break
... | [
"noreply@github.com"
] | noreply@github.com |
57d831e8dd13648f57838ae881015f3fc20c13d1 | ebb6deb23eba704efeecd300ad42770f73007470 | /ind1_1.py | bbe0af5bfe6ca114ffb098abf03806b124b1f7b1 | [
"MIT"
] | permissive | IshchenkoMaksim/lab6 | a1d275c0008c5d446e670ec6092f37e56ea8c1c1 | 92c1b298e0c97c22fbd43fe81ddc510ef994cbc3 | refs/heads/main | 2023-05-02T15:53:13.136710 | 2021-05-12T13:14:13 | 2021-05-12T13:14:13 | 365,343,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# №1 В-1 Ввести список А из 10 элементов, найти наибольший элемент и переставить его с первым элементом.
# Преобразованный массив вывести.
import sys
if __name__ == '__main__':
A = list(map(int, input().split()))
n = 0
if len(A) != 10:
print("Невер... | [
"ishchenko_ma21@mail.ru"
] | ishchenko_ma21@mail.ru |
e9b4572ab1f8e1c87a7d0030bcf82691a6a035e5 | 880103c6f9bdc9d5a7a8633c3e4d108c964e9b89 | /devil/devil/android/tools/device_monitor.py | 2b3503174c8a364463e242fa2f450a76e5b3047f | [
"BSD-3-Clause"
] | permissive | ateleshev/catapult | c3645f0fb0d4e929b5baebea33307b765225cb2f | faf60eb37f8b9828eddb30c8397b333eb1d89204 | refs/heads/master | 2021-01-22T19:08:47.140355 | 2017-03-16T01:01:54 | 2017-03-16T01:01:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,936 | py | #!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Launches a daemon to monitor android device temperatures & status.
This script will repeatedly poll the given devices for their tem... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
ca128136c7a63d4f70b2d6bc02bb47eeb3885205 | 6d2df64e318983640a3f26e6ef95ffd00a166e54 | /Development/Tests/Vin_Voltage.py | 684a12a6b3a9af7e45b444f9d3190699d08cd538 | [] | no_license | sgbbhat/SolderStationAuto | 2c9145f87b1e404d0e319fcdfe9612f2f095b30a | 8ed10cd8228253b7679533cc5d4f71c93b2803a7 | refs/heads/master | 2020-06-13T17:34:21.552052 | 2019-10-30T19:42:26 | 2019-10-30T19:42:26 | 194,733,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | # Function to measure battery voltage and display test
from tkinter import END
from os import *
import time
import re
from Tests.displayResult import displayResult
from tkinter import *
from tkinter import messagebox
def Vin_Voltage(root, key, val, databaseHandle, mfgID, Sln, TestNameText, MinLimitText, MaxLimitTex... | [
"sgbbhat@gmail.com"
] | sgbbhat@gmail.com |
cc6c7bd30039caf0625491719ee498eb3ca75398 | d0a5f10d54bc336fba4c341c59297d8a75886c24 | /dropbox_helper.py | 8650f2f4a74b8c98decb7bac38f698325a8bf227 | [] | no_license | azabujuban/sleeping_pattern | 89ca22d4a371de412bd96657157556c943786a49 | ed3538804cdfe1c18f6f198e417a064c75c1bef1 | refs/heads/master | 2021-01-01T19:46:39.357136 | 2014-12-08T15:22:36 | 2014-12-08T15:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,500 | py | __author__ = 'maxlevy'
from dropbox import client
import os
class DropboxHelper():
def __init__(self):
self.api_client = None
try:
access_token = 'qsEe-HKsKCEAAAAAAAAGVx_DNOVFQCrjtcsAEFNeTeenQ1NwKsis-51HZDpYjwG2'
self.api_client = client.DropboxClient(access_t... | [
"max.levy@gmail.com"
] | max.levy@gmail.com |
b8811aa2495584808df47112d19fab3fa7a3e441 | 952793f6d2444b1d8221cf584a5c629c54806f95 | /kmeans.py | a6e4db68c23b70d2e34b0bed4a3426be000a2eac | [] | no_license | scopegeneral/MiniProjects | 24f57225e075e33ae05af036864e3ad21cbfe673 | 554cda16f03f1d94bb7380df4446146cde862aab | refs/heads/master | 2020-03-23T09:49:59.835655 | 2018-07-21T05:02:45 | 2018-07-21T05:02:45 | 141,410,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | import numpy as np
import imageio
import matplotlib.pyplot as plt
def initKMeans(X, K):
[m, n] = X.shape
rand_idx = np.random.permutation(m)
rand_idx = rand_idx[:K]
centroids = X[rand_idx,:]
return centroids
def findClosestCentroids(X, initial_centroids):
[K, n] = initial_centroids.shape
[m, n] ... | [
"noreply@github.com"
] | noreply@github.com |
581d5e4892904165e00c1562bbdcc03dfe1ec4fc | ae1a91ba30fc82f1db484beca76fbb95ab835b2f | /apps/channel/management/commands/_archive/poll_queue.py | 6beabbdeb682eddbb3f9ee8556cd7965a314c570 | [] | no_license | IntelligentTrading/clover | fa6728819e10c0357a5a3d5345581f6647bb1e68 | 84fa62eab4fd05ca6ee9fd966fc9981d5073ffd1 | refs/heads/master | 2022-10-15T23:20:11.849176 | 2019-07-17T14:09:54 | 2019-07-17T14:09:54 | 160,502,598 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,135 | py | import json
import logging
import datetime
from django.core.management.base import BaseCommand
from django.db import IntegrityError
from apps.channel.incoming_queue import SqsListener
from apps.indicator.models import Price, Volume, PriceHistory
from taskapp.helpers.common import get_source_name
from settings impor... | [
"other@tomcounsell.com"
] | other@tomcounsell.com |
dfb7a671ee5633e18c11d844bae922e69660677e | ca5339f667a5ef6a9faa149413d836cd3c1bb069 | /heap.py | 4436234f9e4cb9351b57f92847cf108f80802aff | [] | no_license | alanlyyy/PythonHeaps | 47b2baed57344d5e75328b55dfd3ae9b9d968e76 | 9732b45fb939d5538a3529d379953572ebc7f1af | refs/heads/master | 2020-09-14T09:41:45.597355 | 2019-11-21T05:17:33 | 2019-11-21T05:17:33 | 223,093,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,418 | py |
#max number of items that can be stored in the heap
CAPACITY = 8
class HeapBase:
def __init__(self):
#create an array with capacity elements
self.heap = [0]*CAPACITY
#counter to keep track of num items in heap
self.heap_size = 0
#O(logN... | [
"noreply@github.com"
] | noreply@github.com |
cec69055122f7d6681aafa3340f9b1e6c99ab682 | 999879f8d18e041d7fa313132408b252aded47f8 | /01-codes/scipy-master/scipy/linalg/_cython_signature_generator.py | 3e32f4ee3bff69c241712515ab32a5fa027911ff | [
"MIT"
] | permissive | QPanProjects/Surrogate-Model | ebcaf05728e82dcbcd924c2edca1b490ab085173 | 848c7128201218b0819c9665e2cec72e3b1d29ac | refs/heads/master | 2022-10-11T19:03:55.224257 | 2020-06-09T14:37:35 | 2020-06-09T14:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,372 | py | """
A script that uses f2py to generate the signature files used to make
the Cython BLAS and LAPACK wrappers from the fortran source code for
LAPACK and the reference BLAS.
To generate the BLAS wrapper signatures call:
python _cython_signature_generator.py blas <blas_directory> <out_file>
To generate the LAPACK wrapp... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
8458f4465852fe16d436942d35b6d77d1c651164 | 706f13fdcf9661040158a9effbfdf5a93ca95ac9 | /app9.py | ca3e3fca0ccdb34a8f7f8eded59d6a328f50f27b | [] | no_license | 123shukla/samy-web | 200eb47dca17a810bfc1474e0cfcefad54930d2a | 6d0fe06db54d19201a30e30c3c819ab6340bafcf | refs/heads/main | 2022-12-29T05:40:28.982799 | 2020-10-13T07:31:05 | 2020-10-13T07:31:05 | 303,619,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from app import app
layout = html.Div([
html.H3('Node 9'),
dcc.Link('Go to Node 2', href='/apps/app2'),
html.Br(),
dcc.Link('Go to Node 15', href='/apps/app15'),
html.Br(... | [
"noreply@github.com"
] | noreply@github.com |
c1749a91a063e221eaf223f62ef9141b352ea7b7 | 39fbbfd88540111850c4591e70f1dd35d4ca4634 | /test-nsga2.py | ab530f516329acf77ef053a20130c5cb740c5093 | [] | no_license | Robert-MYM/Nuaa_ASE-Project_one | 7166f2cc0e0886491fc1e9e22ab0f648fd538498 | cc2a7e81b759b5f8f15f5d1c55e0f82375f76cb9 | refs/heads/master | 2020-06-01T02:14:33.083619 | 2019-06-11T08:57:36 | 2019-06-11T08:57:36 | 190,593,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | from jmetal.algorithm.multiobjective.nsgaii import NSGAII
from jmetal.operator import BinaryTournamentSelection, BitFlipMutation, SPXCrossover,PolynomialMutation,SBXCrossover
from jmetal.problem.multiobjective.unconstrained import OneZeroMax
from jmetal.util.comparator import RankingAndCrowdingDistanceComparator, Domin... | [
"569870911@qq.com"
] | 569870911@qq.com |
03bf0178032d170f8e311d11f4a3aa46d2dc98ba | caae8bec3b48d2805c2b1bd9db053026bf78d074 | /tests/test.py | fb364def5456abb9fb01ce116e5a44365e35131e | [
"MIT"
] | permissive | worldwidekatie/study_guide | 69ccbeaef7c5a6ce5fbeffa7b115d20dfe42a843 | bc7a67f331990d07463c6ac9413eef283e555ad0 | refs/heads/master | 2022-06-19T14:14:54.225242 | 2020-05-07T22:58:16 | 2020-05-07T22:58:16 | 262,132,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | import unittest
from ..my_studyguide.math1 import Math1
class Math1Tests(unittest.TestCase):
def test_addition(self):
self.assertEqual(Math1.addition, 30)
if __name__ == "__main__":
unittest.main() | [
"katie.evankodouglas@gmail.com"
] | katie.evankodouglas@gmail.com |
97f76feb72609a46af6c644c9ed643b1a6dd4f6f | 8e2648e3ec0f777ba47f0688e455f2a997e1da05 | /com/shujia/day1/demo5.py | 1e20db33ef2e7956f9d5c154dd5b094d7174ec61 | [] | no_license | MLlibfiy/python | c3ac27e81943bc669624198b6ac9c753c067f054 | 1d088bf3f9111185001230de0ee06bc760dc8ae8 | refs/heads/master | 2020-04-13T03:52:46.129152 | 2018-12-29T02:48:26 | 2018-12-29T02:48:26 | 162,944,627 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # coding=utf-8
if __name__ == '__main__':
# 集合 无序,不唯一
set1 = {"shu", "jia", 1, "a", "a"}
print set1
# 创建空的集合
set2 = set()
set2.add("java")
set2.add("java")
set2.add("java")
set2.add("scala")
print set2
set4 = {1, 2, 3, 4, 5, 6}
set5 = {4, 5, 6, 7, 8, 9}
print s... | [
"mllib_fiy@163.com"
] | mllib_fiy@163.com |
03e0224bd1d127b915a20878ed3192e0ad6658fd | 904a13bb38e8f73dba4081becf41dbeea0ea21d5 | /scripts/export_titers_for_auspice_v1.py | 7b6c15cbf368f005a93b86cad9cf35d61656706e | [] | no_license | nextstrain/seasonal-flu | a78bc645d5dc4e1c73b5acdb7e2ddd9ea8f88f19 | 48a0ed2aecb6ea16b2483f136f718c618fdfd1e7 | refs/heads/master | 2023-08-04T06:31:08.278580 | 2023-08-01T18:56:29 | 2023-08-01T18:56:29 | 154,029,525 | 35 | 20 | null | 2023-09-08T22:19:40 | 2018-10-21T16:36:00 | Python | UTF-8 | Python | false | false | 1,193 | py | #!/usr/bin/env python3
import argparse
import json
if __name__ == '__main__':
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("--titers-sub")
parser.add_argument("--titers-tree")
parser.add_argument("--output-titers")
parser.add_argument... | [
"huddlej@gmail.com"
] | huddlej@gmail.com |
efc9f072d5d8de144abc02d994905ccb7de0c700 | db3981b8d30db9ec0e3ee8242ed918a7c5988aa1 | /AlgoDescription.py | 7908a1dec8a3dfde8cd874ba98bc226dc031c26d | [] | no_license | nigamv/datasciencetool | eebacbd412a2febad87bbf2848127137519431a4 | b70c9446a8f9c41a3e1dc257bb8633e3f5737ff6 | refs/heads/master | 2020-03-29T13:01:07.500757 | 2019-05-29T20:37:55 | 2019-05-29T20:37:55 | 149,935,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | '''
Created on Feb 11, 2016
@author: vibhor
'''
class AlgoDescription:
algorithms =("There are various algorithms available for processing data and getting desired outputs."
"These algorithms are divided in two different ways, supervised and un-supervised learning algorithm "
... | [
"vibhor_nigam@comcast.com"
] | vibhor_nigam@comcast.com |
ff06a8c08e99f929e422c16fb959c283ab298bbe | 0c6488fd370f8d0e18173ab77eb9443fd61d0576 | /easy_rec/python/model/deepfm.py | f17bec0beb1edaf64e7f166e11d23c14d57b7fca | [
"Apache-2.0"
] | permissive | geogubd/EasyRec | 96a6d32d2795057cc69d5ba4e8948033bdd3e308 | d4bfd3b40bce1b990a9206112a9429dbd262a116 | refs/heads/master | 2023-09-04T02:59:28.832855 | 2021-10-18T05:19:56 | 2021-10-18T05:19:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,459 | py | # -*- encoding:utf-8 -*-
# Copyright (c) Alibaba, Inc. and its affiliates.
import tensorflow as tf
from easy_rec.python.layers import dnn
from easy_rec.python.layers import fm
from easy_rec.python.layers import input_layer
from easy_rec.python.model.rank_model import RankModel
from easy_rec.python.protos.deepfm_pb2 im... | [
"chengmengli06@qq.com"
] | chengmengli06@qq.com |
54dda2fd3569a59243cb0d5b8b7dda99f42080cb | ad6ffe99c0ec781b0bb286ce5cb10ca3735bde97 | /hello-docstring.py | 6af55db124aa30b82bd510f054f9bb043640e19d | [
"MIT"
] | permissive | crunchy-devops/tp-bac-4 | db7f9ac3824bfcf7cd8b3570c6d45284be53b9d0 | 4784d9c0505ad62bcad7b28d536826126ded435c | refs/heads/master | 2023-02-26T09:18:31.182264 | 2021-02-01T09:26:27 | 2021-02-01T09:26:27 | 330,283,640 | 0 | 10 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | #!/usr/bin/env python3
"""
Author: Herve Meftah <dockerlite@gmail.com>
Purpose: Say hello
"""
print('Hello, World!')
| [
"dockerlite@gmail.com"
] | dockerlite@gmail.com |
50664041a00a4b4add3e5bafe2d2107d1fb5a4e5 | 43c398156b5fdab29a533d97e612a242aa2f4a75 | /Intern/Demo/Demo/settings.py | 8ec3c8dc64f8d65796d1637c1225e11f8402e312 | [] | no_license | shahriya2402/leave_management_system | 7f501d8c5470d4e7499c65ebf96ab793c8e38cdb | be665cf0bb48a30868967dc874ebabb8d770139a | refs/heads/main | 2023-04-14T17:53:17.809060 | 2021-05-04T10:23:58 | 2021-05-04T10:23:58 | 364,204,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,161 | py | """
Django settings for Demo project.
Generated by 'django-admin startproject' using Django 3.2.
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/
"""
import mimetypes
f... | [
"shahriya2402@yahoo.com"
] | shahriya2402@yahoo.com |
c55f78c2df8746a0df7070531eb25fabfb0272d6 | 845c4bd2ff1aba9172cb760a1b77dc1fa5b2ce3d | /doc/conf.py | c310bca4c701a40c5e2b3d88b3090edb922701a8 | [] | no_license | fmi-tools/py-fmipp | 0cea73658f07f675b09edae6ba6325cda6bdc87e | e39b80c65e375832c6839a7c2a9edb4117ae409d | refs/heads/master | 2023-08-16T18:09:06.182871 | 2022-11-22T15:38:07 | 2022-11-22T15:38:07 | 222,248,323 | 0 | 1 | null | 2019-11-17T12:58:34 | 2019-11-17T12:58:33 | null | UTF-8 | Python | false | false | 5,603 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"edmund.widl@ait.ac.at"
] | edmund.widl@ait.ac.at |
c3952e3f2d8c1e4e37d335f16d761e86e26fa2f7 | c0e50f13fe0e20a974b7aeb7db5d5018ecc9a1aa | /DjangoRestApis/settings.py | 12c1f47d386f10f97e06b9da39b0f6efde832eb5 | [] | no_license | ducquang2/DjangoRestApis | 4c39b1818caf27396e7af8163c7e661f2813268e | 38f503c5e387b6e6a7297f84c258ad2fdb3669d7 | refs/heads/master | 2023-02-20T05:15:40.566619 | 2021-01-26T07:51:34 | 2021-01-26T07:51:34 | 332,125,499 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,770 | py | """
Django settings for DjangoRestApis project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from ... | [
"quangbilun@gmail.com"
] | quangbilun@gmail.com |
544535a12e8aebb81a573d170387a9a53d5e9f99 | 1e21f0939d4c46db8eeca9fa8ef034ed14b7a549 | /PhotonTnP_SampleProduction/crab/tnpDatasetDef.py | 948c5aa42935bdee103b37980cbee893ae9ef5e9 | [] | no_license | Ming-Yan/photonTnp | 4e46286998d4e2806e423e2e27893c0a8675494f | 5468bea3eff51b21eed2701cda4f3e5d2ad9e6bf | refs/heads/master | 2021-10-08T20:33:55.910375 | 2018-10-22T09:12:26 | 2018-10-22T09:12:26 | 162,109,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,961 | py | datasetsForTnP = [
{'lumiProcessedFile': None, 'campaign': 'crab_project_Moriond17_v1', 'dataset': 'DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8_DYToLL_madgraph_Spring16_reHLT', 'file': '/store/group/phys_egamma/tnp/80X/PhoEleIDs/Moriond17_v1/mc//TnPTree_DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pyth... | [
"p.wang@cern.ch"
] | p.wang@cern.ch |
2c513021cb031fcdb1c6bf1db308b216812e673a | ca259dd96261af73d470cbf93714db8219511111 | /core/apps/storage/migrations/0008_cephstorage.py | bf075e00083b8a727ce04d05db9db269fbab0952 | [
"Apache-2.0"
] | permissive | jedia168/KubeOperator | 243812a898646b90b38aab56af672b1e218191ff | 87917cf95f88584ddbc68c50522656bbe42934ec | refs/heads/master | 2021-05-23T00:40:32.206564 | 2020-04-03T10:44:39 | 2020-04-03T10:44:57 | 253,158,258 | 3 | 0 | Apache-2.0 | 2020-04-05T04:53:20 | 2020-04-05T04:53:20 | null | UTF-8 | Python | false | false | 684 | py | # Generated by Django 2.1.11 on 2019-12-05 04:06
import common.models
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('storage', '0007_auto_20191024_0442'),
]
operations = [
migrations.CreateModel(
name='CephStora... | [
"zhengkun@fit2cloud.com"
] | zhengkun@fit2cloud.com |
df9d8d9d26b3a715fd17b4a1fdbf8b7ea5a0026c | 477b72708f02ec317a371b9bedfa65d316c48d3c | /server-flask/config.py | c34f090a816b9c03461f2725f469a3f97a218263 | [] | no_license | AJenbo/web-api-project | bd01ba898f05d84abee3d89d39b57cf31f809fa2 | ae2aa17f1011fe8ac655b8092cee6a4d34e8cda9 | refs/heads/master | 2021-02-11T13:17:23.949374 | 2020-03-02T19:15:35 | 2020-03-02T23:04:53 | 244,494,129 | 1 | 0 | null | 2020-03-02T23:02:47 | 2020-03-02T23:02:47 | null | UTF-8 | Python | false | false | 276 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False
JSON_SORT_KEYS = False | [
"doryoku@gmail.com"
] | doryoku@gmail.com |
2d3a95480d633d66c46ef3c824a7c54fbf5b8504 | 3c8742678e10ce40f10da9499ed0aa4a7e5b3792 | /flask/Lib/site-packages/flask_admin/model/fields.py | da38982fa16ddcac6e15042fa18b8373d3843569 | [] | no_license | SYFT/brushproblem | f7f47f194a8bc1110bbfb615861268a2a4f3f84d | 9818f89e645d324443ee22851f597c0904ef78a3 | refs/heads/master | 2021-01-18T21:51:53.393103 | 2016-09-11T04:01:48 | 2016-09-11T04:01:48 | 55,394,355 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,381 | py | import itertools
from wtforms.validators import ValidationError
from wtforms.fields import FieldList, FormField, SelectFieldBase
try:
from wtforms.fields import _unset_value as unset_value
except ImportError:
from wtforms.utils import unset_value
from flask_admin._compat import iteritems
from .widgets import... | [
"smallrqnoj@163.com"
] | smallrqnoj@163.com |
b46fa81c4d5e37b46a911e6053109b9b90a22674 | 9ccdadf53de7768ea10add415cbfcd76438178e4 | /apps/sushi/migrations/0036_credentials_intermediate_report_types.py | 51df8aafa473ce662dedadbdb135d81d599d3c53 | [
"MIT"
] | permissive | techlib/celus | 80e587b3238acf26007f654a38cbdeab558de39b | 3b70d8d627b66b8181f3aaba572929a1daeca106 | refs/heads/master | 2023-07-08T10:42:12.252165 | 2023-04-12T13:02:19 | 2023-07-03T10:25:33 | 186,565,967 | 10 | 4 | MIT | 2023-02-15T19:53:48 | 2019-05-14T07:14:23 | Python | UTF-8 | Python | false | false | 2,453 | py | # Generated by Django 2.2.15 on 2020-10-01 10:59
from django.db import migrations, models
def active_couter_reports_to_counter_reports(apps, schema_editor):
CounterReportsToCredentials = apps.get_model('sushi', 'CounterReportsToCredentials')
SushiCredentials = apps.get_model('sushi', 'SushiCredentials')
... | [
"stepan@bigdigdata.com"
] | stepan@bigdigdata.com |
50f8904f9744ae5e5e841a4571e1af382fd9b1e9 | c07f45a57aee12a227ac5efa48a785981b74e608 | /ckanext/ckanext-apicatalog/ckanext/apicatalog/views/__init__.py | 20adf432d9d9df71246a074f9cbe87af007926e4 | [
"AGPL-3.0-only",
"MIT"
] | permissive | vrk-kpa/api-catalog | 44d465d3c9c12c41ef281f2073349777fdbdf9bf | a4dc0d12cd5d8886a2b46f62efe124fe5d26e799 | refs/heads/master | 2023-08-22T05:22:09.609871 | 2023-06-19T11:05:57 | 2023-06-19T11:05:57 | 42,986,648 | 19 | 9 | MIT | 2023-08-23T07:06:35 | 2015-09-23T07:54:38 | HTML | UTF-8 | Python | false | false | 1,140 | py | from flask import Blueprint, Response
from ckan.plugins.toolkit import render, c
from ckanext.apicatalog.helpers import get_announcements
import ckanext.apicatalog.health as health
import logging
log = logging.getLogger(__name__)
def get_blueprints():
return [announcements_bp, health_bp]
# Announcements
def a... | [
"jari.voutilainen@iki.fi"
] | jari.voutilainen@iki.fi |
3f3081f32d5f4e05e8080904f17d349273eb67bb | 2fd5ce9b3fb4f7cc545e3d42181ef89af7e11c05 | /validate_recipes.py | 36500a60114163f8feebf0884bc8737597bea0f4 | [] | no_license | AllWorkAndNoPlay/jss-recipes | a9b4d3bde4c1bab41e2e5932a26cd52c5971b8d2 | bd62d5a2ba585d4df5e3526c69aa6572cc8191ff | refs/heads/master | 2023-06-24T21:04:10.046947 | 2023-06-09T17:29:05 | 2023-06-09T17:29:05 | 52,827,593 | 0 | 1 | null | 2017-11-28T00:17:48 | 2016-02-29T21:53:21 | Python | UTF-8 | Python | false | false | 28,612 | py | #!/usr/bin/python
# Copyright (C) 2014-2015 Shea G Craig
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This prog... | [
"tcam@ard.local"
] | tcam@ard.local |
b733ea8133fef7f09f21b15c9685e7e52dd55c44 | eecef46270f30ca7aa37e91da29535051ece8912 | /tensorflow/tensorflow_tools/data_prepocess_tools/md5_compare.py | a70a69f076286c902298e0d803264d048e2b590b | [
"Apache-2.0"
] | permissive | bowen9799/cuisine-detection | c1680153b8102207bf64fb9c1b527291d552cb23 | c805e82b1d13aede835b5ffb4713addf9dd4f5ec | refs/heads/master | 2020-03-19T13:40:48.881447 | 2018-06-12T23:50:29 | 2018-06-12T23:50:29 | 136,590,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,269 | py | # -*- coding: utf-8 -*-
import os
#import cv2
import shutil
import sys,md5
import numpy as np
#from matplotlib import pyplot as plt
#from pdb import set_trace
import click
reload(sys)
sys.setdefaultencoding('utf-8')
def classify_gray_hist(hist1,hist2):
degree = 0
for i in range(len(hist1)):
if hist1[... | [
"bowen9799@gmail.com"
] | bowen9799@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.