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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80a8ad40352c21f370fe34ef623717fcd0fb0e12 | a6894d17fdbceb56d4364f0e279d03b16a181396 | /working-env/lib/python2.5/TurboGears-1.0.2.2-py2.5.egg/turbogears/i18n/data/gl_ES.py | cd66c622a6504223bf630350451cb5556c01c232 | [] | no_license | thraxil/gtreed | c1c5a19178c1f50ff5e61887b13ff7b004da1d25 | ca228848364edb204b15a7411fd6192379781c78 | refs/heads/master | 2020-04-18T03:02:15.468044 | 2008-12-10T20:02:12 | 2008-12-10T20:02:12 | 88,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # Formatting configuration for locale gl_ES
languages={'gl': 'galego'}
countries={'ES': u'Espa\xf1a'}
months=['Xaneiro', 'Febreiro', 'Marzo', 'Abril', 'Maio', u'Xu\xf1o', 'Xullo', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Decembro']
abbrMonths=['Xan', 'Feb', 'Mar', 'Abr', 'Mai', u'Xu\xf1', 'Xul', 'Ago', 'Set', ... | [
"anders@columbia.edu"
] | anders@columbia.edu |
234fe0b3f16df5e57da1016934fe2f8075019def | 2a31c353c77acc1f134780d81d1be9d7eedfaf75 | /sampleapp/urls.py | 34eb58e25b776a19ee4244acc8478f05ce18ee7d | [] | no_license | CCCodes/Simple-Django-App | 9eb43cd1eca40f031fa4f592a97a632fe892521b | f65f2fecaaf352f01dd9ee6580fc017024eff6bd | refs/heads/master | 2020-03-22T02:35:27.957759 | 2018-07-02T02:23:32 | 2018-07-02T02:23:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from django.conf.urls import url
from django.contrib import admin
from django.urls import path, include
from sampleapp import views
app_name = "sampleapp"
urlpatterns = [
path('admin/', admin.site.urls),
url(r'^login/$', views.login, name='login'),
url(r'^login_failed/$', views.login_failed, name='login_... | [
"caitlinchou@gmail.com"
] | caitlinchou@gmail.com |
d3f138c72c0428b9ca0d2101a5a8994f16946352 | 19b9b6062c491060a63078b5b9947deb4e4d132b | /Checker/SignalCheck.py | 2cc1b065fafc01542c5779027af26776930e7c0d | [] | no_license | JefferyPaul/StrategyAnalyzer | bcd8baed306ab68f829143025db40178181d229b | 2c7dfc8d615cc8433df0b1108ecbb39b929e0ddc | refs/heads/master | 2020-04-07T20:11:41.002909 | 2018-09-10T01:04:39 | 2018-09-10T01:04:39 | 158,678,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,337 | py | import os
import pandas as pd
from datetime import *
from Checker.getConfig import get_config
from DataManager import get_data_path
from Shower.BandShower import BandShower
from Shower.TargetPositionShower import TargetPositionShower
def set_start_date(str_start):
if len(str_start) == 0:
start_date = datetime(2000... | [
"595837423@qq.com"
] | 595837423@qq.com |
e3f22ef6f52e667dd7bb0c49d12ce580026b23a1 | 56a0762c741bcac3ab1172eb6114a9e59a48a5df | /mensajes/urls.py | c121166b0614ecbba8e0d369dfd323fc6757e6d3 | [
"MIT"
] | permissive | jjmartinr01/gauss3 | 54af1735a035a566f237d8e0fd9a6fe4447845a2 | 41a23d35c763890d8f729c9d63ac073673689400 | refs/heads/master | 2023-08-23T06:40:51.033857 | 2023-08-08T11:50:50 | 2023-08-08T11:50:50 | 171,710,013 | 1 | 0 | MIT | 2023-02-15T18:43:56 | 2019-02-20T16:35:03 | HTML | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
from django.urls import path
from . import views
urlpatterns = [
path('correo/', views.correo),
path('responder_mensaje/', views.responder_mensaje),
path('mensaje_importante/', views.mensaje_importante),
path('enviados/', views.enviados),
path('recibidos/', views.recibidos)... | [
"jmar0269@gmail.com"
] | jmar0269@gmail.com |
fbeb3df0ad93d859ac3ddaaaa8cf30f6e5c85e3f | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /classes/_torsion5.py | 83b99fba600d303db2edd39535fc5154b743f3b9 | [] | 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 | 967 | py | from xcp2k.inputsection import InputSection
from _point39 import _point39
class _torsion5(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Atoms = None
self.POINT_list = []
self._name = "TORSION"
self._keywords = {'Atoms': 'ATOMS'}
self._repeated_... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b23442ddc1decb7f8b5ac16595474fb0958b92f7 | 26605ec8a8bdd64a45af7d444d097d9e2f832dc9 | /electrum_xazab/plugins/keepkey/cmdline.py | d9c0b09fa26ff935158f1a8c786bcf62bd7adc2b | [
"MIT"
] | permissive | nunumichael/electrum-xazab | b67f821fd4a19e924d8ad902f076223df9b7511f | f128c765f451b418a418f9cd8b8e24fd8f66df74 | refs/heads/master | 2023-05-05T05:30:03.935745 | 2021-05-26T19:12:47 | 2021-05-26T19:12:47 | 370,091,240 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from electrum_xazab.plugin import hook
from .keepkey import KeepKeyPlugin
from ..hw_wallet import CmdLineHandler
class Plugin(KeepKeyPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class):
return
keystore.han... | [
"71531505+xazab@users.noreply.github.com"
] | 71531505+xazab@users.noreply.github.com |
a61fb1cc5cb3816c0998f5905ac5942446afa481 | f246b414cce8687d6e5d1bb77cd94132b89580a2 | /commerce/auctions/migrations/0001_initial.py | 2a4e4b16150603161e70e2399aa01a2c0e0217c6 | [] | no_license | thewolfcommander/cs50-web | edbccd29b0b649852c7af73d5ecba4f51fa47ad3 | beead0967d36ef398b699601c8ebae646827556d | refs/heads/master | 2022-12-23T08:03:52.729833 | 2020-10-01T14:14:31 | 2020-10-01T14:14:31 | 300,309,278 | 2 | 2 | null | 2020-10-01T14:29:44 | 2020-10-01T14:29:42 | null | UTF-8 | Python | false | false | 5,777 | py | # Generated by Django 3.1 on 2020-09-06 02:37
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"nstu778@aucklanduni.ac.nz"
] | nstu778@aucklanduni.ac.nz |
6b4bbf999b1e3971e8818a0b461d50577e4be523 | 3803bbc41c561b80d3ff6b79d45f00a29d868706 | /src/13ionetcdf/abinit.src | 51df8130fc9ba981594670600ac33c9a5c41ecc4 | [] | no_license | RADI-ux/abinit-cmake | 820cc3d6887b9e57b515d493c1a4cdc55e646dea | 54f0edb964b4f0153db532c7687db10e70ea80e2 | refs/heads/master | 2020-09-05T05:05:09.372589 | 2009-02-22T20:59:57 | 2009-02-22T22:43:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | src | # -*- Python -*-
#
# Copyright (c) 2005-2008 ABINIT Group (Yann Pouillon)
# All rights reserved.
#
# This file is part of the ABINIT software package. For license information,
# please see the COPYING file in the top-level directory of the ABINIT source
# distribution.
#
#
# Source files making up the 3ionetcdf librar... | [
"ondrej@certik.cz"
] | ondrej@certik.cz |
d6caa39c10d52e910422dd0d943485dcab3e9a75 | e5799f58d30361dd783f2932474c86cb7b0bbab0 | /calculator/views.py | 7a272276e19d3f6cd0deeeca93028fab19865b45 | [] | no_license | Shekharnunia/simple-calculator | a28aacfede97e9022bc7e9e59b278b8e62a681a3 | 006c8196acd5284e28cbe451ab5a5b0314975378 | refs/heads/master | 2022-11-18T05:43:32.816169 | 2020-07-20T11:28:51 | 2020-07-20T11:28:51 | 281,097,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | import operator
from django.shortcuts import render
from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
class CalculatorAPIView(APIView):
def post(self, request, *args, **kwargs):
print(request.data)
value1 = int(request.data.get... | [
"shekharnunia@gmail.com"
] | shekharnunia@gmail.com |
f66ad320b398c7d248337244ae82393096b99540 | 268c588de53d48f2e48c694535e27c1be104229d | /Adapter_Pattern.py | b5fd93232e521c89f70478c8b19fe8abe2a22854 | [] | no_license | wax8280/Python_Design_Patterns | def64b1662924807946a9847ac1bf0437382a716 | 88fb08ad3605fb06166bf45d814f5b85a37364b5 | refs/heads/master | 2021-01-11T01:21:14.964828 | 2016-10-14T15:40:42 | 2016-10-14T15:40:42 | 70,715,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # coding:utf-8
class Synthesizer:
def __init__(self, name):
self.name = name
def __str__(self):
return 'the {} synthesizer'.format(self.name)
def play(self):
return 'is playing an electronic song'
class Human:
def __init__(self, name):
self.name = name
def __str_... | [
"wax8280@163.com"
] | wax8280@163.com |
7d4aff7df2367bb22dc9f41b31a08713bd0699f1 | d190750d6cb34e9d86ae96724cf4b56a2f57a74a | /tests/r/test_penicillin.py | 0cb436b425b437de661d400636d1bc4084227041 | [
"Apache-2.0"
] | permissive | ROAD2018/observations | a119f61a48213d791de0620804adb8d21c2ad9fb | 2c8b1ac31025938cb17762e540f2f592e302d5de | refs/heads/master | 2021-09-24T04:28:02.725245 | 2018-09-16T23:06:30 | 2018-09-16T23:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.penicillin import penicillin
def test_penicillin():
"""Test module penicillin.py by downloading
penicillin.csv and testing shape of
extrac... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
70e519043cf0a431f68a0786fbad374223501e77 | 3da69696601b2b3ad7bc1285a5f0343c7eafea80 | /lc888.py | 9b44f944a4450fb681eae24b3aa24a73adda0b00 | [] | 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 | 390 | py | class Solution(object):
def fairCandySwap(self, A, B):
"""
:type A: List[int]
:type B: List[int]
:rtype: List[int]
"""
sum_a = sum(A)
sum_b = sum(B)
target = (sum_a + sum_b) / 2
diff = target - sum_b
set_a = set(A)
for b in B:
... | [
"michaelchouqj@gmail.com"
] | michaelchouqj@gmail.com |
f65794dc3bfb3a87865b42bd60309bdff9092190 | 28a462a28f443c285ca5efec181ebe36b147c167 | /tests/compile/basic/es2020/IterationStatement[0,0].LabelledEvaluation.spec | 24b97f4ffaca37ee1ec9e0e2e4054f282340c901 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaist-plrg/jstar | 63e71f9156860dc21cccc33a9f6c638dfee448ea | 1282919127ea18a7e40c7a55e63a1ddaaf7d9db4 | refs/heads/main | 2022-07-22T08:12:34.947712 | 2022-02-27T04:19:33 | 2022-02-27T11:06:14 | 384,045,526 | 6 | 4 | NOASSERTION | 2022-02-27T11:05:26 | 2021-07-08T07:53:21 | Python | UTF-8 | Python | false | false | 556 | spec | 1. Let _V_ be *undefined*.
1. Repeat,
1. Let _stmtResult_ be the result of evaluating |Statement|.
1. If LoopContinues(_stmtResult_, _labelSet_) is *false*, return Completion(UpdateEmpty(_stmtResult_, _V_)).
1. If _stmtResult_.[[Value]] is not ~empty~, set _V_ to ... | [
"h2oche22@gmail.com"
] | h2oche22@gmail.com |
c41f02c8804faa4da500fd7196ad6460a39b89d9 | 8d49683cd799ed66bc9dd197c197d1e1c7a73120 | /src/gamesbyexample/tutorialguess2.py | dc65f038f09cfaa639c5bba236608793939f3f78 | [
"MIT"
] | permissive | trujilloshane/PythonStdioGames | d2e53ec22121b30e4b5317e46ed685831492d9c3 | 83ac9cd367f688539b77f67f0d44433fc6fdcbdf | refs/heads/master | 2020-12-13T15:12:26.917070 | 2020-01-06T09:38:39 | 2020-01-06T09:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # Tutorial: Guess the Number, by Al Sweigart al@inventwithpython.com
# Part 2 of a tutorial to make a "Guess the Number" game, bit by bit.
# Try copying the code in this program on your own and running the
# program before moving on to part 3. (You don't have to copy the
# comments.)
import random
secretNumber = ra... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
919de8bda5555e026279ff964d9c8272e55f685d | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/performance_statistics_description.py | 0f598e45cec3f2d9bde0398e97bdd6052bb9f0e3 | [] | 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,056 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def PerformanceStatisticsDescription(vim, *args, **kwargs):
'''Data object to capture all... | [
"jmb@pexip.com"
] | jmb@pexip.com |
5774b8d69dcd3e00d299f03348bf1b4f69ab5b72 | 6a6d8c0c8ddd6f5a1c03788f35320dd4b82314ea | /yamtbx/command_line/resolution_shells.py | cf6f26cf672b843e46f52bd2e3242f51bb60570a | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"MIT"
] | permissive | nsls-ii-mx/yamtbx | b817a131a8f6f515db99bc1743f81218997ac4ed | 311cf5a20e27a035a9e89c2abcb3c7d5e3684d67 | refs/heads/master | 2021-01-11T12:05:38.166937 | 2017-01-24T16:26:44 | 2017-01-24T16:26:44 | 76,574,177 | 1 | 0 | null | 2016-12-15T16:00:06 | 2016-12-15T16:00:06 | null | UTF-8 | Python | false | false | 1,555 | py | # LIBTBX_SET_DISPATCHER_NAME yamtbx.resolution_shells
def run(d_max, d_min, nbins, power, quiet=False):
step = ( d_min**(-power) - d_max**(-power) ) / float(nbins)
start = 1./(d_max**power)
d_vals = map(lambda x: (start + x * step)**(-1./power), xrange(nbins+1))
if not quiet:
print "%d resolut... | [
"keitaroyam@users.noreply.github.com"
] | keitaroyam@users.noreply.github.com |
6dbd9a7835aecb05ef4225d9b2774b2348f87fd2 | 1b3c32f1de0b0fb88f181ae1e1f47f00fcea576f | /setup.py | 2e3c13130fccf12524868690d84853acdaa41aa7 | [
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unicode"
] | permissive | source-foundry/font-unicode | 0df33bda7774c926b1258e7003962a62ab2a1b4f | 74cc56f5674f41ee09f47f2c8f3dda0349a1ff73 | refs/heads/master | 2021-01-10T03:40:43.528760 | 2016-02-15T03:46:19 | 2016-02-15T03:46:19 | 43,691,845 | 8 | 2 | null | 2017-03-05T21:18:33 | 2015-10-05T15:08:31 | Python | UTF-8 | Python | false | false | 2,314 | py | import os
import re
from setuptools import setup, find_packages
def docs_read(fname):
return open(os.path.join(os.path.dirname(__file__), 'docs', fname)).read()
def version_read():
settings_file = open(os.path.join(os.path.dirname(__file__), 'lib', 'fontunicode', 'settings.py')).read()
major_regex = """... | [
"git.simpkins@gmail.com"
] | git.simpkins@gmail.com |
1269ca1daa7c5c39a3505ef9cf0ed5ba02d2c6ff | 09409b6910f7d58a28e46b90b111d5ff3d5442cc | /VSRTorch/Framework/Environment.py | ee43920616307bf06becbc22dbd67ab4f8913c6b | [
"MIT"
] | permissive | moyulization/VideoSuperResolution | 5600ae1cc0638226c3f5683b84e6731ba5e56f10 | dc8bf94aa65c1a4e92e6024ca77b402f5b252fcf | refs/heads/master | 2020-05-23T04:49:06.309103 | 2019-05-07T11:31:24 | 2019-05-07T11:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,557 | py | # Copyright (c): Wenyi Tang 2017-2019.
# Author: Wenyi Tang
# Email: wenyi.tang@intel.com
# Update Date: 2019/5/7 下午5:21
import logging
from pathlib import Path
import numpy as np
import torch
def _make_ckpt_name(name, step):
return '{}_ep{:04d}.pth'.format(name, step)
def _parse_ckpt_name(name):
if not n... | [
"twytwy12345@live.com"
] | twytwy12345@live.com |
4b7b32f5c4bdb6bfa3a50322f262394885ae6996 | 139af68b78734a6bc53bd942ffa05476baf3d71d | /Python Basic 2020/scholarship.py | 46bf7b78b9d1c70997de4b88288fd892fcd3cf19 | [] | no_license | MiroVatov/Python-SoftUni | 7fe3fc0a3928848c5317fb120f789c773bfc117e | 0d0d6f116281b4de8c413d254386e27d992d047b | refs/heads/main | 2023-08-24T09:44:31.261137 | 2021-10-18T14:04:03 | 2021-10-18T14:04:03 | 317,510,574 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | import math
income = float(input())
average_grades = float(input())
min_salary = float(input())
social_scholarship = math.floor(0.35 * min_salary)
scholarship = math.floor(average_grades * 25)
if income < min_salary:
if 4.5 >= average_grades > 5.50:
print(f'You get a Social scholarship {social_sc... | [
"noreply@github.com"
] | MiroVatov.noreply@github.com |
923b08f989cc5e5cf10261fb953a99ce009c5723 | 738b6d6ec4572f5848940b6adc58907a03bda6fb | /tests/pymcell4_positive/1910_get_molecule_ids_w_pattern/model.py | 4028ae43db75f8bc3d72eae558a1763e960ec613 | [
"Unlicense",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | mcellteam/mcell_tests | 09cd1010a356e0e07c88d7e044a73c5606c6e51a | 34d2d967b75d56edbae999bf0090641850f4f4fe | refs/heads/master | 2021-12-24T02:36:24.987085 | 2021-09-24T14:19:41 | 2021-09-24T14:19:41 | 174,733,926 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | #!/usr/bin/env python3
# WARNING: This is an automatically generated file and will be overwritten
# by CellBlender on the next model export.
import sys
import os
MODEL_PATH = os.path.dirname(os.path.abspath(__file__))
# ---- import mcell module located in directory ----
# ---- specified by system variable ... | [
"ahusar@salk.edu"
] | ahusar@salk.edu |
ae8e9c862609271c8b66204f40532e2e21281027 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyfile/pyfm-011/pyfmlight.py | 7ddadbd3b74d728a4c752e8270718342b39d2480 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | #!/usr/bin/env python
# 3D File Manager in Python OpenGL, light helper routines
#
#import math, sys, rand
#import gtk.gtkgl
from OpenGL.GL import *
from OpenGL.GLU import *
def light(self):
# Lighting properties.
#light_ambient = [0.0, 0.0, 0.0, 1.0]
#light_ambient = [1.0, 1.0, 1.0, 1.0]
l... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
a35fdea02255d765351560a273e9c3223a934f95 | 4293c8d2e0e8eb7d21e2706ecfdbbe6d80244f5d | /pfurl/tests/test_message.py | 2758baaaaefb60743929b3a867b21ba13d954cc3 | [
"MIT"
] | permissive | FNNDSC/pfurl | 52352a4c9085ee620e509bd5e0b20c82913e52ad | c37e57b5dc03a81a15e566f2d325a7dd1047ac10 | refs/heads/master | 2021-11-22T22:25:54.776531 | 2021-10-28T17:01:27 | 2021-10-28T17:01:27 | 87,982,205 | 1 | 10 | MIT | 2021-01-18T07:40:41 | 2017-04-11T21:45:59 | Python | UTF-8 | Python | false | false | 2,860 | py | from unittest import TestCase
from pfurl import Message
from pfurl import Colors
class TestMessage(TestCase):
def test_message_constructor(self):
message1 = Message()
message2 = Message()
message1.syslog(True)
message1(Colors.RED + Colors.WHITE_BCKGRND + 'hello world!\n' + Colors.... | [
"rudolph.pienaar@gmail.com"
] | rudolph.pienaar@gmail.com |
5b607d6b9cee4ca29ffb02c954d4974d9d659227 | eb297ff1e0011438fd184cc338b3fb86859b81c9 | /Chapter 2/2-09.py | f6650c9ed58648f9a33f971fed80805763e78249 | [] | no_license | mynameisbenzo/PythonCrashCourse | c73a4505d9cdfe4df78e3ed01adb3491debf8a9b | 831a9962a3c6cab53ecfdb1d2cceb0dd2d9c5a0a | refs/heads/master | 2021-04-12T08:13:51.772957 | 2018-05-02T05:54:57 | 2018-05-02T05:54:57 | 126,091,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # adding whitespace is fine, but what about taking whitespace out?
favLanguage = 'python '
# whether you see it or not, that space at the end of python is currently being printed
print(favLanguage)
# let's strip that space with rstrip()
favLanguage = favLanguage.rstrip()
# now instead of printing 'python ', we are c... | [
"lorhernandez@csumb.edu"
] | lorhernandez@csumb.edu |
358135f3c10986d829cb49c921930c45ce321063 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/negativeInteger/Schema+Instance/NISTXML-SV-IV-atomic-negativeInteger-minExclusive-1-1.py | b2bf10a8b4a038f05f850d22b1b89862949d679d | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 333 | py | from output.models.nist_data.atomic.negative_integer.schema_instance.nistschema_sv_iv_atomic_negative_integer_min_exclusive_1_xsd.nistschema_sv_iv_atomic_negative_integer_min_exclusive_1 import NistschemaSvIvAtomicNegativeIntegerMinExclusive1
obj = NistschemaSvIvAtomicNegativeIntegerMinExclusive1(
value=-99999999... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
7d7bef5c7b17b9b279306a74373faadcaf8172a8 | e20a786fb69b361e1ddfa509df63713371fa1eae | /examples/random_bot_example.py | eb37b882de7d027d8f75eefe133e8e5fa9a3bbe4 | [
"Apache-2.0"
] | permissive | greentec/ffai | d7fec6192c75f996c77f714cef7d76e06d44b0af | 3a966a395e5d48c94377cf8dd367897f205d3f9b | refs/heads/master | 2020-06-19T10:34:14.722778 | 2019-06-24T14:15:20 | 2019-06-24T14:15:20 | 196,679,040 | 1 | 0 | Apache-2.0 | 2019-07-13T04:42:58 | 2019-07-13T04:42:57 | null | UTF-8 | Python | false | false | 1,980 | py | #!/usr/bin/env python3
from ffai.core.game import *
from ffai.core.model import *
from ffai.ai.registry import register_bot, make_bot
import numpy as np
class MyRandomBot(Agent):
def __init__(self, name, seed=None):
super().__init__(name)
self.my_team = None
self.rnd = np.random.RandomSt... | [
"njustesen@gmail.com"
] | njustesen@gmail.com |
2c078cc28bf5d3b25dce2dc028c83c1da2334d13 | 7006366dffa1576d54d5b8e619de10d999f9ccd7 | /application.py | 12d8f3fe68f0a4783d6ab98688fc638405061705 | [] | no_license | gaolinjie/webeta | 47e01d98cf20cd892b5005048d9729480e3ead2c | 3038e36abda5118be2b1075ca93f57b79da370b9 | refs/heads/master | 2021-01-10T11:14:34.450441 | 2016-04-09T17:07:04 | 2016-04-09T17:07:04 | 53,676,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,246 | py | #!/usr/bin/env python
# coding=utf-8
#
# Copyright 2016 webeta
# cat /etc/mime.types
# application/octet-stream crx
import sys
reload(sys)
sys.setdefaultencoding("utf8")
import os.path
import re
import memcache
import torndb
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web... | [
"gaolinjie@gmail.com"
] | gaolinjie@gmail.com |
ce2033c9bbcab7449f71973ced2d77fe349b5e39 | d476c93aa2aecd253508da0cc35071e456199318 | /test_autoarray/plot/wrap/base/test_colorbar.py | 44e53778fc90d48d4852ab5580bf6399337c6ff2 | [
"MIT"
] | permissive | Jammy2211/PyAutoArray | 82916f3f5530f938786f61f870df353b26732e37 | 6639dd86d21ea28e942155753ec556752735b4e4 | refs/heads/main | 2023-08-19T10:51:05.520942 | 2023-08-14T09:12:15 | 2023-08-14T09:12:15 | 210,980,464 | 6 | 5 | MIT | 2023-09-13T14:07:39 | 2019-09-26T02:18:10 | Python | UTF-8 | Python | false | false | 1,601 | py | import autoarray.plot as aplt
import matplotlib.pyplot as plt
import numpy as np
def test__loads_values_from_config_if_not_manually_input():
colorbar = aplt.Colorbar()
assert colorbar.config_dict["fraction"] == 3.0
assert colorbar.manual_tick_values == None
assert colorbar.manual_tick_lab... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
c48fdcf193858cfb50927df777850acb30ebd52e | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4254/codes/1637_1055.py | e44021d6d961a9fd0df484c0a0024cf18b907868 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Use as mensagens de erro para corrigir seu código.
from math import*
vi = float(input("Valor da vel. inicial: "))
ang = radians(float(input("Valor do angulo: ")))
d = float(input("Valor da distancia horizontal: "))... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
c1f078d04fb1349eb369dd17b1730b136b109c1b | bbf1153379eb6f8d0da97e7f608d8714f69bea2f | /masker.py | 3e8dbdfa38d1bb6e3504834ad4cca692e6ff1937 | [] | no_license | rubythonode/Fairy-zepeto-tech | 234fd96a26ba58f1267d723a7f9f8faeb6584fcc | b7f5e64fe9ae9ddeca91cb5c5a8629d9762f984e | refs/heads/master | 2020-12-23T11:56:46.095451 | 2019-05-11T09:08:12 | 2019-05-11T09:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,428 | py | import cv2
from imutils.video import VideoStream
import imutils
import dlib
def draw_dlib_rect(frame, rect):
x, y = rect.left(), rect.top()
w, h = rect.right() - x, rect.bottom() - y
cv2.rectangle(frame, (x, y), (x + w, y + h), (255, 0, 0), 2)
def main():
detector = dlib.get_frontal_face_detector()
... | [
"32605822+JunhoYeo@users.noreply.github.com"
] | 32605822+JunhoYeo@users.noreply.github.com |
91f7e272e123bcc82effd0aa0590229161bc20a0 | 177d7066f6a0326ed937a56174d7e2241653929a | /Tree&Graphs/lc733.py | e1405eccb1370ebee80dc19fea3328286363cdba | [] | no_license | jasonusaco/Leetcode-Practice | 276bcdb62b28806b3d297338882f4b1eef56cc13 | 91dc73202eb9952a6064013ef4ed20dfa4137c01 | refs/heads/master | 2020-07-06T08:29:09.419062 | 2019-10-10T01:43:03 | 2019-10-10T01:43:03 | 202,955,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | class Solution:
def floodFill(self, image, sr, sc, newColor):
R=len(image)
C=len(image[0])
oldColor=image[sr][sc]
if oldColor==newColor:
return image
def dfs(r,c):
if image[r][c]==oldColor:
image[r][c]=newColor
... | [
"yangyx@raysdata.com"
] | yangyx@raysdata.com |
323874b2e2f36c12b541fc62524c7fcb8b55acf7 | e1fada3a9846a5593e3d3d2fdc32b23b832e38b4 | /otx/mpa/seg/stage.py | d590b95c4f69f193b4c83ac34f749ec3408f023a | [
"Apache-2.0"
] | permissive | GalyaZalesskaya/openvino_training_extensions | fd1ebb189900008b16b85568449e5c62d8edbad5 | 6116639caeff100b06a6c10a96c7e7f5951f20c7 | refs/heads/develop | 2023-09-03T19:32:44.702497 | 2023-03-15T06:48:24 | 2023-03-15T06:48:24 | 202,568,309 | 0 | 0 | Apache-2.0 | 2019-10-28T16:16:27 | 2019-08-15T15:41:59 | Python | UTF-8 | Python | false | false | 5,579 | py | # Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
from mmcv import ConfigDict
from otx.algorithms.segmentation.adapters.mmseg.utils.builder import build_segmentor
from otx.mpa.stage import Stage
from otx.mpa.utils.config_utils import recursively_update_cfg
from otx.mpa.utils.logger import... | [
"noreply@github.com"
] | GalyaZalesskaya.noreply@github.com |
4c19f566aefa3011a9090945688d333dec852953 | d2e4206ce78451b08bc742e4376316077236e418 | /RemoveAllAdjacentDuplicatesinStringGreaterThanEqualToK.py | 5650df59145581dd769a0da1af47d40e884cdfb9 | [] | no_license | coolsgupta/leetcode | cb25a62999bc0fe20fd7b250c5056c4b6cc3bdca | 64ad78da317c783ffc68357524daa38be0074417 | refs/heads/master | 2023-04-20T11:26:25.638424 | 2021-05-12T05:04:56 | 2021-05-12T05:04:56 | 238,100,015 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | class Solution:
def removeDuplicates(self, s: str, k: int) -> str:
stack = []
i = 0
while (i < len(s)):
x = s[i]
if not stack:
stack.append([x, 1])
elif stack[-1][0] != x:
if stack[-1][1] >= k:
stack.pop... | [
"cool.sgupta@gmail.com"
] | cool.sgupta@gmail.com |
cc357f6f1e4bea37c08347ba9e8dad0df543adc7 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_aleph5381_a.py | 92a8b86a7abbd771359c6c39ae5adc41704a46a0 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/env python3
import sys
rl = lambda: sys.stdin.readline()
T = int(rl())
def solve(casei):
line = rl().split()
N = int(line[0])
if N is 0:
print("Case #{}: INSOMNIA".format(casei))
return
check = [0] * 10
x = 0
fin = False
while fin is False:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
f9e8a99edebd2f573d6d2be807df5f607a9f8f7c | af4abf0a22db1cebae466c56b45da2f36f02f323 | /storage/fase2/team14/storage/Blockchain.py | e165b05dd9bb4ba6701acce857ef42272e491acf | [
"MIT"
] | permissive | joorgej/tytus | 0c29408c09a021781bd3087f419420a62194d726 | 004efe1d73b58b4b8168f32e01b17d7d8a333a69 | refs/heads/main | 2023-02-17T14:00:00.571200 | 2021-01-09T00:48:47 | 2021-01-09T00:48:47 | 322,429,634 | 3 | 0 | MIT | 2021-01-09T00:40:50 | 2020-12-17T22:40:05 | Python | UTF-8 | Python | false | false | 5,175 | py | import json
import hashlib
import os
import csv
def turn_on_safe_mode(database, table):
blockchain = {}
with open('data/info/safeModeTables/' + database + table + '.json', 'w') as file:
json.dump(blockchain, file, indent=4)
def turn_off_safe_mode(database, table):
os.remove('data/in... | [
"noreply@github.com"
] | joorgej.noreply@github.com |
e40541251a9d5577e3a17f6424b708ed485084f5 | 34ef54c04b369a6161c6f8a649868a47122a2d89 | /.venv/Lib/site-packages/astroid/brain/brain_hashlib.py | a6582de9504bc79b6cb428620bbacdf4b4b44262 | [
"MIT"
] | permissive | abner-lucas/tp-cruzi-db | f70ad269c50a2db24debd1455daeddaa2ebd3923 | 595c5c46794ae08a1f19716636eac7430cededa1 | refs/heads/bioinformatica | 2023-05-18T23:23:23.458394 | 2021-06-14T02:13:17 | 2021-06-14T02:13:17 | 351,864,250 | 2 | 2 | MIT | 2021-06-13T19:52:18 | 2021-03-26T17:40:20 | Python | UTF-8 | Python | false | false | 2,400 | py | # Copyright (c) 2016, 2018, 2020 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2018 David Poirier <david-poirier-csn@users.noreply.github.com>
# Copyright (c) 2018 wgehalo <wgehalo@gmail.com>
# Copyright (c) 2018 Ioana Tagirta <ioana.tagirta@gmail.com>
# Copyright (c) 2020-2021 hippo91 <guillaume.peillex@gmail.c... | [
"abnerlucas.cad@gmail.com"
] | abnerlucas.cad@gmail.com |
c66fb5735b664f20d647f3bc49bc6ba93a005a3d | f6703b2afca284bf75e0dbf8f61d77e5251f905c | /euler55.py | 8409d725d3672ffc5ec2ce87dddc8a3c639332e4 | [] | no_license | rwieckowski/project-euler-python | 2a7aa73670b4684f076ad819bfc464aa0778f96c | be9a455058b20adfd32c814effd8753cc9d39890 | refs/heads/master | 2021-01-10T21:10:44.875335 | 2015-06-23T13:29:58 | 2015-06-23T13:29:58 | 37,920,684 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | """
If we take 47 reverse and add 47 74 121 which is palindromic
Not all numbers produce palindromes so quickly For example
349 943 1292
1292 2921 4213
4213 3124 7337
That is 349 took three iterations to arrive at a palindrome
Although no one has proved it yet it is thought that some numbers like
196 never... | [
"rwieckowski@ivmx.pl"
] | rwieckowski@ivmx.pl |
c40ee3ce0fccd75e6378521c50021da41918068a | b02a5015ecc61414834c4b24e5f33168eb99070a | /CCscripts/MakeAgreementGraph.py | e6b906884fb9acab5b5c0c84e68a61196f62ba47 | [
"MIT"
] | permissive | mrvollger/SDA | f1aa8edf9989125d7e0c0f6ae159bca495915826 | 3d5e9ec8d1e7ac97121c33c6be80d635392631cf | refs/heads/master | 2023-05-13T05:24:54.665854 | 2023-05-07T23:40:25 | 2023-05-07T23:40:25 | 101,452,926 | 29 | 5 | MIT | 2019-11-21T18:08:13 | 2017-08-26T00:58:01 | Python | UTF-8 | Python | false | false | 3,729 | py | #!/usr/bin/env python
import argparse
import ABPUtils
import numpy as np
import sys
import networkx as nx
import matplotlib.pyplot as plt
ap = argparse.ArgumentParser(description="Sort by haplotype")
ap.add_argument("mat", help="snv matrix file")
ap.add_argument("--out", help="Output file", default="/dev/stdout")
ap... | [
"mrvollger@gmail.com"
] | mrvollger@gmail.com |
64683810f9c43df3333a32d6404f1f6af85bc005 | f1c20d0836f4815b81c895ffe22a29005db3746d | /backend/main/settings/base.py | ed93056e2f01bdbdcf212ab4fe28dc7d14f35e97 | [] | no_license | pavelm2007/leadersofdigital_2020_04 | 6ceacf0858ea46bd73c5a0e0ab120cae802e85bd | 0132d1b3361518b109b0632daaf13ed8e849192d | refs/heads/main | 2023-04-04T21:12:54.890040 | 2021-04-17T20:37:02 | 2021-04-17T20:37:02 | 358,649,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,933 | py | # https://docs.djangoproject.com/en/1.10/ref/settings/
import os
from decouple import config # noqa
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
def base_dir_join(*args):
return os.path.join(BASE_DIR, *args)
SITE_ID = 1
SECURE_HSTS_PRELOAD = True
DEBUG = True
AD... | [
"pavelm2007@yandex.ru"
] | pavelm2007@yandex.ru |
64649915912e14ca161b5972b75805aaa8f7bc29 | c92b6c0b59d25018de5b51c6d88f4764e5b713d7 | /ligo/skymap/conftest.py | 102ff41df148897c8cdc94c7f0d69d5122e5549c | [] | no_license | lpsinger/ligo.skymap | 9ecb3480859a3bc7e09332118aa151b47cf50dc8 | 35d451804acb859141a39296f8d6f760802fc78c | refs/heads/main | 2023-08-30T21:01:00.223367 | 2023-08-21T14:03:13 | 2023-08-21T14:03:13 | 124,963,286 | 24 | 18 | null | 2023-07-08T12:53:23 | 2018-03-12T23:17:14 | Python | UTF-8 | Python | false | false | 2,321 | py | # This file is used to configure the behavior of pytest when using the Astropy
# test infrastructure. It needs to live inside the package in order for it to
# get picked up when running the tests inside an interpreter using
# packagename.test
import warnings
from astropy.version import version as astropy_version
impo... | [
"leo.singer@ligo.org"
] | leo.singer@ligo.org |
dedd346d54e7685a9a5faf73d1ec612f64bd2a8b | 02e5b1240db2ef04b4f8b661a9ac4ce060144d74 | /experiments/debug_algorithm_comparison.py | a478002d69b94f10e3cab276763d6d6087c35cfb | [
"MIT"
] | permissive | jayeshchoudhari/pyhawkes | b3b143a5040730826c23a9b3703159dbeb9bf21d | f4b0e6e3ce7f74e647f0ed2254ea334c22d6e82b | refs/heads/master | 2021-06-12T12:55:54.740142 | 2017-03-27T06:47:16 | 2017-03-27T06:47:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,309 | py | """
Compare the various algorithms on a synthetic dataset.
"""
import cPickle
import os
import copy
import gzip
import numpy as np
# Use the Agg backend in running on a server without the DISPLAY variable
if "DISPLAY" not in os.environ:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
# ... | [
"scott.linderman@gmail.com"
] | scott.linderman@gmail.com |
8f4254578ec4c86546e4c356104dd919b4821bc6 | 6d80ce7a1f44ddf5741fd190ddfe0d9be8e5f162 | /model/recognition_model/MORAN_V2/models/fracPickup.py | c77c4b2472d2cf2ef4c6501bff03d3cb0602d5ac | [
"MIT"
] | permissive | dun933/FudanOCR | dd8830ca4b8ebb08acd31326fcf5aa3c961886a0 | fd79b679044ea23fd9eb30691453ed0805d2e98b | refs/heads/master | 2021-04-03T19:50:47.646099 | 2020-03-16T08:43:59 | 2020-03-16T08:43:59 | 248,391,401 | 1 | 0 | MIT | 2020-03-19T02:23:11 | 2020-03-19T02:23:10 | null | UTF-8 | Python | false | false | 1,448 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import numpy.random as npr
class fracPickup(nn.Module):
def __init__(self, CUDA=True):
super(fracPickup, self).__init__()
self.cuda = CUDA
def forward(self, x):
x_shape = x.size()
assert ... | [
"576194329@qq.com"
] | 576194329@qq.com |
0682e73e7996182b5c7e1fc9d9644fdff3829b00 | 11df0f91cb97d974a8097a74a907dadfdf63e5a3 | /plugins/jobs/setup.py | ba8f34b55e76d90d049415c52752673fce8b6d66 | [
"Apache-2.0"
] | permissive | kotfic/girder | 730b8234a51e8428952cf359cd5ddb3ccb992510 | 461faf52288c8fc4936f1e7a2ff08ee5a674f324 | refs/heads/master | 2021-01-15T21:07:53.923485 | 2018-10-24T15:03:53 | 2018-10-24T15:03:53 | 40,503,503 | 0 | 0 | Apache-2.0 | 2018-10-05T14:49:29 | 2015-08-10T20:05:16 | Python | UTF-8 | Python | false | false | 1,867 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright 2013 Kitware 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 cop... | [
"jonathan.beezley@kitware.com"
] | jonathan.beezley@kitware.com |
95acbaf7ca434dbb5ce338d2f69a29098e9a845c | 744096e063ffb4cdb017f60e6dfae410a51c789a | /keras/keras78_iris_cnn.py | 76a91517f44f06c521e9584fdf7f72c5fcb4fbf3 | [] | no_license | elf0508/Study-bit | 59ddab507b02c13a45913c05a4799ff946e63f95 | a773d7643cbb1c0008e7ea01c32615c9e6e3678c | refs/heads/master | 2022-12-31T11:53:44.344693 | 2020-10-16T09:04:01 | 2020-10-16T09:04:01 | 270,950,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | py | # 다중 분류
from sklearn.datasets import load_iris
iris = load_iris()
x = iris.data
y = iris.target
print(x.shape) # (150, 4)
print(y.shape) # (150, )
# x : scaler
from sklearn.preprocessing import StandardScaler
scaler = StandardScaler()
scaler.fit(x)
x = scaler.transform(x).reshape(150, 2, 2, 1)
# y : on... | [
"elf0508@naver.com"
] | elf0508@naver.com |
3a6f59ae3607d35583d9c3f4b8a8aede43a77042 | 1e4d852a59e6f16d70fb05e74f5b8d6e52bbc5d7 | /data_visualization/15/5/rw_visual.py | 074f07253417fcf0ddce0a00d6e446f6e87c938f | [] | no_license | 1000monkeys/probable-invention | 6cb32fae592f7752c77c295a4be2d500e0a55ec9 | adf42f00c32ab7eb165d78dde3703eba3037356d | refs/heads/master | 2021-06-29T17:08:52.810761 | 2020-10-08T12:45:20 | 2020-10-08T12:45:20 | 168,561,027 | 0 | 0 | null | 2020-09-16T12:38:46 | 2019-01-31T16:54:48 | Python | UTF-8 | Python | false | false | 753 | py | import matplotlib.pyplot as plt
from random_walk import RandomWalk
while True:
# Make a random walk, and plot the points.
rw = RandomWalk(500000)
rw.fill_walk()
plt.figure(figsize=(10, 6))
point_numbers = list(range(rw.num_points))
plt.scatter(rw.x_values, rw.y_values, c=point_numbers, cmap... | [
"vos.kjell@gmail.com"
] | vos.kjell@gmail.com |
af9477decdec1d2bfb03a8a5787df8343ad1b196 | b8e9dd6fd8f8b691cba5a3af2388467bcf6c90bb | /samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.py | e6dcb3af72d7dc36592959b07c480cccf1a37f3f | [
"Apache-2.0"
] | permissive | FallenRiteMonk/openapi-generator | f8b98940219eecf14dc76dced4b0fbd394522aa3 | b6576d11733ecad6fa4a0a616e1a06d502a771b7 | refs/heads/master | 2023-03-16T05:23:36.501909 | 2022-09-02T01:46:56 | 2022-09-02T01:46:56 | 164,609,299 | 0 | 0 | Apache-2.0 | 2019-01-08T09:08:56 | 2019-01-08T09:08:56 | null | UTF-8 | Python | false | false | 864 | 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: https://openapi-generator.tech
"""
... | [
"noreply@github.com"
] | FallenRiteMonk.noreply@github.com |
f7a92fcc0db6370db2bf509626dc91e8f3bf07f4 | de8336cbcaa51a5156346a0f4513adf2ebc29fd3 | /api/admin.py | d8a324370e1d999628566cabd4dbbb8476718b36 | [] | no_license | kranthi0987/djangosample | 8219b09a0d16591f274864b1fdc04ce46a31ce8a | bbae4ab38279d275353a2deb40ab9964fc6f7216 | refs/heads/master | 2020-08-23T16:23:37.896331 | 2019-10-27T15:23:40 | 2019-10-27T15:23:40 | 216,661,294 | 0 | 1 | null | 2020-07-21T05:33:21 | 2019-10-21T20:39:34 | Python | UTF-8 | Python | false | false | 159 | py | from django.contrib import admin
from .models import Songs, DummyData
# Register your models here.
admin.site.register(Songs)
admin.site.register(DummyData)
| [
"kranthi0987@gmail.com"
] | kranthi0987@gmail.com |
2c1ff6bd6165f7ddf080a6f5e104a08aecb7e88e | a4b9550d36b82b0ad5d24db8c75ab0d49a8a0904 | /Electrum/asgi.py | 8e4fdffa274eed668b4c2051a8150d7f27767792 | [] | no_license | jithinvijayan007/Electrum-Assignment- | e84323a82b152fc051a3e981e793c83e9cb174bf | eb82195ebcb48a19b97738c77a30fc3307ca0514 | refs/heads/master | 2023-01-11T07:44:47.029271 | 2020-11-18T13:24:44 | 2020-11-18T13:24:44 | 313,941,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for Electrum project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"jithinvijayan007@gmail.com"
] | jithinvijayan007@gmail.com |
63b3332617f7b78be4ecf567876be04b1a66db94 | b018b734af4170d34d28c474f68777597dba29ec | /venv/bin/pyrsa-decrypt | 6297436bdc29e64724b2cb09382dc7feaf97b4c6 | [] | no_license | abdulkhan94/BigDataTechnology | ae0b7f8c03831f07b791bc5898c2bb18a4c3fec5 | 7be6d3a13e8fd42d9592d7287d694d507f9070b5 | refs/heads/master | 2023-02-13T04:07:49.070798 | 2021-01-11T01:34:51 | 2021-01-11T01:34:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/Users/abdullahkhan/PycharmProjects/CloudKhan/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import decrypt
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(decrypt())
| [
"abdullahn@gmail.com"
] | abdullahn@gmail.com | |
cfe2831a6522b71a9b9499c6a825bf3ae2606a14 | 7102ec163136e65c4da47658e669fde07521aaf1 | /app/setup.py | 2ac412c5412da5c4f619cae9a324bfdeedb2fd39 | [] | no_license | ghuntley/nomad-with-nix | 170d5ab571d9ae92fc1c420cd29ec94042e1c243 | bc5ff4afea2ed89074479c6ed2c39db1c577e062 | refs/heads/master | 2023-02-10T07:21:57.801694 | 2021-01-07T20:06:58 | 2021-01-07T20:07:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from setuptools import setup, find_packages
setup(
name="app",
py_modules=[
"main",
],
install_requires=[
"asyncpg",
"databases",
"fastapi",
"psycopg2",
"uvicorn",
],
entry_points={
"console_scripts": ["uvicorn=uvicorn:main"],
},
)
| [
"asko.soukka@iki.fi"
] | asko.soukka@iki.fi |
981a793fd86c41e5b30e11570db8718e3d216f27 | dd6ed4e1fa17ff9dd59116632964e2fad438bc83 | /eventframe/nodes/participant_list/forms.py | 7c00adf40e454b4c701b0bc744c66c54638c7838 | [] | no_license | elvisds/eventframe | 8ba3b6911ffad1d80b3c56eecf36d40c7ca3d1cc | 5a65c3671d1dea3967efdea4bf163f11bde39879 | refs/heads/master | 2021-01-15T18:04:59.943728 | 2013-08-15T18:11:39 | 2013-08-15T18:11:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | # -*- coding: utf-8 -*-
import flask.ext.wtf as wtf
from eventframe.forms import DictField
from eventframe.nodes.content import ContentForm
__all__ = ['ParticipantListForm']
class ParticipantListForm(ContentForm):
source = wtf.SelectField(u"Data Source", choices=[
('', ''), ('doattend', 'DoAttend')],
... | [
"kiran@hasgeek.com"
] | kiran@hasgeek.com |
e527dc3bc132a68f454bd616f68298778961bf12 | 84b05857cbe74d190bdbee18d442d0c720b1b84d | /Coderbyte_algorithms/Hard/BracketCombinations/test_BracketCombinations.py | bea5f4e5ce46337ed54f65b42d3923344d653408 | [] | no_license | JakubKazimierski/PythonPortfolio | 1c8c7e7b0f1358fc42a2295b807d0afafd8e88a3 | 3aa62ad36c3b06b2a3b05f1f8e2a9e21d68b371f | refs/heads/master | 2023-06-01T01:16:22.897097 | 2023-05-15T01:05:22 | 2023-05-15T01:05:22 | 311,473,524 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | '''
Unittests for BracketCombinations.py
January 2021 Jakub Kazimierski
'''
import unittest
import BracketCombinations
class test_BracketCombinations(unittest.TestCase):
'''
Class with unittests for BracketCombinations.py
'''
# region Unittests
def test_ExpectedOutput(self):
... | [
"j.m.kazimierski@gmail.com"
] | j.m.kazimierski@gmail.com |
134c09442a208868e04335c154fd1be6a4f089c0 | a41e7ac731210a0cb9d198029962a086dc6b4311 | /python/helpers/pycharm/lettuce_runner.py | 2f64afc956d9bdca0e3a13d8bf65680fceb4428b | [] | no_license | gencer/intellij-community | 19e7d2eafd9da1e3ad9bddd4253a0cc91a1271e9 | dc9043c92d20ef479ea8c0a9114479c2cfd1f95f | refs/heads/master | 2020-12-13T21:53:16.304289 | 2014-11-03T10:23:07 | 2014-11-03T10:23:07 | 15,880,732 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,779 | py | # coding=utf-8
"""
BDD lettuce framework runner
TODO: Support other params (like tags) as well.
Supports only 2 params now: folder to search "features" for or file and "-s scenario_index"
"""
import argparse
import os
import _bdd_utils
__author__ = 'Ilya.Kazakevich'
from lettuce.exceptions import ReasonToFail
import l... | [
"Ilya.Kazakevich@jetbrains.com"
] | Ilya.Kazakevich@jetbrains.com |
3afd486fd50e5acb41db7c6f19412760f26eb79e | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/01_netCDF_extraction/merra902Combine/757-tideGauge.py | b5cc5d83438152989fa3ddf082f55d7b833dd4b9 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 17 11:28:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
# dir_name = 'F:\\01_erainterim\\01_er... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
3481718d73cd06e14af89d79412405e9ae54e588 | aa5a8163c450a7ca7f4d3e7483213bb3642e0824 | /map/google/main.py | 6a8dbbb4d4e21e23144734bc0d11b43403bfd5b9 | [
"Apache-2.0"
] | permissive | kosyachniy/dev | e068bf3c9ad4d3808c70e5eb2afdafc2ef796482 | 41f58e72a397c7ff0df26dfa3e19dc64c8eff1d2 | refs/heads/main | 2023-06-25T10:36:56.333731 | 2023-06-15T01:26:19 | 2023-06-15T01:26:19 | 89,030,562 | 21 | 4 | Apache-2.0 | 2023-06-02T20:19:17 | 2017-04-21T23:13:54 | HTML | UTF-8 | Python | false | false | 1,535 | py | import json
from datetime import datetime
import googlemaps
with open('keys.json', 'r') as file:
KEY = json.loads(file.read())['google']['maps']['key']
gmaps = googlemaps.Client(key=KEY)
# Координаты по адресу
address = '1600 Amphitheatre Parkway, Mountain View, CA'
coords = gmaps.geocode(address)
print(coord... | [
"polozhev@mail.ru"
] | polozhev@mail.ru |
7ecaf8a263fb938f42a3db5c6b5a11abb11136b8 | 3a9b154aa9d5e379683476f80f30630bf44d2102 | /Server_v1/amazon/migrations/0014_auto_20190805_1705.py | e5c8d37fc9418b6c6303cd36e306d47c4f28f273 | [] | no_license | KevinDon/py_amazon_analysis | 81995e360d2b536e1df6e515aae9457054edae29 | 13b5fbb046ca6516ac3a47e8f7867baf358011f4 | refs/heads/master | 2022-12-13T00:27:27.511783 | 2019-08-14T11:45:53 | 2019-08-14T11:45:53 | 185,160,162 | 0 | 1 | null | 2022-12-10T05:38:15 | 2019-05-06T08:56:40 | TSQL | UTF-8 | Python | false | false | 1,255 | py | # Generated by Django 2.2 on 2019-08-05 09:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('amazon', '0013_auto_20190802_1106'),
]
operations = [
migrations.CreateModel(
name='AmazonProduct... | [
"kevintang002@gmail.com"
] | kevintang002@gmail.com |
fc217223fd2c75a5608bbcb6e46372fa4b31ff90 | 9ef35f89227d474f3664d27dbe3ba63bd52f8422 | /toripscanner/toripscanner.py | 8f515aaa5a0e7c397fec030a71b223c72779dbb7 | [] | no_license | oftc/toripscanner | 9ec7e4feac39172247b678a7d85fdca83f73fde0 | f0365bd3d25b49e786ceac010796084e431ad2ec | refs/heads/master | 2023-07-02T08:49:44.490859 | 2021-08-15T03:13:22 | 2021-08-15T03:13:22 | 390,759,119 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,201 | py | import logging
from argparse import ArgumentParser
from typing import Dict, Any
import toripscanner.cmd.scan
import toripscanner.cmd.parse
from . import __version__
from .config import get_config, config_logging
log = logging.getLogger(__name__)
def create_parser():
p = ArgumentParser()
p.add_argument('--ve... | [
"sirmatt@ksu.edu"
] | sirmatt@ksu.edu |
b4c37d818e3bcccfd45e9c2b5690f7cbafa56c01 | a0664f0d3950a7147f84a317b2e417e0433a4ae4 | /test/test_invoice_billing_address.py | 431b1384493ea8ad7498fc318d0b7f8ca6793de5 | [] | no_license | reepay/reepay-checkout-python | 1e748893a970d28c6b0242bc7d26aa21325abb32 | 8bbd36219335a1fc65f857ac537ff4931bc6e5c7 | refs/heads/master | 2020-10-01T20:10:29.660872 | 2019-12-12T13:39:46 | 2019-12-12T13:39:46 | 227,615,447 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | # coding: utf-8
"""
Reepay Checkout API
Reepay Checkout REST API # noqa: E501
OpenAPI spec version: 1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.invoice_billing_... | [
"robert@reepay.com"
] | robert@reepay.com |
a3da31f13b5f6cd102d61aee6848e0d8c48d0510 | d01c2f82838e246076b0fd3514bc21119a4ee792 | /guillotina/cookiecutter/application/{{cookiecutter.package_name}}/{{cookiecutter.package_name}}/__init__.py | 18d4c2bcbdcb48e447eb79bd02cc35918d93172d | [
"BSD-2-Clause"
] | permissive | jordic/guillotina | 0940a935264aee189daf4a21b50f0efc1650ffbd | 8845454a784e797b90951580e1ab5fa9172055e1 | refs/heads/master | 2020-03-07T15:37:30.139620 | 2018-06-22T16:37:40 | 2018-06-22T16:37:40 | 127,559,927 | 0 | 0 | BSD-2-Clause | 2018-03-31T18:30:34 | 2018-03-31T18:30:33 | null | UTF-8 | Python | false | false | 302 | py | from guillotina import configure
app_settings = {
# provide custom application settings here...
}
def includeme(root):
"""
custom application initialization here
"""
configure.scan('{{cookiecutter.package_name}}.api')
configure.scan('{{cookiecutter.package_name}}.install')
| [
"vangheem@gmail.com"
] | vangheem@gmail.com |
a79abc6d3e3ba8d2fd884627dc5bfe8c07440687 | 7c79c8caee77d08aa05cdc59eb68e569abf54a7e | /ics 32/ics 32 larc/animal_class.py | d80f309fccc67c06da02e0f1e1c7808aca2fe846 | [] | no_license | solomc1/python | 2e4715cc24e7b23d91c879fc95954f615a615982 | 119e388fb6f4ab42f581e48393919d4052a08ef6 | refs/heads/master | 2021-01-17T16:48:02.671810 | 2016-07-29T05:27:50 | 2016-07-29T05:27:50 | 64,452,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | #Create 4 animal classes that have functions growl and eat
#Ask a user which animal they want and make it growl and eat
class Zebra:
def growl(self)->str:
print("I'm eating grass...")
class Giraffe:
def growl(self)->str:
print("I'm eating cupcakes...")
class Moose:
def growl(self)... | [
"solomc1@uci.edu"
] | solomc1@uci.edu |
52f46ec16cb48b6b7c28fce60dffa9fca6a97c14 | 2899430814db2d06f8f5e105e02c731047013f93 | /backend/users/migrations/0002_auto_20200828_1219.py | 5e24b577abdd99c6db1761c8b96e6c31990cae83 | [] | no_license | crowdbotics-apps/project-1-19840 | 8de5a8e8f07aa35a7445c5943613766b793b0790 | 2f9c890ba6bc7d734f474a5141ad9d9018725761 | refs/heads/master | 2022-12-04T01:51:43.336555 | 2020-08-28T12:19:53 | 2020-08-28T12:19:53 | 291,038,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # Generated by Django 2.2.15 on 2020-08-28 12:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0001_initial'),
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
8e8764ab12c5d3b41e59f47cd5a9fbb3c7dd5edc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02618/s903697509.py | c5447f9b8ecd4c99caea4697471af46080b6fba0 | [] | 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 | 4,955 | py | from random import randint, random, seed
from math import exp
import sys
input = sys.stdin.buffer.readline
INF = 9223372036854775808
def calc_score(D, C, S, T):
"""
開催日程Tを受け取ってそこまでのスコアを返す
コンテストi 0-indexed
d 0-indexed
"""
score = 0
last = [0]*26 # コンテストiを前回開催した日
for d, t in enumerate(T... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
676f959d3e7c34fdaac7aeaf0ceb46cc93f51d71 | 0e0d6e6332e8d783b1f1da961f496a647f88eb77 | /ryu/controller/dp_type.py | dc9704c0ea346117bf2ae99a2ebe0712778d4d34 | [
"Apache-2.0"
] | permissive | unifycore/ryu | 667a957c42a2e3c23780e52d3d72457fbd7487c8 | 3cdfd5957e5cc20a90dd6bc0070f1795f31afc44 | refs/heads/master | 2021-01-21T19:54:14.558501 | 2018-02-09T22:15:06 | 2018-02-09T22:15:06 | 14,217,663 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # Copyright (C) 2012 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2012 Isaku Yamahata <yamahata at valinux co jp>
#
# 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://... | [
"fujita.tomonori@lab.ntt.co.jp"
] | fujita.tomonori@lab.ntt.co.jp |
dcc02ccfc560b15d59d43056ae81ae14687d84c7 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /11_Time_Series_Forecasting_with_Python/05/airline_boxcox_auto.py | 46d48d9fe18da8804d0ee8aaf3433f7d3b894dff | [] | 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 | 596 | py | # automatically box-cox transform a time series
from matplotlib import pyplot
from pandas import DataFrame
from pandas import read_csv
from scipy.stats import boxcox
series = read_csv('airline-passengers.csv', header=0, index_col=0, parse_dates=True, squeeze=True)
dataframe = DataFrame(series.values)
dataframe.columns... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
3fdc94789dbc47b5910241a83c5ad57671bc9e35 | 03dea3c0db7c8fafda71d23c3c2595f563ffb335 | /SignalMC/test/AMSB_chargino900GeV_ctau10cm_step1.py | b612a64808e5b716cb361082e95b61d933ed4b7b | [] | no_license | Andersen98/DisappTrks | 3952e9bf8ba270e2d88aa2e8d9ef805cf25dfc46 | 140a5efdc4c51a30e5fced6d34b7813876c2f2ee | refs/heads/master | 2020-06-27T03:41:59.136790 | 2017-07-12T15:19:18 | 2017-07-12T15:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,070 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: DisappTrks/SignalMC/python/AMSB_chargino900GeV_ctau10cm_NoFilter_13TeV.py --fileout file:AMSB_chargino700GeV_ctau10cm_step1.root --mc --eventc... | [
"ahart@cern.ch"
] | ahart@cern.ch |
47fc3d5c03c500f55864283af007e7e341651e9e | 50a690ab7db8fe98a620f3c54aabd90c3ff3e7f3 | /losses/triplet_loss_test.py | 6348bc6af5eac3386abfe5d64a0b4bfb51155046 | [] | no_license | yekeren/ADVISE-Image_ads_understanding | 590754909d2f4259a57d32591a15bea845586a0f | 2ea5e1405b1ab178b95f9c2cd9158b16847ac6a3 | refs/heads/master | 2021-10-02T08:01:29.193553 | 2018-11-29T16:32:25 | 2018-11-29T16:32:25 | 103,291,233 | 22 | 8 | null | null | null | null | UTF-8 | Python | false | false | 5,369 | py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
from losses import triplet_loss
slim = tf.contrib.slim
class TripletLossTest(tf.test.TestCase):
def setUp(self):
tf.logging.set_verbosity(tf.logging.INFO)
... | [
"yekeren.cn@gmail.com"
] | yekeren.cn@gmail.com |
dda29d32249fd96fba0acb1367105ab881c76624 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2493/60771/290955.py | 6c322d79efc369fa6ffdbc500c6fb16d7b654351 | [] | 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 | 339 | py | #05
n = int(input())
ori = input().split(" ")
nums = [int(item) for item in ori]
m = int(input())
for i in range(0,m):
ori = input().split(" ")
left = int(ori[0])
right = int(ori[1])
dup = []
part = nums[left-1:right]
for item in part:
if item not in dup:
dup.append(item)
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e24797ac9d7f429ee69a77a110980389a9e0edb5 | a583b9151b8ce9dd74aa7c3fc99e40055f1dcfb9 | /Coursera_PY_week8 12/DONE/3_Smallest_odd.py | aa0d2a49aa91847c449ac2dccba5b0bb7adb1b62 | [] | no_license | NineMan/Coursera_PY | df202768bc2f0a5ea06d0ed9985610e527d1a5c5 | dd9b6b085b66b979c88e5d72b26777848b6d2a9a | refs/heads/master | 2020-08-01T09:36:37.132012 | 2019-09-25T23:12:57 | 2019-09-25T23:12:57 | 210,953,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | print(
min(
filter(
lambda x: x % 2 != 0,
map(
int,
input().split()
)
)
)
)
| [
"nelubinmv@inbox.ru"
] | nelubinmv@inbox.ru |
9a4b8392b7e0b2bcec18b40fa83f092083b22e9f | 67a9ea4302d669a142549b26bc5412b83eb10de6 | /django_projects/askdjango/blog/models.py | dd889c68d771487963d834b671c033841fa19829 | [] | no_license | Chojiwon/nits-1st | 9068c8ee66e3bd06c2758516b7f4f3a52fc7499e | cbbbe301356a33c9ffc6c5a6e3bc9a99492900d5 | refs/heads/master | 2021-04-29T04:43:20.498626 | 2017-01-04T07:31:19 | 2017-01-04T07:31:19 | 77,995,108 | 1 | 0 | null | 2017-01-04T08:09:08 | 2017-01-04T08:09:08 | null | UTF-8 | Python | false | false | 2,469 | py | from django.conf import settings
from django.core.files import File
from django.core.urlresolvers import reverse
from django.core.validators import RegexValidator, MinLengthValidator
from django.contrib.auth.models import User
from django.db import models
from django.db.models.signals import pre_save
from blog.utils im... | [
"allieuslee@gmail.com"
] | allieuslee@gmail.com |
a969af4f57309f7a09076291ef2c2743f87a9e3a | fbba871f9a7076074f570df563881fd28c1826af | /src/anyconfig_configobj_backend/configobj_.py | 32aa1ae4dc2f6f8bd4fe18d6ff7b7948eb79257a | [
"MIT"
] | permissive | ssato/python-anyconfig-configobj-backend | 9cb254a283c2634ae15035dcae509574e08d718c | 1e6c3fb1389a8c1083a090f5e0f75e226d424def | refs/heads/master | 2023-07-27T00:05:41.811839 | 2023-07-09T06:00:54 | 2023-07-09T06:00:54 | 9,628,155 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,426 | py | #
# Copyright (C) 2013 - 2021 Satoru SATOH <satoru.satoh @ gmail.com>
# License: MIT
#
r"""Configobj backend:
- Format to support: configobj,
https://bit.ly/2TgURnL (https://configobj.readthedocs.io)
- Requirements: configobj (https://pypi.python.org/pypi/configobj/)
- Development Status :: 4 - Beta
- Limitations: A... | [
"satoru.satoh@gmail.com"
] | satoru.satoh@gmail.com |
a8b1c2f0d8f7ce94ae2e6536c5b1e375271987f9 | b9c43433f5f17c4f20d6ece1798e42e3d1d7e0e2 | /lists/models.py | a386118bfc326f57ea7cbb9e07c2575227352173 | [] | no_license | fireinrain/django_superlists | e6365fa51e57eb8b3dd91d88c7737ee9d2be1c05 | fe1d6655058772a534351578c2f6e0bac5601c08 | refs/heads/master | 2022-06-18T14:32:04.318953 | 2017-01-05T05:43:21 | 2017-01-05T05:43:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from django.db import models
# Create your models here.
class List(models.Model):
listdb = models.TextField(default='')
class Item(models.Model):
text = models.TextField(default='')
list = models.ForeignKey(List,default=None)
| [
"575563079@qq.com"
] | 575563079@qq.com |
22568b30c1c3eb26116d7633f4d2bf182d8915a9 | a84538af8bf1f763a3d71d939744976425358b30 | /contrib/devtools/symbol-check.py | 363849d7e38a7e395c0f770b6dab7eee08f352c9 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | YourLocalDundee/foxdcoin | 8de421b280a812e390249f14ed0b5892c546ebf1 | 9db505f6f32bd3e51bd2b2da533744c98cee23af | refs/heads/master | 2023-05-14T05:10:26.435417 | 2021-06-09T06:18:50 | 2021-06-09T06:18:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,231 | py | #!/usr/bin/env python
# Copyright (c) 2014 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
A script to check that the (Linux) executables produced by gitian only contain
allowed gcc, glibc and libstdc++... | [
"foxrtb@gmail.com"
] | foxrtb@gmail.com |
c1447b9ff7375bfeff1e7c5f144b90d30ccd58b2 | 148ac8d601369aaae6918cf0a55a4d4f5afb5e75 | /dt_tennis.py | 2bb3aad648def783a4a020597f5b6c2d6fa4e52a | [] | no_license | MrVersatile007/ML-with-Rishi | a7800e27f5cbac9b68d526469beb380ed59bb029 | db76aa26ef5d349237d0fa1f0bdd677352dfb392 | refs/heads/main | 2023-06-02T15:53:00.902907 | 2021-06-27T15:15:01 | 2021-06-27T15:15:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 25 20:45:59 2021
@author: RISHBANS
"""
import pandas as pd
tennis_data = pd.read_csv("tennis.csv")
from sklearn.preprocessing import OrdinalEncoder
from sklearn.tree import DecisionTreeClassifier
o_e = OrdinalEncoder()
X = tennis_data.drop(columns=['play'])
y = tennis_... | [
"rishibansal02@gmail.com"
] | rishibansal02@gmail.com |
b52b5d7aebe3bd624868fe6aed27ba6c5e09e006 | 9aad83265d9b0f405000be6ecf1e27886d907a45 | /pyciss/meta.py | 96aa53d3c50f1a179d330a8c9670d65c2b71ef31 | [
"ISC"
] | permissive | jamesHuffman/pyciss | b536c5d806b5b8b8692485b5f8c5da22586e5c64 | bfab517ebc411592ffbb9050136e3d95ced52db4 | refs/heads/master | 2020-05-29T08:40:15.734644 | 2017-01-04T10:05:29 | 2017-01-04T10:05:29 | 69,047,589 | 0 | 0 | null | 2016-09-23T17:44:36 | 2016-09-23T17:44:35 | null | UTF-8 | Python | false | false | 3,345 | py | """This module deals with the metadata I have received from collaborators.
It defines the location of ring resonances for the RingCube plotting.
"""
import pandas as pd
import pkg_resources as pr
def get_meta_df():
def read_metadata(f):
df = pd.read_csv(f, header=None, delim_whitespace=True)
df =... | [
"kmichael.aye@gmail.com"
] | kmichael.aye@gmail.com |
ff23bf0fd747937e5b59cb049d04f3cd937701f2 | 494a0ba52d3204cb0082f01ae58cfdfc74895ba2 | /thisIsCodingTest/graph/42.gate.py | 69ae147b775a050386a3441d2cc6e94c185dc8b9 | [] | no_license | mhee4321/python_algorithm | 52331721c49399af35ffc863dd1d9b8e39cea26a | 96dd78390ba735dd754930affb3b72bebbbe5104 | refs/heads/master | 2023-04-26T09:27:40.760958 | 2021-05-16T12:12:39 | 2021-05-16T12:12:39 | 327,462,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | def find_parent(parent, x):
if parent[x] != x:
parent[x] = find_parent(parent, parent[x])
return parent[x]
def union_parent(parent, a, b):
a = find_parent(parent, a)
b = find_parent(parent, b)
if a < b:
parent[b] = a
else:
parent[a] = b
g = int(input())
p = int(input())... | [
"nannanru@gmail.com"
] | nannanru@gmail.com |
2e312bbf9e3bffa3e8bdbcff21c0dd64f68ac42d | 6509c398816baffafa4a1fcfb2855e1bc9d1609b | /sistema-operacional/diretorios/pathlib/exemplos/pathlib-30.py | cdb96b7c3e866933e42e2503f27c3bb2564029af | [] | no_license | marcoswebermw/learning-python | 6b0dfa81a0d085f4275865dce089d9b53b494aa5 | 931ed2985b8a3fec1a48c660c089e290aaac123d | refs/heads/master | 2021-10-27T21:19:46.013020 | 2019-04-19T23:25:46 | 2019-04-19T23:25:46 | 87,670,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | # Retorna o caminho final("tronco")
# de um componente sem o sufixo(extensão).
from pathlib import Path
arquivo = Path('/usr/bin/teste.tar.gz')
print(arquivo.stem) # teste.tar
arquivo = Path('/usr/bin/teste.tar')
print(arquivo.stem) # teste | [
"marcoswebermw@gmail.com"
] | marcoswebermw@gmail.com |
e538dfa58bc6728808c15fad154b4ea83088f829 | 0aa9649e3f67d2ab3f36eb4d67d6b9196295a8ec | /src/browserrender.py | e97a81f842bd1ccc477ec19cabce3332a9eb5bb5 | [] | no_license | HussainAther/scrape | 5e094dae66fe88ed4b090797a095df95db839874 | 8c28d8d4943de34544ce18bf5f1c7223e51426a5 | refs/heads/master | 2020-06-03T16:35:10.771222 | 2019-12-14T08:33:32 | 2019-12-14T08:33:32 | 191,651,526 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | # -*- coding: utf-8 -*-
import csv
import lxml.html
import re
import time
try:
from PySide.QtGui import QApplication
from PySide.QtCore import QUrl, QEventLoop, QTimer
from PySide.QtWebKit import QWebView
except ImportError:
from PyQt4.QtGui import QApplication
from PyQt4.QtCore import QUrl, QEve... | [
"shussainather@gmail.com"
] | shussainather@gmail.com |
065c63d1ae9bb96d1d7af75023910c6a1693df54 | 4766d241bbc736e070f79a6ae6a919a8b8bb442d | /archives/leetcode2/0108. Convert Sorted Array to Binary Search Tree.py | ad97a0374762928355b3da39c91085ca4dcf7558 | [] | no_license | yangzongwu/leetcode | f7a747668b0b5606050e8a8778cc25902dd9509b | 01f2edd79a1e922bfefecad69e5f2e1ff3a479e5 | refs/heads/master | 2021-07-08T06:45:16.218954 | 2020-07-18T10:20:24 | 2020-07-18T10:20:24 | 165,957,437 | 10 | 8 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def sortedArrayToBST(self, nums):
"""
:type nums: List[int]
:rtype: TreeNode
"""
if not nums:
... | [
"noreply@github.com"
] | yangzongwu.noreply@github.com |
fde15e4db514b606e835f68194fbccfc68ce0db3 | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /testing/test_programs/numpy/basic_numpy/stypy_test_files/numpy_mathematical_functions_trigonometrical__type_data.py | ec54b5bb797ef03f3043b380cefb64c0f8a4a21f | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | from testing.code_generation_testing.codegen_testing_common import instance_of_class_name
from stypy.types import union_type, undefined_type
from numpy import ndarray
test_types = {
'__main__': {
'r23': instance_of_class_name("ndarray"),
'r22': instance_of_class_name("ndarray"),
'r21': inst... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
2871d96ec3547c2cc7897191f99266569c9f2498 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2690/60765/317077.py | 228538a2c79869f701b3ffeac300c9be62b9d7f1 | [] | 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 | 606 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import math
import sys
n=int(input())
# n,t=list(map(int,input().split()))
# serial=input().split()
# a=list(map(int,input().split()))
#for i in range(n):
# big=input()
# s1,s2=input().split()
# newStr=''
# for c in s1:
# if c in s2:
# newStr+=... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9911fd89be762020473e0e8ca72cce70952a1ee1 | af57d2d840dfbc7b533b7d8ae6776c25fedab140 | /backend/lib/physics/force/one_body.py | 46d1e4ba7a5ed7f4532cdb2f5db73946d90c49bf | [] | no_license | pondelion/3DSimulatorWebApp | a31fb7c2330ad6d072f3f556d7dc678289b62ac3 | 6c03888f57d8f871289b9dfd3abd622a403b4acb | refs/heads/master | 2020-04-01T05:06:02.195484 | 2019-01-20T12:58:41 | 2019-01-20T12:58:41 | 152,889,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import numpy as np
def gravity(m, g=-9.8):
"""Calculate graviational force.
Args:
m (float): The mass of particle/material.
g (gloat): The gravitational acceleration constant. Defaults to -9.8.
Returns:
numpy.ndarray: The graviational force.
"""
return m * np.array([0.0, ... | [
"programming.deve@gmail.com"
] | programming.deve@gmail.com |
3da97890b29e0a0064612c840a6ce58bc97d8b6f | d9dbeafdcbe65f1121acb6f3d2ea789c33dc9edf | /algorithms/practice/codechef/long/july2022/one/chef_and_candies.py | bdae48e6106634ede59117cfc9e4431479c1e8fd | [] | no_license | Ethic41/LearningAlgorithms | 2227547064f0027a265e62a48d12923013cf2511 | 614fcf534344e643cda4867c0e45be507ebe46b8 | refs/heads/master | 2022-11-28T11:57:56.899894 | 2022-11-24T12:28:14 | 2022-11-24T12:28:14 | 192,438,021 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | #!/usr/bin/env python
# -=-<[ Bismillahirrahmanirrahim ]>-=-
# -*- coding: utf-8 -*-
# @Date : 2022-07-08 10:45:00
# @Author : Dahir Muhammad Dahir
# @Link : https://www.codechef.com/JULY221D/problems/CHEFCAND
def solve():
def candies_to_buy(N: int, X: int):
if X >= N:
return 0
... | [
"dahirmuhammad3@gmail.com"
] | dahirmuhammad3@gmail.com |
fcab9aecc6fee9f10f5d848b12925509c4f944d8 | bde686ed82aa2e3a13f4550f151dc51dea40a6b3 | /day01/try_tieba_info.py | de235587e6098df98011a4f636e0eaaf9860f7fa | [] | no_license | zhuchen0310/requests | 9f9e1e1e035481067297b48d3a991ea8c1c8cf58 | 2a4e1eca0b946583957be8ce6c1a33118db905db | refs/heads/master | 2021-01-23T06:01:59.538476 | 2017-09-06T12:58:38 | 2017-09-06T12:58:38 | 102,484,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,578 | py | # coding=utf-8
import requests
#
# class TieBaInfo():
# '''
# 贴吧类
# '''
#
# def __init__(self, tieba_name): # 初始化
# self.tieba_name = tieba_name
# self.headers = {
# 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.... | [
"448290415@qq.com"
] | 448290415@qq.com |
79d297aaab41036be9634c5e5b1a7a98b39d85cf | b99d4ceb8b98a92f13556e1820cb6999925b5417 | /19_delimited_text/blastomatic/blastomatic.py | d3d52eac313f5dd287f2056f702a39ded0d63d3a | [
"MIT"
] | permissive | belteki/biofx_python | c8aea28ae9b08bda83e4d54ade9d2ce2863d75b0 | c2d9b7a40d88130545d32e33c31d92f18a2e0a93 | refs/heads/main | 2023-01-28T17:37:10.169102 | 2020-12-10T22:19:28 | 2020-12-10T22:19:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | #!/usr/bin/env python3
"""Annotate BLAST output"""
import argparse
import csv
import sys
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description='Annotate BLAST output',
formatter_class=argparse.Argum... | [
"kyclark@gmail.com"
] | kyclark@gmail.com |
67731a6604e37cb903b37974b6a71bb9d8654e25 | 994238c75dfe3f504985404a1cffd0adba37d5b0 | /tensorflow/targetDirectory/lib/python3.7/site-packages/keras/applications/densenet.py | 8cc8a7149a9b89a848b65769375f73c609929bc0 | [
"MIT"
] | permissive | amyhxqin/heartbit | e6d3854c14710114b76cf7b308b4440ff54aa27c | ebb67349e90654e275760d081b80b343bd2f45eb | refs/heads/master | 2022-12-21T08:52:39.748454 | 2019-01-12T18:45:33 | 2019-01-12T18:45:33 | 165,421,669 | 0 | 1 | MIT | 2022-12-09T13:51:12 | 2019-01-12T18:28:10 | Python | UTF-8 | Python | false | false | 350 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from keras_applications import densenet
DenseNet121 = densenet.DenseNet121
DenseNet169 = densenet.DenseNet169
DenseNet201 = densenet.DenseNet201
decode_predictions = densenet.decode_predictions
preprocess_inpu... | [
"amy.huaxuan.qin@gmail.com"
] | amy.huaxuan.qin@gmail.com |
3d9ffad143d127bc7ac1841c5da7344aba89c865 | 1a4467142864518f3ea74e3166bab8dee5294b5a | /MovToExcel/menu.py | fd200920af0f8c542296aa126ca066a23ea462cd | [] | no_license | LiuLiangFx/nukePlugin | c8f1d6019fb3215954016118911789e1290f6022 | f4c235a643beb2f0c505500e472512cb453992d0 | refs/heads/master | 2021-01-01T11:27:54.674587 | 2017-05-09T09:03:28 | 2017-05-09T09:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | # -*- coding:utf-8 -*-
__date__ = '2017/3/20 15:35'
__author__ = 'liaokong'
import nuke
import movToExcel
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
nuke.menu("Nuke").addCommand(u"Liaokong/项目表格生成工具", "movToExcel.start()")
| [
"568250549@qq.com"
] | 568250549@qq.com |
2a91d67be95262eea433393af954014a3349b1b7 | a74cabbe1b11fc8ef575ea86f2543cd95db78ec9 | /python_program/q36_Valid_Sudoku.py | 31df01eb1d86db9738d2b517b4d7fc0766ee9dbf | [] | no_license | tszandy/leetcode | 87e3ccf291b2879637d2d8238935a455b401a78a | f1f4361541dcffbb291285663c8820d7ffb37d2f | refs/heads/master | 2023-04-06T15:34:04.847875 | 2023-03-26T12:22:42 | 2023-03-26T12:22:42 | 204,069,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py | from typing import List
from collections import Counter,defaultdict
from math import *
from functools import reduce
import numpy as np
from heapq import *
class Solution:
def isValidSudoku(self, board: List[List[str]]) -> bool:
row_counter = defaultdict(list)
col_counter = defaultdict(list)
... | [
"444980834@qq.com"
] | 444980834@qq.com |
ec19772aa9aea21fd37c6ebf64f010bdd776b959 | f3a4017878c9be1e98255932fb6fbd6fa2f67af0 | /update | d9fa56336ebee8cbb0d12c1e1c9acc6d403f9bce | [] | no_license | globaldothealth/h1n1 | 71af0b231bd1e42af35feb9a8931d4da9110e548 | 4f6d9d1fe90bfa85d7901a4b2dc9c06fd7fbba1e | refs/heads/master | 2022-12-18T09:37:53.469416 | 2020-10-01T09:40:29 | 2020-10-01T09:40:29 | 294,795,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,684 | #!/usr/bin/python3
import csv
import json
import os
import sys
# from tools import data_util, generate_full_data
CSV_FILE = "HealthMap_H1N1_Global_All_Languages_2009-2012.csv"
SELF_DIR = os.path.dirname(os.path.realpath(__file__))
FIELDS = {
"location": 0,
"country": 1,
"disease": 2,
"species": 3,
... | [
"m@ma.nu"
] | m@ma.nu | |
4cf9d38b89dd6ddc114606327319518c90c9cd20 | 69d2627942a554d6914ba05de097a290fed66bad | /vb2py/vb/test1/test/frmRadio.py | 3288d55a11d256403ea27f0e3c916d0c08fe55bc | [
"BSD-3-Clause"
] | permissive | rayzamgh/sumurProjection | 0fcef39cc75e620057b012f1bd35cae1c49a5554 | 847ce71e85093ea5ee668ec61dbfba760ffa6bbd | refs/heads/master | 2020-07-23T23:33:26.621550 | 2019-12-22T05:31:24 | 2019-12-22T05:31:24 | 207,738,494 | 1 | 0 | null | 2019-10-28T16:00:07 | 2019-09-11T06:23:43 | Python | UTF-8 | Python | false | false | 1,383 | py | """The main form for the application"""
from PythonCard import model
# Allow importing of our custom controls
import PythonCard.resource
PythonCard.resource.APP_COMPONENTS_PACKAGE = "vb2py.targets.pythoncard.vbcontrols"
class Background(model.Background):
def __getattr__(self, name):
"""If a name was no... | [
"rayzaganteng@gmail.com"
] | rayzaganteng@gmail.com |
93ba0b7db738acfb04bf04f9ced0811e84a2f9bb | f7550c4964dc8f3c59dbcebe39e947bd6a264dba | /3.Time Complexity Analysis/array Union.py | 21627529d754f1dc4ea509811fa13e3f3a46dc3c | [] | no_license | Jashwanth-k/Data-Structures-and-Algorithms | db5e2e30932e0a35db578c19ae6cff9f147b7c3d | 1ebf9986999a474cb094f3ab04616a46f2887043 | refs/heads/main | 2023-08-25T02:57:17.394322 | 2021-10-11T15:27:56 | 2021-10-11T15:27:56 | 402,448,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | def intersection(a1,a2):
i = j = 0
a3 = []
while i < len(a1) and j < len(a2):
if a1[i] < a2[j]:
if a1[i] not in a3:
a3.append(a1[i])
i+=1
elif a2[j] < a1[i]:
if a2[j] not in a3:
a3.append(a2[j])
j+=1
... | [
"noreply@github.com"
] | Jashwanth-k.noreply@github.com |
08d1ee573cccf0a07e66a575feeddc119ccfc64a | 0f1084acef945809693bdf975a735259e04ccda1 | /api/v1/utils.py | f0817e5514b4296c880c2650093c1c4e836096c8 | [
"Apache-2.0"
] | permissive | buyaoyongroot/1yancc | 5a6331b451178d7ed52bc906ce3ba55e44014415 | 7fffd389aa53b3b785ae99816b4cf76fae4f7779 | refs/heads/main | 2023-05-02T14:07:10.937875 | 2021-05-26T05:30:05 | 2021-05-26T05:30:05 | 370,237,985 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | class utils():
#===============加密类=========================================
@staticmethod
def md5(str):
import hashlib
hl = hashlib.md5()
hl.update(str.encode(encoding='utf-8'))
return hl.hexdigest()
#===============随机类======================================... | [
"you@example.com"
] | you@example.com |
944c68a1a9440f836c823ee608689293920fa2e2 | 1dae87abcaf49f1d995d03c0ce49fbb3b983d74a | /programs/subroutines/Picture - Frame EoS optical.sub.py | 465057ffcc9faa79f61d88da52baebb028bd91cf | [] | no_license | BEC-Trento/BEC1-data | 651cd8e5f15a7d9848f9921b352e0830c08f27dd | f849086891bc68ecf7447f62962f791496d01858 | refs/heads/master | 2023-03-10T19:19:54.833567 | 2023-03-03T22:59:01 | 2023-03-03T22:59:01 | 132,161,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | prg_comment = ""
prg_version = "0.5.1"
def program(prg, cmd):
prg.add(-4403000, "Na Repumper1 (+) Amp", 1.000000)
prg.add(-4393000, "K probe Repumper (+) Amp", 1.000000)
prg.add(-4383000, "K Repumper 1p (+) Amp", 1.000000)
prg.add(-4363000, "Na Dark Spot Amp", 1.000000)
prg.add(-4353000, "Na Repumpe... | [
"carmelo.mordini@unitn.it"
] | carmelo.mordini@unitn.it |
c1e9e59c5aff9b31e0a98e566fa60528b8128e5d | f460b2b8aadf8a6b0f7df9386132b44ab9d633ff | /backend/testapp_24367/settings.py | 5f9aff5eb501ffbf83db70b9c12c5cd3dfbdd311 | [] | no_license | crowdbotics-apps/testapp-24367 | 083bf7033b43ef38bfdb2b9bf0eb104551081e54 | 256d7cebe3bd59ccf26bf22175ad484033ab7edd | refs/heads/master | 2023-02-28T01:00:45.357057 | 2021-02-08T10:09:35 | 2021-02-08T10:09:35 | 337,032,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,064 | py | """
Django settings for testapp_24367 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
dfe6effc5c5ab2dbea9b908ad60d54602c70d73a | af5e5399d86e276528898c4437a6bf909bfae48b | /modoboa_postfix_autoreply/migrations/0007_auto_20180928_1423.py | 6966118338358fa372c8e9538a30ff7540c42178 | [
"MIT"
] | permissive | modoboa/modoboa-postfix-autoreply | b63445dafc3555952ccf440c98059adc8203f6d5 | 675cff4673164cadfa70892a7184f51e4bc5b648 | refs/heads/master | 2023-09-01T14:41:29.232985 | 2023-08-29T15:59:34 | 2023-08-29T15:59:34 | 30,645,239 | 6 | 11 | MIT | 2023-08-29T15:59:35 | 2015-02-11T11:45:49 | Python | UTF-8 | Python | false | false | 921 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-09-28 12:23
from __future__ import unicode_literals
from django.db import migrations
def move_transport_entries(apps, schema_editor):
"""Move old transport entries to new model."""
pf_Transport = apps.get_model("modoboa_postfix_autoreply", "Transp... | [
"tonio@ngyn.org"
] | tonio@ngyn.org |
1f3bbac74e70f96f7b9ec40d372d31e1b1f773b0 | fae70ce7b3a6aa11f568ea11f6432a15c303ff4c | /backend/home/admin.py | df00658e4315496f555f3883ec935e268f6c0eb7 | [] | no_license | crowdbotics-apps/msm-mobile-041298-d-16278 | 900532950c8bc78b9559d7f7b7369965be3dfd5a | d0cce051eca656658f757b52028c495de8d14df3 | refs/heads/master | 2023-01-23T10:33:49.516108 | 2020-12-04T09:25:15 | 2020-12-04T09:25:15 | 318,404,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.contrib import admin
from .models import Payment, Student
admin.site.register(Student)
admin.site.register(Payment)
# Register your models here.
| [
"team@crowdbotics.com"
] | team@crowdbotics.com |
6f37a52fa44b06d9339604895887644e5393908f | f0da5036820e92157a9108b4b6793e757a81861c | /tfmodels/generative/encoder_basemodel.py | 94b65286c61a3583c99508f199b4249200bffe17 | [
"MIT"
] | permissive | BioImageInformatics/tfmodels | cb1e136407f0f148194210b1449b26c126fe5a07 | 7219eac59ba82cfa28e6af5e17f313dcc5ddd65e | refs/heads/master | 2022-01-26T16:09:32.630262 | 2019-04-25T05:09:33 | 2019-04-25T05:09:33 | 115,466,269 | 4 | 3 | null | 2018-02-06T17:46:17 | 2017-12-27T00:55:40 | Python | UTF-8 | Python | false | false | 2,638 | py | from __future__ import print_function
import tensorflow as tf
from ..utilities.basemodel import BaseModel
class BaseEncoder(BaseModel):
## Overload the base class.. do I even need the base class?
## TODO expose number of kernels and number of upsample steps to the world
discriminator_defaults = {
'... | [
"ing.nathany@gmail.com"
] | ing.nathany@gmail.com |
be7196960f3976f8925c1fb4d15ab6dec089b8be | 21e5825959a886787a3915ff0d3efa86d9cd3702 | /combat/finishers/crushskull.py | 90999f5e7d95fb019500f25b51ba1105f832984b | [
"MIT"
] | permissive | ChrisLR/Python-Roguelike-Template | e0df37752907377e606197f2469fda61202129d5 | 9b63742b0111c7e9456fb98a96a3cd28d41a1e10 | refs/heads/master | 2021-06-26T07:48:39.215338 | 2017-09-14T21:46:08 | 2017-09-14T21:46:08 | 69,761,175 | 0 | 0 | null | 2017-09-14T21:46:09 | 2016-10-01T20:09:24 | Python | UTF-8 | Python | false | false | 1,967 | py | from combat.enums import DamageType
from combat.finishers.base import Finisher
from echo import functions
from util import gridhelpers
class CrushSkull(Finisher):
name = "Crush Skull"
description = "Crush the skull of your enemy."
attacker_message = "You swing your {attacker_weapon} into a powerful overhe... | [
"arzhul@gmail.com"
] | arzhul@gmail.com |
4266808125fee1529cd17fad7f3dcc1b19a5058d | cc5c546379ca79a7634acb9a2a66ae690f20ee15 | /MyCode-01/Schema/__init__.py | 0fa987e6907d0c9a145c077b36c3792e0904e2ca | [] | no_license | vakili73/CodeV1 | 0c13f8b3cba1fa9b5d40039065931687dd0acc84 | 658826200ddb779baf2a1cc2bcccdc0e43aefd47 | refs/heads/master | 2020-04-01T07:23:58.679094 | 2018-12-22T21:07:24 | 2018-12-22T21:07:24 | 152,988,274 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | from .BaseSchema import BaseSchema
from .SchemaV01 import SchemaV01
from .SchemaV02 import SchemaV02
from .SchemaV03 import SchemaV03
from .SchemaV04 import SchemaV04
from .SchemaV05 import SchemaV05
from .SchemaV06 import SchemaV06
from .SchemaV07 import SchemaV07
from .SchemaV08 import SchemaV08
from .SchemaV09 impo... | [
"v.vakili73@gmail.com"
] | v.vakili73@gmail.com |
24fe5caed2fa41cc86fa0d89688e6ed28366e88a | 411eff94020c192d5e5f657fa6012232ab1d051c | /game/src/coginvasion/holiday/DistributedWinterCoachActivityAI.py | 39d242aa474cc9dd01c703a6449f877ffd5cab35 | [] | no_license | xMakerx/cio-src | 48c9efe7f9a1bbf619a4c95a4198aaace78b8491 | 60b2bdf2c4a24d506101fdab1f51752d0d1861f8 | refs/heads/master | 2023-02-14T03:12:51.042106 | 2021-01-15T14:02:10 | 2021-01-15T14:02:10 | 328,268,776 | 1 | 0 | null | 2021-01-15T15:15:35 | 2021-01-09T23:51:37 | Python | UTF-8 | Python | false | false | 904 | py | """
COG INVASION ONLINE
Copyright (c) CIO Team. All rights reserved.
@file DistributedWinterCoachActivityAI.py
@author Maverick Liberty
@date November 14, 2015
"""
from direct.directnotify.DirectNotifyGlobal import directNotify
from direct.distributed.DistributedNodeAI import DistributedNodeAI
class DistributedWint... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
d72458e76f86057e04cab0990ba3207a0ce687ce | 9e8d98c48035d4ee61fa930c324c822a61e5ae55 | /examples3/test_surface_ct.py | 53652450ddfa76ea5a3507d290c37f21d095ec74 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | GRSEB9S/mystic | 59ac0c284a19f7b685a98420cd49d21bb10ff0cd | 748e0030c8d7d8b005f2eafa17a4581c2b3ddb47 | refs/heads/master | 2021-08-14T07:11:04.439139 | 2017-11-14T23:49:22 | 2017-11-14T23:49:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,116 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 2010-2016 California Institute of Technology.
# Copyright (c) 2016-2017 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/my... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
a1409738902176bfc7b30eefe27cd0406cc72281 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6040/265006040.py | 8d9319d572368cb051ac2c665bd006e19f823ef1 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,266 | py | from bots.botsconfig import *
from records006040 import recorddefs
syntax = {
'version': '00604',
'functionalgroup': 'TO',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 1, MAX: 5, LEVEL: [
{ID: 'N2', MIN: 0, MAX: 2},
{ID: 'N3', MIN... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.