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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8c4abda4240fb87193b4e822cb56db6d9f60a404 | a1565539ee37e6c25d3b0d1483dd788103aced61 | /tensorflow/python/training/tracking/layer_utils.py | c325884bd1d6b21b88d183f5d8a33c00f1d6195d | [
"Apache-2.0"
] | permissive | mrader1248/tensorflow | b954d8989706b1792c7d013e54f816a1b1485807 | 3c6a2292fff3fe3ec1b7d62042cb15e457bc6d82 | refs/heads/master | 2020-04-07T20:08:16.629986 | 2019-08-05T22:40:18 | 2019-08-05T22:40:18 | 158,676,439 | 0 | 0 | Apache-2.0 | 2018-11-22T09:44:49 | 2018-11-22T09:44:49 | null | UTF-8 | Python | false | false | 4,195 | py | # Copyright 2018 The TensorFlow Authors. 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 applica... | [
"[email protected]"
] | |
7e0ab15b65a9e964e5683463dfe8b82159d7d9fb | 2d040fde3d3638939718ccfd42eff9e35c352331 | /EXAMPLES/EDABIT/EXPERT/141_8_bit_arithmetic.py | a964ec7e6bb1367a9427d8836bfff645514c243b | [] | no_license | ceyhunsahin/TRAINING | fcb9837833d2099dc5724f46a675efe4edf3d5f1 | 73cc7dba8447e4066ccfe7adadc727d134ffbf0b | refs/heads/master | 2023-07-13T01:12:53.160300 | 2021-08-17T11:50:51 | 2021-08-17T11:50:51 | 397,591,819 | 1 | 0 | null | 2021-08-18T12:25:45 | 2021-08-18T12:25:44 | null | UTF-8 | Python | false | false | 1,302 | py | """
https://edabit.com/challenge/cXoBRe9RdDGeLNfaD EXPERT
8 Bit Arithmetic
You will be given a simple string expression representing an addition or subtraction in 8-bit 2's complement arithmetic. Write a function that returns the result in base 10 followed by a binary representation. If any of the values are outs... | [
"[email protected]"
] | |
bb1239f3ba44a52dca073e7a2bb09bd13ee12364 | 29d9e33cf882805017cb50653233c5b3759bba0a | /services/core-api/app/api/mines/incidents/models/mine_incident_document_xref.py | 2789000ba92038d50a310d76ce81ad0b613a9dd0 | [
"Apache-2.0"
] | permissive | yasserhu/mds | e634def83ad9825f58986305a638cf4a5010d40f | d7669f4c805e4a4006f30f649f324b3e88bc9aab | refs/heads/master | 2023-08-03T18:20:57.175738 | 2021-06-17T20:44:10 | 2021-06-17T20:44:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy.schema import FetchedValue
from sqlalchemy.ext.associationproxy import association_proxy
from app.api.utils.models_mixins import Base
from app.extensions import db
class MineIncidentDocumentXref(Base):
__tablename__ = "mine_incident_document_xref"
... | [
"[email protected]"
] | |
40598402f54008a18aa6cfc5a2e992fbf8013f3b | bc441bb06b8948288f110af63feda4e798f30225 | /cmdb_sdk/model/topboard/sprint_pb2.pyi | 91317ff37629e11380429ff0970bac9a86f52ac4 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,313 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from cmdb_sdk.model.topboard.issue_basic_pb2 import (
IssueBasic as cmdb_sdk___model___topboard___issue_basic_pb2___IssueBasic,
)
from cmdb_sdk.model.topboard.product_basic_pb2 import (
ProductBasic as cmdb_sdk___model___topboard___product_... | [
"[email protected]"
] | |
52fc95ad5b8193fbb06f7d690e85b19da65068ea | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02993/s796060411.py | 4dd88987d6c5bd8bf3fa6a30abda20e3ca9e5462 | [] | 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 | 137 | py | S = input()
flag = False
for s in S:
if flag:
if temp == s:
print("Bad")
quit()
temp = s
flag = True
print("Good")
| [
"[email protected]"
] | |
d7af8673a8c37fb128458cbca49042bd96905906 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2722/60791/263371.py | f6c0db0251d1b057fb150e5cd509494e9cbe324d | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def solve(i):
print('YES') if(i%5==0) else print('NO')
return
T = int(input())
x = 0
while(x < T):
x += 1
solve(int(input()))
| [
"[email protected]"
] | |
e93c4d081120f85a8ead644f7cd1de2ce0c2c312 | c8a04384030c3af88a8e16de4cedc4ef8aebfae5 | /stubs/pandas/tests/sparse/test_indexing.pyi | 74ad6a2d4deb63a95e1f23407b8600c610472fa1 | [
"MIT"
] | permissive | Accern/accern-xyme | f61fce4b426262b4f67c722e563bb4297cfc4235 | 6ed6c52671d02745efabe7e6b8bdf0ad21f8762c | refs/heads/master | 2023-08-17T04:29:00.904122 | 2023-05-23T09:18:09 | 2023-05-23T09:18:09 | 226,960,272 | 3 | 2 | MIT | 2023-07-19T02:13:18 | 2019-12-09T20:21:59 | Python | UTF-8 | Python | false | false | 3,984 | pyi | # Stubs for pandas.tests.sparse.test_indexing (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
# pylint: disable=unused-argument,redefined-outer-name,no-self-use,invalid-name
# pylint: disable=relative-beyond-top-level
from typing import Any
class TestSparseSeriesIndexing:
... | [
"[email protected]"
] | |
71fcc95c25ad1035690e8b7af74cdf1bf2de73f5 | e467d1860dfc1f42e493eb3358003801b4959677 | /accounts/serializers.py | 85a0e0d22dfc8a259c4ea464436f534b6a5cef25 | [] | no_license | Oswaldinho24k/e-commerce-api-fixtercamp | e1c8cc0b1a67c3347a14892ed584873b7d208316 | c71f2eca9828f04b8272ecfc08d3594eaa0fbdcd | refs/heads/master | 2020-03-15T13:17:14.230879 | 2018-05-11T00:41:09 | 2018-05-11T00:41:09 | 132,163,052 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | from .models import Profile, ItemCart, UserCart
from django.contrib.auth.models import User
from rest_framework import serializers
from products.models import Product
from orders.serializers import OrderSerializer
class ProfileSerializer(serializers.ModelSerializer):
#user = BasicUserSerializer(many=False, read_only=... | [
"[email protected]"
] | |
5c2a2fd9914c3fefccd327f74467755d9217473a | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/main_20210201154004.py | 4749d7b3238241af15c20e74de05c8a23fe43913 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,050 | py |
import datetime
import os
from preprocessing import data_process
from szcyb_crawler import data_getter, index_getter
from utils import load_pickle,save_pickle
import random,time
from html_gen import gen_html
def szcyb_check_update():
prjtype = 'ipo'
try:
proj_list_old = load_pickle(os.getcwd()+'/sa... | [
"[email protected]"
] | |
ae5b87fb9080facdde7642f860f15279a5dc96ce | c19bcbc98555ef06276f9f0dcffc9ac35942a7c4 | /jc/parsers/timestamp.py | 73c9d991a3c4a45fb68f62917214a7362c2b7e28 | [
"MIT"
] | permissive | kellyjonbrazil/jc | 4e81a5421cd20be5965baf375f4a5671c2ef0410 | 4cd721be8595db52b620cc26cd455d95bf56b85b | refs/heads/master | 2023-08-30T09:53:18.284296 | 2023-07-30T17:08:39 | 2023-07-30T17:08:39 | 215,404,927 | 6,278 | 185 | MIT | 2023-09-08T14:52:22 | 2019-10-15T22:04:52 | Python | UTF-8 | Python | false | false | 5,273 | py | """jc - JSON Convert Unix Epoch Timestamp string parser
The naive fields are based on the local time of the system the parser is
run on.
The utc fields are timezone-aware, based on the UTC timezone.
Usage (cli):
$ echo 1658599410 | jc --timestamp
Usage (module):
import jc
result = jc.parse('timestamp'... | [
"[email protected]"
] | |
9fb705dd519ac18646718ae01fe93d8c4c571f54 | 04d8f0b5a291ec6c3470f4498dd64ab9c1845f96 | /programs/big_prog/ex_socket/ex_3/ex_serv.py | 298d92aa2dedf00091936d314a8cf34d4af734c6 | [] | no_license | volitilov/Python_learn | 8c0f54d89e0ead964320d17eeddeacd5b704b717 | f89e52655f83a9f1105689f0302ef5b0ee30a25c | refs/heads/master | 2022-01-10T13:39:59.237716 | 2019-07-17T11:39:10 | 2019-07-17T11:39:10 | 70,601,503 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | #!/usr/bin/python3
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
from socketserver import (
TCPServer as TCP,
StreamRequestHandler as SRH
)
from time import ctime
import sys
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
class MyTCPHandler(SRH):
def handle(self)... | [
"[email protected]"
] | |
0ad73b90f00d4e8815c97ebf285a05f7325bae7b | f33b30743110532ddae286ba1b34993e61669ab7 | /Odd Even Linked List.py | 5310e33a71fe301849961b055d5b3d55e22f05ea | [] | no_license | c940606/leetcode | fe9dcee7a5daa4d52999d5f53253dd6dd33c348b | 631df2ce6892a6fbb3e435f57e90d85f8200d125 | refs/heads/master | 2021-07-10T14:01:26.164966 | 2020-08-16T10:46:16 | 2020-08-16T10:46:16 | 186,588,449 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def oddEvenList(self, head):
"""
给定一个单链表,把所有的奇数节点和偶数节点分别排在一起。
请注意,这里的奇数节点和偶数节点指的是节点编号的奇偶性,而不是节点的值的奇偶性。
请尝试使用原地算法完成。你的算法的空间复杂度应为 O(1),时间复杂度应为 O(nodes),nodes 为节点总数。
--... | [
"[email protected]"
] | |
9373c0cd05fa128d62a95b63054c5a5f5d3ec8dc | 97426aa614cd9e07d53dd761b55472389a3ebd60 | /python/scripts/marketsim/scheduler.py | e4bb7eb635eb6e453927fdca5173fbb21bee0838 | [] | no_license | antonkolotaev/v2 | e30a12ea710848838d85ee0b6bbd9224e40602d2 | db64cd78577cebb366d0b3d849fdfbe694b97f94 | refs/heads/master | 2020-12-24T14:35:59.486012 | 2012-08-16T08:24:13 | 2012-08-16T08:24:13 | 10,887,220 | 1 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import heapq
class _EventHandler(object):
def __init__(self, handler):
self._handler = handler
self._cancelled = False
def __call__(self):
self._handler()
def cancel(self):
self._cancelled = True
@property
def cancelled(self):
return self._cancelled
... | [
"[email protected]"
] | |
90e2fd31f15d3ba613a447de0e0f4bb4e370a085 | c67dc92dd0c4dc7661b9185ae7487abf086d4dc6 | /appraisalproject/settings.py | 4130eeb0d62b3e1e7b6a41d0a38d16ffe9f025bf | [
"MIT"
] | permissive | felkiriinya/Quality-Appraisal | 1f14339eddaad256994501ab2aa5e1a128b16478 | 5b9e114d96816a9d146eca7646330da7d273b6ef | refs/heads/master | 2023-01-22T22:31:30.052977 | 2020-12-09T14:13:41 | 2020-12-09T14:13:41 | 319,227,932 | 2 | 0 | MIT | 2020-12-08T18:46:21 | 2020-12-07T06:43:12 | HTML | UTF-8 | Python | false | false | 4,515 | py | """
Django settings for appraisalproject project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
impo... | [
"[email protected]"
] | |
f2f8d6a4696af48a294dd7a3760a76943e0fa51a | e3fe234510d19c120d56f9a2876b7d508d306212 | /16paddle/dssm_lm_rank/infer.py | 46aade009862bd1903c9ce6ade3cb0918b75bd60 | [
"Apache-2.0"
] | permissive | KEVINYZY/python-tutorial | 78b348fb2fa2eb1c8c55d016affb6a9534332997 | ae43536908eb8af56c34865f52a6e8644edc4fa3 | refs/heads/master | 2020-03-30T02:11:03.394073 | 2019-12-03T00:52:10 | 2019-12-03T00:52:10 | 150,617,875 | 0 | 0 | Apache-2.0 | 2018-09-27T16:39:29 | 2018-09-27T16:39:28 | null | UTF-8 | Python | false | false | 2,827 | py | # -*- coding: utf-8 -*-
# Author: XuMing <[email protected]>
# Data: 17/10/18
# Brief: 预测
import os
import sys
import paddle.v2 as paddle
import config
import reader
from network import dssm_lm
from utils import logger, load_dict, load_reverse_dict
def infer(model_path, dic_path, infer_path, prediction_output_pa... | [
"[email protected]"
] | |
8164c15ce080bba486b0e97395893638e109f140 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.QVA/Sun-ExtA_16/pdf_to_json_test_Latn.QVA_Sun-ExtA_16.py | c9e6eeadc61bf0cfc64ae23cd016123070abc397 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.QVA/Sun-ExtA_16/udhr_Latn.QVA_Sun-ExtA_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"[email protected]"
] | |
310ef3f7f502ac9fca2d6fc43f37500bd8a533f7 | 3e4c3b6a6ba770fa18e9f072b1cfb58207f96b30 | /openaddr/compat.py | ec93ded08da55c579f23fc715124f0d6f8c05740 | [
"ISC"
] | permissive | cbmeeks/machine | 931b53657db3bb0b960006ccc6abd67fd41d704a | 39652f0614597e2b56973ded9f61a1a2a208da2e | refs/heads/master | 2020-12-26T00:46:01.112727 | 2016-07-31T03:41:06 | 2016-07-31T03:41:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,599 | py | import sys
import io
PY2 = (sys.version_info[0] == 2)
if PY2:
import unicodecsv, subprocess32, uritemplate
unicodecsv.field_size_limit(sys.maxsize)
check_output = subprocess32.check_output
CalledProcessError = subprocess32.CalledProcessError
TimeoutExpired = subprocess32.TimeoutExpired
... | [
"[email protected]"
] | |
d680686b38adb8e9cdfc5bf3e14016b01354af3a | d1c6de4e0d4aafbe1e7d15a02487494f86bf9b7e | /알고리즘문제/내려가기.py | 1515a653c108bd21017b437c35fc3fc9e25479c1 | [] | no_license | kdm604/TIL | d2ce2122e0b828a595530ac2a405a4661cf60205 | 554bbd8e884f4e7fbebdefbfa22a1a5eee0fa452 | refs/heads/master | 2023-01-11T21:41:57.845549 | 2020-03-24T08:55:10 | 2020-03-24T08:55:10 | 195,938,033 | 0 | 0 | null | 2023-01-05T01:14:37 | 2019-07-09T05:23:00 | Python | UTF-8 | Python | false | false | 903 | py | import sys
N = int(input())
ans_max = [[0 for _ in range(3)]for _ in range(2)]
ans_min = [[0 for _ in range(3)]for _ in range(2)]
for i in range(1, N+1):
arr = list(map(int, sys.stdin.readline().split()))
ans_max[i % 2][0] = max(ans_max[(i -1)%2][0], ans_max[(i-1) %2][1]) + arr[0]
ans_max[i % 2][1] = max... | [
"[email protected]"
] | |
8f3cc002c398732246f1e2d85326681bd76a8411 | c5a8f6dd4e5ebc43f02923704325620f0787b2f4 | /visual-experiments/rectangular_visualizer.py | 657afe5661a8fb7256dba49930c2c02daf9a6eec | [] | no_license | alex-berman/tforms | 50098501d19de75632426423d02025162bbc94e6 | 046476001609dfa8192c2e373a040d4129975ab6 | refs/heads/master | 2021-01-01T20:00:00.381901 | 2014-03-16T13:44:09 | 2014-03-16T13:44:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | import visualizer
from visualizer import File, run
from vector import DirectionalVector, Vector2d
import math
class Chunk:
def peer_position(self):
return Visualizer.bearing_to_border_position(
self.peer.bearing, self.visualizer.width, self.visualizer.height)
class Segment(visualizer.Segment, ... | [
"[email protected]"
] | |
042476a02c8bf29a0201454a2168abe364601a48 | a67d999deafb7d3dac60ad95f66234fe3e79030e | /Python/Advanted/src/chauthoi/myGUItest1.py | 3a9a1c4fe3d7059a5e5b5415c33d5c352348e5ae | [] | no_license | tielse/Example_Python | 1282728a3e38725a48f30a1c49a688b5262be485 | 0bc31f86f16ef98cf3b7ad8a524c27978e47775f | refs/heads/master | 2021-01-02T22:36:58.866922 | 2017-08-04T15:25:17 | 2017-08-04T15:25:17 | 99,355,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | #!/usr/bin/env python 2.7
import Tkinter
from Tkinter import *
Widget=Label(None,text='Hello Python')
Widget.pack()
Widget.mainloop() | [
"[email protected]"
] | |
7a15d93ffe5208e8afe7da36fd5f11f27c9fd337 | 59e8a041435b70f1dfb2464ccef298c69cf8466e | /058_Length_of_Last_Word/tests.py | 22dd861ca481516c780a5c55fa2454e7d4fdcbd3 | [] | no_license | sallowdish/LeetCode | f0aa6c5be864711c75a3583f320ce967d50c55d3 | d12ca00f30a1784802f42f8e76f782d7b72e95a6 | refs/heads/master | 2021-01-21T04:32:02.351940 | 2016-06-25T00:12:22 | 2016-06-25T00:12:22 | 33,152,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | #!/usr/bin/python3
from unittest import TestCase, main
from sol1 import Solution
def split(n):
l = []
for i in n:
l.append(list(i))
return l
class Test(TestCase):
sol = None
def setUp(self):
self.sol = Solution()
def test0(self):
n = ""
self.a... | [
"[email protected]"
] | |
dcf94f3467263d06f0cdc6a6fd45814921ae79cf | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /hackerEarth/practice/dataStructures/advancedDataStructures/segmentTrees/researchOnNumbers.py | cd843193b38d663316dbb8d7bec57cc27e97e182 | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | Python | false | false | 2,349 | py | # Research on Numbers
#######################################################################################################################
#
# Bob is studying in a research institute. He is currently researching on integer sequences. He has already done
# some research on famous fibonacci sequence. Now he is tr... | [
"[email protected]"
] | |
61bdf96e9e66babc6af5fbb50dce07eacb4d3e7e | b804260baffde6044d0da699ebd01eefd5524897 | /tests/loss/test_loss.py | db2c74e8c2f0e1a7ffec9783b81e8edcb95589ba | [
"MIT"
] | permissive | pfnet/pynif3d | d8112e659c3158cd87f4f88ebb77c653c2a0eb7c | da3680cce7e8fc4c194f13a1528cddbad9a18ab0 | refs/heads/main | 2023-07-15T06:27:27.849842 | 2021-08-18T07:15:13 | 2021-08-18T07:15:13 | 397,141,414 | 72 | 5 | MIT | 2021-08-18T07:15:14 | 2021-08-17T06:53:45 | Python | UTF-8 | Python | false | false | 533 | py | from unittest import TestCase
import torch
from pynif3d.loss import eikonal_loss
class TestLoss(TestCase):
def test_eikonal_loss(self):
x = torch.as_tensor(
[
[0.2936261892, -1.0289776325, 0.1445489526],
[-0.2577984035, -0.7820385098, 0.3506951332],
... | [
"[email protected]"
] | |
1b4972c56701c6145e833481d3454ceb0bfc240a | 62980875b6e08d0099b1662fa3148ae29986fb64 | /BeautifulSoup/6_bs4.py | 898014028b10426db05bb94eb1a9f99b419b19ca | [] | no_license | kogkuemryong/Python_WebScraping- | 9db659c9a11c2677074fcac7f7029ec8541cb4f5 | 51cf7e7e71ce7c90b68f70daa43785671350dfb5 | refs/heads/master | 2022-12-12T17:01:27.142178 | 2020-09-08T16:48:19 | 2020-09-08T16:48:19 | 293,404,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | import requests
from bs4 import BeautifulSoup
url ='https://comic.naver.com/webtoon/weekday.nhn'
res = requests.get(url) # url 를 읽음
res.raise_for_status() # 문제가 생기면 프로그램 종료를 시켜줌
soup = BeautifulSoup(res.text, 'lxml') # 텍스트 형태로 가져온 데이터를 lxml를 통해서
# BeautifulSoup 객체로 만든 것이다.
'''
... | [
"[email protected]"
] | |
2520da0ffe6d528d917b6d76d7e86d7767ae8d15 | 8f4488494507da4cb6f15073b8aa2e6f97fabb35 | /test/integration/local/test_tensorflow.py | c85f8f5d446253c4b38bdc7e634c6851379fd0e4 | [
"Apache-2.0"
] | permissive | aws/sagemaker-training-toolkit | 025966a1216aeb78b58f7abab19c6ccb01b0897d | e4a765e699e16c5849bbdfd789edbfc9820fdd77 | refs/heads/master | 2023-08-21T12:33:59.831391 | 2023-08-08T16:46:40 | 2023-08-08T16:46:40 | 212,439,434 | 415 | 110 | Apache-2.0 | 2023-09-07T19:58:23 | 2019-10-02T20:54:32 | Python | UTF-8 | Python | false | false | 1,528 | py | # Copyright 2022 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 "license" file acc... | [
"[email protected]"
] | |
538432edd63d9503879fed091c2da849b88aeb19 | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/mall/settings_20211011171802.py | d6ac69d215da3f819a7996e8f1d92e8ab5d563bf | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | """
Django settings for mall project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from ... | [
"[email protected]"
] | |
2ea6a54e6d5e934338510fc52ec20c0e4d55851c | ce6cb09c21470d1981f1b459293d353407c8392e | /docs/jnpr_healthbot_swagger/swagger_client/models/rule_schema_formula1_or.py | 71314684086751f0563ed538b08bac277bdc9834 | [
"Apache-2.0"
] | permissive | minefuto/healthbot-py-client | c4be4c9c3153ef64b37e5344bf84154e93e7b521 | bb81452c974456af44299aebf32a73abeda8a943 | refs/heads/master | 2022-12-04T07:47:04.722993 | 2020-05-13T14:04:07 | 2020-05-13T14:04:07 | 290,145,286 | 0 | 0 | Apache-2.0 | 2020-08-25T07:27:54 | 2020-08-25T07:27:53 | null | UTF-8 | Python | false | false | 5,021 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 1.0.0
Contact: [email protected]
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class RuleSchemaFo... | [
"[email protected]"
] | |
4c0d4d4150b62d2151f73bd99f474cc1fcdc41af | e01dde12be71c40065a9d6d2b1451f837c42a41e | /py_trees_ros_viewer/viewer.py | 754f696ee24634ae00238eb788ed5305d7f1e131 | [
"BSD-3-Clause"
] | permissive | neelj09/py_trees_ros_viewer | 29336ce5a7f7592ffb67c0170b42902d16fea5d3 | 1fbd7877fa4bcb53119b3111db26ce87ec8ccebd | refs/heads/master | 2022-04-09T00:48:10.260221 | 2019-08-10T02:54:03 | 2019-08-10T02:54:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# License: BSD
# https://github.com/splintered-reality/py_trees_ros_viewer/raw/devel/LICENSE
#
##############################################################################
# Documentation
##############################################################################
... | [
"[email protected]"
] | |
15bd7e332a59184de848af3cc92208ff3dcc0330 | 7d1e9acf94a5e4533d3ef5828b568e89c29519a3 | /11-Message Box/MessageBox.py | a6e635c724e37df0204a8b500c9173b5d056455a | [] | no_license | abuzarrizvi/Python-GUI-s-With-TKinter | c960e3629589d25b72f6720caebb552352e77976 | d5c7843cdd3203294762ae92b6503ecb55d083f1 | refs/heads/master | 2020-07-06T03:17:56.798236 | 2019-08-23T10:56:41 | 2019-08-23T10:56:41 | 202,871,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | from tkinter import *
from PIL import ImageTk, Image
from tkinter import messagebox
root = Tk()
root.title('Learn To Code at Github.com')
root.iconbitmap('Martz90-Circle-Camera.ico')
#showinfo, showwarning, showerror, askquestion, askokcancel, askyesno
def popup():
response = messagebox.showerror("This... | [
"[email protected]"
] | |
728c81d8394209a41c9c13be78e81117b4680432 | 250e692078234b0e3ef22ad20ab7168f807d1d5f | /diagonal_matrix.py | 08b03ebc30dd750a07341d1b062de7ee30082f1c | [] | no_license | AnTznimalz/python_prepro | 694338609985971c5e6eaf8ec463c2a5c62dd836 | bdc1e49fa03704bebcf2ab69a4c1600e4cd46a74 | refs/heads/master | 2022-06-22T23:47:28.396580 | 2020-05-07T15:07:56 | 2020-05-07T15:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | """ Diagonal Matrix"""
def mat():
""" Func. mat for calculate matrix """
dim = int(input())
box = list()
a, b = 0, 0
for n in range(dim):
lst = input().split()
box.append(lst)
lst = []
for i in range(dim):
a += int(box[i][i])
b += int(box[i][dim-i-1])
... | [
"[email protected]"
] | |
2beb1f616a83a5c13a520bc827faceffac12cedc | 5864e86954a221d52d4fa83a607c71bacf201c5a | /eve/devtools/script/networkdatamonitor.py | ad91d9153d462512bd7775ae06745daf165a0b2d | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,749 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\devtools\script\networkdatamonitor.py
import operator
import carbonui.const as uiconst
from carbonui.primitives.container import Container
from eve.client.script.ui.control.buttons import Button
from eve.client.script.ui.control.eve... | [
"[email protected]"
] | |
3b5330ea0aa6a4a8d96e5804f4c85d8878f67ed5 | d5440edcfc66496937e98c557ab9c33946234808 | /lifting line theory basic.py | 750e9c9edd03ecebdd25e481ebf6dc7a98950762 | [] | no_license | geoffreynyaga/lifting-line-theory | 4df7fb1baca79b9e3dfb19f5ec6c4ba86fa8fe69 | 352e1379863adf25c5f3e4966e16ae67d38f97ba | refs/heads/master | 2022-08-30T04:18:23.725361 | 2020-02-14T18:55:28 | 2020-02-14T18:55:28 | 99,334,542 | 2 | 0 | null | 2022-06-22T01:09:44 | 2017-08-04T10:58:33 | Python | UTF-8 | Python | false | false | 2,355 | py | # coding: utf-8
__author__ = "Geoffrey Nyaga"
import numpy as np # type: ignore
import math
import matplotlib.pylab as plt # type: ignore
N: int = 9 # (number of segments - 1)
S: float = 24.39 # wing area m^2
AR: float = 7.8 # Aspect ratio
taper: float = 0.45 # Taper ratio
alpha_twist: float = -2.0 # Twist ang... | [
"[email protected]"
] | |
ff54639667d43e2a8ef0b80917c081381a5370b5 | 5471de6fd11cc36e8ad9c05ea25d13ae568ad060 | /ClassesAndInstances/Lab Vet.py | 0661e0116a2ab4a17184311b5b09a71a094a3404 | [] | no_license | olgayordanova/PythonOOP | 75bbf9a20c612be7212de7bed59edccef1e02304 | 2d177d17bf50335b17f6246198b1cf85719de1df | refs/heads/main | 2023-03-30T18:59:56.751037 | 2021-04-03T19:48:37 | 2021-04-03T19:48:37 | 333,202,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | class Vet:
animals =[]
space =5
def __init__(self, name):
self.name =name
self.animals = []
def register_animal(self,animal_name):
if len(Vet.animals)<Vet.space:
self.animals.append(animal_name)
Vet.animals.append ( animal_name )
... | [
"[email protected]"
] | |
b8728bf275bb2ca91a768945aac95810d2f474eb | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/gui/shared/gui_items/dossier/achievements/Achieved.py | abf5a6ed09d5c5dab3a8ed8390af41b1ca9fb8d5 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 668 | py | # 2016.11.19 19:52:48 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/shared/gui_items/dossier/achievements/Achieved.py
from abstract import RegularAchievement
from gui.shared.gui_items.dossier.achievements import validators
class Achieved(RegularAchievement):
@classmethod
def checkIsValid... | [
"[email protected]"
] | |
8051de40984a9a2acb43e21095fbc3aae7026551 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_118/ch23_2020_03_11_11_23_45_741474.py | c6ecc8ea4e87cf6cff5cef2378d5c6e336252e92 | [] | 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 | 203 | py | def velocidade(c):
v=(c-80)*5
return v
x = float(input('Qual a velocidade? '))
y=velocidade(x)
if y == 0:
print('Não foi multado')
else:
print ('Foi multado em R$ '' {0:.2f}'.format (y)) | [
"[email protected]"
] | |
b76eebcce6d333ab9eeb6a635d645bcff821d353 | cd4bbecc3f713b0c25508d0c5674d9e103db5df4 | /toontown/estate/FlowerCollection.py | ae519a6213959a49508db54bc4af3e2794d78be4 | [] | no_license | peppythegod/ToontownOnline | dce0351cfa1ad8c476e035aa3947fdf53de916a6 | 2e5a106f3027714d301f284721382cb956cd87a0 | refs/heads/master | 2020-04-20T05:05:22.934339 | 2020-01-02T18:05:28 | 2020-01-02T18:05:28 | 168,646,608 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,443 | py | import GardenGlobals
from direct.directnotify import DirectNotifyGlobal
import FlowerBase
class FlowerCollection:
notify = DirectNotifyGlobal.directNotify.newCategory('FlowerCollection')
def __init__(self):
self.flowerlist = []
def __len__(self):
return len(self.flowerlist)
def getF... | [
"[email protected]"
] | |
cc462bc85d0d716ae2e44775a9e09ff96c2e6614 | d9f52125601ec26f79202f0e912891b31b60ffc4 | /오전반/30-days-of-code/Day_06/Day_06_YNY.py | 463f620727b012c7231ca35c7a30dd8078ae48fe | [] | no_license | YoungGaLee/2020_Python_coding-study | 5a4f36a39021c89ac773a3a7878c44bf8b0b811f | b876aabc747709afa21035c3afa7e3f7ee01b26a | refs/heads/master | 2022-12-12T13:34:44.729245 | 2020-09-07T04:07:48 | 2020-09-07T04:07:48 | 280,745,587 | 4 | 4 | null | 2020-07-22T03:27:22 | 2020-07-18T21:51:40 | Python | UTF-8 | Python | false | false | 268 | py | n=int(input())
q_odd=[]
q_even=[]
for i in range (n):
q=str(input())
for j in range(len(q)):
if j%2==0:
q_odd.append(q[j])
if j%2==1:
q_even.append(q[j])
print("".join(q_odd) ,"".join(q_even))
q_odd,q_even=[],[]
| [
"[email protected]"
] | |
81a8f7309966861e6a73d3cea111f8f0f441759e | 153d5ff918a33afb1e73fefab9e774672cf4f129 | /auth_demo_stripe/wsgi.py | 06be555707e70f63105bf12ae7bbb1f7f8d691c1 | [] | no_license | meganduffy/auth_demo_stripe | a67700e406fab62091ab52bbb72b0eede89c1f72 | 74c6e1d2af19221d78c4eb813513e5f1d36c3abe | refs/heads/master | 2021-01-17T10:01:22.309264 | 2017-03-06T11:44:39 | 2017-03-06T11:44:39 | 84,001,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | """
WSGI config for auth_demo_stripe 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJ... | [
"[email protected]"
] | |
26c1bf3393e74fe359f62019bcd01a096dc2a25a | f662aa3ce7896ca0283cae38df8ef824c1b80c9a | /examples/larson_hue.py | e59f5ae5199f37f0ab3c97b555d030f940ee0d49 | [
"MIT"
] | permissive | pimoroni/plasma | bd7ddebbc60ae7cc9c2561408b52fc46bf810672 | 7857c44255285aac061a9064dd033fd63bbbda29 | refs/heads/master | 2023-02-10T13:27:17.565867 | 2023-01-30T17:27:28 | 2023-01-30T17:27:28 | 155,544,928 | 12 | 9 | MIT | 2021-11-06T04:14:19 | 2018-10-31T11:17:40 | Python | UTF-8 | Python | false | false | 1,548 | py | #!/usr/bin/env python3
import math
import time
import colorsys
from plasma import auto
NUM_PIXELS = 10 * 4
FALLOFF = 1.9
SCAN_SPEED = 4
plasma = auto(default=f"GPIO:14:15:pixel_count={NUM_PIXELS}")
if plasma.get_pixel_count() == 1:
raise RuntimeError("Uh, you can't larson scan *one* pixel!?")
plasma.set_clea... | [
"[email protected]"
] | |
9d14d6702c380b23bdbc1f209bb5f8a3e6a6beb7 | 46bab53f41324fa880626d80c7a175e11ec30f5b | /sinar/representatives/setuphandlers.py | f322b7a6cba088432f71f03cc810a8c9149343b1 | [] | no_license | joemariedimzon/sinar.representatives | 8d21b5447b65f55fbde809c74dc74be6bc0bfdf7 | 11d63647a1d82c739a6d4312363392f8a6ca79ed | refs/heads/master | 2021-01-18T05:00:12.128279 | 2015-07-07T07:51:19 | 2015-07-07T07:51:19 | 38,667,596 | 0 | 0 | null | 2015-07-07T06:07:04 | 2015-07-07T06:07:03 | null | UTF-8 | Python | false | false | 384 | py | from collective.grok import gs
from sinar.representatives import MessageFactory as _
@gs.importstep(
name=u'sinar.representatives',
title=_('sinar.representatives import handler'),
description=_(''))
def setupVarious(context):
if context.readDataFile('sinar.representatives.marker.txt') is None:
... | [
"[email protected]"
] | |
ccc95a8679b749bc527794939994aee82257f6dd | 1d182c8cf1ce19019e0b1cba4a16ee1a2a49751e | /data/base.py | d4e7c2318658561292e5f341ea1513223aa70af8 | [
"MIT"
] | permissive | zxt881108/pytorch-cv | e30ac8638a8819b637c6bbef717f733264229126 | 6f2d1760f12c9a56a3e7b19ba74bc41451ea284c | refs/heads/master | 2020-06-18T18:16:09.741626 | 2019-04-29T14:11:06 | 2019-04-29T14:11:06 | 196,396,348 | 5 | 0 | null | 2019-07-11T13:06:29 | 2019-07-11T13:06:28 | null | UTF-8 | Python | false | false | 4,270 | py | """Base dataset methods."""
import os
from torch.utils import data
class ClassProperty(object):
"""Readonly @ClassProperty descriptor for internal usage."""
def __init__(self, fget):
self.fget = fget
def __get__(self, owner_self, owner_cls):
return self.fget(owner_cls)
class SimpleData... | [
"[email protected]"
] | |
6235ff1283a1cd1df9f2920ac2d4acc0b4fda5f2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_tubercles.py | 1fd9350940d02997c44f6017604e905edf183a0b | [
"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 | 230 | py |
#calss header
class _TUBERCLES():
def __init__(self,):
self.name = "TUBERCLES"
self.definitions = tubercle
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['tubercle']
| [
"[email protected]"
] | |
23259865da4b2ba2241e13dc4a003730ecd8244e | f483545d7765c25d1b315027726dbd74bc77b98a | /myproject/helloflask/__init__.py | 3c841b6144c426d612c3be2276bab54c47abc33d | [] | no_license | niceman5/pythonProject | e51b44a50776100a63443d7da850ba4b8b00f5eb | 3589fd200b56f68b856d2b4d2031c2a1135168a0 | refs/heads/master | 2023-07-10T16:12:57.756944 | 2023-06-27T08:13:54 | 2023-06-27T08:13:54 | 135,047,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | from flask import Flask, g, request, Response, make_response
from flask import session, render_template, Markup, url_for
from datetime import date, datetime, timedelta
import os
from helloflask.init_db import init_database, db_session
app = Flask(__name__)
import helloflask.views
import helloflask.tests
import hellofl... | [
"[email protected]"
] | |
7e0e11a25de222a5998cf039e5d07b16e1e5ee3d | 0cfb5831a748ebd46e438e3ad7e7a09c1d196499 | /com/chapter_02/section_03/task_2.3.1_string.py | 0ced5f96b6c94cd49087d941d8d2db0b958d7a97 | [] | no_license | StevenGeGe/pythonFromIntroductionToPractice01 | 7cfe8cdb4bc5c0ddbe25b44976231d72d9e10108 | 9d2ba499056b30ded14180e6c4719ee48edd9772 | refs/heads/master | 2023-02-15T04:08:59.878711 | 2020-12-28T13:27:55 | 2020-12-28T13:27:55 | 310,980,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2020/11/8 14:44
# @Author : Yong
# @Email : [email protected]
# @File : task_2.3.1_string.py
# @Software: PyCharm
# title() : 以首字母大写的方式显示每个单词,即将每个单词的首字母全部大写或者全部小写。
# 更改字符串的小写
name_big = "ada love"
print(name_big.title()) # 输出: Ada Love
# 更改字符串的大写
name_sm... | [
"[email protected]"
] | |
4592909cbecdc99a76075adfdb88ebecd628f893 | e247d9261676f257752c0c6beac161954137a81c | /src/0670.maximum-swap/maximum-swap.py | a768dba246b1ee138757c7df172f980aba66c1ea | [
"MIT"
] | permissive | henrymorgen/Just-Code | 8fbbd8288b485372a44e10b0078b5edb8af61a3b | fa03ebb89edd8f2292de7c0644dbab88dc1d924c | refs/heads/master | 2022-10-19T05:59:53.134092 | 2020-06-10T02:26:43 | 2020-06-10T02:26:43 | 273,656,532 | 1 | 2 | MIT | 2020-06-20T07:02:38 | 2020-06-20T07:02:38 | null | UTF-8 | Python | false | false | 447 | py | class Solution:
def maximumSwap(self, num: int) -> int:
num = list(str(num))
max_idx = len(num) - 1
xi = yi = 0
for i in range(len(num) - 1, -1, -1):
if num[i] > num[max_idx]:
max_idx = i
elif num[i] < num[max_idx]:
... | [
"[email protected]"
] | |
c288be163fc503676e07dbc33ab1ccc5193348d6 | f28591fab50d9b7a539c66b5a81fc91d1bc2ce64 | /py3/def/uint32_rotateleft.py | 3d8529dece0a6541a402dce9cfeefd84e5370f9e | [] | no_license | tnzw/tnzw.github.io | b8a5fe1f8479736bbf2b3594d511a1282939a3b3 | 6d95968db793cebcfa77cb49eecd987f821350db | refs/heads/master | 2023-04-21T14:22:49.849859 | 2023-03-31T15:55:01 | 2023-03-31T15:55:01 | 176,712,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # uint32_rotateleft.py Version 1.0.0
# Copyright (c) 2020 Tristan Cavelier <[email protected]>
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Ve... | [
"[email protected]"
] | |
5cbbcad90b7a18247ef4129e11896b12752543ab | ec827bd5df431c9400946e8d0593448814b5534b | /venv/bin/ipython | 498f13bc79c779676e375d1d51d86e95af3fa922 | [] | no_license | grantnicholas/pytone | 7acd70878de8090d06d7a2911a67b3dbb3b64256 | b89c688cc88588a3758fff288bc9b1364534b42e | refs/heads/master | 2021-01-23T06:19:47.203418 | 2014-09-21T21:52:27 | 2014-09-21T21:52:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/grant/Desktop/pytone/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
| [
"[email protected]"
] | ||
56b5cf1eaba651687a7c590fa1649daae00ec525 | 1b0755fafd5993c8fe5c847d0f3b250f0705cc87 | /perf/__init__.py | ccef7a523ee945da1eb514e9d7dade75768eb8dd | [
"MIT"
] | permissive | pombredanne/perf | 65b722b2822daf598798da40917abdc608708ec3 | da5f2259815c39569957f584a7e1e57cfdbbb927 | refs/heads/master | 2021-04-29T11:31:23.533547 | 2016-12-16T14:50:02 | 2016-12-16T14:50:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | from __future__ import division, print_function, absolute_import
__version__ = '0.9.2'
# Clocks
try:
# Python 3.3+ (PEP 418)
from time import monotonic as monotonic_clock, perf_counter
except ImportError:
import sys
import time
monotonic_clock = time.time
if sys.platform == "win32":
p... | [
"[email protected]"
] | |
18038f0af6c237d5b9db5678328e4d466f172dc2 | 57fec0f5928beaaeb2dc66004267204e77bf05a7 | /scripts/05-gmaps-test.py | ca95867cc5fec1d0fc87836f9afd89caf7c679cc | [] | no_license | fgolemo/neo-m8p-python | a26d382cd0a8d90bd8eca4a6a2c13a51bc1a08b9 | f9af936cdc804b24a76b697df749b0aca0325bed | refs/heads/master | 2020-06-21T09:55:13.280892 | 2019-07-25T17:36:07 | 2019-07-25T17:36:07 | 197,414,904 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | import cv2
from neom8p.gmaps import get_gmap
map = get_gmap(45.530807,-73.613293, 19)
cv2.imshow("map", map)
cv2.waitKey(1)
print ("yo") | [
"[email protected]"
] | |
a47f8034e2370aec414aa1e5b290f1bff3f65fe2 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2700486_0/Python/jbaek/codejam3.py | 66cc08fb16dc343fe03e3fc66bf66e11429e006d | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,392 | py | from math import *
from itertools import *
import os
from decimal import *
ALLGRIDS = []
def main():
global ALLGRIDS
f = open("/home/jackie/Documents/Codejam/in")
lines = f.readlines()
cases = int(lines.pop(0))
for i in range(cases):
ALLGRIDS = []
print "Case #%d:" % (i+1),
... | [
"[email protected]"
] | |
ee9a241f9d288ae78366ae06757b0dee588ce874 | 5acc77c4d594c1750a9b7477499ee25b4c307bca | /ehpi_action_recognition/train_ehpi.py | 3c8f3b90123e199bd9a2df7439bbf06c510462ca | [
"MIT"
] | permissive | noboevbo/ehpi_action_recognition | bc15a3c260c79b85a82844a2779c9b1ec9cf42fd | 3b77eeb5103f0f11c8d4be993ec79dddad7e661c | refs/heads/master | 2021-12-29T05:24:31.891044 | 2021-12-19T16:23:36 | 2021-12-19T16:23:36 | 180,351,212 | 113 | 23 | null | 2019-04-23T11:24:27 | 2019-04-09T11:22:45 | Python | UTF-8 | Python | false | false | 3,006 | py | import os
import random
from typing import List
import torch
from ehpi_action_recognition.config import ehpi_dataset_path
from nobos_commons.data_structures.constants.dataset_part import DatasetPart
from nobos_commons.data_structures.dimension import ImageSize
from nobos_torch_lib.configs.training_configs.training_con... | [
"[email protected]"
] | |
49df46b47998c18b9a1e1cd63e336461b0b668e5 | 5390d79dad71ad0d9ff9d0777435dcaf4aad16b3 | /chapter_05/toppings5.py | bb3053276c058e6ce16e156ef1659461aab3c552 | [] | no_license | JasperMi/python_learning | 19770d79cce900d968cec76dac11e45a3df9c34c | 8111d0d12e4608484864dddb597522c6c60b54e8 | refs/heads/master | 2020-11-26T08:57:02.983869 | 2020-03-11T10:14:55 | 2020-03-11T10:14:55 | 218,935,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | requested_toppings = []
if requested_toppings:
for requested_topping in requested_toppings:
print("Adding " + requested_topping + ".")
print("\nFinished making your pizza!")
else:
print("Are you sure you want a plain pizza?")
| [
"[email protected]"
] | |
193cb91ce7cabc2daeb6898364f78bd9d496cf4b | 9fc6604ae98e1ae91c490e8201364fdee1b4222a | /eg_delivery_return_disclaimer_msg/wizards/msg_by_unifonic.py | 1e5e3eb6e45160c46c0dadf6f1a4942c11dc796a | [] | no_license | nabiforks/baytonia | b65e6a7e1c7f52a7243e82f5fbcc62ae4cbe93c4 | 58cb304d105bb7332f0a6ab685015f070988ba56 | refs/heads/main | 2023-03-23T21:02:57.862331 | 2021-01-04T03:40:58 | 2021-01-04T03:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | from odoo import models, fields, api
from odoo.exceptions import Warning
class MsgByUnifonic(models.TransientModel):
_name = "msg.by.unifonic"
number = fields.Char(string="Number")
message = fields.Text(string="Message")
@api.model
def default_get(self, fields_list):
res = super(MsgByUni... | [
"[email protected]"
] | |
7f733621867abbd79a0a8d2784f7d57814b625e5 | ebd24e400986c57b4bb1b9578ebd8807a6db62e8 | /InstaGrade-FormBuilder/xlsxwriter/test/comparison/test_chart_errorbars05.py | 002e0d8055c1d99983bc226195274cbf4b92c183 | [] | no_license | nate-parrott/ig | 6abed952bf32119a536a524422037ede9b431926 | 6e0b6ac0fb4b59846680567150ce69a620e7f15d | refs/heads/master | 2021-01-12T10:15:15.825004 | 2016-12-13T21:23:17 | 2016-12-13T21:23:17 | 76,399,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2014, John McNamara, [email protected]
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"[email protected]"
] | |
5ad138fa284a69c9c985ba8a2084ea57d9d8d176 | 0071aad01ab5e91b7d32567470bd729c23bac656 | /g2048.py | d75f388736b07dd7f87d31f67252e7ab02cbf060 | [] | no_license | Hakuyume/2048-rl | 19c29e24492bd1efaddbbe0dad28474752b2d97f | ff0593582b293bcf1c21bd2e26701da6d24c6647 | refs/heads/master | 2021-01-22T18:33:36.057004 | 2017-08-26T06:47:37 | 2017-08-26T06:47:37 | 100,769,933 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | import numpy as np
import random
class G2048(object):
def __init__(self, size=4):
self.size = size
self.board = np.empty((size, size), dtype=np.uint8)
def reset(self):
self.score = 0
self.board[:] = 0
for _ in range(2):
self._add()
@property
def m... | [
"[email protected]"
] | |
8ee0c7c66379fbead56732ab779d72356e965329 | 925f199438b3af508cf083ce094cb6a5f208fed8 | /src/lt_847.py | ed54216792f6792912f298fe087f8840d98ee563 | [] | no_license | oxhead/CodingYourWay | b1b50236cdfb06669c123fd9202ce3d87304a3bf | e60ba45fe2f2e5e3b3abfecec3db76f5ce1fde59 | refs/heads/master | 2020-08-06T16:45:21.054650 | 2018-06-26T03:53:38 | 2018-06-26T03:53:38 | 30,577,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,323 | py | """
https://leetcode.com/contest/weekly-contest-87/problems/shortest-path-visiting-all-nodes/
"""
"""
An undirected, connected graph of N nodes (labeled 0, 1, 2, ..., N-1) is given as graph.
graph.length = N, and j != i is in the list graph[i] exactly once, if and only if nodes i and j are connected.
Return the leng... | [
"[email protected]"
] | |
a2d189784bb2a282ec8d7cdf005a0c8612dceb9b | bd08d0532f20b7285b437c9bf620de1bbcd5b9ea | /aalh_iit_buildings_006/populate-iso8601-amerdate.py | 08c1fdd9ca6bdcee638e2292f3d12d555f36c6ff | [
"Unlicense"
] | permissive | johndewees/iitmigration | a9e8a31ba6ceb541ce12c22fd612596cc243dbca | 4dadfbecda719d6e7d60af076a231aedec3c862f | refs/heads/main | 2023-03-14T17:06:58.777683 | 2021-03-27T20:44:58 | 2021-03-27T20:44:58 | 320,086,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,719 | py | from openpyxl import load_workbook
import re
filename = 'aalh_iit_buildings_006.xlsx'
wb = load_workbook(filename)
ws = wb['Metadata Template']
minimumcol = 15
maximumcol = 15
minimumrow = 7
maximumrow = 515
iterationrow = 7
targetcol = 15
isostandardcol = 16
for row in ws.iter_rows(min_row=minimumr... | [
"[email protected]"
] | |
5d46d3160485153a72aeaa43b0d98d716859314c | 5cdd13489c995d825985f8e76fb9641d83675972 | /PlotConfiguration/ISR/2016/fake_estimation/muon/LLSS/cuts.py | 313c13d35f546643f1eed5f28fcb69008150737b | [] | no_license | CMSSNU/MultiUniv | d506cea55b1f57e0694309e04b9584434c859917 | cb72ac8cba215598a0f09a46725123e071f9137f | refs/heads/master | 2020-04-20T06:23:13.425043 | 2020-03-25T08:11:31 | 2020-03-25T08:11:31 | 168,682,069 | 0 | 4 | null | 2020-02-13T10:14:48 | 2019-02-01T10:35:47 | Python | UTF-8 | Python | false | false | 509 | py | from CommonPyTools.python.CommonTools import *
SKFlat_WD = os.getenv('SKFlat_WD')
sys.path.insert(0,SKFlat_WD+'/CommonTools/include')
from Definitions import *
supercut = '1==1'
# for fake estimation
# LL same sign
cuts['detector_level'] = 'is_dimu_tri_passed == 1 && evt_tag_dimuon_rec_Fake == 1 && evt_tag_dielectro... | [
"[email protected]"
] | |
a7806cbd020f9a30ef0b3337e9f90d839d99a427 | da92caf06447ec7e244dfa11e71b551a4dab7d14 | /src/plugins/evoked_average.py | 21e26af5a91a55b09c07c45812ed17bb1e6ac9ab | [
"MIT"
] | permissive | Frikster/Mesoscale-Brain-Explorer | 28298adbcb49dc399f85fe4db1c3dc1263468677 | 269d8f18162e2b9dca4619561e73a6beb8ba810c | refs/heads/master | 2020-04-04T22:17:29.714298 | 2017-11-20T16:24:19 | 2017-11-20T16:24:19 | 61,849,037 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 4,036 | py | #!/usr/bin/env python3
import os
import numpy as np
import psutil
import qtutil
from PyQt4.QtGui import *
from .util import project_functions as pfs
from .util.plugin import PluginDefault
from .util.plugin import WidgetDefault
class Widget(QWidget, WidgetDefault):
class Labels(WidgetDefault.Labels):
pa... | [
"[email protected]"
] | |
9fa71db652f5ba9a7efaf6487c314e53826c6153 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/tidb/apis/DescribeAvailableDBInfoInternelRequest.py | e771d081b365e9d329da6981125f9fced96c4cf4 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,479 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"[email protected]"
] | |
47d31b4ad6d9d3f9ec16487c975797465de7096d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/22/usersdata/112/11794/submittedfiles/av1_2.py | 5ecfae8a8c59536c3785bab3a905bd43d390601a | [] | 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 | 317 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
ant=0
prox=0
meio=B
n=input('Digite o valor de n:')
j=input('Digite o valor de j:')
k=input('Digite o valor de k:')
l=input('Digite o valor de l:')
if n=k and j!=l:
print('verdadeira')
if j=l and n!=k:
print('verdadeira')
else:
('falsa') | [
"[email protected]"
] | |
870d12fe6a587e970c108504b42268cb10c844f3 | 2ed2dd917afb05d194e87f989d78953b31a5781b | /lesson10/mission08.py | 718005e6a8b1523d4636183b46dc3a00179e899b | [] | no_license | RenegaDe1288/pythonProject | 4058d549db7c37652f77438c31f8b31476497d98 | 801c06f3be22ed63214987b11d6f1b3fd2fe5b44 | refs/heads/master | 2023-08-17T13:20:50.777842 | 2021-10-05T10:51:00 | 2021-10-05T10:51:00 | 393,145,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | lent = int(input('Введите ширину '))
lent_2 = int(input('Введите длину '))
for row in range(lent):
for col in range(lent_2):
if col == lent_2 // 2 and row != lent//2:
print('|', end='')
elif row == lent // 2:
print('-', end='')
elif col == lent_2//2 + 5+ row:
... | [
"[email protected]"
] | |
473d655633f7f72afa53daced7e8c8a4a90c4f51 | a209c2238ff97d781fc6f15d9b3ae6ecf9c15b53 | /utils/preprocess.py | 6b7077e20c2ba3b9257a3940756e4f54e10dd416 | [] | no_license | Arcana-2236/Text-Classification | 1788e05e4c29ce0e7130f38cd16af5ab08fbe6fd | 69047f0ffdfc621e3cb2d59056ac93d69582090b | refs/heads/master | 2022-04-12T08:30:50.089277 | 2020-03-28T06:09:16 | 2020-03-28T06:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,234 | py | import os
import re
import zipfile
import pickle
import jieba
import pandas as pd
import numpy as np
from collections import Counter
from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences
from sklearn.preprocessing import MultiLabelBinarizer
from skl... | [
"[email protected]"
] | |
4cb105211199b388e964f55bb905a04d35572cf9 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/LArCalorimeter/LArTest/LArConditionsTest/share/FixLArElecCalib_fix6_jobOptions.py | 59efd81bb72cab9f075cafd0a9f3b68c0147137b | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,813 | py | ###############################################################
#
# Job options file 1
#
#==============================================================
#use McEventSelector
include( "AthenaCommon/Atlas_Gen.UnixStandardJob.py" )
from AthenaCommon.DetFlags import DetFlags
DetFlags.Calo_setOn()
DetFlags.ID_setOff()
DetF... | [
"[email protected]"
] | |
86e96ae863d4f9f1817fcae036de87f3df2a15ec | e694891ff8c9d06df7b7b5def7ba71c1dba03aa8 | /rabbitmq_rabbitpy/test_rabbitmq.py | 23f166795359b1166e1d5e54aa4a636cf2e3c2e1 | [] | no_license | wangyu190810/python-skill | 78f9abb39ebfa01b92ffb2ec96c7ef57c490d68d | 719d082d47a5a82ce4a15c57dd481932a9d8f1ba | refs/heads/master | 2020-04-05T17:43:48.005145 | 2019-02-01T01:45:49 | 2019-02-01T01:45:49 | 41,524,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # -*-coding:utf-8-*-
# email:[email protected]
__author__ = 'wangyu'
<<<<<<< HEAD
=======
import rabbitpy
# with rabbitpy.Connection("amqp://guest:guest@localhost:5672/%2F") as conn:
# with conn.channel() as channel:
# amqp = rabbitpy.AMQP(channel)
#
# for message in amqp.basic_consume('queue-name'... | [
"[email protected]"
] | |
fb9705a0d1b4b5da9c80db0e6507fd386d90b160 | f28a261132fbf98f5ebfd004672af4155dfa1cc5 | /nanodash/service/dataset-description-nano-090.py | b6fd62ced21821aab7733a8570b3d22d64d38b3d | [
"Apache-2.0",
"MIT"
] | permissive | curtislisle/nanomaterial-dashboard | 8704779b7410747092c8fdb9326fb69b9f6b94ff | 06de2e0782f53ce56d6edd0937b14cbd738fc22a | refs/heads/master | 2021-01-21T04:41:16.713855 | 2016-07-08T01:07:17 | 2016-07-08T01:07:17 | 54,521,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | #import bson
import pymongo
import json
from bson import ObjectId
from pymongo import MongoClient
import string
import tangelo
def run(ipaddress):
# Create an empty response object.
response = {}
response['datasource'] = 'remote'
response['file'] = "http://"+str(ipaddress)+":8080/nanodash/service/data... | [
"[email protected]"
] | |
bb32c9b355ff5984723a6f55c49c36cdbc32e17c | da280a226bbf15d7243410c0d3930bdca00d0088 | /firsttry/ex41.py | 0ba10ceba34cd4003844fa210c2ed0733881e028 | [] | no_license | c4collins/PyTHWay | 174cae57c73431ce5bfc90a361613c5db5c846d7 | 135b4b908ef2698084ee1b3fb9f1e5550c3c8843 | refs/heads/master | 2021-01-10T18:29:43.998528 | 2012-11-03T22:53:17 | 2012-11-03T22:53:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,767 | py | from sys import exit
from random import randint
def death():
quips = ["You died. You kinda suck at this.", "Your mum would be proud, if she were smarter.", "Such a loser.", "I have a small puppy that's better at this."]
print quips[randint(0, len(quips)-1)]
exit(1)
def princess_lives_here():
pri... | [
"[email protected]"
] | |
faa87c8e3f067bcd7755c759e47e022742482bb8 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /wbhjXmdbPSxCSE5hW_0.py | e9536e0fed2a7c9b48f0291977cccbacbce5b686 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | """
A magic sigil is a glyph which represents a desire one wishes to manifest in
their lives. There are many ways to create a sigil, but the most common is to
write out a specific desire (e.g. " _I HAVE WONDERFUL FRIENDS WHO LOVE ME_ "),
remove all vowels, remove any duplicate letters (keeping the last occurence),
a... | [
"[email protected]"
] | |
e70cf9d6e63ff327f4103d60a0c7ba98634ec982 | 4d98abd2553e95856d835519424a60634fc4cdd3 | /CVE-2016-4437 Apache_Shiro_RCE/ShiroScan_1.2.4/moule/plugins/Spring2.py | 68bb19cf574477e3533d5a8f8ec6fe04827cd872 | [] | no_license | ANNS666/my_POC | 0157fa41bdd2d0f264e464b05bf9c75405083e44 | b3a38745609c9407a9bc0427f5dd55e4acfe6d70 | refs/heads/master | 2023-08-10T19:13:15.521562 | 2021-10-10T04:09:58 | 2021-10-10T04:09:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | # -*- coding: utf-8 -*-
# By 斯文beast svenbeast.com
import os
import re
import base64
import uuid
import subprocess
import requests
import sys
import threadpool
from Crypto.Cipher import AES
from ..main import Idea
requests.packages.urllib3.disable_warnings()
JAR_FILE = 'moule/ysoserial.jar'
@Idea.plugin_register('C... | [
"[email protected]"
] | |
b8fecdcd2f6db4c77f8c2dd91e69e1f8869ea920 | ff3da62ab2a336ba286ea320b8bf1eba5b1978ea | /normalization/time_Info/apm.py | e242dc16e93401a0d43eed4f9fa6c779d03c8403 | [] | no_license | llq20133100095/bert_ner_time | 9e17e9de77ff12b4ae5267986f646665066e070c | 9dc3baf5ca8f6d5cc7d4255bcfd913bd695c7b5e | refs/heads/master | 2021-10-28T14:59:17.217552 | 2019-04-24T06:12:22 | 2019-04-24T06:12:22 | 182,626,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/11/24 16:33
# @Author : honeyding
# @File : apm.py
# @Software: PyCharm
import re
class Apm:
apm_pat = re.compile(u'.*?(明早|傍晚|早上|早晨|凌晨|上午|中午|下午|大晚上|晚上|夜里|今晚|明晚|昨晚|前晚|这晚|晚|清晨|午后).*?')
apm_hour_pat = re.compile(u'.*?(明早|傍晚|早上|早晨|凌晨|上午|中午|下午|大晚上... | [
"[email protected]"
] | |
6e8da8e397cef33da10c132cc14befac799d08b6 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/pybites/intermediate/030_movie_data_analysis/save1_nopass.py | de9624e5838b09cfbf6dd63a838b4df2ba2feb25 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,495 | py | # _______ c__
# ____ c.. _______ d.., n..
# _______ __
# ____ u__.r.. _______ u..
#
# BASE_URL 'https://bites-data.s3.us-east-2.amazonaws.com/'
# TMP '/tmp'
#
# fname 'movie_metadata.csv'
# remote __.p...j.. B.. f..
# local __.p...j.. T.. f..
# u.. ? ?
#
# MOVIE_DATA local
# MIN_MOVIES 4
# MIN_YEAR 1960
#
# Movie n.. '... | [
"[email protected]"
] | |
f6781a69e1b2ae0d198cc5c11ac27d5d185fa49e | c3cc755ae500e87b6d5fa839efaa4d7d0f746d43 | /Part 1/Ch.6 Dictionaries/Nesting/pizza.py | f07401d2bb54c94f78013b95d7f88cd48287e6fd | [] | no_license | AngryGrizzlyBear/PythonCrashCourseRedux | 9393e692cdc8e5e28a66077bbc6c1e674642d209 | 28d48fa16fc238cf0409f6e987a3b4b72e956a92 | refs/heads/master | 2020-03-28T11:04:44.030307 | 2018-10-20T21:06:27 | 2018-10-20T21:06:27 | 148,175,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | # Store information about a pizza being ordered.
pizza = {
'crust': 'thick',
'toppings': ['mushrooms', 'extra cheese'],
}
# Summarized the order
print("You ordered a " + pizza['crust'] + "-crust pizza " +
"with the following toppings:")
for topping in pizza['toppings']:
print("\t" + topping) | [
"[email protected]"
] | |
a381405f3e7de92702f28ddc67b8a4d3d57494cd | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /aoj/aoj-icpc/300/1315.py | fc47a7e25bc9e18a6c15f3d4e5a4aeac5a025693 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | while 1:
n = int(raw_input())
if n == 0: break
exist = set([])
enter = [0]*1000
bless = [0]*1000
for loop in xrange(n):
md,hm,io,p = raw_input().split()
h,m = map(int,hm.split(":"))
t = 60*h+m
p = int(p)
if io == "I":
enter[p] = t
e... | [
"[email protected]"
] | |
15a60453aa5419b4fa377688c031c2632596a4f9 | 7ce479cac0a14d924159db9c784e3325b8f0bce7 | /schemaorgschemas/Thing/MedicalEntity/MedicalProcedure/__init__.py | cbefd8704afe1d477dfc83e65cb81ce50f18686e | [] | no_license | EvelineAndreea/AGRe | 1f0c27237eb047a60bbcfb8d73e3157035406409 | b952125896a82741f6617c259dd4060954583180 | refs/heads/master | 2020-04-08T16:08:11.517166 | 2018-11-28T07:15:56 | 2018-11-28T07:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,059 | py | # -*- coding: utf-8 -*-
from schemaorgschemas.Thing import potentialActionProp, nameProp, sameAsProp, imageProp, urlProp, mainEntityOfPageProp, additionalTypeProp, alternateNameProp, descriptionProp
from schemaorgschemas.Thing.MedicalEntity import codeProp, relevantSpecialtyProp, studyProp, guidelineProp, recognizingAu... | [
"[email protected]"
] | |
222a8516170dbdfd60052c5217c8dbe791724e6b | a6df74bc7c139734bd9ce9f48d51e08fdc7d7efb | /article/migrations/0016_auto_20210412_1456.py | 34b4c21151d60a7d9f4aa95d47c0410f17c749cc | [] | no_license | Erlan1998/python_group_7_homework_68_Erlan_Kurbanaliev | 5a7f210e51f1998e5d52cdeb42538f2786af3f9f | fdc92be2c5187c78fecdc713f58e0e3e9fc62cb1 | refs/heads/master | 2023-05-03T17:01:59.066596 | 2021-05-26T13:28:41 | 2021-05-26T13:28:41 | 368,165,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # Generated by Django 3.1.6 on 2021-04-12 14:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('article', '0015_auto_20210412_1444'),
]
operations = [
migrations.AlterModelOptions(
name='article',
options={'permissions':... | [
"[email protected]"
] | |
3f6f9421f822fd2a774361edb18fd8c12c87027d | b58b175263f275e15a1b56bf1b0914db0f35ffc8 | /testcase/testcase_lan.py | 8d4326cbd823f38fc4d2cbf52a1cb50582dc55ed | [] | no_license | zeewii/BHU | aa9ff900a4bb6adb368081509b9f9222479f7742 | 1f3c4f634b44845f7a4f84535ff4904de4efc634 | refs/heads/master | 2021-01-09T21:49:01.534541 | 2015-09-30T09:21:28 | 2015-09-30T09:21:28 | 43,213,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,828 | py | #coding=utf-8
#描述:该模块为测试lan模块
#作者:曾祥卫
import unittest
from selenium import webdriver
import time,os,commands
from selenium.webdriver.common.action_chains import ActionChains
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException
from login import lo... | [
"[email protected]"
] | |
5a65c3db8f5241c487aab78f930d7ec197529388 | 5a4d5ee624b375ece06fda1467afe18beb69c14b | /Algorithm/SW_Expert/1-46.py | e2fcfc033cbfedd0121723aaeb2c5ba1ecc91913 | [] | no_license | Knightofcydonia51/TIL | cd10dab949659bc827118ee42b25d926336dce23 | 78d7e8617f4abed9932a557c12e68bd950f8230d | refs/heads/master | 2022-12-26T00:10:06.262200 | 2022-05-26T01:12:32 | 2022-05-26T01:12:32 | 195,938,010 | 0 | 0 | null | 2022-12-16T01:03:09 | 2019-07-09T05:22:49 | Python | UTF-8 | Python | false | false | 218 | py | def score(text):
result=list(map(lambda x: 4 if x=='A' else 3 if x=='B' else 2 if x=='C' else 1 ,text))
return sum(result)
print(score('ADCBBBBCABBCBDACBDCAACDDDCAABABDBCBCBDBDBDDABBAAAAAAADADBDBCBDABADCADC')) | [
"[email protected]"
] | |
7cc5e26b3b002ea59b7a91392cf6ad2b4d9042bb | 12b5584956797fcb0f48e7971bc074ae13a37489 | /pySpatialTools/release.py | b4439a5b0eb2c44ff32c36629289ad36af5e241a | [
"MIT"
] | permissive | tgquintela/pySpatialTools | a0ef5b032310aa1c140e805f4ee8c4a40fd2d10e | e028008f9750521bf7d311f7cd3323c88d621ea4 | refs/heads/master | 2020-05-21T22:09:08.858084 | 2017-02-10T11:18:41 | 2017-02-10T11:18:41 | 39,067,763 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,919 | py | """Release data for pySpatialTools.
The information of the version is in the version.py file.
"""
from __future__ import absolute_import
import os
import sys
import time
import datetime
basedir = os.path.abspath(os.path.split(__file__)[0])
## Quantify the version
MAJOR = 0
MINOR = 0
MICRO = 0
ISRELEASED = False
V... | [
"[email protected]"
] | |
645b5682e9763727540ac5d791536bf21623922f | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5020/309005020.py | 83361578777dc5a5345e3f1329482955522de273 | [] | 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,711 | py | from bots.botsconfig import *
from records005020 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'AQ',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'M10', MIN: 1, MAX: 1},
{ID: 'VEH', MIN: 0, MAX: 10},
... | [
"[email protected]"
] | |
10bcb6a6cca24a31397972415ea766cbddfa555c | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /147_best.py | 3d1e8b37f5da10cd271490da0e35045823c72455 | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution(object):
def insertionSortList(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
if head==Non... | [
"[email protected]"
] | |
ffbba23a3c4c45c2d06645337aa75f9d54d24f4c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_243/ch161_2020_06_15_19_33_27_198209.py | f921b1b82956792ae479cd3fccf38b2e9021b5f4 | [] | 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 | 267 | py | def PiWallis(num):
numerador=1
denominador=2
i=0
multi = 1
while i < num:
multi *= numerador/denominador
if i%2 == 0:
denominador += 2
else:
numerador += 2
i+=1
return multi | [
"[email protected]"
] | |
17443d48e14b9c51e3399739df9833c81a42bef8 | 886436fe7993aa2913e339ebe70b0eddfacac44c | /build/lib/armin/api/share/utils.py | e68eddb20a572579f23515d616640d6bb6bc3c91 | [] | no_license | singajeet/armin | 581793cac1ac3b1ab638d274b356965ee5d76750 | 99f61a0ce0f2d5c587002ddf8d2843e83d9538d3 | refs/heads/master | 2021-04-28T07:15:42.509397 | 2018-03-19T17:30:09 | 2018-03-19T17:30:09 | 122,219,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | """
.. module:: source_driver
:platform: Unix, Windows
:synopsis: A default implementation of source system driver
"""
from typing import Type, Dict, Any
import pathlib
from armin.api.share.constants import N, F, V
from tinydb import TinyDB, Query
def get_meta_table(meta_repo_details:Type[Dict]):
"""Returns... | [
"[email protected]"
] | |
44ad04a59f6f8b2df27bfda02eaab12a2aa8d256 | 06a045819cf99c7059afde40dca12cf9d3eb5f81 | /pandas/tests/indexing/test_at.py | 01315647c464b7573433bf36515371ffed05e411 | [
"BSD-3-Clause"
] | permissive | MarcoGorelli/pandas | b9882c6ac1e4bc753819b7bc7c8b567964efd275 | 86a4ee01c7899ef454d35b95cde11e9593921c9d | refs/heads/main | 2023-08-22T12:35:45.122152 | 2023-05-04T22:11:07 | 2023-05-04T22:11:07 | 164,618,359 | 4 | 1 | BSD-3-Clause | 2023-05-05T09:02:23 | 2019-01-08T09:55:54 | Python | UTF-8 | Python | false | false | 7,983 | py | from datetime import (
datetime,
timezone,
)
import numpy as np
import pytest
from pandas.errors import InvalidIndexError
from pandas import (
CategoricalDtype,
CategoricalIndex,
DataFrame,
DatetimeIndex,
MultiIndex,
Series,
Timestamp,
)
import pandas._testing as tm
def test_at_... | [
"[email protected]"
] | |
3730426a331bcc75745f9af0cdfc8efaf059a9b9 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/numpy/array_api/tests/test_elementwise_functions.py | b2fb44e766f8adfc368d988bd7d17c2ac418b386 | [
"GPL-3.0-only",
"BSD-3-Clause-Open-MPI",
"GPL-3.0-or-later",
"GCC-exception-3.1",
"BSD-3-Clause",
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 3,619 | py | from inspect import getfullargspec
from numpy.testing import assert_raises
from .. import asarray, _elementwise_functions
from .._elementwise_functions import bitwise_left_shift, bitwise_right_shift
from .._dtypes import (
_dtype_categories,
_boolean_dtypes,
_floating_dtypes,
_integer_dtypes,
)
def ... | [
"[email protected]"
] | |
0dcf4b6b5bcf74c86dfbcba79e56758e85c90377 | 08c7844a2bd2d94d16e851ce78109a7f33ffc53f | /config.py | 58407e73518f4329eb385d50488e096f33660915 | [] | no_license | jreiher2003/menu-app | dd5bd4a44688f43086f6a284684ebafff74daf2a | cc93f6a41539ab00b2d85bae21ee308987c93afe | refs/heads/master | 2021-01-10T09:26:51.673657 | 2015-11-17T19:11:25 | 2015-11-17T19:11:25 | 46,355,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | WTF_CSRF_ENABLED = True
SECRET_KEY = 'you-will-never-guess'
import os
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'menu.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') | [
"[email protected]"
] | |
b517f0bb5ca6346a38ef4745c26d781ed5b2d2cd | e83f2198cb765f048398e6485f138cf4e172199f | /src/pywaz/sprite/__init__.py | 2b4fa577eabb5f9d7b1f852d71ca2119cee7f2c3 | [] | no_license | giginet/MachiMatch | 6d1c2cb2a77323043e8e04e90df5d5e1d8e010d5 | 69b0e788f75966bf6e2fbfaba19e66da5ce22415 | refs/heads/master | 2021-01-13T01:36:19.399768 | 2011-12-25T02:40:10 | 2011-12-25T02:40:10 | 1,630,776 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | import pygame
from pygame.sprite import Sprite
class _Mixin(object):
def draw(self, surface):
for sprite in self.sprites():
if isinstance(sprite, Sprite):
sprite.draw(surface)
else:
surface.blit(sprite.image, sprite.rect)
class _Mixin2(object):
de... | [
"[email protected]"
] | |
5e7eae6b648b87e1195f66e8de1baf28ed5cc3b4 | 176088b355fd48f89aa377d1358bc54fd5d9d35d | /backend/task_category/migrations/0001_initial.py | 9093194c12138f4db006dc787f9880e94c74f40c | [] | no_license | crowdbotics-apps/fashion-by-genesis-18024 | bbf2c78adaefcaf5297b208a23d291ec8c7b0f0f | a725add80913c3ecb4f9e049baa3c78c8de3ffbd | refs/heads/master | 2022-10-26T19:09:33.359374 | 2020-06-11T18:21:20 | 2020-06-11T18:21:20 | 271,617,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | # Generated by Django 2.2.13 on 2020-06-11 18:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"[email protected]"
] | |
5b93c2a71b7fe9860423932a99487ea380b7ad1b | e7307703a08ccdc0615bfa3b7a963a2ba2e9e732 | /bots/courses_bot/data_models/student_profile.py | 8f2b9d06af726a5cb4e8919a976c563d36878473 | [] | no_license | liyocee/cs_course_bot | 7817c43975c56aeb6edf31d28d9a7f553d107c26 | 93354ade3713293bf31a494a75bd11c3229814a8 | refs/heads/master | 2023-05-24T23:29:34.309303 | 2020-03-15T14:37:15 | 2020-03-15T14:37:15 | 246,835,877 | 0 | 0 | null | 2023-05-22T22:42:22 | 2020-03-12T13:03:32 | Python | UTF-8 | Python | false | false | 707 | py | from enum import Enum
from typing import Optional
from botbuilder.schema import Attachment
from .course_unit import CourseUnit
class StudentProfile:
def __init__(
self,
name: str = None,
admission_number: str = None,
course_unit: CourseUnit = None,
picture: Attachment = ... | [
"[email protected]"
] | |
179a046688ec86cdc0a1838723c43484ef4af058 | 6f57761c60582c546423a2a08c769f18236fd153 | /benchmarks/data/codes/run_pk_param_space.py | da414557736a952df54584c6f3e3878402cbf9b5 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"BSD-2-Clause"
] | permissive | LSSTDESC/CCL | 30644922fead0b017c1056e628bec23cf6bc4dfb | 29d46978445678d86a4bee485cb29d30246ff64a | refs/heads/master | 2023-09-03T17:03:17.012019 | 2023-08-08T11:01:33 | 2023-08-08T11:01:33 | 57,389,367 | 118 | 68 | BSD-3-Clause | 2023-08-30T13:25:25 | 2016-04-29T14:08:38 | C | UTF-8 | Python | false | false | 3,398 | py | #!/usr/bin/env python
"""
Generate a set of CLASS power spectra across a set of sample points in
cosmological parameter space, and compare with CCL.
"""
from param_space import *
import os, sys
# Need to specify directory containing 'class' executable
CLASS_ROOT = None
if len(sys.argv) > 1: CLASS_ROOT = sys.argv[1]
a... | [
"[email protected]"
] | |
1416874157729825714165b2eecc1af24e692c63 | d3196fb38078fdbe966bd5af8a8a4f2924a47c20 | /wandb/sdk/wandb_manager.py | 69e8c503a571a70e1c710938889cb33c97a665cf | [
"MIT"
] | permissive | morganmcg1/client | a1ae01ea302f13a6c9850972411ecabcb900dbc6 | 099f7aa938fb62c5a5d3e12f7d2067196498b67c | refs/heads/master | 2023-09-06T01:14:40.282234 | 2021-11-13T03:01:01 | 2021-11-13T03:01:01 | 427,620,124 | 0 | 0 | MIT | 2021-11-13T09:22:12 | 2021-11-13T09:22:11 | null | UTF-8 | Python | false | false | 3,831 | py | """Manage wandb processes.
Create a grpc manager channel.
"""
import atexit
import multiprocessing
import os
from typing import Callable, Optional, Tuple, TYPE_CHECKING
from wandb import env
from wandb.sdk.lib.exit_hooks import ExitHooks
if TYPE_CHECKING:
from wandb.sdk.service import service
from wandb.sdk... | [
"[email protected]"
] | |
bfd99c37854c269ae7937012f17c63e5e0f061cd | 223590e81400eb8192aeb0a56b36b5a80408d4b4 | /House Robber III.py | 584a90ed9a8be182d31caf96c6718832136be16d | [] | no_license | TianyaoHua/LeetCodeSolutions | c47fd3b6ae0bf60c0656ce12fb88290672c129ed | 418172cee1bf48bb2aed3b84fe8b4defd9ef4fdf | refs/heads/master | 2020-03-06T19:48:13.338630 | 2018-08-10T18:27:52 | 2018-08-10T18:27:52 | 127,037,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def value(self, node, dict):
if not node:
return 0
elif node in dict:
return dict[node]
... | [
"[email protected]"
] | |
1226dd2c5a9a51b542246bedd7bd3c1873fdbad6 | 20f951bd927e4e5cde8ef7781813fcf0d51cc3ea | /fossir/modules/auth/models/registration_requests.py | 2b82b271bd15c697c17e87bacc2dcbf1d924edf3 | [] | no_license | HodardCodeclub/SoftwareDevelopment | 60a0fbab045cb1802925d4dd5012d5b030c272e0 | 6300f2fae830c0c2c73fe0afd9c684383bce63e5 | refs/heads/master | 2021-01-20T00:30:02.800383 | 2018-04-27T09:28:25 | 2018-04-27T09:28:25 | 101,277,325 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py |
from __future__ import unicode_literals
from sqlalchemy.dialects.postgresql import ARRAY, JSON
from werkzeug.datastructures import MultiDict
from fossir.core.db import db
from fossir.util.locators import locator_property
from fossir.util.string import format_repr, return_ascii
class RegistrationRequest(db.Model):... | [
"[email protected]"
] | |
7b571d83f84608ebeeaddbfae06938549a457d9b | 54d17336ca03801bd9c9ef37be8642b332ab71c4 | /osm/SO/common/python/rift/mano/yang_translator/rwmano/translate_descriptors.py | 2023db5a8ce00b6b1b6982b49c0b0047939c92fb | [] | no_license | dennis-me/Pishahang | 2428379c4f7d3ee85df4b85727ce92e8fe69957a | cdd0abe80a76d533d08a51c7970d8ded06624b7d | refs/heads/master | 2020-09-07T12:35:54.734782 | 2020-01-24T20:11:33 | 2020-01-24T20:11:33 | 220,782,212 | 2 | 0 | null | 2019-11-10T11:46:44 | 2019-11-10T11:46:43 | null | UTF-8 | Python | false | false | 8,136 | py | #
# 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, software
# distributed under the ... | [
"[email protected]"
] | |
fed38d32e3c3d4c4c31ce116303ad6588a73d350 | 49cd488edb28d0433aaab9686e90ed90d134dd14 | /tests/test_generator.py | c422ffbb35a6f1b2df7ba62d732e99b0d49a368f | [
"MIT"
] | permissive | Dmdv/python-fibers | 349fab65a37475b2fee73bdc53960b1a289227bd | 20349077843033610864935e45977cf33d16a7e1 | refs/heads/master | 2021-01-15T20:53:34.925672 | 2013-08-06T21:19:08 | 2013-08-06T21:19:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py |
import sys
sys.path.insert(0, '../')
import unittest
import fibers
from fibers import Fiber
class genlet(Fiber):
def __init__(self, *args, **kwds):
self.args = args
self.kwds = kwds
Fiber.__init__(self, target=self.run)
def run(self):
fn, = self.fn
fn(*self.args, *... | [
"[email protected]"
] | |
81ade5278aeab0a1197c12c2bde8a62122fad070 | 3f60b999ea7bda83c9586f75f52463dc20337f24 | /sensitive_user_portrait/cron/attribute/filter_sensitive_uid_text.py | d49971916dc61266df2f85bbccec815232885978 | [] | no_license | jianjian0dandan/sensitive_user_portrait | 629e49ce71db92b50634bac9c828811cdb5381e9 | cacc30267ebc0e621b1d48d4f1206277a0f48123 | refs/heads/master | 2021-01-20T23:18:07.138057 | 2016-05-22T12:09:40 | 2016-05-22T12:09:40 | 42,869,287 | 0 | 0 | null | 2015-09-21T13:55:12 | 2015-09-21T13:55:11 | null | UTF-8 | Python | false | false | 4,249 | py | # -*- coding: utf-8 -*-
import csv
import os
import sys
import time
from elasticsearch import Elasticsearch
from DFA_filter import sensitive_words_extract
reload(sys)
sys.path.append('./../flow1/')
from csv2json import itemLine2Dict, csv2bin
sys.setdefaultencoding('utf-8')
f_file = open('es_error.txt', 'wb')
CSV_FIL... | [
"[email protected]"
] | |
ef9249722a55ff00c9ec100a856e360d1281320d | 5e255ad1360c90478393744586663741a9569c21 | /linebot/v3/audience/models/create_audience_group_request.py | 3d855e668830bb2b753b6d12e2288f9444ee979f | [
"Apache-2.0"
] | permissive | line/line-bot-sdk-python | d76268e8b542060d6eccbacc5dbfab16960ecc35 | cffd35948238ae24982173e30b1ea1e595bbefd9 | refs/heads/master | 2023-08-31T22:12:31.698183 | 2023-08-28T01:10:09 | 2023-08-28T01:10:09 | 70,553,423 | 1,898 | 1,181 | Apache-2.0 | 2023-09-11T05:14:07 | 2016-10-11T03:42:26 | Python | UTF-8 | Python | false | false | 3,502 | py | # coding: utf-8
"""
LINE Messaging API
This document describes LINE Messaging API. # noqa: E501
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
from __future__ import annotations
import pprint
impor... | [
"[email protected]"
] | |
f8e54ed7de4fa1713441907b2b002188d27537c3 | d7da288db4fd9fc0bb1c60c5074f290b5f70c8ef | /Aulas Python/Conteúdo das Aulas/033/Gabarito/Exercício 1 - Gabarito.py | 897f4b881fb6433e5d3d0ea8f4c4d834a4d639ac | [] | no_license | luizdefranca/Curso-Python-IgnoranciaZero | dbf4cf342b3f3efea6fb3b8cf27bf39ed92927e9 | 9fbf2f25e3e6fce1f1582af0bd6bc7dbc5b9f588 | refs/heads/master | 2020-04-09T07:17:00.735378 | 2016-09-12T10:51:37 | 2016-09-12T10:51:37 | 67,999,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | """
Faça um programa com uma função chamada somaImposto.
A função possui dois parâmetros formais:
1 - taxaImposto, que é a quantia de imposto sobre vendas expressa em
porcentagem
2 - custo, que é o custo de um item antes do imposto.
A função “altera” o valor de custo para incluir o imposto sobre venda... | [
"[email protected]"
] | |
9679197a61ccf26610d250d3868a81a8e7401233 | 3e9cdcc8847da5a2ea8391639ad8fd95592475b1 | /696.py | edda7ebd43c2b347e2386e5ca317ea69007a5d58 | [] | no_license | mindentropy/leetcode | ec790ed671a2224411133af127e605438bbbbe52 | 4a24edca5926c0b10d1a4786262dd403b12d1aee | refs/heads/master | 2023-01-27T11:26:07.949478 | 2023-01-25T19:08:18 | 2023-01-25T19:08:18 | 233,759,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/env python
class Solution(object):
def countBinarySubstrings(self, s):
strcnt = 0
i = 0
while i < len(s) - 1:
j = i + 1
oppcnt = 1
eqflag = True
while j < len(s):
if s[i] == s[j]:
if eqflag == False:
break
oppcnt += 1
else:
oppcnt -= 1
eqflag = Fa... | [
"[email protected]"
] | |
8bf5c9cb87033d334d26c9436c9f04e4b173ba65 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/kusto/azure-mgmt-kusto/generated_samples/kusto_managed_private_endpoints_check_name_availability.py | 3ccfc9a68d42bd47f54b8ba0ce14082f3885382b | [
"LicenseRef-scancode-generic-cla",
"MIT",
"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 | 1,746 | py | # 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) AutoRest Code Generator.
# Changes may ... | [
"[email protected]"
] | |
f9149adc1d138f483eb14838fe57cbf12e65eec4 | 5de5ae0adb6fb1e73c2e897fbc13b6abf53c559b | /Applications/Equations/knapsack-1.py | 98dc10ab696f6baaedba79c8b32dbe93669eedb8 | [] | no_license | Trietptm-on-Coding-Algorithms/Learning-Z3 | af935450226ee3299e10361f21a567945aa0fd5c | c5ef7faca49aa164556b3c7e9ccfb4709027cf74 | refs/heads/master | 2020-05-13T18:34:38.105308 | 2017-12-23T11:08:43 | 2017-12-23T11:08:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | # Solving knapsack problem with Z3
#
# Use:
# python knapsack.py
#
from z3 import *
# from https://www.xkcd.com/287/
fruits, fries, salad, wings, sticks, plate = Ints('fruits fries salad wings sticks plate')
s = Solver()
s.add(fruits>=0, fries>=0, salad>=0, wings>=0, sticks>=0, plate>=0)
s.add(2... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.