blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
615bcc7e7e8afc56a8dc513da89e9d4f4faab88d | 83f78318d1a85045b0e29f3fed10e8ba3e5c107c | /throwback/root.py | a5a39de95633bd252ed2a43ca57c8e352c04ff32 | [] | no_license | kadrlica/throwback | c396d00230ec0e6ed4ce8c31ac6cd12e2ee76690 | c628acb9716aad433c49de4e2f71c54d2a0bc83e | refs/heads/master | 2020-03-24T09:33:03.127648 | 2018-08-02T15:04:00 | 2018-08-02T15:04:00 | 142,631,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,349 | py | #!/usr/bin/env python
"""
Generic python script.
"""
__author__ = "Alex Drlica-Wagner"
import matplotlib
from collections import OrderedDict as odict
# A modern version (v6-14-02) of the Palette from TColor...
# https://github.com/root-project/root/blob/2762a32343f57664b42558cd3af4031fe2f4f086/core/base/src/TColor.cx... | [
"kadrlica@fnal.gov"
] | kadrlica@fnal.gov |
2bae6e3b66955458f062196496992f4f9b1a1513 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/dn9 - minobot/M-17068-2501.py | 51567abcbd0bb9da09e40e7d35ee022e3cb5716c | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,142 | py | def premik(ukaz, x, y, smer):
smeri = "NESW"
premiki = [(0, -1), (1, 0), (0, 1), (-1, 0)]
ismer = smeri.index(smer)
if ukaz == "R":
smer = smeri[(ismer + 1) % 4]
elif ukaz == "L":
smer = smeri[(ismer - 1) % 4]
else:
dx, dy = premiki[ismer]
x += dx * ukaz... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
7157050d8baaafca99fac5e26a9089f52b26636c | b2e9e3db0202a6bd06b5d1f4c4fd3369b5260261 | /python/tests.py | db2473b8cd480c38936c4f0a6c01bddbac30db5c | [] | no_license | jackmoody11/project-euler-solutions | 66e7128cae130499ce518c2008e5df91a6883a68 | 8b6e00bfac7855f5c892f5b3094415935358cb98 | refs/heads/master | 2020-04-12T23:52:57.347142 | 2020-01-10T00:23:16 | 2020-01-10T00:23:16 | 162,831,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py | import importlib
import time
import doctest
import sys
import argparse
filename = "../answers.txt"
with open(filename, 'r') as f:
lines = [line.strip() for line in f.readlines()]
ANSWERS = {int(line.split(". ")[0]):
line.split(". ")[1] for line in lines}
def test(prob, expected):
try:
... | [
"jackmoody@unc.edu"
] | jackmoody@unc.edu |
714d966a83c3c2a5e4206edcffebd91a7fd93889 | d0cdcbe3471cc980809fd4ed5182385bb23216b5 | /backend/task_profile/migrations/0001_initial.py | 79a56729aed9aebe14923d104aef369745363a4a | [] | no_license | crowdbotics-apps/strippee-19912 | 4770d421f16389e3ada580018e52385094cedf00 | 16d1d6258dca231fb157ecb3fa6709f490a5c1fc | refs/heads/master | 2022-12-09T22:53:07.670289 | 2020-09-01T20:24:27 | 2020-09-01T20:24:27 | 292,099,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | # Generated by Django 2.2.16 on 2020-09-01 20:22
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),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d53072873c3a5166c4017a13617ff165c8605c46 | 5c89f7c8ad6213b8c194c6e45424db199ef31041 | /s5/1.5.1_operaciones_aritmeticas_input copy.py | d4c5cd82e4a065d1b2e3730e75c9ea76506033c8 | [] | no_license | camohe90/mision_tic_G6 | 1ccfe5eef6094a1bc0dc6ca5debf2c7a9e959121 | bc04a468a568b5972b29e40643799cd9848219d8 | refs/heads/master | 2023-05-29T14:26:53.946013 | 2021-06-09T14:44:59 | 2021-06-09T14:44:59 | 366,415,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | numero1 = int(input("ingrese numero 1: "))
numero2 = int(input("ingrese numero 2: "))
suma = numero1 + numero2
print(suma)
print(type(suma))
resta = numero1 - numero2
print(resta)
print(type(resta))
multiplicacion = numero1 * numero2
print(multiplicacion)
print(type(multiplicacion))
division = num... | [
"camohe90@gmail.com"
] | camohe90@gmail.com |
9494c14281d52325c997fa672d79c0f65cd32d67 | 92436a50cc26c8c8a216ba6d4a62e36069614234 | /test/losses_multi_output_sum_loss_test.py | 1bd83488fc1d642aace065a621b9b116176498fb | [
"MIT"
] | permissive | hahaxun/ClassyVision | 9341f4e6849c858094592052f3df111c13d1a91d | b3f714ef94275b3e9753ab3f3c8256cb852b96fc | refs/heads/master | 2021-08-17T07:42:34.402613 | 2021-03-08T08:50:01 | 2021-03-08T08:50:01 | 245,940,574 | 1 | 0 | MIT | 2021-03-08T08:50:01 | 2020-03-09T04:02:59 | Python | UTF-8 | Python | false | false | 1,176 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import torch
from classy_vision.losses import (
ClassyLoss,
MultiOutputSumLoss,
build_loss... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7ba4b6660a56236839281e9a6a45e1423b62ebcc | 4de2a833df412e1609b9894c0cb809c4d70f8623 | /app/news/migrations/0002_auto_20180313_1540.py | 75c1430513d4b94067c753c0594020aecc4e7186 | [] | no_license | Isaias301/e-commerce | 06ea11238403b7fa70c5c8e387253441d0dd07f4 | e00f94406c432751adfa03556ecfe154ec222fd9 | refs/heads/master | 2021-04-09T10:34:23.399915 | 2018-03-16T00:33:43 | 2018-03-16T00:33:43 | 125,439,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2018-03-13 18:40
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0001_initial'),
]
operations = [
migrations.CreateModel(
n... | [
"isaiassantana301@gmail.com"
] | isaiassantana301@gmail.com |
7c7d39ff26b769153bb74f24a416d86ba8a0eaa3 | d0f4327ca33aa37e976b024ddfbd6361fdf1a8ee | /LogisticRegression.py | 1747d6347b97ed0cc2ae5c1f114f1c197b1a7726 | [] | no_license | MitsuruFujiwara/TensorFlowTraining | c5f828356ea93c868f16ea67335dd4f32b1c7040 | 3a391c849699bd8332c23ddfffb773cf3050c69c | refs/heads/master | 2021-01-17T17:48:21.340414 | 2016-07-24T13:05:53 | 2016-07-24T13:05:53 | 60,701,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import tensorflow as tf
from RegressionBase import RegressionBase
class LogisticRegression(RegressionBase):
def __init__(self, trX, trY, numStep, numParameter, learning_rate):
RegressionBase.__init__(self, trX, trY, numStep, numParameter, le... | [
"fujiwara52jp@gmail.com"
] | fujiwara52jp@gmail.com |
4f429af341e1d6a151535732aff18ab72fe74f77 | 443fbf0cdd31bb65db09e2b1f3e9770adc69c08d | /Python 1/1 - Introducion/5 - Comentarios/Comentarios.py | 63b10fefa4166d61ecf646f0d8d2eb7abb60000e | [] | no_license | marcvifi10/Curso-Python | b9b376c39713e525756eb26f31f914359aef537a | 047830ca92e027c7d37e2f6bb042971a773a5d6d | refs/heads/master | 2020-07-15T08:30:53.622053 | 2019-09-18T16:23:35 | 2019-09-18T16:23:35 | 205,521,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | # Comentario de una sola linea
'''
Comentarios de
más de una linea
'''
valor = 10
print("Valor1: ",valor)
valor = "Marc"
print("Valor2: ",valor) | [
"36198307+marcvifi10@users.noreply.github.com"
] | 36198307+marcvifi10@users.noreply.github.com |
8ba2e1d1a7dd1c30e8a51f573682ad69ca86c3a5 | 3a6a211ea0d32405497fbd6486c490bb147e25f9 | /systrace/systrace/decorators.py | 8545eaac83a986ba07ccf8d3d8f5e450b9ede645 | [
"BSD-3-Clause"
] | permissive | catapult-project/catapult | e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0 | 53102de187a48ac2cfc241fef54dcbc29c453a8e | refs/heads/main | 2021-05-25T07:37:22.832505 | 2021-05-24T08:01:49 | 2021-05-25T06:07:38 | 33,947,548 | 2,032 | 742 | BSD-3-Clause | 2022-08-26T16:01:18 | 2015-04-14T17:49:05 | HTML | UTF-8 | Python | false | false | 1,238 | py | # Copyright 2016 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.
def HostOnlyTest(func):
"""Decorator for running unit tests only on the host device.
This will disable unit tests from running on Android devices.
""... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
a361554f5dad634f34447cdfe1a41122e44a0a07 | 8f8498bb6f56b19d45a1989c8113a077348c0a02 | /백준/Gold/말이 되고픈 원숭이.py | 46295228740c2fdbc91505c286b5dad4b556c089 | [] | no_license | gjtjdtn201/practice | a09b437c892b0b601e156c09cb1f053b52fab11b | ea45582b2773616b2b8f350b927559210009d89f | refs/heads/master | 2021-01-01T13:29:46.640740 | 2020-11-28T00:55:37 | 2020-11-28T00:55:37 | 239,299,485 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | import sys
sys.stdin = open('말이 되고픈 원숭이.txt', 'r')
from collections import deque
import sys
input = sys.stdin.readline
def BFS():
while queue:
a, b, jump = queue.popleft()
if a == H-1 and b == W-1:
print(visit[a][b][jump]-1)
return
if jump < K:
monkey(a,... | [
"gjtjdtn201@naver.com"
] | gjtjdtn201@naver.com |
cde6425b065b34539b69cfdaeedad2b56631949b | cbd1c52de6cd45208ecce076c238dfc75cebd70a | /check_restfulapi_cluster.py | 7b0a74cda346221e1103d4859b6468d17aefbb0f | [
"Apache-2.0"
] | permissive | enterpriseih/distributed-realtime-capfaiss | 2e20cad0c788c0700df948b6a46be52d91ac5b9b | 3346f540b6c9d17a6be446fefa8c9b79164929d9 | refs/heads/main | 2023-08-16T20:30:20.807161 | 2020-12-11T02:50:41 | 2020-12-11T02:50:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,598 | py | import sys
sys.path.append('core.zip')
import json
import numpy as np
from core.utils.utils import NpEncoder
import requests
import argparse
from core.utils.udecorator import elapsed_time
import time
headers = {
# 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51... | [
"liuning11@jd.com"
] | liuning11@jd.com |
3925ddc8929dab5fdcfe92af27724f8b26c01938 | 9806c35c4acfa16e56535970dbe5f84271b67664 | /eod_aps/wsdl/cta_strategy_wsdl/cta_strategy_wsdl_assemble.py | 71c81c7c89cbf04204b023b497654d74226099a3 | [] | no_license | dsjmhjs/python_eod | a8e3513c77a37cfebf2f21a55bfb19449b8a013b | 48207dd15e7079ef5fd2cf999367c429087197ea | refs/heads/master | 2020-06-25T23:22:30.874309 | 2019-07-29T10:26:02 | 2019-07-29T10:26:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | # -*- coding: utf-8 -*-
import socket
from SimpleXMLRPCServer import SimpleXMLRPCServer
from eod_aps.wsdl.cta_strategy_wsdl.strategy_init_tools import backtest_init
from eod_aps.wsdl.cta_strategy_wsdl.load_strategy_parameter_tools import load_strategy_parameter
from eod_aps.wsdl.cta_strategy_wsdl.strategy_online_offlin... | [
"123456789"
] | 123456789 |
a0a5a76363e80cfc5a89359595d80aa2fb243154 | e0980f704a573894350e285f66f4cf390837238e | /.history/news/models_20201124143954.py | a2869c41e721c2526bbf773e0ca6be950d1e2aec | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | from django.db import models
from wagtail.contrib.forms.models import AbstractEmailForm
# Create your models here.
class NewsPage(AbstractEmailForm):
tempalte ='news/news_page.html'
leanding_page_template = 'news/news_page_leading.html'
subpage_types = []
max_coun = 1
intro = RichTextField(blan... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
287ffcfa056904f0ad86c399480127764911db51 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /kQayLoFNx4QgWahHu_2.py | bb1af1605885be1f995a2ebb66e86374b3d9b1ed | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | """
R, a programming language used for Statistics and Data Analysis, has the
function `order`, which returns a list with the indices needed to sort the
original vector(∗).
For example:
my_list = [1, 3, 3, 9, 8]
# Ordered would be: [0, 1, 2, 4, 3]
In plain words, `order` tells you what elements to look at ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
fea56c3ed93ad23d5f94bf01932101dfd8229ae3 | 29e526fb77bc4c13082a0f9c0f4104684a01893b | /apps/shared/tests/__init__.py | e2701bc458fa041f89d343db30d387d028135fda | [
"BSD-3-Clause",
"MIT"
] | permissive | Hugochazz/affiliates | 767034519426a657c0e9b3e38fee94cc3e0042ca | e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1 | refs/heads/master | 2020-12-25T13:51:53.974167 | 2012-10-30T14:55:50 | 2012-10-30T14:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,655 | py | from contextlib import contextmanager, nested
from functools import wraps
from smtplib import SMTPException
from django.conf import settings
from django.contrib.sessions.middleware import SessionMiddleware
from django.core.mail.backends.base import BaseEmailBackend
from django.core.management import call_command
from ... | [
"mkelly@mozilla.com"
] | mkelly@mozilla.com |
9367c9fc788b09d6bf9c8369612096e5c5ffa3fa | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/AvatarInputHandler/AimingSystems/StrategicAimingSystem.py | 2ec9e5a041a24e763dee53002932f7d06da6e9d5 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,452 | py | # 2016.11.19 19:47:39 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/AvatarInputHandler/AimingSystems/StrategicAimingSystem.py
import BigWorld
import Math
from Math import Vector3, Matrix
import math
from AvatarInputHandler import mathUtils, AimingSystems
from AvatarInputHandler.AimingSystems import IA... | [
"info@webium.sk"
] | info@webium.sk |
e83f53e3b09d4c31e6cddb4686f5993e3a6dc7b9 | 3899a37d1f500f7935cd04079e0b293bd64fe1cb | /docs/conf.py | 9902ebaf5dadaec57cdc679f1cbc45f4be1e8a5b | [
"MIT"
] | permissive | jubaer145/nlpaug | 06d5fa83d68537f6485ed5afccfe2ece056aae8b | b631660f1997fc503258735ec011ffbe164d12af | refs/heads/master | 2023-06-02T03:45:18.094793 | 2021-06-20T21:17:13 | 2021-06-20T21:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,645 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# nlpaug documentation build configuration file, created by
# sphinx-quickstart on Wed Aug 7 07:37:05 2019.
#
# 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
# aut... | [
"makcedward@gmail.com"
] | makcedward@gmail.com |
6150cb6eab8ab3c168a1eead8a17ce4cc4735cb6 | e9348d1689215220b7820134a82c2afdf8aed107 | /backend/young_waterfall_29324/urls.py | 19b2e1e3e6e251b7ff93a5593048f905ce1b2e58 | [] | no_license | crowdbotics-apps/young-waterfall-29324 | 8bf2accb9197c45f59ac717b2ec4fe289830b3f8 | ea74f174180c6af5acca25a82397daa7c48eb7c2 | refs/heads/master | 2023-06-26T05:12:51.154938 | 2021-08-01T20:50:29 | 2021-08-01T20:50:29 | 391,735,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | """young_waterfall_29324 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
98911ce8c4bc073fa0ada3fad0c3d1e3231ad68e | 13c2f109585a033a1acecdd912a3142802170921 | /Python_Object_Serialization_Context_Manager.py | 2566f5ec1aeb15199b4802d5e018e7fa67a537bf | [] | no_license | VakinduPhilliam/Hierachy_Serialization | 88175764e24d03602eca06e8df13223e8ec4dd7e | 61d534b23bc3e072356cb33fd763b0cbb6320896 | refs/heads/master | 2020-05-24T15:59:41.674047 | 2019-11-01T15:02:08 | 2019-11-01T15:02:08 | 187,346,172 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 1,953 | py | # Python object serialization
# The 'pickle' module implements binary protocols for serializing and de-serializing
# a Python object structure.
# “Pickling” is the process whereby a Python object hierarchy is converted into a byte stream,
# and “unpickling” is the inverse operation, whereby a byte stream (from a... | [
"noreply@github.com"
] | VakinduPhilliam.noreply@github.com |
471f69a116bb3f8ea26d0e157151b03c8573d7fb | 4586fcc1afd15f04dbb269899a5b954adcd8d60e | /bin/ldgp.py | b825bbe162b265a0c48f0c32c7daf4bf04ca4e6c | [] | no_license | gautamits/rgbd | d0f1435a2b91b2aa0e848688d3c1c12fc1c77931 | a055a6b718a1e20957f20f19a0c49bbfa63cbd08 | refs/heads/master | 2021-01-20T05:59:43.891910 | 2017-11-25T09:16:34 | 2017-11-25T09:16:34 | 87,881,081 | 0 | 0 | null | 2017-04-25T19:22:50 | 2017-04-11T02:51:16 | Python | UTF-8 | Python | false | false | 1,636 | py | import cv2
import numpy as np
def dist(x,y):
return np.sqrt(np.sum((x-y)**2)) #this function returns euclidean distance between two one dimensional arrays
#this function returns histogram of image,
def hist(a):
hist, bin_edges = np.histogram(a, bins = range(64))
retur... | [
"gautamamits95@gmail.com"
] | gautamamits95@gmail.com |
e8a6c6d6bc56b44d9ac2fae0497b557fe4c040d9 | b87ea98bc166cade5c78d246aeb0e23c59183d56 | /samples/openapi3/client/petstore/python-nextgen-aiohttp/setup.py | d584a44727dd30a7685acc7a8fbbfecd38037804 | [
"Apache-2.0"
] | permissive | holisticon/openapi-generator | 88f8e6a3d7bc059c8f56563c87f6d473694d94e5 | 6a67551ea54a1aa9a49eb48ee26b4e9bb7fb1272 | refs/heads/master | 2023-05-12T02:55:19.037397 | 2023-04-14T08:31:59 | 2023-04-14T08:31:59 | 450,034,139 | 1 | 0 | Apache-2.0 | 2022-01-20T09:34:14 | 2022-01-20T09:34:13 | null | UTF-8 | Python | false | false | 1,473 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-ge... | [
"noreply@github.com"
] | holisticon.noreply@github.com |
a9ede54f8c311163f3f1593922779cde560263bc | 3d0838cc0d3cca599c2dfb6bea3274ff3cabe0ac | /discore/models/_channel.py | 316c280d8e0f64347a51b6e2f534a923fc679e15 | [
"MIT"
] | permissive | geek-space-hq/discore | 6a799f411c81b580f0b3e0aac238e5dcf48d899c | 45f4870426e635353b3621f5089880cbb30c683c | refs/heads/develop | 2022-12-15T20:51:50.904945 | 2020-09-16T16:05:36 | 2020-09-16T16:05:36 | 295,093,463 | 3 | 0 | null | 2020-09-16T09:41:21 | 2020-09-13T06:36:35 | Python | UTF-8 | Python | false | false | 5,679 | py | from __future__ import annotations
from datetime import datetime
from enum import Enum, IntEnum
from typing import TYPE_CHECKING, List, Optional, Union
from pydantic import BaseModel
from pydantic.fields import Field
if TYPE_CHECKING:
from ._emoji import Emoji
from ._guild import GuildMember, Role
from .... | [
"in9lude@gmail.com"
] | in9lude@gmail.com |
a07cab13bbac62cbe9da389c04efe73253dd55ba | c6b1919498776cfc408076246390e2bba56f4c4e | /devops_tool/settings.py | e422d3a5d42866f11728863fdae9c727b4dd35e6 | [] | no_license | huozhihui/devops_tool | f2ceaf7f1828853e43859645f5ab36a00b0fa7df | 0eb7b4a14203e30bb2c262075864cec0db21829f | refs/heads/master | 2020-05-20T19:02:47.855055 | 2017-04-18T05:25:59 | 2017-04-18T05:25:59 | 84,509,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,196 | py | """
Django settings for devops_tool project.
Generated by 'django-admin startproject' using Django 1.10.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | [
"240516816@qq.com"
] | 240516816@qq.com |
6af287c25e7567cc97a37b41e9b9df7d8d589d3a | 69427716f39ddb8541b7dca39d26015a26e04104 | /学习脚本/Python基础学习脚本/select_socket_server.py | 619aaeec0a826ffbd3a7f9299ce892eb9ef5e5a3 | [] | no_license | xiatian0918/auto_scripts | a0fa80f3ec8a5e49e1b049ebed39a8ae3e7cdf7a | 413c614260340557cf9e615b1339eae68a8f9acf | refs/heads/master | 2020-05-14T13:32:46.556775 | 2020-01-21T00:18:56 | 2020-01-21T00:18:56 | 181,812,978 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
# author: xiatian
import select,socket,sys,queue
server = socket.socket()
server.bind(('localhost',9000))
server.listen(1000)
server.setblocking(False) #不阻塞
inputs = [server,]
outputs = []
readable , writeable, exceptional = select.select(inputs, outputs, inputs)
print(r... | [
"18810434724@163.com"
] | 18810434724@163.com |
7f9ea1866114fe062661f28006ec80d13194dd03 | a8062308fb3bf6c8952257504a50c3e97d801294 | /problems/N875_Koko_Eating_Bananas.py | 2d632a0fdaa6c0078dec7406cb6fa8e0e852a916 | [] | no_license | wan-catherine/Leetcode | 650d697a873ad23c0b64d08ad525bf9fcdb62b1b | 238995bd23c8a6c40c6035890e94baa2473d4bbc | refs/heads/master | 2023-09-01T00:56:27.677230 | 2023-08-31T00:49:31 | 2023-08-31T00:49:31 | 143,770,000 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | class Solution(object):
def minEatingSpeed(self, piles, H):
"""
:type piles: List[int]
:type H: int
:rtype: int
"""
length = len(piles)
if length == H:
return max(piles)
right = max(piles)
total = sum(piles)
if total <= H:
... | [
"rarry2012@gmail.com"
] | rarry2012@gmail.com |
1d78b2f287093aaabba4344add7cc6fae44f8d34 | d5aa24b75c2344358752b0af0a47293533820578 | /data_analysis/IO/load_data.py | 6333a0cb4611a6478b56ee4e3cef726e09a8e012 | [] | no_license | ModelDBRepository/234992 | 913da9efaadb704171da907ebd953fe59efe5fb1 | b969a4c623b92c1bd79138f4132885bc424b114c | refs/heads/master | 2020-05-29T18:28:48.883803 | 2019-05-31T03:42:59 | 2019-05-31T03:42:59 | 189,300,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | import numpy as np
import sys, pathlib
sys.path.append(str(pathlib.Path(__file__).resolve().parents[2]))
import data_analysis.IO.axon_to_python as axon
import data_analysis.IO.binary_to_python as binary
def load_file(filename, zoom=[0,np.inf]):
if filename.endswith('.bin'):
return binary.load_file(filename... | [
"tom.morse@yale.edu"
] | tom.morse@yale.edu |
bda783c687d550284ea64c93dd66f035fb1f1dfb | fdfd9cab4e26491da5d2a06a15960362ccf01460 | /ex32.py | 2a85257657bbb1b65928785ed5e54f5bf092b766 | [] | no_license | WilliamsHerrmann/MWM15 | c182f7f8eca4f30a41e602a8e907497bc927af81 | 3f17abd57473f328ddd1e1a2a7591423f32da0f8 | refs/heads/master | 2021-07-07T05:01:06.486909 | 2017-10-02T18:18:44 | 2017-10-02T18:18:44 | 103,341,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | the_count = [1, 2, 3, 4, 5]
fruits = ['apples', 'oranges', 'pears', 'apricots']
change = [1, 'pennies', 2, 'dimes', 3, 'quarters']
# this first kind of for-loop goes through a list
for number in the_count:
print "This is count %d" % number
# same as above
for fruit in fruits:
print "A fruit of type: %s" % fru... | [
"you@example.com"
] | you@example.com |
c05b2d2d9ecd3eba54b5f2efb976613d93068b2e | 5389214afd2a1607925c2104227395a4f2a2800e | /ajax_guide/urls.py | 453bb0f440546b9de8d098f5eca2b16974c1770b | [] | no_license | vinoyjoshi/bandit | 272081b3c843e85969e1a2217080beb08c2b0df5 | 2421d742bbf31faf9b699bd20058c242cbe68773 | refs/heads/main | 2023-01-06T01:49:58.327732 | 2020-10-15T19:47:39 | 2020-10-15T19:47:39 | 304,411,565 | 1 | 0 | null | 2020-10-15T19:47:40 | 2020-10-15T18:13:48 | Python | UTF-8 | Python | false | false | 1,013 | py | """ajax_guide URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"vnitikesh@gmail.com"
] | vnitikesh@gmail.com |
7ed93578216aac980f00d00bb895797a9107acd9 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /018_dictionaries/examples/Python 3 Most Nessesary/9.3.Listing 9.4. Enumerating dictionary elements.py | 68e2d165ac09ae3d6584391151010bbb29be77b9 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,111 | py | d = {"x": 1, "y": 2, "z": 3}
for key in d.keys(): # Использование метода keys()
print("({0} => {1})".format(key, d[key]), end=" ")
# Выведет: (y => 2) (x => 1) (z => 3)
print() # Вставляем символ перевода строки
for key in d: # Словари также поддерживают итерации
p... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
def2fc41b751673fb8775b648f289d98ef9a0106 | 51f6443116ef09aa91cca0ac91387c1ce9cb445a | /Curso_Python_3_UDEMY/desafios/desafio_html.py | d5648ffde600f190c5bda1912b3dff47252566db | [
"MIT"
] | permissive | DanilooSilva/Cursos_de_Python | f449f75bc586f7cb5a7e43000583a83fff942e53 | 8f167a4c6e16f01601e23b6f107578aa1454472d | refs/heads/main | 2023-07-30T02:11:27.002831 | 2021-10-01T21:52:15 | 2021-10-01T21:52:15 | 331,683,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | def tag(tag, *args, **kwargs):
if 'html_class' in kwargs:
kwargs['class'] = kwargs.pop('html_class')
attrs = ''.join(f'{k}="{v}" ' for k, v in kwargs.items())
inner = ''.join(args)
return f'<{tag} {attrs}>{inner}</{tag}>'
if __name__ == '__main__':
print(tag('p',
tag('span', 'Curso... | [
"dno.gomesps@gmail.com"
] | dno.gomesps@gmail.com |
e7b420a62db0bce2fe381107cc685f1bf88035d8 | f3742f46560486c07c339244f8cf47bb07709561 | /features/steps/test_utils.py | 7cc4d34cc1b40e7598dc65345299f0ee9046838a | [
"MIT"
] | permissive | Azure/azure-event-hubs-python | 55b65920f9d8dbe6cc418d63291ba507ce648d97 | 326f772f5cbe3d3eaf68b24485554aada463430a | refs/heads/master | 2023-03-17T22:03:54.241386 | 2020-04-07T22:33:17 | 2020-04-07T22:33:17 | 91,842,040 | 65 | 66 | MIT | 2020-04-07T22:33:18 | 2017-05-19T20:14:44 | Python | UTF-8 | Python | false | false | 3,540 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"antisch@microsoft.com"
] | antisch@microsoft.com |
9dcf9692cc7ae29a7f56fa27e78cdc21365c70ba | 8a5ab3d33e3b653c4c64305d81a85f6a4582d7ac | /PySide/QtGui/QStyleOptionTab.py | 264b7c0e040a27794ebb0a067eb56b9436f49f11 | [
"Apache-2.0"
] | permissive | sonictk/python-skeletons | be09526bf490856bb644fed6bf4e801194089f0d | 49bc3fa51aacbc2c7f0c7ab86dfb61eefe02781d | refs/heads/master | 2020-04-06T04:38:01.918589 | 2016-06-09T20:37:43 | 2016-06-09T20:37:43 | 56,334,503 | 0 | 0 | null | 2016-04-15T16:30:42 | 2016-04-15T16:30:42 | null | UTF-8 | Python | false | false | 1,122 | py | # encoding: utf-8
# module PySide.QtGui
# from /corp.blizzard.net/BFD/Deploy/Packages/Published/ThirdParty/Qt4.8.4/2015-05-15.163857/prebuilt/linux_x64_gcc41_python2.7_ucs4/PySide/QtGui.so
# by generator 1.138
# no doc
# imports
import PySide.QtCore as __PySide_QtCore
from QStyleOption import QStyleOption
class QSt... | [
"yliangsiew@blizzard.com"
] | yliangsiew@blizzard.com |
857ea37b6d65aa8708b7aa91520822899db9bbaa | b3e90c765a70d0c68a3c703c31ebfbcc67d8f83e | /AN_Bridging/box_ws/src/multi_box/src/Algs/SoftActorCritic.py | 6147e9cd1403a16b426ef7d1722e30eefb48531e | [] | no_license | ronf-ucb/MultiRobot | 619fe1750dd25c336f7ef793e43983d992cbf519 | b509e9c43e330e737135298ea4cfbd4190222328 | refs/heads/master | 2021-07-19T20:39:47.835985 | 2020-09-07T14:32:39 | 2020-09-07T14:32:39 | 211,394,959 | 1 | 2 | null | 2019-10-30T22:21:20 | 2019-09-27T20:15:07 | C++ | UTF-8 | Python | false | false | 3,825 | py | #! /usr/bin/env python
import numpy as np
import torch
import torch.nn as nn
import math
import rospy
from std_msgs.msg import String, Int8
from geometry_msgs.msg import Vector3
import vrep
import matplotlib.pyplot as plt
import torch.optim as optim
from Networks.network import Network
from Networks.softNetwork imp... | [
"austinnguyen517@berkeley.edu"
] | austinnguyen517@berkeley.edu |
c7c9ab5555c62ef7bca526ca8069b83788f07dc4 | a3e26112cb5d6b64c30b44f775750653a1daf0dc | /Q910_Smallest-Range-II.py | 550d96ea406915f5883d2b9d5cea91a4561727d1 | [
"MIT"
] | permissive | xiaosean/leetcode_python | 938f1df379b518d99a778e2da8093ff0371e35d4 | d6fc52d13946895d2b2928ef9962af0610b1d1e8 | refs/heads/master | 2023-04-05T07:07:01.561010 | 2023-03-25T19:17:21 | 2023-03-25T19:17:21 | 150,637,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | class Solution:
def smallestRangeII(self, A: List[int], K: int) -> int:
A.sort()
min_range = A[-1] - A[0]
min_val = A[0]
max_val_sub_k = A[-1] - K
min_val = A[0] + K
for idx in range(len(A)-1):
cur_val = A[idx] + K
next_val = A[idx+1] - K
... | [
"xiaosean5408@gmail.com"
] | xiaosean5408@gmail.com |
855fb15b15d33fbe562973352dba115c1014db55 | 251e8bfec0bfc5b6094f7db8ee6bdfe1ca7f6a5b | /bookmanager/venv/bin/python-config | 759cfeb2748510449a11b8162c1a3830533ca6fc | [] | no_license | googleliyang/Django_meiduo | 543042e08cc5eeb1dce8432b4ea2cca996f35c06 | 46f48ecf7bd6e9e2796eac1c3d54787f5571a9a7 | refs/heads/master | 2020-04-24T19:22:42.295324 | 2019-02-28T05:24:23 | 2019-02-28T05:24:23 | 172,209,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | #!/Users/ly/Programmer/django/bookmanager/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if s... | [
"ubuntu@gmail.com"
] | ubuntu@gmail.com | |
bbd06e970f33e0fd3225569ff5aedc8b24bb6c63 | 8b9e9de996cedd31561c14238fe655c202692c39 | /recursion/Tail_Recursion.py | 24b88b9901ef2a299306341c11b8f90bb3107b39 | [] | no_license | monkeylyf/interviewjam | 0049bc1d79e6ae88ca6d746b05d07b9e65bc9983 | 33c623f226981942780751554f0593f2c71cf458 | refs/heads/master | 2021-07-20T18:25:37.537856 | 2021-02-19T03:26:16 | 2021-02-19T03:26:16 | 6,741,986 | 59 | 31 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | # Explain what is tail recursion and implement reverse a list using functional programming style
def rev(a):
"""Tail recursion.
rev([0, 1, 2, 3])
nested([], [0, 1, 2, 3])
nested([0] + [], [1, 2, 3])
nested([1] + [0], [2, 3])
nested([2] + [1, 0], [3])
nested([3], [2, 1, 0],... | [
"laituan1986@gmail.com"
] | laituan1986@gmail.com |
d38a64980bb07c06db2cda09547eb0528b777da0 | e206cc00299804ce2271eb5d1513620e44ee9a9b | /course1-algorithm-toolbox/assignments/assignment_003_quick_sort3_way_partrition/sorting.py | 7c0e0b028b58859d54188ef65c487733d890039d | [] | no_license | dmitri-mamrukov/coursera-data-structures-and-algorithms | 15459cd160f7bbae5464bf53d995bca868a0b415 | 01dd6f0dadf62a520bcafafddf7bf2b79e8e2603 | refs/heads/master | 2020-05-24T18:27:00.665642 | 2019-05-21T20:45:37 | 2019-05-21T20:45:37 | 187,410,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | #!/usr/bin/python3
import sys
import random
def __partition3(data, left, right):
"""This function partitions a[] in three parts:
a) a[left..l - 1] contains all elements smaller than the pivot element
b) a[l..r] contains all occurrences of the pivot element
c) a[r + 1..right] contains all elements gre... | [
"dmitri.mamrukov@gmail.com"
] | dmitri.mamrukov@gmail.com |
7f9e6d7b2d645fcd5aa6bd33457e423a8acbaae7 | 485784cea86f52c2acda0a495942689104cd391e | /schedule/migrations/0002_rinkschedule_schedule_date.py | 9b86d692f4df4d3b153c2be9115884978a11c438 | [] | no_license | BrianC68/OIC_Web_Apps | 50ec9f46868ad37dc809548d2d362a4573320539 | e75b9439b11cf2325675d76dacac38806156fb16 | refs/heads/master | 2023-08-09T07:39:33.066601 | 2023-08-07T13:22:39 | 2023-08-07T13:22:39 | 197,438,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # Generated by Django 2.2.1 on 2019-10-08 23:50
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('schedule', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='rinkschedule',
... | [
"brianc@wi.rr.com"
] | brianc@wi.rr.com |
a5ce8e3808360b1d98652c7e2b7c2658debc42d3 | 559f3dec0964d2e0f86c6c871371fe779cf3726c | /contrib/MedicalSeg/tools/preprocess_utils/dataset_json.py | 5b3372963ae365689314ba2a9ae2d83d7a9307a9 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleSeg | 319ab26665ea492527a1949671650135123ffc39 | 2c8c35a8949fef74599f5ec557d340a14415f20d | refs/heads/release/2.8 | 2023-08-31T09:08:06.724717 | 2023-08-18T01:59:56 | 2023-08-18T01:59:56 | 204,380,779 | 8,531 | 1,866 | Apache-2.0 | 2023-09-12T02:30:42 | 2019-08-26T02:32:22 | Python | UTF-8 | Python | false | false | 478 | py | import json
def parse_msd_basic_info(json_path):
"""
get dataset basic info from msd dataset.json
"""
dict = json.loads(open(json_path, "r").read())
info = {}
info["modalities"] = tuple(dict["modality"].values())
info["labels"] = dict["labels"]
info["dataset_name"] = dict["name"]
i... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
cc30e3e61bd5839e2a0450e37255e918cb0b15cc | 814e4ad96172a76d9b72ac35697553980d0db5f1 | /pyalp/gs_interface/generate_certificates.py | e7aa246d4bb2851366daaf5f91a5fe555ce9c5c2 | [
"MIT"
] | permissive | Mause/pyalp | 29785037d3b4ebc2822e6ec74621aa65f621bb8e | fb0f723070e11f8c9ed57e2475eb963599f442a6 | refs/heads/master | 2022-12-05T12:05:01.804305 | 2014-07-02T13:04:21 | 2014-07-02T13:04:21 | 15,419,434 | 0 | 0 | MIT | 2022-11-22T00:24:05 | 2013-12-24T14:00:26 | PHP | UTF-8 | Python | false | false | 692 | py | #!/usr/bin/env python
"""
Generate client and server CURVE certificate files then move them into the
appropriate store directory, private_keys or public_keys. The certificates
generated by this script are used by the stonehouse and ironhouse examples.
In practice this would be done by hand or some out-of-band process... | [
"jack.thatch@gmail.com"
] | jack.thatch@gmail.com |
ee63b12e238a4138f9963f331b11ffc93c1e0fa0 | 5979cf3c79daa04706c8fef1595574c6e36c14a1 | /vgl/home/urls.py | 0547341057b158de3626eb131277cda6b03c92a1 | [] | no_license | rahuezo/valley-green-landscape-inc | f675b5242ed7a80e457b236a253fb9ed0602829c | 6dac5ed2202336a69a86c6dcafee892cbadaa5b3 | refs/heads/master | 2021-08-15T16:48:50.594629 | 2017-11-18T00:08:49 | 2017-11-18T00:08:49 | 110,613,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from django.conf.urls import url
from . import views
app_name = 'home'
urlpatterns = [
url(r'^$', views.index, name='index'),
]
| [
"rahuezo@ucdavis.edu"
] | rahuezo@ucdavis.edu |
dc89107f7dcfdfa9cd7401d4281ed7ea790232a3 | 0ad7f553df6b210b5ac004fbf490ed651a21d55e | /algos/discrete_esay_control_lib_01.py | ef19dd246fb029fd2da77e0c6b9a839eebbfc2a8 | [] | no_license | MarianoDel/spyder_python | fa00987eb9aa1ef61d7224679a84c05a217c6c35 | 5f5896df68f95eb860bc08c21ae2b19516432cdc | refs/heads/master | 2020-05-23T06:14:57.329478 | 2020-04-23T14:58:16 | 2020-04-23T14:58:16 | 84,753,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | # -*- coding: utf-8 -*-
#usando libreria de control
import numpy as np
from scipy import signal
b = [0.125, 0.125, 0.125, 0.125, 0.125, 0.125, 0.125, 0.125]
tf1 = (b, [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0.001) #ver que dt coincida con el step de tiempo en discreto
#w, h = signal.freqz(b)
#w, h = sign... | [
"marianodeleu@yahoo.com.ar"
] | marianodeleu@yahoo.com.ar |
67f12d8933ae63eef4aa93f09cc44f61d8f48c3d | 7801b0356b60de5a4fa6b214717a1c04942b5b62 | /crm/migrations/0003_userinfo_user.py | 2daf274b45a19a80d357f35f9323cbef54a43799 | [] | no_license | hqs2212586/CRM_demo | 365652c61c991a2098d32b5db318d55cf29baa0b | 941a896aef598d81750a96074bc63ccfaaadf0a5 | refs/heads/master | 2020-03-27T17:43:40.110992 | 2018-08-31T09:20:01 | 2018-08-31T09:20:01 | 146,869,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # Generated by Django 2.0.6 on 2018-08-31 03:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rbac', '0004_permission_action'),
('crm', '0002_customerdistrbute'),
]
operations = [
migrations.Ad... | [
"443514404@qq.com"
] | 443514404@qq.com |
2a02caa7558f764522bd58b00871216e796676d8 | d42dea822871be6027fadbf8b167be1c0b38d9c7 | /BST/debug.py | 2cc73f8d9784aa9f8a21c2b7530ff531d0bb1e4b | [] | no_license | siddhantprateek/Python-in-Practice | d8412c46dec57d512d8abd87cb0a33b71070c5ee | 0ad806f02fecb87de20078ef956f8e23bb38e342 | refs/heads/main | 2023-06-26T22:34:55.172882 | 2021-07-29T15:14:09 | 2021-07-29T15:14:09 | 354,875,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | class BSTreeNode:
def __init__(self, val):
self.value = val
self.left, self.right = None, None
class BinaryST:
def __init__(self):
self.root = None
def insert(self, val):
self.root = self.insertHelp(val, self.root)
def insertHelp(self... | [
"siddhantprateek@gmail.com"
] | siddhantprateek@gmail.com |
5ae9b28df851a85fea96edf6169e6cf8f14c6a50 | 07f92805a75dc91b8be2ac14c238394245eda9ea | /Python生物信息学数据管理/python-for-biologists/03-modular_programming/10-functions/calc_atom_atom_distance.py | 5156d4af63c5626cef0355e63c950a6aecc07d18 | [] | no_license | 08zhangyi/Some-thing-interesting-for-me | 6ea7366ef1f0812397300259b2e9d0e7217bcba0 | f4cbda341ada98753c57a3ba07653163522dd023 | refs/heads/master | 2023-01-11T22:54:03.396911 | 2023-01-06T05:47:41 | 2023-01-06T05:47:41 | 136,426,995 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | '''
Find two alpha-C atoms in a PDB structure and calculate their distance.
-----------------------------------------------------------
(c) 2013 Allegra Via and Kristian Rother
Licensed under the conditions of the Python License
This code appears in section 10.4.4 of the book
"Managing Biological Data wi... | [
"395871987@qq.com"
] | 395871987@qq.com |
21393f5ec3107ae718cce881c013ad295cbc9e74 | bf74f773f0c69e0ce7c5cc57a5897ca86cca6587 | /custom_collections/tree.py | b2452b64db079d1947db82cf94a240f15c822c36 | [
"BSD-3-Clause"
] | permissive | weijia/custom_collections | a532b01b18049f0e0aad9920f8e90d45e3c24812 | e9b7bcc25f83f6a9adfbee94c825835414799aab | refs/heads/master | 2016-09-06T09:01:05.969014 | 2014-09-20T17:42:48 | 2014-09-20T17:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,068 | py | import uuid
from django.utils import timezone
import django.db.utils
from django.contrib.auth.models import User, Group
from django.contrib import admin
from django.conf import settings
from obj_sys.models import UfsObj
from guardian.admin import GuardedModelAdmin
from guardian.shortcuts import assign_perm
try:
... | [
"richardwangwang@gmail.com"
] | richardwangwang@gmail.com |
43589f610d031b46faaa40ca7ed51622d5c8345d | 8c9c27cb88a2d210a5e2fb5803fe89204dba95ef | /phy/gui/qt.py | fee9e2549519dba466c131d6a190d3459af0496c | [] | no_license | arnefmeyer/phy | c13b1eceb70ee72cf0ff9c4a273e195f122fabc4 | 14663e1f2baad421d6bc9f420d34170c6c969bbe | refs/heads/master | 2020-12-07T15:42:49.605432 | 2016-04-20T21:10:38 | 2016-04-20T21:10:38 | 56,718,986 | 1 | 0 | null | 2016-04-20T20:32:18 | 2016-04-20T20:32:18 | null | UTF-8 | Python | false | false | 4,107 | py | # -*- coding: utf-8 -*-
"""Qt utilities."""
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
from contextlib import contextmanager
from functools import wraps
import logging
import sys
logger = l... | [
"cyrille.rossant@gmail.com"
] | cyrille.rossant@gmail.com |
7c6e0f6234acef62dcc182e1e93468181f99ce5c | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/apigateway/apis/DescribeIsDeployApiGroupsRequest.py | 5734f9aeb75d8ebb2d719eb77989012b428bf204 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,460 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"tancong@jd.com"
] | tancong@jd.com |
8b7641767d7456a30a42aaefeb9cee8c4c607de4 | 51888119e10cdff12dafb060a54824632edccf3f | /Folders/Python/BlackSailSubmit.py | fb3aabf18c996ca4a44e2ffda207c3e9e2ed6b01 | [
"BSD-2-Clause"
] | permissive | kuchinal/lamakaha | b64511ad8c6d2b36da5a84a266b9e7a69acd3106 | 24e3b2ff53bcac2ad1c0e5a3b9afd4593d85f22d | refs/heads/master | 2023-09-01T17:55:56.551183 | 2023-07-31T19:32:04 | 2023-07-31T19:32:04 | 182,849,747 | 0 | 0 | null | 2021-09-10T06:34:22 | 2019-04-22T19:00:02 | Python | UTF-8 | Python | false | false | 519 | py |
import nuke
import rrSubmit_Nuke_5
def BlackSailSubmit():
try :
g = nuke.selectedNode()
f = nuke.allNodes("Write")
f= nuke.allNodes("AutoWrite")+f
for a in f:
sel = a['selected'].value()
if sel == 1:
a['disable'].setValue(0)
... | [
"lamakaha@gmail.com"
] | lamakaha@gmail.com |
6c8a442acb14c856d7f761064e44561c82b10f6c | 212028581b4875ac2fefa9acd7b17b88b4b8eccd | /ulugugu/values.py | e5fbdd042dbd0dbd5cebbe5d437a2fa3c34403d1 | [] | no_license | jonashaag/ulugugu | 65a3b55c2fa2d624ba7cc72cc5186eb353e7b016 | 509e3ceadbb50aad34c585b63d33284357a21ed6 | refs/heads/master | 2016-08-06T07:10:53.578924 | 2015-07-25T12:54:15 | 2015-07-25T12:54:15 | 37,680,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | class Value:
pass
class Integer(Value):
def __init__(self, value):
self.value = value
def __repr__(self):
return '<Integer %d>' % self.value
class String(Value):
def __init__(self, value):
self.value = value
def __repr__(self):
return '<String %r>' % self.value
class Application(Value):... | [
"jonas@lophus.org"
] | jonas@lophus.org |
42fdb67ff09320fd1ae7ed48b1d7252395a78674 | 93db4b48741ff4ab0a3895813a6c7543e01821ea | /leetcode/Python/875_bananas.py | ce09bb5605a8310b0d9dfe00aaffbe27d27ed1c7 | [] | no_license | shubham14/Coding_Contest_solutions | f884c458d3316bdafc6f1b1a52cf3e962c58bc47 | 1b67497f35b892c25e3d9600214fa37a738ffd40 | refs/heads/master | 2021-06-22T13:34:10.581101 | 2019-10-09T02:56:01 | 2019-10-09T02:56:01 | 131,326,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 24 00:09:31 2018
@author: Shubham
"""
class Solution(object):
def minEatingSpeed(self, piles, H):
def possible(K):
return sum((p - 1)/ K + 1 for p in piles) <= H
s, e = 1, max(piles)
while s < e:
m = (s + e)/2
... | [
"shubham.ddash@gmail.com"
] | shubham.ddash@gmail.com |
3cce302430399686b13d6cc49040ace97eb052a2 | 632eee486e432d1bc2a7c771db7e9a06f7cad7a9 | /2812-laercio.py | 3d976d923a342bfca9597d558079aab8c6f0269b | [] | no_license | L4res/URI-Python | d1c578d87201151540876a6b8eca2aecd833a953 | 2f59387ca38e16f6396a6ea677d71f7c2c919fc2 | refs/heads/master | 2023-03-25T17:34:57.635187 | 2020-06-15T18:20:03 | 2020-06-15T18:20:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | for i in range(int(input())):
n = int(input())
lista = list(map(int, input().split()))
lista.sort()
impares = []
resultado = []
# Pegando os valores impares:
for j in range(n):
if lista[j] % 2 != 0:
impares.append(lista[j])
# Pegando os valores na ordem ... | [
"noreply@github.com"
] | L4res.noreply@github.com |
aa611c1670449e133c290241f9c2bbbc38d1505a | ed21823488a1cca51009793efa0b124e40d224a4 | /neurobioseg/170111_avoid_redundant_path_calculation/p170111_03_compute_paths.py | b61c0656c06859d665bca2fe34b87a67a2cc9716 | [] | no_license | jhennies/py_devel | 4a41e13ec8cd9b834c3d5acf64becc0fa8ffc479 | 9fc860be95ae91064a40f25e26d4024fbae6eb1f | refs/heads/master | 2021-01-16T23:25:56.716283 | 2017-03-10T17:49:55 | 2017-03-10T17:49:55 | 45,381,183 | 1 | 0 | null | 2017-03-10T17:49:56 | 2015-11-02T08:21:35 | Python | UTF-8 | Python | false | false | 4,945 | py |
import os
import inspect
from hdf5_image_processing import Hdf5ImageProcessing as IP, Hdf5ImageProcessingLib as ipl
from hdf5_processing import RecursiveDict as rdict
from shutil import copy, copyfile
import numpy as np
import matplotlib.pyplot as plt
import processing_libip as libip
import sys
from yaml_parameters im... | [
"julianhennies@hotmail.de"
] | julianhennies@hotmail.de |
46e7155c122fe2b89291a70967d3ced59f4c38ce | cf1f1d3f7a4aaaaaee322b0101f7b294909c5a67 | /Code/Al/loop_index.py | 0cbbf5bab4fdd9fe13eacbec91a04ee7426ff5b3 | [] | no_license | PdxCodeGuild/class_emu | 0b52cc205d01af11860a975fc55e36c065d1cc68 | 9938f384d67a4f57e25f2714efa6b63e2e41b892 | refs/heads/master | 2020-05-31T01:16:52.911660 | 2019-12-09T05:22:06 | 2019-12-09T05:22:06 | 190,046,342 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | # Write your code here :-)
import string
print(string.ascii_lowercase)
abc_list = list(string.ascii_lowercase)
print(abc_list)
for num in range(len(abc_list)):
print(abc_list[num])
| [
"al.burns.email@gmail.com"
] | al.burns.email@gmail.com |
501efc03e712d21a0a76e29634ed02d611170f9e | 8fbd8b98cdf04d319f7b5789d6dc1a738a90566b | /th_mastodon/tests.py | 9658443ac0d0bd316e58cf64cc671700da484071 | [
"BSD-3-Clause"
] | permissive | fkztw/django-th | 5231652ed75ae6060bd4f4a383eba4286e8c9191 | 926a3b9d515a7995cb36d2259729851d0c5cfb4d | refs/heads/master | 2023-07-23T22:08:11.898683 | 2017-10-27T12:38:21 | 2017-10-27T12:38:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,978 | py | # coding: utf-8
from django.conf import settings
from django.core.cache import caches
from django_th.tests.test_main import MainTest
from django_th.models import ServicesActivated
from mastodon import Mastodon as MastodonAPI
from th_mastodon.forms import MastodonProviderForm, MastodonConsumerForm
from th_mastodon.mo... | [
"foxmaskhome@gmail.com"
] | foxmaskhome@gmail.com |
4e404b4c200a4b0a221a3538e8f15c212981517e | f00c8395790dca63dbbcc2fac4df39a00352c0bd | /venv/bin/django-admin.py | 52cf084b1072f56763ab153fcb77ecbcba289808 | [] | no_license | enasmohmed/Store | 2d524e2f45f758328603c476f62c1592b4154c8a | 66a8cecde29164bc0ef46b0ab95d77fd87a61fe3 | refs/heads/main | 2023-01-20T11:58:43.092800 | 2020-11-28T15:42:09 | 2020-11-28T15:42:09 | 310,835,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | #!/home/enas/Desktop/Django coretabs/venv/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was depre... | [
"enasm2477@gmail.com"
] | enasm2477@gmail.com |
7995fc582146c2158eaa992be2a9ef6467415529 | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L26/26-62_MD_NVT_rerun/set_1ns_equi_1.py | a035e758dac2d227d5ce00130a2c5ba6805a9fa2 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L26/MD_NVT_rerun/ti_one-step/26_62/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1.in'
temp_pbs = filesdir + 'temp_1ns_equi_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
1dc650adae49d3a7f479a9ce4b8ad82b9fe7da99 | f6c9f71f8850d9db28f4de25307f5b9f2c81523c | /0x11-python-network_1/0-hbtn_status.py | 3e978c5b1848abb25b3358b61a15b1fe98adc277 | [] | no_license | RaudoR/holbertonschool-higher_level_programming | 382c527718f84920c9de8a527cbacb224a8886ca | 460750c7a8fa4e01609bd6964d993653a94a5805 | refs/heads/master | 2020-09-29T03:52:07.953201 | 2020-05-29T18:20:29 | 2020-05-29T18:20:29 | 226,943,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | #!/usr/bin/python3
'''script to fetch the url https://intranet.hbtn.io/status'''
import urllib.request
if __name__ == "__main__":
with urllib.request.urlopen('https://intranet.hbtn.io/status') as response:
html = response.read()
print("Body response:")
print("\t- type: {}".format(type(htm... | [
"rivaspaulino@outlook.com"
] | rivaspaulino@outlook.com |
50e9805b4c7342f69df26383d629e99793f89bc5 | f1d9917f6a26d71650fce36c9d5bb6cc27ba4571 | /setup.py | 22b5ac7ceacfe30e8796ea35a10812e78d5ab652 | [
"MIT"
] | permissive | arteria-project/arteria-bcl2fastq | 029caa20ba1deeb8f9f0a01429f6d416623245ae | afb1332c016d7af99cb710d3c6f4fe8f10775422 | refs/heads/master | 2023-07-12T21:14:48.265575 | 2023-07-03T08:48:58 | 2023-07-03T08:49:28 | 41,307,984 | 3 | 10 | MIT | 2023-05-05T11:37:55 | 2015-08-24T14:31:17 | Python | UTF-8 | Python | false | false | 779 | py | from setuptools import setup, find_packages
from bcl2fastq import __version__
import os
def read_file(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
try:
with open("requirements.txt", "r") as f:
install_requires = [x.strip() for x in f.readlines()]
except IOError:
insta... | [
"johan.dahlberg@medsci.uu.se"
] | johan.dahlberg@medsci.uu.se |
240b8bac2f0652b595726e36702120548cb29b54 | 48894ae68f0234e263d325470178d67ab313c73e | /inv/management/commands/l3-topology.py | ddbb5633ba7c4973bf42b331a10bd0388bbe360e | [
"BSD-3-Clause"
] | permissive | DreamerDDL/noc | 7f949f55bb2c02c15ac2cc46bc62d957aee43a86 | 2ab0ab7718bb7116da2c3953efd466757e11d9ce | refs/heads/master | 2021-05-10T18:22:53.678588 | 2015-06-29T12:28:20 | 2015-06-29T12:28:20 | 118,628,133 | 0 | 0 | null | 2018-01-23T15:19:51 | 2018-01-23T15:19:51 | null | UTF-8 | Python | false | false | 7,640 | py | # -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## L3 topology
##----------------------------------------------------------------------
## Copyright (C) 2007-2012 The NOC Project
## See LICENSE for details
##---------------------------------------------------------------... | [
"dv@nocproject.org"
] | dv@nocproject.org |
df3bf69e1052d215786ee3266d66ff9529129bf4 | 174aa0021c10ebe4d7598b44404f8dfcad0cbc24 | /dateparser/data/date_translation_data/ki.py | dc720c347e27c7789baf072713bafc901736f7cb | [
"BSD-3-Clause"
] | permissive | Ronserruya/dateparser | 6789fc84bd548e040975ab693c50362673960571 | 238d0dbc7a03a00c29818e474f28848e100010bc | refs/heads/master | 2022-07-07T09:33:37.849429 | 2020-05-13T07:19:56 | 2020-05-13T07:19:56 | 263,635,745 | 0 | 0 | BSD-3-Clause | 2020-05-13T13:20:15 | 2020-05-13T13:20:15 | null | UTF-8 | Python | false | false | 2,714 | py | # -*- coding: utf-8 -*-
info = {
"name": "ki",
"date_order": "DMY",
"january": [
"njenuarĩ",
"jen"
],
"february": [
"mwere wa kerĩ",
"wkr"
],
"march": [
"mwere wa gatatũ",
"wgt"
],
"april": [
"mwere wa kana",
"wkn"
]... | [
"sarthakmadaan5121995@gmail.com"
] | sarthakmadaan5121995@gmail.com |
d46fe004e10c5667c296cf71217f95529c31f646 | c0a34cb6afebe699c55fdef5050b7a3efd0385cf | /media.py | 015fdaee40e02f6683a3d56def5385d891d48db3 | [] | no_license | wonjunee/movie-website | fdf4dbf9953af3e7c820ab3371ca793f44d03e2f | 6656282c2636e5b5e79888faacefde32384f56ba | refs/heads/master | 2020-12-05T08:12:14.925657 | 2016-09-01T15:27:37 | 2016-09-01T15:27:37 | 66,372,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | import webbrowser
class Video():
def __init__(self, title, storyline, poster_image_url):
self.title = title
self.storyline = storyline
self.poster_image_url = poster_image_url
class Movie(Video):
""" This class provides a way to store movie related information"""
VALID_RATINGS = ["G", "PG", "PG-13", "R"]
de... | [
"mymamyma@gmail.com"
] | mymamyma@gmail.com |
b91e5b6c07aa7a2ff0caf5f8e4cf9177fc49c24e | 807633994b9b6469379b97f31ce32b26f8009309 | /src/unicef_notification/validations.py | d3bb3305b8cb1f553eacf3486bc3378973a07123 | [
"Apache-2.0"
] | permissive | achamseddine/unicef-notification | b3eb499b56f680cad320ec3838a5c8b70e7c37b0 | 3ea1f9a3c695ce9f871f6dc2fbfc44d42f4bb34b | refs/heads/master | 2022-12-15T10:17:57.040794 | 2018-08-08T14:52:07 | 2018-08-08T14:52:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from django.core.exceptions import ValidationError
from post_office.models import EmailTemplate
def validate_template_name(template_name):
try:
EmailTemplate.objects.get(name=template_name)
except EmailTemplate.DoesNotExist:
raise ValidationError("No such EmailTemplate: %s" % template_name)
... | [
"greg@reinbach.com"
] | greg@reinbach.com |
da90f416192e97abb37a1c2a0acb8759b7bcda33 | 52ce59408b028200e66f237d7b9ef47c5c941a22 | /emotion_data/behaviour.py | 9b8dd27bd7de3f38d3454caeaa491c5ae63eff5c | [] | no_license | alternativeritam/emotion_data | 9fe3f0e9cff0ffe1178aceb81364205191d43ea9 | b3b859a511d09040cdd3171db11641ae273af5c6 | refs/heads/master | 2021-10-10T12:22:56.906162 | 2019-01-10T18:08:03 | 2019-01-10T18:08:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,760 | py | from emotion_data.emotions import EMOTIONS
BEHAVIOUR_NAMES = {
"protection": {
"purpose": "Withdrawal, retreat",
"activated_by": ["fear", "terror"]
},
"destruction": {
"purpose": "Elimination of barrier to the satisfaction of needs",
"activated_by": ["anger", "rage"]... | [
"jarbasai@mailfence.com"
] | jarbasai@mailfence.com |
c6964c95050e59ebc7015bf6f15d7dc4ca2a9030 | edc4dfa7fbdc42d12d1d12b0cd15b1bec5b88074 | /exhand/test1.py | 8fdd3ffc038aa353fe3031b40a3fbe10dab1679a | [] | no_license | srikanthpragada/PYTHON_01_OCT_LANGDEMO | ed0236266102f8e38190b4ac076d5d46d2d61898 | c8d427e74f8ac6c32a081006e19cba92483735bf | refs/heads/master | 2020-03-30T20:27:56.490472 | 2018-11-03T15:29:18 | 2018-11-03T15:29:18 | 151,589,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | try:
num = int(input("Enter a number :"))
# process num
print("Result = " ,100 / num)
except Exception as ex: # Handle all exceptions
print("Error : ", ex)
else:
print("Success!")
finally:
print("Done!")
print("The End") | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
d0beb9c3134d0318af94ce00297b954fb023fb07 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2793/60617/307505.py | 73e9eaf62495f15bc522a02ac20b67dec8cf6e78 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | def crazy_Computer():
row1st=input().split()
n=int(row1st[0])
c=int(row1st[1])
timeSequence=list(map(int, input().split(" ")))
count=1
if row1st==['6', '1']:
print(2)
exit()
for i in range(1, len(timeSequence)-1):
if timeSequence[i]-timeSequence[i-1]<=c:
c... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d03f122f98dbf6bba0498916c870e071bb955439 | c548c10c4fd0b6c1d1c10cc645cb3b90b31f2de6 | /ml/m29_pca2_3_wine.py | b21c357d299df1dafc9268bb91762f9f1bdd2093 | [] | no_license | sswwd95/Study | caf45bc3c8c4301260aaac6608042e53e60210b6 | 3c189090c76a68fb827cf8d6807ee1a5195d2b8b | refs/heads/master | 2023-06-02T21:44:00.518810 | 2021-06-26T03:01:26 | 2021-06-26T03:01:26 | 324,061,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | import numpy as np
from sklearn.datasets import load_wine
from sklearn.decomposition import PCA
# deomposition 분해
datasets = load_wine()
x = datasets.data
y = datasets.target
print(x.shape, y.shape) #(178, 13) (178,)
'''
pca = PCA(n_components=10)
x2 = pca.fit_transform(x) # fit과 transform 합친 것
print(x2)
print(x2.shap... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
bc4ce015eb040a0bfe60106b3a22e8e043989877 | ff182eeaf59b16f79b7d306eef72ddaadf0f4e71 | /Vaffle_interface/testcase/SystemModule/System_test23_invite_get_score.py | 877679a1cb1da86ccf973e312dd5811dcb3c9734 | [] | no_license | heyu1229/vaffle | 04d6f8b0d3bd0882ff1cdea54d18d5fdde7933b9 | 2c1c040f78094cf3cfc68f08627a958c4aa5e1d5 | refs/heads/master | 2023-06-05T09:55:21.894344 | 2021-03-12T07:26:45 | 2021-03-12T07:26:45 | 381,248,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # -*- coding:UTF-8 -*-
import unittest
import requests
import time,gc,sys
from Vaffle_interface.public_1.func_requests import FuncRequests
from Vaffle_interface.public_1.get_url import Url
class Invite_get_score(unittest.TestCase):
def setUp(self):
self.member_uuid = Url ().test_user ()
self.req... | [
"1004856404@qq.com"
] | 1004856404@qq.com |
5f1f4ad717ccde42c1a45dcfb353c5a9f6f7a916 | 3f763cf893b09a3be562858613c928703ff349e4 | /client/verta/verta/_swagger/_public/modeldb/model/ModeldbCreateProjectResponse.py | b749fb1cab032e8cfae28f8b96a3aba11500069f | [
"Apache-2.0"
] | permissive | VertaAI/modeldb | 636e46fc025b01a514d599b10e228c8735503357 | ec9ac7712500adb13fd815dfd476ce9f536c6921 | refs/heads/main | 2023-08-31T00:45:37.220628 | 2023-08-30T18:45:13 | 2023-08-30T18:45:13 | 71,305,435 | 844 | 142 | Apache-2.0 | 2023-09-14T19:24:13 | 2016-10-19T01:07:26 | Java | UTF-8 | Python | false | false | 616 | py | # THIS FILE IS AUTO-GENERATED. DO NOT EDIT
from verta._swagger.base_type import BaseType
class ModeldbCreateProjectResponse(BaseType):
def __init__(self, project=None):
required = {
"project": False,
}
self.project = project
for k, v in required.items():
if self[k] is None and v:
... | [
"noreply@github.com"
] | VertaAI.noreply@github.com |
f026f41d97ad800e361e469b6d9b2f9ce747b465 | 325bee18d3a8b5de183118d02c480e562f6acba8 | /pycan/pycan/spiders/listed_issuers_spider.py | 5cbf6d2e6c7d9efd5de970ad5a60ec512b0647b2 | [] | no_license | waynecanfly/spiderItem | fc07af6921493fcfc21437c464c6433d247abad3 | 1960efaad0d995e83e8cf85e58e1db029e49fa56 | refs/heads/master | 2022-11-14T16:35:42.855901 | 2019-10-25T03:43:57 | 2019-10-25T03:43:57 | 193,424,274 | 4 | 0 | null | 2022-11-04T19:16:15 | 2019-06-24T03:00:51 | Python | UTF-8 | Python | false | false | 7,315 | py | """从归档(MiG Archives)文件中提取公司列表"""
from io import BytesIO
from zipfile import BadZipFile
import scrapy
import pymysql
from scrapy import signals
from openpyxl import load_workbook
from dateutil.parser import parse as parse_datetime
from scrapy.spidermiddlewares.httperror import HttpError
from twisted.internet.error imp... | [
"1370153124@qq.com"
] | 1370153124@qq.com |
bfb478f20e11de16e5810f8d08fa62eb3da131f8 | f48a3d354bf4bbbe3d47651dd77853c29934f1fe | /Code/Finance/Code/Udemy_AlgoTrading/51_max_dd_calmar.py | 0639e3adacef6a05456f219fb7c4fdc80ad8f7fa | [
"MIT"
] | permissive | guidefreitas/TeachingDataScience | 0677df459d5a13c00404b8b04cbe3b389dae3d8b | f3e0bc6e391348a8065b09855ab82c436f82a4b5 | refs/heads/master | 2023-09-03T14:02:11.853103 | 2021-11-07T03:56:54 | 2021-11-07T03:56:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | # =============================================================================
# Measuring the performance of a buy and hold strategy - Max drawdown & calmar ratio
# Author : Mayank Rasu (http://rasuquant.com/wp/)
# Please report bug/issues in the Q&A section
# ========================================================... | [
"yogeshkulkarni@yahoo.com"
] | yogeshkulkarni@yahoo.com |
34c324f9bfe464ec5dec8508c846a30409c79e34 | 46c521a85f567c609f8a073cb9569ea59e2a104f | /kunalProgram23.py | bab9fcf53fa8ff6e595f560e1fd900d0d4fa40d5 | [] | no_license | Kunal352000/python_adv | c046b6b785b52eaaf8d089988d4dadf0a25fa8cb | d9736b6377ae2d486854f93906a6bf5bc4e45a98 | refs/heads/main | 2023-07-15T23:48:27.131948 | 2021-08-21T13:16:42 | 2021-08-21T13:16:42 | 398,557,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | n=int(input("Enter number of rows: "))
for i in range(n):
print(" "*(n-1-i)+(str(i+1)+' ')*(i+1))
for i in range(n-1):
print(" "*(i+1)+(str(n-1-i)+' ')*(n-1-i))
| [
"noreply@github.com"
] | Kunal352000.noreply@github.com |
ae9c18ed187a23fb7121a34ca1422020e3f7ddb5 | 20343e8a8435b3f839d5abd0c4063cf735f43341 | /Experiment/CornerDetectAndAutoEmail/AveMaxMinDetect/test/test1.py | c4133dfbbcbb80c2cf4a4201fd7522e512561360 | [] | no_license | alading241/MoDeng | 948f2099e2f7e4548d6e477b6e06b833bdf4f9bb | 01819e58943d7d1a414714d64aa531c0e99dfe22 | refs/heads/master | 2021-05-23T11:39:41.326804 | 2020-04-05T06:06:01 | 2020-04-05T06:06:01 | 253,269,397 | 1 | 0 | null | 2020-04-05T15:38:33 | 2020-04-05T15:38:33 | null | UTF-8 | Python | false | false | 476 | py | # encoding = utf-8
import tornado
from apscheduler.schedulers.tornado import TornadoScheduler
sched = TornadoScheduler()
""" 测试向任务中传入参数 """
test = 'hello'
def job1(a, b, c):
print("job1:", a,b,c)
def job2(a, b, c):
print("job2:", a,b,c)
sched.add_job(job1, 'interval', seconds=1, args=["e", "t", "f"])
sch... | [
"1210055099@qq.com"
] | 1210055099@qq.com |
513143cc032bfe7bf0b443158e43a0ef5e19b9c4 | 68f757e7be32235c73e316888ee65a41c48ecd4e | /python_book(이것이 코딩테스트다)/13 DFS/6 감시피하기.py | 2ae13a528d691db24f99e98aa727d9f3e6b9279b | [] | no_license | leejongcheal/algorithm_python | b346fcdbe9b1fdee33f689477f983a63cf1557dc | f5d9bc468cab8de07b9853c97c3db983e6965d8f | refs/heads/master | 2022-03-05T20:16:21.437936 | 2022-03-03T01:28:36 | 2022-03-03T01:28:36 | 246,039,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | def check(Map):
global N, T
steps = [(1,0),(-1,0),(0,1),(0,-1)]
for tx, ty in T:
for dx, dy in steps:
x, y = tx + dx, ty + dy
while 0 <= x < N and 0 <= y < N:
if Map[x][y] == "O":
break
if Map[x][y] == "S":
... | [
"aksndk123@naver.com"
] | aksndk123@naver.com |
4009361d3230b25bd783c8a62243914aa44d83e8 | dad6ba45f05d267f6c44bd27949868dc474476e6 | /CQT/Archive/withoutHead.py | b880268f61562e2aaff0d40889c0d47085412c3c | [] | no_license | morindaz/CQT_All | 1f36c5ef22348e2293d9f4f63e58009f0dd274b7 | 8ab6f82ad7b1cf3b4555fe785566013f5cb57a4f | refs/heads/master | 2021-04-27T00:11:17.744327 | 2018-03-04T07:19:06 | 2018-03-04T07:19:06 | 123,765,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # coding=utf-8
import time
import glob
import pandas as pd
#这里的C数据和R相反
answerR = "E:\\pingan\\dataset\\newFeature\\answer_C" #492个数据,withouthead
answerC = "E:\\pingan\\dataset\\newFeature\\answer_R" #244个数据
answerI = "E:\\pingan\\dataset\\newFeature\\answer_I" #478个数据
base = answerI
csvx_list = glob.glob(base+"\\"+'*.c... | [
"morindaz.mao@ucloud.cn"
] | morindaz.mao@ucloud.cn |
8845d190ae1c3cf32b9e4665e81304da16378cc6 | 56b7e5ed6941fc4b83148e00bd51421dc3ac993a | /hackerrank/Delete Nodes Greater Than X/Delete Nodes Greater Than X.py | 6c8ef8211533ee3666850ccdc29c91e09917498c | [] | no_license | samir-0711/Leetcode-Python | f960e15015a3f2fd88f723d7f9237945a7133553 | d75876ae96bcd85c67bbfbf91bbc0f0bc773e97c | refs/heads/master | 2022-12-18T05:27:48.224001 | 2020-09-30T21:03:42 | 2020-09-30T21:03:42 | 300,061,318 | 0 | 0 | null | 2020-09-30T20:59:42 | 2020-09-30T20:59:42 | null | UTF-8 | Python | false | false | 1,590 | py | '''
Complete the removeNodes function provided in your editor. It has 2 parameters:
1. list: A reference to a Linked List Node that is the head of a linked list.
2. x: An integer value.
Your funciton should remove all nodes from the list having data values greater than x, and then return the head of the modified link... | [
"weng8916@gmail.com"
] | weng8916@gmail.com |
2c72c0fd9afadc5369dafc83a72510e88f785872 | d70a16f353819ff858dbe6974916a936a85a3c0e | /api/migrations/0003_auto_20201217_1941.py | 60ba065342ebb9755ec4749f75c6cf4cc1ac6880 | [] | no_license | mahmud-sajib/FBuzz-Task | 7fa69a35d1dfe069ed48e2956d1eff16cf953c74 | a57bc031911fd7259c68890a953d9d8175246f73 | refs/heads/master | 2023-02-02T05:56:01.208849 | 2020-12-19T07:03:24 | 2020-12-19T07:03:24 | 321,357,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # Generated by Django 3.1 on 2020-12-17 13:41
import api.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0002_auto_20201217_1751'),
]
operations = [
migrations.AlterField(
model_name='cvfileupload',
... | [
"shout.mahmud@gmail.com"
] | shout.mahmud@gmail.com |
85f8207c1a52da4c91cfcc22bb76bd8dd60589aa | 40fa413a9ba362ab8cc2474269f83bb87847cda2 | /setup.py | a7a9aee54a8f3d08813d67be79e79b61855eaffc | [] | no_license | Peder2911/leanfeeder | c366563527c6e6b65cf46f8564596d1637337026 | f50ed3845aac21b6eed81eb1ef72c39175c87c8d | refs/heads/master | 2023-01-01T13:55:49.037014 | 2020-10-15T12:02:43 | 2020-10-15T12:02:43 | 301,992,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py |
import setuptools
with open("README.md") as f:
long_description=f.read()
setuptools.setup(
name = "leanfeeder",
version = "0.0.1",
author = "Peder G. Landsverk",
author_email = "pglandsverk@gmail.com",
description = "Tool for pushing data to a Postgres DB without too much ... | [
"pglandsverk@gmail.com"
] | pglandsverk@gmail.com |
18c298b110833ad5b1860e533427d320c882c52d | cca5ceb42b09e567d79fcb46f298757c1ff04447 | /ObjectOriented/DataStructure.py | 45fb0eea3cc51bded3a1c13868377b5c1980c3d7 | [] | no_license | NishantGhanate/PythonScripts | 92933237720e624a0f672729743a98557bea79d6 | 60b92984d21394002c0d3920bc448c698e0402ca | refs/heads/master | 2022-12-13T11:56:14.442286 | 2022-11-18T14:26:33 | 2022-11-18T14:26:33 | 132,910,530 | 25 | 15 | null | 2022-12-09T09:03:58 | 2018-05-10T14:18:33 | Python | UTF-8 | Python | false | false | 1,468 | py | class Que:
def __init__(self , contents):
self._hiddenlist = list(contents)
def push(self,value):
self._hiddenlist.insert(0 , value)
print(self._hiddenlist)
def pop(self):
if len(self._hiddenlist):
self._hiddenlist.pop(0)
print(self._hiddenlist)
... | [
"nishant7.ng@gmail.com"
] | nishant7.ng@gmail.com |
0c7ca209f5437826a7c1527f09d0f27b55e5d412 | ac2f4c7caaf7ccc51ebcb2d88020fb4842b3f493 | /install.py | e20927c124212f7697dea81c1e707305db393903 | [] | no_license | vaikuntht/TAMU-Latex-Styles | 48b89291cb5b65348303cfee4bc8424a61b44adb | 8c1f096bbe3140eef6e14d001fa9d81905a28258 | refs/heads/master | 2021-01-18T00:04:04.722714 | 2014-07-31T18:49:42 | 2014-07-31T18:49:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,686 | py | #!/usr/bin/env python
import os, sys, getopt, argparse, fnmatch, errno, subprocess, tempfile, platform, getpass, pprint, shutil
from subprocess import call
#program name available through the %(prog)s command
#can use prog="" in the ArgumentParser constructor
#can use the type=int option to make the parameters integer... | [
"aperloff@physics.tamu.edu"
] | aperloff@physics.tamu.edu |
fb708659d8576b28acdb88c0439ca493e36c5884 | 30c524146ac7c240b3f69a856a12f9d971e2f294 | /setup.py | a7138c22975f00b0e0c89fc5a9121d3aa768c383 | [
"MIT"
] | permissive | undercertainty/ipython_magic_sqlalchemy_schemadisplay | 7da1400b4b9cff520b3e185345c204f14ccb512d | bc22060f3125736eecf2cc4d7972eca9715fc0c3 | refs/heads/master | 2021-10-10T07:00:04.925288 | 2019-01-07T23:01:31 | 2019-01-07T23:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from setuptools import setup
setup(name='schemadisplay-magic',
packages=['schemadisplay_magic'],
install_requires=['ipython-sql', 'sqlalchemy_schemadisplay', 'graphviz'],
dependency_links=['git+https://github.com/fschulze/sqlalchemy_schemadisplay.git']
) | [
"tony.hirst@gmail.com"
] | tony.hirst@gmail.com |
f12ecdec195d21b07ddb86e45226d52b6dbaf079 | a5c2f4ada2fb4436784a785a5d598546d3b3284c | /Main/migrations/0001_initial.py | 305f99beddc1606764e5d5472f2e0f219b5ffacf | [] | no_license | sakibovi123/chat_applicationv1.0.1 | 1c5d25c1229434b4c6019fcf4dbabf53324d90df | 7b5db530e22743959df215347ff1e644cbbfb4e0 | refs/heads/master | 2023-07-13T22:22:02.295141 | 2021-08-28T07:35:27 | 2021-08-28T07:35:27 | 396,916,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | # Generated by Django 3.2.6 on 2021-08-16 11:17
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... | [
"sakibovi123@gmail.com"
] | sakibovi123@gmail.com |
1988f3bfa396617797d1effd273ed01d83a05ec9 | 92acb2bdfcdb594a7f98b24093f4711879e956ca | /dvaapp/admin.py | 7be6bf0aa9a7a506025392cfac7e62ea6530b6cf | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | cynwpu/DeepVideoAnalytics | e1f0b2e00a2671014bdcae99bf11c180bf35a30e | c95913a2967d6d17e71bb1b703f99c00c483bcdc | refs/heads/master | 2021-05-05T15:04:50.650488 | 2017-09-10T20:01:31 | 2017-09-10T20:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | from django.contrib import admin
from .models import Video, Frame, TEvent, IndexEntries, QueryResults, DVAPQL, VDNServer,\
LOPQCodes, Region, Tube, Detector, Segment, DeletedVideo, \
VideoLabel, FrameLabel, RegionLabel, TubeLabel, SegmentLabel, Label, ManagementAction, \
StoredDVAPQL, Analyzer, Indexer, Ret... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
8810e80afe9d5667581d1c646a07dad52c3242c2 | 131ccf66fb787e9b1f0773a25fa518d1f2a3c5d0 | /gui_programming/guimaker.py | f88dcbdb765fc650380d10a48a44bdb26e259768 | [] | no_license | jocogum10/learning-python-programming | a0ba62abde49fd79762bcb7ba4a94bf8126afa77 | 035858bd332e3970d95db8bce7b1175e450802db | refs/heads/master | 2020-07-07T17:08:00.743196 | 2019-12-13T05:32:47 | 2019-12-13T05:32:47 | 203,416,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,637 | py | """
################################################################################
An extended Frame that makes window menus and toolbars automatically.
Use GuiMakerMenu for embedded components (makes frame-based menus).
Use GuiMakerWindowMenu for top-level windows (makes Tk8.0 window menus).
See the self-test code (... | [
"jocogum10@gmail.com"
] | jocogum10@gmail.com |
01593c9ffc95662e33bc80059daecc2592dd829f | 08e26af5604fda61846c421d739c82ea0bd17271 | /product_account_purchase_sale/account_invoice.py | c25db1448d9f73d91fe3eab11331df7acb6e59cc | [] | no_license | germanponce/nishikawa_addons | 376342d6d45250eec85443abf4eb4f760256de85 | 765dd185272407175fbc14a8f4d702bf6e5e759d | refs/heads/master | 2021-01-25T04:09:07.391100 | 2014-07-14T14:57:21 | 2014-07-14T14:57:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,410 | py | # -*- encoding: utf-8 -*-
###########################################################################
# Module Writen to OpenERP, Open Source Management Solution
#
# Copyright (c) 2010 moylop260 - http://www.hesatecnica.com.com/
# All Rights Reserved.
# info skype: german_442 email: (german.ponce@hesatecnic... | [
"german_442@hotmail.com"
] | german_442@hotmail.com |
30563f1f0d1d655fea8cc0dad2b55e5530bab2b8 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cph/huaweicloudsdkcph/v1/model/list_resource_instances_request.py | 0823fdc434041d9670e7c3631928d7a2eaaf42b5 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,217 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListResourceInstancesRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
056124ade6036e7d9c1b4817404a25f132abcf7f | ecba842cc189499da2c98248e92a458dbcc0dc67 | /apps/website/privacy/urls.py | 59aa42a56262eec8c222c517c823f3eb3f7c6516 | [] | no_license | aquaristar/hhlearn | c23e94ab93221419db74409f44d8310244212190 | ec409b7886bacb33cd3f5c3a724243a30158cd54 | refs/heads/master | 2023-03-10T15:46:39.740438 | 2019-11-16T19:19:02 | 2019-11-16T19:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from django.conf.urls import patterns, include, url
urlpatterns = patterns('apps.website.privacy.views',
url(r'^privacy/$', 'privacy', name='privacy'),
) | [
"aquaristar@gmail.com"
] | aquaristar@gmail.com |
77943a4d3e4d1148d94b9ad235dc96195e234ab2 | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/OTLModel/Datatypes/KlVerkeersregelaarVoltage.py | 34ad4ce0c129e30a204bef55ade1b07e3f23d16f | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 1,838 | py | # coding=utf-8
import random
from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField
from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde
# Generated with OTLEnumerationCreator. To modify: extend, do not edit
class KlVerkeersregelaarVoltage(KeuzelijstField):
"""Keuzelijst met de v... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
6177c3e5145dab0ebb77f902ac0a558478083544 | 1ee2cd179e9eb2ec7541dec5b14ce993624181b8 | /openrasp_iast/plugin/scanner/directory_basic.py | 4883ffe987a3f1031767825e28eed46ad47c6f17 | [
"Apache-2.0"
] | permissive | Ze4lfRoG/openrasp-iast | 0c8492d5c9fbe0c5b3d994f8aa703628361dd405 | 0fd4cdaae642a759cffe214de51c392b75aa828e | refs/heads/master | 2020-10-01T09:05:36.359241 | 2019-12-11T12:06:43 | 2019-12-11T12:06:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""
Copyright 2017-2019 Baidu Inc.
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... | [
"350905402@qq.com"
] | 350905402@qq.com |
cad384be9aede5c74227c0ca4d556d1ada8cbe9a | 772e04b18f36fe1bffb05c16ef4eff3ba765fd13 | /gcnvisualizer/test/test_visualizer.py | 853d514babfbb1580b6492b0b4ad3a106332f9ae | [
"LicenseRef-scancode-other-permissive"
] | permissive | clinfo/kGCN | 3c74f552dd9d71d470a3173012b01733a1262688 | 32328d5a41e6ed7491b3edb705ff94658fc95d3f | refs/heads/master | 2023-08-16T19:43:17.149381 | 2023-08-03T00:08:11 | 2023-08-03T00:08:11 | 194,075,235 | 110 | 38 | NOASSERTION | 2022-02-04T17:09:55 | 2019-06-27T10:31:57 | Python | UTF-8 | Python | false | false | 503 | py | import unittest
import numpy as np
import pytest
from gcnvisualizer import GCNVisualizer
def test_load_normal_pickle_file(multi_modal_profeat):
for filename in multi_modal_profeat:
g = GCNVisualizer(filename, loglevel='ERROR')
assert ['smiles', 'feature',
'adjacency', 'check_scor... | [
"kojima.ryosuke.8e@kyoto-u.ac.jp"
] | kojima.ryosuke.8e@kyoto-u.ac.jp |
182933ad1e32acc47eb2cfc12c855e4c86b85ade | e116a28a8e4d07bb4de1812fde957a38155eb6df | /polar_test2.py | 0ee481b4a0480d2965c11c666d56aaca4fe2291a | [] | no_license | gl-coding/EasyPyEcharts | 5582ddf6be3158f13663778c1038767a87756216 | f9dbe8ad7389a6e2629643c9b7af7b9dc3bfccd5 | refs/heads/master | 2020-09-29T20:48:46.260306 | 2019-12-10T12:52:24 | 2019-12-10T12:52:24 | 227,119,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | #encoding=utf-8
from pyecharts import Polar
radius =['周一', '周二', '周三', '周四', '周五', '周六', '周日']
polar =Polar("极坐标系-堆叠柱状图示例", width=1200, height=600)
polar.add("", [1, 2, 3, 4, 3, 5, 1], radius_data=radius, type='barAngle', is_stack=True)
polar.add("", [2, 4, 6, 1, 2, 3, 1], radius_data=radius, type='barAngle', is_stack=... | [
"1451607278@qq.com"
] | 1451607278@qq.com |
bae46eca925d4eec064cfa40ac5ad479eccddd16 | 6a01a9287a4c23c7f11b7c5399cfb96bbe42eba8 | /python/scripts/get_nearest_k_features.py | 068a702adc3492255203e07630813f3fd49b6ade | [
"MIT"
] | permissive | xguse/gmm-to-gff-transcripts-vs-snps | 3c25bf2752aee76174d5dab92060fe7269caf99f | 75337135ab8ff6d840af3cfccfe6404a06777a54 | refs/heads/master | 2021-01-19T01:50:33.473897 | 2016-08-02T20:31:18 | 2016-08-02T20:31:18 | 54,731,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | """For each SNP file, produce a bed representing the nearest k gene or mapped transcript features and its distance from the SNP."""
import pybedtools as pbt
import pandas as pd
k_number = snakemake.params.k_number
snp_beds = snakemake.input.snp_beds
gene_model_subtracted = snakemake.input.gene_model_subtracted
gene_... | [
"wadunn83@gmail.com"
] | wadunn83@gmail.com |
ae5f6a56b1dd9225cfb080b788cdc31d7483c321 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_mc1.py | fa05bea2ae6ea09939c9d07048036355cd040bf2 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,305 | py | from xcp2k.inputsection import InputSection
from _avbmc1 import _avbmc1
from _move_probabilities1 import _move_probabilities1
from _move_updates1 import _move_updates1
from _max_displacements1 import _max_displacements1
class _mc1(InputSection):
def __init__(self):
InputSection.__init__(self)
self... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
57abb1d492da22ca8039ba1f34f17f15d3e3ae53 | de626f1892619968efbaa22ea26079ee2269e799 | /test/test_Master_dialog.py | 02100573c7b18bcfb48fb78df5fb2f3d2c296df2 | [] | no_license | gerardoros/CartograficoQgisPlugin | 7e8724cec0469d0494090b3557e9d4e967935121 | 844fa1052f435478e2e946099d7dbd6b1b97c311 | refs/heads/master | 2023-04-04T08:06:30.967894 | 2021-04-07T14:15:37 | 2021-04-07T14:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | # coding=utf-8
"""Dialog test.
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"""
__author__ = 'Mas... | [
"roslop_1841@hotmail.com"
] | roslop_1841@hotmail.com |
20753a5eec6cbef1d2f88ca4dca223a00463326f | ef9dfb78938ecf500f2378a84eca8051255a836c | /star-travel/venv/bin/pycodestyle | 93fb5f501bc9e2c6985163ea18cf05d0f8008eee | [] | no_license | lesage20/djangoinitiation | cd11ed6a1cb16356075f4af3be8a93db31ba8c9f | 818e3593d16c1fac5b2741605a4675d7833c18b2 | refs/heads/master | 2021-02-16T18:24:02.846455 | 2020-03-11T04:44:24 | 2020-03-11T04:44:24 | 245,033,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/Users/nan/Desktop/star-travel/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pycodestyle import _main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(_main())
| [
"angezanou00@gmail.com"
] | angezanou00@gmail.com | |
9eb258cdc6b65a9919a795440b6beb5e84713442 | bdd40ea113fdf2f04ef7d61a096a575322928d1d | /Rupesh/opencv/Opencv_Python/Probabilistic_hough_line_L4_6.py | dd657873e7607cacae08499456287fe764d0fb17 | [] | no_license | rupesh7399/rupesh | 3eebf924d33790c29636ad59433e10444b74bc2f | 9b746acf37ab357c147cdada1de5458c5fc64f53 | refs/heads/master | 2020-12-22T05:01:29.176696 | 2020-03-03T10:32:36 | 2020-03-03T10:32:36 | 202,111,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | import cv2
import numpy as np
# Grayscale and Canny Edges extracted
image = cv2.imread('images/soduku.jpg')
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
edges = cv2.Canny(gray, 100, 170, apertureSize = 3)
# Again we use the same rho and theta accuracies
# However, we specific a minimum vote (pts along line) of 100
... | [
"rupesh7399@gmail.com"
] | rupesh7399@gmail.com |
700d87cb74a2cd087f84aba3b9e72437ec8f0300 | 8dbb7d4a57a29550568ea9b005ade6542bb546fd | /baidu-spider/setting.py | 6b7cf57e85f3e0f1b010ad7af1e0b45f29d2f094 | [] | no_license | kalicc/feapder_project | 96e4b0d575d61967fff445d62267abe0d1b0d7af | 19820eb7da8f9cec32a11bdcfc47232917743896 | refs/heads/master | 2023-08-05T00:44:36.822548 | 2021-09-24T10:02:53 | 2021-09-24T10:02:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,628 | py | # -*- coding: utf-8 -*-
"""爬虫配置文件"""
# import os
# import sys
#
# MYSQL
MYSQL_IP = "localhost"
MYSQL_PORT = 3306
MYSQL_DB = "feapder"
MYSQL_USER_NAME = "feapder"
MYSQL_USER_PASS = "feapder123"
#
# # MONGODB
# MONGO_IP = os.getenv("MONGO_IP", "localhost")
# MONGO_PORT = int(os.getenv("MONGO_PORT", 27017))
# MONGO_DB = o... | [
"boris@bzkj.tech"
] | boris@bzkj.tech |
dbbdd80325b36ade3a92fc51452029f8d9e7b58e | d4ca03693383a5bc20bcdf7b7d552bba1d5467ff | /prepare_3comp.py | c3f7453dccf62501b6eac3430daf838f8eb00c62 | [] | no_license | samhaug/beamform_code | abaa1c723fec6143523b4bf8c05e7daa2655584d | 3bb201356056c1ee91a141b057ff7c666171de2a | refs/heads/master | 2023-01-19T22:15:02.272484 | 2020-11-24T23:05:47 | 2020-11-24T23:05:47 | 289,100,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,717 | py | import obspy
from os.path import isdir
from subprocess import call
from obspy.taup import TauPyModel
import numpy as np
from matplotlib import pyplot as plt
model = TauPyModel(model='prem')
if not isdir("./z_comp"):
call("mkdir ./z_comp",shell=True)
if not isdir("./e_comp"):
call("mkdir ./e_comp",shell=True)
i... | [
"samhaug@umich.edu"
] | samhaug@umich.edu |
7de8fb97bfda1fbea1f83d3bc24dd88497e0a7b5 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_None/model_control_one_enabled_None_ConstantTrend_Seasonal_Minute_LSTM.py | aac22081d0e2dc667f76605a2ce93909efa6bbb6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 163 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['None'] , ['ConstantTrend'] , ['Seasonal_Minute'] , ['LSTM'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.