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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d98cb3276700b0619b55a52fd01b4bde3ac26b0a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_supervened.py | 63d83774f76adad3b9f81467aaf63f60d0ae4dfd | [
"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 | 234 | py |
#calss header
class _SUPERVENED():
def __init__(self,):
self.name = "SUPERVENED"
self.definitions = supervene
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['supervene']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
84a3cfba54746da4c76ea8e59883e2e4e489dba3 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/18212253.py | 9fd63b0d48dc4dfe782fe97a4561370f1c4b89db | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/18212253.py generated: Fri, 27 Mar 2015 15:48:15
#
# Event Type: 18212253
#
# ASCII decay Descriptor: chi_b0(3P) -> (Upsilon -> mu+ mu-) gamma
#
from Gaudi.Configuration import *
importOptions( "$DECFILESROOT/options/Upsilon.py" )
from Configurables impor... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
e7b31cbd178f19c99dc8538cc5ed7790a3213572 | 4f4ab46092c73b1cfb0a7730bb3ed59b829552a9 | /src/utf8_check.py | e65530bd225efba21326e608d476ef9a2505f19e | [
"Unlicense"
] | permissive | kemingy/daily-coding-problem | ab3dcab662593fa9ce15ef49a9105cf962514189 | 0839311ec0848f8f0b4a9edba817ecceb8f944a0 | refs/heads/master | 2020-03-27T06:05:52.028030 | 2019-08-07T03:32:33 | 2019-08-07T03:32:33 | 146,078,162 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | # UTF-8 is a character encoding that maps each symbol to one, two, three,
# or four bytes.
# For example, the Euro sign, €, corresponds to the three bytes
# 11100010 10000010 10101100. The rules for mapping characters are as follows:
# • For a single-byte character, the first bit must be zero.
# • For an n-byte chara... | [
"kemingy94@gmail.com"
] | kemingy94@gmail.com |
415471a5343c19f74e4deecf39013fda1d985f06 | 2dadc071440a236c32645e5af81d0aa72d68050f | /artificial_intelligence/flocking.py | 694203e140a398970527f52012945aacbe5b9851 | [] | no_license | sunary/data-science | a58d572d05c7c14b7ab5d281889d7206838d97ab | ac5d2af680948e76cf21248797a7014b27e96703 | refs/heads/master | 2023-04-12T08:42:13.950495 | 2023-03-28T01:05:32 | 2023-03-28T01:05:32 | 43,934,997 | 4 | 3 | null | 2023-03-31T14:29:53 | 2015-10-09T05:31:13 | Python | UTF-8 | Python | false | false | 4,637 | py | __author__ = 'sunary'
import Tkinter
import math
import random
CANVAS_SIZE = (700, 500)
MOVE_SIZE = 1.5
COHENSION_SIZE = 30
SEPARATION_SIZE = 15
class Boid(object):
def __init__(self, loc=[0, 0], vec=[0, 0], radius=0):
self.loc = loc
self.vec = vec
self.radius = radius
def distan... | [
"v2nhat@gmail.com"
] | v2nhat@gmail.com |
81749c3be98af1acce87654827678a6600ff3a76 | 6375b9a795966ce18c426b95ea578f477acb9509 | /abc/abc154/a.py | b1e3a2f677ca831e52f574c1c91d3c64872448f4 | [] | no_license | katryo/AtCoder | d67cb44025d456429f87f15c0e0e52b4e45a56df | 3df6ca302a8328f7f018b9a59e5b065323e47dbc | refs/heads/master | 2021-02-11T17:52:21.239775 | 2020-03-28T14:38:23 | 2020-03-28T14:38:23 | 244,516,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | import sys
def main():
s = sys.stdin.readline().strip()
a = []
for _ in s:
a.append('x')
print(''.join(a))
if __name__ == '__main__':
main() | [
"katoryo55@gmail.com"
] | katoryo55@gmail.com |
ab6e57e1947c880b301a36022cdb016ce8dbc140 | 3db9ef78b62b01bf79dff6671b02c24192cd4648 | /13/5.py | 995e2a233233bcbab5471a7f0e8cd9536b03c431 | [] | no_license | rheehot/python-for-coding-test | 401f5655af1a8cf20bc86edb1635bdc4a9e88e52 | be95a0d0b3191bb21eab1075953fa472f4102351 | refs/heads/master | 2022-11-11T19:35:56.680749 | 2020-06-24T02:19:48 | 2020-06-24T02:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | n = int(input())
# 연산을 수행하고자 하는 수 리스트
data = list(map(int, input().split()))
# 더하기, 빼기, 곱하기, 나누기 연산자 개수
add, sub, mul, div = map(int, input().split())
min_value = 1e9
max_value = -1e9
def dfs(i, now):
global min_value, max_value, add, sub, mul, div
if i == n:
min_value = min(min_value, now)
ma... | [
"noreply@github.com"
] | rheehot.noreply@github.com |
75227f853bc3f151b62621dc93ac35f76abfdd72 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D00A/CODENOD00AUN.py | 56f7b31a1f2750740bc759a4b6bc01849cef0714 | [] | 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 | 1,108 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD00AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 9},
{ID: 'FTX', MIN: 0, MAX: 9},
{ID: 'RFF'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
97d63a5cded53d536831e72cf4f7b7ccbb52c5c0 | 8b3bc4efea5663b356acbabec231d1d647891805 | /045/Solution.py | 2cdbe019e8519ee7fdf7c484d5331b6d5c3fd35e | [] | no_license | FawneLu/leetcode | 9a982b97122074d3a8488adec2039b67e709af08 | 03020fb9b721a1c345e32bbe04f9b2189bfc3ac7 | refs/heads/master | 2021-06-18T20:13:34.108057 | 2021-03-03T05:14:13 | 2021-03-03T05:14:13 | 177,454,524 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | class Solution:
def jump(self, nums: List[int]) -> int:
cur=0
pos=0
count=0
pre=0
while cur<len(nums)-1:
count+=1
pre=cur
while pos<=pre:
cur=max(cur,pos+nums[pos])
pos+=1
return count | [
"tracylu1996@gmail.com"
] | tracylu1996@gmail.com |
5a8ba1b3bf6e030f6c14b1107dab93e28c9fc257 | ab25e7f9fdbd53d164066ceb9e6a47e1990ccf1c | /BLD/accounts/views.py | 4717500b4a6698f7b0252dbe7d3d93ee3ad7d11e | [] | no_license | HSH4U2U/Project_001 | b48f11ac40b4994dc87d917aaeb722acf14402e6 | 8336f8d7204e78d1d6c0363fbf7824163f7b1cac | refs/heads/master | 2020-04-06T08:34:20.756443 | 2018-12-07T13:47:57 | 2018-12-07T13:47:57 | 157,308,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,741 | py | from django.shortcuts import render, redirect
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import login as logedin, logout, authenticate
from .forms import SignupForm
from django.http import HttpResponse
from django.utils.encoding import force_bytes, force_text
from django.utils.htt... | [
"abc@example.com"
] | abc@example.com |
d361c9bb0e45594f4a9365779ee6a3aa5b4cf9a1 | 3563dc4589f412e8c8ceb566e4edeb5e86e0f62c | /simapp/db/api.py | 1619be512f66be3dbf5a3b6bc4fe96d69a0b0f81 | [] | no_license | matthiaskoenig/modelmanager | f5286b812e137c3566d9175d53f8b7705b297053 | e01a902fc23c5df9f661f251ef9119326a510a94 | refs/heads/master | 2020-12-24T07:21:21.553650 | 2017-08-29T08:08:41 | 2017-08-29T08:08:41 | 58,029,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,314 | py | """
Helper functions and tools to create objects in the database.
All interactions with the database should go via this module.
No direct interactions with the database should occur
TODO: handle the model better
@author: Matthias Koenig
@date: 2015-05-10
"""
import logging
from django.core.exceptions import ObjectDo... | [
"konigmatt@googlemail.com"
] | konigmatt@googlemail.com |
365c89bb34551b07a8dc73e910811ed15221ff63 | 94309403cd8405c1fd45556e9fbf517660ea22ae | /glottolog3/scripts/load.py | f3c360274416b8a430b968cea93b410a073f61e5 | [
"MIT"
] | permissive | pombredanne/glottolog3 | 54ab7937d39c204bf25b7257a0b773780a9b005c | 57fffdd0eae8338bf6ade639396d75b60732eebc | refs/heads/master | 2021-01-21T17:06:59.851523 | 2015-12-03T13:48:54 | 2015-12-03T13:48:54 | 47,515,545 | 0 | 1 | null | 2015-12-06T21:59:03 | 2015-12-06T21:59:03 | null | UTF-8 | Python | false | false | 1,197 | py | # -*- coding: utf-8 -*-
import os
from functools import partial
import json
import transaction
from clld.scripts.util import parsed_args, data_file
if __name__ == '__main__': # pragma: no cover
add_args = [
(("version",), dict(help="X.Y")),
(("what",), dict()),
(("command",), dict(help="... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
db0cc9aa8e02d634852866924799102d9f123062 | 2acf64fca88200f4a4ada46f5da4f96702bafa06 | /stubs/facebook_business/adobjects/streamingreaction.pyi | 129ddb7719bb3e77c06fd9ed9644ca6eae982efa | [] | no_license | vlab-research/adopt | bf6cdbfb751f7d85674e3925b207639e7d9d92c4 | 66347b00996e26910290e4fdb883e4231cc614af | refs/heads/master | 2023-04-12T12:16:23.061861 | 2021-05-18T14:17:01 | 2021-05-18T14:17:01 | 278,025,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | pyi | from facebook_business.adobjects.abstractobject import AbstractObject as AbstractObject
from typing import Any, Optional
class StreamingReaction(AbstractObject):
def __init__(self, api: Optional[Any] = ...) -> None: ...
class Field(AbstractObject.Field):
count: str = ...
reaction_type: str = ..... | [
"nandanmarkrao@gmail.com"
] | nandanmarkrao@gmail.com |
474a54dbb6f54ebaff80c8c1f5d5021348bd7b43 | 47ee119c92eceec091737f70d477e84b77f5f385 | /compsocsite/mentors/urls.py | 2948858c09365e1c4649e0e377c38a059e368ab8 | [
"MIT"
] | permissive | ReedyChen/opra | 36e1542936d014de39e29a3608ade4b23e0e67f7 | 86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f | refs/heads/master | 2020-07-24T11:15:42.066062 | 2019-12-18T04:29:33 | 2019-12-18T04:29:33 | 207,905,282 | 0 | 0 | MIT | 2019-09-11T20:56:23 | 2019-09-11T20:56:23 | null | UTF-8 | Python | false | false | 2,040 | py | from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from django.views.decorators.cache import cache_page
from . import views
from django.urls import path
app_name = 'mentors'
urlpatterns = [
url(r'^$', login_required(views.viewindex), name='index'),
#url(r'^apply$', log... | [
"1"
] | 1 |
ae17b555e21daa609bc78274f52fa03c7e487f1a | cac3d73826abfe66e11d7729645c8b1da488049f | /.waf-1.9.9-7bba8e621200e038b4ec3cb1cb148f38/waflib/Tools/fc.py | 8cb8812d8110e01e1aae7eb13691e99446f28340 | [
"MIT"
] | permissive | mish24/werk | 5fc82300a00b386f211b5609ed216bb87b04dc9d | 2f8822842fb8f68a4402775d1d3b41021b5a9945 | refs/heads/master | 2020-05-17T08:46:23.361609 | 2019-05-08T18:25:08 | 2019-05-08T18:25:08 | 183,615,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,959 | py | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
from waflib import Utils,Task
from waflib.Tools import ccroot,fc_config,fc_scan
from waflib.TaskGen import extension
from waflib.Configure import conf
ccroot.USELIB_VARS['fc']=set(['FCFLAGS','DEFINES... | [
"poonammishra24398@gmail.com"
] | poonammishra24398@gmail.com |
deef0fa4c9c9c48d7395a1637d10eb487ad51246 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/show_project_summary_v4_response.py | 93a60325c81db4cf021a9529d821932a38fd3f37 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,992 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ShowProjectSummaryV4Response(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
ade39a80731592e11e81b518c422e0e0254255d2 | 4c9d728aab9d5c377211780a54692e4d4f6c428f | /Profile/migrations/0005_auto_20191023_2228.py | b163aca6e22176e78d3ba7da86c51bc2991fda9c | [] | no_license | kahdichienja/Accommodation_Management | d3cd5159e64e0016a2997a15be449c8cb08eeded | 6eca68f56a09924217d1dc091da6d1182a58cc6b | refs/heads/master | 2022-12-15T10:22:28.353169 | 2020-04-09T14:42:39 | 2020-04-09T14:42:39 | 217,833,571 | 1 | 1 | null | 2022-12-08T06:15:23 | 2019-10-27T09:42:22 | CSS | UTF-8 | Python | false | false | 486 | py | # Generated by Django 2.2.6 on 2019-10-23 22:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Profile', '0004_auto_20191023_2029'),
]
operations = [
migrations.AlterField(
model_name='userh... | [
"ago@localhost.localdomain"
] | ago@localhost.localdomain |
04df0af248d5acc99c9684d7a48956217352b289 | 822bc290f7df79378702df6d1934a412f03191d2 | /zentral/contrib/nagios/views.py | e0ed7b317ffe3a534e318ee08aafb3e526cc840c | [
"Apache-2.0"
] | permissive | zoocoup/zentral | 746638fc0380a738ce7cc4b179adde514a9557ac | af4439732ba6ba2429c617a365d8eaf3db847520 | refs/heads/master | 2022-12-18T15:00:38.136171 | 2020-09-24T17:42:23 | 2020-09-27T15:03:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,911 | py | import logging
import os.path
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from django.urls import reverse_lazy
from django.views.generic import View, ListView
from django.views.generic.edit import CreateView, UpdateView, D... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
cf6c04bd247836074769eaceb80b843aae403f54 | a4df0ee67d0d56fc8595877470318aed20dd4511 | /vplexapi-6.2.0.3/vplexapi/models/port_exports.py | 3738a9002bd0b5dd922eb37893cc064c33b99a2a | [
"Apache-2.0"
] | permissive | QD888/python-vplex | b5a7de6766840a205583165c88480d446778e529 | e2c49faee3bfed343881c22e6595096c7f8d923d | refs/heads/main | 2022-12-26T17:11:43.625308 | 2020-10-07T09:40:04 | 2020-10-07T09:40:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,608 | py | # coding: utf-8
"""
VPlex REST API
A defnition for the next-gen VPlex API # noqa: E501
OpenAPI spec version: 0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class PortExports(object):
"""NOTE: This class is auto ... | [
"anil.degwekar@emc.com"
] | anil.degwekar@emc.com |
c23d89008bdf48420a933f86e9aaa36bae0f7e71 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /tools/perf/page_sets/android_acceptance.py | e17fbcd0d5d133a77cb3f2bec978f80d236d2b04 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"MIT"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 1,258 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import page as page_module
from telemetry.page import shared_page_state
from telemetry import story
class AndroidAcceptancePage(page_mod... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
9d570fabed08d3d5299f5d37f7be39f93191eb64 | 72481f5a28e8ecf9aeca6e6822413ba6ea2f2951 | /Part 3 - Classification/Random Forest Classification/random_forest.py | d4ceb200edb6e10f065a61fd2cd54e18781e4f30 | [] | no_license | sainihimanshu1999/Machine-Learning | 22265a5df227a73dddb137b45af25fe6f7ee0643 | 92aa974534c85d2959f21802f5bf46f3b3b63f01 | refs/heads/master | 2021-01-01T14:47:48.090663 | 2020-03-06T17:26:32 | 2020-03-06T17:26:32 | 239,324,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | #importing Libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#importing datasets and making matrices
dataset = pd.read_csv('Social_Network_Ads.csv')
x = dataset.iloc [ : , [2,3]].values
y = dataset.iloc [ : ,4 ].values
# Splitting the datasets into training set and test set
from sklear... | [
"sainihimanshu.1999@gmail.com"
] | sainihimanshu.1999@gmail.com |
e98d4ac2610d4db32e5bb453a5d7bde29d80d66f | f2cad16a7d4914be8f07630ed382b4dbc210ba12 | /Django1.7/bin/thresholder.py | d531fe825bfc378b5a96d76f6589083a5fd47f2f | [] | no_license | zhangdavids/a_forum | d5959c6dce000db5a9701456ef686cd27b41db7e | 95dc7c4fe3be44b1c06487b9e2629e8ee2ccc545 | refs/heads/master | 2021-01-21T15:00:50.489274 | 2017-06-25T15:49:22 | 2017-06-25T15:49:22 | 95,369,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | #!/Users/zhangjun/PycharmProjects/untitled5/django_forum/Django1.7/bin/python2.7
#
# The Python Imaging Library
# $Id$
#
# this demo script illustrates how a 1-bit BitmapImage can be used
# as a dynamically updated overlay
#
import sys
if sys.version_info[0] > 2:
import tkinter
else:
import Tkinter as tkinter... | [
"1269969739@qq.com"
] | 1269969739@qq.com |
ea7ae22f6326366a68a06f90b3c713f1ddf9e11d | c30bec69ed0791fc10083e785ae255f5a222fda5 | /spider/__init__.py | ebb841daea7190acb89d9fac5acbcabb512f7d4e | [
"BSD-2-Clause"
] | permissive | liudong1949/PSpider | 1448be5fd60e2a589fe64b52698f7da8830f1719 | bf6e48d56dc686568bcbe922bbcfca61282d696e | refs/heads/master | 2020-04-15T09:52:31.044190 | 2018-12-31T15:25:00 | 2018-12-31T15:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # _*_ coding: utf-8 _*_
"""
define WebSpider, and also define utilities and instances for web_spider
"""
__version__ = "2.1.3"
from .utilities import *
from .concurrent import TPEnum, WebSpider
from .instances import Fetcher, Parser, Saver, Proxieser
| [
"qixianhu@qq.com"
] | qixianhu@qq.com |
e685be6d5bb49ec09d4d710a4cbedec74c0b5c49 | 731a0fee2fc6e47701a58d73d81247cc1d32a51b | /code/processing/20160816_r1_O1_IPTG_titration/analysis.py | b0d073e224a4c45d8b350a60e65c8ebfcc9c0968 | [] | no_license | RPGroup-PBoC/mwc_induction | ea30c2f5876f1d51835d3d1557facca49914b231 | 815d7914ea2f9530f4cc4f46dc19d4ac82e52573 | refs/heads/master | 2021-03-16T10:23:39.073020 | 2018-01-30T00:41:11 | 2018-01-30T00:41:11 | 62,758,735 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,244 | py | import os
import glob
# Our numerical workhorses
import numpy as np
import pandas as pd
import scipy
# Import matplotlib stuff for plotting
import matplotlib.pyplot as plt
import matplotlib.cm as cm
# Seaborn, useful for graphics
import seaborn as sns
# favorite Seaborn settings for notebooks
rc={'lines.linewidth': 2... | [
"gchure@caltech.edu"
] | gchure@caltech.edu |
c826d50873613c75b1dd552dbd03cf124bc79494 | a3354726b126b85987a1455bd4b1ed0a4d05f5bb | /config/urls.py | ba82388cd3af0807c09e445af2da949c71987204 | [] | no_license | RonaldTheodoro/django-blog | cea90ab619e69560013a995c8d67d65e4593e0a9 | 92b64aa93c495fef835e64a98c9619cba3f518c4 | refs/heads/master | 2020-04-01T06:05:08.492523 | 2018-10-20T15:28:53 | 2018-10-20T15:28:53 | 152,932,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"ronald.silva4@fatec.sp.gov.br"
] | ronald.silva4@fatec.sp.gov.br |
6b166419fd703dc4de3a80eca435eead023e1806 | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Cursos/Curso Em Video - Gustavo Guanabara/Curso em Vídeo - Curso Python/Trabalhando com Modulos/aula_8a1.py | 2006736319b973382140ed52869fc3165e67178b | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | # Program: aula_8a1.py
# Author: Ramon R. Valeriano
# Description:
# Updated: 24/09/2020 - 20:31
from math import sqrt, floor
number = float(input('Digite um número: '))
result = sqrt(number)
print('A raiz quadrada do número {} = {:.3f}'.format(number, result))
print('A raiz quadrada do número {} = {:.3f}'.format(num... | [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
378aa98bba4a340517ef166945bc4291926a5453 | aa0647eaf1d6c3e45ff40718312d5e50da6007ad | /touchdown/frontends/progress.py | aaf26d6fd8722403d37f2b764f76e9aa2aa4fa30 | [
"Apache-2.0"
] | permissive | yaybu/touchdown | bd9164893d93fda02bfd8ea1932020d9486fc226 | 70ecda5191ce2d095bc074dcb23bfa1584464814 | refs/heads/master | 2021-07-26T19:28:17.430492 | 2019-08-23T13:27:02 | 2019-08-23T13:27:02 | 23,874,177 | 14 | 5 | Apache-2.0 | 2019-08-23T20:15:45 | 2014-09-10T12:47:51 | Python | UTF-8 | Python | false | false | 1,270 | py | # Copyright 2014 Isotoma Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | [
"john.carr@unrouted.co.uk"
] | john.carr@unrouted.co.uk |
192e2ac4dba4a3edb2e70ea7abdf2d4de043f285 | 665a90f568b911706ff3c633e5dd9ec2233aee7e | /OOP/testing/hero/test/test_hero.py | 8afad7e59bbaeba30f3c3b0a2650cf6b13cb43a2 | [] | no_license | branchev/SoftUni | 5e33546f659e41619c6ae5c1899ae7b62332edf3 | f0f67e929ce9091232f899817b7ac10e649de7ed | refs/heads/main | 2023-04-05T13:56:29.438986 | 2021-04-21T06:04:19 | 2021-04-21T06:04:19 | 324,530,244 | 0 | 0 | null | 2021-01-06T20:40:04 | 2020-12-26T10:22:25 | Python | UTF-8 | Python | false | false | 2,198 | py | from project.hero import Hero
from unittest import TestCase, main
class HeroTests(TestCase):
def setUp(self):
self.my_hero = Hero("Hero", 10, 100, 10)
self.enemy_hero = Hero("Enemy", 5, 50, 5)
def test_is_properly_initiated(self):
self.assertEqual(self.my_hero.username, "Hero")
... | [
"ranchev.boris@abv.bg"
] | ranchev.boris@abv.bg |
dbf5313c37e3d72f117edb84158006e2ffdc8f72 | d5a2a69b23424e44e853a612a584906280431587 | /recommendation/app/helpers/builder/rank_feature_relevance.py | 658681bf24adcf05085e580eed7a5317f89efc5a | [] | no_license | shravanc/recommendation_service | 4548408d13e59f56d549ecbed7f53222f9de1118 | 6ab8abf00dd55318def49d81b6783b793b62db49 | refs/heads/master | 2023-05-10T17:29:21.049286 | 2020-04-10T12:17:53 | 2020-04-10T12:17:53 | 246,299,397 | 0 | 0 | null | 2023-05-01T21:21:39 | 2020-03-10T12:48:58 | Python | UTF-8 | Python | false | false | 630 | py | import tensorflow as tf
class RankFeatureRelevance():
def __init__(self, user_feats, num_feats, num_users, feats, users):
self.user_feats = user_feats
self.num_feats = num_feats
self.num_users = num_users
self.feats = feats
self.users = users
self.top_user_features = None
def... | [
"shravan007.c@gmail.com"
] | shravan007.c@gmail.com |
d2b1c2e462072a501a8bdf5ea75111e175d113bf | d8aa70c51293921462c669795e9c085241bda117 | /kits19cnn/models/resunet.py | 1a1dff6b0e47a1d967f5885130b100a3619ff8c3 | [
"Apache-2.0"
] | permissive | jchen42703/kits19-2d-reproduce | 8f3cf2696d07785e0b193602d4e67851400c30f1 | 81d7413022220ea86a23212737b3682e84ae74a4 | refs/heads/master | 2020-11-24T10:20:04.048667 | 2020-02-04T19:46:38 | 2020-02-04T19:46:38 | 228,104,170 | 9 | 2 | Apache-2.0 | 2020-02-10T20:47:34 | 2019-12-14T23:38:39 | Jupyter Notebook | UTF-8 | Python | false | false | 4,921 | py | # Copyright 2019 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://w... | [
"jchen42703@gmail.com"
] | jchen42703@gmail.com |
6ce436ad693cf6ffd53e62d3d297132af29d5575 | 0af30c2e3ddcc80a19ea9cfaad9d7e1fedf8b876 | /210129/다이나믹 프로그래밍/병사 배치하기/배진수.py | 578ec2ca018c7a1fc863e07fd643b33a9a2a9d65 | [] | no_license | winterash2/algorithm_study_2021_1 | d1cd6077f71f68e7fc3eb6dfae7b2cc220885e4c | c1fee62c7e5e560c3bf7ae5e6166866d0147f23f | refs/heads/master | 2023-04-02T20:11:04.169856 | 2021-04-05T11:18:22 | 2021-04-05T11:18:22 | 327,563,535 | 1 | 2 | null | 2021-01-24T14:17:40 | 2021-01-07T09:28:08 | Python | UTF-8 | Python | false | false | 202 | py | n = int(input())
sol = list(map(int, input().split()))
dp = [1] * n
for i in range(1, n):
for j in range(i):
if sol[j] > sol[i]:
dp[i] = max(dp[i], dp[j]+1)
print(n - max(dp)) | [
"jinsoo941010@naver.com"
] | jinsoo941010@naver.com |
ebee8bbd6dc17d37c0ef573b8838fd250745c50e | a5e23bf0833b19a8477d2fefbabb1a94d4d9a671 | /tests/test_controller.py | 6ca276686b70878118160261e7c01f8bbd79cf73 | [] | no_license | EnTeQuAk/zing | 85295e8962e93ed928be0fbdbd50521e87775acf | c516172756af383c2a821c0bb41f8c66f821686a | refs/heads/master | 2020-05-18T16:40:50.985387 | 2013-12-12T22:57:35 | 2013-12-12T22:57:35 | 15,119,668 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | #-*- coding: utf-8 -*-
import unittest
from boto.sqs.connection import SQSConnection
from moto import mock_sqs
from zing.controller import Controller, get_sqs_region
from zing.message import EventMessage
class TestControllerUtils(unittest.TestCase):
def test_region(self):
region = get_sqs_region('us-east-... | [
"cg@webshox.org"
] | cg@webshox.org |
5844a3ee5ce7da554ee894ac27ca4c5fbca451b9 | 7333a0c3f747878b832c1974ad904c336a4ff721 | /mopidy_podcast_itunes/library.py | 114953a056fe49fe66024009330d7829f57f09f1 | [
"Apache-2.0"
] | permissive | tkem/mopidy-podcast-itunes | 0d96f9a141ed1b8c9d2d1a6e91e569e634aba905 | f73585b2838e7fc1a3d5a31dedb8d940ef49ae19 | refs/heads/master | 2022-05-17T03:44:15.813290 | 2022-04-03T21:05:34 | 2022-04-03T21:05:34 | 17,503,058 | 11 | 7 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | import collections
import logging
from mopidy import backend, models
from . import Extension, translator
ROOT_GENRE_ID = "26" # "Podcasts"
logger = logging.getLogger(__name__)
class iTunesPodcastLibraryProvider(backend.LibraryProvider):
def __init__(self, config, backend):
super().__init__(backend)
... | [
"tkemmer@computer.org"
] | tkemmer@computer.org |
6d478b688f24cc17fc40554185adc2c4b17ca834 | 0ebc26d2317b4d0c292f88bb20a56a3358bbe433 | /datacode/panel/did/reg.py | fec49f7f370052e929a62dad46446efe6e681454 | [
"MIT"
] | permissive | nickderobertis/data-code | ce326e941e940b446aa26119cc090e956de45786 | b4649a1702ccd6b68995e58cc53d74544ff34294 | refs/heads/master | 2023-01-13T09:16:55.947974 | 2020-09-27T08:43:08 | 2020-09-27T08:43:08 | 237,456,286 | 0 | 1 | MIT | 2022-12-26T21:37:24 | 2020-01-31T15:19:23 | Python | UTF-8 | Python | false | false | 1,869 | py | from typing import List, Tuple, Optional
import pandas as pd
from regtools.interact import _interaction_tuple_to_var_name
from regtools import reg_for_each_yvar_and_produce_summary
def diff_reg_for_each_yvar_and_produce_summary(diff_df: pd.DataFrame, yvars: List[str], treated_var: str,
... | [
"whoopnip@gmail.com"
] | whoopnip@gmail.com |
52217a009a5f043d1965af5a88f44fba92abdc7a | 1ae03694e6826c2c3224647024f66debcebd62dc | /python/learning_linear_and_rbf/wineq/gaussian_kernel_cnmf/gaussian_cnmf.py | 2f39403189d87332dfca12dae2e94a52f1264756 | [
"Apache-2.0"
] | permissive | Joaggi/Robust-kernels-for-robust-location-estimation | 5ad7f8f3be9a08e5d4283e03e017e5e3b9b186b8 | 9db62273de90547c982d819dc45e66ac86bfcb58 | refs/heads/master | 2023-04-17T22:41:01.652426 | 2022-08-02T23:43:31 | 2022-08-02T23:43:31 | 27,465,913 | 3 | 1 | null | 2022-08-02T23:39:44 | 2014-12-03T02:49:24 | MATLAB | UTF-8 | Python | false | false | 3,283 | py | __authors__ = "Joseph Gallego"
__email__ = "jagallegom@unal.edu.co"
import semantic_methods_toolkit.python.utils.dataset_factory as dataset_factory
from semantic_methods_toolkit.python.unsupervised_technique.cnmf_experiment \
import CnmfExperiment
from semantic_methods_toolkit.python.tunning_parameter_unsupervised... | [
"joaggi@gmail.com"
] | joaggi@gmail.com |
1ae6fa77e861da938d8a0739af48e1d4400fd58c | 6411acb3828fec8cc79f6f2630a4d99e8352a9aa | /933.py | a4b27d1a2e2edd86df1221d8876b6498878bbba9 | [] | no_license | zhouliuling/Leetcode_Task | 95f55a3ca33b561a130fc15272e513d9af2c0317 | 0230d31351a4093e8ae6be5fe0c175f3f41e08ac | refs/heads/master | 2020-05-25T18:44:59.377953 | 2019-09-12T02:14:22 | 2019-09-12T02:14:22 | 187,935,297 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | ## 最近的请求次数
## 队列队尾进队首出的特性
from collections import deque
class RecentCounter(object):
def __init__(self):
self.queue = deque()
## 在一次调用中计算3s内调用ping的次数
def ping(self, t):
"""
:type t: int
:rtype: int
"""
self.queue.append(t)
while(se... | [
"noreply@github.com"
] | zhouliuling.noreply@github.com |
492c35c0aa61f9362def6ffb48aa57323448d72e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03434/s025342209.py | ef7708c38b6aa803435187b376b9110399468c12 | [] | 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 | 189 | py | N = int(input())
a = list(map(int,input().split()))
a.sort(reverse=True)
alice = 0
for i in range(0,N,2):
alice += a[i]
bob = 0
for i in range(1,N,2):
bob += a[i]
print(alice - bob) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
35e3e1facf96b5412c699cd1fd30d3f8ece0c4e3 | 0d0cf0165ca108e8d94056c2bae5ad07fe9f9377 | /3_Python_Data_Science_Toolbox_Part1/2_Default_arguments_variable-length_arguments_and_scope/theKeywordNonlocalAndNestedFunctions.py | 3f20583a477b6e36b02991ffcea16bf65be183cb | [] | no_license | MACHEIKH/Datacamp_Machine_Learning_For_Everyone | 550ec4038ebdb69993e16fe22d5136f00101b692 | 9fe8947f490da221430e6dccce6e2165a42470f3 | refs/heads/main | 2023-01-22T06:26:15.996504 | 2020-11-24T11:21:53 | 2020-11-24T11:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | # The keyword nonlocal and nested functions
# Let's once again work further on your mastery of scope! In this exercise, you will use the keyword nonlocal within a nested function to alter the value of a variable defined in the enclosing scope.
# Instructions
# 100 XP
# Assign to echo_word the string word, concatenated... | [
"noreply@github.com"
] | MACHEIKH.noreply@github.com |
9234c901b05b6ef935fa9e6908a42dcb930412d4 | d488f052805a87b5c4b124ca93494bc9b78620f7 | /google-cloud-sdk/.install/.backup/lib/surface/compute/disks/update.py | 0b44e9bc941679f50467007e8e4b8a26f7d6802f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | PacktPublishing/DevOps-Fundamentals | 5ce1fc938db66b420691aa8106ecfb3f9ceb1ace | 60597e831e08325c7e51e8557591917f7c417275 | refs/heads/master | 2023-02-02T04:48:15.346907 | 2023-01-30T08:33:35 | 2023-01-30T08:33:35 | 131,293,311 | 13 | 19 | null | null | null | null | UTF-8 | Python | false | false | 6,858 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"saneetk@packtpub.com"
] | saneetk@packtpub.com |
0579d4d2f32e60a1abf0f3f0ab8d4426b00bcfe1 | e9538b7ad6d0ce0ccfbb8e10c458f9e0b73926f6 | /plugins/action/bigip.py | c27ca46269509cd11c27d72328f3f12c6008bc55 | [] | no_license | ansible-collection-migration/misc.not_a_real_collection | b3ef8090c59de9ac30aca083c746ec3595d7f5f5 | 7ab1af924a3db4ada2f714b09bb392614344cb1e | refs/heads/master | 2020-12-18T13:48:51.849567 | 2020-01-22T17:39:18 | 2020-01-22T17:39:18 | 235,400,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,719 | py | #
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is d... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
85faf1419d14b02cd14535cdff446a11d43cb430 | 1b8b4cdd251877868c1d3530fab7e84a692c91be | /django-projects/touchmytab/laptops/migrations/0001_initial.py | 03aa60637922985703e8805ad223c79575c0ec41 | [] | no_license | vaibhavmule/learning-python | d1756f4e160bd24e4a2d1d05e383866f2248d523 | 46ec3a437606526760d56ccfefaad74f7184c9ab | refs/heads/master | 2021-09-28T19:42:47.545788 | 2020-07-24T14:07:06 | 2020-07-24T14:07:06 | 20,795,878 | 0 | 2 | null | 2021-09-22T19:33:09 | 2014-06-13T07:29:00 | HTML | UTF-8 | Python | false | false | 2,285 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Laptop'
db.create_table(u'laptops_laptop', (
... | [
"vaibhavmule135@gmail.com"
] | vaibhavmule135@gmail.com |
90bdd4dcf9a8a706bda8581e1b6a0aac7dff3a53 | 47d1beba77ebde115c5d41b25a15ef144068c930 | /redirects/migrations/0003_remove_redirectpage_sort_order.py | 9ae9cd48449dd34210ad41b986f9e7c85a449a2e | [] | no_license | uchicago-library/library_website | f32d7dcaf793b4646cac37ba7270715dccf84820 | e5912a17ed2de3a61ede2fbebda4a258664ff696 | refs/heads/master | 2023-08-16T20:20:45.063253 | 2023-08-10T21:19:12 | 2023-08-10T21:19:12 | 39,917,251 | 5 | 4 | null | 2023-08-10T21:19:14 | 2015-07-29T21:27:58 | Python | UTF-8 | Python | false | false | 404 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-10 16:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('redirects', '0002_auto_20160328_1905'),
]
operations = [
migrations.RemoveField(
... | [
"bbusenius@users.noreply.github.com"
] | bbusenius@users.noreply.github.com |
02773740d74ce3b7be0520c6eaa522a57469a4e0 | 2b4790d77439d89ad27bdd04bac539283f0dd605 | /learn_py_the_hard_way/string and text.py | ddabacaac461e94dad2570d0f29eda0a602f0fa1 | [] | no_license | ajioy/python-ex | 9fde4bcfe35edeee5050365660a03bdb6b913da1 | 982a3cdf0de0e140faa4cb539f2961b311de2c2a | refs/heads/master | 2020-04-05T14:06:09.909935 | 2018-08-14T14:43:55 | 2018-08-14T14:43:55 | 59,105,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | #exercise 6
x = "there are %d types of people," % 10
binary = "binary"
do_not = "don't"
y = "those who know %s and those who %s" % (binary,do_not)
print x
print y
print "i said: %r." % x # keep up single quotes
print "i said: %s." % x # no single quotes
print "i also said: '%s'." % y
hilarious = False
joke_evalut... | [
"ajioy@hotmail.com"
] | ajioy@hotmail.com |
6ea6937db446973a7b354e14ae98bbdbc9210d6b | fdb486c199378321fc4a81a1e2aa1fb3244ab812 | /Day20-25/23.py | cc81ac205bc8fda3b9398f8cb931ce43d8e96202 | [
"MIT"
] | permissive | bcongdon/advent_of_code_2017 | c4f55d974365a046f8ab07beeb445b2f6b6761f8 | ad9a9b028716c9387dddc3ef9ee34c3a70fea151 | refs/heads/master | 2021-09-28T19:26:41.666839 | 2018-11-19T23:36:54 | 2018-11-19T23:36:54 | 112,739,784 | 15 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | from collections import defaultdict
class VM:
def __init__(self, instructions, registers=None):
self.instructions = instructions
self.pc = 0
if registers is None:
registers = defaultdict(int)
self.registers = registers
self.num_mul_ops = 0
def _get_value(s... | [
"bencongdon96@gmail.com"
] | bencongdon96@gmail.com |
30b2ea6d07b13860c98fabfb6d1ab0c4c663b11b | 9d9f2ad68884294ceb077aee82ae0d8ffb7d7fe8 | /scipy/scipy_interpol2.py | c19aad242197d764bf92c230a68d33c7f1f0ab75 | [] | no_license | jb-liran/Numpy | 64a6879000aa9101c670ebf8c38442d1435ba7df | 61b1159297a1e445a636cbbae91d8bca5c79edbf | refs/heads/master | 2020-03-12T14:03:34.705953 | 2018-04-25T10:41:02 | 2018-04-25T10:41:02 | 130,657,731 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 15 18:20:54 2015
@author: liran
"""
from scipy.interpolate import interp1d
from pylab import plot, axis, legend
import numpy as np
xdata = np.array([-2,-1.64,-1.33,-0.7,0,0.45,1.2,1.64,2.32,2.9])
ydata = np.array([0.699369,0.700462,0.695354,1.03905,1.97389,2.41143,1.91... | [
"you@example.com"
] | you@example.com |
cd9859d64f39e9af79f249b6a584576d1cb79445 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/associated_remark_2.py | c6eb6151cc9be3d30be325fd1a294c6e923b3b12 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 392 | py | from __future__ import annotations
from dataclasses import dataclass
from travelport.models.type_associated_remark_1 import TypeAssociatedRemark1
__NAMESPACE__ = "http://www.travelport.com/schema/vehicle_v52_0"
@dataclass
class AssociatedRemark2(TypeAssociatedRemark1):
class Meta:
name = "AssociatedRemar... | [
"chris@komposta.net"
] | chris@komposta.net |
65cfe94bc818fdefd09f98df3c641ce16697e9ce | 96fe253e9a740b51dcd7f83d6ab01bb248c2bf4b | /principios_SOLID/OCP/Forma - No OCP/cuadrado.py | 64ced82c0f8eb12a8a87515d68715292e6eaa515 | [] | no_license | vvalotto/Patrones_Disenio_Python | 7574470752a5f14214434a927c2c5e0faaa592ba | 7ab6a74e9b008c3434af0a56d4c2b6b7de3617bf | refs/heads/master | 2021-04-28T19:16:21.535998 | 2018-10-21T14:05:36 | 2018-10-21T14:05:36 | 121,891,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | '''
Created on 21/07/2013
@author: voval
'''
from forma import Forma
class Cuadrado:
def __init__(self, lado):
self._tipo = 1
self._lado = lado
return
| [
"vvalotto@gmail.com"
] | vvalotto@gmail.com |
6d543d00abd991212ae10818cfa797ed9350f0ae | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_Conv3D_1.py | 30ee10131f4b5b3c3ea84c938317db0b8e0987d6 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 608 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
449d1d828ebe0bb5123cc7948bc37b064b7cc20c | 54b70a12932f93216d499666998d80a13fc1fb28 | /PyDSTool/Toolbox/optimizers/line_search/tests/test_fibonacci_section.py | 42b09d0a87d7894406997646b0c7d2303f348ed0 | [
"BSD-2-Clause"
] | permissive | waltherg/pydstool-1 | 8e3954b0b5f8728290fd772536987b16325a1b52 | e56086b230627e7cbe2099f3cd0734cb6918dc7f | refs/heads/master | 2021-01-15T20:48:15.566752 | 2013-09-27T08:47:02 | 2013-09-27T08:47:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | #/usr/bin/env python
# Matthieu Brucher
# Last Change : 2007-08-22 14:01
import unittest
import numpy
from numpy.testing import *
set_package_path()
from line_search import FibonacciSectionSearch
restore_path()
class Function(object):
def __call__(self, x):
return (x[0] - 2) ** 2 + (2 * x[1] + 4) ** 2
de... | [
"rob.clewley@gmail.com"
] | rob.clewley@gmail.com |
31e79796397ad859b57c029bc33ef4613dc29a1b | e03efda7ffd427e08958bcf9aecab05cf37c487e | /python/taichi/two_d/simulator.py | 6542b9849a603c38bc9ebd4325306b97922bcaea | [
"MIT"
] | permissive | lulunaticman/taichi | b05ecd9c1154944f479be68f4c3e01eaffcb07ed | 0b91c1af4c910fe0f9b818bdd4c28618e27aabfa | refs/heads/master | 2021-01-19T18:56:12.995014 | 2017-03-30T15:07:45 | 2017-03-30T15:07:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | import taichi as tc
from taichi.misc.util import *
class Simulator(object):
def __init__(self, simulation_time, dt):
self.events = []
self.simulator = None
self.simulation_time = simulation_time
self.dt = dt
self.delta_x = 1
self.particles = []
def add_event(se... | [
"iterator.advance@gmail.com"
] | iterator.advance@gmail.com |
1985cefdca51b03f8bdcae1a86c139a0e7095e21 | 55815c281f6746bb64fc2ba46d074ca5af966441 | /easy/1903.py | e436b6eca9ee8a6fece4c1fc11fdfe359e981122 | [] | no_license | brandoneng000/LeetCode | def5107b03187ad7b7b1c207d39c442b70f80fc2 | c7a42753b2b16c7b9c66b8d7c2e67b683a15e27d | refs/heads/master | 2023-08-30T23:38:04.845267 | 2023-08-30T08:42:57 | 2023-08-30T08:42:57 | 199,584,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | class Solution:
def largestOddNumber(self, num: str) -> str:
num = list(num)
while len(num) > 0 and int(num[-1]) % 2 != 1:
num.pop()
return ''.join(num)
def main():
sol = Solution()
print(sol.largestOddNumber("52"))
print(sol.largestOddNumber("4206"... | [
"brandoneng000@gmail.com"
] | brandoneng000@gmail.com |
f243955506a60ac3b721377839a479ab86b63c8d | 40d404e424489bb48c3673dee6664de64dbab39c | /myWebsite/venv/lib/python3.8/site-packages/zope/ptresource/tests.py | 30f46477914f808d654cbf9599d659d7ae057521 | [] | no_license | alyasamba/me | 07c9f5f27aa16f768e0432780ac8f6f5ab6afbd1 | 978053c867181bad8eb316a0920ba290a7b1ceae | refs/heads/main | 2023-01-28T09:57:46.616285 | 2020-12-02T02:31:25 | 2020-12-02T02:31:25 | 315,935,399 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... | [
"sopesherifabdoulah@gmail.com"
] | sopesherifabdoulah@gmail.com |
83a2fb7e72ffd07afcc6b9b0f51220c9403f8882 | afbae26b958b5ef20548402a65002dcc8e55b66a | /release/stubs.min/Autodesk/Revit/DB/Structure/__init___parts/SurfaceElementExtension.py | 94db6159566c5872f4ef504935197841bce4af9a | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 964 | py | class SurfaceElementExtension(Enum,IComparable,IFormattable,IConvertible):
"""
Presets for given Analytical Extension.
enum SurfaceElementExtension,values: BottomOrTop (0),Plane (1)
"""
def __eq__(self,*args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """
pass
def __fo... | [
"gtalarico@gmail.com"
] | gtalarico@gmail.com |
047c0404ef1402442e8e7063829f08caf57900a1 | f343b2ac4f5b52abd5e6a8fb6bef55acf3a32154 | /materials/projects/birthdayTracker/app.py | e3983200ea9678d81e3bdf9792c867d9d894ef21 | [] | no_license | asyrul21/recode-beginner-python | 41248d59199ac3660ef40aa3a5fdf23fadfb6b5b | 93608e2880aec1774e898d5f1a663dc84e246b46 | refs/heads/master | 2023-07-04T21:59:08.135443 | 2021-08-09T01:43:30 | 2021-08-09T01:43:30 | 330,307,505 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,289 | py | from helper.JsonReadWriter import JsonReadWriter
from helper.NavigationDisplay import NavigationDisplay
from helper.TableDisplay import TableDisplay
from config import DATE_FORMAT
from Birthdate import Birthdate
from datetime import date, datetime
import time
##############################################
DATA_PATH_JS... | [
"asyrulhafetzy.21@gmail.com"
] | asyrulhafetzy.21@gmail.com |
6c70a33ac29f6dfcd8d81ab96fee1b6b363f3b7d | 452b8b849e080cda5a26f4018cafa5a674ff7c20 | /froide/foisite/templatetags/foisite_tags.py | 475f839767de406ee091c20a2972842ff3e6bbb1 | [
"MIT"
] | permissive | okffi/tietopyynto | 1262dcaf748c41b49be4a774be552fc75fc9b336 | 66b7e7dbf3c3395d79af3da85b3b58f01fad62dc | refs/heads/tietopyynto | 2021-01-17T21:07:04.829856 | 2016-10-30T19:26:53 | 2016-10-30T19:26:53 | 14,255,294 | 3 | 2 | MIT | 2021-01-05T11:51:18 | 2013-11-09T10:19:16 | Python | UTF-8 | Python | false | false | 315 | py | from django import template
from froide.foisite.models import advisor
from froide.helper.utils import get_client_ip
register = template.Library()
def advise_foisite(context):
ip = get_client_ip(context['request'])
return advisor.get_site(ip)
register.assignment_tag(takes_context=True)(advise_foisite)
| [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
2f5fa4d7176b6ef15035f252f2b59eda16a3853f | dca3bd86af33b3468c630283cfff907ce105a5b3 | /micropython-esp32/mqtt_example-tryout/wifi_example.py | 160a002b68e4186aca8123ee982705d0932b7982 | [] | no_license | saimaza123/m5stack-playlist | 7bfca48c7db2e46dc31bb507d6ce7ac01d210056 | 00c2b9f2506e6c67935659ccc685004445eef1e5 | refs/heads/main | 2023-03-09T03:31:35.106747 | 2020-10-29T02:48:55 | 2020-10-29T02:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | from m5stack import lcd
import machine, network, utime
lcd.print("")
lcd.print("Starting WiFi ...")
sta_if = network.WLAN(network.STA_IF); sta_if.active(True)
sta_if.connect("logic_debug",'ohzei7eexaimo3Ae')
tmo = 50
while not sta_if.isconnected():
utime.sleep_ms(100)
tmo -= 1
if tmo == 0:
sta_if.... | [
"louiscklaw@gmail.com"
] | louiscklaw@gmail.com |
07320d58cc185ddc414b0ce4ecc4c0d999a56535 | 663676e406641b1f4ecbc09e214bb41cab47198b | /day23/day23b.py | 126649e6e566c2122068a90c1367e7b525d1824e | [] | no_license | yuanxu1990/studyday | 362055c18a78424cedad73e28858620a66472db2 | aad0b2b36d06b50b476fcc0972e1ba64747b5b61 | refs/heads/master | 2020-09-14T17:19:25.352463 | 2020-04-28T13:34:49 | 2020-04-28T13:34:49 | 223,197,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | '''
面向对象的三大特性: 继承 多态 封装
类的组合:一个对象的属性值是另外一个类的对象
w=weapon('粪叉子',100,3,200)
yuanbao.get_weapon(w) 通过self 将武器对象绑定成自己的属性值
yuanbao.weapon.hand18(jin)
'''
# class dog:
# def __init__(self,name,aggr,hp,kind):
# self.name=name
# self.aggr=aggr
# self.hp=hp
# ... | [
"yuanx"
] | yuanx |
5b97c1a8b313818bd65a6d30b011d3eecc4f78c7 | 46ac0965941d06fde419a6f216db2a653a245dbd | /sdks/python/appcenter_sdk/models/BugTrackerIssuesResult.py | 7fbbd86c9442aedf9d53d45bc88dca456c7e2068 | [
"MIT",
"Unlicense"
] | permissive | b3nab/appcenter-sdks | 11f0bab00d020abb30ee951f7656a3d7ed783eac | bcc19c998b5f648a147f0d6a593dd0324e2ab1ea | refs/heads/master | 2022-01-27T15:06:07.202852 | 2019-05-19T00:12:43 | 2019-05-19T00:12:43 | 187,386,747 | 0 | 3 | MIT | 2022-01-22T07:57:59 | 2019-05-18T17:29:21 | Python | UTF-8 | Python | false | false | 3,087 | py | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
class BugTrackerIssu... | [
"b3nab@users.noreply.github.com"
] | b3nab@users.noreply.github.com |
8b283bc0520fc05da5cf2dc6de441d303c418706 | f2b27ea4b474916e5b7cf1f55901cf6e01b6ee3c | /16-interactive-data-visualization-with-bokeh/04-putting-it-all-together-a-case-study/03-enhancing-the-plot-with-some-shading.py | 1b9bd0e706c5c18ad07bd3640ff9bbe96d141ce5 | [] | no_license | ariscon/DataCamp_Files | a21f1265b6ad5aed04d9724be78b08634f81312e | f7e496391b1d4649bf1186b9a1c9b83fa9a50044 | refs/heads/master | 2020-04-13T04:27:01.650215 | 2018-12-30T22:51:43 | 2018-12-30T22:51:43 | 162,962,035 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | '''
Enhancing the plot with some shading
Now that you have the base plot ready, you can enhance it by coloring each circle glyph by continent.
Your job is to make a list of the unique regions from the data frame, prepare a ColorMapper, and add it to the circle glyph.
INSTRUCTIONS
100XP
Make a list of the unique valu... | [
"noreply@github.com"
] | ariscon.noreply@github.com |
d1bc4f5e9f24ad52e3c639907b800ee5876ac0f3 | 4ed3db861ae2fe727c7be604d42d540a00923320 | /tests/samsung_multiroom/service/test_nullplayer.py | 253296280ce97dd35a4f06af2cf30e95a038c817 | [
"MIT"
] | permissive | kusma/samsung_multiroom | 7cac147283a52bf491d7f50a6569c64de53eb4a5 | 09ca86d27b87a4aa0c97ec2accbd4ec67dd0cc61 | refs/heads/master | 2020-12-04T07:46:19.688568 | 2019-04-20T16:29:44 | 2019-04-20T16:29:44 | 231,683,383 | 0 | 0 | MIT | 2020-01-03T23:47:29 | 2020-01-03T23:47:28 | null | UTF-8 | Python | false | false | 2,250 | py | import unittest
from unittest.mock import MagicMock
from samsung_multiroom.service import REPEAT_OFF
from samsung_multiroom.service import REPEAT_ONE
from samsung_multiroom.service.player_operator import NullPlayer
class TestNullPlayer(unittest.TestCase):
def test_is_supported(self):
player = NullPlayer... | [
"k.galutowski@gmail.com"
] | k.galutowski@gmail.com |
bf7d223bb623c6405ccba249b0c462b33afb1c19 | 32f61223ae8818f64922d69dc8d279428cd568e3 | /AlphaTwirl/AlphaTwirl/HeppyResult/TblComponentConfig.py | b616a2d4d4322ba73ac9a6afbb080379989dc5cc | [
"BSD-3-Clause"
] | permissive | eshwen/cutflowirl | 959fdead7cc1f58e77e68074a9ee491c3259c6d6 | e20372dc3ce276c1db4e684b8e9f1e719b9e8e7d | refs/heads/master | 2020-04-05T11:20:49.000726 | 2017-11-23T16:15:10 | 2017-11-23T16:15:10 | 81,349,000 | 0 | 0 | null | 2017-11-23T16:15:11 | 2017-02-08T16:15:59 | Python | UTF-8 | Python | false | false | 1,081 | py | # Tai Sakuma <tai.sakuma@cern.ch>
from ..misc import mkdir_p
from ..misc import listToAlignedText
import os
##__________________________________________________________________||
class TblComponentConfig(object):
def __init__(self, outPath, columnNames, keys):
self._outPath = outPath
self.columnNam... | [
"eshwen.bhal@bristol.ac.uk"
] | eshwen.bhal@bristol.ac.uk |
2284117e78773a7ead93706b659a14402eb26e05 | 1d6ecdb73010bdf3891e96db87754252ca0d3625 | /005k_voltage_scan_all_harmonics_damper_off_matrix_map/000_config_scan.py | 5f8e7a3e3af836aaca66421e47f80b7ee571ed21 | [] | no_license | giadarol/response_matrix_study | ff3bbe4ccb17cf2f94628b9de44ee7d65d11fc8c | 6642d66830a0db8def5e2bb3e53235ae4bee44f0 | refs/heads/master | 2020-12-23T03:56:21.177790 | 2020-05-10T06:02:19 | 2020-05-10T06:02:19 | 237,024,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | import os
import numpy as np
scan_folder_rel = 'simulations'
environment_preparation = f'''
source /afs/cern.ch/work/g/giadarol/sim_workspace_mpi_py3/venvs/py3/bin/activate
source /afs/cern.ch/work/g/giadarol/sim_workspace_mpi_py3/setpythopath
PYTHONPATH=$PYTHONPATH:{os.path.abspath('../')}
'''
# Last one is to get r... | [
"giovanni.iadarola@cern.ch"
] | giovanni.iadarola@cern.ch |
45db8353f66e632d7f846720bfbf1a37f26a90f6 | acf314ab0fa399018764b2ebd96e33c66362994e | /0x03-python-data_structures/10-divisible_by_2.py | 04abfae8ae7ec9c031ebe3078b2743ec3de983e2 | [] | no_license | glyif/holbertonschool-higher_level_programming | 98f9c2da0b71a4e9e2dd9f6fde755875e9015f34 | 14c02d79e2008db1b992b08f9faa55b20dbe0691 | refs/heads/master | 2021-01-20T06:53:16.179354 | 2017-09-28T18:14:12 | 2017-09-28T18:14:12 | 89,939,980 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #!/usr/bin/python3
def divisible_by_2(my_list=[]):
if my_list is None:
return
if len(my_list) == 0:
return
new_list = list(my_list)
i = 0
for element in my_list:
if element % 2 == 0:
new_list[i] = True
else:
new_list[i] = False
i = i ... | [
"122@holbertonschool.com"
] | 122@holbertonschool.com |
7846f35a7a63a87b52cf5173febfb25cdd334806 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_111/ch68_2020_04_27_19_50_59_854988.py | 460d784174cea8d3ed1d7aaf5ef6619cd77f88d8 | [] | 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 | 138 | py | def separa_trios(nomes):
listan=[]
for i in range(len(nomes),3):
a=nomes[i:i+3]
listan.append(a)
return listan | [
"you@example.com"
] | you@example.com |
b68001fa217f5f079b64093e529efae51dae128d | e86d020f8ade86b86df6ad8590b4458a9d415491 | /test-xooj/event_exam/cms/serializers.py | dfbef674cb08e023fff122b8b76aa15617c27b9a | [
"BSD-2-Clause"
] | permissive | g842995907/guops-know | e4c3b2d47e345db80c27d3ba821a13e6bf7191c3 | 0df4609f3986c8c9ec68188d6304d033e24b24c2 | refs/heads/master | 2022-12-05T11:39:48.172661 | 2019-09-05T12:35:32 | 2019-09-05T12:35:32 | 202,976,887 | 1 | 4 | null | 2022-11-22T02:57:53 | 2019-08-18T08:10:05 | JavaScript | UTF-8 | Python | false | false | 2,654 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from rest_framework import serializers
from common_framework.utils.image import save_image
from event_exam import models as event_models
from event.cms import serializers as base_serializers
TIME_FORMAT = "%Y-%m-%d %H:%M:%S"
class EventSerializer(base... | [
"842995907@qq.com"
] | 842995907@qq.com |
48960bea13ef8b6e39204216027eabf849b740c3 | ea99544eef7572b194c2d3607fa7121cb1e45872 | /apps/task/serializers.py | 37bc19dae6b5751310245a66e054d17cf6a5677b | [] | no_license | ash018/FFTracker | 4ab55d504a9d8ba9e541a8b682bc821f112a0866 | 11be165f85cda0ffe7a237d011de562d3dc64135 | refs/heads/master | 2022-12-02T15:04:58.543382 | 2019-10-05T12:54:27 | 2019-10-05T12:54:27 | 212,999,035 | 0 | 0 | null | 2022-11-22T03:58:29 | 2019-10-05T12:53:26 | Python | UTF-8 | Python | false | false | 5,837 | py | from django.utils import timezone
from rest_framework.serializers import ModelSerializer
from rest_framework import serializers
from django.core.exceptions import PermissionDenied
from rest_framework.exceptions import NotAcceptable, ValidationError
from apps.common.config import get_image_urls
from apps.task.helpers im... | [
"sadatakash018@gmail.com"
] | sadatakash018@gmail.com |
221001cd4e72beba8fcb1f091bded80c00996b1f | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /2.0.2/mpl_examples/style_sheets/style_sheets_reference.py | ef12c1ac3a0927db50258a2cfafa2fd956efb999 | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 4,964 | py | """
======================
Style sheets reference
======================
This script demonstrates the different available style sheets on a
common set of example plots: scatter plot, image, bar graph, patches,
line plot and histogram,
"""
import numpy as np
import matplotlib.pyplot as plt
def plot_scatter(ax, prng... | [
"tcaswell@gmail.com"
] | tcaswell@gmail.com |
a952e56db2ca89ab9a856d36c74dccf154af45a0 | c4af67db4c523d20f2d55aef90ba77db1fb53c38 | /DCWorkflow/Variables.py | 8a629a10c86f2827328a5dc02df4de65dd4864f3 | [] | no_license | dtgit/dtedu | e59b16612d7d9ea064026bf80a44657082ef45a3 | d787885fe7ed0de6f9e40e9b05d852a0e9d60677 | refs/heads/master | 2020-04-06T05:22:50.025074 | 2009-04-08T20:13:20 | 2009-04-08T20:13:20 | 171,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,181 | py | ##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFT... | [
"ron@domU-12-31-39-02-65-03.compute-1.internal"
] | ron@domU-12-31-39-02-65-03.compute-1.internal |
39cb898348acb370f433532dd81af3c1b1f4fd93 | 6bd047eb1951601a5a7bab564eb2abba92c6c004 | /orchestrator/query_handler_registers.py | 0d61089b3adc5a1504e203f66055743e9b6bdd94 | [] | no_license | volgoweb/DDD_sandbox | 6ab2b43d3fcad8eb2f802bd485e5dbc05eb2e10d | 700c2848d5341ab267e69326bac2487657450d22 | refs/heads/master | 2021-01-01T15:46:13.244679 | 2017-07-11T06:18:36 | 2017-07-11T06:18:36 | 97,695,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | from django.utils.module_loading import import_string
class IQueryHandler(object):
def handle(self, query):
raise NotImplementedError
class QueryHandlerRegister(object):
# @TODO Перенести в settings
_map = {
'products.AllProductsQuery': 'products.query_handlers.base.AllProducts',
... | [
"volgoweb@bk.ru"
] | volgoweb@bk.ru |
b78c4566fadad05857a2c3f7bda9640e2de8e3cd | 97eb35e37480f2b6cfb7c8055d467cec1e1c018e | /script.module.thecrew/lib/resources/lib/sources/en/databasegdriveplayer.py | ddd314f07ac0690c4b46442f7bbf8fd97040f7cb | [] | no_license | CYBERxNUKE/xbmc-addon | 46163c286197e21edfdeb3e590ca4213eade0994 | eb4d38f11da7ea54d194359c7dcaeddfb3a40e52 | refs/heads/master | 2023-01-10T20:24:08.629399 | 2023-01-07T21:28:06 | 2023-01-07T21:28:06 | 55,860,463 | 7 | 2 | null | 2022-12-08T10:39:26 | 2016-04-09T18:27:34 | Python | UTF-8 | Python | false | false | 3,829 | py | # -*- coding: utf-8 -*-
import re
from resources.lib.modules import client
from resources.lib.modules import log_utils
from resources.lib.modules import source_utils
class source:
def __init__(self):
self.priority = 1
self.language = ['en']
self.domains = ['databasegdriveplayer.co', 'd... | [
"cyberxnuke@computertechs.org"
] | cyberxnuke@computertechs.org |
0ec4b0fd45c232637b7cb5864fbc0deb4a5f652a | 9e30a239886210dc57e6c7cb9a71ad95a840712e | /build/view_environments/posts_v1_/get_user_posts/responses/Status_200/Status_200Response.py | 061bf7c108168826cba0e720f6d69db20029a13b | [] | no_license | sridhar562345/fb_post_v2 | 0a26d661a3f335d9a9cf129c24265d7674b3fb22 | dfd150ab5521f05291f66944d7a8686a00477547 | refs/heads/master | 2022-11-08T00:32:35.752419 | 2020-06-23T15:32:02 | 2020-06-23T15:32:02 | 274,440,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | class Status200Response(object):
@staticmethod
def get_response():
response = {
"response_data": '{"posts": [{"post_id": 1, "posted_by": {"user_id": 1, "name": "string", "profile_pic": "string"}, "posted_at": "2099-12-31 00:00:00", "post_content": "string", "reactions": {"count": 1, "type":... | [
"="
] | = |
98220515dad23d75309b5a8fcdce7848268c8461 | 4ad22f24e00974aaa9ecca948e0a40a0661e70e3 | /motherboard/admin.py | 2e7eb4c86b86d30b7867f656588cdea1c0cd18e3 | [] | no_license | XBoBaX/shop_and_game | f290fa0b04a29eb4f44cf5eb95e86745c2100b20 | 62987ccbf915a1f6869908cc1952257df4e146c2 | refs/heads/master | 2020-03-19T17:31:42.256006 | 2018-06-09T23:18:02 | 2018-06-09T23:18:02 | 136,764,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.contrib import admin
from .models import Motherboard, Price
admin.site.register(Motherboard)
admin.site.register(Price)
| [
"memesHipe@gmail.com"
] | memesHipe@gmail.com |
1967e934367d921f2aaedadaa75b993e3636fb45 | 89e72b26caed858e31645b58879b599243e77e09 | /hocr_util/hocr_parser/parse_utils.py | 3ee62f6aac58fa6e5067d79ad55fbaefcd7c526e | [] | no_license | subbaraomanchala/whatwordwhere | 312cbdbb703c9dcd017f14e3d8740a8139ddf4a6 | a06f3db871ef9bb460ec5ce92096dd1bb1db5fa3 | refs/heads/master | 2020-06-11T19:19:02.735833 | 2016-03-01T23:50:35 | 2016-03-01T23:50:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,062 | py | """ Utility functions to help parse hocr data. Django-independent. """
from lxml import etree, objectify
from lxml.etree import tostring
from StringIO import StringIO
from parse_errors import PageCountError
# The source data can be amazingly awful. Try to recover as much as possible.
# We could do a better job of t... | [
"jfenton@sunlightfoundation.com"
] | jfenton@sunlightfoundation.com |
a955ceb32d791f076fe28374ee4e5faa1bd2fa34 | 42633deb41dfc7498c713810110affe42f7e6b1e | /apple/wsgi.py | ff349b7d7f512469c993657660536fec1c618454 | [] | no_license | Ulanka2/idea | 195c0d628812922e63d08eb07566e3449f952c2c | 6e37aae0c0144fb64cf8f4615772fab37ad2cabb | refs/heads/main | 2023-07-15T05:23:38.771318 | 2021-08-28T14:26:20 | 2021-08-28T14:26:20 | 393,079,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for apple project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"80949499+Ulanka2@users.noreply.github.com"
] | 80949499+Ulanka2@users.noreply.github.com |
3971ddbc4cf92710e44df4f59c77e66fe0a08e16 | f6003f9f25dcc182e9fbce7a96d0dabb9341744c | /Exercícios/Lista 3 - Seção 6 - Estruturas de Repetição/Questão 18 - FEITA DEPOIS POR LISTAS.py | e05a0f6e535c594ac5b221a6281c7cc383963ba8 | [] | no_license | henriquecl/Aprendendo_Python | 60a87959714f82894e996c06b0a1b767838c38fc | 672029855431795defafd7e20e8da319bf34e502 | refs/heads/master | 2023-06-08T10:48:13.667893 | 2021-06-22T00:55:14 | 2021-06-22T00:55:14 | 261,029,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # Questão 18 - Escreve um algoritmo que leia certa quantidade de números e imprima o maior
# deles e quantas vezes o maior número foi lido. A quantidade de números a serem lidos deve
# ser fornecido pelo usuário
qtd_de_num = int(input('Digite quantos números você deseja fornecer\n'))
maior_numero = 0
num_de_vezes = 0
... | [
"64755074+henriquecl@users.noreply.github.com"
] | 64755074+henriquecl@users.noreply.github.com |
cce1da18f8b894a0b90a4e135c7102b0fd9b0863 | ec8fef96af2a6b6610d298637f05bcdfe67cba2b | /old_utils/convert_to_2D.py | aef585b5509ee474e4349871d313b07fd5cd71fd | [] | no_license | abailoni/longRangeAgglo | 8b98aca75b17d177cb5e408460f95ff20f411aeb | 260b452e106125722ae3824755584ce7bfd5b81c | refs/heads/master | 2021-06-25T14:14:57.150233 | 2020-11-06T11:14:52 | 2020-11-06T11:14:52 | 150,707,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,286 | py | import sys
sys.path += ["/home/abailoni_local/hci_home/python_libraries/nifty/python",
"/home/abailoni_local/hci_home/python_libraries/cremi_python",
"/home/abailoni_local/hci_home/pyCharm_projects/inferno",
"/home/abailoni_local/hci_home/pyCharm_projects/constrained_mst",
"/home/abailoni_local/hci_home/pyCharm_projec... | [
"bailoni.alberto@gmail.com"
] | bailoni.alberto@gmail.com |
7d1f200d66c48971993d340388567a7e5aecc538 | 466c185dd064d0a1fb8f20e72b21e227e2cb3efc | /individual_tutorials/pygamestartercode-22rothm-master/02-DogBark/DogBark.py | 8db8eda13de924c9936168145ec129e38d18aaf3 | [
"MIT"
] | permissive | rhit-catapult/2021-session1 | 3e937235fe48cb03a1dc69b5573879a17b2e81eb | 60c70abeb90ab7edc8d6ddb2c6beb12243a244fc | refs/heads/main | 2023-06-15T20:34:34.449474 | 2021-07-16T20:15:15 | 2021-07-16T20:15:15 | 386,752,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | import pygame, sys
def main():
# pre-define RGB colors for Pygame
BLACK = pygame.Color("Black")
WHITE = pygame.Color("White")
IMAGE_SIZE = 470
TEXT_HEIGHT = 30
# initialize the pygame module
pygame.init()
# prepare the window (screen)
screen = pygame.display.set_mode((IMAGE_SIZE,... | [
"fisherds@rose-hulman.edu"
] | fisherds@rose-hulman.edu |
cf60e9e6c17347c0ccc6df1e5b286240eee67f29 | a0689609c77e78667b0bda674ee864f72efcf57e | /kds/openstack/common/excutils.py | 14f43748464dcc2619a0beb0d4e90aeb40892603 | [
"Apache-2.0"
] | permissive | jamielennox/openstack-kds | 953ebece9bf22dd5005230f827d4b3a0ce918145 | adf69dcb5d9653ef081fa668509c6585c6e00e86 | refs/heads/master | 2021-01-23T08:09:39.065252 | 2013-11-26T20:30:39 | 2013-11-26T20:30:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,744 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack Foundation.
# Copyright 2012, Red Hat, 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:/... | [
"jamielennox@redhat.com"
] | jamielennox@redhat.com |
97eac55758d664e8b872df0bb220e90d01264b5f | 8328c8327e28afbe20f0ff36d2dedb5c64f8e9a6 | /hw8/ELBWrapper.py | f59a816d41bc12150ada7240366580d7fb3907bf | [] | no_license | SamuelMarks/cscie90-hw8 | 18710edc5ad26ce2b7403898cacd1fd98acbabc3 | baae8d648420c2cd8c07391a5bc425152a996af1 | refs/heads/master | 2021-01-10T21:15:14.677596 | 2014-11-06T06:21:31 | 2014-11-06T06:21:31 | 26,036,731 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | #!/usr/bin/env python
# TODO: Implement this, ran out of time so did it through the management console web frontend
from os.path import expanduser, join as path_join
from sys import stderr
from random import randint
from pprint import PrettyPrinter
from boto.ec2.elb import connect_to_region
pp = PrettyPrinter(inden... | [
"samuelmarks@gmail.com"
] | samuelmarks@gmail.com |
91dc593fefb21524a26d88c1010e8d0c2b4767c8 | e5a511e346f5be8a82fe9cb2edf457aa7e82859c | /SANFOUNDRY/String/replace_re.py | ea61caab5503cb141ee5970124fa790e998016e3 | [] | no_license | nekapoor7/Python-and-Django | 8397561c78e599abc8755887cbed39ebef8d27dc | 8fa4d15f4fa964634ad6a89bd4d8588aa045e24f | refs/heads/master | 2022-10-10T20:23:02.673600 | 2020-06-11T09:06:42 | 2020-06-11T09:06:42 | 257,163,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | """Python Program to Replace all Occurrences of ‘a’ with $ in a String"""
import re
message = input()
replace_string = re.sub('a','$',message)
print(replace_string)
"""Python Program to Take in a String and Replace Every Blank Space with Hyphen"""
blank_hypen = re.sub(' ','-',message)
print(blank_hypen)
| [
"neha.kapoor070789@gmail.com"
] | neha.kapoor070789@gmail.com |
b4aa1735e4aa2649c681c368de34898ac31aee94 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/base/lib/json/tool.py | 028027158e75bfcffc7ea2faecd2e80158034a61 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | import argparse
import json
import sys
def main():
prog = 'python -m json.tool'
description = 'A simple command line interface for json module to validate and pretty-print JSON objects.'
parser = argparse.ArgumentParser(prog=prog, description=description)
parser.add_argument('infile', nargs='?', t... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
85bc9b4cf7b833736d5ddb34d44c1abe8a5c630a | 6329ece221f3b2295cb3791168c876d260ed0c31 | /test_learn/chapter8图形和特效/8.4设置窗口背景/winBkground_6.py | f8aaf7b8dc57d2070f9bfcdfbde09c83ef9f80f9 | [] | no_license | dxcv/PythonGUI | 4908e049dde5e569a3ad916c6bac385c7953a243 | a39beef0006e3e4057e3a9bcb3e0e64ea790427e | refs/heads/master | 2020-05-17T17:14:58.250549 | 2019-04-11T09:32:52 | 2019-04-11T09:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | # -*- coding:UTF-8 -*-
'''
使用paintEvent设置窗口背景
设置背景图片
'''
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import sys
class Demo(QWidget):
def __init__(self,parent=None):
super(Demo,self).__init__(parent)
self.setWindowTitle("paintEvent设置背景图片")
self.resize(5... | [
"834819108@qq.com"
] | 834819108@qq.com |
bbdad210d278ba6acb40faa6105239bc29b8be45 | 480a6db59473a0f5bf5aadd53a193eccb1ae0840 | /quasi.py | f54f7469a94d8943102552b9d5336e502803a081 | [] | no_license | EsaikaniL/GREK | ff89e92995f68c449c841f5ea1d2ac74a8911cd1 | 5587e02e603a15fc208f97d16fa68c441b64519a | refs/heads/master | 2020-04-15T01:45:02.074581 | 2019-06-17T12:12:29 | 2019-06-17T12:12:29 | 164,290,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | //esaikani
import sys
a =raw_input()
if a == a[::-1] :
print('yes')
sys.exit()
k1 = 0
for c in a[::-1] :
if c == '0' :
k1 += 1
else :
break
b = '0'*k1 + a
if b == b[::-1] :
print('yes')
else :
print('no')
| [
"noreply@github.com"
] | EsaikaniL.noreply@github.com |
dc3d5e6db6e5f197ed98f9a03556364bd9b513d3 | d474efb74fd5268fd908a2a5394a8ecc97e28f3b | /python/count/bamStrand.py | 8df2790a7f8fdb93c9d056a586d39e8fc7def3c7 | [] | no_license | bradleycolquitt/seqAnalysis | e1f2fbefa867ee11a51801aeeaf57ebc357a0057 | d2c37fb0609754a0ec4e263dda27681717087523 | refs/heads/master | 2021-01-01T05:42:03.060788 | 2017-05-28T02:47:58 | 2017-05-28T02:47:58 | 2,284,790 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | #!/usr/bin/env python
import sys
import os
import argparse
import pysam
import pdb
import BAMtoWIG as b2w
from subprocess import Popen
def splitByStrand(bamfile, pe):
bam_prefix = bamfile.split(".bam")[0]
#pdb.set_trace()
if pe:
flags = [('-f 0x42', '-F 0x10', 'plus'), ('-f 0x42', '-F 0x20', ... | [
"bradley.colquitt@gmail.com"
] | bradley.colquitt@gmail.com |
20729513095266f3fc102f43808d72a5935a5b31 | b4874cbd7299492277ad28441bad05e6348307f2 | /sharpy/plans/acts/act_tech.py | 11e531852f9cb0bf8d30921389bf8d03f3d1def6 | [
"MIT"
] | permissive | MadManSC2/sharpy-sc2 | 7d405578413c7a8f8fc1e4030ad719d7fe5df10a | 13950357df2db58033daab24f076e3ae83f0b2a8 | refs/heads/master | 2021-01-05T03:38:58.038563 | 2020-03-07T20:35:24 | 2020-03-07T20:35:24 | 240,865,466 | 1 | 0 | MIT | 2020-02-16T09:38:05 | 2020-02-16T09:38:04 | null | UTF-8 | Python | false | false | 2,684 | py | from sc2 import UnitTypeId, AbilityId
from sc2.ids.upgrade_id import UpgradeId
from sc2.units import Units
from .act_base import ActBase
# Act of researching a technology or upgrade
class ActTech(ActBase):
def __init__(self, upgrade_type: UpgradeId, from_building: UnitTypeId):
assert upgrade_ty... | [
"aki.vanttinen@sedgestudios.com"
] | aki.vanttinen@sedgestudios.com |
3d6931e60bdf8e3c8686115d4f2cff4c58fc5d64 | 2709e527c217a8264b48e2f549b3284e5ccb9551 | /0x08-python-more_classes/4-rectangle.py | 4d3415f0f3e19a3931525787d1678fc66bf9f8a0 | [] | no_license | kwhit2/holbertonschool-higher_level_programming | 489d6b88ed14b9f2efd4637d8a71ae569b5027f6 | 2660516b12fee0f03c4025ba1d8d2762a8880a06 | refs/heads/main | 2023-05-22T17:57:02.035803 | 2021-06-12T18:43:54 | 2021-06-12T18:43:54 | 319,346,696 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py | #!/usr/bin/python3
""" This module contains a class Rectangle """
class Rectangle:
""" Rectangle class - represents a rectangle
Attributes:
__width: integer, width of rectangle
__height: integer, height of rectangle
"""
def __init__(self, width=0, height=0):
""" __init method
... | [
"kfw2@outlook.com"
] | kfw2@outlook.com |
f316a044f0174b80304b7f2a298e3d259c455d78 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_certificating.py | 310a49f62efa26e138874e0c458bac64cd9c149d | [
"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 | 244 | py |
#calss header
class _CERTIFICATING():
def __init__(self,):
self.name = "CERTIFICATING"
self.definitions = certificate
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['certificate']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9b6d26e422dc239232e501c8e5d125cea8c02a00 | 4954735ed976d889f28818ee03522f29bb23d9ec | /tests/validators/test_notations.py | 6b2bcfb1323aa95b4f9834fab1209886e95443ba | [
"MIT"
] | permissive | delocalizer/xmlschema | 703d552d749db5b5d6509bb10871b320c7a4e28a | c24169f05112f67a45493d390476307919cacd22 | refs/heads/master | 2022-10-12T09:29:03.282544 | 2020-06-08T12:03:19 | 2020-06-08T12:03:19 | 270,896,882 | 0 | 0 | MIT | 2020-06-09T03:47:54 | 2020-06-09T03:47:53 | null | UTF-8 | Python | false | false | 3,283 | py | #!/usr/bin/env python
#
# Copyright (c), 2016-2020, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author Da... | [
"brunato@sissa.it"
] | brunato@sissa.it |
e168ffd4dead14c9eaf5425e74680b07709fdc75 | 7b5c2eeae723cfda08a29d60845ba45c0eda54d7 | /demo/socketServer.py | e3b16611489527a9096bb55e06503dccebed4bae | [] | no_license | sankarmanoj/CTE-Python | 90b0cadd84442bf4678648536f29aadb66b86449 | 127f7fe3123c58975c1ed06e5e74fb0da4517b77 | refs/heads/master | 2020-01-27T09:58:42.168546 | 2016-11-11T13:38:06 | 2016-11-11T13:38:06 | 67,203,144 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from socket import *
from threading import *
def clientHandler(client):
while True:
print client.recv(1000)
server = socket()
server.bind(("",5432))
server.listen(5)
while True:
client,address = server.accept()
Thread(target=clientHandler,args=(client,)).start()
| [
"me@sankar-manoj.com"
] | me@sankar-manoj.com |
9cfc8944ff7d7fa416aae460e30747bd9bd1a113 | fc471bdf94510d96d0c40777af3a8d0e129b5e0c | /store/forms.py | 9528d93471397cd5004cbe077e30b1fd1925d174 | [] | no_license | dtekluva/pimekfoods | cd5fadf598acf3943bb73a93eb38f9aa27a075d3 | e3956d3d810459ef2c546d66d1bbf6165591d58b | refs/heads/master | 2021-09-06T22:41:38.170149 | 2018-02-12T19:40:08 | 2018-02-12T19:40:08 | 118,788,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,329 | py | from django import forms
from django.contrib.auth.models import User
from store.models import Customers
class CustomersForm(forms.ModelForm):
email = forms.EmailField(max_length=128,
help_text="Please enter the your email.")
class Meta:
# Provide an association between... | [
"31896598+dtekluva@users.noreply.github.com"
] | 31896598+dtekluva@users.noreply.github.com |
0b3313a6e4bc835241e33911e8e3d727792341d8 | 838c271cbb01f6e7c3e79661981df6fbb6e1bb8e | /fractals/mandelbrot.py | bc535296360ca5461eaab184cc76d02788ddbaf7 | [
"MIT"
] | permissive | anvetsu/anviz | 403486a78c6f36fabe6d8fe08a3b4ed427d6ac52 | aaa0aa0b854d734ea8851d9f29dc64a1f5413d51 | refs/heads/master | 2020-04-06T15:19:46.813647 | 2019-05-07T20:57:04 | 2019-05-07T20:57:04 | 157,574,403 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | """
mandelbrot.py - Implement the Mandelbrot set in Python using matplotlib & numpy,
by reusing code from the Julia set.
"""
import matplotlib.pyplot as plt
import numpy as np
def mandelbrot_set(width, height, zoom=1, x_off=0, y_off=0, niter=256):
""" A mandelbrot set of geometry (width x height) ... | [
"anandpillai@letterboxes.org"
] | anandpillai@letterboxes.org |
d6639e4d03bed7fc872580146e9dfb6a986900b4 | b162de01d1ca9a8a2a720e877961a3c85c9a1c1c | /771.jewels-and-stones.python3.py | 03d36c3757040ca6a726c9e3f3692fe3e473df46 | [] | no_license | richnakasato/lc | 91d5ff40a1a3970856c76c1a53d7b21d88a3429c | f55a2decefcf075914ead4d9649d514209d17a34 | refs/heads/master | 2023-01-19T09:55:08.040324 | 2020-11-19T03:13:51 | 2020-11-19T03:13:51 | 114,937,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | #
# [782] Jewels and Stones
#
# https://leetcode.com/problems/jewels-and-stones/description/
#
# algorithms
# Easy (82.02%)
# Total Accepted: 143.1K
# Total Submissions: 174.5K
# Testcase Example: '"aA"\n"aAAbbbb"'
#
# You're given strings J representing the types of stones that are jewels, and
# S representing the... | [
"richnakasato@hotmail.com"
] | richnakasato@hotmail.com |
5b300e65ca79be9aec666484fde67de6936dc9b7 | e2770f82b79913c2e024be7fe9d7e8c3c50c3fa0 | /noxfile.py | de4ba54398043f04e8d44eb152f2580ee1cafe84 | [
"MIT"
] | permissive | dfm/kepler.py | 227f5b735e68982c258d853f57c193f9a23a7e33 | 02d208dce36a4bcee8f7886e736cbecbbb45395e | refs/heads/main | 2023-07-22T12:30:48.039570 | 2022-08-03T17:49:51 | 2022-08-03T17:49:51 | 274,433,037 | 13 | 2 | MIT | 2022-09-23T00:06:48 | 2020-06-23T14:51:05 | Python | UTF-8 | Python | false | false | 244 | py | import nox
@nox.session
def tests(session):
session.install("-e", ".[test]")
session.run("pytest", "-v", "tests")
@nox.session
def lint(session):
session.install("pre-commit")
session.run("pre-commit", "run", "--all-files")
| [
"foreman.mackey@gmail.com"
] | foreman.mackey@gmail.com |
b4c78a5896631e1fdab65a791d6fe38c64c7176b | 627b050148e767be12cfc7dfa81b1c6368cf3104 | /BaekJoonOnlineJudge/CodePlus/600Graph/BFSPractice/baekjoon_16948.py | 14b64141162dad5e0fce91ee40db2215d84af8c8 | [] | no_license | imn00133/algorithm | 6ce5d10491bde853eb9e4d6a69bde3124723875c | 40d7bbe6e3cfe932122c32a9f730f951e948ef2d | refs/heads/master | 2022-08-13T20:26:06.200622 | 2022-07-31T08:54:26 | 2022-07-31T08:54:26 | 231,281,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | # https://www.acmicpc.net/problem/16948
# Solved Date: 20.05.29.
import sys
import collections
read = sys.stdin.readline
DYX = ((-2, -1), (-2, 1), (0, 2), (2, 1), (2, -1), (0, -2))
def explorer(board, start, end):
queue = collections.deque()
queue.append(start)
board[start[0]][start[1]] = 0
while qu... | [
"imn00133@gmail.com"
] | imn00133@gmail.com |
60162c216b840b311d25f263cef6ffc9623ad887 | 005fb4efa2a9424d908a3e27fc62fb4be1f8125c | /docs/source/conf.py | ca5ddc296c96779b6489dd30c4094e06fdc3c37c | [
"MIT"
] | permissive | uberstig/gpytorch | aab7b5f6ece80d5d0a0e1a1eeaa3b2cd719b43bd | 29855535097f0e1df4660b6335a2069f5c798db5 | refs/heads/master | 2020-03-27T03:26:08.484057 | 2018-08-23T00:02:51 | 2018-08-23T00:02:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,739 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"gpleiss@gmail.com"
] | gpleiss@gmail.com |
7f7a6a7407ff0e5f57eef85bb33951497afe9247 | 30569618ec13465ee323f27797933ba85035711a | /test/test_body54.py | ffc5a2ffff9aea63983692f670119487414368a6 | [
"MIT"
] | permissive | ike709/tgs4-api-pyclient | c0fdd7e648fd4fb77f0caf3253a7e1daafc0477a | 97918cfe614cc4ef06ef2485efff163417a8cd44 | refs/heads/main | 2023-03-14T08:11:06.146596 | 2021-03-01T18:21:33 | 2021-03-01T18:21:33 | 336,353,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | # coding: utf-8
"""
TGS API
A production scale tool for BYOND server management # noqa: E501
OpenAPI spec version: 9.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.model... | [
"sparebytes@protonmail.com"
] | sparebytes@protonmail.com |
0965b76d0b76f87a184d69262a29fb7215f13143 | 3bd48b4d0651909de302e015941e8b82ebf8faee | /bbDM/plotting/plotConfig.py | 68730b156019c117dd139f18dcd16eff3f2d65a3 | [] | no_license | ramankhurana/LimitsAndFitting | d3a5769aed1e44b2bf1a096147d0b295305f8b75 | 31ec2433827180b58a082db5ccf97fd33e631cde | refs/heads/master | 2020-03-11T09:01:23.020769 | 2018-05-19T00:02:16 | 2018-05-19T00:02:16 | 129,899,379 | 0 | 1 | null | 2018-05-10T09:44:04 | 2018-04-17T12:13:49 | Python | UTF-8 | Python | false | false | 158 | py | #!/usr/bin/env python
plotDir = 'bbDM2DLimitV1'
#plotDir = 'plotsLimitZpBarApprovalMonoHbb'
lumi = 35.9
from os import system
system('mkdir -p '+plotDir)
| [
"ramankhurana1986@gmail.com"
] | ramankhurana1986@gmail.com |
18ff6c6b3ebf838b871a8872a1bae88cce438f95 | 7b13e6acb2a1f26936462ed795ee4508b4088042 | /算法题目/算法题目/LeetCode7字符串找数字.py | 7b48ab5059e2dfd72223b0dfbf799976880ee0a4 | [] | no_license | guojia60180/algorithm | ed2b0fd63108f30cd596390e64ae659666d1c2c6 | ea81ff2722c7c350be5e1f0cd6d4290d366f2988 | refs/heads/master | 2020-04-19T08:25:55.110548 | 2019-05-13T13:29:39 | 2019-05-13T13:29:39 | 168,076,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #Author guo
#正则
import re
class Solution:
def atio(self,str):
str=str.strip()
str=re.findall('(^[\+\-0]*\d+)\D*',str)
try:
result=int(''.join(str))
MAX_INT=2**32
MIN_INT=-2**32
if result>MAX_INT>0:
return MAX_INT
el... | [
"44565715+guojia60180@users.noreply.github.com"
] | 44565715+guojia60180@users.noreply.github.com |
ea6a36fa396fb0e6659ef824f585f7056fad2e67 | db8f0b2db2fe8c9b5d2cc2e33f669028da7830a8 | /tuples_and_sets/count_symbols.py | eb7254f50f5730ada3cf28269626054c3f321912 | [] | no_license | yordan-marinov/advanced_python | 9694184eed31a9769fa1b552b087fb7b7736af84 | 63ad860f356978c13f208f18502a39a8f23cd18b | refs/heads/master | 2023-03-29T18:04:08.252558 | 2021-03-26T13:39:39 | 2021-03-26T13:39:39 | 309,930,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # from collections import defaultdict
#
#
# def count_symbols(text):
# symbols_count = defaultdict(int)
# for char in text:
# symbols_count[char] += 1
# return symbols_count
#
#
# def print_statement(collection: dict):
# for key, value in sorted(collection.items()):
# print(f"{key}: {val... | [
"jordanmarinov8@gmail.com"
] | jordanmarinov8@gmail.com |
f69314686809989f429c61d1bf14ee2b321c4f7b | c413fce92172f3503fd4790b68ad6bbddbf4c919 | /20170417/2_inheritence/08_inheritence.py | c1c6778cc820e63e889f63121bb820ca66eb7c7a | [] | no_license | JohnHaan/cloudtechpython | 9dbd80e71b7151e3ba1be416b798f086785a1f19 | 17b9b8224cdc29a4b51e592e86f8c9863309c5b1 | refs/heads/master | 2021-01-22T21:22:36.733331 | 2017-11-28T13:54:32 | 2017-11-28T13:54:32 | 85,414,710 | 0 | 1 | null | 2017-04-21T02:51:09 | 2017-03-18T16:15:17 | Python | UTF-8 | Python | false | false | 507 | py | # -*- coding:utf-8 -*-
### super() 실습 1
class Animal(object):
def __init__(self):
print("Animal __init__()")
class Tiger(Animal):
def __init__(self):
Animal.__init__(self)
print("Tiger __init__()")
class Lion(Animal):
def __init__(self):
Animal.__init__(self)
prin... | [
"yongiman@gmail.com"
] | yongiman@gmail.com |
aa1b685217028f39bbc6cd95cf2824c72b6e0d10 | 027babf57faf4dc272b4e6eb6ce0d9ae4f89b75b | /futurify/tests/examples/multiline.py | 0004b0d6dee38d34bb199a0c73d94ded59c6f699 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | storborg/futurify | 0af9d965f6ff1527c6d9887e2ef747a65f8e4371 | 00d612c4686d39a2960ef54b33b7fe2d7277d8cf | refs/heads/master | 2021-01-18T17:19:15.884271 | 2014-11-12T20:58:19 | 2014-11-12T20:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py |
from __future__ import (print_function,
division)
# Here's a comment.
from __future__ import absolute_import
import string
print(string.uppercase('what'))
| [
"scott@cartlogic.com"
] | scott@cartlogic.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.