blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c114217ef73ca6d31f1feed50418ed745207816 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/battle/shared/crosshair/settings.py | 657ae2ce4eace767c5376504f12ceb0827b4eee6 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,243 | py | # 2017.05.04 15:22:39 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/shared/crosshair/settings.py
from AvatarInputHandler import aih_constants
CROSSHAIR_CONTAINER_SWF = 'crosshairPanelContainer.swf'
CROSSHAIR_ROOT_PATH = 'root.main'
CROSSHAIR_INIT_CALLBACK = 'registerCro... | [
"info@webium.sk"
] | info@webium.sk |
db378c92543395fef97a6e3c532b645c55dcff0f | 72b81c092351fa5740f6f156de23e5cc3e6c54e9 | /backEnd/academico/participante/urls.py | 3e749c311221399018f2f82f6dec35fdf301ceaa | [] | no_license | adamtuenti/repositorioDistribuidos | 0c1787726351e87c6272af721f9640f28834ef48 | e49332954437293f87cf62ad645f85208f9ed249 | refs/heads/main | 2023-02-10T03:25:28.748875 | 2021-01-14T04:25:29 | 2021-01-14T04:25:29 | 329,505,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | from django.urls import path, include
from django.shortcuts import *
from academico.participante.views import *
from django.views.generic import TemplateView
from .views import *
from academico.participante.Api import *
urlpatterns = [
path('asistencia/', asistencia, name="participante_asistencia"),
path('logi... | [
"adanavarrete15@gmail.com"
] | adanavarrete15@gmail.com |
c1bceea26ecf4074e830dc137980c465f45a87b6 | 7bebd0ff76a23ee7f334eea4c84ba1759b922992 | /app/main/forms.py | cb753c2aa388ceb469ef1a0283a53ec437f6ba45 | [
"MIT"
] | permissive | MutuaFranklin/PitchCentre | a429ad9414e18b4c54b5ed7405d45586ff0cd391 | da3ccf0b1f5cd165d11f72386aec59a76e79bee2 | refs/heads/main | 2023-07-16T17:34:23.013904 | 2021-08-19T12:30:03 | 2021-08-19T12:30:03 | 395,551,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | from typing import Text
from flask_wtf import FlaskForm
from wtforms import StringField,TextAreaField, SelectField,SubmitField
from wtforms.validators import Required
from wtforms.ext.sqlalchemy.fields import QuerySelectField
class UpdateProfile(FlaskForm):
bio = TextAreaField('Tell us about you.',validators = ... | [
"franklin.mutua@student.moringaschool.com"
] | franklin.mutua@student.moringaschool.com |
0efac10fe189e8c081f6014cc173b2a7fa0b30ef | 875fd9c1dec693167919a8049c2a419528eb8913 | /downloadaudio/downloaders/google_tts.py | 31b5d23ed07ead67ab4c3a128df36f863c7d3568 | [] | no_license | ELLIOTTCABLE/anki-download-audio-forvo | c200d3c0ed2d9c193caf59046786389fe66958f0 | f44e287e718f375e38e05968d2e5587b9f002fcf | refs/heads/master | 2021-01-21T12:30:35.677391 | 2017-09-01T04:23:30 | 2017-09-01T04:23:30 | 102,073,183 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,104 | py | # -*- mode: python; coding: utf-8 -*-
#
# Copyright © 2012–15 Roland Sieker <ospalh@gmail.com>
# Copyright © 2015 Paul Hartmann <phaaurlt@gmail.com>
# Inspiration and source of the URL: Tymon Warecki
#
# License: GNU AGPL, version 3 or later; http://www.gnu.org/copyleft/agpl.html
"""
Download pronunciations from Goog... | [
"ospalh@gmail.com"
] | ospalh@gmail.com |
85f9c234ed1e4cedb44d9c48426cdc833d8ade68 | fcc4df25f539e6057258706b10e1b602d2a3eaf7 | /pyannote/pipeline/__init__.py | b7e880526688d88047ee3c0eda32af18d20bb21e | [
"MIT"
] | permissive | PaulLerner/pyannote-pipeline | 40f08f5f34c1d9e3c8c906396df7322d3627f535 | b6ebc3fcef57c95ad539d79311c64a0b3cf86408 | refs/heads/master | 2020-09-21T18:37:28.447730 | 2019-06-26T20:55:18 | 2019-06-26T20:55:18 | 224,884,842 | 0 | 0 | NOASSERTION | 2019-11-29T16:05:57 | 2019-11-29T16:05:57 | null | UTF-8 | Python | false | false | 1,358 | py | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2018 CNRS
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... | [
"bredin@limsi.fr"
] | bredin@limsi.fr |
c46871fd6397e3e5b692e19fdb711773176df5ad | 910467bd40fbd6385d22165165b34fbe7940f0e2 | /polyaxon_cli/cli/config.py | b2d52ac4b650732437170f89daf362cc40a8e842 | [
"MIT"
] | permissive | VitaliKaiser/polyaxon-cli | 73bd343ab31c051be490867703566016c41a9fb8 | d70d2af46cc8dceb12b0945c563c625455e66cda | refs/heads/master | 2021-01-25T11:48:52.303584 | 2018-03-01T10:42:38 | 2018-03-01T10:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,450 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import click
from polyaxon_cli.managers.config import GlobalConfigManager
from polyaxon_cli.utils.formatting import dict_tabulate, Printer
def validate_options(ctx, param, value):
possible_values = ['verbose', 'host']
i... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
e73fb95f01cb39b90427e85df8567250a84ac39e | 90608029a5e8e0d5392f3373bb50d48771ba2398 | /products/migrations/0001_initial.py | dee6adcdbacf865d6ed1edb73ec0f4bb375167d3 | [] | no_license | wahid999/PyShop | 986e78fbc7c000c082fdf860a182e985cd41c45c | 1bb639125a0292010153f67912b9dc54f3318b5a | refs/heads/master | 2023-07-12T10:52:21.113216 | 2021-08-24T01:21:26 | 2021-08-24T01:21:26 | 399,295,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # Generated by Django 3.1.3 on 2021-08-23 05:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | [
"wahidhussainturi@gmail.com"
] | wahidhussainturi@gmail.com |
220e633d0a3fd6cc2ab8040031f3ad949c5aeafd | ed823aaa73e9482576a7207c9c61953440540ee7 | /PycharmProjects/Selenium-python/multiplelist.py | bba790522c83ade5102176f599db41e84a46b213 | [] | no_license | KavithaBitra1980/pycharm-selenuim | 64b35ae4797e7ecb4644c06b0b12cdf629fcdf4d | 132b90d94461eccad30d7181651ba532674f3da9 | refs/heads/master | 2020-04-02T14:09:50.261066 | 2018-12-01T21:29:02 | 2018-12-01T21:29:02 | 154,513,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | #demo for multiplelists using ZIP
l1 = [1,2,3]
l2 = [3,4,5,10,20,30]
l3 = [5,10,15,20,25]
for a,b in zip(l1,l2):
print('the multiplication of both matrixes is',2*(a*b))
for a,b,c in zip(l1,l2,l3):
print(a,b,c)
if a < b and a <c and b < c:
print(a ,'is the smallest')
print(c, 'is the larg... | [
"kavithabitra1980@gmail.com"
] | kavithabitra1980@gmail.com |
6b7f58b30f675887a80ab342faf04989a04ff4ef | a5d21c7b508d86229faef0b5781b91631def00c0 | /0x0B_redis_basic/web.py | 68db1bf67401a0728e47b3de243d6b07d979e22b | [] | no_license | SeifJelidi/holbertonschool-web_back_end | 0361d43c9540c0d0312790e81b46d08cff689025 | a83f490066193fe2b03f60ee3b18a968b46d8fc0 | refs/heads/master | 2023-08-13T15:19:43.460754 | 2021-10-18T08:56:24 | 2021-10-18T08:56:24 | 388,186,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | #!/usr/bin/env python3
"""web module"""
from typing import Callable
import requests
import redis
from functools import wraps
redis_object = redis.Redis()
def count_req(method: Callable) -> Callable:
"""Count Request"""
@wraps(method)
def wrapper(link):
"""Wrapper method"""
redis_object.i... | [
"you@example.com"
] | you@example.com |
9c91809b744ff16932feb411b09b7423b511a93b | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/models/AppConfig.py | b3e39931ac2f8eb97496fa5f9e2cc1cdee59154c | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | # -*- coding: utf-8 -*-
import settings_sub
from django.db import models
from platinumegg.app.cabaret.models.base.models import Singleton, BaseModel
from platinumegg.lib.opensocial.util import OSAUtil
from platinumegg.app.cabaret.models.base.fields import TinyIntField,\
AppDateTimeField, JsonCharField, PositiveAuto... | [
"shangye@mail.com"
] | shangye@mail.com |
c9fe70da36618c2cb74ba704579300f060bdfe9c | dcce56815dca2b18039e392053376636505ce672 | /dumpscripts/asyncio_echo_client_coroutine.py | 05309a636fa1c68dedb183a41da0a63c3998acb5 | [] | no_license | robertopauletto/PyMOTW-it_3.0 | 28ff05d8aeccd61ade7d4107a971d9d2576fb579 | c725df4a2aa2e799a969e90c64898f08b7eaad7d | refs/heads/master | 2021-01-20T18:51:30.512327 | 2020-01-09T19:30:14 | 2020-01-09T19:30:14 | 63,536,756 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | # asyncio_echo_client_coroutine.py
import asyncio
import logging
import sys
MESSAGES = [
b"Questo e' il messaggio. ",
b"Sara' inviato ",
b'in parti.',
]
SERVER_ADDRESS = ('localhost', 10000)
logging.basicConfig(
level=logging.DEBUG,
format='%(name)s: %(message)s',
stream=sys.stderr,
)
log = l... | [
"roberto.pauletto@gmail.com"
] | roberto.pauletto@gmail.com |
1de640a90b5b770e3e3e3bebdc71b760e13989bb | fa89010f366aa33967c12636bf6cfae6105a9ee5 | /ex7/testers/tset.py | 7832f614cb95b54fe1374b5f8f612ee3b6833a5c | [] | no_license | borgr/intro2cs | 4db1985b789d0938d7c9cecddbe5a302f284bd95 | 9030d9831a168d9636093bd5211926666298d80f | refs/heads/master | 2020-05-29T19:35:20.829664 | 2016-10-22T06:07:22 | 2016-10-22T06:07:22 | 15,959,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,198 | py | import datetime
from geo import Position
from string import ascii_letters
from data import load_sentiments
import itertools as it
tweetlist = [["Can't wait to get the ballers going. If I can do half of what Gary Rankin has done I will be happy. The time is now. Chess not checkers.", datetime.datetime(2011, 8, 28, 21, ... | [
"noreply@github.com"
] | borgr.noreply@github.com |
5aac4802175c9e01e52b360b66fd915af1002463 | e17680647cbaee4d2661246eac1357d7f1de1536 | /apps/organization/migrations/0004_auto_20180519_1313.py | bd9fef39819fa3e7e26363ba7b8ccf81ebee32c0 | [] | no_license | chenjb04/LearnOnline | 0cad4da6917121e889ce03928acd06f0e72313fc | 35dadcc73e3a803ca7756a51bbcc3e408912ab12 | refs/heads/master | 2020-04-26T17:21:43.360876 | 2019-05-06T08:18:43 | 2019-05-06T08:18:43 | 173,710,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Generated by Django 2.0.5 on 2018-05-19 13:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('organization', '0003_courseorg_catgory'),
]
operations = [
migrations.RenameField(
model_name='courseorg',
old_name='catgory... | [
"chenjb04@163.com"
] | chenjb04@163.com |
21d3203a342aae2ceed8f3725d137594722bd3ba | 41efe260c251c719f87e883cc97f3c796569c5ce | /deving/pstats_merge.py | 16347e4301e36cb3b64c3fd8be4318a421ce91cc | [] | no_license | orenovadia/deving | f49c4bb7a354d420644afc87c87c163f95ad4987 | 6b18347e43a556599593ec5f09248945966167de | refs/heads/master | 2020-03-10T07:10:47.326670 | 2019-02-10T23:21:18 | 2019-02-10T23:21:18 | 129,256,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from __future__ import print_function
import pstats
import click
@click.command(name='pstats_merge')
@click.argument(
'from_files',
type=click.Path(exists=True, file_okay=True, dir_okay=False, resolve_path=False),
required=True,
nargs=-1
)
@click.argument(
'to_file',
type=click.Path(exists=F... | [
"orenovad@gmail.com"
] | orenovad@gmail.com |
bfc3d935394fc6ca878f5a81da542c5dea036d5d | 82d6e248d6498f53455f9ccb40b6ff9667da8f2e | /Params/xgb_cv_params.py | 46a7ba704b2ce3ce71ca634f5f5c6062b486bd36 | [] | no_license | marvinxu-free/data_analysis | 650ddf35443e66c395c8c503cacc328e547298a5 | 7a552959fd6272a54488c59091fa8b820c3f19ce | refs/heads/master | 2020-03-22T04:00:09.938423 | 2018-07-02T16:32:20 | 2018-07-02T16:32:20 | 139,466,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | # -*- coding: utf-8 -*-
# Project: local-spark
# Author: chaoxu create this file
# Time: 2017/10/13
# Company : Maxent
# Email: chao.xu@maxent-inc.com
from __future__ import print_function, division
xgb_base_params = {
'objective': 'binary:logistic',
# 'objective' : 'binary:logitraw',
'nthread': -1,
... | [
"marvinxu_free@163.com"
] | marvinxu_free@163.com |
d0023e8273cd6e97b2ad2bfdf9a6782d33bfc3e3 | bb109bd629c67a30a57850ebc97f9a9625aa998f | /wmtexe/cmi/git.py | 748d4b4a734ecdbb8b4082128123fa2889aa607b | [
"MIT"
] | permissive | csdms/wmt-exe | b0966f27792be853e8469f12a7e78aea24da6bfa | 9f6e5a20e65765389682161b985cab186db88fce | refs/heads/master | 2022-11-15T06:27:23.589160 | 2022-10-25T23:57:21 | 2022-10-25T23:57:21 | 22,662,428 | 0 | 2 | MIT | 2022-10-25T23:57:22 | 2014-08-05T23:04:09 | Python | UTF-8 | Python | false | false | 1,616 | py | #! /usr/bin/env python
import os
from .utils import which, check_output, system, cd, status
def git_repo_name(url):
(base, _) = os.path.splitext(os.path.basename(url))
return base
def git_repo_sha(url, git=None, branch='master'):
git = git or which('git')
lines = check_output([git, 'ls-remote', ur... | [
"mcflugen@gmail.com"
] | mcflugen@gmail.com |
8f5359219eca321f19a6e87ffc21568d1cd514cd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02422/s434334605.py | 0f8d8509dfbc38c56d306e2d546cad7fb3863b38 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | S = input()
n = int(input())
for i in range(n):
q = input().split()
q[1] = int(q[1])
q[2] = int(q[2])
if q[0] == "print":
print(S[q[1]:q[2] + 1])
elif q[0] == "reverse":
if q[1] == 0:
S = S[:q[1]] + S[q[2]::-1] + S[q[2] + 1:]
else:
S = S[:q[1]] + S[q[2... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fdd3bcccc3ab81cc1c4dd4ecddb857fc92b52c6c | 8f24e443e42315a81028b648e753c50967c51c78 | /rllib/algorithms/td3/tests/test_td3.py | 977c91fea4939895fe9cb6997559ab256cd0dcd1 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | simon-mo/ray | d07efdada8d05c6e10417f96e8dfc35f9ad33397 | 1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8 | refs/heads/master | 2023-03-06T00:09:35.758834 | 2022-12-23T18:46:48 | 2022-12-23T18:46:48 | 122,156,396 | 4 | 2 | Apache-2.0 | 2023-03-04T08:56:56 | 2018-02-20T04:47:06 | Python | UTF-8 | Python | false | false | 4,032 | py | import numpy as np
import unittest
import ray
import ray.rllib.algorithms.td3 as td3
from ray.rllib.utils.framework import try_import_tf
from ray.rllib.utils.test_utils import (
check,
check_compute_single_action,
check_train_results,
framework_iterator,
)
tf1, tf, tfv = try_import_tf()
class TestTD... | [
"noreply@github.com"
] | simon-mo.noreply@github.com |
b8d5ded851da55920148133d10f0002e5942859e | 67db5c946b11bcc3cb6cef074ab6b6b9d0a72961 | /test/onnx/test_utility_funs.py | 0c1d8d3b2208639c42d531c4bdae58356f2065b2 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | dusty-nv/pytorch | 951c570c8c52ffb839275dfe5956a814ff556e5e | d0c925f1c73d6015122e71c8c59cbf1af3f06250 | refs/heads/master | 2022-05-26T15:18:39.557017 | 2020-04-16T16:01:05 | 2020-04-16T16:03:17 | 256,265,482 | 2 | 0 | NOASSERTION | 2020-04-16T16:09:26 | 2020-04-16T16:09:26 | null | UTF-8 | Python | false | false | 26,624 | py | from __future__ import absolute_import, division, print_function, unicode_literals
from test_pytorch_common import TestCase, run_tests
import torch
import torch.onnx
from torch.onnx import utils, OperatorExportTypes
from torch.onnx.symbolic_helper import _set_opset_version, _set_operator_export_type
from test_pytorch_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
123fa1bf54e8b6e07efb17bac26e992b93729f39 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /output/StudentProblem/10.21.11.45/3/1569578443.py | 1753098b316b763fb20e3410fc4080977f4d3725 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | ============================= test session starts ==============================
platform darwin -- Python 3.7.4, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
rootdir: /tmp
collected 1 item
../../../../../tmp F [100%]
=================================== FAILURES ==========... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
9f47de70b04ccb57858ed871c067590152ce6840 | 9dd665b950ff86c82f3ea74b6c1216bc42c7c1df | /Programming-Basics/First_Steps_In_Coding/Square_Area.py | 7b867e465fb00630c6fb5ea314fe8df94b93902e | [] | no_license | toshhPOP/SoftUniCourses | 464c63a92e6594654a223cd764dc425f2990918b | b17021edd87d03b903567bf383ee71dce9a484cb | refs/heads/main | 2023-08-27T20:37:07.849185 | 2021-11-06T08:28:52 | 2021-11-06T08:28:52 | 394,772,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | side = int(input())
area = side * side
print(area )
| [
"toshopz26@gmail.com"
] | toshopz26@gmail.com |
e5220636500572d14722d578ed0d36e272a73c4c | d5125ccc1ef9915ffd72c575225a620aac5cb347 | /development/django_test_project/django_mysite/blog/models.py | dec8106056e3e47a4cc70ec40a2e11f392eae651 | [] | no_license | yurui829/stefanbo | 2231074e0e4f04438aff647563299ad1947bd760 | 449f862c81a3b4ae3e079ecb4a15b3a5cbcca701 | refs/heads/master | 2021-01-24T23:42:52.064783 | 2014-07-02T03:05:04 | 2014-07-02T03:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | from django.db import models
# import easy_thumbnail
from easy_thumbnails.fields import ThumbnailerImageField
############################################################
class BlogPost(models.Model):
title = models.CharField(max_length=150)
body = models.TextField()
timestamp = models.DateTimeField()
########... | [
"stefan_bo@163.com"
] | stefan_bo@163.com |
cce604d7c87324c908134270009a9e2f9e3e3505 | bd9a09a3f1a8b2b5166c540ada93cc5b30591605 | /scanner/plugins/cms/others/hnkj_researchinfo_dan_sqli.py | 45e7bf7e021770805dc12e1b41a3c2330a28bc57 | [
"MIT"
] | permissive | iceyhexman/onlinetools | 3cb6e349fc30c515f96429abeab5fbcc430ac0cc | 61f2df7ff8e6ad97ca7901728c3ab749679a2bd0 | refs/heads/master | 2023-08-06T19:31:51.328657 | 2022-10-28T04:01:38 | 2022-10-28T04:01:38 | 119,565,769 | 1,662 | 358 | MIT | 2023-03-31T14:34:13 | 2018-01-30T16:51:46 | Python | UTF-8 | Python | false | false | 1,064 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: 汇能群管理系统SQL注入
referer: http://wooyun.org/bugs/wooyun-2010-0152664
author: Lucifer
description: 链接/main/model/childcatalog/researchinfo_dan.jsp?researchId=1中 researchID未过滤存在SQL注入漏洞
'''
import sys
import requests
class hnkj_researchinfo_dan_sqli_BaseVerify:
de... | [
"834430486@qq.com"
] | 834430486@qq.com |
a34bf01cdd8b3293561d1ade7fa2babcf4b1d786 | 7034b7dec4a068493adde012e576891cb60c8d1e | /python/setup.py | f80a66c4f82ee2e5adb8436f2e19d3106f5beb50 | [
"MIT",
"LicenseRef-scancode-x11-xconsortium-veillard"
] | permissive | OpenCMISS-Dependencies/libxml2 | 4ed6741cfc7a9c89b03972422522203b28e6fc16 | 29930a028df0e92e6cec778f461194acc16d9c04 | refs/heads/v2.7.6 | 2022-05-02T03:33:26.421280 | 2022-04-26T21:26:34 | 2022-04-26T21:26:34 | 3,723,092 | 0 | 5 | NOASSERTION | 2021-04-19T21:25:51 | 2012-03-14T22:40:54 | C | UTF-8 | Python | false | false | 6,679 | py | #!/usr/bin/python -u
#
# Setup script for libxml2 and libxslt if found
#
import sys, os
from distutils.core import setup, Extension
# Below ROOT, we expect to find include, include/libxml2, lib and bin.
# On *nix, it is not needed (but should not harm),
# on Windows, it is set by configure.js.
ROOT = r'/usr'
# Thre... | [
"h.sorby@auckland.ac.nz"
] | h.sorby@auckland.ac.nz |
af3fb2b3688a0e354caa5b88c3565eebf0664c0f | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project/.history/product_20211026231719.py | 291ef58343af0bae5fbd6dccf33cceea045d6ea9 | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 6,967 | py | import data as list_product
import random
def __init__(self, Id, Product_code, Product_name, Brand, Year, Size):
self.Id = Id
self.Product_code = Product_code
self.Product_name = Product_name
self.Brand = Brand
self.Year = Year
self.Size = Size
# Thêm sản phẩm
def AddProduct():
print("T... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
b89b38a5777080f39b5b0af78beb817fc594e3fe | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/390208_Matlablike_spy_pcolor/recipe-390208.py | af0402c8845b6bd612d208af863b90832966c331 | [
"MIT",
"Python-2.0"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 3,546 | py | def spy_matrix_pil(A,fname='tmp.png',cutoff=0.1,do_outline=0,
height=300,width=300):
"""\
Use a matlab-like 'spy' function to display the large elements
of a matrix using the Python Imaging Library.
Arguments:
A Input Numpy matrix
fname Output filename to which ... | [
"betty@qburst.com"
] | betty@qburst.com |
9166bba17e84a36d0e3627b66fc47d717a04d0ec | d3a8892f7e8a9d7767b3d797b0274004bf53e109 | /caffe/examples/notebook/original/brewing-logreg.py | 288d437ed475c854b70fc17a5e97ba4a9b78cde9 | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | QI1002/machinelearning | 27d3217430c3440fce81f42e70aa88762dd9529c | 8daa4a54a5010ec702cb56b56f6373f5f09c891b | refs/heads/master | 2020-05-23T12:44:09.767397 | 2019-05-15T12:36:06 | 2019-05-15T12:36:06 | 186,762,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,606 | py | # based on Ipython Notebook script in https://github.com/QI1002/caffe/blob/master/examples/brewing-logreg.ipynb
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import os
os.chdir('..')
import sys
sys.path.insert(0, './python')
import caffe
import os
import h5py
import shutil
import tempfile
... | [
"alanchang544@gmail.com"
] | alanchang544@gmail.com |
832d35a685c7bd0a682533fa880372e0d17ad7b8 | 12ddeca149e1a95aa404d494a8856536c3a7022b | /mesh_tensorflow/utils.py | 8a4fc9aa67c1d2f8b7d8c4e971a75021fe2c75b3 | [
"Apache-2.0"
] | permissive | brettkoonce/mesh | bbe1c2c08aaa4ce50bd91497c122f1a9f252fb27 | 07417c92a061978f5b6ec10af5ebb6aa48de1d7e | refs/heads/master | 2020-04-08T10:29:55.910960 | 2018-11-25T02:31:42 | 2018-11-25T02:32:56 | 159,271,264 | 0 | 0 | null | 2018-11-27T03:35:58 | 2018-11-27T03:35:58 | null | UTF-8 | Python | false | false | 2,209 | py | # coding=utf-8
# Copyright 2018 The Mesh TensorFlow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
39b028afb5cae996620b91317e1c4b079eacc147 | 134ff3c0719d4c0022eb0fb7c859bdbff5ca34b2 | /desktop/core/ext-py/Twisted/twisted/internet/posixbase.py | 14e37327623f2c803659a30ddbe5b454c61f25ed | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | civascu/hue | 22637f13a4cfc557716557661523131b6ac16da4 | 82f2de44789ff5a981ed725175bae7944832d1e9 | refs/heads/master | 2020-03-31T01:50:39.449966 | 2010-07-21T01:05:50 | 2010-07-21T01:07:15 | 788,284 | 0 | 0 | Apache-2.0 | 2019-02-04T07:03:12 | 2010-07-21T07:34:27 | Python | UTF-8 | Python | false | false | 14,189 | py | # -*- test-case-name: twisted.test.test_internet -*-
#
# Copyright (c) 2001-2008 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Posix reactor base class
Maintainer: Itamar Shtull-Trauring
"""
import warnings
import socket
import errno
import os
from zope.interface import implements, classImplements
f... | [
"bcwalrus@cloudera.com"
] | bcwalrus@cloudera.com |
4493d66c4308273818a2e1583c59b19d6f86fb1e | 26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f | /exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/source_control/gitlab/gitlab.py | 5a6bc0ea58a494099c0c7001e41e5d0c095d80c1 | [
"GPL-3.0-only",
"MIT",
"CC0-1.0",
"GPL-1.0-or-later"
] | permissive | tr3ck3r/linklight | 37814ed19173d893cdff161355d70a1cf538239b | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | refs/heads/master | 2021-04-11T04:33:02.727318 | 2020-03-25T17:38:41 | 2020-03-25T17:38:41 | 248,992,437 | 0 | 0 | MIT | 2020-03-21T14:26:25 | 2020-03-21T14:26:25 | null | UTF-8 | Python | false | false | 30,288 | py | # -*- coding: utf-8 -*-
# Copyright: (c) 2019, Guillaume Martinez (lunik@tiwabbit.fr)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import
import sys
from httmock import response # noqa
from httmock import urlmatch # noqa
from ansible... | [
"joshuamadison+gh@gmail.com"
] | joshuamadison+gh@gmail.com |
f7160dd06a6cbc907cf9333e3f2cc9eed3e33370 | 3365e4d4fc67bbefe4e8c755af289c535437c6f4 | /.history/src/core/dialogs/waterfall_dialog_20170814160354.py | 48b7fc0363101051bbb0b422d90056e63e785730 | [] | no_license | kiranhegde/OncoPlotter | f3ab9cdf193e87c7be78b16501ad295ac8f7d2f1 | b79ac6aa9c6c2ca8173bc8992ba3230aa3880636 | refs/heads/master | 2021-05-21T16:23:45.087035 | 2017-09-07T01:13:16 | 2017-09-07T01:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,510 | py | '''
Refs:
Embedding plot: https://sukhbinder.wordpress.com/2013/12/16/simple-pyqt-and-matplotlib-example-with-zoompan/
'''
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
import matplotlib.pyplot a... | [
"ngoyal95@terpmail.umd.edu"
] | ngoyal95@terpmail.umd.edu |
7710a9642e9f3d373a1295f5cfb9c1067f40da35 | be4892e723db5039c56f961e117cb95258168eca | /lectures/lecture6/mysqrt.py | 6c1b85a74369b42e6707344be08f3d44fe3a4d16 | [] | no_license | Physicist91/uwhpsc | 121ebef0d0cd9fd7b038f97b4cb93a1f2272844a | d3ce5217796c82b19c131a04d7aecad1b9c4bae2 | refs/heads/master | 2021-01-10T21:12:00.235642 | 2014-04-05T23:29:07 | 2014-04-05T23:29:07 | 19,096,883 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | """
Module for approximating sqrt.
This is a sample module developed in earlier lectures.
"""
def sqrt2(x, debug=False):
"""
more details.
"""
from numpy import nan
if x==0.:
return 0.
elif x<0:
print "*** Error, x must be nonnegative"
return nan
assert x>0. and... | [
"rjl@ned"
] | rjl@ned |
c800444c8660c118459576653ce9354ba013b186 | 696972c107ba96341875bab03dbb92e9337e2924 | /train_pytorch/train42_architecture.py | ff12674e510873c287c3c17c1bd6a7dd7eb26edd | [] | no_license | Dongfeng-He/nb | 577d3d5a5f0ec585f132946eb9b6475f6e6856bb | 1d65be2f98a72ae1bd58363bba42b5f1e8e7ac49 | refs/heads/master | 2020-05-29T15:37:29.882797 | 2019-08-09T02:11:25 | 2019-08-09T02:11:25 | 189,225,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,777 | py | import os
import pandas as pd
import random
import copy
from keras.preprocessing import text, sequence
import torch
from torch import nn
from torch.utils import data
from torch.nn import functional as F
import numpy as np
import time
import math
import gc
from sklearn.metrics import roc_auc_score
class JigsawEvaluato... | [
"hedongfeng@qingting.fm"
] | hedongfeng@qingting.fm |
ee0adb91af344e1d810954f9043d90cadc24e120 | a04eff13392361cf6effa7b321ff6c931705534c | /python/ccxt/async_support/upbit.py | 40feec213c77dc75d0ea3312fd5faeeafe4b364e | [
"MIT"
] | permissive | Homiex/homiex-ccxt | 89594883f06f72e8eaf3222d43a66370a030dbd2 | f669d7cb2a9276ba07c7782c5ec1a488f13d930d | refs/heads/master | 2022-07-06T19:47:38.759274 | 2020-03-16T09:27:07 | 2020-03-16T09:27:07 | 246,796,828 | 3 | 4 | MIT | 2022-06-23T01:48:09 | 2020-03-12T09:41:33 | JavaScript | UTF-8 | Python | false | false | 60,440 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import A... | [
"ruiliang.guo@homiex.com"
] | ruiliang.guo@homiex.com |
0030964604d33aa135c50d750f448c4688055868 | 3256af0d6c19732bb84b256a9f792aaf7f3d901a | /f5/bigip/tm/asm/policies/test/functional/test_session_tracking.py | 787fdfeaad06ce0b34a159e408f247c5a80fe15b | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | F5Networks/f5-common-python | 73e33ea489d989399d205077163f24ce584d83b9 | 3050df0079c2426af99b9a1b8f93d0b512468ff4 | refs/heads/development | 2023-08-29T10:11:23.713392 | 2022-09-21T02:45:03 | 2022-09-21T02:45:03 | 45,062,555 | 286 | 180 | Apache-2.0 | 2023-05-12T23:13:03 | 2015-10-27T18:48:06 | Python | UTF-8 | Python | false | false | 2,340 | py | # Copyright 2017 F5 Networks 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 applicable law or agreed to in writi... | [
"caphrim007@gmail.com"
] | caphrim007@gmail.com |
3dacd79b61a449dd121c4692ecef1e73c0a3611d | 779291cb83ec3cab36d8bb66ed46b3afd4907f95 | /library_strategy-wf/scripts/plot_umap_library_strategy.py | 8893a1ca40907af4f128ed47502fc90d159e6127 | [] | no_license | Shengqian95/ncbi_remap | ac3258411fda8e9317f3cdf951cc909cc0f1946e | 3f2099058bce5d1670a672a69c13efd89d538cd1 | refs/heads/master | 2023-05-22T06:17:57.900135 | 2020-11-01T17:16:54 | 2020-11-01T17:16:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | """UMAP of Library Strategy"""
import sys
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sys.path.insert(0, "../src")
from ncbi_remap.plotting import style_use
CATEGORIES = ["RNA-Seq", "EST", "WGS", "ChIP-Seq", "Other"]
COLORS = ["C0", "C1", "C2", "C4", "lightgray"]
ZORDER = [4, 3, 2, 1, 0... | [
"justin.m.fear@gmail.com"
] | justin.m.fear@gmail.com |
86ccac53d2e8d1436a9fb4a079327e43ed7003ff | 10e8fa6e43a54b3bbb89326a7d5786d50a625551 | /01. Defining Classes/venv/Lib/site-packages/pip-19.0.3-py3.8.egg/pip/_vendor/distlib/locators.py | de2440059a7e4ad45ca927e69469f28ad6651090 | [] | no_license | ramona-2020/Python-OOP | cbc7e5fadfdc907e51c83313e0ffb1f4f5f83f70 | 7404908f50d30c533f0fca2fd08d0290526686a5 | refs/heads/master | 2023-03-20T18:43:18.389720 | 2020-06-07T15:20:00 | 2020-06-07T15:20:00 | 523,400,905 | 1 | 0 | null | 2022-08-10T15:38:09 | 2022-08-10T15:38:08 | null | UTF-8 | Python | false | false | 51,828 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2015 Vinay Sajip.
# Licensed to the Python Software Foundation under a contributor agreement.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
import gzip
from io import BytesIO
import json
import logging
import os
import posixpath
import re
try:
import threading
except Impo... | [
"rossavelrs@yahoo.com"
] | rossavelrs@yahoo.com |
d8ca834b99ba70263bf23cc4cca4378f4ddc1fc7 | 6aee7149a16a71389e0916de1854f4edea026c2b | /docs/conf.py | ec1c141aa03b02802683dd91900e56f31946a7a8 | [
"BSD-2-Clause"
] | permissive | orionzhou/maize | d5e3c66af285d5d3a490fe09e85f840bd033240a | 605c895c397c9f614955a6df8eed0edc553f543d | refs/heads/main | 2022-12-27T02:08:26.747564 | 2022-11-24T07:57:30 | 2022-11-24T07:57:30 | 11,537,821 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,192 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# robin documentation build configuration file, created by
# sphinx-quickstart on Sun Dec 11 23:07:57 2016.
#
# 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
# auto... | [
"zhoupenggeni@gmail.com"
] | zhoupenggeni@gmail.com |
05e23e24877e1c3fee0d86645925b9eededee90d | d77a0d5a18af141d36005eba1769f7384f5ce1d4 | /mDataAn_venv/Lib/site-packages/numpy/lib/tests/test_arraypad.py | fe318a8907d837f134820534f6c890dec499249d | [] | no_license | LukasPolon/MData | 32d756d0df8c8847cf45b8def6e5ef760963d895 | 2178a0b2f60c4c638fd696a6e11b0ef801724bf4 | refs/heads/master | 2022-12-11T15:02:07.528855 | 2018-01-07T16:22:58 | 2018-01-07T16:22:58 | 99,687,079 | 1 | 0 | null | 2021-06-01T22:04:39 | 2017-08-08T11:51:11 | Python | UTF-8 | Python | false | false | 44,328 | py | """Tests for the array padding functions.
"""
from __future__ import division, absolute_import, print_function
import numpy as np
from numpy.testing import (assert_array_equal, assert_raises, assert_allclose,
TestCase)
from numpy.lib import pad
class TestConditionalShortcuts(Te... | [
"lukaspolon@gmail.com"
] | lukaspolon@gmail.com |
1e4fcb46ad26e77180ef6a7b17db5eca61bcb120 | 10fba4bbbf792d4d51130d9612cdf90386ab4942 | /gun_violence_project/src/process.py | 9329a597743ef45c34a7bebe94b5500a147bc4d0 | [] | no_license | pf4d/pattern_recognition | f9318c6952d715eb9adbe4c5171bc392f65706ce | c0bbb923c5f26597735186cb35ff78fd77cb7603 | refs/heads/master | 2021-06-16T01:12:43.623815 | 2020-12-15T04:01:39 | 2020-12-15T04:01:39 | 73,958,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,946 | py | from pylab import *
d1976 = load('data/1976.npy')
d1977 = load('data/1977.npy')
d1978 = load('data/1978.npy')
d1979 = load('data/1979.npy')
d1980 = load('data/1980.npy')
d1981 = load('data/1981.npy')
d1982 = load('data/1982.npy')
d1983 = load('data/1983.npy')
d1984 = load('data/1984.npy')
d1985 = load('data/1985.npy')... | [
"cummings.evan@gmail.com"
] | cummings.evan@gmail.com |
1f956806ded26833499f7cf94f5aa6c07baf85ca | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_62/226.py | 7ad140bdb3f8909e25cea0499824da525e9f42ab | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | fi=open("A-large.in")#")
import sys
sys.stdout=open("out.out",'w')
T=int(fi.readline())
for i in range(T):
N=int(fi.readline())
lst=[map(int,fi.readline().split()) for j in range(N)]
cnt=0
for j in range(N):
for k in range(j+1,N):
cnt+=(lst[k][0]>lst[j][0])==(lst[k][1]<lst[... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d2e0473e0664d8e1a1e333368970ecc639a0840e | 1e8142725aa06844713d18fa38c6779aff8f8171 | /tndata_backend/notifications/views.py | cfeca79f817dd6db55ce8cd517ebe98b2e9b6884 | [
"MIT"
] | permissive | tndatacommons/tndata_backend | 8f4db3e5cf5272901c9087a85e21d7560240bb3b | 3d22179c581ab3da18900483930d5ecc0a5fca73 | refs/heads/master | 2020-12-03T07:53:17.339769 | 2017-03-27T06:18:58 | 2017-03-27T06:18:58 | 68,407,220 | 1 | 2 | null | 2017-03-27T06:18:59 | 2016-09-16T18:59:16 | Python | UTF-8 | Python | false | false | 6,049 | py | from collections import defaultdict
from datetime import datetime, timedelta
from django.contrib.auth import get_user_model
from django.contrib.auth.decorators import login_required, user_passes_test
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.http import JsonResponse
f... | [
"brad@bradmontgomery.net"
] | brad@bradmontgomery.net |
230162e5df126366654a8c367c828b2b6bc6631e | 0ef635d35345f624c3011c1d7d296df96a7c6433 | /gala/dynamics/_genfunc/genfunc_3d.py | 013e78fb187b8b91795c531836549dc7b1ab7ad7 | [
"MIT",
"MPL-1.1"
] | permissive | cbjuan/gala | edd07d08f5a741d5b15848cbd6ab25872ca941a5 | bf1d616258b3856da7550eddf49cf26ec9865996 | refs/heads/master | 2020-04-08T23:58:21.360489 | 2018-11-24T01:56:08 | 2018-11-24T01:56:08 | 159,847,691 | 1 | 0 | MIT | 2018-11-30T16:09:34 | 2018-11-30T16:09:34 | null | UTF-8 | Python | false | false | 15,682 | py | # Solving the series of linear equations for true action
# and generating function Fourier components
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint
from matplotlib.ticker import MaxNLocator
import matplotlib.cm as cm
import time
# in units kpc, km/s and 10^11 M_solar
Grav = 430... | [
"adrian.prw@gmail.com"
] | adrian.prw@gmail.com |
8b225ee618d2c0e039ce2c2d41cf4951ba7b6028 | c1c5a8dc79cacf3b419bad77881213c5db2f80c3 | /Kattis/Hangman.py | 540add223680299e4c243eee7ae10b1621c955f5 | [] | no_license | EoinDavey/Competitive | 7ff8b6b6225814ac60c3ace659bb63190eb52420 | b2b6909b93f5c073b684477f8a4b06dac22ec678 | refs/heads/master | 2023-01-08T00:06:19.076941 | 2022-12-26T14:00:31 | 2022-12-26T14:00:31 | 67,259,478 | 17 | 1 | null | 2022-01-19T18:17:59 | 2016-09-02T22:46:26 | C++ | UTF-8 | Python | false | false | 189 | py | w = set(raw_input())
r = set()
s = raw_input()
i = 0
for c in s:
if c in w:
r.add(c)
else:
i+=1
if len(r) == len(w):
break
if i < 10:
print "WIN"
else:
print "LOSE"
| [
"eoind@vey.ie"
] | eoind@vey.ie |
05e85c0919ad2a4b88eaf3953a840091332c7133 | a0f55e31c92c31832fbe074038f07b8f8726425b | /Python/Python编程实践gwpy2-code/code/fileproc/inception_readlines.py | 1e43a6ab8998312ebdc7d1dc31948d9364a4b3e1 | [
"MIT"
] | permissive | jjc521/E-book-Collection | 7533717250395a8b81163564eef821e66bae5202 | b18bf6630bf99b7bf19b4cc4450b67887f618d31 | refs/heads/master | 2023-03-15T23:48:49.018347 | 2019-08-30T07:26:01 | 2019-08-30T07:26:01 | 206,090,622 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | with open('file_example.txt', 'r') as example_file:
lines = example_file.readlines()
print(lines)
| [
"907097904@qq.com"
] | 907097904@qq.com |
d03b9dea06bfefc925406420ce6441c7af6a6826 | 3da69696601b2b3ad7bc1285a5f0343c7eafea80 | /lc417.py | 4fde0896c49f578ad3744a0571ca5a994537d5c7 | [] | no_license | GeorgyZhou/Leetcode-Problem | ee586463a2e4e75c910c095bdc057f1be70b5c1b | d6fac85a94a7188e93d4e202e67b6485562d12bd | refs/heads/master | 2021-06-30T15:58:04.698200 | 2020-12-18T22:55:49 | 2020-12-18T22:55:49 | 66,054,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | class Solution(object):
def pacificAtlantic(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: List[List[int]]
"""
import heapq
row = len(matrix)
if row == 0:
return []
col = len(matrix[0])
if col == 0:
return []
... | [
"michaelchouqj@gmail.com"
] | michaelchouqj@gmail.com |
cf9536970a1d384e5d71709808001cf25fb90dc5 | 39e1e256acae3fe9be4434024d42b9bb47bdd02f | /analysis/submissions/844088c7077d499fa3533250ae504e7f_task2-2_1595958872/task2-2/main_patch.py | 9487fafad846fe1eb836cae4a61d574d42fae035 | [] | no_license | neulab/tranx-study | 9fb67b9a2181f0b362e4f97316c502eee4539b19 | e2a7089689f7f95e773e19c8f19513abe4fb8b9b | refs/heads/master | 2023-06-14T04:46:01.010892 | 2021-07-08T09:29:05 | 2021-07-08T09:29:05 | 250,357,553 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | from os import listdir
from os.path import isfile, join
from shutil import copyfile
def clean(file):
with open(file, 'r', encoding="ISO-8859-1") as f:
print(file)
return '\n'.join([line for line in f.read().strip().splitlines()]).encode('utf-8')
for fname in listdir('data/'):
fpath = join('d... | [
"frankxu2004@gmail.com"
] | frankxu2004@gmail.com |
c3f3e68e88d865e2a783eb6a940e63f3c9138e80 | be61a9f30274514857ea34297719157f1e5b8447 | /fhir/resources/practitionerrole.py | 93992fb6288c5beb51b23d862239f67f18b278e5 | [
"BSD-3-Clause"
] | permissive | jwygoda/fhir.resources | ceff3a620100d2e875136b86d3e82816c0e60a33 | 5053565570d1ca992d9971d20db813c53fd350b9 | refs/heads/master | 2021-02-05T02:59:17.436485 | 2019-07-18T10:57:33 | 2019-07-18T10:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,907 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/PractitionerRole) on 2019-05-13.
# 2019, SMART Health IT.
from . import domainresource
class PractitionerRole(domainresource.DomainResource):
""" Roles/organizations the practitioner ... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
4814556209a63b3749122e9e8c239c4aabab5d69 | 75402b6c851a12ae41359fdd83e89d2160c308af | /zentral/contrib/mdm/views/base.py | e87ecd36b7d41addde0cb28c75645741a6dd1b1d | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-commercial-license"
] | permissive | neocode12/zentral | 7b05aeeb823a5a3d7d268cc2b01e0bf1a5e4be71 | 9ecc8d8334148627fcccaa875f100adacd7a018b | refs/heads/main | 2023-04-09T12:06:45.355559 | 2023-03-15T14:05:05 | 2023-03-15T14:05:05 | 327,651,549 | 0 | 0 | Apache-2.0 | 2021-01-07T15:30:00 | 2021-01-07T15:30:00 | null | UTF-8 | Python | false | false | 1,481 | py | from django.core.exceptions import SuspiciousOperation
from zentral.utils.http import user_agent_and_ip_address_from_request
class PostEventMixin:
_setup_done = False
def dispatch(self, request, *args, **kwargs):
self.setup_with_request(request)
return super().dispatch(request, *args, **kwarg... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
57b0f77bec4f7eec3adf821f20ae402b5af51d66 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve-8.51.857815/carbon/common/lib/cherrypy/tutorial/bonus-sqlobject.py | 28b698ecccf4841092d2c84d53dee0097cbcc5cf | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,502 | py | #Embedded file name: carbon/common/lib/cherrypy/tutorial\bonus-sqlobject.py
"""
Bonus Tutorial: Using SQLObject
This is a silly little contacts manager application intended to
demonstrate how to use SQLObject from within a CherryPy2 project. It
also shows how to use inline Cheetah templates.
SQLObject is an Object/Re... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
7be5c1610311e38a44408af45228a5092697cb36 | 9e765b38a03c2996e221a42c2a0dbc0fe02824cb | /general_interview_qs/serialize_deserialize_binary_tree/binary_search_tree.py | 7d69deb9bc0240ce5a5c30d0940e79d08821b1f2 | [
"Apache-2.0"
] | permissive | angelusualle/algorithms | f709b4ae0c3275cece204d5fb56fd6ec34b4683b | 86286a49db2a755bc57330cb455bcbd8241ea6be | refs/heads/main | 2023-07-02T19:25:11.720114 | 2021-08-12T16:33:00 | 2021-08-12T16:33:00 | 269,791,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | import json
class Node():
def __init__(self, value):
self.value = value
self.left_child = None
self.right_child = None
def serialize_bst(root):
return json.dumps(serialize_bst_recursive(root))
def serialize_bst_recursive(root):
return root and (root.value, serialize_bst_recursive(ro... | [
"angelusualle@gmail.com"
] | angelusualle@gmail.com |
3cce911205ad7d207806b4df38a18d5029619084 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /11_Time_Series_Forecasting_with_Python/08/random_walk_persistence.py | 0a9ec3767d6c6e19c7e37f6146090e3366394702 | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | # persistence forecasts for a random walk
from math import sqrt
from random import random
from random import seed
from sklearn.metrics import mean_squared_error
# generate the random walk
seed(1)
random_walk = list()
random_walk.append(-1 if random() < 0.5 else 1)
for i in range(1, 1000):
movement = -1 if random(... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
32a2d37244020f9f94575b7edd8b299c75941baa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03131/s755210567.py | 2089454a42165092751754963ddeb69a197d66c8 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | K, A, B = map(int, input().split())
if B - A <= 2:
print(K + 1)
else:
ans = 0
# 初回のA枚→B枚まで A-1 回かかる
rest = K - A + 1
# このときにはA枚持っている
ans += A
# 残りをすべてA枚→B枚
ans += rest // 2 * (B - A)
if rest % 2 != 0:
ans += 1
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7379d7c195155642ce162043732d4f0040240093 | 3ad8887aca54daa74b1fe446cb35cd0902e1e9bd | /jackdaw/nest/ws/protocol/cmdtypes.py | dcd8aaa5c412c3cc29a7fc3200dcf7f1c5990f79 | [] | no_license | huangzccn/jackdaw | 6ea5f3f7901c1c64b469ea4c25de0e77a3fc49a2 | 1a9800152fb8f19d5db43fcd235f45f6db2e3878 | refs/heads/master | 2023-08-29T11:44:46.692776 | 2021-10-23T20:00:36 | 2021-10-23T20:00:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | import enum
class NestOpCmd(enum.Enum):
GATHER = 'GATHER'
KERBEROAST = 'KERBEROAST'
KERBEROASTRES = 'KERBEROASTRES'
ASREPROAST = 'ASREPROAST'
ASREPROASTRES = 'ASREPROASTRES'
KERBEROSTGS = 'KERBEROSTGS'
KERBEROSTGSRES = 'KERBEROSTGSRES'
KERBEROSTGT = 'KERBEROSTGT'
KERBEROSTGTRES = 'KERBEROSTGTRES'
SMBSESSIONS... | [
"info@skelsec.com"
] | info@skelsec.com |
463916eb7f9d2c84f8495c3cd2cf86f69b7f2b47 | b0d0e585c82b29aaabcb141f9f54280559abac69 | /Datastructures/spiral.py | 2b6df640797337c222abd54d3fabf6c6e852253b | [] | no_license | prem1806/python-practice-files | 32a6eb7236a9779dec0fb75d3792c34533e6491c | 3f152e4b62fb7f81e5113dced06b4dc7cce4b440 | refs/heads/master | 2021-05-29T16:59:00.349844 | 2015-10-06T17:58:56 | 2015-10-06T17:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | def auto(A):
m = len(A)
n = len(A[0])
T = 0
B = m - 1
L = 0
R = n - 1
direction = 0
ret = []
while T <= B and L <= R:
if (direction == 0):
for i in range(L,R+1):
ret.append(A[T][i])
T += 1
direction = 1
elif ... | [
"rohith.uppala369@gmail.com"
] | rohith.uppala369@gmail.com |
d4ed1afb2f18e5872a87afc51949c67782c4d55e | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_cams.py | 79899c97da6b6f7a5750ef111987199a2e5323fe | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py |
from xai.brain.wordbase.nouns._cam import _CAM
#calss header
class _CAMS(_CAM, ):
def __init__(self,):
_CAM.__init__(self)
self.name = "CAMS"
self.specie = 'nouns'
self.basic = "cam"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7b9daa4441128b06633740c95f5e340acebeb07f | 1df4cd78ad04d241547007e307c54236efbea400 | /gateway/finance/performance/tracker.py | 8e45259e298d289af653434554dfb2fdfe08a708 | [] | no_license | dudulangaaa/gateway | c878ec6a12ba81d936b63b4126355b9fb45fde19 | a3e709f0d5d5f778b9c195368640078ce93d743a | refs/heads/master | 2021-05-01T16:05:58.922582 | 2018-02-09T04:47:35 | 2018-02-09T04:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,867 | py | #
# Copyright 2016 Quantopian, 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 applicable law or agreed to in wr... | [
"xiyongjian@hotmail.com"
] | xiyongjian@hotmail.com |
d8b1f1388e4a768f0006ce3f1ac5e57574bc519b | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /time_or_world/see_long_case_under_year/early_day_or_hand.py | e5672fa966bf5cb831f37a71568f7efcaca277b6 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py |
#! /usr/bin/env python
def early_fact(str_arg):
place_and_young_government(str_arg)
print('other_problem')
def place_and_young_government(str_arg):
print(str_arg)
if __name__ == '__main__':
early_fact('great_man_or_man')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
e5f64d8df89dd8374d572ba638269fb1af708fd3 | c9e0227c3958db89747488328bd2b255e54f008f | /solutions/0748. Shortest Completing Word/0748.py | a4b585f171fb2752d25e76439753fa102ae11038 | [] | no_license | XkhldY/LeetCode | 2deba28b7491c36b4f224c3132fb89feea318832 | 94e23db2668615d9fe09e129a96c22ae4e83b9c8 | refs/heads/main | 2023-04-03T08:17:30.743071 | 2021-04-14T23:34:03 | 2021-04-14T23:34:03 | 358,136,537 | 1 | 0 | null | 2021-04-15T05:20:21 | 2021-04-15T05:20:21 | null | UTF-8 | Python | false | false | 492 | py | class Solution:
def shortestCompletingWord(self, licensePlate: str, words: List[str]) -> str:
def isMatch(word: str) -> bool:
wordCount = Counter(word)
return False if any(wordCount[i] < count[i] for i in string.ascii_letters) else True
ans = '*' * 16
count = defaultdict(int)
for c in li... | [
"walkccray@gmail.com"
] | walkccray@gmail.com |
082c0a3a8132415b1544e97ea72366bcceaafef0 | b5b665097ef54459d85d4cc4bf0748f885a1ccdc | /quantopian/01-api/05-orders/04-get-order-methods.py | e3f23983a8fd5f035c588315a155dafdfb17f68b | [] | no_license | dylanjorgensen/financial-engineering | 76d769723fcc4eb26601e2abab9bcb8f60a49ef3 | f66b47ee8fcc15b599eab3af5040975b1ec7add2 | refs/heads/master | 2021-01-13T07:28:43.790685 | 2016-10-19T05:18:34 | 2016-10-19T05:18:34 | 71,321,116 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 76 | py |
# You can see the status of a specific order by calling get_order(order)
| [
"dylan@dylanjorgensen.com"
] | dylan@dylanjorgensen.com |
9da8ce2b393a9e221c614b46da6993a8350023c7 | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /visit_report/migrations/0051_remove_cite_steps.py | 76dc57044caf2e095a4415fa7a366948cb1549e3 | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from django.db import migrations
def remove_cite_steps(apps, schema_editor):
Steps = apps.get_model('visit_report', 'Step')
Steps.objects.filter(category="financing", milestone="work-end", nature="cite").delete()
class Migration(migrations.Migration):
dependencies = [
('visit_report', '0050_add... | [
"norman@xael.org"
] | norman@xael.org |
0ef74428d763b21c1f13e563f623565510db01d0 | a3c662a5eda4e269a8c81c99e229879b946a76f6 | /.venv/lib/python3.7/site-packages/pylint/test/functional/star_needs_assignment_target_py35.py | 58e43dbacb50b64cee73eb2d348f19ea84d2a1ee | [
"MIT"
] | permissive | ahmadreza-smdi/ms-shop | 0c29da82c58b243507575672bbc94fb6e8068aeb | 65ba3f3061e2ac5c63115b08dadfe7d67f645fb6 | refs/heads/master | 2023-04-27T19:51:34.858182 | 2019-11-24T20:57:59 | 2019-11-24T20:57:59 | 223,616,552 | 6 | 2 | MIT | 2023-04-21T20:51:21 | 2019-11-23T16:09:03 | Python | UTF-8 | Python | false | false | 445 | py | """
Test PEP 0448 -- Additional Unpacking Generalizations
https://www.python.org/dev/peps/pep-0448/
"""
# pylint: disable=superfluous-parens
UNPACK_TUPLE = (*range(4), 4)
UNPACK_LIST = [*range(4), 4]
UNPACK_SET = {*range(4), 4}
UNPACK_DICT = {'a': 1, **{'b': '2'}}
UNPACK_DICT2 = {**UNPACK_DICT, "x": 1, "y": 2}
UNPACK... | [
"ahmadreza.smdi@gmail.com"
] | ahmadreza.smdi@gmail.com |
f2e355dfe0f62b71a7bc35dd20e268a5f7c5387a | 6ceeb3adb08da8754f59a117f39d401948988f0a | /spark/datadog_checks/spark/config_models/defaults.py | 30ebbb0df826f22f540c8c68a8b26011fb804c1b | [
"BSD-3-Clause",
"BSD-3-Clause-Modification",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LGPL-2.1-only",
"LGPL-3.0-only",
"CC0-1.0",
"Unlicense",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Smartling/integrations-core | 794c3822f05c772c7e36fdde8b68c8c3284e71e3 | 79088364600aa8f06ec38500800f3803db77feed | refs/heads/master | 2023-04-15T14:21:50.017308 | 2023-04-11T20:13:26 | 2023-04-11T20:13:26 | 159,552,127 | 0 | 1 | BSD-3-Clause | 2023-04-07T16:38:06 | 2018-11-28T19:14:55 | Python | UTF-8 | Python | false | false | 4,552 | py | # (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
# This file is autogenerated.
# To change this file you should edit assets/configuration/spec.yaml and then run the following commands:
# ddev -x validate config -s <INTEGRATION_NAME>
# ddev -x va... | [
"noreply@github.com"
] | Smartling.noreply@github.com |
1b41f116c60d3c8d155ed5e0725cee3fe36d6003 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_10979.py | 047db6f3b4fa315907783783e7952cbd8d5c97a1 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,841 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
a27e6fda0829bcf2949b2f4b94f7d4b701045abb | 1ec1e418fc5c9aac055c9218f1074332adf1e720 | /rand_param_envs/gym/spaces/multi_discrete.py | ed68170ee4f98ee8e0c3e89670daccd81b829023 | [] | no_license | CHEN-yongquan/mier_public | 344e34137343aa564b261c7125edac3b3ff10eb0 | af56fa84811dc7a697feb1b9dff01836d2148810 | refs/heads/master | 2022-10-15T13:21:35.198458 | 2020-06-12T08:22:16 | 2020-06-12T08:22:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,827 | py | import numpy as np
from rand_param_envs import gym
from rand_param_envs.gym.spaces import prng, Discrete, Box
from rand_param_envs.gym.error import Error
class MultiDiscrete(gym.Space):
"""
- The multi-discrete action space consists of a series of discrete action spaces with different parameters
- It can... | [
"russellm@berkeley.edu"
] | russellm@berkeley.edu |
2f21c748d4601d3ee19276f8b0c2227ee5efcd28 | 88030f69f438cbeed773d144949c00859a447a52 | /tests/delimited_file_utils/test_delimited_file_utils.py | a0a223117aa766b4de1fbb2e21a722e85ac8d3d9 | [] | no_license | ryanGT/krauss_misc | 05f5845e9915e522cb595b165e81b580019969db | d693dfd19a42ba893a0200630a0f3435711666ee | refs/heads/main | 2022-09-27T22:57:06.738155 | 2022-09-02T14:51:13 | 2022-09-02T14:51:13 | 240,044 | 24 | 16 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | import delimited_file_utils
import glob
from numpy import array
files = glob.glob('email_update_grades_test*.csv')
good_labels = array(['Group Name','Content/Progress','Clarity','Writing','Apparent Effort','Overall Grade','Notes'])
passes = []
failures = []
for curfile in files:
curarray = delimited_file_utils... | [
"ryanlists@gmail.com"
] | ryanlists@gmail.com |
83b98e9a60f3fc990acabf8240a72eb92b301126 | 4036b33e022b3ad7e631ee097c6abc6ae7dcc890 | /rhea/system/memmap/wishbone.py | 3f41aa3a374d1a076e7be84aa6575ab4014e427d | [
"MIT"
] | permissive | hgomersall/rhea | 5490e463f492c7375fd40c00a4a9d585eac878c1 | 5c9f0139091df95ea824884ed7c287c5992cf472 | refs/heads/master | 2020-12-25T08:37:06.346994 | 2016-02-25T12:31:02 | 2016-02-25T12:31:02 | 52,529,794 | 1 | 0 | null | 2016-02-25T14:13:35 | 2016-02-25T14:13:35 | null | UTF-8 | Python | false | false | 12,140 | py | #
# Copyright (c) 2014-2015 Christopher L. Felton
#
from __future__ import absolute_import
from myhdl import (Signal, intbv, always, always_seq, always_comb,
instance, instances, concat, enum, now)
from ..glbl import Global
from . import MemoryMapped
from . import Barebone
class Wishbone(MemoryM... | [
"chris.felton@gmail.com"
] | chris.felton@gmail.com |
5df4cb7698d616222b871122a1bd80d5a80a62ff | d5e279c64f7615cd14d82c59aca2ee17eef1c8f1 | /scripts/deploy-layer.py | 6830a56542322f06b17f3d9bd32892a6ce3a7194 | [] | no_license | kylebarron/cogeo-layer | d075ca12b95edf4731d89c2d68a548ec68c8a881 | f04d14ebf99dfcfa71ae5584a818956e91e8f0fa | refs/heads/master | 2021-04-18T14:25:31.567363 | 2020-03-24T03:08:34 | 2020-03-24T03:08:34 | 249,553,335 | 5 | 0 | null | 2020-03-23T23:25:28 | 2020-03-23T21:58:23 | null | UTF-8 | Python | false | false | 2,576 | py |
import click
import hashlib
from boto3.session import Session as boto3_session
AWS_REGIONS = [
"eu-central-1",
"us-east-1",
"us-east-2",
"us-west-1",
"us-west-2",
]
def _md5(fname):
hash_md5 = hashlib.md5()
with open(fname, "rb") as f:
for chunk in iter(lambda: f.read(4096), b"... | [
"vincent.sarago@gmail.com"
] | vincent.sarago@gmail.com |
f9cfddcd3da8437fd43cbe1a9e37a49a32c199a0 | 0b406d2c041c76d9ef8789539e0e3af9a50e3613 | /Extract_refactor/WebScrapy/manager.py | 37fd76cb4a79a41b493987d4e7ca799edc0f8929 | [] | no_license | aise17/ExtractPdf | 221b47c5f0e75a823284b4f52981917962042592 | 7e1bfbc759cb7473d727574e5df78eaaac9fa8a4 | refs/heads/master | 2022-02-26T06:39:14.265795 | 2019-06-04T15:01:39 | 2019-06-04T15:01:39 | 184,154,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | from Extract_refactor.settings import IMAGENES_PATH
from .web_info import WebInfo
import unicodecsv as csv
class Manager(WebInfo):
def __init__(self, ruta_entrada):
#self.resultados = {'status': 200, 'alexa': u'\n\n4,484,464 ', 'language': u'es-es', 'url': 'http://todosaintseiya.com', 'platform': ['p... | [
"sergio.martinez-g@hotmail.com"
] | sergio.martinez-g@hotmail.com |
7d1a8e1308c251ab8962fd8e55d64f1b6591f4cd | 0c0168a4676bce7453836a7509e7133044aa8975 | /byceps/services/shop/order/models/action.py | a522c5bf75985a56a31b5bdbfde5a96a124daac9 | [
"BSD-3-Clause"
] | permissive | byceps/byceps | 0aad3c4d974f76c6f8c3674d5539a80c9107b97a | eaee2b7fdc08c76c16ddf7f436110e0b5f1812e5 | refs/heads/main | 2023-09-01T04:03:13.365687 | 2023-09-01T03:28:18 | 2023-09-01T03:28:18 | 40,150,239 | 44 | 23 | BSD-3-Clause | 2023-05-16T18:41:32 | 2015-08-03T22:05:23 | Python | UTF-8 | Python | false | false | 565 | py | """
byceps.services.shop.order.models.action
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2014-2023 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from dataclasses import dataclass
from typing import Any
from uuid import UUID
from byceps.services.shop.article.models import Ar... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
2e0c98154ff9965f3b78d4ec24114cbfb88b9b4a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/209/32491/submittedfiles/swamee.py | 4e0b7ced6a958750f520d5f31ba92b776a1694b6 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
f=float(input('digite o valor f:'))
L=float(input('Digite o valor L:'))
Q=float(input('Digite o valor Q:'))
DELTAH=float(input('Digite o valor DELTAH:'))
V=float(input('digite o valor V:'))
g=9.81
e=0.000002
D=((8*f*L*(Q**2))/((math.pi**2)*g*DELTAH))**(1/5)
Re... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f111a9ff3e1407a7ee0c4f7393192a0f7880fc4e | 634fb5fe10e8f944da44ab31896acc8471ec5f18 | /hq_env/lib/python2.7/site-packages/Cython/Compiler/Options.py | 764c8868c7411e3a9fde58f88e3235ecd4146f9c | [] | no_license | dimagi/commcarehq-venv | 277d0b6fada24f2edd54f74850267201153412a7 | 2c52e3fb0f974cae5c5feaea1d5de851fe530c80 | refs/heads/master | 2021-01-18T14:05:47.931306 | 2015-07-20T10:10:41 | 2015-07-20T10:10:41 | 11,513,855 | 1 | 1 | null | 2015-07-20T10:10:41 | 2013-07-18T21:09:22 | Python | UTF-8 | Python | false | false | 8,499 | py | #
# Cython - Compilation-wide options and pragma declarations
#
# Perform lookups on builtin names only once, at module initialisation
# time. This will prevent the module from getting imported if a
# builtin name that it uses cannot be found during initialisation.
cache_builtins = True
embed_pos_in_docstring = Fal... | [
"dmyung@dimagi.com"
] | dmyung@dimagi.com |
5bbf71483d224e876d127a59536281a42b89502e | e28547b5bbdc00c2ebeba2f7f438570f2e050925 | /app.py | a1b73e96a96c87a6bdcf8c5ab10d0dff258c2a8d | [] | no_license | bridgecrew-perf7/bird-classification-deploy | e0ce0dc6eec0b5fe15c03fbfee9969676d2fbb96 | e7dae0ae9dfea8b30db2e83c4859dee290b5a719 | refs/heads/main | 2023-08-07T13:24:04.693214 | 2021-09-21T13:32:15 | 2021-09-21T13:32:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,782 | py | from __future__ import division, print_function
import torch
import torchvision.transforms as tt
from PIL import Image
import torch.nn as nn
from flask import Flask, redirect, url_for, request, render_template
from torchvision.transforms import transforms
from werkzeug.utils import secure_filename
# coding=utf-... | [
"noreply@github.com"
] | bridgecrew-perf7.noreply@github.com |
30017f7b526335a428e035841353278b9d337ae7 | 997180420fabdd6f730f4673dba1f979bd91e699 | /apps/goods/t1.py | 70106faaf0574a7c9f66d963b3cb6942a4f54227 | [] | no_license | bwisgood/drf20F_api_pro | 66bb17479594247a2e74e4eef7434cdaf8b54de9 | ff4579ce8eaca7071ea27b5d071a58dbf63c2385 | refs/heads/master | 2020-03-27T02:52:28.973201 | 2018-09-20T05:01:40 | 2018-09-20T05:01:40 | 145,823,482 | 1 | 0 | null | 2018-08-23T14:00:24 | 2018-08-23T08:20:25 | JavaScript | UTF-8 | Python | false | false | 243 | py | class A:
a = 1
def __init__(self):
b = 2
def __repr__(self):
return "123"
def __str__(self):
return "456"
if __name__ == '__main__':
a = A()
print(repr(a))
print(a.__repr__())
print(a) | [
"857464370@qq.com"
] | 857464370@qq.com |
588728ae141a1688b6adb628431a81037164d133 | 7b437e095068fb3f615203e24b3af5c212162c0d | /enaml/qt/qt_time_selector.py | 44ed2090c63a693722eb360745f4e4e37af26edb | [
"BSD-3-Clause"
] | permissive | ContinuumIO/enaml | d8200f97946e5139323d22fba32c05231c2b342a | 15c20b035a73187e8e66fa20a43c3a4372d008bd | refs/heads/master | 2023-06-26T16:16:56.291781 | 2013-03-26T21:13:52 | 2013-03-26T21:13:52 | 9,047,832 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | [
"sccolbert@gmail.com"
] | sccolbert@gmail.com |
b6e09b6f677b13f8d2e6d045a590591ef79b6925 | 744594f30c5e283f6252909fc68102dd7bc61091 | /2017/1/1b_solution.py | 8d5ba5bf554a303bca904549ec99af4e75da9fed | [
"MIT"
] | permissive | vScourge/Advent_of_Code | 84f40c76e5dc13977876eea6dbea7d05637de686 | 36e4f428129502ddc93c3f8ba7950aed0a7314bb | refs/heads/master | 2022-12-20T22:12:28.646102 | 2022-12-15T22:16:28 | 2022-12-15T22:16:28 | 160,765,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | """
Answer = 1284
"""
data_str = '777369918566892252531423352147462949323188134548491778234686743465124264827776969933481352875314876228451553392354437187982554114927784151573517533779595866128824554647362856484733976811637293451433195772582928496194914867488329444256437378992938118194482715462839145925469892759928443... | [
"adam.pletcher@gmail.com"
] | adam.pletcher@gmail.com |
8bf73471333f3eb235cbd5e9d88bd4651ab99a8b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_256/ch13_2020_03_29_03_11_24_129259.py | c5dcd02a5b7f4db136ed8fd45890155019458445 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | def encontra_cateto(hip, c1):
c2=(hip^2-c1^2)^0,5
return c2 | [
"you@example.com"
] | you@example.com |
9c55db4b00565f4ffe3a2d50ced5d3e2220ced2e | 32cb0be487895629ad1184ea25e0076a43abba0a | /LifePictorial/top/api/rest/PictureUpdateRequest.py | b32556481ce925c61750073a18148e80e3b936fa | [] | no_license | poorevil/LifePictorial | 6814e447ec93ee6c4d5b0f1737335601899a6a56 | b3cac4aa7bb5166608f4c56e5564b33249f5abef | refs/heads/master | 2021-01-25T08:48:21.918663 | 2014-03-19T08:55:47 | 2014-03-19T08:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | '''
Created by auto_sdk on 2014-02-10 16:59:30
'''
from top.api.base import RestApi
class PictureUpdateRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.new_name = None
self.picture_id = None
def getapiname(self):
return 'taobao.pictu... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
ad86893227e8f1041ddb9867ea4cfab250892595 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/hvs/fwsvctask.py | 4f250857ab9257f44fe27e88483f3a978c5fe7c5 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 17,029 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
2157f5ad78c10962340a58bdd733a32257639f36 | 6e3d061f94468905841a918278a352d4e5df89a1 | /hashicorp_vault_client/test/test_body70.py | 4abc0cc541b05ec6a2c886617b334da9410acb06 | [
"Apache-2.0"
] | permissive | drewmullen/HAC | 179a4188e6e6ce3a36d480e45f238fd0901a710f | fb185804fd244366f8f8d01df22835b3d96e7512 | refs/heads/master | 2020-08-03T12:13:08.785915 | 2019-10-03T18:33:04 | 2019-10-03T18:33:04 | 211,749,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | # coding: utf-8
"""
HashiCorp Vault API
HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. # noqa: E501
OpenAPI spec version: 1.2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
... | [
"drew@nebulaworks.com"
] | drew@nebulaworks.com |
bc31123ae5db9b82f65e97d1036afeff59cb28f4 | 5af41b5507a535cc228673f05c5da215c93a76b5 | /practice/puzzles/medium/Flood fill Example.py | 79d3877a13788695f417bc1a52f1ef3d83e793f1 | [] | no_license | mithrantir/CodinGame | d308f50f3d74bb105e678d0b66e439c68b07f9a1 | 306ead31859b3b499019adadbdd41631781ad192 | refs/heads/master | 2022-07-14T20:41:05.380179 | 2020-05-17T21:15:15 | 2020-05-17T21:15:15 | 259,610,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,169 | py |
with open('000.txt') as f:
read_data = f.read().split('\n')
w = int(read_data[0])
h = int(read_data[1])
# w = int(input())
# h = int(input())
alderaan = []
for i in range(h):
# alderaan.append([c for c in input()])
alderaan.append([c for c in read_data[2+i]])
tower = {}
for i in range(h):
for j in ra... | [
"christophoros.mouratidis@gmail.com"
] | christophoros.mouratidis@gmail.com |
9a7925334b208a1c4ede6feb518cced7303356b4 | fb0018545b1f0646a59a51522fd32ccbaf4c0bb7 | /py/escher/tests/test_urls.py | 1fd5806a34e1380e1a858f5be0f0e0a1b333f9ad | [
"MIT"
] | permissive | DD-DeCaF/escher | 083341268dad2195b402ae80391eb93e54b88365 | cd2c81bc62199f9349a9f24dd7a0a148fa6adc46 | refs/heads/master | 2022-07-24T18:49:55.835648 | 2020-02-15T14:48:52 | 2020-02-15T14:51:22 | 84,944,610 | 1 | 0 | NOASSERTION | 2018-10-08T08:50:49 | 2017-03-14T12:06:53 | JavaScript | UTF-8 | Python | false | false | 887 | py | from escher.urls import (
get_url,
get_filepath,
root_directory,
)
from escher.version import (
__version__,
__schema_version__,
__map_model_version__,
)
from os.path import join, exists
from pytest import raises
def test_online():
url = get_url('escher')
assert url == 'https://unpkg.c... | [
"zaking17@gmail.com"
] | zaking17@gmail.com |
d2309b65fbdf81233c3fec89a1b2055bfd35d8cb | d8761daf7bf2b75b9925b12450da2a6ea3d31140 | /tlbo/utils/rank_svm.py | c29c536605ebe543d3a59c20d0899f65957ca633 | [] | no_license | pyz2020/efficient-tlbo-DL-Model-Reoptimizations | 5dcc2c522d9430b4fab534689fd338fbfc6a6945 | dd2ed9c91b970e0ab4c0ed82382567ec0df6c42b | refs/heads/master | 2023-01-06T18:33:33.726527 | 2020-11-04T08:09:13 | 2020-11-04T08:09:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,459 | py | import itertools
import numpy as np
from scipy import stats
from sklearn import svm, linear_model, model_selection
def transform_pairwise(X, y):
"""Transforms data into pairs with balanced labels for ranking
Transforms a n-class ranking problem into a two-class classification
problem. Subclasses implement... | [
"1225646303@qq.com"
] | 1225646303@qq.com |
82575ef7f307733145700be6a98b158fd12278da | d0d1e07c984651f96bd9386d546c85c0341e46b2 | /scripts/kivy_experiments/importing/wombat2.py | 17307767b7aa1edc3ac0fe22fb3bb81f93eacf4a | [
"MIT"
] | permissive | timedata-org/timedata | 61cde905b1fe9eb60ac83ecbf5a5a2114793c45d | 3faac7450678aaccd4a283d0d41ca3e7f113f51b | refs/heads/master | 2020-04-11T12:03:57.962646 | 2019-06-09T10:05:16 | 2019-06-09T10:05:52 | 51,217,217 | 5 | 3 | null | 2016-09-18T16:20:43 | 2016-02-06T19:13:43 | C++ | UTF-8 | Python | false | false | 173 | py | from kivy.uix.label import Label
class Wombat2(Label):
def __init__(self, *args, **kwds):
super().__init__(*args, **kwds)
print('wombat2 constructed')
| [
"tom@swirly.com"
] | tom@swirly.com |
4ed252d7f3459a256fba7d6f46a04fdc456dec6c | 3d50f97420e7aa79be37cc238555ef2038064afb | /stocks/tests/models/test_HSGTCGHold.py | 5bc7b08ac0cbc7b9c39c326e5fcb5beff4924753 | [
"MIT"
] | permissive | tauruswang/wanggeService | d6948704f5e28c1603e864e32986cc91eaf816b2 | 7aa6687ece9a865930c5dbab506cad5955848457 | refs/heads/master | 2020-03-19T05:52:36.264023 | 2018-06-01T03:32:27 | 2018-06-01T03:32:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,490 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
@File : test_HSGTCGHold.py
Description :
@Author : pchaos
date: 2018-5-31
-------------------------------------------------
Change Activity:
18-5-31:
@Contact : p19992003#gmail.com
-----... | [
"drifthua@gmail.com"
] | drifthua@gmail.com |
d493fdc54449949f63febe3288ddf68ef1dfc048 | 2a948e27dc09d99090d09472f488e4a6224db621 | /main.py | 0f689793f528e5f7b5094863b68b81662992f154 | [] | no_license | hristo-grudev/expobankrs | a88da6f12f48f0f3705f08c66da1fa11132defdc | df935b0d28af115cc575d122870f80b4c4d0df82 | refs/heads/main | 2023-03-25T11:54:13.042713 | 2021-03-08T13:49:51 | 2021-03-08T13:49:51 | 345,671,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | from scrapy import cmdline
cmdline.execute("scrapy crawl expobankrs".split()) | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
0417c2835eac339494cbb1098e8e8fd018780afa | 8d86f0d90a36b97903d07455edb37611a6958832 | /Apps/users/migrations/0001_initial.py | d7bdc634de207e4003b00c5aec1e4d014aaca00a | [] | no_license | urimeba/diagnosticapp | 4615232224e61e513dcce6557197eeca9b9ece86 | 311bdadabe6c2883c6d7395963cd23c3d7ebca03 | refs/heads/main | 2023-01-21T07:48:04.510799 | 2020-11-30T21:28:21 | 2020-11-30T21:28:21 | 313,359,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,037 | py | # Generated by Django 3.1.3 on 2020-11-23 19:29
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_m... | [
"urimeba511@gmail.com"
] | urimeba511@gmail.com |
7bb83d0baa185fe756143ee095e6f0fecca1c70b | dafafb8f65cd93dd1f6567d9b8e431e31f19ae68 | /dms/views/apply/music.py | de272d9f96fe77147c3b2527b8dad48277fe174a | [
"MIT"
] | permissive | SangminOut/DMS-Sanic | 7fb877b2a772de808b7391428e151b2a2645c59d | bbb65c584711fa23dbf0455300307c2acceba013 | refs/heads/master | 2020-06-15T06:11:33.116199 | 2019-07-14T12:57:11 | 2019-07-14T12:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from sanic.request import Request
from sanic.views import HTTPMethodView
class MusicApplyView(HTTPMethodView):
def get(self, request: Request, weekday: int):
"""
Response Music Apply Status
"""
pass
def post(self, request: Request, weekday: int):
"""
Apply Musi... | [
"python@istruly.sexy"
] | python@istruly.sexy |
24430bb2f438aace2477e6ae54cfe4c876848f5c | 4dd695521343d56ff943e8c1768343d7680714e3 | /experiments/scripts_auto_closedset_ynoguti/config_SVM_128_fold10.py | f5343d3ddb38f0516fe592dabbc19c413e186cf9 | [] | no_license | natharb/environment | ea659ee541f6473e92b5b30c549e52b66f47b280 | 86e6cee6e01d2370abeb7c55a2c8a15001735919 | refs/heads/master | 2021-09-28T02:39:02.222966 | 2018-11-13T12:03:34 | 2018-11-13T12:03:34 | 139,762,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
#Nathália Alves Rocha Batista (nathbapt@decom.fee.unicamp.br)
import sys
sys.path.insert(0, '.')
import bob.bio.spear
import bob.bio.gmm
import numpy
import scipy.spatial
temp_directory = './results/closedset_ynoguti/SVM/128/fold_10/temp/'
result_directory = './r... | [
"nathbapt@decom.fee.unicamp.br"
] | nathbapt@decom.fee.unicamp.br |
de9de4589510affd0dcae62be57fd19a0178ca96 | 2baf095631192604a2aabdeeb2aa230b4229076c | /benchmark/plot.py | ce577c556d017b0073c4627b5c3a452d4c50a29d | [] | no_license | ximitiejiang/machine_learning_algorithm | 14ea7cf991381375b6cbe34030a477e6a949abe1 | a26c64a561985444c1fc23db4ab298af255d1177 | refs/heads/master | 2020-03-26T23:02:10.614960 | 2019-12-05T14:54:49 | 2019-12-05T14:54:49 | 145,505,075 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,736 | py | import progressbar
#from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import matplotlib.cm as cmx
import matplotlib.colors as colors
import numpy as np
#from mlfromscratch.utils.data_operation import calculate_covariance_matrix
#from mlfromscratch.utils.data_operation import calculate_correlation... | [
"ximitiejiang@163.com"
] | ximitiejiang@163.com |
7fa07c81e77c3c7452bffd7ef527182c0b399ad3 | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/host_internet_scsi_hba_authentication_capabilities.py | c35666aac4c0338cccda1bb6bc8f959b7d9f3d45 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def HostInternetScsiHbaAuthenticationCapabilities(vim, *args, **kwargs):
'''The authentic... | [
"jmb@pexip.com"
] | jmb@pexip.com |
5ae62e7a2aebbe4228d9013bd093f34148deefa5 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/nanachi_20200619190147.py | 86f02fde6c3e6677051477be28e1a4ea19c0aee3 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import telebot
bot = telebot.TeleBot('776550937:AAELEr0c3H6dM-9QnlDD-0Q0Fcd65pPyAiM')
@bot.message_handler(content_types=['text'])
def send_text(message):
if message.text[0].lower() == "н" and :
bot.send_message(message.chat.id, message.text + message.text[1:] )
bot.polling()
def c | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
f6ce243146b5a953f28c66da59306e9142735527 | bad0f9497e549d729d342f84d7fae197cccdd198 | /docs/source/conf.py | 77b14d6ed6f15026ed9dce76aebf1bae589ece6e | [
"BSD-3-Clause"
] | permissive | talpor/django-activity-stream | 2f900dc95561d9bdaf23934463524c68bae567de | 8348bec4ee80be2cc19aa17932ecaf81f6df9def | refs/heads/master | 2021-01-15T23:02:45.341247 | 2018-05-17T18:50:50 | 2018-05-17T18:50:50 | 32,185,029 | 0 | 0 | null | 2015-03-13T22:55:08 | 2015-03-13T22:55:06 | Python | UTF-8 | Python | false | false | 5,763 | py | # -*- coding: utf-8 -*-
#
# Django Activity Stream documentation build configuration file, created by
# sphinx-quickstart on Sat Oct 1 12:35:29 2011.
#
# 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
# autogenerate... | [
"justquick@gmail.com"
] | justquick@gmail.com |
5ece19536166f0b866ad549915f7002b119a6b49 | 1b3e62ac5655fbcbb7cf95724354c8e69d487745 | /HSE WEEK 5/HSE 5 Task 31.py | c9619f61ea9d0944c84c7a376de659ef19fa3cc9 | [] | no_license | syth0le/HSE.Python | 7d97f38e9b57825b54ac2576b00731240eef227c | e9a15b1ed5e21d56281e4619a39198d5d2838f0b | refs/heads/master | 2021-01-14T17:35:30.427970 | 2020-03-24T17:23:30 | 2020-03-24T17:23:30 | 242,698,160 | 5 | 1 | null | 2020-03-23T19:41:20 | 2020-02-24T09:43:15 | Python | UTF-8 | Python | false | false | 167 | py | numList = input().split()
for i in range(0, len(numList), 2):
numList[i:i+2] = numList[i:i+2][::-1]
readylist = list(map(str, numList))
print(' '.join(readylist))
| [
"chdan565@gamil.com"
] | chdan565@gamil.com |
7180394060ae55aeb4c339d0562f330eaaf40bca | 56bf6c68e78257e887de9e5eae11fc6652ce7f06 | /bbdd/Scripts/bbdd/productos/migrations/0002_auto_20170313_1111.py | 971ae6caf6b0803bf878e97cde5caee4a2089a6a | [] | no_license | CarlosSanz81/bbdd | 1d1c670e16f0e8ee81fb929767d8f65b7361cbe3 | 3b1febaddfef93fffeb34c3970281e4a37d05146 | refs/heads/master | 2023-01-09T03:20:02.042514 | 2017-03-13T11:07:15 | 2017-03-13T11:07:15 | 84,815,195 | 0 | 1 | null | 2022-12-20T09:00:14 | 2017-03-13T10:45:00 | Python | UTF-8 | Python | false | false | 3,508 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-13 10:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('productos', '0001_initial'),
]
operations = [
migrations.RenameField(
... | [
"carlossanzgarcia81@gmail.com"
] | carlossanzgarcia81@gmail.com |
62c94db115f11585424e8df49b2baf70d5c8bc4d | 9a486a87e028303a551fbd0d1e1b6b650387ea14 | /propose/anim/me_send/human_skin.py | 23974e36ca1961c8edd87e9707c50518b46b0440 | [] | no_license | shanlihou/pythonFunc | 7b8e7064fddd4522e492c915c086cc6c5abc6eec | 646920256551ccd8335446dd4fe11aa4b9916f64 | refs/heads/master | 2022-08-24T20:33:12.287464 | 2022-07-21T12:00:10 | 2022-07-21T12:00:10 | 24,311,639 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py |
skin = [
('head', (174, 229), 'me.png', True, True, 0.2),
('upper_arm1', (11, 56), 'all.png', True, True, 0.2),
('lower_arm1', (11, 59), 'all.png', True, True, 0.2),
('upper_arm2', (9, 60), 'all.png', True, True, 0.2),
('lower_arm2', (8, 60), 'all.png', True, True, 0.2),
('upper_leg1', (11, 58)... | [
"shanlihou@gmail.com"
] | shanlihou@gmail.com |
a99808919eadfeaef81265b7cda8db9b9fd19fe4 | b834509b4d3bf3b9161c3ac9ea2984af17bebf5e | /icvUI/dbsession/panel.py | de24cb4c4d427413ea39deb950f953065b7ee523 | [] | no_license | RichardZhong/meiduo | a338dc6b78da71df60ebff7827c5ba6225081650 | 4d530b4870d3353daaf4b1505998156595055073 | refs/heads/master | 2020-08-22T12:12:07.870793 | 2018-09-26T03:26:49 | 2018-09-26T03:26:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,861 | py | from icvUI.dbsession import *
# 获取属于面板功能的camera
def query_panel_camera():
try:
conn = mc.connect(**fs_icv_db)
cursor = conn.cursor(dictionary = True)
query_sql = "SELECT panel_ori.camera_id,description,ori_data FROM camera,panel_ori WHERE FIND_IN_SET('panel',application) AND panel_ori.came... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
a7c4f424709c906decef7ac3409403229846dd1c | c77a40408bc40dc88c466c99ab0f3522e6897b6a | /Programming_basics/Exercise_7/AgencyProfit.py | a3938967800366d45453b1a08b8b42eed96dad4e | [] | no_license | vbukovska/SoftUni | 3fe566d8e9959d390a61a4845381831929f7d6a3 | 9efd0101ae496290313a7d3b9773fd5111c5c9df | refs/heads/main | 2023-03-09T17:47:20.642393 | 2020-12-12T22:14:27 | 2021-02-16T22:14:37 | 328,805,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | name = input()
elder_tickets = int(input())
child_tickets = int(input())
elder_ticket_price = float(input())
fee = float(input())
elder_fin_price = elder_ticket_price + fee
child_fin_price = elder_ticket_price * 0.3 + fee
total = elder_tickets * elder_fin_price + child_tickets * child_fin_price
profit = total * 0.2
... | [
"vbukovska@yahoo.com"
] | vbukovska@yahoo.com |
1986344b43c648c00039b97711e2dc0504351d08 | 15e4ea46e2b1944add82746c4b3369184550af1b | /4 Turtles/Exercises/12.py | d1f03e57e3a9db7631b7632e03de692aced0d777 | [] | no_license | eduardogomezvidela/Summer-Intro | 53204a61b05066d8b8bc1ef234e83e15f823934d | 649a85b71a7e76eade3665554b03ca65108c648b | refs/heads/master | 2021-04-29T13:34:26.873513 | 2018-02-16T13:35:48 | 2018-02-16T13:35:48 | 121,754,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | import turtle
alex=turtle.Turtle()
print(type(alex))
| [
"eduardogomezvidela@gmail.com"
] | eduardogomezvidela@gmail.com |
74707c9d2c81498ed5fdb4c8f86098f7a2885d48 | a31de016611f3b4efc7a576e7113cad1a738419b | /2017/turtle_grafik/101computing.net/turtle_clock.py | 807e976a1aea285185ccdd4507415e444013ccf9 | [] | no_license | Ing-Josef-Klotzner/python | 9d4044d632672fff966b28ab80e1ef77763c78f5 | 3913729d7d6e1b7ac72b46db7b06ca0c58c8a608 | refs/heads/master | 2022-12-09T01:40:52.275592 | 2022-12-01T22:46:43 | 2022-12-01T22:46:43 | 189,040,355 | 0 | 0 | null | 2022-12-01T19:52:37 | 2019-05-28T14:05:16 | Python | UTF-8 | Python | false | false | 2,072 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
"""
Created on Mon Sep 25 23:16:54 2017
@author: josef
"""
import turtle, datetime, time
myPen = turtle.Turtle()
myPen.shape("arrow")
myPen.tracer(0)
myPen.speed(0)
myPen.shapesize(.5,1)
turtle.delay(0)
myPen.... | [
"josef.klotzner@gmail.com"
] | josef.klotzner@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.